Combined VGG-Long Short Term Memory with Gamma Correction for Pneumonia Type Classification based on Chest X-Rays

Nia Amelia, Riskyana Dewi Intan Puspitasari, Hasanuddin Al-Habib, Elly Matul Imah


Pneumonia is the second disease with the most patients being treated in the emergency department. Pneumonia can be distinguished based on its severity into viral and bacterial pneumonia. The coronavirus (COVID-19) has become a pandemic that spread globally. Panic during the pandemic has caused many people to self-diagnose and acknowledge common pneumonia as COVID-19. Despite having almost similar symptoms, not all pneumonia is COVID-19. Pneumonia is an inflammation of the lungs caused by bacteria, viruses, or fungi. In contrast, pneumonia in COVID-19 is caused by the SARS-CoV-2 virus. Early diagnosis of COVID-19 and pneumonia is crucial to perform the optimal treatment. A chest x-ray is a common way to detect pneumonia and is recommended for COVID-19. This study proposes a Pneumonia classification including a COVID-19 system based on X-Rays images using VGG-long short-term memory (LSTM) on chest X-ray images. This study applied gamma correction image enhancement to the thorax X-ray image. In the proposed system, VGG is used for feature extraction, and LSTM is used as a classifier. The experimental results show that the proposed system got an accuracy of 96.88% compared to previous state-of-the-art methods for pneumonia classification


Pneumonia; Covid-19; VGG; LSTM; Classification

Full Text:



T. S. Valley, M. W. Sjoding, A. M. Ryan, T. J. Iwashyna, and C. R. Cooke, “Association of intensive care unit admission with mortality among older patients with pneumonia,” Jama, vol. 314, no. 12, pp. 1272–1279, 2015.

R. S. Gereige and P. M. Laufer, “Pneumonia,” Pediatrics in Review, vol. 10, no. 1, pp. 438–456, 2013.

K. Ri, “Profil kesehatan indonesia tahun 2020,” Kemenkes RI, 2021.

I. Vad´asz, F. Husain-Syed, P. Dorfm¨uller, F. C. Roller, K. Tello, M. Hecker, R. E. Morty, S. Gattenl¨ohner, H.-D. Walmrath, and F. Grimminger, “Severe organising pneumonia following covid-19,” Thorax, vol. 76, no. 2, pp. 201–204, 2021.

L. Gattinoni, S. Gattarello, I. Steinberg, M. Busana, P. Palermo, S. Lazzari, F. Romitti, M. Quintel, K. Meissner, and J. J. Marini, “Covid-19 pneumonia: pathophysiology and management,” European Respiratory Review, vol. 30, no. 162, 2021.

A. H. Attaway, R. G. Scheraga, A. Bhimraj, M. Biehl, and U. Hatipo˘glu, “Severe covid-19 pneumonia: pathogenesis and clinical management,” bmj, vol. 372, 2021.

K.-H. Yu, A. L. Beam, and I. S. Kohane, “Artificial intelligence in healthcare,” Nature biomedical engineering, vol. 2, no. 10, pp. 719–731, 2018.

A. Zargari Khuzani, M. Heidari, and S. A. Shariati, “Covid-classifier: An automated machine learning model to assist in the diagnosis of covid-19 infection in chest x-ray images,” Scientific Reports, vol. 11, no. 1, p. 9887, 2021.

H. Panwar, P. Gupta, M. K. Siddiqui, R. Morales-Menendez, P. Bhardwaj, and V. Singh, “A deep learning and grad-cam based color visualization approach for fast detection of covid-19 cases using chest x-ray and ct-scan images,” Chaos, Solitons & Fractals, vol. 140, p. 110190, 2020.

Y. Oh, S. Park, and J. C. Ye, “Deep learning covid-19 features on cxr using limited training data sets,” IEEE transactions on medical imaging, vol. 39, no. 8, pp. 2688–2700, 2020.

M. Z. Islam, M. M. Islam, and A. Asraf, “A combined deep cnn-lstm network for the detection of novel coronavirus (covid-19) using x-ray images,” Informatics in medicine unlocked, vol. 20, p. 100412, 2020.

A. K. Das, S. Ghosh, S. Thunder, R. Dutta, S. Agarwal, and A. Chakrabarti, “Automatic covid-19 detection from x-ray images using ensemble learning with convolutional neural network,” Pattern Analysis and Applications, vol. 24, pp. 1111–1124, 2021.

M. K. Aditi and E. Poovammal, “Image classification using a hybrid lstm-cnn deep neural network,” Int. J. Eng. Adv. Technol, vol. 8, no. 6, pp. 1342–1348, 2019.

S. H. Khan, A. Sohail, A. Khan, M. Hassan, Y. S. Lee, J. Alam, A. Basit, and S. Zubair, “Covid-19 detection in chest x-ray images using deep boosted hybrid learning,” Computers in Biology and Medicine, vol. 137, p. 104816, 2021.

