Detection of Pneumonia Clouds in Chest X-Ray Using Image Processing Approach
Detection of Pneumonia Clouds in Chest X-Ray Using Image Processing Approach
Abstract—Finding ways to automate diagnostics from obligations, so we have undertaken a purely an image
medical images, has continuously been one of the most processing approach as in [4], using free open source tools
interesting areas of software development. This article presents a such as Python and its image processing libraries.
novel approach for detecting the presence of pneumonia clouds
INTRO
in chest X-rays (CXR) by using only Image processing When interpreting chest X-rays for Pneumonia, the
techniques. For this, we have worked on 40 analog chest CXRs radiologist will look for white spots in the lungs called
pertaining to Normal and Pneumonia infected patients. infiltrates that identify an infection. However, such cloudy
Indigenous algorithms have been developed for cropping and for patterns would also be observed in TB Pneumonia and severe
extraction of the lung region from the images. To detect cases of bronchitis too. For conclusive diagnosis, further
pneumonia clouds we have used Otsu thresholding which will investigations such as complete blood count (CBC), Sputum
segregate the healthy part of lung from the pneumonia infected test, and Chest computed tomography (CT) scan etc. may be
cloudy regions. We are proposing to compute the ratio of area of needed. Therefore, we are only attempting to detect
healthy lung region to total lung region to establish a result. The possibility of pneumonia from Chest X-rays, by looking for
task has been performed using Python and OpenCV as they are cloudy region in the same. Conclusive detection will depend
free, opensource tools and can be used by all, without any on pathological tests
legality issues or cost implication.
II. DATA AND SOFTWARE TOOLS USED
Keywords—Medical image processing, lung extraction,
Pneumonia cloud detection, lung segmentation, automated For the purpose of coding, we have used Python version
diagnosis 2.7 with the OpenCV libraries. We have developed
indigenous algorithms for cropping of images to remove
LS I. INTRODUCTION abdomen region and for lung boundary identification. We
have also looked for Japan Society of Radiological
Pneumonia is the leading cause of death among children
in developing countries, including India. WHO estimates that Technology (JSRT) image dataset as mentioned in [4], but
one in three new born infant deaths is due to pneumonia[1]. we felt that image quality of that dataset is really very good
About half of these deaths can be prevented as they are compared to ground truth images. So we have used analog
caused by the bacteria for which an effective vaccine is CXR images that matches rural scenario situations. As per
available. According to a report [2] which was released by availability, our dataset contains only 40 adult CXR.
International Vaccine Access Centre(IVAC), Johns Hopkins Few samples of normal and Pneumonia infected CXR
Bloomberg School of Public Health, India has the highest images from our dataset, are shown in Fig. 1 and Fig. 2.
number of pneumonia and diarrhea deaths among children in
the world with nearly three lakh children dying in 2016.
Chest X-ray (CXR), is an important tool for diagnosing
pneumonia and many clinical decisions rely heavily on its
radiological findings. Also it is relatively cheap compared to
other imaging diagnostics and can be afforded by masses.
Some work has been done on automated pneumonia detection
through natural language processing and artificial neural
network [3].However, such tools require elaborate hardware
and software setup.
In order to develop a software that can be easily and freely Fig. 1. Normal CXR images
ported to mobile devices, with no financial or license related
Resizing
Histogram equalisation
Lung boundary Fig. 4. (i) Image before histogram equalization (ii) Image after histogram
equalization
Fig. 5. (i) Image before cropping lower abdomen region (ii) Image after
cropping lower abdomen region Images of lung region after thresholding
IV. CONCLUSION
Computer assisted detection of diseases from CXR are
always very helpful at places where there is shortage of
skilled radiologist. In countries like India where, we do not
have experienced radiologists in rural areas, such tools can be
of immense help by automatically screening people who need
urgent medical care and further diagnosis.
At this stage of the project, we have identified the lung
(i) (ii) region by rib cage boundary identification and would be
computing the area of this region. We have also used Otsu
Fig. 6. Image after lung boundary detection (i) normal CXR (ii) Pneumonia thresholding to segregate the pneumonia cloud from the
affected CXR healthy lung in the lung area, still we are working on other
methods that can be adopted for thresholding the CXR images
which can yield better results. Also, we are now looking to
compute the ratio of the two areas - the area of the lung after
Otsu threholding to the area of the total lung area. As
pneumonia clouds are not visible in the image of the lung
after Otsu thresholding, this ratio is expected to be much
lower than when computed for healthy lungs without clouds.
REFERENCES
[1] WHO and Maternal and Child Epidemiology Estimation Group
(MCEE) estimates 2015.
[2] International Vaccine Access Centre (IVAC) “The Pneumonia
and Diarrhoea Progress Report for 2016”.
[3] Oliveira, L.L.G., Silva, S.A.e., Ribeiro, L.H.V., de Oliveira,
R.M., Coelho,C.J., S.Andrade, A.L.S. “Computer-aided
diagnosis in chest radiography for detection of childhood
pneumonia”(2008) International Journal of Medical
Informatics, 77 (8), pp. 555-564.
[4] Mohd Nizam Saad, Noraidah Sahari Ashaari, Hamzaini Abdul
Hamid, "Image Segmentation for Lung Region in Chest X-ray
Images using Edge Detection and Morphology", 2014 IEEE
International Conference on Control System Computing and
Engineering, 28-30 November 2014.