Skip to content
View MahateerMuhammad's full-sized avatar

Block or report MahateerMuhammad

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
MahateerMuhammad/README.md

Hi πŸ‘‹ I'm Mahateer Muhammad

AI/ML Engineer | Applied LLM Systems | Full-Stack Developer

Python PyTorch TensorFlow React FastAPI

Portfolio LinkedIn Email

Profile Views


πŸ“‹ Table of Contents


🧠 About Me

class Mahateer:
    def __init__(self):
        self.role = "AI/ML Engineer"
        self.focus = ["LLM Systems", "Preference Optimization", "Applied Deep Learning"]
        self.background = "Co-founder @ UXELERATE, university student"
        self.currently_learning = "LLM/RAG, applied AI systems"
        self.fun_fact = "trained a DPO model on a single T4 in ~2 hours"

    def say_hi(self):
        print("Let's build something that doesn't hallucinate.")

I build production-grade AI systems β€” LLM orchestration with real security hardening, preference-optimization fine-tunes, clinical data pipelines, and interactive ML tooling. Currently deepening into LLM/RAG and applied AI systems.

🎯 Key Specializations

Area Expertise Evidence
πŸ€– LLM Systems in Production Multi-agent orchestration, LLMOps Rate limiting, prompt injection defense, hardened Docker
🎯 Preference Optimization DPO fine-tuning for factual grounding F1 0.535 β†’ 0.650 on MedHallu
🎨 Interactive ML Tooling Visualization built on live model internals 255 tests, zero faked data
πŸ₯ Clinical Data Engineering Large-scale EHR pipelines 546K+ MIMIC-IV stays, 40GB+ processed
πŸ–ΌοΈ Medical Imaging CNN classification + explainability 90.69% accuracy, Grad-CAM

πŸ”¬ Featured Projects

1. βš”οΈ Multi-Agent Debate Framework β€” Production LLM Orchestration

A single API call, 25 nested LLM calls, and enough hardening to survive contact with the real world

View on GitHub FastAPI Docker Redis

FastAPI service where /api/v1/run spawns up to 25 nested LLM calls across Proponent/Opponent agents. Pushed through a full LLMOps + security hardening pass:

  • πŸ›‘οΈ Distributed rate limiting (slowapi + Redis, cross-worker/pod safe)
  • πŸ›‘οΈ Prompt injection defense β€” XML delimiter encapsulation, input tag-stripping, system-level security directive
  • πŸ“Š Request tracing with correlation IDs, structured JSON logs
  • πŸ”’ Docker hardened β€” non-root user, cap_drop: ALL, correct ownership
  • ⚑ Async connection pooling moved outside the retry loop, asyncio.wait_for timeouts

2. 🩺 MedTrust β€” Faithfulness-Optimized Medical QA via DPO

Teaching a 7B model to stop confidently making things up in clinical answers

View on GitHub PyTorch Unsloth Kaggle

Fine-tunes Qwen2.5-7B-Instruct with Direct Preference Optimization (not SFT) on the MedHallu benchmark β€” matched grounded vs. hallucinated PubMedQA answers, 4-bit QLoRA, 40.3M trainable LoRA params (0.53% of total weights), ~2 hours on one Kaggle T4.

Benchmark results (999 held-out human-annotated pairs):

Tier Base F1 MedTrust DPO F1 Ξ”
🟒 Easy 0.612 0.747 +13.5
🟑 Medium 0.530 0.648 +11.8
πŸ”΄ Hard 0.498 0.586 +8.8
Overall 0.535 0.650 +11.5

Hard-tier score (0.586) lands close to GPT-4o's reported ~0.625 on the same split β€” from a model 1/20th the size, fine-tuned on a free GPU.

Case study β€” the model catching a fatal contraindication:

Query: Should beta-blockers be given immediately in cardiogenic shock from acute MI?

❌ Base model: "Yes, initiate immediately in all AMI patients." (dangerous β€” beta-blockers are contraindicated here) βœ… MedTrust: "No β€” contraindicated in cardiogenic shock due to negative inotropic effects. Stabilize hemodynamics first."


3. 🎨 DeepVision β€” Interactive Neural Network Visualizer

Neural networks, explained by the network itself

