DEV Community

Seyed Alireza Alhosseini
Seyed Alireza Alhosseini

Posted on

Beyond Federated Learning: Designing a Central-Aggregator-Free Clinical AI Network

What if hospitals could collectively train clinical AI models without sending patient data anywhere—and without relying on a central aggregation server?

Modern healthcare AI faces a fundamental contradiction.

The more clinical data we have, the better our models can potentially become. But the more sensitive the data, the harder it becomes to centralize, exchange, and process it.

MRI scans, genomic profiles, electronic health records, pathology images, and longitudinal patient histories are among the most sensitive forms of data in existence.

Hospitals cannot simply upload all of this information to a global database.

Federated Learning offered an elegant answer:

Keep patient data local. Move the model instead.

But conventional Federated Learning still leaves us with a critical architectural dependency:

the central aggregator.

This article explores a different direction:

Can we build a clinical AI network where patient data remains local, model knowledge moves across the network, and aggregation itself becomes a distributed function rather than a centralized service?

The proposed architecture is a decentralized, privacy-preserving framework for clinical AI that removes the need for both a central clinical data repository and a single trusted model aggregator.

The goal is not to replace Federated Learning.

It is to rethink its underlying topology.


1. The Problem: Centralized Intelligence vs. Decentralized Data

Consider three hospitals.

Each has a different patient population:

  • Hospital A specializes in oncology.
  • Hospital B serves a rural population.
  • Hospital C has a large pediatric department.

Their data distributions are fundamentally different.

Hospital A
   │
   ├── MRI
   ├── EHR
   └── Pathology
         │
         ▼
    Local Training

Hospital B
   │
   ├── MRI
   ├── EHR
   └── Genomics
         │
         ▼
    Local Training

Hospital C
   │
   ├── MRI
   ├── EHR
   └── Pediatric Data
         │
         ▼
    Local Training
Enter fullscreen mode Exit fullscreen mode

The traditional centralized machine learning approach would attempt to move the data to a central location.

That creates obvious problems:

  • Privacy
  • Regulatory compliance
  • Data sovereignty
  • Security
  • Cross-border data transfer
  • Centralized breach risk
  • Institutional ownership

Federated Learning changes the model.

Instead of moving the data:

Data stays local
       ↓
Model travels
       ↓
Local training
       ↓
Model updates
       ↓
Aggregation
Enter fullscreen mode Exit fullscreen mode

This is a major improvement.

But the architecture often still looks like this:

             Central Aggregator
             /       |       \
            /        |        \
           ▼         ▼         ▼
      Hospital A Hospital B Hospital C
Enter fullscreen mode Exit fullscreen mode

The central aggregator becomes the coordination point.

It may not store raw patient data, but it still becomes:

  • A coordination dependency
  • A potential single point of failure
  • A high-value attack target
  • A trust anchor
  • A potential bottleneck
  • A centralized model governance authority

The question becomes:

Can we decentralize aggregation itself?


2. The Core Idea: Central-Aggregator-Free Clinical AI

The proposed architecture introduces a different model:

             Hospital A
                ↕
                ↕
Hospital D ↔ Hospital B ↔ Hospital C
                ↕
                ↕
             Hospital E
Enter fullscreen mode Exit fullscreen mode

There is no global patient database.

There is no single central aggregator.

There is no single orchestrator that must remain online for the entire network to function.

Instead, the system combines:

  • Federated Learning
  • Peer-to-peer networking
  • Asynchronous model propagation
  • Byzantine-robust aggregation
  • Secure aggregation
  • Differential privacy
  • Local model personalization
  • Distributed model validation

The central architectural principle is:

Patient data remains local. Clinical knowledge becomes distributed.

This is not "databaseless" in the absolute sense.

Hospitals still need local storage for their own clinical systems.

The correct architectural definition is:

Central-data-repository-free clinical AI.

The network does not require a centralized repository containing global patient data.


3. The Six-Layer Architecture

The proposed system can be represented as six independent but interacting layers.

┌───────────────────────────────────────────────┐
│  Layer 6 — Clinical Governance & Compliance  │
│  Audit • Consent • Policy • Human Oversight   │
├───────────────────────────────────────────────┤
│  Layer 5 — Model Intelligence                 │
│  Global Knowledge • Personalization           │
├───────────────────────────────────────────────┤
│  Layer 4 — Distributed Coordination           │
│  P2P • Gossip • Async Federated Learning      │
├───────────────────────────────────────────────┤
│  Layer 3 — Privacy & Cryptography              │
│  DP • Secure Aggregation • Optional HE        │
├───────────────────────────────────────────────┤
│  Layer 2 — Edge Clinical Intelligence         │
│  Local Training • Inference • Validation      │
├───────────────────────────────────────────────┤
│  Layer 1 — Local Data Sovereignty              │
│  EHR • MRI • Genomics • Local Storage         │
└───────────────────────────────────────────────┘
Enter fullscreen mode Exit fullscreen mode

