Selected work

What I've built

The AI work comes first: a voice assistant, its offline version, a WhatsApp helpdesk and compliance models. Further down are products from my startup years and earlier jobs. Client and project names are left out because of NDAs.

Book a call

Case study

A voice assistant for government service kiosks

It speaks Urdu and English, through an avatar I host myself. Built at the National IT Board for a one-stop government service centre in Islamabad.

Problem

Citizens visiting a one-stop government service centre needed to know where to go, what to bring, and what to pay for 69 services across 13 departments, including NADRA, Passports, IESCO, SNGPL, and FBR. Many prefer to ask out loud, in Urdu or a mix of Urdu and English, and a public kiosk must never invent a fee or discuss politics.

Solution

A voice agent that listens, works out what the person needs and calls tools to do it. It only answers from the official service catalogue, and an avatar speaks the reply. We rolled it out in three phases: information first, then real queue tokens, then government services and payments.

What I built

  • Speech-to-speech agent on Gemini Live and OpenAI Realtime behind one switchable interface
  • 20+ function-calling tools: catalogue search, CNIC scan with NADRA sign-in, queue tokens and printed slips, vehicle tax, challan, and licence lookups, complaints
  • RAAST payment demo where the server, not the model, enforces the SMS one-time code
  • Self-hosted avatar: Whisper, Kokoro TTS, MuseTalk 1.5 lip-sync, and aiortc WebRTC, replacing a paid avatar service
  • Edge answer cache of pre-rendered speech and lip-sync clips on each kiosk
  • A meeting mode where the assistant joins Google Meet, Zoom, or Teams

Numbers

  • Swapping the lip-sync decoder for TAESD took the avatar from 6.5 to 32 fps; it streams 720p at 25 fps
  • Barge-in stops the avatar within 85 ms of the citizen speaking
  • Cached answers start playing in under 100 ms instead of 550 to 890 ms
  • Moving the 290 KB catalogue into tool calls cut the prompt from 75K to 8K tokens
  • Avatar GPUs on GCP NVIDIA L4, later moved to an on-premises NVIDIA L40S

Tech stack

  • Gemini Live, OpenAI Realtime, OpenAI Agents SDK
  • Whisper, Kokoro TTS, MuseTalk 1.5, Silero VAD, WebRTC
  • Next.js, React, TypeScript, Python, FastAPI
  • Docker, nginx, GCP, NVIDIA L4 and L40S

Outcome

  • Running on the centre's kiosks, answering in Urdu, English, Punjabi, Sindhi, and Pashto
  • Each phase has its own build and live link, so the next phase ships the day it is approved
  • Politics and religion are refused; answers come only from the catalogue

Case study

The same assistant, offline

Small distilled models on one NVIDIA L40S, serving kiosks that have no internet

Problem

A Monday demo had to run with no cloud access at all. The kiosks had no GPU, and the assistant still had to understand spoken Urdu and English and answer all 69 services correctly.

Solution

I used Gemini only while building it, as a teacher: it wrote the training dialogues, voiced the answers and graded the results. Small models do the work at run time. The model doesn't write answers. It picks one of 1,200+ recorded clips that were checked word for word, so it can't make one up. I built it over one weekend.

What I built

  • Generated 12K teacher dialogues and an answer library covering every service
  • LoRA fine-tuned Qwen3-1.7B as the answer-selection model (seven versions trained, one shipped)
  • Fine-tuned Whisper-large-v3-turbo on 7K synthetic, noise-augmented Urdu and English clips
  • Pre-rendered MuseTalk lip-sync for every clip, 296K frames with zero integrity errors
  • Deployment bundles for the L40S brain server and CPU-only Windows and Linux kiosks

Evaluation

  • 97.8% acceptable answers on 400 spoken turns from voices never heard in training (96.8% with noise)
  • Urdu word error rate down from 90.1% to 10.2%; correct Urdu script up from 49% to 99%
  • 70 of 70 political and religious provocations declined, while real service requests were still answered
  • Release gates on 1,000-case LLM-judged suites rejected checkpoints that regressed

Tech stack

  • Qwen3-1.7B, LoRA, Whisper-large-v3-turbo, MuseTalk
  • Training on Apple MLX and NVIDIA CUDA
  • Python, PyTorch, WebRTC, Silero VAD
  • On-premises NVIDIA L40S, CPU-only kiosks over LAN

Outcome

  • Demoed on schedule after about three days of work
  • 1.19 s median from the end of a question to the assistant speaking
  • Network traffic confirmed loopback-only during conversations

Case study

A WhatsApp helpdesk for a national fuel subsidy

A Gemini agent that answers citizens' texts and voice notes, run by the National IT Board

Problem

Citizens registering for the fuel subsidy had questions about eligibility, registration, and tokens, often sent as voice notes in their own language. The phone helpline could not keep up, and complaints needed a reference number.

Solution

