2606004135
  • Open Access
  • Article

LTS-Net: A Lightweight and Efficient Deep Learning Framework for Automated Tuberculosis and Pneumonia Detection in Chest X-ray Images

  • Si-Yuan Lu 1,†,   
  • Ziquan Zhu 2,†,   
  • Baihua Zhang 3,   
  • Yu-Dong Zhang 2,4,   
  • Yu-Dong Yao 5,*

Received: 03 Mar 2026 | Revised: 30 May 2026 | Accepted: 03 Jun 2026 | Published: 09 Jun 2026

Abstract

Chest X-rays (CXRs) are widely utilized for screening pulmonary diseases. However, distinguishing between tuberculosis (TB) and pneumonia remains a challenging task, as their radiological features often exhibit significant overlap. This challenge is particularly acute in resource-constrained settings, where rapid and low-cost automated analysis techniques would be especially beneficial. To address this issue, we propose a lightweight deep learning framework with Triple Permuter and Split Multi-Head Self-Attention (LTS-Net), specifically designed for the classification of TB and pneumonia based on CXR images. The model integrates three core components: a multi-level knowledge distillation strategy aimed at transferring useful knowledge from a large teacher model to a compact encoder; a Triple Permuter (TP) module, which enhances spatial feature interactions without significantly increasing the parameter count; and a Split Multi-Head Self-Attention (SMHSA) module, which effectively reduces the computational complexity of the attention mechanism while preserving global contextual information. We evaluated the proposed method on four publicly available datasets: PX, K-4, TB, and SC. Experimental results demonstrate that LTS-Net achieves classification accuracies ranging from 96.47% to 99.95% across these datasets, while excelling at maintaining relatively low model size and computational cost. Collectively, these findings indicate that LTS-Net strikes a practical balance between diagnostic performance and operational efficiency, positioning it as a highly promising technical solution for automated chest X-ray (CXR) analysis in clinical environments with limited computational resources.

