How saifullah-s/pneumonia-detection works
PneumoCatcher is a chest-X-ray pneumonia classification project. Its documented workflow preprocesses labeled images, trains and compares a custom CNN with fine-tuned ResNet-50 variants, evaluates their predictions, and uses Grad-CAM to explain model decisions. The JPEG-to-HDF5 converter is directly evidenced in source; the notebook’s model and analysis stages are represented from README descriptions because its contents were not sampled. The README also describes reporting and presentation deliverables, which are not runtime components.
Main entry points: pneumonia_detection.ipynb Pneumonia predictions · jpeg_to_hdf5.py JPEG converter
Components 12
Image preparation
- JPEG converter
data/jpeg_to_hdf5.py - HDF5 image set
- Image preprocessing
pneumonia_detection.ipynb - Train/test split
pneumonia_detection.ipynb
Modeling
- Custom CNN
pneumonia_detection.ipynb - Fine-tuned ResNet-50
pneumonia_detection.ipynb - Pneumonia predictions
pneumonia_detection.ipynb
Evaluation and interpretation
- Model evaluation
pneumonia_detection.ipynb - Grad-CAM heatmaps
pneumonia_detection.ipynb - Results and recommendations
pneumonia_detection.ipynb
Other components
- Researcher
- Labeled X-rays
Connections 15
- Researcher → JPEG converter: prepares data
README.md - Labeled X-rays → JPEG converter: reads JPEGs
data/jpeg_to_hdf5.py - JPEG converter → HDF5 image set: writes images
data/jpeg_to_hdf5.py - HDF5 image set → Image preprocessing: converts to arrays
README.md - Image preprocessing → Train/test split: prepares split
README.md - Researcher → Image preprocessing: runs analysis
README.md - Train/test split → Custom CNN: trains
README.md - Train/test split → Fine-tuned ResNet-50: fine-tunes
README.md - Custom CNN → Pneumonia predictions: classifies
README.md - Fine-tuned ResNet-50 → Pneumonia predictions: classifies
README.md - Pneumonia predictions → Model evaluation: evaluates metrics
README.md - Pneumonia predictions → Grad-CAM heatmaps: generates heatmaps
README.md - Model evaluation → Results and recommendations: informs findings
README.md - Grad-CAM heatmaps → Results and recommendations: informs findings
README.md - Results and recommendations → Researcher: reports results
README.md