Pneumonia Detection

Problem Statement:

X-rays aid doctor in determining the presence of pneumonia. To detect pneumonia, the radiologists commonly look for Infiltrates (an abnormal substance that accumulates gradually within cells or body tissues) indicating an infection. However, many images are affected by Low contrast, overlapping organs and blurred boundaries, as a result a highly accurate model is necessary.

Model:

I used transfer learning, with the help of the famous ResNet50 model.

Resnet-50:

The Resnet Artificial Neural Network is a deep feedforward neural network with 50 layers.

Resnet

Resnet uses Skip Connections, where a residual block takes in the output of a layer and forwards it to further layers. These skip connections are passed through parametric gates, which determine how much information passes through the skip connection, thus avoiding Vanishing and Exploding Gradients. They do that by acting as gradient super-highways, allowing it to flow without being altered by a large magnitude.

Resnet Skip Connections

As we can see, when new layers are added, the error decreases.

Resnet accuracy

For more information about Resnets check out this article (https://towardsdatascience.com/the-annotated-resnet-50-a6c536034758)

Libraries:

Results:

0: normal, 1: Pneumonia

Accuracy:

  • accuracy: 0.9250
  • Loss: 0.1472