Open source

Projects

Research code, end-to-end ML systems, and tools I've built — 22 projects spanning LLM backdoor detection, NLP and speech, healthcare AI, networks, and software engineering.

Featured

AI Safety & SecurityNov 2025

Online Backdoor Detector for LLMs

A “neuro-statistical” watchdog that flags backdoored LoRA adapters without knowing the trigger, using the suspect model’s confidence and semantic-consistency signals and a multi-head verdict: clean, suspicious, or backdoor detected.

LLM backdoorsLoRAdetectionAI safety
Python Write-up
AI Safety & SecurityAug 2025

BAIT Weakness Zoo

Extends the BAIT (S&P 2025) LLM backdoor scanner with sparsemax candidate selection and a controlled zoo of benign, standard, and evasive backdoored LoRA models to locate exactly where the scanner fails while the backdoor still fires.

backdoor scanningBAITLoRAred teaming
Python Write-up
AI Safety & SecurityNov 2025

AttentionGuard

A backdoor detection system for LLMs based on attention analysis, introducing a “self-centeredness” score to catch sophisticated backdoors that evade confidence-only detectors.

attention analysisLLM backdoorsdetection
Python
Computer Vision & Healthcare AI2024 – Present

DentalMind

Trustworthy AI for dental diagnostics: per-tooth radiograph analysis designed to support, not replace, a clinician’s judgment. Python, PyTorch, computer vision, FastAPI and React.

healthcare AIcomputer visionFastAPIReact
AI Safety & SecurityAug 2026

Devign Reproduction & Leakage Audit

An end-to-end PyTorch reproduction of Devign (NeurIPS 2019) on the authors’ released data — composite AST/CFG/DFG graphs, gated graph layers and the Conv readout — plus a commit-disjoint leakage audit of the benchmark.

graph neural networksvulnerability detectionreproducibility
Python Write-up
Networks & SystemsFeb 2026

MECP-GAP

Implementation of mobility-aware MEC planning with GNN-based graph partitioning (IEEE TNSM 2024): assigning 5G base stations to edge servers to minimise handover cost under load-balancing constraints.

graph neural networks5Gedge computinggraph partitioning
Python Write-up

More projects

AI Safety & SecurityJun 2025

Backdoor Detection Lab

A laptop-friendly lab that fine-tunes a small backdoored model on an 8 GB GPU, then runs five research-paper detection ideas side by side and compares their signals on clean versus triggered inputs.

LLM backdoorsdetectionLoRA
Python Write-up
AI Safety & SecurityApr 2026

Lookback-Lens Detection for Small LLMs

Attention-ratio detectors for trigger-activated backdoors and contextual hallucinations on Gemma 2-2B and Granite 3.1-3B, with LoRA backdoor training, logistic-regression probes, and attention visualisations.

Lookback Lenshallucination detectionLLM backdoors
Python
AI Safety & SecurityDec 2025

Lookback Lens for Vision Transformers

Trains backdoored Vision Transformers, detects triggered inputs with a linear probe over attention maps, and localises the trigger in the image with a sliding-window search.

Vision Transformersbackdoorsattention
Python
Computer Vision & Healthcare AIAug 2026

Diabetic Retinopathy Screening

The model core of a clinical decision-support system for referable diabetic-retinopathy screening in low-resource clinics, using low-cost fundus cameras and on-premise inference with a human in the loop.

medical imagingdecision supporthealthcare AI
Python
Computer Vision & Healthcare AIJun 2026

DentalMind Website

The Next.js web front end for DentalMind.

Next.jsweb
TypeScript Demo
NLP & SpeechSep 2024

Psychological Health Chatbot

A Persian mental-health chatbot that detects signs of psychological distress and offers support — published at AbjadNLP 2025 with collaborators at IUST.

Persian NLPtransformersmental health
NLP & SpeechOct 2024

Persian Speech Emotion Recognition

Fine-tuned Wav2Vec2 on the ShEMO dataset, combining audio features with transcripts for robust emotion classification in Persian speech.

Wav2Vec2speechemotion recognition
Python
NLP & SpeechFeb 2024

Persian Multimodal Sentiment Analysis

Sentiment prediction for Persian Instagram posts by fusing VGG-16 image features with a bidirectional LSTM over the text.

multimodalsentiment analysisLSTM
Python
NLP & SpeechJul 2024

DadmaTools — bug fixes

Bug-fix work on DadmaTools, the open-source Persian NLP toolkit.

Persian NLPopen source
Networks & SystemsJul 2024

Osmium — Cell Localisation App

An Android app that collects cellular signal data and estimates base-station locations from RSSI and GPS using circular lateration (Mobile Networks course, IUST).

AndroidRSSIlocalisation
Networks & SystemsNov 2023

Project Iridium

A Docker-based network-security simulation with attacker, victim, and web-server stations: port scanning, credential testing, and data collection through a Django API.

Dockernetwork securityDjango
Python
Software & CourseworkJul 2023

Computer Vision Coursework

Assignments and a final project on object detection.

object detection
Jupyter Notebook 1
Software & Coursework

Blazor Shop

An online shop built with Blazor and deployed on Heroku.

Blazor.NET
C# 1

Research forks

3 upstream projects I've forked to study and build on — credit belongs to their original authors.
Computer Vision & Healthcare AI

MMKD-CLIP

A generalist biomedical vision-language model distilled from nine biomedical CLIP models.

CLIPbiomedicaldistillation
NLP & Speech

DadmaTools

Persian NLP toolkit developed by Dadmatech.

Persian NLP
Software & Coursework

grammars-v4

Fork of antlr/grammars-v4

Grammars written for ANTLR v4.

ANTLRparsing
1