View on GitHub PyTorch React

  • πŸ–ΌοΈ Network Canvas β€” semantic-zoom D3 graph, VCR-style stepping
  • πŸ§ͺ Activation Lab, CNN Lab (filter factory, receptive fields, saliency), Optimizer Arena, BatchNorm Tracker
  • βœ… 255 tests, zero faked data β€” every number comes live from PyTorch hooks

4. πŸ₯ Clinical Digital Twin β€” Patient Risk & Decision-Support System

40GB of raw hospital data in, a risk-scoring RAG agent out

View on GitHub Pandas XGBoost SHAP

Production pipeline processing 546K+ MIMIC-IV hospital stays (40GB+ raw temporal tables) into ML-ready Parquet datasets, feeding multi-task clinical prediction models. This is the project MedTrust's hallucination-reduction work feeds into β€” same failure mode, applied to the decision-support agent below.

5-Stage Pipeline: Load (schema inference) β†’ Clean (validation) β†’ EDA β†’ Feature Engineering β†’ Datasets

  • 🎯 0.949 AUROC β€” 24-hour mortality prediction
  • 🎯 0.897 AUROC β€” 6-hour ward deterioration
  • 🧩 LLM/RAG decision-support agent: SHAP TreeExplainer interpretability, counterfactual "what-if" simulation, clinical guideline retrieval (KDIGO, Surviving Sepsis)
  • πŸ”— Patient embedding layer for similar-patient retrieval

5. ⚑ Retail Data Analyzer

View on GitHub PySpark PostgreSQL

Distributed retail analytics on PySpark β€” revenue analysis, customer metrics, spend classification, rolling averages.


6. 🧠 Brain Tumor Detection with Explainable AI

Healthcare AI that shows its work

View on GitHub TensorFlow Streamlit ResNet50

  • 🎯 90.69% accuracy on 4-class tumor classification (ResNet50 transfer learning)
  • πŸ“Š Grad-CAM explainability layered on top of every prediction
  • 🎨 Interactive Streamlit dashboard
  • πŸ§ͺ Five-notebook pipeline: EDA β†’ Preprocessing β†’ Custom CNN β†’ Transfer Learning β†’ Grad-CAM

7. πŸ“± Earlier mobile work

Two Flutter apps from earlier in my dev work β€” real-time systems with Firebase backends:

  • Social-Swap (Konexea) β€” social app with real-time chat, AI-assisted translation, Rive animations
  • CALiNGA β€” on-demand healthcare platform with live location tracking and provider matching

πŸ›  Tech Stack

Languages

Python JavaScript TypeScript C++ Dart

AI & Machine Learning

PyTorch TensorFlow Keras Scikit_Learn HuggingFace

Data Engineering

Apache_Spark Pandas PostgreSQL MongoDB

Backend & APIs

FastAPI Express NodeJS Redis

Frontend & UI

React Vite Tailwind D3JS

Cloud & DevOps

AWS Docker Firebase


πŸ“Š GitHub Stats & Insights

GitHub Stats

Top Languages

GitHub Streak

Activity Graph


πŸ’‘ Skill Levels

LLM Systems & Orchestration   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘ 85%
AI/ML Development             β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘ 90%
Data Engineering               β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘ 80%
Backend Development            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘ 85%
Frontend Development           β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘ 75%
DevOps & Deployment              β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 45%

🎯 Currently

  • πŸ”­ Working on preference-optimization methods (DPO) for factual grounding in LLMs
  • 🌱 Learning applied RAG architectures and production LLMOps
  • 🀝 Open to collaborating on applied LLM and systems projects
  • ⚑ Fun fact: trained MedTrust's DPO adapter (40.3M params) end-to-end on a free Kaggle T4 in under 2 hours

πŸ“« Get in Touch

Email LinkedIn GitHub

Status: βœ… Open to opportunities

Popular repositories Loading

  1. madadgar madadgar Public

    Dart 2

  2. crossfilter crossfilter Public

    Dart 1 1

  3. zeene-hair-oil zeene-hair-oil Public

    TypeScript 1

  4. Hospital-Management-System Hospital-Management-System Public

    C++

  5. Inventory-managment-system Inventory-managment-system Public

  6. File-Distribution-system-across-nodes File-Distribution-system-across-nodes Public

    Made in c++ to distribute files across nodes also contains visualization of nodes which is done through graphics.h

    C++