Each layer solves a different problem.


4. Layer 1: Local Data Sovereignty

The first rule is simple:

Raw clinical data does not leave its administrative domain.

The local environment may contain:

  • MRI images
  • CT scans
  • EHR records
  • Genomic information
  • Pathology images
  • Patient histories

The data remains under the control of the institution that owns or governs it.

Local storage may use technologies such as:

  • Encrypted SQLite / SQLCipher
  • Hospital-grade databases
  • Secure object storage
  • Existing PACS infrastructure
  • Local EHR systems

The important architectural property is not the specific database technology.

It is the boundary:

                 Internet / P2P Network
                         │
                         │
                ─────────┼─────────
                         │
                 Security Boundary
                         │
                  Local Hospital
                         │
                  ┌──────▼──────┐
                  │ Clinical AI │
                  └──────┬──────┘
                         │
                  ┌──────▼──────┐
                  │ Patient Data│
                  └─────────────┘
Enter fullscreen mode Exit fullscreen mode

The global network never needs direct access to raw patient records.


5. Layer 2: Local Clinical Intelligence

Each node performs local training and inference.

For example:

for local_epoch in range(E):
    for batch in local_dataset:
        prediction = model(batch.x)
        loss = clinical_loss(prediction, batch.y)

        optimizer.zero_grad()
        loss.backward()
        optimizer.step()
Enter fullscreen mode Exit fullscreen mode

The important boundary is:

Patient Data
     │
     ▼
Local Training
     │
     ▼
Model Update
     │
     ▼
Privacy Layer
     │
     ▼
Network
Enter fullscreen mode Exit fullscreen mode

Raw data does not need to cross the boundary.

This creates a fundamentally different relationship between data and intelligence.

The data is local.

The learned representation can be shared.


6. Layer 3: Privacy-Preserving Model Updates

Federated Learning is not automatically private.

A model update can potentially leak information.

Threats may include:

  • Gradient inversion
  • Membership inference
  • Model update leakage
  • Reconstruction attacks

Therefore, the architecture should treat privacy as an explicit layer.

A practical MVP could start with:

Local Update
     ↓
Gradient Clipping
     ↓
Differential Privacy
     ↓
Secure Aggregation
     ↓
Distributed Network
Enter fullscreen mode Exit fullscreen mode

Differential Privacy can provide formal privacy guarantees under a defined threat model.

Secure Aggregation can prevent individual participants' updates from being directly exposed to the aggregation process.

More advanced cryptographic mechanisms such as Homomorphic Encryption can be investigated later.

The key principle is:

Privacy should be engineered into the protocol, not assumed from Federated Learning alone.


7. Layer 4: Distributed Coordination

This is where the architecture fundamentally differs from conventional Federated Learning.

Instead of:

Hospital A ─┐
Hospital B ─┼──► Central Aggregator
Hospital C ─┘
Enter fullscreen mode Exit fullscreen mode

we have:

Hospital A ◄────► Hospital B
     ▲                 ▲
     │                 │
     ▼                 ▼
Hospital D ◄────► Hospital C
     ▲                 ▲
     └──────► Hospital E
Enter fullscreen mode Exit fullscreen mode

Peer-to-peer networking can be implemented using technologies such as libp2p.

A Gossip-style protocol can propagate:

  • Model updates
  • Model versions
  • Validation results
  • Reputation information
  • Model provenance metadata

The system becomes asynchronous.

A hospital does not necessarily need to wait for every other hospital.

This is important because clinical institutions operate under very different conditions.

Some may have:

  • Fast GPU infrastructure
  • High-bandwidth connectivity
  • Large datasets

Others may have:

  • Limited hardware
  • Intermittent connectivity
  • Small datasets

A distributed system must tolerate this heterogeneity.


8. The Real Research Problem: Distributed Aggregation

The hardest problem is not networking.

It is trust.

Suppose 100 hospitals participate.

What happens if:

  • 10 nodes are malicious?
  • 30% of updates are poisoned?
  • A node sends corrupted model parameters?
  • A Sybil attacker creates hundreds of fake participants?
  • Several nodes collude?

A simple average is not enough.

The system therefore needs a robust aggregation mechanism.

