orange-cxr-classifier is a collection of supervised trained machine learning model, trained to classify images of Chest X-Ray (CXR). All model is trained using posterior-anterior x-ray images from open database of COVID-19 cases chest X-ray published here by Joseph Paul Cohen. This trained model is to be use within Orange Data Mining program.
- Orange Data Mining
- Image Analytics Addon for Orange Data Mining
- Images of CXR you want to analyze
- Orange Data Mining with Image Analytics Add-on installed
- A trained model (you can get it from trained-model folder in this repository)
- Orange Workflow file predict-cxr.ows (you can get this file from this repository)
- Open Orange Workflow file predict-cxr.ows from within Orange Data Mining program.
- Follow instruction from step 1 to 8.
COVID-19 image data collection repository published by Joseph Paul Cohen is frequently updated. Training with updated data can improve model accuracy.
- awk or any awk variation, eg, gawk (awk is a domain-specific language designed for text processing)
- COVID-19 image data collection repository (can be downloaded here)
- unix or unix-like terminal (on Windows, you can use busybox for windows or cygwin)
- Orange Data Mining with Image Analytics Add-on installed
- Orange Workflow file train-cxr.ows (you can get this file from this repository)
- parsemetadata.awk (you can get this file from training-tool folder in this repository)
- Extract COVID-19 image data collection repository
- Copy parsemetadata.awk into COVID-19 image data collection repository main directory
- Launch your unix/unix-like terminal and execute parsemetadata.awk with awk using this command:
awk -f parsemetadata.awk metadata.csv
- This command will sort all image file found in metadata.csv into appropriate folder for training
- If everything goes ok, then you are now ready to start the training from within orange data mining.
- Launch orange data mining and open train-cxr.ows workflow file.
- Continue following instruction from within the workflow file.
Copyright (C) 2020 Mohd Kholid Yaacob (http://mrharmonies.blogspot.com)
This source is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the GNU General Public License is available on the World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also obtain it by writing to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1335, USA.