Giter Site home page Giter Site logo

pneumonia_classification's Introduction

Pneumonia Image Classification

Author: Andy Peng

The contents of this repository detail an analysis of the Pneumonia Image Classification project. This analysis is detailed in hopes of making the work accessible and replicable.

Business problem:

The task is to create a model that can accurately predict whether the patient has Pneumonia or not given a patient's chest xray image.

Data

Our dataset comes from Kaggle. The dataset contains three folders training, validation and testing. Each folder is filled with chest xray images used for training and testing the model that we will create.

Methods

  • Descriptive Analysis
  • Modeling
  • Choices made
  • Key relevant findings from exploritory data analysis

Results

Visual 1

> Normal Chest XRay

Visual 2

> Pneumonia Chest XRay

Visual 3

> First Activation of ModelI

Visual 4

> Sixth Activation of ModelI

Models

> ROC Curve of the different Models

> Model Results
  • Accuracy/ Recall - Baseline Model
  • Precision/F1 Score - Imbalance Model

Recommendations:

To summarize everything above, we can see from above that

  • Recall/Accuracy - ModelB
  • Precicion/F1 Score/ AUC - ModelI

Our goal is to minimize the amount of patients we classify as healthy when they do indeed have Pneumonia. Therefore we would want to minimize false negatives in other words maximizing recall. Our recommendation is to stick with ModelI. Although modelB was slightly better in recall and accuracy, there was only a slight difference in the recall and accuracy score. Also ModelI did better in precision score, F1 score and AUC score. Therefore ModelI is the best model to use for predictions.

Limitations & Next Steps

There are many things that we didn't due to lack of time and money constraints. For example, we can ask a doctor what they would look at in a chest xray image to determine whether a patient has Pneumonia or not. We could also use cross validation or gather more data to further improve our models. (Future Work - Include RNN Model)

For further information

Please review the narrative of our analysis in our jupyter notebook or review our presentation

For any additional questions, please contact [email protected]

Repository Structure:

Here is where you would describe the structure of your repoistory and its contents, for example:


├── README.md                       <- The top-level README for reviewers of this project.
├── Image Classification.ipynb             <- narrative documentation of analysis in jupyter notebook
├── presentation.pdf                <- pdf version of project presentation
└── Visualizations
    └── images                          <- both sourced externally and generated from code

pneumonia_classification's People

Contributors

andypeng93 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.