Potential candidates include:

  • Krum
  • Multi-Krum
  • Trimmed Mean
  • Coordinate-wise Median
  • Byzantine-robust aggregation
  • Reputation-weighted aggregation

A conceptual aggregation pipeline could look like:

Local Model Updates
        │
        ▼
Peer Validation
        │
        ▼
Anomaly Detection
        │
        ▼
Byzantine Filtering
        │
        ▼
Robust Aggregation
        │
        ▼
Model Propagation
        │
        ▼
Local Validation
Enter fullscreen mode Exit fullscreen mode

This changes the fundamental question.

The problem is no longer:

"How do we aggregate all models on one server?"

It becomes:

"How do distributed nodes collectively establish a trustworthy model?"

That is a much deeper systems problem.


9. Non-IID Clinical Data

Healthcare data is inherently Non-IID.

Consider:

Hospital A → Oncology
Hospital B → Cardiology
Hospital C → Pediatrics
Hospital D → Neurology
Enter fullscreen mode Exit fullscreen mode

Their distributions are not identical.

Traditional FedAvg may struggle when local objectives diverge significantly.

FedProx introduces a proximal term to reduce excessive local drift.

A conceptual objective can be written as:

[
\min_{\theta}
\sum_{i=1}^{N}
w_i
\left[
F_i(\theta)
+
\frac{\mu}{2}
|\theta-\theta_i|^2
\right]
]

where:

  • (F_i) is the local objective of node (i)
  • (\theta_i) is the local model
  • (\theta) is the shared model
  • (\mu) controls the proximal regularization
  • (w_i) represents the contribution or trust weight of a node

However, the global model may still not be optimal for every hospital.

This leads to another important architectural component:

Global Knowledge + Local Personalization

                 Global Model
                      │
          ┌───────────┼───────────┐
          ▼           ▼           ▼
     Hospital A   Hospital B   Hospital C
          │           │           │
          ▼           ▼           ▼
     Model A*      Model B*      Model C*
Enter fullscreen mode Exit fullscreen mode

The network learns collectively.

Each institution can then adapt the shared representation to its own clinical population.

Existing research directions such as personalized Federated Learning provide important foundations here.

The contribution of this architecture is not to claim that personalization itself is new.

The challenge is to combine personalization with decentralized coordination and Byzantine resilience.


10. Where Does PSO Fit?

Particle Swarm Optimization (PSO) can be explored as an adaptive aggregation strategy.

However, it should not automatically be considered the core innovation.

A more rigorous research design is to treat it as an experimental component.

For example:

Aggregation Strategies

FedAvg
   │
FedProx
   │
Median
   │
Trimmed Mean
   │
Krum
   │
PSO-based Adaptive Aggregation
Enter fullscreen mode Exit fullscreen mode

The hypothesis would be:

Can adaptive optimization improve aggregation under heterogeneous, Non-IID, asynchronous, and partially adversarial conditions?

The answer must come from experiments.

If PSO does not outperform simpler methods, it should not remain in the production architecture.

This is an important distinction between a research hypothesis and an architectural requirement.


11. Proposed Threat Model

A serious clinical AI architecture needs an explicit threat model.

The system should consider:

Honest-but-Curious Nodes

A participant follows the protocol but attempts to infer information from model updates.

Malicious Nodes

A participant intentionally sends poisoned updates.

Byzantine Nodes

A participant sends arbitrary or inconsistent information.

Sybil Attacks

An attacker creates multiple fake identities.

Network Attacks

An attacker attempts to disrupt peer-to-peer communication.

Model Poisoning

Malicious updates attempt to manipulate the global model.

Privacy Attacks

Attackers attempt to infer whether a patient's data was used for training.

The architecture should therefore combine:

Cryptographic Identity
        +
Secure Communication
        +
Differential Privacy
        +
Secure Aggregation
        +
Byzantine-Robust Aggregation
        +
Reputation / Trust Mechanisms
Enter fullscreen mode Exit fullscreen mode

No single component solves every threat.

Security must be compositional.


12. The Proposed Architecture

Putting everything together:

                       Clinical Governance
                              │
                              ▼
                   Distributed Model Layer
                  Global + Personalized AI
                              │
                              ▼
                 Byzantine-Robust Aggregation
                    /       |        \
                   /        |         \
                  ▼         ▼          ▼
              Hospital A Hospital B Hospital C
                  ↕         ↕          ↕
                  └──── P2P Network ───┘
                           │
                    Privacy Layer
                 DP + Secure Aggregation
                           │
                           ▼
                    Local AI Training
                           │
                           ▼
                    Local Clinical Data

             RAW PATIENT DATA NEVER LEAVES
             ITS LOCAL ADMINISTRATIVE DOMAIN
