← All Projects

COVID-19 Chest X-Ray Classification

A CNN decision-aid that triages chest X-rays into COVID, Normal, and Viral Pneumonia

Overview

We taught a computer to look at a chest X-ray and flag whether it looks like COVID, normal lungs, or another type of pneumonia.

Methodology

flowchart LR
  A[Image Dataset] --> B[Resize / Normalize / Augment]
  B --> C["CNN: Conv + Pooling layers"]
  C --> D[Dense + Softmax]
  D --> E[Train w/ Early Stopping]
  E --> F["Evaluate: Accuracy and Confusion Matrix"]

The Data (X-ray Images)

We started with a few hundred labeled chest X-ray pictures, each already tagged with its true condition.

Sample Images & Preprocessing

We shrank every X-ray to a smaller size and put all the pixel values on the same scale so the model could learn efficiently.

CNN Architecture

The model is built from layers that scan the X-ray for patterns, then a final layer that votes on the most likely condition.

Results & Accuracy

The first simple model guessed poorly, but adding tricks and a pre-trained network made the predictions much more reliable.

Key Takeaways

Pre-trained image networks gave the best, most trustworthy results, but a tool like this should support doctors rather than replace them.

More Visualizations

Tech Stack

Attribution

This project was completed as part of the MIT Applied Data Science Program (MIT IDSS / Great Learning). The program provided the case-study scaffolding; the analysis, code, and results are my own. Published with permission, for portfolio use only.