Machine Learning
WhyRisk
A live explainable healthcare risk platform: a LightGBM diabetes risk model trained on 70,692 health records (BRFSS), with patient‑level SHAP explanations and role‑based access for patients, doctors, and admins.
Case study, Machine Learning
A neural network written entirely by hand in NumPy — no TensorFlow, no scikit-learn — that reads handwritten digits live in the browser. Draw with the mouse, or in the air on your webcam, and watch every layer think. 98.5% on MNIST, plus a 'not a digit' class that rejects scribbles instead of guessing.
Context
Digit recognition is usually taught as a library call, and a standard classifier answers everything: draw a meaningless scribble and it still names a digit, confidently. Both hide what a neural network actually is — and what it does not know.
My role: Network core, training pipeline and web integration; semester project team with Saeed Shah (demo) and Adan (report and testing).
Implementation
The forward pass, softmax cross-entropy loss and backpropagation are implemented directly in NumPy — matrix multiplies, He initialisation and mini-batch gradient descent — with nothing between the mathematics and the code.
Every drawing is preprocessed exactly like the dataset: cropped to its bounding box, fitted into a 20×20 box and centred by mass. Training on shifted and rotated copies lifted accuracy on simulated hand-drawn digits from 66% to 98.7%.
An eleventh output class is trained on tens of thousands of synthetic non-digit drawings — random strokes, shapes and half-erased digits — so the network can answer "not a digit" instead of forcing a guess, and the demo refuses any answer below 80% confidence.
Evidence
The points below summarize the public repository and owner-provided CV where noted. Read the source for implementation details and the evaluation setup before drawing further conclusions.
9,851 of the 10,000 held-out test digits classified correctly; best digit 1 at 99.65%, hardest digit 5 at 97.76%.
Held-out non-digit drawings the model never trained on; only 0.12% of real digits are wrongly rejected.
784 → 128 → 64 → 11 fully connected network; the same trained weights run in Python and in the browser demo.
165,000 augmented digit images plus 24,000 synthetic non-digit drawings, trained for 12 epochs of mini-batch SGD.
Boundaries
Continue exploring