Youssef Khafagy, software engineering portfolio: a workstation at night

Ordinate

Youssef Khafagy, software engineering portfolio

About

Youssef Khafagy

Software engineering student building AI/ML pipelines, LLM-powered tools, and full-stack apps.

Open to software engineering internships and co-op opportunities

  • Plain version

Youssef Khafagy

Software engineering student building AI/ML pipelines, LLM-powered tools, and full-stack apps.

This summer I built two offline AI pipelines on co-op at a banking software company. I also built ScreenSense, an app that predicts where people will look first in any image.

Email me
Status
Software Engineering Student, McMaster University
Location
Toronto, Ontario
Availability
Open to software engineering internships and co-op opportunities
Focus
AI/ML engineering · AI workflows · Full-stack · Systems

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.

The work.

YK-101AI2026

NightShift

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

Root causes found
4 → 18of 36 incidents: the same model given only the alarm vs. given its tools
Live bad deploy
138 sto 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.

Stack

  • Python
  • TypeScript
  • Next.js
  • AWS Lambda
  • Aurora DSQL
  • Terraform
  • GitHub Actions
  • LLM APIs
Detail A
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).
YK-102AI2026

ScreenSense

Visual attention prediction with a custom-trained CNN

AUC-Judd
0.9613published 0.87
Pearson CC
0.8756published 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.

Stack

  • Python
  • PyTorch
  • MobileNetV2
  • FastAPI
  • HuggingFace Spaces
  • Docker
  • Next.js
  • TypeScript
  • Tailwind CSS
  • Vercel
Detail A
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.
YK-103AI2026

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.

Impact

Designed to cut down repeated intake questioning, speed up review, and make the flow from submission to staff-ready status easier to manage during busy periods.

Stack

  • Next.js
  • TypeScript
  • PostgreSQL
  • Docker
  • Gemini API
  • OpenAI API
  • Groq API
  • Vercel
Detail A
TriageFlow interface preview
  • Built separate patient and staff flows, including guided intake, live submission review, urgency override, and ready-state updates.
  • Used strict JSON validation so AI output stayed structured and clinically reviewable instead of freeform.
  • Implemented realtime queue updates with polling or SSE and deployed the app as a clean demo on Vercel.
YK-104AI2026

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.

Impact

Beats an Elo-only baseline on ranked probability score (0.2091 against 0.2140), Brier, and log loss, at 0.04 expected calibration error backtested on the 2018 and 2022 tournaments with no data leakage. Built with one other engineer across a 6,900-line monorepo.

Stack

  • Python
  • NumPy
  • SciPy
  • TypeScript
  • React
  • Web Workers
  • Monte Carlo
  • Vercel
Detail A
WELTMEISTER dashboard showing simulated title odds and model calibration figures
  • Fit the model using SciPy L-BFGS-B against a hand-derived analytic gradient, with exponential time-decay weighting so recent results carry more weight and ridge regularization to keep small-sample nations from blowing up.
  • Blended Elo and squad ratings through a two-prior Bayesian scheme, then backtested the whole pipeline on the 2018 and 2022 World Cups with strict separation between fitting and evaluation data so the calibration numbers mean something.
  • Wrote a dependency-free TypeScript Monte Carlo simulator that runs 50,000 full tournaments in a Web Worker using a seeded PRNG and a quantized scoreline CDF cache, with all model fitting precomputed into a single JSON artifact so the app deploys fully static.
YK-105Systems2026

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.

Impact

Pushed me deeper into raw sockets, checksum construction, Linux interface stats, and the discipline of building readable systems software with clean output paths.

  • Implemented ICMP packet construction manually, including headers, checksums, TTL stepping, and traceroute hop discovery.
  • Read interface statistics from /proc/net/dev to compute RX/TX bitrate and rolling bandwidth data on Linux.
  • Structured the codebase into scanner, tracer, monitor, formatting, and logging modules with support for text, CSV, and JSON output.

Stack

  • C
  • Linux
  • Raw Sockets
  • ICMP
  • JSON
  • CSV
  • Bash
YK-106Systems2025

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.

Impact