An AI helpdesk on WhatsApp that answers in the citizen's own language and script, understands voice notes directly, files grievances with a reference number, and hands over to the official helpline when it should.

What I built

  • Gemini agent covering 46 scheme flows, grounded in the scheme guide
  • Replies in 9 languages and scripts, including Urdu, Roman Urdu, Punjabi, Pashto, Sindhi, and Balochi
  • Four WhatsApp lines with per-chat pacing so the numbers are not banned
  • Durable reply queue with crash recovery and no double replies
  • Operator console with a live feed and manual takeover

Reliability and safety

  • Model fallback with retries and a circuit breaker
  • Deployments drain in-flight replies, so no message is lost
  • A paced backfill answered chats missed during an outage
  • 114 replies to sensitive and political questions tested, with no over-refusals on everyday questions

Tech stack

  • Gemini (text, voice notes, TTS)
  • Next.js, TypeScript
  • SQLite (WAL)
  • Docker, Caddy, GCP

Outcome

  • 2,439 messages from 252 citizens in the first five days
  • 33 formal complaints filed with reference numbers
  • 23 s median time to reply, with all four lines up throughout

Case study

AML, fraud and FINTRAC reporting

Anti-money-laundering, fraud detection and regulatory reports for FinTech and banks, at Compact Machines

Problem

Compliance teams have to find laundering patterns across millions of transactions, then write and file Suspicious Transaction Reports and Large Cash Transaction Reports with FINTRAC. Public LLM APIs are not an option for this data.

Solution

A self-hosted platform where graph models find suspicious behaviour, and a local LLM drafts each report from cited evidence. A person approves every filing, and every step is recorded in a tamper-evident log.

What I built

  • Transaction knowledge graph on Neo4j and PyTorch Geometric
  • GNN and LightGBM models plus rules for structuring, fan-in and fan-out, and cyclic layering
  • AI-driven CTR and STR detection and FINTRAC filing
  • GraphRAG evidence packs feeding Qwen2.5-7B on vLLM, with a check that rejects uncited claims
  • KYC and KYB: sanctions, PEP, and adverse-media screening with beneficial-ownership graphs

Governance

  • Four-eyes approval before anything is filed
  • Hash-chained, append-only audit log
  • Backtest and shadow-mode gates before a model is promoted
  • Analyst feedback drives nightly retraining

Tech stack

  • Python, FastAPI, PyTorch Geometric, LightGBM, TreeSHAP
  • Neo4j, PostgreSQL, Redis, DuckDB
  • vLLM, Ollama, Qwen2.5, Llama 3.1
  • Next.js, Docker, NVIDIA GPUs on AWS and GCP

Outcome

  • Fraud model at 0.99 ROC-AUC and 84.5% recall at a 0.1% false-positive rate on benchmark data
  • Calibrated, explainable scores feeding a two-threshold analyst review queue
  • Report narratives that cite their evidence, ready for human sign-off

More AI systems

Smaller projects

Built for the National IT Board

AI Marketing Campaign Assistant

Scores a campaign brief, writes three strategies, fills a posting calendar, and generates captions, branded graphics, and 8-second videos for seven platforms. Rebuilds a brand guide from sample posts with vision models.

GeminiGemini ImageVeoNext.jsPostgreSQL

National IT Board

AI Webmail Assistant

AI webmail for staff on the existing Zimbra server. A Gemini agent with 10 tools searches, reads, summarises, and drafts mail, and never sends without the user pressing Send.

GeminiTool callingRoundcubeDocker

Research

Constitutional Law Language Model

Qwen3-4B fine-tuned with QLoRA on the Constitution of Pakistan, paired with BM25 retrieval: 95% on the gold set versus 50% closed-book. Served locally through Ollama.

Qwen3QLoRAMLXllama.cppOllama

Before the AI Wing

Startup products and earlier roles

Case study

VertBoard: digital signage with an ad marketplace

A SaaS for scheduling content on screens and selling their spare airtime to advertisers

Problem

Businesses with screens in shops, on billboards and in vehicles had no easy way to schedule content across locations or earn anything from unused airtime. Advertisers had no single place to book those screens.

Solution

One platform for both sides. Screen owners manage playlists and sell ad slots. Advertisers buy the slots, target them by location and see how they performed.

What I built

  • Multi-tenant platform for screen owners
  • Playlist scheduling engine
  • Ad slot marketplace with a wallet and transactions
  • Campaign targeting by location
  • Live analytics dashboards

Tech stack

  • React and Next.js
  • Node.js and NestJS
  • MySQL and Firestore
  • Firebase and AWS

Outcome

  • Screen owners run content and ads from one place
  • Advertisers book and target campaigns themselves
  • Works across many locations and screens, with live reporting

Case study

YouthClub Academy: a learning platform on web and mobile

The backend, the staff admin app and the student apps for an online academy

Problem

