Giter Site home page Giter Site logo

covid-detector-in-chest-x-ray's Introduction

Chest X-Ray Pneumonia and Covid-19 Detection

This repository contains projects focused on detecting pneumonia and Covid-19 using chest X-ray images. The projects utilize deep learning techniques to classify images and detect anomalies effectively.

Table of Contents

Project Overview

The main goal of these projects is to develop machine learning models that can accurately detect pneumonia and Covid-19 from chest X-ray images. The models are trained on datasets of pediatric chest X-ray images and are evaluated for their diagnostic accuracy.

Dataset

The datasets used in these projects contain X-ray images categorized into pneumonia, normal, and Covid-19 cases, organized in train, test, and val folders. The datasets are sourced from reputable medical centers and are publicly available for research purposes.

Installation

To run the notebooks and reproduce the results, follow these steps:

  1. Clone the repository:

    git clone https://github.com/nirtuttnauer/chest-xray-detection.git
    cd chest-xray-detection
  2. Create a virtual environment and install the required packages:

    python3 -m venv env
    source env/bin/activate
    pip install -r requirements.txt
  3. Download the datasets and place them in the appropriate directory:

    mkdir data
    # Move the downloaded datasets into the data directory

Usage

To run the analysis, open the Jupyter notebooks and execute the cells in order:

  1. train.ipynb: This notebook contains the training process for the pneumonia and Covid-19 detection models.
  2. test.ipynb: This notebook contains the testing and evaluation process for the trained models.

Methodology

Pneumonia Detection

  1. Data Preprocessing: Quality control screening, image resizing, and normalization.
  2. Model Training: Using convolutional neural networks (CNN) to train the model on the X-ray images.
  3. Evaluation: Assessing the model's performance using accuracy, precision, recall, and F1-score metrics.

Covid-19 Detection

  1. Data Splitting: Dividing the dataset into training, validation, and test sets.
  2. Data Augmentation: Applying techniques such as rotations, horizontal flipping, and zooming to improve generalization.
  3. Model Architecture: Implementing binary and multiclass classification models using CNNs and transfer learning with VGG16.
  4. Anomaly Detection: Utilizing autoencoders for unsupervised learning to detect anomalies in chest X-ray images.
  5. Embedding and KNN: Extracting embeddings from the multi-class model and using k-Nearest Neighbors for classification.

Results

Pneumonia Detection

The trained model achieves a high accuracy in detecting pneumonia from chest X-ray images. Detailed results and visualizations can be found in the test.ipynb notebook.

Covid-19 Detection

The models for Covid-19 detection showed significant performance, with binary classification achieving over 89% accuracy and multi-class classification reaching 82% accuracy. Anomaly detection and KNN classification further enhanced the robustness of the system.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Let me know if you need any additional sections or modifications to this README.

covid-detector-in-chest-x-ray's People

Contributors

nirtuttnauer avatar

Watchers

 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.