React Native + Expo
Profiles, camera flow, verification, trends, consent, and referral UI.
→Technology
NeoScan separates fast on-device document work from server-side computer vision, WHO analytics, secure records, and audit logging.
Architecture
Each layer has a focused job. The diagram presents the specified design, not a claim that production infrastructure is already deployed.
Profiles, camera flow, verification, trends, consent, and referral UI.
→Document edges, auto-crop, perspective correction, and squared JPEG output.
→Orientation, contrast, shadow handling, and HSV pen-mark separation.
→Chart axes, curves, plot points, and handwriting-noise detection.
Authentication, inference orchestration, analytics, flags, and reports.
→Sex-specific, day-precise reference lookup and Z-score calculation.
→WHO tables, patient records, scans, flags, referrals, and audit trails.
→Verified trends, review flags, offline sync state, and consented sharing.
Why this split
The SRS keeps Google ML Kit work on-device and moves YOLOv11 to FastAPI to reduce heat, memory pressure, and hardware-driven accuracy variation.
Target for local edge detection and rectification after capture.
Target for upload, inference, WHO calculation, flag evaluation, and response over standard 4G.
Specified ceiling for normal mobile-client operation.
These are design targets from the June 2026 draft SRS, not measured results.
Technical stack
One iOS and Android codebase, with Expo-managed integration and SVG chart rendering.
On-device corner detection, auto-crop, perspective correction, and document-squared image output.
Adaptive thresholding, orientation normalization, and HSV masks that separate pen marks from printed curves.
Custom model training for the Kenya MOH chart format and multi-class element detection.
Python API gateway, authentication, inference, WHO analytics, anomaly rules, logging, and report generation.
Relational storage for reference tables, growth records, consent, referrals, immunization requirements, and immutable audit events.
Computer vision pipeline
The model is constrained to the Kenya MOH Road-to-Health chart format. A different print layout requires coordinate recalibration and potentially new model training.
Read EXIF and structural anchors, then rotate upright.
Correct skew, crop the chart, and mitigate lighting artifacts.
Mask blue or black pen marks before object detection.
Find axes, percentile curves, plot points, and text noise.
Translate local pixel positions into age and measurement values.
Encrypted SQLite holds scans and metadata temporarily.
Synchronization architecture
When several scans are queued, the backend is specified to process them in time order and preserve the original capture time for flags and audit history.
Images are resized to a maximum width of 1920 pixels and targeted at 80–85% JPEG quality to protect grid-line detail on limited bandwidth.
Security architecture
The SRS defines these as architecture requirements under Kenya’s data protection framework.
Evidence behind the architecture