This project utilizes deep learning to classify chest X-ray images into four categories: Pneumonia, COVID-19, Tuberculosis, and Normal. By employing the ResNet50 convolutional neural network architecture, the model aims to enhance diagnostic accuracy in medical imaging through advanced feature extraction and classification techniques.
To develop a convolutional neural network (CNN) model using ResNet50 to classify chest X-ray images into disease categories, improving diagnostic support and enabling early detection of critical illnesses.
- How effectively can ResNet50 classify X-ray images into distinct disease categories?
- Does balancing the dataset improve classification accuracy for underrepresented classes?
- How does the modelβs performance change with the inclusion of BatchNormalization and Dropout layers?
- What metrics best represent the success of the classification model (e.g., accuracy, loss)?
- Can the model achieve a high generalization capability across diverse datasets?
- Source: Kaggle Chest X-Ray Dataset
- Size: 6326 images
- Categories:
- Pneumonia
- COVID-19
- Tuberculosis
- Normal
- Structure: Training, validation, and test sets with augmented image data.
-
Model Performance:
- Initial accuracy: 74% with a loss of 0.6596 (underfitting observed).
- Balanced dataset accuracy: Improved to 81% with a loss of 0.4910.
-
Model Enhancements:
- BatchNormalization stabilized and accelerated training.
- Dropout layers reduced overfitting by deactivating 50% of neurons randomly during training.
-
Dataset Observations:
- Unbalanced dataset with an overrepresentation of Pneumonia images.
- Implementing
compute_class_weight
improved fairness and performance.
-
Conclusion:
- ResNet50, with fine-tuning and proper balancing techniques, demonstrates strong performance in disease classification.
- Incorporating balanced data and advanced techniques such as BatchNormalization is critical for improving model efficiency and reliability.