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

    Cari Tech

    2026

    • 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. Web Dev Team Member

    McMaster Advanced Space Systems CAN-SBX / Hamilton, Ontario

    2025 - Present

    • 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

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
  • 2026Games

    Apex Racer

    Arcade browser racing game with a custom-built game engine

    Built a top-down arcade racing game in the browser using a three-layer architecture: a pure TypeScript game engine with zero React dependencies, a custom useGameLoop hook that bridges the engine to React using refs to bypass reconciliation overhead, and a React UI layer for menus and HUD.

    • React
    • TypeScript
    • HTML5 Canvas
    • Vite
    • Tailwind CSS
  • 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
  • 2025Web

    Calendar To-Do List App

    Single-page planner with local persistence

    Built a browser-based calendar planner that lets users navigate months, select dates, create prioritized tasks, and manage daily work from a focused single-page interface.

    • HTML
    • CSS
    • JavaScript
    • Local Storage
    • Date 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.