It started with labels.
My first job in AI was labelling training data.
Before any model exists, someone decides what the right answer looks like. For a summer, that someone was me.
It is slow, careful work, and it teaches one thing early: a model can only be as right as the examples it learns from. I have not stopped thinking about data that way since.
Then I automated the boring parts.
The app needed the same video and audio edits made over and over. I wrote Python with MoviePy and pydub that did the cutting, mixing and exporting on its own, so nobody had to do it by hand.
It was my first taste of a pipeline: small steps, chained, running without me.
And walked into a research lab.
For almost two years I worked across very different problems: modelling RIS-assisted UAV links in MATLAB and with LSTMs, training CNNs to classify brain-therapy data, and clearing haze out of images with DehazeNet and AOD-Net.
Then recommenders. I rebuilt GAN-based models on MovieLens — APR, AMR, CollaGAN, ACAE — along with PlasticGAN and autoencoders. The habit that stuck: read the paper, then make it run.
Somewhere in there, I ran the tech for a festival.
PROCOM is the FAST NUCES tech festival. For one season I led its technical side, part-time, next to the lab work.
Then, models.
I learned what it takes to make a model actually good.
I fine-tuned and evaluated lip-sync and speech models — VideoReTalking, DiNet, Whisper — next to ResNet and transformer classifiers.
Two numbers came out of it. Accuracy went from 60% to 93%. And generating a video went from 2 days to 10 minutes, which is the difference between a research result and something people can use.
Then I built what sits around a model: backend services in Python and Node.js / Express, vector search on Pinecone and MongoDB, and Jest tests to keep it honest.
Fine-tuned LLaMA and image-to-text models on Intel's datasets.
As a student ambassador I worked with large datasets Intel provided, tuning language models and image-to-text models on them.
The other half of the role was outreach: taking Intel's AI and ML tooling and developer programs back to my university and showing other students how to use them.
And taught what I was learning.
Part-time, in the same semesters as the research and the engineering. Explaining something to a room is a quick way to find out whether you understand it.
A paper and a podium.
We pointed a vision-language model at dirty water.
Climate.io began with a question: how much can a model tell about water from a photograph?
We built the pipeline to find out. A vision-language model reads the water imagery. A language model turns what it sees into an environmental report a person can act on. I co-founded it and built it end to end on Hugging Face and FastAPI.
It placed second at TeknoFest 2024.
The same project also won the UBIT Ideathon.
Then it became a paper.
We wrote up what we had learned: a comparison of how vision-language models and large language models perform at monitoring contaminated water.
“A Comparative Analysis Between Visual Language and Large Language Models to Monitor Contaminated Water in the Face of Climate Change.”
IEEE INMIC 2024 · Paper ID 2024386402 · Accepted, IEEE XploreAnd I graduated.
Four years of Artificial Intelligence at FAST NUCES Karachi: computer vision, NLP, neural networks, machine learning, database systems.
Then the models started doing things.
A system that watches football. A bot that makes phone calls.
Until here, my models answered questions. At AHOY they started acting.
One system watched football: object detection and tracking that turned match footage into real-time insights. The other picked up the phone: a calling bot built on speech recognition, NLP and dialogue systems that handled customer calls on its own.
Alongside it I did NLP research at Trouve Labs and an AI internship at EpicMetry, both in the same group.
An agent that sells flowers over Instagram DMs.
Petals & Blooms is a TypeScript sales agent: a router decides what the customer needs and hands off to a specialised generator node, wired to Gemini, the Instagram Graph API and Stripe.
The real work was the failures. It dodged when asked for a price. It carried one customer's details into another's chat. It promised flowers it had not checked were in stock. It sent a checkout link before anyone had agreed to buy. Fixing those four taught me more about agents than building the first version did.
2025 · Side projectAn agent that trades.
NEXUS is a trading system on Binance, connected over WebSocket and REST. It runs one loop without stopping: scan, plan, execute, monitor, review.
Each trade passes a 7-stage decision engine that reads chart patterns, Smart Money Concepts and VWAP. The risk limits live on the server, where the agent cannot talk itself out of them. 79% win rate across about 71 trades.
2025 · Side projectNow: systems that reason.
What I've been working on.
Agents for a multi-tenant B2B automation platform, the graph they reason over, and the data layer underneath. I lead the research team and still build hands-on.
One idea runs through all of it: an agent should be able to say why it did something, and be stopped before it does the wrong thing. So the reasoning lives where it can be checked, and every action passes a gate first.
I also write the specs, including a 12,700-word design for an experimentation engine and a goal-linked spec language and benchmark for UI/UX generation.
01A knowledge graph that reasons inside the databaseReasoning runs as SQL, on YugabyteDB
A neurosymbolic hypergraph on YugabyteDB where reasoning runs as SQL functions: an ontology-typed graph, symbolic filters before HNSW vector search, geometric scoring over 1024-d embeddings, causal path enumeration, and Bayesian belief propagation with Thompson Sampling bandits.
02Reasoning you can auditFormal contracts gate every agent action
Formal contracts and state-machine model checking gate every agent action and record how it was justified. Conclusions are invalidated when their sources change. Graph branching allows what-if reasoning, and an LLM planner's query plans are validated before they run.
03Documents into knowledgeA 7-layer RAG pipeline for 100+ page documents
A 7-layer, ontology-aware RAG pipeline that ingests 100+ page documents: two agents deliberating on LangGraph, graph-aware deduplication, rule extraction and strict source grounding, measured on recall and cycle consistency.
04An agent platform that refuses by defaultPolicy engine, undo receipts, five-level autonomy
Every read and write goes through a policy engine. Commands are transactional and can be undone through receipts. The assistant runs on a five-level autonomy ladder defined in the ontology itself.
05One data layer for every channel24 schemas, 140+ tables, event-sourced CQRS
24 schemas, 140+ tables, 130+ functions and 8 state machines on an event-sourced CQRS design: conversation threading, contact identity, consent, sequences, lead scoring and audit trails. Plus a wider platform design of 128 tables with row-level security and CDC ingestion.
06Agents that hold conversationsA DM agent on six platforms and a real-time voice agent
A FastAPI and LangGraph service running DMs across LinkedIn, Instagram, X, Reddit, Facebook and WhatsApp, and a real-time outbound voice agent on Telnyx, Deepgram and Gemini Flash — integrated with zero new schema objects.
07Proof, not vibesDifferential testing: 159/159, 450/450, 801/810
Rebuilt a rule engine in PL/pgSQL and differentially tested it against the original: 159/159, 450/450 and 801/810 across stages. Also an LLM-driven SQL certification pipeline with Gemini 2.5 Pro and the Z3 solver.
08A crawler that rewrites its own promptsSelf-improving prompts through GEPA
A semantic web crawler that improves itself through GEPA reflective prompt evolution, with a persistent long-term memory and world model.
What I reach for.
LangGraph · RAG · Knowledge graphs · LLM evaluation · LangChain · LangSmith · GEPA · fine-tuning (LLaMA, Whisper) · Hugging Face · PyTorch · TensorFlow · OpenCV
Neurosymbolic reasoning · Bayesian inference · belief propagation · Thompson Sampling · causal inference · TransE · formal verification (OCL, Z3)
Python · TypeScript · SQL (PL/pgSQL) · FastAPI · Pydantic · Node.js · Django · Flask · Playwright · C / C++ · Java
PostgreSQL · YugabyteDB · pgvector · Redis · MongoDB · Pinecone · ChromaDB · event sourcing · CQRS · row-level security · Debezium · Docker
Gemini · Claude · OpenAI · Deepgram · Telnyx
pytest · pytest-bdd · Hypothesis · Z3 · differential testing