Youssef Khafagy

Software engineering student building AI/ML pipelines and full-stack apps.

This summer I built two offline AI pipelines on co-op at a banking software company. I also trained ScreenSense, a saliency model that beats the published SALICON baseline on all five metrics.

See the work

>Open to software engineering internships and co-op opportunities

AI/ML engineering · AI workflows · Full-stack · Systems

youssef_khafagy.dev

> whoami

Youssef Khafagy

Toronto, Ontario

> status

Software Engineering Student

McMaster University

> run

Experience

Where I've worked.

  1. Software Engineering Co-op

    CARITech

    May 2026 - Aug 2026

    Toronto, Ontario

    • Built a Python and Node.js pipeline that converts screens from a legacy 4GL desktop banking application into working React components, and raised UI property capture accuracy from 2.5% to 99.2% by replacing one-shot LLM generation with element-by-element prompting over a deterministic context builder.
    • Translated the legacy source language to JavaScript with rule-based passes instead of model output, covering 191 of 194 method bodies, plus a runtime for its multi-parent inheritance model and a Node parser gate that rejects any emitted file that does not compile.
    • Built a second pipeline that reads design documents in Word and PDF and generates test cases in the team's existing format, delivering 320+ cases across four modules to the QC team.
    • Wrote the coverage and duplicate-detection tooling for it: per-module section and feature coverage, and Jaccard clustering that showed only 5% of one module's generated cases were structurally unique, which set the priority list for the next round of pipeline changes.
    • Ran every model locally on a 4GB VRAM laptop GPU because company source code could not leave the machine, and benchmarked open-weight code models against licensing terms and single-GPU limits for a hardware recommendation to engineering leadership.
  2. Associate Software Developer (Part-Time)

    TrueEdge Technologies

    May 2025 - Mar 2026

    Toronto, Ontario

    • Built a subscriber account detail page and a usage activity summary from scratch in React on a production telecom platform, backed by Python and Java services, with validation that rejects malformed input and consistent currency and date formatting.
    • Raised unit test coverage on legacy account management and file import code written by others, which caught a defect before it reached release, and stabilized a flaky test that had been failing the build intermittently.
    • Upgraded Python and npm dependencies, including the test framework and a file-generation library, and repaired the breakages by tracing behavior through undocumented legacy code, then scripted a bulk record edit that had been done by hand.
    • Wrote requirements documentation for a feature that shipped, refreshed stale specs on maintained components, extended the CI pipeline configuration, and reviewed pull requests from other developers.
  3. Web Dev Team Member

    McMaster Advanced Space Systems CAN-SBX

    Feb 2026 - Present

    Hamilton, Ontario

    • Build and maintain pages and reusable frontend components for the MASS CAN-SBX website on a React and Next.js stack.
    • Co-authored the software requirements specification for the 2026-2027 website, defining scope, browser support, content needs, and maintainability expectations.
    • Work within Agile Scrum sprints: task breakdown, weekly stand-ups, and review cycles as the site evolves.

Projects

The work.

Featured buildAI2026

NightShift

An AI on-call engineer for AWS that investigates incidents, proposes a fix, and acts only with my approval.

Root causes found
4 → 18
of 36 incidents: the same model given only the alarm vs. given its tools
Live bad deploy
138 s
to the right diagnosis; the approved rollback restored service

I built a small serverless store on AWS, a chaos framework that stages 12 kinds of incident, and an LLM agent that gets paged, investigates with read-only tools and names the root cause. A separate component runs its proposed fix only after I approve that exact action, then checks the system recovered.

Impact

Across 36 staged incidents, giving the model tools took it from 4 to 18 correct root causes, a difference that chance alone would almost never produce (p = 0.0001). A hand-written runbook scored 21, statistically tied with the agent. They won on different incidents, and the agent's most common misses traced back to how I had defined the fault categories.

  • Python
  • TypeScript
  • Next.js
  • AWS Lambda
  • Aurora DSQL
  • Terraform
  • GitHub Actions
  • LLM APIs
