Selected systems

ML and AI projects

Selected systems Adrian Zevenster has designed, built, or operated across machine learning, AI, cloud infrastructure, and data engineering.

All projects

Document Intelligence & Decisions

Extraction, verification, regression, and auditable decisions from complex documents.

  • KYC Document Verification System

    Built and owned core AI delivery for a source-aware, multi-file verification service spanning utility bills, bank statements, and financial reports.

    Technical details for KYC Document Verification System
    • Modelled verification batches, files, and sources while keeping older single-file flows working during the migration.
    • Connected Gemini and Document AI extraction to Java 21 services, Kafka, Spanner, ClickHouse, and source-aware human review.
    • Kept processing state separate from file and batch decisions, with independent confidence, missing-data, cross-file conflict, and error attribution.
    • Applied document-specific scoring instead of one generic score: weighted customer matching for utility bills, layered header/row/template scoring for bank statements, and weakest-document batch scoring for financial reports.
    • Hardened Kafka consumption and best-effort analytics so model and metrics failures do not silently become business decisions.
    GitHub profile
  • Utility Bill & Electricity Verification

    Built the utility-bill verification path from provider-aware extraction and classification through customer, expiry, forgery, and external-account checks.

    Technical details for Utility Bill & Electricity Verification
    • Combined static and API-sourced electricity-provider registries with fuzzy matching across provider names, prefixes, codes, and aliases.
    • Supported relaxed, strict, and weighted customer-content scoring. Exact and distance-based field comparison complements token overlap, containment, and Jaro-Winkler matching for customer names and addresses.
    • Added auditable external-account validation, document-expiry and metadata-forgery signals, then combined step confidence with configurable weights and manual-review rules.
    • Requested Gemini log probabilities for extraction, converted avgLogprobs with Math.exp, and propagated that document confidence to every extracted field instead of trusting JSON confidence; a configured fallback applies only when log probabilities are unavailable.
    • Converted Gemini classification token log probabilities into per-class probabilities and classification confidence, and added four electricity-bill golden cases to fixture, replay, and live-model regression suites.
    Related repositories
  • Financial Report Extraction & Batch Scoring

    Built financial-report extraction and confidence aggregation using Gemini log probabilities, configurable thresholds, and batch-level decision persistence.

    Technical details for Financial Report Extraction & Batch Scoring
    • Built a schema-constrained, layout-aware extraction contract for Nigerian audited statements and management accounts, with prompt-injection checks and source-grounded field rules.
    • Handled retries, response parsing, date and currency normalisation, mandatory-field checks, and typed errors in one auditable extraction result.
    • Converted chosen-candidate log probabilities into document confidence using Math.exp(meanLogProbability).
    • Scored each batch from its least-confident document; missing document scores hard-fail, while low confidence or missing/conflicting mandatory fields produce auditable PASS, SOFT_FAIL, or HARD_FAIL decisions.
    • Persisted a separate decision for every file: MISSING_DATA takes precedence over CONFLICTING_DATA and SUCCESS, without overwriting processing-failure state.
    Related repositories
  • Gemini Entity Extraction Regression Framework

    Created a manifest-driven quality system with 19 golden cases and 17 suite configurations across electricity bills, bank statements, and financial reports.

    Technical details for Gemini Entity Extraction Regression Framework
    • Added FIXTURE, REPLAY, and LIVE_GEMINI modes for quick parser checks, stored-response tests, and live provider checks.
    • Matched OCR-heavy fields with semantic date, currency, identifier, and reference normalisation plus Jaro-Winkler similarity.
    • Set case and suite gates for pass rate, precision, recall, F1, exact match, confidence, latency, missing or unexpected fields, and prompt drift.
    • Generated JSON and Markdown diagnostics with prompt hashes, raw-response capture, field deltas, and a seven-mode failure taxonomy.
    Related repositories
  • Bank Statement Transaction Extraction

    Built auditable header, transaction, stamp/signature, and validation paths for large, inconsistent bank-statement PDFs and images.

    Technical details for Bank Statement Transaction Extraction
    • Cross-checked account details, balances, transaction counts, and the 90-day date window against the core banking API.
    • Built a bounded fan-out/fan-in path for selected PDF pages using Java virtual threads and CompletableFuture, isolating page failures before a deterministic page-order merge.
    • Scored header fields from presence, parseability, and structure; scored transaction rows from core and rich-field coverage; and calibrated both with a document-level model probability.
    • Selected a document-wide RICH or LITE template from multipage probes using row coverage, confidence, parse success, and rich-field evidence.
    • Added alternate-template rescue passes scored by confidence, row yield, and page-failure rate, plus salvage-aware truncated-output parsing and metrics for sanitised or rejected values.
    Related repositories

