Coder Social home page Coder Social logo

covid19-xray-cnn's Introduction

Interpretable artificial intelligence framework for COVID‑19 screening on chest X‑rays

The CNN model of our paper "Interpretable artificial intelligence framework for COVID‑19 screening on chest X‑rays ", for predicting COVID19 from X-ray chest images against a) Pneumonia cases, b) Normal and Pneumonia cases and c) Normal, Bacterial Pneumonia and Viral Pneumonia cases.

Cite: Tsiknakis, N., Trivizakis, E., Vassalou, E. E., Papadakis, G. Z., Spandidos, D. A., Tsatsakis, A., Sánchez‑García, J., López‑González, R., Papanikolaou, N., Karantanas, A. H., Marias, K."Interpretable artificial intelligence framework for COVID‑19 screening on chest X‑rays". Experimental and Therapeutic Medicine, https://doi.org/10.3892/etm.2020.8797

Link: https://www.spandidos-publications.com/10.3892/etm.2020.8797

How to use

Model Training/Testing

In order to train or test the model you have to run python main.py -c configs/config_kfold.json for a kfold cross validation setting and python main.py -c configs/config.json for a setting with a single dataset. configs/config(_kfold).json contains every configuration option that you need to adjust in order to either train or test the model. Note that after finishing the training, the model will be tested automatically. Use the eval option in the config to manually test a model without training it first.

The results will be saved under a created folder named, experiments/name_of_the_setting/online(offline)/timestamp/. If the testing is done manually (config's eval option), the results will be saved in the offline folder.

Please see the example file for further information and adjust it properly for your needs.

GradCAM

Apply gradcam by running python main.py -c configs/config_gradcam.json. Again adjust the configuration file for your needs.

Results Analysis

The results_analysis.py python file saves a json file with every performance metric you need, as well as the prediction results and the ground truth. Run it by python results_analysis.py -c configs/config_metrics.json.

The analysis' results will be saved under a created folder named, experiments/name_of_the_setting/analysis/.

covid19-xray-cnn's People

Contributors

tsikup 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.