Back To Projects

The Differentiation of Viral and Bacterial Pneumonia using Deep Learning

Arnav D. |
workspace_premium 2nd Place at Orange County Science Fair, California Science and Engineering Fair (CSEF)

This project aims to find out whether a Convolutional Neural Network can be used to classify x-ray scans as having either bacterial or viral Pneumonia.


This project aims to find out whether a Convolutional Neural Network can be used to classify x-ray scans as having either bacterial or viral Pneumonia. First, its use is discussed, as it is meant to be used to assist with pulmonary healthcare in underprivileged areas. Then, its structure is outlined as a CNN set up using Keras and Tensorflow that is trained on a dataset consisting of 5856 x-ray scans of patients one to five years old from Guangzhou Women and Children’s Medical Center. After testing multiple setups, the final model, based on Inception ResNet v2, differentiates between the two types of Pneumonia with a 75% test accuracy, using minimal epochs in order to increase efficiency. The model was further improved by using dropout, the implementation of early stopping, L2 regularization and augmentation of the training data in order to combat overfitting. Lastly, the model’s limitations and future are discussed. This model proves one can predict and identify types of Pneumonia using a CNN with relatively high accuracy and shows the potential of deep learning in the context of medical imaging to assist medical staff.

Arnav D.
Erick Siavichay
Computer Science Alum from Stanford, Software Engineering and Data Science at Tagg

Related Projects

Identifying Cancer Types in Microscope Images of Lung and Colon Cells

Lung adenocarcinoma cells make up large proportions of lung cancer cases and colon cancer is one of the most prevalent cancers in the United States. Although many different medicines have been recently developed to attack these cancers, the most effective way to stop it is early detection.
Adam S.
Mentored by Odysseas Drosis
Brain Cancer Detection

Current methods for determining the presence and type of brain tumor in a given patient’s MRI scan can oftentimes be inefficient and are prone for error. By using a machine learning algorithm, the error in these classifications is reduced significantly, and the process is made much more efficient.
Rohan T.
Mentored by
Individualizing Medicine: AI in Predicting the Effect of Yoga on Adrenomedullin Levels

I created and tuned four regression models that predicted a patient’s ADM levels after doing yoga: a Linear regressor, a Random Forest regressor, a Ridge regressor, and an Artificial Neural Network(ANN).
Smriti R.
Mentored by Varsha Sandadi