Skip to content

A deep learning model built with PyTorch to classify chest X-ray images into normal or diseased categories using a pretrained ResNet18 architecture. Trained on a labeled dataset of chest X-rays for automated medical diagnosis support.

Notifications You must be signed in to change notification settings

Fazil-kagdi/Chest-Xray-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Chest-Xray-Pneumonia-Classifier

A deep learning model built with PyTorch to classify chest X-ray images into normal or diseased categories using a pretrained ResNet18 architecture. Trained on a labeled dataset of chest X-rays for automated medical diagnosis support.

๐Ÿ” Overview

This project uses ResNet-18 to detect pneumonia from chest X-ray images. Both a scratch-trained and a pretrained version of the model were evaluated.


๐Ÿง  Model Performance

Model Overall Accuracy Normal Accuracy Pneumonia Accuracy
ResNet-Scratch 86.38% 70.51% 95.90%
ResNet-Pretrained 90.87% 85.04% 94.36%

โœ… The pretrained model significantly improved classification of normal cases while maintaining high pneumonia accuracy.

โš™๏ธ Setup

Install required packages:

pip install torch torchvision matplotlib numpy

๐Ÿ“ฅ Dataset

To train and evaluate the model, you'll need the chest X-ray image dataset.

๐Ÿ“ฆ Download chest_xray_images.zip from Google Drive

After downloading, unzip it and place the folder like this: Chest-Xray-Classifier/ โ”œโ”€โ”€ chest_xray_images/

About

A deep learning model built with PyTorch to classify chest X-ray images into normal or diseased categories using a pretrained ResNet18 architecture. Trained on a labeled dataset of chest X-rays for automated medical diagnosis support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published