Have been extremely interested in using fastai’s medical imaging library for a while so I attempted to complete a user guide (and hence improve my knowledge of how to use this library) for notebook 60_medical.imaging.ipynb.
Notebook blogs:
- Medical Imaging using Fastai going through notebook 60_medical.imaging.ipyb
- Starting with Medical Imaging
- Getting to know DICOMS Taking a deeper look at how to view and manipulate DICOM images
The SIIM_Slim dataset is a great dataset included in fastai datasets to help start with playing around with DICOMs quickly.
The guide also includes an intro into DICOMs and I have also included a starter notebook that looks at some high level considerations when modeling and evaluating models for medical diagnosis. I also customized a number of functions for example:
- DICOMs allow us to check if the same patient ID so we can easily check to see if the train and validation sets have the same patient ID which could result in an overly optimistic test set.
- Check to see how many ‘normal’ and ‘disease’ images are in train/validation sets and help to work with unbalanced datasets (work in progress)
- Evaluating metrics on model performance such as specificity, sensitivity, PPV, NPV which are all important when determining how a model is doing.
Still in the pipeline:
-
The SIIM_Slim dataset is limited in that it does not some DICOM attributes that are needed in order to fully utilize the library such asGetting to know DICOMSRescale Intercept
andRescale Slope
. So this is a work in progress. - Provide a more robust end-to-end notebook
If anyone has worked with this library it would be great to have some insights so that we can get better documentation. There have been a number of sources with the best being Jeremy’s Kaggle notebooks of which 5 are specific for medical imaging and here