Federated Learning for Chest X-Ray Classification

I ran 30 chest X-ray training experiments across five physical devices. When I audited the results, I found duplicate patient rows crossing the train/test splits, which limits what those results can say about new patients.

Role: Individual thesis author Context: Undergraduate thesis (UI) When: Aug 2025 – May 2026
Jump to section Experiment setup

Experiment setup

Enlarge dashboard 1920 × 1080 PNG

FedBioMed researcher & operator dashboards

Four-panel capture showing local launcher, simulation setup, deployment setup, and hospital node operator dashboards.

The researcher dashboard coordinates the training rounds. The node operator screen checks the local dataset and connection. I completed 30 runs across five physical devices. The post-run audit found duplicate patient rows spanning training and test in every seed, which limits what the metrics say about new patients.

Physical-device experiment configuration
Simulated frameworks FedBioMed, OpenFL, MedFL, NVFlare, Flower
Physical deployment FedBioMed on 5 heterogeneous physical devices
Model outputs 38 targets (37 radiological findings + 1 meta-class)
Run matrix 2 strategies (FedAvg, FedProx) × 3 resolutions (299, 512, 1024 px) × 5 seeds
Completed responses 30 runs × 5 rounds per run × 5 clients = 750 client-round responses
Audited dataset table 524 rows / 521 unique images & patients

Why I built it

Hospital imaging data rarely leaves local networks. For my undergraduate thesis at Universitas Indonesia, I wanted to see what breaks when a federated chest X-ray classifier moves off a single simulation machine onto real, mismatched hardware.

I ran the entire project solo: literature review, label preparation, five-framework simulation benchmarks, five-node physical deployment, local dashboards for both researcher and hospital operators, and post-run artifact checks.

Multi-node setup

I adapted X-Raydar-CV for 38 multi-label targets—37 radiological findings plus one meta-class—freezing the visual backbone while fine-tuning classifier heads. MedGemma-assisted extraction over images and reports supported label generation (these labels were un-adjudicated by independent clinical reviewers).

In simulation, I compared FedBioMed, OpenFL, MedFL, NVFlare, and Flower. FedBioMed cleanly separated researcher coordination from node-side dataset registration, so I deployed FedBioMed across five heterogeneous physical devices.

The real-device matrix covered FedAvg and FedProx across three resolutions (299, 512, and 1024 px) and five seeds (10, 42, 60, 100, and 123). All 30 runs finished five rounds each, logging 750 client-round responses across the cluster. I also built local dashboards to validate node CSVs, discover online devices, monitor rounds, and inspect outputs.

What the post-run audit caught

Inspecting the retained May 2026 thesis outputs turned up three findings that mattered more than any single accuracy number:

A controlled follow-up

Manuscript draft for supervisor review.

Physical-device deploymentSingle-host simulation
Five physical devices connected over a local network and ran training rounds with FedBioMed.Five logical clients ran in sequence on one host using a fixed split with disjoint recorded patient IDs.

The follow-up compared centralized training with federated strategies using shared starting weights for each matched comparison and the same number of training examples processed. The deployment dashboard and run records above document the physical-device experiments from the thesis.