R. Kaur, M. Chawla, N. K. Khiva, and M. D. Ansari, “On contrast enhancement techniques for medical images with edge detection: a comparative analysis,” Journal of Telecommunication, Electronic and Computer Engineering (JTEC), vol. 9, no. 3-6, pp. 35–40, 2017.

T. Rahman, A. Khandakar, Y. Qiblawey, A. Tahir, S. Kiranyaz, S. B. A. Kashem, M. T. Islam, S. Al Maadeed, S. M. Zughaier, and M. S. Khan, “Exploring the effect of image enhancement techniques on covid-19 detection using chest x-ray images,” Computers in biology and medicine, vol. 132, p. 104319, 2021.

S.-C. Huang, F.-C. Cheng, and Y.-S. Chiu, “Efficient contrast enhancement using adaptive gamma correction with weighting distribution,” IEEE transactions on image processing, vol. 22, no. 3, pp. 1032–1041, 2012.

S. Karakanis and G. Leontidis, “Lightweight deep learning models for detecting covid-19 from chest x-ray images,” Computers in biology and medicine, vol. 130, p. 104181, 2021.

A. M. Ismael and A. S¸eng¨ur, “Deep learning approaches for covid-19 detection based on chest x-ray images,” Expert Systems with Applications, vol. 164, p. 114054, 2021.

S. Dilshad, N. Singh, M. Atif, A. Hanif, N. Yaqub, W. Farooq, H. Ahmad, Y.-m. Chu, and M. T. Masood, “Automated image classification of chest x-rays of covid-19 using deep transfer learning,” Results in physics, vol. 28, p. 104529, 2021.

P. Pagliano, C. Sellitto, V. Conti, T. Ascione, and S. Esposito, “Characteristics of viral pneumonia in the covid-19 era: an update,” Infection, vol. 49, pp. 607–616, 2021.

A. Giannakis, D. M´or´e, S. Erdmann, L. Kintzel´e, R. M. Fischer, M. N. Vogel, D. L. Mangold, O. von Stackelberg, P. Schnitzler, and S. Zimmermann, “Covid-19 pneumonia and its lookalikes: How radiologists perform in differentiating atypical pneumonias,” European Journal of Radiology, vol. 144, p. 110002, 2021.

S. Minaee, R. Kafieh, M. Sonka, S. Yazdani, and G. J. Soufi, “Deepcovid: Predicting covid-19 from chest x-ray images using deep transfer learning,” Medical image analysis, vol. 65, p. 101794, 2020.

E. E.-D. Hemdan, M. A. Shouman, and M. E. Karar, “Covidx-net: A framework of deep learning classifiers to diagnose covid-19 in x-ray images,” arXiv preprint arXiv:2003.11055, 2020.

X. Li, C. Li, and D. Zhu, “Covid-mobilexpert: On-device covid-19 patient triage and follow-up using chest x-rays,” in 2020 IEEE international conference on bioinformatics and biomedicine (BIBM). IEEE, 2020, pp. 1063–1067.

I. D. Apostolopoulos and T. A. Mpesiana, “Covid-19: automatic detection from x-ray images utilizing transfer learning with convolutional neural networks,” Physical and engineering sciences in medicine, vol. 43, pp. 635–640, 2020.

M. Loey, F. Smarandache, and N. E. M. Khalifa, “Within the lack of chest covid-19 x-ray dataset: a novel detection model based on gan and deep transfer learning,” Symmetry, vol. 12, no. 4, p. 651, 2020.

C. Sitaula and M. B. Hossain, “Attention-based vgg-16 model for covid-19 chest x-ray image classification,” Applied Intelligence, vol. 51, pp. 2850–2863, 2021.

G. S. George, P. R. Mishra, P. Sinha, and M. R. Prusty, “Covid-19 detection on chest x-ray images using homomorphic transformation and vgg inspired deep convolutional neural network,” Biocybernetics and Biomedical Engineering, vol. 43, no. 1, pp. 1–16, 2023.

G. Caseneuve, I. Valova, N. LeBlanc, and M. Thibodeau, “Chest xray image preprocessing for disease classification,” Procedia Computer Science, vol. 192, pp. 658–665, 2021.

S. Perumal and T. Velmurugan, “Preprocessing by contrast enhancement techniques for medical images,” International Journal of Pure and Applied Mathematics, vol. 118, no. 18, pp. 3681–3688, 2018.

G. Mountrakis, J. Im, and C. Ogole, “Support vector machines in remote sensing: A review,” ISPRS journal of photogrammetry and remote sensing, vol. 66, no. 3, pp. 247–259, 2011.

S. Hochreiter, “The vanishing gradient problem during learning recurrent neural nets and problem solutions,” International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems, vol. 6, no. 02, pp. 107–116, 1998.

G. Chen, “A gentle tutorial of recurrent neural network with error backpropagation,” arXiv preprint arXiv:1610.02583, 2016.



  • There are currently no refbacks.

View My Stats

Creative Commons License
International Journal of Computing Science and Applied Mathematics by Pusat Publikasi Ilmiah LPPM, Institut Teknologi Sepuluh Nopember is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at