In this project, we focus on the classification of chest X-ray images into Normal and Pneumonia categories. Using Convolutional Neural Networks (CNNs), we train a model to classify chest x-ray images. The dataset used for training consists of labeled chest X-ray images, containing both Normal and Pneumonia cases. The model is trained on a subset, validated and tested on a different set to measure its performance. Image augmentation and preprocessing techniques, along with transfer learning was used to enhance the model's performance.
1. Dataset:
2. Data Preprocessing:
3. Model Architecture:
4. Model Training:
The model is trained using a binary cross-entropy loss function, which is appropriate for binary classification tasks.
5. Model Evaluation:
The model is evaluated using accuracy score to measure its performance.
After training and evaluating the CNN-based model for chest X-ray classification, the following results were obtained:
Accuracy: The model achieved an overall classification accuracy of 94% on the training set, indicating that the model correctly classified the X-ray images into Normal and Pneumonia categories most of the time.
Validation and Test Performance:
The model performed similarly on the validation and test sets with an accuracy score of 87%, demonstrating good generalization and minimal overfitting.
The fine-tuned model is deployed on streamlit for an easy-to-use interface.
Try out the app here.
There are no models linked
There are no models linked