This repository contains code for:
✅ ResNet-18 Backbone: Fine-tuned on chest X-ray images for accurate pneumonia detection
✅ Model Evaluation: Includes both weighted and non-weighted accuracy assessments
✅ Class Activation Mapping (CAM): Visualizes critical regions influencing the model’s predictions
✅ Efficient Training: Optimized data pipelines for fast model training and inference
Pneumonia-Classification-Model/
├── PneumoniaClassification.ipynb # Jupyter Notebook for model training & evaluation
├── checkpoints/ # Saved model weights
├── data/ # Dataset folder (chest X-ray images)
├── outputs/ # Generated CAM images & evaluation results
└── README.md # Project documentation
git clone https://github.com/SYEDFAIZAN1987/Pneumonia-Classification-using-resnet-18-based-model-with-evaluation-and-CAM.git
cd Pneumonia-Classification-Model
pip install -r requirements.txt
jupyter notebook PneumoniaClassification.ipynb
Visual representation of regions critical to the model’s pneumonia classification:
Contributions are welcome! To contribute:
git checkout -b feature-branch
This project is licensed under the MIT License.
Developed by Syed Faizan
For any queries or collaborations, feel free to connect on GitHub.
⭐ If you found this project useful, please give it a star! ⭐
© 2025 Syed Faizan. All Rights Reserved.