Skip to work

MuhammadAhsan Aftab

I build AI systems that turn messy real-world signals into decisions: crisis reports into response plans, forecasts into safer routes, damaged photos into restored images.

Drag a finger across the map: it’s a storm, and the route replans.

  • Low
  • Moderate
  • High
  • Severe
  • No travel
  • First place at the NDMA Disaster Early Warning Tech Expo 2025

    National Disaster Management Authority, Pakistan. Won with PDME, a flood and wildfire risk platform.

  • Three internships since 2024

    Full-stack web development at Octathorn, app development at AKSA-SDS, and web and mobile development at LEOS.

  • BS Computer Science

    Air University Islamabad, 2022 to 2026.

Selected work

Four projects across AI systems and full-stack products. Each has a live demo or a deployed API, and the source is linked where it’s public.

Weather-Aware Truck Routing

Picking the safest route for a truck from the forecast

Pick a start, a destination, a departure time and a load weight. The app finds up to three routes, works out when the truck reaches each checkpoint, checks the forecast for that place at that hour, and recommends the safest route with a one-sentence reason.

Django REST Framework, React, TypeScript, MapLibre GL JS, TanStack Query, OSRM, Open-Meteo

The truck routing app showing a recommended green route from Chicago to Denver with grey alternatives, and a risk summary in the sidebar
Chicago to Denver with a 45,000 lb load. The recommended route is green; the alternatives stay grey.
  • Forecasts are looked up for the hour the truck actually arrives, not the hour it leaves. A 6 am departure from Chicago doesn't care what Nebraska's weather is at 6 am.
  • Every checkpoint is scored from Low to No Travel, taking load weight into account, and shown on a map with a time slider and a heatmap of bad weather.
  • Routes of about 15,000 points are thinned to roughly a thousand with the Ramer-Douglas-Peucker algorithm before they reach the browser.
  • Backend and frontend both have tests, and the README lists what it doesn't handle yet: wind gusts, rest-break aware ETAs, request throttling.

CIRO

Crisis Intelligence and Response Orchestrator

A team project for the Innovista Hackathon: a command centre for Islamabad. It takes crisis signals from citizens, weather and traffic feeds, and turns each one into a classified, prioritised response plan.

FastAPI, Gemini 2.5 Flash, Supabase, Flutter, React

The five agents, in the order a report passes through them

Reads
The raw report text and its location
Produces
Cleaned text, and the language it was written in (Roman Urdu included)
  • I built the backend: the FastAPI service and the orchestration of a five-agent pipeline on Gemini 2.5 Flash that handles each report in turn (collect, detect, reason, plan, simulate).
  • The pipeline reads Roman Urdu, and every report is stored with its detected language and a confidence score.
  • The full agent trace and the simulation result are saved with each report in Supabase, so any plan can be traced to the steps that produced it.
  • The same API and database serve a Flutter citizen app and a React web dashboard. I also worked on the frontend, but the backend was my main part.

Miras

Digital archiving and marketplace for cultural artifacts

A team project: a platform where institutions catalogue cultural artifacts, run virtual exhibitions and events, sell tickets, hold auctions, and record ownership on a blockchain.

React 19, Material UI, Redux Toolkit, Express 5, MongoDB, Solidity, Ethers.js, Docker

The source code is private.

  1. Client

    • React 19 and Vite
    • Material UI
    • Redux Toolkit
    • React Router
  2. API

    • Express 5 with JWT auth
    • Stripe payments
    • Cloudinary media
    • Resend email
    • node-cron jobs
  3. Data and chain

    • MongoDB with Mongoose
    • Solidity contracts
    • Ethers.js bridge
    • On-chain provenance

What it covers

Artifact catalogue, Virtual exhibitions, Events and tickets, Auctions, Listings and orders, Memberships, Donations.

  • I wrote the Solidity smart contracts for NFT minting, on-chain provenance, and marketplace listings and transactions, and connected them to the backend with Ethers.js.
  • On the Express backend I added phase-based email updates for listing submissions and a domain whitelisting feature, and moved email to Resend.
  • I containerized the React client with Docker and fixed routing and deployment problems on Vercel, so the site runs live at miraas.tech.
  • The rest of the platform, built by the team, covers Stripe payments, Cloudinary media, and auctions with scheduled checker jobs.

