Related Experiment Video
Updated: Jul 6, 2026

Electromagnetic Navigation Transthoracic Nodule Localization for Minimally Invasive Thoracic Surgery
Published on: May 4, 2022
Capsule Neural Networks with Bayesian Optimization for Pediatric Pneumonia Detection from Chest X-Ray Images
Szymon Salamon1, Wojciech Książek1
1Department of Computer Science, Faculty of Computer Science and Mathematics, Cracow University of Technology, 31-155 Cracow, Poland.
Insights
This study developed an AI model using capsule networks and Bayesian optimization for early pneumonia detection in children from X-rays. The model achieved high accuracy, showing promise for clinical applications in medical image analysis.
Area of Science:
- Artificial Intelligence
- Medical Imaging
- Pediatric Pneumonia Diagnosis
Background:
- Pneumonia in children is a significant health threat requiring prompt detection.
- Artificial intelligence (AI) offers potential solutions for improving diagnostic accuracy.
- Early identification of pediatric pneumonia is crucial for effective treatment and improved outcomes.
Purpose of the Study:
- To develop and evaluate an AI model for predicting childhood pneumonia using chest X-ray images.
- To leverage capsule networks and Bayesian optimization for enhanced diagnostic performance.
- To assess the clinical relevance and explainability of the AI model's predictions.
Main Methods:
- Chest X-ray images were preprocessed and divided into training, validation, and testing sets.
- A capsule neural network model was designed and optimized using Bayesian optimization.
- Explainability analysis was performed using Grad-CAM to interpret model predictions.
Main Results:
- The AI model achieved high performance metrics, including 95.1% accuracy, 98.9% sensitivity, and 85.4% specificity.
- The model demonstrated strong predictive values with a positive predictive value (PPV) of 94.8% and negative predictive value (NPV) of 96.2%.
- Grad-CAM analysis confirmed that the model's predictions were based on clinically relevant pulmonary regions.
Conclusions:
- The proposed AI model exhibits high accuracy and reliability for pediatric pneumonia detection from chest X-rays.
- The model shows significant potential for integration into clinical practice to aid in early diagnosis.
- The methodology can be extended to other medical image analysis tasks, highlighting its versatility.
Abstract:
Background: Pneumonia in children poses a serious threat to life and health, making early detection critically important. In this regard, artificial intelligence methods can provide valuable support. Methods: Capsule networks and Bayesian optimization are modern techniques that were employed to build effective models for predicting pneumonia from chest X-ray images. The medical images underwent essential preprocessing, were divided into training, validation, and testing sets, and were subsequently used to develop the models. Results: The designed capsule neural network model with Bayesian optimization achieved the following final results: an accuracy of 95.1%, sensitivity of 98.9%, specificity of 85.4%, precision (PPV) of 94.8%, negative predictive value (NPV) of 96.2%, F1-score of 96.8%, and a Matthews correlation coefficient (MCC) of 0.877. In addition, the model was complemented with an explainability analysis using Grad-CAM, which demonstrated that its predictions rely predominantly on clinically relevant pulmonary regions. Conclusions: The proposed model demonstrates high accuracy and shows promise for potential use in clinical practice. It may also be applied to other tasks in medical image analysis.