Sharpened my object-oriented design skills through geometry-heavy board logic, rule enforcement, agent actions, and configuration-driven simulation runs.

  • Implemented core rulebook constraints including 19-tile setup, 54-vertex mapping, settlement spacing, resource production, and termination conditions.
  • Used a command-based action hierarchy for roads, settlements, and cities to keep simulation actions modular.
  • Included a fair-start heuristic to avoid deadlock-prone openings and support more balanced automated runs.

Stack

  • Java
  • UML
  • Simulation
  • Command Pattern
  • Domain Modeling
YK-107Embedded2025

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.

Impact

Combined physical design, hardware integration, and embedded logic into a user-centered accessibility prototype rather than a software-only concept.

Stack

  • Arduino
  • Sensors
  • C/C++
  • AutoCAD
  • Embedded Logic
Detail A
Person shown in the demo video is a group member.
  • Integrated sensors and actuators to process distance data and trigger tactile feedback quickly enough for live use.
  • Programmed embedded control logic that translated obstacle distance into clear actuator responses.
  • Worked across hardware packaging, software behavior, and interaction design for an assistive use case.
YK-108Games2025-2026

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.

Impact

These projects gave me a fast feedback environment for learning state management, input handling, collision logic, menus, and real-time debugging.

  • Built real-time movement, ball physics, score tracking, and local multiplayer controls in the 2D soccer game.
  • Used object-oriented design to organize entities, menus, collisions, and scoring systems across multiple games.
  • Treated smaller games as a serious engineering sandbox for interaction design and iterative architecture decisions.

Stack

  • Python
  • Java
  • Pygame
  • OOP
  • Game Logic
YK-109Systems2025

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.

Impact

Took a concept from CAD model to a physical 3D-printed build, with Python supporting the technical workflow along the way.

Stack

  • CAD
  • Python
  • 3D Printing
Detail A
  • Used CAD as a primary design tool to shape and communicate the airport concept.
  • Applied Python as part of the technical workflow instead of keeping the project purely design-side.
  • Extended the project into fabrication-oriented prototyping through 3D printing.

Where I study.

  • McMaster University

    Bachelor of Engineering, Software Engineering

    2024 - 2028

    Hamilton, Ontario

  • M.M. Robinson High School

    OSSD, graduated with a 97% average

    2020 - 2024

    Burlington, Ontario

More about me.

I'm a software engineering student at McMaster who likes building things and then checking whether they actually work. ScreenSense is the best example: it started as an idea and ended up as a model that beats a published research baseline instead of staying a demo.

I like working across the stack. Full-stack products teach me what users need, and AI/ML projects push me to get the most out of new tools and keep up with how fast the technology is moving. Each one makes the other better.

This summer I did a software engineering co-op at a banking software company, where I built two AI pipelines that had to run fully offline on a 4GB laptop GPU, since 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, AI/ML pipelines, and LLM tooling
Currently
Third-year software engineering student at McMaster

Interests

AI / Machine Learning

LLM tooling and AI-assisted products, with benchmarks to back it up.

  • Full-stack products
  • Offline AI pipelines
  • Machine learning
  • LLM tooling
  • AI-assisted development
  • Prompt engineering
  • Model training and evaluation

The tech stack.

Languages

TypeScript everywhere, Python for the AI pipelines, Java in the Catan simulator

  • 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

  1. Server

    Industria Pizzeria

    Jun 2024 - Sep 2024

    Burlington, Ontario

    • Coordinated with kitchen and front-of-house staff to keep orders accurate during peak periods.
    • Managed competing priorities across multiple tables during full dinner service.
  2. Crew Member

    Tim Hortons

    Sep 2021 - Nov 2023

    Burlington, Ontario

    • Handled rush periods with a small crew where speed and order accuracy both mattered.
    • Worked opening shifts from 6 a.m. for two years alongside full-time school.

The credentials.

Google AI Professional Certificate

Google

Issued
August 2026
Credential ID
6HU6QQKJJOSU

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
Google AI Professional Certificate issued to Youssef Khafagy on August 18, 2026

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.

Get in touch.

Email is fastest. I answer everything.

Email

youssef.m.khafagy@gmail.com

Email me