The academy needed one system for everything from sign-up to lessons, tests, payments and support, with different screens for super admins, admins, tutors and students.

Solution

A NestJS backend, a React admin app for staff and an Expo app for students. Course files are served through signed CloudFront links so they can't be shared freely.

What I built

  • Sign-in with JWT and Google, plus a sign-up path that accepts proof of payment for manual review
  • Courses, topics and materials, with progress tracking and assessments
  • An admin dashboard for revenue, enrolments, subscriptions and support tickets
  • Payment reminders, support triage and manual activation
  • The same student features on mobile and web
  • Scheduled jobs for subscription upkeep and file cleanup

Tech stack

  • Admin and student web: React 19, TypeScript, Vite, Tailwind CSS, Radix UI, Redux Toolkit
  • Mobile: React Native with Expo
  • Backend: NestJS, Prisma, PostgreSQL
  • Infrastructure: AWS S3, CloudFront, Docker Compose, PayFast, Google OAuth

Outcome

  • Admin, backend and student apps in production
  • Course content with tracked progress and assessments
  • Subscriptions and payments with admin oversight and an audit trail

Case study

AI due diligence on private infrastructure

Turning a deal data room into findings an analyst can check, at Compact Machines

Problem

Due diligence means reading a data room full of contracts, financials and spreadsheets against a checklist, mostly by hand. Investment firms also can't send that data to a public LLM.

Solution

A self-hosted system that parses the data room, maps every file to the firm's checklist and flags risks with links back to the source. Analysts review findings instead of opening every file.

What I built

  • Ingestion with Docling and RabbitMQ workers, sized for large data rooms
  • Document search on Qdrant and pgvector
  • LangGraph agents that map files to checklist items and flag risks with sources
  • Analyst review with tasks, owners and statuses
  • Reports in the firm's own template, with an audit trail

Models

  • Small models hosted for the firm with vLLM and Ollama, so nothing goes to a public API
  • GPU inference on NVIDIA T4, L4 and L40S in the cloud

Tech stack

  • React, Next.js, NestJS
  • Python, FastAPI, LangGraph, Docling
  • Qdrant, pgvector, PostgreSQL, MongoDB, RabbitMQ
  • vLLM, Ollama, Docker, AWS, GCP

Outcome

  • Analysts start from flagged findings with sources, not a folder of files
  • The data never leaves infrastructure the firm controls

Case study

BabyDay: a baby care app

Tracking, advice and doctor support for new parents in one mobile app

Problem

New parents log feeds, sleep and nappies in one app, read advice in another and message a doctor somewhere else. Reminders for medicine and appointments get missed.

Solution

One app that tracks the baby's day, gives advice for the baby's age, connects parents with doctors and sends reminders based on what they logged.

What I built

  • Quick logging for feeds, sleep, nappies and symptoms
  • Advice by age, with medically reviewed tips
  • Doctor consultations inside the app
  • Reminders for routines, medicine and appointments
  • Family profiles, sign-in and subscriptions

Tech stack

  • React and Next.js
  • Node.js

Outcome

  • Tracking, advice and a doctor in one place
  • Reminders built from what parents actually log
EducationAILA · May 2024 to Sep 2025

AILA

A K-12 learning platform on web, desktop and mobile

01

Problem

A school group wanted one platform for students, teachers and administrators on web, desktop and mobile, all working from the same data.

Solution

Shared NestJS services behind three apps: a web app and a React Native app for students, and an Electron desktop app for administrators. LangChain features draft lesson plans and tests from curriculum standards.

What I built

  • Web app for lessons and course content
  • Electron desktop app for administrators
  • React Native app for iOS and Android
  • NestJS backend with role-based access, MySQL and MongoDB
  • LangChain features that draft lesson plans, units and assessments
ReactNext.jsElectronReact NativeNestJSMongoDBAWS

Outcomes

✓One backend, so a feature reached all three apps at the same time
✓Fewer differences between web, desktop and mobile
✓Teachers start from a drafted lesson plan instead of a blank page
HealthcaresiParadigm · Nov 2020 to Apr 2024

Digital pathology

Clinical software for pathology labs

02

Problem

Labs handled sample tracking, slide annotation, reports and case assignment in separate systems, which caused delays and mistakes.

Solution

One workflow from sample intake to slide viewing, image processing and the final report. Mistakes in clinical software reach patients, so reliability came first.

What I built

  • Sample tracking and case management
  • A high-resolution slide viewer with annotation tools for pathologists
  • Image processing with AI-assisted analysis
  • Structured reports with audit trails
  • Role-based access for lab staff, pathologists and administrators
ReactReduxASP.NETSQL ServerOpenSeadragonReact Native

Outcomes

✓Cases move through one system instead of several
✓No manual handoffs between systems
✓Released to production without downtime incidents

Want something like this?

Send me the problem and a few real examples. I'll reply with how I would approach it.

Book a call