I Built an AI That Detects Pneumonia From Chest X-Rays: Here's Exactly How I Did It

TL;DR AI
2 min readKey summary
A developer built PneumoScan AI, a free web app for pneumonia detection from chest X-rays using a MobileNetV2-based classifier.
Trained on the Kaggle Chest X-Ray Images (Pneumonia) dataset with Adam and binary crossentropy, the model reportedly reached over 90% accuracy.
After a dog photo was wrongly labeled as pneumonia with high confidence, the developer added a Saturation Gate to block non-X-ray inputs.
The case highlights both the promise of AI for medical screening and the need for strong dataset quality and deployment safeguards.