Replay of a real incident, from a bad deploy to a verified rollback (59 s, captioned).
  • Safe by design: the agent can only read. A separate Actor with its own narrow AWS role runs one of five reversible actions, only after a single-use approval that expires in 15 minutes.
  • The store and agent (Lambda, Aurora DSQL, DynamoDB, SQS) are defined in Terraform and deployed by GitHub Actions through OIDC with no stored keys, within AWS Always Free limits.
  • Found a transaction leak with no visible symptom in a billing metric, proved Aurora DSQL bills for every second a transaction stays open, and fixed it by changing the connection default.
  • All 180 graded investigations are replayed step by step on a public dashboard, including the 11 unsafe proposals the agents made (none executed).
Featured buildAI2026

ScreenSense

Visual attention prediction with a custom-trained CNN

AUC-Judd
0.9613
published 0.87
Pearson CC
0.8756
published 0.74

Full-stack AI application that predicts where human eyes will look first in any image. Trained a custom 6.6M-parameter MobileNetV2 + U-Net saliency model on a research dataset, deployed it as a containerised FastAPI service on HuggingFace Spaces, and shipped a polished Next.js frontend with real-time heatmap analysis.

Impact

Trained entirely on personal hardware and surpasses the published SALICON baseline on all 5 standard saliency metrics. Has direct applications in UX and product design, advertising and marketing, e-commerce conversion optimization, and accessibility testing.

  • Python
  • PyTorch
  • MobileNetV2
  • FastAPI
  • HuggingFace Spaces
  • Docker
  • Next.js
  • TypeScript
  • Tailwind CSS
  • Vercel
ScreenSense heatmap result with ranked attention hotspots and a region breakdown
  • Trained on SALICON, 10,000 training and 5,000 validation images annotated with crowd-sourced human fixation data collected via mouse-tracking as a proxy for eye-tracking, using a composite KL-divergence + Pearson CC + BCE loss, mixed-precision AMP, and a frozen encoder warmup strategy for the first 5 epochs.
  • Built a custom post-processing pipeline on top of raw model output: peak suppression for ranked hotspot coordinates, Shannon entropy for an attention spread score, and a 3x3 region grid that drives rule-based design recommendations.
  • Designed a results page with a three-mode segmented image viewer (original, heatmap, overlay), top-3 attention zone cards with gradient intensity bars, and contextual design tips tied directly to where attention lands on the uploaded image.

All projects

  • 2026AI

    TriageFlow

    AI-assisted hospital ER intake

    Built a staff-controlled triage workflow that captures patient intake once, generates validated structured JSON, and keeps a live waiting queue visible to both patients and reviewers.

    • Next.js
    • TypeScript
    • PostgreSQL
    • Docker
    • Gemini API
    • +3
  • 2026AI

    WELTMEISTER

    2026 World Cup forecasting engine

    Built a Dixon-Coles adjusted Poisson model that fits per-team attack and defense ratings by maximum likelihood on international results going back to 1872, then wired it into a browser simulator that plays the full 104-match tournament tens of thousands of times.

    • Python
    • NumPy
    • SciPy
    • TypeScript
    • React
    • +3
  • 2026Systems

    WireFish Network Analysis Tool

    Low-level diagnostics in C on Linux

    Built a unified command-line networking toolkit in C that combines host scanning, ICMP traceroute, and live bandwidth monitoring in one modular binary.

    • C
    • Linux
    • Raw Sockets
    • ICMP
    • JSON
    • +2
  • 2025Systems

    Catan Simulator

    Rule-driven simulation from UML to code

    Helped build a Java-based discrete-event simulator for Settlers of Catan by translating a conceptual UML domain model into a working game system.

    • Java
    • UML
    • Simulation
    • Command Pattern
    • Domain Modeling
  • 2025Embedded

    Future Sight

    Navigation cane for visually impaired users

    Designed and built an assistive cane that uses ultrasonic sensing and tactile pin-based feedback to help users detect nearby obstacles in real time.

    • Arduino
    • Sensors
    • C/C++
    • AutoCAD
    • Embedded Logic
  • 2025-2026Games

    Interactive Game Development Suite

    Python and Java gameplay engineering

    Built multiple interactive games, including a two-player soccer game, Space Invaders, Breakout, and Pong, with a focus on gameplay feel, responsiveness, and clean loops.

    • Python
    • Java
    • Pygame
    • OOP
    • Game Logic
  • 2025Systems

    International Airport

    Engineering design project

    Built an airport-focused engineering project that combined CAD modeling, Python-supported work, and 3D printing into a more physical design-and-build workflow.

    • CAD
    • Python
    • 3D Printing

