Home / Current Issue / Paper 1725320
Pneumonia Detection Using Local Binary Pattern and Siamese Neural Network Architecture
Subject area: Science,Engineering and Technology · Area of research: Healthcare and Medical Science
Abstract
Convolutional neural networks detect pneumonia by evaluating the complete chest radiograph as a single image. For pediatric cases, such methods tend to capture aspects of patient posture, rib position, or scanning variation, instead of lung-specific abnormality. Radiologists read radiographs in a different way, namely, by comparing the left lung to the right lung to find unilateral opacities, and by looking at parenchymal texture for consolidation. In this paper, we propose a dual-domain Siamese network that matches the clinical reading process. Each radiograph is divided into left and right hemithorax crops, for which we generate a uniform Local Binary Pattern (LBP) texture map (P = 8, R = 1) and stack it with the grayscale image itself, forming a two-channel input. We then feed twin DenseNet-121 branches (using the same weights, and adapted to two-channel inputs), mapping each lung to a 128-dimensional feature space. Finally, we analyze bilateral asymmetry by calcu-lating the cosine similarity of the embeddings and training with a margin-based cosine embedding loss (m = 0.5). On the test set of 624 images from the Kermany et al. dataset, our model achieves an accuracy of 81.25% and an ROC-AUC of 0.844, which is superior to the baseline DenseNet-121 (0.609 AUC) and CheXNet (76.00%), without the need for pixel-level lung segmentations or ensemble methods of multiple models.
Keywords
bilateral symmetry, chest X-ray, DenseNet-121, local binary pattern, pneumonia detection, Siamese network
References
[1] Zhang D, Ren F, Li Y, Na L, Ma Y. Pneumonia detection from chest X-ray images based on convolutional neural network. Electronics. 2021;10(13):1512.
[2] Elshennawy NM, Ibrahim DM. Deep-Pneumonia framework using deep learning models based on chest X-ray images. Diagnostics. 2020;10(9):649.
[3] Abe H, MacMahon H, Shiraishi J, Li Q, Engelmann R, Doi K. Computer-aided diagnosis in chest radiology. Seminars in Ultrasound, CT and MRI. 2004;25(5):432–437.
[4] Khawaja MA, Aziz MZ, Iqbal N. Effectual lung segmentation for CAD systems using CT scan images. In: Proceedings of the 8th International Multitopic Conference (INMIC). IEEE. 2004:49–54.
[5] Awai K, Murao K, Ozawa A, Komi M, Hayakawa H, Hori S, Nishimura Y. Pulmonary nodules at chest CT: effect of computer-aided diagnosis on radiologists’ detection performance. Radiology. 2004;230(2):347–352.
[6] Antin B, Kravitz J, Martayan E. Detecting pneumonia in chest X-rays with supervised learning. Stanford University Machine Learning Technical Report. 2017.
[7] Tilve A, Nayak S, Vernekar S, Turi D, Shetgaonkar PR, Aswale S. Pneumonia detection using deep learning approaches. In: Proceedings of the 2020 International Conference on Emerging Trends in Information Technology and Engineering (ic-ETITE). IEEE. 2020:1–8.
[8] Kermany DS, Goldbaum M, Cai W, Valentim CCS, Liang H, Baxter SL, McKeown A, Yang G, Wu X, Yan F, et al. Identifying medical diagnoses and treatable diseases by image-based deep learning. Cell. 2018;172(5):1122–1131.
[9] Rajpurkar P, Irvin J, Zhu K, Yang B, Mehta H, Duan T, Ding D, Bagul A, Langlotz C, Shpanskaya K, et al. CheXNet: radiologist-level pneumonia detection on chest X-rays with deep learning. arXiv preprint arXiv:1711.05225. 2017.
[10] Antin B, Kravitz J, Martayan E. Evaluating deep architectures for chest radiograph pathology classification. Stanford University CS229 Project Report. 2017.
[11] Selvaraju RR, Cogswell M, Das A, Vedantam R, Parikh D, Batra D. Grad-CAM: visual explanations from deep networks via gradient-based localization. In: Proceedings of the IEEE International Conference on Computer Vision (ICCV). 2017:618–626.
[12] Zaeri N, Dib RK. X-ray pneumonia detection using angular and radial local binary patterns fusion. Journal of Engineering Research. 2024.
[13] Stephen O, Al-antari MA, Lee SM, Ryu JG, Hossain MS, Muhammad G. An efficient deep learning approach to pneumonia classification in healthcare. Journal of Healthcare Engineering. 2019;2019:4180949.
[14] Ayan E, Ünver HM. Diagnosis of pneumonia from chest X-ray images using deep learning. In: Proceedings of the 2019 Scientific Meeting on Electrical-Electronics and Biomedical Engineering and Computer Science (EBBT). IEEE. 2019:1–5.
[15] He K, Zhang X, Ren S, Sun J. Deep residual learning for image recognition. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2016:770–778.
[16] Rajaraman S, Sornapudi S, Alderson PO, Folio LR, Antani SK. Analyzing inter-reader variability affecting deep ensemble learning for COVID-19 detection in chest radiographs. PLOS ONE. 2020;15(11):e0242301.
[17] Chouhan V, Singh SK, Khamparia A, Gupta D, Tiwari P, Moreira C, Damaševičius R, de Albuquerque VHC. A novel transfer learning based approach for pneumonia detection in chest X-ray images. Applied Sciences. 2020;10(2):559.
[18] Liz H, Sánchez-Montañés M, Tagarro A, Domínguez-Rodríguez S, Dagan R, Camacho D. Ensembles of convolutional neural network models for pediatric pneumonia diagnosis. Future Generation Computer Systems. 2021;122:220–233.
[19] Schneider H, Yildiz EC, Biesner D, Layer YC, Wulff B, Nowak S, Theis M, Sprinkart AM, Attenberger UI, Sifa R. Symmetry-aware Siamese network: exploiting pathological asymmetry for chest X-ray analysis. In: Proceedings of the International Conference on Artificial Neural Networks (ICANN). Springer. 2023:165–176.
[20] Wang HN, Zheng LX, Pan SW, Yan T, Su QL. Image recognition of pediatric pneumonia based on fusion of texture features and depth features. Computational and Mathematical Methods in Medicine. 2022;2022:1973508.
[21] Kör H, Erbay H, Yurttakal AH. Diagnosing and differentiating viral pneumonia and COVID-19 using X-ray images. Multimedia Tools and Applications. 2022;81(27):39041–39057.
[22] Jaiswal AK, Tiwari P, Kumar S, Gupta D, Khanna A, Rodrigues JJPC. Identifying pneumonia in chest X-rays: a deep learning approach. Measurement. 2019;145:511–518.
[23] Ojala T, Pietikäinen M, Mäenpää T. Multiresolution gray-scale and rotation invariant texture classification with local binary patterns. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2002;24(7):971–987.
[24] Bromley J, Guyon I, LeCun Y, Säckinger E, Shah R. Signature verification using a “Siamese” time delay neural network. In: Advances in Neural Information Processing Systems (NeurIPS), vol. 6. 1993:737–744.
[25] Yoshida H. Local contralateral subtraction for lung nodule detection in digital chest radiographs. Academic Radiology. 2004;11(3):278–287.
[26] Huang G, Liu Z, van der Maaten L, Weinberger KQ. Densely connected convolutional networks. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2017:4700–4708.
[27] Liang G, Zheng L. A transfer learning method with deep residual network for pediatric pneumonia diagnosis. Computer Methods and Programs in Biomedicine. 2020;187:104964.
[28] Sirazitdinov I, Kholiavchenko M, Mustafaev T, Yuan Y, Kuleev R, Ibragimov B. Deep neural network ensemble for pneumonia localization from a large-scale chest X-ray database. Computers & Electrical Engineering. 2019;78:388–399.
[29] Odaibo D, Zhang Z, Skidmore F, Tanik M. Detection of visual signals for pneumonia in chest radiographs using weak supervision. In: Proceedings of the 2019 IEEE SoutheastCon. IEEE. 2019:1–5.
[30] Hofmeister J, Garin N, Montet X, Scheffler M, Platon A, Poletti PA, Stirnemann J, Debray MP, Claessens YE, Duval X, et al. Validating the accuracy of deep learning for the diagnosis of pneumonia on chest X-ray against a robust multimodal reference diagnosis. European Radiology Experimental. 2024;8(1):20.
[31] Khaniki MAL, Mirzaeibonehkhater M, Manthouri M. Enhancing pneumonia detection using vision transformer with dynamic mapping re-attention mechanism. In: Proceedings of the 2023 13th International Conference on Computer and Knowledge Engineering (ICCKE). IEEE. 2023:144–149.
[32] Varshni D, Thakral K, Agarwal L, Nijhawan R, Mittal A. Pneumonia detection using CNN based feature extraction. In: Proceedings of the 2019 IEEE International Conference on Electrical, Computer and Communication Technologies (ICECCT). IEEE. 2019:1–7.
[33] Gu X, Pan L, Liang HY, Yang R. Classification of bacterial and viral childhood pneumonia using deep learning in chest radiography. In: Proceedings of the 3rd International Conference on Multimedia and Image Processing (ICMIP). ACM. 2018:88–93.
How to cite this paper
@article{1725320,
author = {Pratyusha Mishra, Vishesh Panghal},
title = {Pneumonia Detection Using Local Binary Pattern and Siamese Neural Network Architecture},
journal = {Iconic Research And Engineering Journals},
year = {2026},
volume = {10},
number = {5},
pages = {3447-3460},
issn = {2456-8880},
url = {https://www.irejournals.com/formatedpaper/1725320.pdf},
abstract = {Convolutional neural networks detect pneumonia by evaluating the complete chest radiograph as a single image. For pediatric cases, such methods tend to capture aspects of patient posture, rib position, or scanning variation, instead of lung-specific abnormality. Radiologists read radiographs in a different way, namely, by comparing the left lung to the right lung to find unilateral opacities, and by looking at parenchymal texture for consolidation. In this paper, we propose a dual-domain Siamese network that matches the clinical reading process. Each radiograph is divided into left and right hemithorax crops, for which we generate a uniform Local Binary Pattern (LBP) texture map (P = 8, R = 1) and stack it with the grayscale image itself, forming a two-channel input. We then feed twin DenseNet-121 branches (using the same weights, and adapted to two-channel inputs), mapping each lung to a 128-dimensional feature space. Finally, we analyze bilateral asymmetry by calcu-lating the cosine similarity of the embeddings and training with a margin-based cosine embedding loss (m = 0.5). On the test set of 624 images from the Kermany et al. dataset, our model achieves an accuracy of 81.25% and an ROC-AUC of 0.844, which is superior to the baseline DenseNet-121 (0.609 AUC) and CheXNet (76.00%), without the need for pixel-level lung segmentations or ensemble methods of multiple models.},
keywords = {bilateral symmetry, chest X-ray, DenseNet-121, local binary pattern, pneumonia detection, Siamese network},
month = {November},
}