CAM of RESNET18 trained on Imagenet for Covid-19 pneumonia detection
Developement of an algorithm to classify toracic x-ray images with covid induced pneumonia from healthy subject and patients with non-covid related pneumonia. We trained a state of the art CNN adapting an open source imageset and evaluated the class activation maps of the network to extrapolate remarkable insights in such diagnostic science based on the decision rules developed by the model.

COVID-19 disease is one of the biggest challenges of the 21st century. At the time of this work, about 150 million people have been tested positive, and more than 3 million of people have died as a result. The fighting of this virus has required, and still requires, heroism of the healthcare workers, efficiency in the research for an effective vaccination, social organization and technological solutions. As of now, the main clinical tool currently in use for the diagnosis of COVID-19 is the Reverse Transcription Polymerase Chain Reaction (RT- PCR), which is expensive, less-sensitive and requires specialized medical personnel. On the other hand, X-ray imaging is an easily accessible tool currently worldwide performed, and that could be exploited as an alternative in the COVID-19 diagnosis.
This work proposes a robust technique for the automatic detection of COVID-19 and viral pneumonia from digital chest X-ray images applying the ResNet18 pre-trained deep-learning algorithm while maximizing the detection accuracy. Moreover, the Class Activation Mapping has been implemented to highlight the most relevant pixels which led to the classification of the image. The effectiveness of the proposed method was evaluated on a public chest X-ray images database, containing images labelled as COVID-19, viral pneumonia and normal images. The networks were trained to classify two different schemes: i) normal and COVID-19 pneumonia; ii) normal, viral and COVID- 19 pneumonia, while 3-folds cross validation was performed to inspect the presence of sub-dataset able to better or equally generalize the problem. The classification accuracy reached the 95% level. Hence, this work shows how computer aided tools can be used to significantly improve the speed and the accuracy of the COVID-19 diagnosis, as well as reduce the work load of the healthcare workers.