Enter fullscreen mode Exit fullscreen mode

The resulting architecture removes two centralized dependencies:

Traditional FL

Central Data Repository
          +
Central Aggregator
Enter fullscreen mode Exit fullscreen mode

The proposed architecture aims for:

Local Data Sovereignty
          +
Distributed Aggregation
Enter fullscreen mode Exit fullscreen mode

13. MVP Roadmap

A realistic MVP should not attempt to implement every advanced cryptographic technology simultaneously.

Phase 1 — Federated Simulation

Build a simulation with 3–10 nodes.

Compare:

  • FedAvg
  • FedProx
  • Robust aggregation methods
  • Proposed decentralized aggregation

Measure:

  • Accuracy
  • F1
  • AUROC
  • Convergence
  • Communication overhead

Phase 2 — Privacy

Add:

  • Gradient clipping
  • Differential Privacy
  • Secure Aggregation

Evaluate the privacy/utility trade-off.

Privacy ↑
    │
    │        ●
    │     ●
    │  ●
    │________________ Utility →
Enter fullscreen mode Exit fullscreen mode

The goal is not maximum privacy at any cost.

The goal is an acceptable balance between privacy and clinical utility.


Phase 3 — P2P Coordination

Implement:

  • Peer discovery
  • Gossip propagation
  • Model versioning
  • Asynchronous updates
  • Node authentication

Technologies such as libp2p can be evaluated here.


Phase 4 — Adversarial Evaluation

Simulate:

  • 10% malicious nodes
  • 30% malicious nodes
  • Byzantine updates
  • Model poisoning
  • Sybil scenarios
  • Intermittent connectivity

Compare the proposed architecture against centralized Federated Learning baselines.


Phase 5 — Clinical Pilot

The final step would involve a controlled pilot with multiple institutions.

The evaluation should focus on:

Clinical Utility
       +
Privacy
       +
Security
       +
Resilience
       +
Communication Cost
       +
Regulatory Feasibility
Enter fullscreen mode Exit fullscreen mode

The objective is not simply to build a more decentralized system.

It is to determine whether decentralization provides measurable advantages without unacceptable costs.


14. What Is Actually Novel Here?

This is perhaps the most important question.

The novelty should not be claimed as:

"We invented Federated Learning."

We did not.

It should not be:

"We invented personalized Federated Learning."

Existing research already addresses this.

It should not be:

"We combined FedProx and PSO."

That alone is unlikely to constitute a strong scientific contribution.

The stronger research hypothesis is:

Can clinical Federated Learning operate without a central aggregation authority while maintaining model utility, privacy, robustness, and convergence under heterogeneous and potentially Byzantine participants?

This reframes the architecture from an algorithmic trick into a distributed systems problem.

The central research contribution would therefore be the design and evaluation of a:

Central-Aggregator-Free Federated Clinical AI Architecture

with distributed model coordination and robust aggregation.

The architecture can then experimentally evaluate whether techniques such as FedProx, personalized learning, Byzantine-robust aggregation, and adaptive optimization can operate effectively within this topology.


15. The Bigger Picture

Healthcare AI does not necessarily need a giant centralized database to become globally intelligent.

It may need a different architecture.

One where:

Data stays where it is created.

Models learn where data lives.

Knowledge moves between institutions.

Trust is distributed.

Aggregation is decentralized.

Privacy is engineered.

Clinical intelligence becomes a network property.
Enter fullscreen mode Exit fullscreen mode

The long-term vision is not to create one massive global database of patients.

It is to create a network where hospitals can collectively improve AI models while retaining sovereignty over the data they are responsible for.

The most important architectural shift is therefore simple:

From centralized data aggregation to decentralized knowledge coordination.

The real test, however, will not be whether the architecture sounds elegant.

It will be whether it can survive real-world constraints:

  • Non-IID clinical data
  • Byzantine participants
  • Privacy attacks
  • Unreliable connectivity
  • Communication overhead
  • Regulatory requirements
  • Clinical validation
  • Human oversight

If those challenges can be solved, decentralized Federated Learning could become more than a privacy technique.

It could become an architectural foundation for a new generation of clinical AI systems.


Final Principle

Patient Data Stays Local.

Clinical Knowledge Becomes Distributed.

Trust Is No Longer Centralized.

Intelligence Emerges From the Network.

created by Seyed Alireza Alhosseini Almodarresieh

Top comments (0)