Pneumonia Prediction

Adham Arif, PythonDeep LearningTransfer Learning
Back

Train a model by using deep learning and transfer learning on x-ray images to predict pneumonia disease.

🔗 Link to GitHub repository

Libraries used

LibraryDescription
PandasData processing and analysis
TensorflowDeep Learning & Transfer Learning
KerasDeep Learning & Transfer Learning
MatplotlibData Visualization

Datasets

This project used ChestX-ray8 dataset from Cornell University, where here have a smaller X-ray dataset containing 5856 images. Instead of 14 different diseases we will here concentrate on much fewer possible labels so that hopefully the number of images is enough to train good deep learning classifiers.

Process

Results

CNN model CNN-loss

Pretrained model TL-loss

CNN model ROC-CNN

Pretrained model ROC-TL

Conclusion

  1. Both model show similar performance (0.99) AUC value. It shows that both model has higher True Positive rate and lower False Positive rate. Both models perform well to predict pneumonia.

  2. Since custom CNN model is less complex (and has less layer) compared to the transfer learning model, it is a simple model and faster to train. The simple network layer of our CNN model can give similar performance as the transfer learning model. It is preferable to use our custom CNN model in actual prediction application, because in practice, the hardware is limitation. Hence, simpler model that deliver good performances is a good choice.

© Adham ArifRSS