Private & Governed AI

Privacy boundaries, governed generation, safe routing, and reviewable health evidence.

  • RedStrings Secure Generative Media Platform

    Built and evolved an isolated Google Cloud baseline into an operating, IAP-protected workflow for confidential image and video production, with separate manager, artist, review, and evidence boundaries.

    Technical details for RedStrings Secure Generative Media Platform
    • Deployed a manager portal and a separate roster-gated artist workbench on Cloud Run behind IAP, using group-only access, keyless runtime identities, digest-pinned images, and protected configuration.
    • Automated UUID-routed intake from controlled Drive folders on a two-minute schedule, with ordered named readers, recursive bounded discovery, stable-byte verification, and create-only receipts.
    • Advanced the versioned ledger through retained-prompt attestation, Vertex audit claims, exact object generations and hashes, independent Drive approval, and exact-version promotion.
    • Added manager-authorized, linear local edits with immutable lineage and current-leaf-only approval, while keeping model invocation, Drive write access, approval, and ledger-head mutation out of the artist service.
    • Backed the platform with 34 architecture decisions, 23 operator runbooks, and 238 passing automated tests across infrastructure, identity, media custody, provenance, and recovery controls.
  • Auditable Multi-label Text Routing Service

    Built an auditable text classifier for medical, shopping, reminder, and other intents, with stricter handling for medical misses.

    Technical details for Auditable Multi-label Text Routing Service
    • Kept the domain layer independent of FastAPI and storage through Protocol-based ports.
    • Tuned for at least 98% medical recall before optimising F1, with an abstention zone for uncertain inputs.
    • Compared 16 TF-IDF and regularisation variants on validation data and reported calibration with confidence intervals.
    • Protected model artifacts and decisions with Ed25519 signatures, encrypted SQLite, and hash-chained audit logs.
    • Defined a consent-based flow for capture, de-identification, annotation, review, and export.
    GitHub profile
  • CueSense Private AI Memory and Planning System

    Designed an on-device Gemma 4 assistant that connects chat, notes and calendars to reviewed actions, project scheduling, recurring commitments and effort-aware planning. Available for iOS on the App Store and Android on Google Play.

    Technical details for CueSense Private AI Memory and Planning System
    • Integrated Gemma 4 E2B as CueSense Rock and E4B as CueSense Boulder, with explicit model selection, memory checks, verified downloads and bounded native task profiles.
    • Built connected Cue with Chat, My notes and Calendar modes, cited sources, conversation follow-ups and permission-aware calendar context.
    • Connected chat to typed source lookup, availability and reminder/calendar tools. Users review and confirm saves; current records, conflicts and retry-safe identities constrain the write boundary.
    • Shared multi-action Capture and Cue review, including finite daily, weekday and selected-day series with per-occurrence conflict checks and preserved history.
    • Added planned effort estimates, actual ratings after explicit completion, daily capacity check-ins and local predictions that keep recorded ratings distinct from estimates.
    • Built project plan creation from Chat, Capture and Projects: editable milestones, tasks and dependencies, then reviewed scheduling within confirmed durations, deadlines and weekly time budgets.
    • Retained on-device mobile inference, authenticated private Ollama web inference, source provenance and the custom router’s separate human-validation and promotion requirements.
    See how a study request becomes a proposed calendar series · Download CueSense on the App Store · Get CueSense on Google Play
  • Clinical Assessment Platform

    Built a self-hosted clinician reporting workspace that follows a questionnaire through review, a signed PDF and a workbook the patient can use between visits.

    Technical details for Clinical Assessment Platform
    • Kept six occupational therapy questionnaires in a versioned practice pack. Fifteen separate specialty report pilots support patient entry, clinician-led interviews or clinician-verified results from an authorised form.
    • Built questionnaire invitations that expire after seven days. A returned form appears in the issuing clinician’s inbox. For an externally administered assessment, the clinician verifies the results against the returned PDF.
    • Preserved the original submission, the reviewed wording and each signed PDF revision. A released patient workbook stays attached to the exact revision the clinician shared.
    • Connected browser, Android and iOS clients to the same practice service. A patient can keep journal observations private and share individual entries with the signing clinician.
    Read the clinician reporting case study · Watch the clinician UI
  • CareLog Medical Assistant

    Built a multimodal health-record engineering reference that turns patient-provided evidence into a reviewable timeline and evidence-linked clinician report without diagnosing, prescribing, or silently promoting model output to fact.

    Technical details for CareLog Medical Assistant
    • Connected typed check-ins, browser-recorded voice, uploaded documents and images, OCR, timestamped transcription, optional diarization, and device observations through immutable provenance contracts.
    • Kept machine transcripts, append-only user corrections, proposed facts, and confirmed timeline entries separate; only confirmed evidence can enter retrieval or reports.
    • Built tenant-scoped PostgreSQL and pgvector retrieval with lexical and dense fusion, recency scoring, row-level security, and an outbox that dead-letters persistently failing indexing work.
    • Generated clinician-facing HTML, PDF, and FHIR R4 reports whose statements cite source evidence; unsupported output is discarded and can fall back to deterministic evidence-linked reporting.
    • Protected artifacts with AES-256-GCM envelope encryption, tenant-bound associated data, OIDC scopes, production-blocked development identity, and append-only hash-chained audit events.
    • Verified 53 Python tests with eight live-integration skips, a 10-case report-quality evaluation, and a 52-query offline retrieval evaluation while retaining the current lint, type-check, and clinical-validation limitations.