Education

Where I study.

About

More about me.

I'm a software engineering student at McMaster. The throughline in my work: pick something slightly out of reach, build it end to end, then measure whether it actually works. That's how ScreenSense went from an idea to a model that beats a published research baseline instead of staying a demo.

The range is deliberate. Full-stack products teach me what users need, C and embedded work teach me what the machine is doing, and ML projects force me to be honest about results. Each side makes the others sharper.

I spent this summer on a software engineering co-op at a banking software company, building two AI pipelines that had to run entirely offline on a 4GB laptop GPU because none of the source code could leave the machine. I'm also on the web team for McMaster's CAN-SBX space systems group, and I'm looking for my next co-op.

Recent win
Raised UI property capture from 2.5% to 99.2% on the legacy modernization pipeline I built on co-op
What I enjoy building
Full-stack apps, systems tools in C, and AI pipelines with real benchmarks behind them
Currently
Web dev team at McMaster Advanced Space Systems CAN-SBX, alongside my B.Eng. coursework

Technical Skills

The tech stack.

Languages

C in WireFish, Java in the Catan simulator, TypeScript everywhere

  • Python
  • Java
  • C
  • C++
  • TypeScript
  • JavaScript
  • HTML
  • CSS
  • Bash
  • MATLAB
  • Verilog

Frameworks & Web

Next.js and PostgreSQL in TriageFlow, FastAPI serving ScreenSense

  • Next.js
  • React
  • Node.js
  • Tailwind CSS
  • FastAPI
  • API Routes
  • PostgreSQL
  • Docker
  • Vercel

Systems & Engineering

Raw sockets on Linux, UML-driven design, CAD to 3D print

  • Linux
  • Git/GitHub
  • Maven
  • UML
  • SDLC
  • Digital Logic Design
  • AutoCAD
  • Quartus Prime
  • 3D Printing

AI & ML

ScreenSense trained and deployed end to end, two offline LLM pipelines shipped on co-op

  • PyTorch
  • NumPy
  • SciPy
  • Computer Vision
  • CNNs
  • Transfer Learning
  • Model Training & Evaluation
  • Local LLMs (Ollama)
  • RAG
  • HuggingFace
  • OpenAI API
  • Groq API
  • Google Gemini API
  • GenAI tooling

Other Experience

Certifications

The credentials.

Professional CertificateVerifiedAugust 2026

Google AI Professional Certificate

Google

8 courses

  • AI Fundamentals
  • AI for Brainstorming and Planning
  • AI for Research and Insights
  • AI for Writing and Communicating
  • AI for Content Creation
  • AI for Data Analysis
  • AI for App Building
  • AI for App Deployment
Show credentialID 6HU6QQKJJOSU

Also recognized

  • DELF B1

    Proficient French speaker with DELF B1 certification.

  • McMaster Award of Excellence

    Awarded a $3,000 entrance scholarship.

  • WHMIS Certified

    Certified through the McMaster Faculty of Engineering.

Contact

Get in touch.

Email is fastest. I answer everything.