This project uses Convolutional Neural Networks (CNN) to detect Pneumonia from chest X-ray images. The dataset is sourced from the Kaggle dataset "Chest X-Ray Images (Pneumonia)" by Paul Mooney.
The dataset consists of X-ray images categorized into two classes:
- Normal
- Pneumonia
You can download the dataset from Kaggle
<> Create a virtual environment and activate it.
python3 -m venv venv
source venv/bin/activate
<>Install the required packages.
pip install -r requirements.txt
<> Download the dataset and place it in the data/ directory and run the ipy notebook file.
The CNN model architecture consists of several convolutional layers, each followed by max-pooling layers, and finally dense layers for classification.
- Conv2D layers with ReLU activation
- MaxPooling2D layers
- Flatten layer
- Dense layers with ReLU activation
- Output Dense layer with sigmoid activation for binary classification
- Training accuracy : 98.16%
- Validation accuracy : 100%