Data Platforms & Forecasting

Migration, forecasting, customer intelligence, and dependable data foundations.

  • Teradata / ODI to BigQuery Migration Accelerator

    Built an evidence-bound modernization platform spanning live ODI discovery, guarded repository changes and execution, Teradata conversion, Dataform promotion, and reconciled BigQuery validation.

    Technical details for Teradata / ODI to BigQuery Migration Accelerator
    • Built Java 21 ODI SDK flows for live catalogue and extraction, create-only mapping and package replay, BigQuery retargeting, refactor planning, scenario generation, execution, and mandatory post-run reconciliation.
    • Separated every write behind a reviewed plan, exact SHA-256 approval, explicit operator authorization, transaction-local validation, and semantic or structural read-back before commit.
    • Connected an IAP-protected Streamlit control plane to private environment runners through signed immutable bundles, Pub/Sub, Cloud Storage, Secret Manager, durable execution identities, and hash-chained lifecycle evidence.
    • Generated Dataform Core 3 projects from live ODI and Teradata evidence, then gated atomic publication, exact-commit compilation, promotion, and one-time invocation through readiness checks and compilation-pinned manifests.
    • Closed the loop with deterministic and Vertex-assisted conversion, synthetic relational data, BigQuery dry runs, source-to-target fingerprints, and row-free golden cases instead of treating translated SQL as the finish line.
  • Floriculture Data & Forecasting Platform

    Built an end-to-end analytics and forecasting foundation that turns heterogeneous operational workbooks into governed BigQuery data products and hierarchy-coherent forecasts on Vertex AI.

    Technical details for Floriculture Data & Forecasting Platform
    • Implemented scheduled Drive-to-Cloud Storage intake with validation, quarantine, unchanged-file detection, operational alerts, and 12 source-specific Excel parser modules feeding BigQuery.
    • Modelled staging, dimensional, fact, feature, forecast, accuracy, and dashboard layers in Dataform; the largest delivery branch contains 140 SQLX assets across those layers.
    • Packaged a 26-week KFP forecast job that selects AutoARIMA, AutoETS, SeasonalNaive, or WindowAverage per weekly series and reconciles nine planning levels with MinTrace, BottomUp, or TopDown.
    • Added seasonal shaping that preserves hierarchy totals, a flat-parent-forecast guardrail, run-level BigQuery lineage, and documented evaluation by hierarchy rather than only at the aggregate.
    • The latest documented run reported 11.92% parent-level WMAPE and 15.82%-23.22% across intermediate levels; the deepest grain scored 26.82% across 267 series and 8,253 points.
  • Forecasting & Customer Intelligence Systems

    Delivered classification, segmentation, customer-behaviour, and demand-forecasting models across fintech, retail, agriculture, and supply-chain domains.

    Technical details for Forecasting & Customer Intelligence Systems
    • Built boosted tree regressors, ARIMA+ pipelines, feature-rich customer-variety historical models, and production monitoring dashboards.
    • Supported ingestion, feature engineering, evaluation, deployment, CI/CD, and operational monitoring for ML systems.
    GitHub profile

Interactive Products

