
A global challenge: diagnosing pediatric pneumonia without sharing data
Pediatric pneumonia remains one of the leading causes of illness and hospitalization among young children worldwide. Early diagnosis is critical, yet building accurate AI models for chest X-ray interpretation has long been obstructed by a fundamental challenge: no hospital can share its medical images.
Chest X-rays are protected under strict regulations (HIPAA, GDPR), often stored in siloed PACS systems, and highly sensitive from a privacy standpoint. At the same time, each hospital’s data is limited, heterogeneous, and affected by differences in imaging devices, acquisition protocols, and patient populations. Centralizing these datasets is nearly impossible—and even when attempted, it introduces legal, ethical, and security concerns.
This paper evaluates how Federated Learning (FL) enables hospitals to collaboratively train an AI model for pediatric pneumonia detection without transferring any patient data.
Using the Sherpa.ai FL platform, researchers simulate a realistic multi-hospital collaboration scenario with strongly non-IID, heterogeneous data—matching the variability found in real-world clinical networks.
The results show a dramatic improvement in diagnostic performance, proving that privacy-preserving medical AI is not only feasible—it is superior.

Global map illustrating hospitals joining the FL initiative.
Why Federated Learning is essential for medical imaging
Modern convolutional neural networks can surpass traditional diagnostic methods—but only when trained on large, diverse datasets. In healthcare, those datasets rarely exist at a single institution.
Federated Learning radically changes the equation. Instead of pooling images, hospitals train a shared model by exchanging model updates only, never raw CXRs. This enables:
- Cross-hospital collaboration without violating privacy laws
- Training on richer and more diverse patient populations
- Improved robustness to imaging device variability
- Generalization to settings and hospitals not seen during training

Centralized vs federated training architecture.
In pediatric pneumonia, where annotated CXRs are scarce, this collaborative approach is especially valuable.
Dataset: Pediatric Chest X-Rays from real clinical settings
The study uses the well-known Pediatric Pneumonia CXR Dataset, containing 5,856 chest radiographs from children aged 1–5 years, manually labeled by radiologists into:
- Normal
- Bacterial pneumonia
- Viral pneumonia
For this work, all pneumonia types are merged into a single “Pneumonia” class.

Example pediatric CXRs: normal, viral pneumonia, bacterial pneumonia.
Hospitals in the simulated federation receive non-IID partitions of the dataset generated via a Dirichlet distribution, producing realistic class imbalance and population skew—just like real hospital networks.
For instance, some nodes receive predominantly normal images, others almost exclusively pneumonia cases.
Federated pipeline: training collaboratively while keeping CXRs local
Using the Sherpa.ai FL platform, researchers implement an Horizontal Federated Learning (HFL) setup:
- A global model (ResNet18 backbone) is initialized.
- Each hospital trains locally on its own images.
- Model updates, not data, are sent to a secure aggregator.
- The aggregator computes a new global model via FedAvg.
- Hospitals receive the updated model for the next round.
No raw images ever leave the hospital environment.

Federated training architecture with privacy-preserving orchestration.

Non-IID label distribution across hospitals.
This configuration mirrors real-world deployments, where hospitals differ in data size, population demographics, imaging equipment, and prevalence of disease.
Results: Federated Learning outperforms every hospital and nearly matches centralized training
Across ten randomized simulations, the model trained via FL dramatically outperformed the isolated hospital models and nearly matched the centralized upper bound.

Performance comparison across Single-Hospital, Centralized, and Federated.
What these results mean
FL provided a 47.5% accuracy improvement over the weakest individual hospital.
- ROC-AUC increased from 0.644 to 0.966, indicating a much stronger ability to detect pneumonia.
- FL reached centralized-level performance without sharing patient data.
- Performance was stable across 10 independent runs, showing robustness and reliability.
This demonstrates that federated collaboration is not a compromise—it’s an upgrade.
Why this matters for the future of medical AI
Medical AI models often struggle when deployed in new hospitals due to domain shift. FL inherently trains on multiple, diverse, real-world distributions, resulting in:
- Better generalization
- Stronger robustness across devices and populations
- More equitable diagnostic performance across institutions
Because no data moves, FL also ensures:
- Full compliance with HIPAA, GDPR, and national health regulations
- No risk of large-scale data breaches
- Lower communication and energy costs than centralizing full datasets
Federated Learning is not just a privacy solution—it is a technically superior way to train medical AI.
Conclusion
The study shows that Federated Learning enables hospitals to collaboratively develop high-performing, privacy-preserving pneumonia detection models using pediatric chest X-rays—without sharing any sensitive data.
FL consistently matched the performance of the centralized model while dramatically outperforming isolated hospital models, proving that collaborative intelligence can be both secure and clinically impactful.
This approach can be transformative not only for pediatric pneumonia but also for rare diseases, global health collaborations, low-data medical specialties, and multi-institutional clinical research.