Real-world AI systems built for production. Explore detailed case studies, live telemetry simulations, technical constraints, and measurable impact metrics.
AM
Muhammad Ahmad Mujtaba
AI Engineer & founder
AI engineer with three years of experience building production AI systems: LLM fine-tuning, RAG pipelines, and full-stack ML backends with complex optimization layers. I've worked as the sole engineer on end-to-end projects for international clients, handling everything from raw data to deployed services. B.Sc. Artificial Intelligence, COMSATS University Islamabad (CGPA 3.61).
"I care about the parts that don't fit on a slide: handling sparse and messy data, cutting inference latency, indexing high-dimensional vectors, and shipping services that hold up under real load, not just notebooks that run once."
https://rezinx.co/portfolio
Taxonomy-Driven RAG Recommender
QdrantEmbeddingsAsync microservicesPython
Taxonomy-aware retrieval: embeddings organized around semantic hierarchies instead of raw objects, on a re-architected Qdrant layer, served by async FastAPI microservices. In one SaaS engagement: query time cut 3–5×, concurrency up ~8×.
Client Engagement
AI Profit Optimizer
LightGBMLP + SLSQPTweedieSTL Decomposition
A production price-elasticity optimization engine. Ingests catalog logs into Supabase, performs SKU demand forecasting using LightGBM, and passes predictions to a two-phase LP + SLSQP profit optimizer under margin floors and competitor guardrails. Includes champion/challenger WMAPE gating.
Enterprise Engine
Generative · NLP · Vision Models
LoRA/QLoRALLM Fine-tuningPyTorchGPU servers
Custom model deployments for specialized clients. Led LoRA and QLoRA fine-tuning workflows for custom domain-specific generative models, automated model training pipelines on DigitalOcean droplets and physical GPU nodes, and shipped custom natural language and vision pipelines.
Custom Pipeline
R&D · Applied Research
Self-directed builds where we test methods end to end before offering them to clients. Code is public.
Retail demand forecasting on M5 (30,490 store-item series) with data-calibrated routing for dense, intermittent, and sparse demand. Phases 1–3 complete: an objective bake-off where LightGBM Tweedie wins every dataset (WMAPE28 0.302 / 0.348 / 0.488 vs 1.000 for a zero forecast). 141 tests, bit-identical reruns. Agent layer (Agno) is next.
Real-time pose-based fall detection, hazard recognition, child-safety monitoring, and a RAG-powered first-aid guidance assistant (FAISS & BM25 hybrid search), with Firebase FCM push alerts. Built end to end: models, backend, and mobile app.
Not a list of job duties. Each item is a real engineering bottleneck we hit, what we built to resolve it, and the performance output it generated.
RAG Retrieval Latency
3–5× faster queries
Embedding around semantic taxonomies instead of raw objects, plus a re-architected Qdrant layer.
3–5×query-time reduction, one SaaS engagement (Qdrant)
Concurrency
Monolith → microservices
Async request handling lifted a hard concurrency ceiling without rewriting the models.
~8×concurrency, same engagement (FastAPI + AsyncIO)
Profit Optimizer · Illustrative
Finding the profit-maximizing price
The optimizer doesn't scan every price. A two-phase LP + SLSQP search explores a bounded band around each SKU's current price (shaded), under margin floors and competitor caps, to maximize profit, not revenue. Demand falls as price rises; profit peaks where volume and margin trade off, and turns negative below unit cost.
IHS is an end-to-end safety platform combining deep-learning video analytics, an optimized mobile app, and a desktop control panel. Built specifically to protect elderly individuals and children, the system continuously analyzes local camera streams to detect emergency events like falls and child-hazard proximity in real time.
System Architecture
A pipeline combining YOLOv8-Pose & a Temporal Convolutional Network (TCN) for biomechanically informed action recognition. Features a background-running DeviceMonitorManager handling multiple RTSP/HTTP streams asynchronously, interfacing with a hybrid FAISS + BM25 RAG first-aid advisor and a Firebase Cloud Messaging push system.
Fall-Detection Pipeline
01
Pose EstimationYOLOv8s-Pose processes frames in real-time, extracting 17 distinct COCO coordinate keypoints per detected person.
02
Feature EngineeringApplies hip-centered normalization, calculates joint angles, frame-to-frame velocity vectors, and trunk tilt degrees to compile a 61-dimensional feature vector.
03
TCN ClassifierA 3-layer residual Temporal Convolutional Network (TCN) performs temporal reasoning over sliding 30-frame windows, executed every 10 frames to optimize compute.
04
Heuristic FSMA rule-based biomechanical Finite State Machine monitors absolute trunk angle, hip height relative to floor markers, center-of-gravity velocity, and rapid inversion events.
05
Score BlendCombines predictions via a weighted score (70% TCN temporal prediction + 30% Heuristic biomechanics) gated by inversion detection constraints to minimize false triggers.
06
Sticky LockA state hysteresis lock prevents rapid oscillation between active fall and normal states, stabilizing alerts under noisy visual feeds.
Key Capabilities
✓
Hybrid classification blending temporal model layers with strict rule-based biomechanics.
✓
Configure automatic alarm triggers when individuals remain on the floor past a safety threshold.
✓
OpenVINO INT8 quantized YOLOv8 object detector tracking hazard items like knives, fire, and stove status.
✓
Skeleton-ratio based age estimation to warn caregivers when toddlers approach hazard zones.
✓
DeviceMonitorManager feeds video streams independently of active app views for robust uptime.
✓
Local RAG adviser with FAISS vector indexing and BM25 search over medical manuals, powered by Groq.
A retail demand-forecasting system for any dataset in the M5 format (sales, calendar, weekly prices). The ML core is built and validated as plain, tested code first; an agent layer (planner → executor → critic → report) wraps it last. Validated on M5: 30,490 store-item series. Evidence so far is M5 only.
Status
01
EDA & dataset selection · completePer-series intermittency signals (zero-share, ADI, CV², Syntetos–Boylan class), four disjoint sub-datasets (dense, intermittent, sparse, and a held-out set D), and routing thresholds calibrated on the data's own distribution.
02
Baseline · completeA tuned Ridge floor on a frozen, leakage-safe feature set (calendar, SNAP, lags 28/35/42, rolling means, price), scored with 5-fold rolling-origin CV and a 28-day horizon.
03
LightGBM bake-off · completeL2 vs Tweedie vs Poisson vs quantile-median on the same features, plus Croston/SBA for sparse series. Emits a machine-readable model contract for the agent to consume.
04
Agent wrapper (Agno) · nextPlanner → executor → critic → report. The executor applies documented branch rules; the critic gates acceptance on accuracy and sanity bounds.
05
Final test · plannedThe finished agent run end to end on held-out sub-dataset D, which has informed no threshold or model choice.
Bake-off results
Dataset
Tweedie
Poisson
LGBM-L2
Ridge
Zero
A · dense
0.302
0.317
0.378
0.326
1.000
B · intermittent
0.348
0.353
0.370
0.473
1.000
C · slow / sparse
0.488
0.497
0.501
0.639
1.000
WMAPE28 (per-series 28-day totals), 5-fold rolling origin. Lower is better; a zero forecast scores exactly 1.000.
What we learned
✓
The metric was the first bug. Daily WMAPE is degenerate on intermittent demand: even the true window mean scores 1.078 / 1.517, worse than forecasting nothing. We switched the decision metric to 28-day totals, the quantity a replenishment decision uses, without lowering the bar.
✓
The objective wins, not the model class. Gradient boosting with squared error lost to a linear Ridge on dense data (0.378 vs 0.326). Only the Tweedie objective recovered it.
✓
Complexity has to earn its place. Tweedie won every branch cohort, so the planned Tweedie-vs-standard split is being removed. A per-series seasonality branch was dropped earlier for the same reason (day-of-week explains ~1% of median item variance).
✓
Modest gains reported as modest. Croston/SBA beats the mean floor on sparse series by ~3%, and is adopted on that basis.
✓
Reproducible. Three independent runs are bit-identical; every artifact is stamped with git SHA, library versions, and seed.
✓
Leakage-checked and confirmed at scale. Perturbing future sales never changes past features. The 250-series samples match full cells (823 / 515 series) to within 0.2%.