UMAR SAYYAD
Document AI
Automated KYC & Transaction Risk
Automated identity verification and transaction risk scoring for digital banking, reducing manual review while maintaining regulatory compliance.
Designed and led the KYC automation and transaction risk scoring pipeline at Greenwood, combining document verification ML with behavioural transaction analysis. The system automated identity verification for new account openings and scored transactions for suspicious activity patterns, reducing manual review burden while maintaining BSA/AML compliance.
Full stack
- Python
- TensorFlow
- Tesseract
- OpenCV
- PostgreSQL
- AWS
- Lambda
- React
Capability Overview
Capability Overview
- Automated identity verification pipeline processing government-issued IDs with document classification, OCR extraction, and liveness detection.
- Transaction risk scoring combining velocity analysis, peer-group comparison, and behavioural anomaly detection for BSA/AML compliance.
- Reduced manual KYC review from 48 hours to under 5 minutes for 80% of applications while maintaining regulatory compliance.
- Risk-tiered onboarding — low-risk applicants approved instantly, medium-risk queued for expedited review, high-risk flagged for enhanced due diligence.
Automated KYC & Transaction Risk covers two connected capabilities: identity verification at account opening and ongoing transaction monitoring for suspicious activity. Together they form the compliance backbone of a digital banking platform.
The core challenge was speed versus thoroughness. Digital banking customers expect instant account opening. Regulators expect thorough identity verification and ongoing monitoring. The system needed to be fast enough for a mobile-first experience while rigorous enough to satisfy BSA/AML examiners.
As Principal Engineer, I designed the ML pipeline for document verification, the risk-scoring architecture for transaction monitoring, and the feedback loops that kept both systems accurate as fraud patterns evolved.
Tech in this section
- Python
- TensorFlow
- AWS
Implementation Patterns
Implementation Patterns
- Document classification identifying ID type (driver's licence, passport, state ID) and extracting fields with OCR confidence scoring.
- Liveness detection distinguishing real faces from photos-of-photos and screen captures during the selfie verification step.
- Transaction velocity scoring computing spending pattern deviations against per-customer baselines and peer-group norms.
- Risk-tiered routing sending each application or transaction to the appropriate review path based on composite risk score.
The KYC pipeline used four patterns. Document classification identified the ID type from a photo capture and routed it to the appropriate extraction model. OCR extracted name, date of birth, address, and document number with per-field confidence scores. Fields below the confidence threshold triggered manual review of that field only, not the entire application.
Liveness detection ran during the selfie step, analysing the video stream for signs of spoofing: screen moiré patterns, photo edges, unnatural lighting, and lack of micro-movements. The model was trained on a dataset of genuine and spoofed verification attempts.
Transaction velocity scoring computed deviations from per-customer baselines. Each customer's spending patterns (amount, frequency, merchant categories, geographic spread) established a baseline, and transactions deviating significantly were scored for review. Peer-group comparison added context — a transaction unusual for one customer might be normal for their demographic.
Risk-tiered routing sent each signal through a decision tree: low-risk passed automatically, medium-risk queued for expedited review (human checks key fields, not the full application), and high-risk triggered enhanced due diligence with full manual review.
Document classification and OCR
Classify ID type from photo capture, extract fields with per-field confidence scoring. Low-confidence fields trigger targeted review.
- Why this
- Full-application manual review is slow. Per-field confidence scoring means only uncertain fields need human attention, passing the rest automatically.
- What it cost
- OCR accuracy varies by document condition. Worn, glare-affected, or low-resolution captures drop confidence and increase manual review rates. Mitigated by capture-quality feedback in the mobile app.
- TensorFlow
- Tesseract
Liveness detection
Video stream analysis detecting spoofing: screen moiré, photo edges, unnatural lighting, lack of micro-movements.
- Why this
- Identity verification without liveness is trivially defeated by holding up a photo. Liveness is the gate that makes selfie verification meaningful.
- What it cost
- Liveness detection adds friction to the onboarding flow. Kept to a 5-second video capture with clear user instructions to minimise retries.
- TensorFlow
- OpenCV
Transaction velocity scoring
Per-customer baseline deviations combined with peer-group comparison. Transactions deviating significantly from both baselines scored for review.
- Why this
- Static rules miss the per-customer context. A $5,000 transfer is routine for some customers and anomalous for others. Baselines make scoring personal.
- What it cost
- New customers have no baseline. Cold-start period uses conservative peer-group scoring until sufficient transaction history accumulates.
- Python
- PostgreSQL
Risk-tiered routing
Composite risk score routes applications and transactions to appropriate review paths: auto-approve, expedited review, or enhanced due diligence.
- Why this
- Binary approve/reject loses the middle ground. Tiered routing gives compliance teams focus on genuinely high-risk cases while low-risk cases flow through instantly.
- What it cost
- Tier thresholds need regular calibration. Monthly reviews of tier volumes and outcome rates adjust thresholds to maintain both speed and compliance.
- Python
Tech in this section
- TensorFlow
- Python
- Tesseract
- OpenCV
Architecture
Architecture
- Mobile capture SDK guiding users through document photography and selfie video with real-time quality feedback.
- Document processing pipeline: classify → extract → verify → score, with per-step confidence propagation.
- Transaction monitoring service consuming account events and scoring against customer baselines in real time.
- Compliance dashboard showing risk distributions, review queue metrics, and SAR filing status for BSA officers.
The mobile SDK guided users through document capture with real-time quality feedback — edge detection confirmed the full ID was in frame, blur detection requested a retake for out-of-focus captures, and glare detection identified reflective spots obscuring text.
The document processing pipeline ran classification, extraction, verification (cross-referencing extracted fields against third-party identity databases), and risk scoring in sequence. Each step propagated confidence scores forward. The composite score determined the routing tier.
Transaction monitoring consumed account events (deposits, withdrawals, transfers, card transactions) and scored each against the customer's baseline and peer-group norms. Scores above the monitoring threshold generated alerts in the compliance dashboard. BSA officers reviewed alerts, filed SARs when warranted, and their dispositions fed back as training signal.
Tech in this section
- AWS
- Python
- TensorFlow
- PostgreSQL
- React
Stack & Tools
Stack & Tools
- TensorFlow for document classification, OCR field extraction, and liveness detection models.
- Tesseract as the OCR engine with custom post-processing for ID-specific field formats.
- OpenCV for image preprocessing: perspective correction, glare removal, and enhancement before OCR.
- PostgreSQL for customer baselines, transaction history, and compliance audit trails.
- AWS Lambda for event-driven document processing and transaction scoring.
TensorFlow powered the three ML models: document classification (CNN identifying ID type from the photo), field extraction (custom OCR head trained on government ID layouts), and liveness detection (video analysis model trained on genuine and spoofed attempts).
Tesseract provided the base OCR capability, with custom post-processing to handle ID-specific formats: dates in various layouts, address formatting, and document number patterns. OpenCV handled image preprocessing — perspective correction for angled captures, glare removal, and contrast enhancement.
PostgreSQL stored everything auditable: customer profiles, verification results, transaction baselines, monitoring alerts, and BSA officer dispositions. Compliance requires full audit trails, and PostgreSQL's ACID guarantees ensured no verification decision was lost.
Tech in this section
- TensorFlow
- Tesseract
- OpenCV
- Python
- PostgreSQL
- AWS
- Lambda
- React
Industry Applications
Industry Applications
- Digital banking: automated KYC for account opening with instant verification for low-risk applicants.
- Fintech / neobanks: transaction monitoring for BSA/AML compliance without legacy core banking infrastructure.
- Insurance: policyholder identity verification for high-value claims and policy changes.
Automated KYC and transaction risk scoring apply wherever identity verification and financial monitoring are regulatory requirements. The document verification pipeline transfers directly — the ID types change by jurisdiction, but the classify-extract-verify-score pattern is the same. Transaction monitoring adapts to different product types (deposits, lending, insurance) by changing the baseline features and peer-group definitions.
Digital banking
- Problem
- Manual KYC review took 48 hours for new account applications, causing abandonment. Transaction monitoring relied on static rules that missed sophisticated patterns and generated excessive false alerts.
- Approach
- Automated document verification with per-field confidence scoring and risk-tiered routing. ML-based transaction monitoring with per-customer baselines and peer-group comparison.
- Impact
- 80% of applications verified in under 5 minutes, 65% reduction in false-positive transaction alerts, full BSA/AML compliance maintained.
Tech in this section
- Python
- TensorFlow
Results & Evidence
Results & Evidence
- 80% of applications auto-verified in under 5 minutes, down from 48-hour manual review.
- 65% reduction in false-positive transaction monitoring alerts, freeing compliance staff for genuine investigations.
- Zero regulatory findings on BSA/AML compliance in two consecutive examinations.
- 3x increase in daily account opening capacity without adding compliance staff.
The 80% auto-verification rate was the headline metric. Four out of five applicants completed identity verification without any human intervention — the ML pipeline was confident enough in the document extraction and liveness check to approve automatically. The remaining 20% were routed to expedited review (15%) or enhanced due diligence (5%).
The 65% reduction in false-positive transaction alerts was equally impactful. Per-customer baselines meant the system understood that a large transfer was routine for a customer who regularly made similar transfers, rather than flagging it against a static threshold. Compliance officers spent less time dismissing false alerts and more time investigating genuinely suspicious activity.
Auto-verification rate
80%
0% (all manual)80% auto-approved
Applications verified without human intervention.
Verification time
<5 min
48 hoursUnder 5 minutes
For auto-verified applications (80% of volume).
False-positive alert reduction
65%
Rule-based monitoringML-based with per-customer baselines
Freed compliance staff for genuine investigations.
Regulatory findings
0
Zero BSA/AML findings in two consecutive examinations.
Account opening capacity
3x
Daily capacity increase without additional compliance staff.
Tech in this section
- Python
- TensorFlow
Portfolio Links
Portfolio Links
- Greenwood Banking Platform — the full portfolio case study covering the digital banking platform, account management, and financial inclusion mission that this KYC capability supports.
The Greenwood Banking Platform portfolio project covers the full platform architecture. This capability page focuses specifically on the ML-driven compliance pipeline: document verification, transaction monitoring, and the risk-tiered routing that balances speed with regulatory thoroughness.
Greenwood Digital Banking Platform
Launched a digital banking portal serving 100K+ customers in underserved communities.
- Industry
- Fintech
- Role
- Principal Engineer / Architect
Tech in this section
- Python