Next Article in Journal
Radiotherapy-Induced Neuronal Dysfunction in Patients with Brain Tumors: Dose–Volume Effects, Imaging Biomarkers and Clinical Implications
Previous Article in Journal
Mapping Sanfilippo Syndrome: A Multisystem Clinicopathological Autopsy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Metaheuristic-Optimized Convolutional Neural Network for Automated Diagnosis of Viral Pneumonia and Tuberculosis from Chest X-Rays

1
Escuela de Ingeniería Informática, Pontificia Universidad Católica de Valparaíso, Valparaíso 2362807, Chile
2
Laboratoire Angevin de Recherche en Ingénierie des Systèmes (LARIS), Université d’Angers, 49000 Angers, France
*
Authors to whom correspondence should be addressed.
Diagnostics 2026, 16(10), 1529; https://doi.org/10.3390/diagnostics16101529
Submission received: 1 April 2026 / Revised: 30 April 2026 / Accepted: 11 May 2026 / Published: 18 May 2026
(This article belongs to the Section Machine Learning and Artificial Intelligence in Diagnostics)

Abstract

Background: Viral Pneumonia and Tuberculosis continue to represent a significant burden on global public health, relying heavily on chest X-rays for screening and diagnosis. Although deep learning systems offer promising diagnostic support, the traditional manual tuning of hyperparameters for Convolutional Neural Networks is often inefficient and computationally expensive, frequently resulting in suboptimal or overly heavy architectures. Methods: To address these challenges, this study proposes a hybrid framework that employs metaheuristic algorithms, specifically the Whale Optimization Algorithm, Grey Wolf Optimizer, and Cuckoo Search to automatically optimize the architecture and training parameters of a custom neural network for the multi-class classification of Normal, Viral Pneumonia, and Tuberculosis cases. The proposed approach was evaluated using a rigorous stratified k-fold cross-validation protocol on a balanced, multi-source dataset. Results:The experimental results demonstrate that the model optimized by the Whale Optimization Algorithm statistically outperforms manually configured baselines, achieving the highest diagnostic accuracy and specificity. Furthermore, a critical finding of this research is the substantial improvement in computational efficiency; the automated optimization reduced the computational load by approximately 74% and the storage requirements by 63%, making the model viable for deployment in resource-constrained environments. Conclusions: Finally, to ensure clinical reliability, the decision-making process was validated using Gradient-weighted Class Activation Mapping, which confirmed that the network successfully learns to identify clinically relevant pulmonary structures while ignoring confounding artifacts.
Keywords: convolutional neural networks (CNN); metaheuristic optimization; viral pneumonia and tuberculosis; chest X-ray; explainable AI (XAI); hyperparameter tuning convolutional neural networks (CNN); metaheuristic optimization; viral pneumonia and tuberculosis; chest X-ray; explainable AI (XAI); hyperparameter tuning

Share and Cite

MDPI and ACS Style

Hermosilla, P.; Vega, E.; Monfroy, E.; Erazo, L.; Guzmán, V.; Soto, R. Metaheuristic-Optimized Convolutional Neural Network for Automated Diagnosis of Viral Pneumonia and Tuberculosis from Chest X-Rays. Diagnostics 2026, 16, 1529. https://doi.org/10.3390/diagnostics16101529

AMA Style

Hermosilla P, Vega E, Monfroy E, Erazo L, Guzmán V, Soto R. Metaheuristic-Optimized Convolutional Neural Network for Automated Diagnosis of Viral Pneumonia and Tuberculosis from Chest X-Rays. Diagnostics. 2026; 16(10):1529. https://doi.org/10.3390/diagnostics16101529

Chicago/Turabian Style

Hermosilla, Pamela, Emanuel Vega, Eric Monfroy, Lucas Erazo, Valentina Guzmán, and Ricardo Soto. 2026. "Metaheuristic-Optimized Convolutional Neural Network for Automated Diagnosis of Viral Pneumonia and Tuberculosis from Chest X-Rays" Diagnostics 16, no. 10: 1529. https://doi.org/10.3390/diagnostics16101529

APA Style

Hermosilla, P., Vega, E., Monfroy, E., Erazo, L., Guzmán, V., & Soto, R. (2026). Metaheuristic-Optimized Convolutional Neural Network for Automated Diagnosis of Viral Pneumonia and Tuberculosis from Chest X-Rays. Diagnostics, 16(10), 1529. https://doi.org/10.3390/diagnostics16101529

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop