Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

A Convolutional Neural Network that is able to detect whether a patient has pneumonia, both bacterial and viral, based on an X-ray image of their chest.

Notifications You must be signed in to change notification settings

kjaisingh/Pneumonia-Diagnosis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pneumonia Diagnosis

Tackling a healthcare issue with Machine Learning.

A Convolutional Neural Network that is able to detect whether a patient has pneumonia, both bacterial and viral, or not, based on an X-ray image of their chest. Implements transfer learning, using the first 16 layers of a pre-trained VGG19 Network, to identify the image classes. The final accuracy obtained by the model, after testing on 624 unseen instances, is approximately 92%.

Execution Instructions

  1. Install the Kaggle API, which will assist in the downloading of data:
pip install kaggle
  1. Retrieve the data through the following command:
python retrieve.py
  1. Train the Convolutional Neural Network through the following command:
python train.py
  1. Make predictions on new, unseen chest X-ray using the Convolutional Neural Network The default image is 'test.jpg', which does possess Pneumonia:
python predict.py -i <path-to-image>

Generated Files

  • model.h5 - This stores a '.h5' version of the Convolutional Neural Network model trained.
  • plot.jpg - This displays statistics regarding the training process of the model.

About

A Convolutional Neural Network that is able to detect whether a patient has pneumonia, both bacterial and viral, based on an X-ray image of their chest.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages