AI Engineer at Contech International, Lahore, Pakistan

Hussain Raza Shah Jaffery

I engineer AI that hears, reads and reasons.

Speech, document and language AI for IMC Hospital, running on the hospital's own GPUs, with the FastAPI backends and automations that put it to work.

Portrait of Hussain Raza Shah Jaffery
Scroll

How my systems work

Everything I build runs the same loop: perceive the input, reason about it, act on it. Pick a project to follow its path through the engine.

orchestration.engine / running

signal → decision → action

Input

Voice

Urdu and English dictation

Documents

lab-report PDFs and scans

Email and web

Gmail inbox and web forms

Perceive

speech, text, catalogues

  • Google MedASR
  • Groq Whisper
  • Docling OCR
  • Gmail API
  • RapidFuzz matching

Reason

decide, route, review

  • MedGemma 27B
  • MedGemma-4B
  • GPT-4o-mini
  • Gemini + Claude, LangChain
  • Schema validation

Act

services and workflows

  • FastAPI services
  • n8n workflows
  • Edge TTS voice

Output

EMR record

7 fields, doctor-approved

Doctor summary

in the inbox before the call

Spoken reply

Urdu, in real time

Drafted reply

routed to the right desk

Escalation

anything open for 24 hours

MedScribe AI. A doctor's dictation is transcribed, every drug and test is matched to the hospital catalogue, MedGemma 27B reviews the prescription, and the validated record is saved to the EMR.

Five systems, built for real users

Scroll to move through them. Select one to open its case study.

01 of 05

MedScribe AI

IMC Hospital, through Contech International

Turns a doctor's voice dictation into a structured clinical record, with an AI safety review of every prescription.

One 30-second dictation fills all 7 fields of the patient record.

  • Python
  • FastAPI
  • PyTorch (CUDA)
  • Google MedASR
  • MedGemma 27B
  • RapidFuzz
POST /clinical/transcribe-url200 OK in 1.8 s
{
  "success": true,
  "vitals": { "bp": "122/78", "pulse": 72 },
  "history": "Sore throat, mild fever, 3 days",
  "allergies": "No known drug allergies",
  "examination": "Chest clear, throat red",
  "diagnosis": "Acute URTI",
  "medicines": [
    { "name": "BRUFEN 400MG TAB", "catalogue_match": true }
  ],
  "lab_tests": ["CBC", "TSH"],
  "safety_review": "passed"
}

02 of 05

Smart Query Routing

Final year project, Virtual University of Pakistan

Reads incoming web and email queries, sends each one to the right department, and drafts a reply for staff to send.

Queries are classified, routed and drafted without anyone sorting the inbox by hand.

  • Python
  • FastAPI
  • React
  • Tailwind CSS
  • Supabase (PostgreSQL)
  • LangChain
  • Fee deadline?Accounts
  • Transcript requestExams
  • Change my courseRegistrar
  • Gemini classifies and drafts; Claude and keyword rules stand by as fallbacks.

03 of 05

Lab Report Extraction

IMC Hospital telemedicine, through Contech International

Turns unstructured PDF lab reports into structured clinical summaries that reach the doctor before a telemedicine consultation.

Every lab report reaches the doctor as a structured, verified summary before the call.

  • Python
  • FastAPI
  • n8n
  • Docling OCR
  • MedGemma-4B
  • Supabase
  • Haemoglobin13.2 g/dLNormal
  • ALT64 U/LHigh
  • LDL cholesterol162 mg/dLHigh
  • Sample values, verified by a doctor before use

04 of 05

University ERP and LMS

GHURKI University

A self-hosted platform that runs a university's whole student lifecycle, from admission to degree completion.

Admissions, fees, academics, exams and the LMS working as one system.

  • Frappe Framework
  • ERPNext v15
  • Frappe Education
  • Moodle 4.5
  • MariaDB
  • REST APIs

05 of 05

Dr. Sara

IMC Hospital, through Contech International

An Urdu-speaking voice agent that takes a patient's medical intake before the consultation.

A real-time voice conversation in Urdu, end to end.

  • Python
  • Pipecat
  • Groq Whisper
  • GPT-4o-mini
  • Edge TTS
  • n8n

آپ کو بخار کب سے ہے؟When did the fever start?

تین دن سےFor three days

Also in progress: Computer-vision monitoring that measures workstation idle time from camera feeds using open-source vision models, with object-pickup alerts as the next phase.

Intern to AI engineer in five months

Contech International Health Consultants, Lahore, on-site. I build the healthcare AI that IMC Hospital runs every day.

  1. AI Engineer

    Jul 2026 – present
    • Built MedScribe AI and moved its speech and language models onto the hospital's own GPU server.
    • Delivered the lab-report extraction pipeline used in IMC Hospital's telemedicine service.
    • Structured the AI services as isolated FastAPI microservices, orchestrated with n8n.
  2. AI Engineering Intern

    Feb 2026 – Jun 2026
    • Built Dr. Sara, the Urdu voice agent for patient intake.
    • Prototyped medical LLM inference on Vast.ai cloud GPUs before the move to on-premise hardware.
    • Set up a university ERP and LMS on Frappe ERPNext, Frappe Education and Moodle, covering admissions, fees, academics and exams.

The stack, in motion

Hover over any tool. Every one of them is used in the systems above.

Speech and language AI

  • Google MedASR
  • Groq Whisper
  • MedGemma 4B and 27B
  • GPT-4o-mini
  • Google Gemini
  • Anthropic Claude
  • LangChain
  • Pipecat
  • Edge TTS
  • Docling OCR
  • Prompt engineering

Backend and automation

  • Python
  • FastAPI
  • Pydantic
  • REST APIs and webhooks
  • n8n
  • Gmail API
  • Google OAuth2
  • RapidFuzz
  • React
  • Tailwind CSS

Infrastructure

  • On-premise GPU deployment
  • PyTorch (CUDA)
  • Ollama
  • Docker
  • Linux servers over SSH and VPN
  • Vast.ai
  • Vercel
  • Git and GitHub

Data and platforms

  • PostgreSQL
  • Supabase
  • MariaDB
  • Row-level security
  • Frappe ERPNext
  • Frappe Education
  • Moodle

BS Computer Science

Virtual University of Pakistan

2022 – expected Dec 2026

ICS (Intermediate in Computer Science)

Federal Government College, Jhelum

2019 – 2021

CCNA: Introduction to Networks

Cisco Networking Academy

Dec 2025

Ask my AI

Short on time? Ask about my work and get a straight answer. It answers from the facts on this page, and nothing you type leaves your browser.

Hussain's AI

Answers from the facts on this site

Hi, I'm Hussain's AI assistant. Ask me about his projects, how MedScribe works, his stack or his experience.

Let's build AI that works in the real world.

Hiring an AI engineer, or planning a system that should hear, read or reason? Tell me about it. I'd love to help build it.

Thanks for scrolling this far. The best systems start with a conversation.