Interactive products for decision support, data analysis, and 3D learning.

  • Psychiatry Practice Website

    Built a patient-facing psychiatry practice website where visitors can prepare for an appointment, explore anatomy, use private wellbeing tools and contact reception.

    Technical details for Psychiatry Practice Website
    • Made patient guides searchable by topic, with stable links for sharing an individual guide. Contact forms preserve the visitor’s message when delivery fails and offer direct contact options.
    • Built seven interactive tools. Thought Explorer, Grounding Space, ADHD Task Starter and a mood, sleep and energy diary work alongside the three anatomy explorers. Diary, task and reflection exports run on the visitor’s device.
    • Connected reference-based 3D brain, nerve and muscle models to guided activities. Named regions, layer controls and movement playback let visitors explore at their own pace.
    • Added occupational therapy consent and six assessment forms, with a private staff reader for the saved responses, scoring rules and PDFs.
    Read the illustrated build story
  • CueSet Atlas

    Built a 3D anatomy explorer for the brain, nerves and muscles. Explore it on the web or use it offline on Android.

    Technical details for CueSet Atlas
    • Explore cortical and deep brain structures, trace named nerves and illustrative sensory and reflex paths, and replay how a motor signal relates to a muscle movement.
    • Run one React and Three.js build across the browser, Android, and iOS. The native projects bundle the build and model assets for offline use.
    • Load each atlas on demand, release WebGL resources when leaving a scene, and keep labelled diagrams and selections available when WebGL is unavailable.
    • Keep anatomical reference geometry, illustrative pathways, licences, and provenance inspectable in the app. Export the current view as a PNG using platform-native controls.
    Get CueSet Atlas on Google Play · Watch the Atlas walkthrough · Open CueSet Atlas on the web
  • F1 Driver Intelligence: Real-time Coaching Platform

    Built a real-time Formula 1 decision-support and coaching platform that turns telemetry, race history, and circuit evidence into confidence-calibrated guidance for drivers and engineers.

    Technical details for F1 Driver Intelligence: Real-time Coaching Platform
    • Split tyre, telemetry, weather, ERS, safety-car, and fuel analysis into six specialist agents with classifier and deterministic fallback paths, then fused their findings into audience-specific insights.
    • Grounded analysis and chat in FastF1, OpenF1, Jolpica, and curated 24-circuit notes through BM25, optional dense retrieval, Qdrant, circuit/topic priors, and hot-versus-cold season tiers.
    • Calibrated alerts with isotonic regression and a feedback-activated HistGradientBoosting meta-model, while keeping critical display, driver/engineer thresholds, and circuit-precision suppression outside the optional LLM narrative.
    • Built an ML flywheel around incident and quiet-stint labels, synthetic cold starts, weighted real samples, transfer-lift gates, versioned snapshots, drift detection, shadow evaluation, and explicit model promotion.
    • Added historical and live replay, undercut and tire-cliff analysis, Monte Carlo projections, strategy comparison, delivery integrations, model operations, Prometheus telemetry, and an interactive React cockpit.
    • Current local verification passes 274 of 278 unit tests and the frontend production build; four crosswind/telemetry tests, one Ruff finding, and the full replay rerun remain open.
    GitHub: adrianzevenster/driver-intelligence
  • LLM-Powered Data Analysis Platform

    Built a data-analysis agent that bounds LLM planning with 33 schema-validated tools and deterministic fallback. The same workflow retrieves evidence with FAISS and BM25, trains and evaluates models, and serves promoted models with ONNX Runtime.

    Technical details for LLM-Powered Data Analysis Platform
    • Ingested CSV, Excel, Parquet, JSON, PDF text, and image OCR, plus PostgreSQL, SQLite, and bounded URL imports; background EDA produces a proactive insight card with an LLM or rule fallback.
    • Routed explicit requests deterministically, used semantic routing for paraphrases, and bounded optional OpenAI-compatible planning with real schemas, repair, deduplication, multi-step continuation, and deterministic fallback.
    • Registered 33 typed tools spanning profiling, quality, SQL, visualisation, anomalies, clustering, relationships, trends, hypothesis tests, causal analysis, fairness, cross-dataset analysis, and ML evaluation.
    • Built supervised training, scoring, evaluation, experiment tracking, champion promotion, ONNX serving, drift detection, forecasting, SHAP, PDP/ICE, what-if analysis, segment evaluation, calibration, and conformal uncertainty.
    • Combined local embeddings, FAISS, BM25, cross-encoder reranking, optional HyDE, citations, semantic annotations, and feedback promotion into a persistent analytical context layer.
    • Exposed streaming FastAPI workflows and a React interface, with LLM latency/error/repair/fallback metrics, sampled groundedness judging, Docker delivery, and CI gates. The repository defines 486 default-selected tests plus two opt-in evaluations.
    GitHub: adrianzevenster/data-analyst-agent