Pneumonia detection through medical imaging, especially using CT scans or X-rays, presents notable challenges due to the subtle and often unclear signs of the disease. This paper introduces a novel neural network model, the Compact Convolutional Transformer (CCT), designed to address these challenges by optimizing detection accuracy. The CCT model incorporates configuration dropout in its convolutional layers to enhance both robustness and precision.Experiments conducted on a dataset of 5,856 chest X-ray images from pediatric patients aged one to five years demonstrated the model's effectiveness, achieving a remarkable 97% accuracy, 97% recall, 98% precision, and an F1-score of 98%. When compared to state-of-the-art models like DarkNet-53 and VGG-19 + GradCAM, which achieved F1-scores of 97.3% and 95.61% respectively, the CCT model consistently matched or outperformed them, particularly when dealing with smaller and more complex datasets. Even models such as CNN + Bayesian Network, which used larger datasets, only reached an F1-score of 96.3%.These results underscore the superior efficiency and accuracy of the CCT model, highlighting its potential for broader applications in medical diagnostics and image analysis, especially in pneumonia detection.
Copyrights © 2026