
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
An Improved ResNet-50 Based on Squeeze and Excitation for Lung Tuberculosis Classification
Corresponding Author(s) : Lakui Johary
Kinetik: Game Technology, Information System, Computer Network, Computing, Electronics, and Control,
Vol. 11, No. 4, November 2026 (Article in Progress)
Abstract
Tuberculosis remains a major global health problem due to its high mortality rate and the difficulty of early diagnosis from medical imaging. Computed tomography (CT-scan) provides detailed visualization of lung structures; however, distinguishing between normal and tuberculosis patterns is challenging due to subtle and complex features. In this study, an improved deep learning model based on ResNet-50 integrated with a Squeeze-and-Excitation (SE) mechanism was proposed to enhance classification performance. A private CT-scan dataset collected from Klinik Utama Centrum, Semarang, was utilized, consisting of imbalanced classes that were addressed through data augmentation applied specifically to the tuberculosis class. The images were resized to 224 × 224 pixels and divided into training and testing sets with an 80:20 ratio. The model was trained using transfer learning with the Adam optimizer and evaluated using confusion matrix-based metrics. The experimental results showed that the proposed model achieved an accuracy of 94.55% and a macro F1-score of 0.9545, outperforming the standard ResNet-50 model. The confusion matrix analysis indicated a significant reduction in misclassification, particularly in tuberculosis detection. Furthermore, single-prediction testing on newly collected 2026 data demonstrated perfect classification results without any misclassification, which were clinically validated by a CT-scan specialist. These findings confirm that the integration of the SE mechanism improves feature representation and enhances model robustness, making it a reliable approach for automated tuberculosis classification from CT-scan images.
Keywords
Download Citation
Endnote/Zotero/Mendeley (RIS)BibTeX
- B. W. Allwood, A. Byrne, J. Meghji, A. Rachow, M. M. van der Zalm, and O. D. Schoch, “Post-Tuberculosis Lung Disease: Clinical Review of an Under-Recognised Global Challenge,” ., vol. 100, no. 8, pp. 751–763, 2021, doi: 10.1159/000512531.
- Y. Xie et al., “Early lung cancer diagnostic biomarker discovery by machine learning methods,” Transl. Oncol., vol. 14, no. 1, p. 100907, Jan. 2021, doi: 10.1016/j.tranon.2020.100907.
- M. Q. Shatnawi, Q. Abuein, and R. Al-Quraan, “Deep learning-based approach to diagnose lung cancer using CT-scan images,” Intell. Based. Med., vol. 11, p. 100188, 2025, doi: 10.1016/j.ibmed.2024.100188.
- G. Arther Sandag and D. Timothy Kabo, “Comparative Analysis of Lung Cancer Classification Models Using EfficientNet and ResNet on CT-Scan Lung Images,” COGITO Smart Journal, vol. 10, no. 1, 2024.
- T. Flohr and M. Sühling, “Artificial intelligence integration into the CT system with a focus on CT planning and scanning—review,” British Journal of Radiology, vol. 98, no. 1175, pp. 1766–1774, Nov. 2025, doi: 10.1093/bjr/tqaf129.
- C. Brossard et al., “Contribution of CT-Scan Analysis by Artificial Intelligence to the Clinical Care of TBI Patients,” Front. Neurol., vol. 12, Jun. 2021, doi: 10.3389/fneur.2021.666875.
- M. Tsuneki, “Deep learning models in medical image analysis,” J. Oral Biosci., vol. 64, no. 3, pp. 312–320, Sep. 2022, doi: 10.1016/j.job.2022.03.003.
- V. Narayan, P. K. Mall, A. Alkhayyat, K. Abhishek, S. Kumar, and P. Pandey, “Enhance-Net: An Approach to Boost the Performance of Deep Learning Model Based on Real-Time Medical Images,” J. Sens., vol. 2023, 2023, doi: 10.1155/2023/8276738.
- S. Payagala and A. Pozniak, “The global burden of HIV,” Clin. Dermatol., vol. 42, no. 2, pp. 119–127, Mar. 2024, doi: 10.1016/j.clindermatol.2024.02.001.
- J. Han et al., “Analysis of factors influencing high infectivity in patients with tuberculosis using clinical and imaging methods,” BMC Infect. Dis., vol. 25, no. 1, p. 1623, Nov. 2025, doi: 10.1186/s12879-025-11763-z.
- I. Kontsevaya et al., “Update on the diagnosis of tuberculosis,” Clinical Microbiology and Infection, vol. 30, no. 9, pp. 1115–1122, Sep. 2024, doi: 10.1016/j.cmi.2023.07.014.
- O. N. Manzari, H. Ahmadabadi, H. Kashiani, S. B. Shokouhi, and A. Ayatollahi, “MedViT: A robust vision transformer for generalized medical image classification,” Comput. Biol. Med., vol. 157, p. 106791, May 2023, doi: 10.1016/j.compbiomed.2023.106791.
- L. Venkataramana, D. V. V. Prasad, S. Saraswathi, C. M. Mithumary, R. Karthikeyan, and N. Monika, “Classification of COVID-19 from tuberculosis and pneumonia using deep learning techniques,” Med. Biol. Eng. Comput., vol. 60, no. 9, pp. 2681–2691, Sep. 2022, doi: 10.1007/s11517-022-02632-x.
- D. Singh and A. Sharma, “Improving Imbalanced Tuberculosis Diagnosis Using GoogleNet with Image-Based SMOTified-GAN,” 2025, pp. 449–462. doi: 10.1007/978-981-96-5370-6_33.
- S. J. Basha, S. R. Madala, K. Vivek, E. S. Kumar, and T. Ammannamma, “A Review on Imbalanced Data Classification Techniques,” in 2022 International Conference on Advanced Computing Technologies and Applications (ICACTA), IEEE, Mar. 2022, pp. 1–6. doi: 10.1109/ICACTA54488.2022.9753392.
- A. P. J et al., “Transfer learning approach for pediatric pneumonia diagnosis using channel attention deep CNN architectures,” Eng. Appl. Artif. Intell., vol. 123, p. 106416, Aug. 2023, doi: 10.1016/j.engappai.2023.106416.
- Z. Q. Habeeb, B. Vuksanovic, and I. Q. Alzaydi, “Modified ResNet model for medical image-based lung cancer detection,” Image Vis. Comput., vol. 163, p. 105752, Nov. 2025, doi: 10.1016/j.imavis.2025.105752.
- K. A. Huang, V. Venkitasubramony, and N. S. Prakash, “Leveraging Transfer Learning and Attention Mechanisms for a Computed Tomography Lung Cancer Classification Model,” Cureus, Jun. 2025, doi: 10.7759/cureus.87071.
- K. A. Huang, H. K. Choudhary, A. Santiago, and N. S. Prakash, “Squeeze-and-Excitation Enhanced Convolutional Neural Networks for Multi-class Pneumonia Classification on Chest Radiographs,” Cureus, Dec. 2025, doi: 10.7759/cureus.99649.
- M. Yunan, A. Marjuni, A. Affandy, M. A. Soeleman, and I. Firdaus, “The Impact of Squeeze-and-Excitation Blocks on CNN Models and Transfer Learning for Pneumonia Classification Using Chest X-ray Images,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 9, no. 6, pp. 1291–1305, Nov. 2025, doi: 10.29207/resti.v9i6.6693.
- X. Jiang and Z. Ge, “Data augmentation classifier for imbalanced fault classification,” IEEE Transactions on Automation Science and Engineering, vol. 18, no. 3, pp. 1206–1217, 2020.
- F. J. Moreno-Barea, J. M. Jerez, and L. Franco, “Improving classification accuracy using data augmentation on small data sets,” Expert Syst. Appl., vol. 161, p. 113696, 2020.
- N. R. D. Cahyo, C. A. Sari, E. H. Rachmawanto, C. Jatmoko, R. R. A. Al-Jawry, and M. A. Alkhafaji, “A Comparison of Multi Class Support Vector Machine vs Deep Convolutional Neural Network for Brain Tumor Classification,” in 2023 International Seminar on Application for Technology of Information and Communication (iSemantic), IEEE, Sep. 2023, pp. 358–363. doi: 10.1109/iSemantic59612.2023.10295336.
- M. M. I. Al-Ghiffary, N. R. D. Cahyo, E. H. Rachmawanto, C. Irawan, and N. Hendriyanto, “Adaptive deep learning based on FaceNet convolutional neural network for facial expression recognition,” Journal of Soft Computing, vol. 05, no. 03, pp. 271–280, 2024, doi: https://doi.org/10.52465/joscex.v5i3.450.
- M. M. I. Al-Ghiffary, C. A. Sari, E. H. Rachmawanto, N. M. Yacoob, N. R. D. Cahyo, and R. R. Ali, “Milkfish Freshness Classification Using Convolutional Neural Networks Based on Resnet50 Architecture,” Advance Sustainable Science Engineering and Technology, vol. 5, no. 3, p. 0230304, Oct. 2023, doi: 10.26877/asset.v5i3.17017.
- I. P. Kamila, C. A. Sari, E. H. Rachmawanto, and N. R. D. Cahyo, “A Good Evaluation Based on Confusion Matrix for Lung Diseases Classification using Convolutional Neural Networks,” Advance Sustainable Science, Engineering and Technology, vol. 6, no. 1, p. 0240102, Dec. 2023, doi: 10.26877/asset.v6i1.17330.
- M. Heydarian, T. E. Doyle, and R. Samavi, “MLCM: Multi-Label Confusion Matrix,” IEEE Access, vol. 10, pp. 19083–19095, 2022, doi: 10.1109/ACCESS.2022.3151048.
- Y. Zhang et al., “Deep-Learning Model of ResNet Combined with CBAM for Malignant–Benign Pulmonary Nodules Classification on Computed Tomography Images,” Medicina (B. Aires)., vol. 59, no. 6, p. 1088, Jun. 2023, doi: 10.3390/medicina59061088.
- W. Li et al., “Machine Learning Model of ResNet50-Ensemble Voting for Malignant–Benign Small Pulmonary Nodule Classification on Computed Tomography Images,” Cancers (Basel)., vol. 15, no. 22, p. 5417, Nov. 2023, doi: 10.3390/cancers15225417.
References
B. W. Allwood, A. Byrne, J. Meghji, A. Rachow, M. M. van der Zalm, and O. D. Schoch, “Post-Tuberculosis Lung Disease: Clinical Review of an Under-Recognised Global Challenge,” ., vol. 100, no. 8, pp. 751–763, 2021, doi: 10.1159/000512531.
Y. Xie et al., “Early lung cancer diagnostic biomarker discovery by machine learning methods,” Transl. Oncol., vol. 14, no. 1, p. 100907, Jan. 2021, doi: 10.1016/j.tranon.2020.100907.
M. Q. Shatnawi, Q. Abuein, and R. Al-Quraan, “Deep learning-based approach to diagnose lung cancer using CT-scan images,” Intell. Based. Med., vol. 11, p. 100188, 2025, doi: 10.1016/j.ibmed.2024.100188.
G. Arther Sandag and D. Timothy Kabo, “Comparative Analysis of Lung Cancer Classification Models Using EfficientNet and ResNet on CT-Scan Lung Images,” COGITO Smart Journal, vol. 10, no. 1, 2024.
T. Flohr and M. Sühling, “Artificial intelligence integration into the CT system with a focus on CT planning and scanning—review,” British Journal of Radiology, vol. 98, no. 1175, pp. 1766–1774, Nov. 2025, doi: 10.1093/bjr/tqaf129.
C. Brossard et al., “Contribution of CT-Scan Analysis by Artificial Intelligence to the Clinical Care of TBI Patients,” Front. Neurol., vol. 12, Jun. 2021, doi: 10.3389/fneur.2021.666875.
M. Tsuneki, “Deep learning models in medical image analysis,” J. Oral Biosci., vol. 64, no. 3, pp. 312–320, Sep. 2022, doi: 10.1016/j.job.2022.03.003.
V. Narayan, P. K. Mall, A. Alkhayyat, K. Abhishek, S. Kumar, and P. Pandey, “Enhance-Net: An Approach to Boost the Performance of Deep Learning Model Based on Real-Time Medical Images,” J. Sens., vol. 2023, 2023, doi: 10.1155/2023/8276738.
S. Payagala and A. Pozniak, “The global burden of HIV,” Clin. Dermatol., vol. 42, no. 2, pp. 119–127, Mar. 2024, doi: 10.1016/j.clindermatol.2024.02.001.
J. Han et al., “Analysis of factors influencing high infectivity in patients with tuberculosis using clinical and imaging methods,” BMC Infect. Dis., vol. 25, no. 1, p. 1623, Nov. 2025, doi: 10.1186/s12879-025-11763-z.
I. Kontsevaya et al., “Update on the diagnosis of tuberculosis,” Clinical Microbiology and Infection, vol. 30, no. 9, pp. 1115–1122, Sep. 2024, doi: 10.1016/j.cmi.2023.07.014.
O. N. Manzari, H. Ahmadabadi, H. Kashiani, S. B. Shokouhi, and A. Ayatollahi, “MedViT: A robust vision transformer for generalized medical image classification,” Comput. Biol. Med., vol. 157, p. 106791, May 2023, doi: 10.1016/j.compbiomed.2023.106791.
L. Venkataramana, D. V. V. Prasad, S. Saraswathi, C. M. Mithumary, R. Karthikeyan, and N. Monika, “Classification of COVID-19 from tuberculosis and pneumonia using deep learning techniques,” Med. Biol. Eng. Comput., vol. 60, no. 9, pp. 2681–2691, Sep. 2022, doi: 10.1007/s11517-022-02632-x.
D. Singh and A. Sharma, “Improving Imbalanced Tuberculosis Diagnosis Using GoogleNet with Image-Based SMOTified-GAN,” 2025, pp. 449–462. doi: 10.1007/978-981-96-5370-6_33.
S. J. Basha, S. R. Madala, K. Vivek, E. S. Kumar, and T. Ammannamma, “A Review on Imbalanced Data Classification Techniques,” in 2022 International Conference on Advanced Computing Technologies and Applications (ICACTA), IEEE, Mar. 2022, pp. 1–6. doi: 10.1109/ICACTA54488.2022.9753392.
A. P. J et al., “Transfer learning approach for pediatric pneumonia diagnosis using channel attention deep CNN architectures,” Eng. Appl. Artif. Intell., vol. 123, p. 106416, Aug. 2023, doi: 10.1016/j.engappai.2023.106416.
Z. Q. Habeeb, B. Vuksanovic, and I. Q. Alzaydi, “Modified ResNet model for medical image-based lung cancer detection,” Image Vis. Comput., vol. 163, p. 105752, Nov. 2025, doi: 10.1016/j.imavis.2025.105752.
K. A. Huang, V. Venkitasubramony, and N. S. Prakash, “Leveraging Transfer Learning and Attention Mechanisms for a Computed Tomography Lung Cancer Classification Model,” Cureus, Jun. 2025, doi: 10.7759/cureus.87071.
K. A. Huang, H. K. Choudhary, A. Santiago, and N. S. Prakash, “Squeeze-and-Excitation Enhanced Convolutional Neural Networks for Multi-class Pneumonia Classification on Chest Radiographs,” Cureus, Dec. 2025, doi: 10.7759/cureus.99649.
M. Yunan, A. Marjuni, A. Affandy, M. A. Soeleman, and I. Firdaus, “The Impact of Squeeze-and-Excitation Blocks on CNN Models and Transfer Learning for Pneumonia Classification Using Chest X-ray Images,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 9, no. 6, pp. 1291–1305, Nov. 2025, doi: 10.29207/resti.v9i6.6693.
X. Jiang and Z. Ge, “Data augmentation classifier for imbalanced fault classification,” IEEE Transactions on Automation Science and Engineering, vol. 18, no. 3, pp. 1206–1217, 2020.
F. J. Moreno-Barea, J. M. Jerez, and L. Franco, “Improving classification accuracy using data augmentation on small data sets,” Expert Syst. Appl., vol. 161, p. 113696, 2020.
N. R. D. Cahyo, C. A. Sari, E. H. Rachmawanto, C. Jatmoko, R. R. A. Al-Jawry, and M. A. Alkhafaji, “A Comparison of Multi Class Support Vector Machine vs Deep Convolutional Neural Network for Brain Tumor Classification,” in 2023 International Seminar on Application for Technology of Information and Communication (iSemantic), IEEE, Sep. 2023, pp. 358–363. doi: 10.1109/iSemantic59612.2023.10295336.
M. M. I. Al-Ghiffary, N. R. D. Cahyo, E. H. Rachmawanto, C. Irawan, and N. Hendriyanto, “Adaptive deep learning based on FaceNet convolutional neural network for facial expression recognition,” Journal of Soft Computing, vol. 05, no. 03, pp. 271–280, 2024, doi: https://doi.org/10.52465/joscex.v5i3.450.
M. M. I. Al-Ghiffary, C. A. Sari, E. H. Rachmawanto, N. M. Yacoob, N. R. D. Cahyo, and R. R. Ali, “Milkfish Freshness Classification Using Convolutional Neural Networks Based on Resnet50 Architecture,” Advance Sustainable Science Engineering and Technology, vol. 5, no. 3, p. 0230304, Oct. 2023, doi: 10.26877/asset.v5i3.17017.
I. P. Kamila, C. A. Sari, E. H. Rachmawanto, and N. R. D. Cahyo, “A Good Evaluation Based on Confusion Matrix for Lung Diseases Classification using Convolutional Neural Networks,” Advance Sustainable Science, Engineering and Technology, vol. 6, no. 1, p. 0240102, Dec. 2023, doi: 10.26877/asset.v6i1.17330.
M. Heydarian, T. E. Doyle, and R. Samavi, “MLCM: Multi-Label Confusion Matrix,” IEEE Access, vol. 10, pp. 19083–19095, 2022, doi: 10.1109/ACCESS.2022.3151048.
Y. Zhang et al., “Deep-Learning Model of ResNet Combined with CBAM for Malignant–Benign Pulmonary Nodules Classification on Computed Tomography Images,” Medicina (B. Aires)., vol. 59, no. 6, p. 1088, Jun. 2023, doi: 10.3390/medicina59061088.
W. Li et al., “Machine Learning Model of ResNet50-Ensemble Voting for Malignant–Benign Small Pulmonary Nodule Classification on Computed Tomography Images,” Cancers (Basel)., vol. 15, no. 22, p. 5417, Nov. 2023, doi: 10.3390/cancers15225417.