Digital Artifact Restoration

Finding and filling damage in photos of historical artifacts

A solo project. No labelled damage dataset existed for this, so it starts by building one. Two trained models then locate the damage and reconstruct what's missing, and both run as APIs.

PyTorch, SegFormer, GANs, OpenCV, Hugging Face Spaces

The source code is private.

How the three parts fit together

Reads
Clean photos of artifacts
Produces
Damaged and clean pairs, with a pixel-level mask for each kind of damage
  • I wrote an OpenCV generator that applies five kinds of synthetic damage (patches, cracks, blur, scratches, stains) to clean images, giving damaged and clean pairs with pixel-level masks.
  • I fine-tuned SegFormer-B2 for six-class damage segmentation, using a class-weighted Focal Loss and mixed-precision training to cope with class imbalance.
  • I trained an inpainting GAN with a U-Net generator on a ResNet34 encoder and a PatchGAN discriminator, using L1, VGG perceptual and adversarial losses, and evaluated it with PSNR.

Also built

  • PDME

    Pakistan Disaster Management Ecosystem. A Node.js backend connected to PostgreSQL for flood and wildfire risk and emergency coordination, with the flood and forest-fire prediction models trained in Python. First place at the NDMA Disaster Early Warning Tech Expo 2025.

    Node.js, PostgreSQL, Python

  • Mini-language compiler

    A compiler for a small language, written in Python: lexer, parser, semantic analyzer, optimizer and code generator, with test programs for missing semicolons, type mismatches and undeclared or duplicate variables.

  • AI hiring automation

    An n8n workflow for software and business-development hiring. It takes form submissions, extracts resume text, scores candidates with Gemini on Vertex AI using role-specific prompts, removes duplicates, and sends emails and calendar invites, with state kept in Supabase.

    n8n, Vertex AI, Supabase

Experience

  1. Octathorn

    Full Stack Web Development Intern

    Jul to Aug 2025Rawalpindi

    • Built real-time features on WebSockets: live messaging and multi-user interaction.
    • Developed React and Material UI components and wired them to backend REST APIs.
  2. AKSA-SDS

    App Development Intern

    Jul to Sep 2025Hybrid, Islamabad

    • Built cross-platform Flutter apps with Firebase, API connectivity and responsive screens.
    • Implemented state management, reusable screens and a scalable app structure.
  3. LEOS (Laser & Electro Optical Solutions)

    Web and Mobile App Developer Intern

    Jul to Sep 2024Pakistan

    • Built and maintained a full-stack Flutter app for web and mobile, using Firebase and Cloud Firestore.

About

I like projects where software has to make a call and show its reasoning. In CIRO that’s a response plan with the agent trace behind it. In the truck routing app it’s one recommended route and a sentence on why.

I’m a Computer Science graduate from Air University Islamabad, based in Pakistan and working remotely. I’m looking for my first full-time role in AI/ML or software engineering, and I can start right away.

Machine learning
PyTorch, TensorFlow, Hugging Face Transformers, OpenCV, computer vision, SegFormer, GANs
LLMs and agents
Gemini, Vertex AI, multi-agent pipelines, prompt engineering, n8n workflow automation
Backend
FastAPI, Django REST Framework, Node.js and Express, REST APIs, WebSockets, scheduled jobs
Frontend and mobile
React, Next.js, TypeScript, Tailwind CSS, Flutter
Data and shipping
PostgreSQL, Supabase, MongoDB, Firebase, Docker, Vercel, Render, Hugging Face Spaces

Hiring for a remote role?

I’m looking for an AI/ML or software engineering role and can start right away. Email is the fastest way to reach me.

Built with TanStack Start, Tailwind and one canvas. Risk colours borrowed from my truck routing project.