Skip to content

AI for Product Managers Nanodegree Alpha/Beta - Classifying x-ray images from a dataset using AutoML

Notifications You must be signed in to change notification settings

Ohara124c41/AIPM-Xray_Images-AutoML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

AIPM-Xray_Images-AutoML

Classifying x-ray images from a dataset using AutoML. This project is a walkthrough (beta) for the upcoming Artificial Intelligence for Product Managers Nanodegree. The goal is to teach students how to setup and use AutoML for AI projects (biomedical emphasis).

Initialize

To follow this example, please complete the following steps:

  1. Download the dataset images from: https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia/downloads/chest-xray-pneumonia.zip/2 NB: The dataset is not perfect and has some duplicates. Please prune these during your training process.
  2. Sign in (or create) an account for AutoML https://cloud.google.com/automl/
  3. Create a new project (specify image classification)

Pre-processing

  1. Create folders (local) based on their labeled classification (Normal, Pneumonia).
    NB: These labels will allow for AutoML to automatically assign a ground truth (i.e., it recognizes the keyword 'normal')
  2. Add an balanced number (i.e., 300 and 300) of images to each folder from the train folder to the new folders
    NB: I recommend using between 300 and 500 images per dataset without exceeding 1000 images total (so you can use the free node)
  3. Place each of these folders into a single folder (i.e., AutoMLDataset)
  4. Zip the master folder
  5. Upload this zipped folder as a dataset to the AutoML project (this will take several minutes depending on the number of images) image01

Training & Evaluation

  1. Select 'Train' to train the network. Ensure that you have an equal number of initial images for each category image02
  2. Do some exercise while you wait. This will improve your brain function ;)
  3. After training is completed, select the 'Evaluate' option image03 image04
  4. Not too bad, right? Let's make sure by validating our model with an image we did not (!) use before
  5. Click on the 'Predict' tab and upload a new image image05 image06
  6. That's it! You should now be able to create custom models for your own needs. If you would like to explore this dataset more, you can see that there are actually two type of pneumoia: bacterial and viral. You can separate these images into their own training sets and then repeat the steps to make predictions/classifications based on different types of the ailment.

Good luck with your nanodegree and career!

About

AI for Product Managers Nanodegree Alpha/Beta - Classifying x-ray images from a dataset using AutoML

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published