References 

  • 1.

    Ibrahim, D.M.; Elshennawy, N.M.; Sarhan, A.M. Deep-chest: Multi-classification deep learning model for diagnosing COVID-19, pneumonia, and lung cancer chest diseases. Comput. Biol. Med. 2021, 132, 104348. https://doi.org/10.1016/j.compbiomed.2021.104348.

  • 2.

    Abdel-Basset, M.; Hawash, H.; Moustafa, N.; et al. Two-Stage Deep Learning Framework for Discrimination between COVID-19 and Community-Acquired Pneumonia from Chest CT scans. Pattern Recognit. Lett. 2021, 152, 311–319. https://doi.org/10.1016/j.patrec.2021.10.027.

  • 3.

    Jaeger, S.; Karargyris, A.; Candemir, S.; et al. Automatic tuberculosis screening using chest radiographs. IEEE Trans. Med. Imaging 2014, 33, 233–245. https://doi.org/10.1109/TMI.2013.2284099.

  • 4.

    Pasa, F.; Golkov, V.; Pfeiffer, F.; et al. Efficient Deep Network Architectures for Fast Chest X-ray Tuberculosis Screening and Visualization. Sci. Rep. 2019, 9, 6268. https://doi.org/10.1038/s41598-019-42557-4.

  • 5.

    Lakhani, P.; Sundaram, B. Deep Learning at Chest Radiography: Automated Classification of Pulmonary Tuberculosis by Using Convolutional Neural Networks. Radiology 2017, 284, 574–582. https://doi.org/10.1148/radiol.2017162326.

  • 6.

    Ul Abideen, Z.; Ghafoor, M.; Munir, K.; et al. Uncertainty Assisted Robust Tuberculosis Identification with Bayesian Convolutional Neural Networks. IEEE Access 2020, 8, 22812–22825. https://doi.org/10.1109/ACCESS.2020.2970023.

  • 7.

    Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; et al. An Image Is Worth 16 × 16 Words: Transformers for Image Recognition at Scale. In Proceedings of the International Conference on Learning Representations (ICLR 2021), Vienna, Austria, 4 May 2021.

  • 8.

    Kirillov, A.; Mintun, E.; Ravi, N.; et al. Segment Anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 1–6 October 2023.

  • 9.

    Cheng, J.; Ye, J.; Deng, Z.; et al. SAM-Med2D. arXiv 2023, 1–16, preprint, arXiv:2308.16184.

  • 10.

    Afzali, A.; Mofrad, F.B.; Pouladian, M. Feature Selection for Contour-based Tuberculosis Detection from Chest X-ray Images. In Proceedings of the 2019 26th National and 4th International Iranian Conference on Biomedical Engineering (ICBME), Tehran, Iran, 27–28 November 2019.

  • 11.

    Chandra, T.B.; Verma, K.; Singh, B.K.; et al. Automatic detection of tuberculosis related abnormalities in Chest X-ray images using hierarchical feature extraction scheme. Expert Syst. Appl. 2020, 158, 113514. https://doi.org/10.1016/j.eswa.2020.113514.

  • 12.

    Govindarajan, S.; Swaminathan, R. Extreme Learning Machine based Differentiation of Pulmonary Tuberculosis in Chest Radiographs using Integrated Local Feature Descriptors. Comput. Methods Programs Biomed. 2021, 204, 106058. https://doi.org/10.1016/j.cmpb.2021.106058.

  • 13.

    Ahmed, F.; Nuwagira, B.; Torlak, F.; et al. Topo-CXR: Chest X-ray TB and Pneumonia Screening with Topological Machine Learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 1–6 October 2023.

  • 14.

    Lopes, U.K.; Valiati, J.F. Pre-trained convolutional neural networks as feature extractors for tuberculosis detection. Comput. Biol. Med. 2017, 89, 135–143. https://doi.org/10.1016/j.compbiomed.2017.08.001.

  • 15.

    Ayan, E.; Unver, H.M. Diagnosis of pneumonia from chest X-ray images using deep learning. In Proceedings of the 2019 Scientific Meeting on Electrical-Electronics & Biomedical Engineering and Computer Science, Istanbul, Turkey, 24–26 April 2019; Vol. 7, pp. 1–5.

  • 16.

    Hernández, A.; Panizo, Á.; Camacho, D. An Ensemble Algorithm Based on Deep Learning for Tuberculosis Classification. In Proceedings of the Intelligent Data Engineering and Automated Learning—IDEAL 2019: 20th International Conference, Manchester, UK, 14–16 November 2019; Ch. 17, pp. 145–154.

  • 17.

    Sadik, F.; Dastider, A.G.; Subah, M.R.; et al. A dual-stage deep convolutional neural network for automatic diagnosis of COVID-19 and pneumonia from chest CT images. Comput. Biol. Med. 2022, 149, 105806. https://doi.org/10.1016/j.compbiomed.2022.105806.

  • 18.

    Celik, G. Detection of Covid-19 and other pneumonia cases from CT and X-ray chest images using deep learning based on feature reuse residual block and depthwise dilated convolutions neural network. Appl. Soft Comput. 2023, 133, 109906. https://doi.org/10.1016/j.asoc.2022.109906.

  • 19.

    Khattab, R.; Abdelmaksoud, I.R.; Abdelrazek, S. Automated detection of COVID-19 and pneumonia diseases using data mining and transfer learning algorithms with focal loss from chest X-ray images. Appl. Soft Comput. 2024, 162, 111806. https://doi.org/10.1016/j.asoc.2024.111806.

  • 20.

    Saraiva, A.A.; Santos, D.; Costa, N.; et al. Models of learning to classify X-ray images for the detection of pneumonia using neural networks. Bioimaging 2019, 7, 76–83.

  • 21.

    Tan, Z.; Madzin, H.; Norafida, B.; et al. SwinUNeLCsT: Global–local spatial representation learning with hybrid CNN–transformer for efficient tuberculosis lung cavity weakly supervised semantic segmentation. J. King Saud Univ. Comput. Inf. Sci. 2024, 36, 102012. https://doi.org/10.1016/j.jksuci.2024.102012.

  • 22.

    Liu, X.; Peng, H.; Zheng, N.; et al. EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attention. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 17–24 June 2023.

  • 23.

    Hou, Q.; Jiang, Z.; Yuan, L.; et al. Vision permutator: A permutable MLP-like architecture for visual recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 45, 1328–1334.

  • 24.

    Wang, F.; Zhou, Y.; Wang, S.; et al. Multi-Granularity Cross-modal Alignment for Generalized Medical Visual Representation Learning. In Proceedings of the 36th Conference on Neural Information Processing Systems (NeurIPS 2022), New Orleans, LA, USA, 28 November–9 December 2022.

  • 25.

    Shu, H.; Li, W.; Tang, Y.; et al. TinySAM: Pushing the Envelope for Efficient Segment Anything Model. arXiv 2023, preprint, arXiv:2312.13789.

  • 26.

    Kermany, M.G.; Cai, W.; Valentim, C.C.S.; et al. Identifying medical diagnoses and treatable diseases by image-based deep learning. Cell 2018, 172, 1122–1131. https://doi.org/10.1016/j.cell.2018.02.010.

  • 27.

    Kakani, V.; Varun, B.; Bodapati, J.D.; et al. Post-COVID Chest Disease Monitoring using self-adaptive Convolutional Neural Network. In Proceedings of the IEEE 8th International Conference for Convergence in Technology (I2CT), Pune, India, 7–9 April 2023.

  • 28.

    Rahman, T.; Khandakar, A.; Kadir, M.A.; et al. Reliable Tuberculosis Detection using Chest X-ray with Deep Learning, Segmentation and Visualization. IEEE Access 2020, 8, 191586–191601. https://doi.org/10.1109/ACCESS.2020.3031384.

  • 29.

    Marvin, G.; Alam, M.G.R. Explainable Augmented Intelligence and Deep Transfer Learning for Pediatric Pulmonary Health Evaluation. In Proceedings of the 2022 International Conference on Innovations in Science, Engineering and Technology (ICISET), Chittagong, Bangladesh, 26–27 February 2022.

  • 30.

    Yadav, O.; Passi, K.; Jain, C.K. Using Deep Learning to Classify X-ray Images of Potential Tuberculosis Patients. In Proceedings of the 2018 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), Madrid, Spain, 3–6 December 2018.

  • 31.

    Hwang, S.; Kim, H.-E.; Jeong, J.; et al. A Novel Approach for Tuberculosis Screening Based on Deep Convolutional Neural Networks. In Proceedings of the Medical Imaging 2016: Computer-Aided Diagnosis, San Diego, CA, USA, 27 February–3 March 2016; Vol. 9785, pp. 750–757.

Share this article:
How to Cite
Lu, S.-Y.; Zhu, Z.; Zhang, B.; Zhang, Y.-D.; Yao, Y.-D. LTS-Net: A Lightweight and Efficient Deep Learning Framework for Automated Tuberculosis and Pneumonia Detection in Chest X-ray Images. AI Medicine 2026, 3 (1), 3. https://doi.org/10.53941/aim.2026.100003.
RIS
BibTex
Copyright & License
article copyright Image
Copyright (c) 2026 by the authors.