Federated learning with uncertainty-based client clustering for fleet-wide fault diagnosis

Hao Lü, Adam Thelen, Olga Fink, Chao Hu, Simon Laflamme

In the world of industrial maintenance, data is gold, but it’s often locked in silos. While large-scale "fleets" of machinery generate massive amounts of sensor data, individual operators rarely see enough actual equipment failures to train robust diagnostic AI. Sharing data across companies could solve this, but privacy and proprietary concerns usually kill those conversations before they start.

A new paper titled "Federated Learning with Uncertainty-Based Client Clustering for Fleet-Wide Fault Diagnosis" proposes a clever way to break this deadlock. By combining Federated Learning (FL) with advanced uncertainty quantification, the authors have developed a system that lets companies collaborate on AI training without ever sharing a single byte of raw sensor data.

TL;DR

The authors introduce FedSNGP, a federated learning framework that uses prediction uncertainty to automatically group clients with similar data distributions. By clustering "like-minded" participants, the algorithm overcomes the performance drops typically seen in decentralized learning when data is messy or inconsistent across different operators.

What Problem Does This Paper Address?

Standard Federated Learning (like Google’s FedAvg) works by training models locally on client devices and then averaging their "knowledge" (model weights) on a central server. This keeps raw data private.

However, industrial data is notoriously "non-IID" (not independent and identically distributed). Two different factories might use the same bearings but under different loads, speeds, or temperatures—a phenomenon called domain shift. Furthermore, one factory might have data on "inner race faults" while another only has "outer race faults"—known as label heterogeneity.

When you try to average models from such diverse sources, the resulting "global" model often performs poorly for everyone. It becomes a "jack of all trades, master of none."

Methods

The core innovation of this paper is FedSNGP, which stands for Federated Spectral-normalized Neural Gaussian Process. It works in four distinct steps:

  1. Distance-Aware Modeling: Instead of a standard neural network, each client trains an SNGP model. This specific architecture is "distance-aware," meaning it doesn't just give a prediction; it provides a highly reliable uncertainty estimate. If the model sees data far removed from what it was trained on, its uncertainty spikes.
  2. Cross-Evaluation for Similarity: To find out which clients are similar without sharing data, clients download each other's models. They run these models against their own local "test" sets and report back the prediction variance (uncertainty).
  3. Uncertainty-Based Clustering: The central server takes these uncertainty reports and builds a similarity matrix. It then uses an algorithm called Affinity Propagation to automatically group clients into clusters. Crucially, this method doesn't require the user to pre-define the number of clusters.
  4. Targeted Aggregation: The server averages models only within their assigned clusters. This ensures that a model for high-speed turbines isn't being "diluted" by data from low-speed pumps.
The four-step FedSNGP process: local training, similarity estimation via uncertainty, unsupervised clustering, and model dissemination.

Datasets

The researchers validated their approach using three bearing fault datasets:

  • CWRU: The industry-standard Case Western Reserve University dataset.
  • PU: The Paderborn University dataset, which includes more complex "accelerated lifetime" degradation data.
  • ISU: A newly collected dataset from Iowa State University featuring four health conditions under varying loads and speeds.

They tested these across three scenarios of increasing difficulty, ranging from simple domain shifts to extreme cases where clients had very few samples and missing fault types.

Key Insights and Ideas

  • Uncertainty as a Proxy for Privacy: The "Aha!" moment here is using uncertainty as a metric for similarity. If Model A is extremely uncertain when looking at Client B’s data, the server knows they belong in different clusters without ever seeing the data itself.
  • Dynamic Adaptability: Because the clustering happens every communication round, the system can adapt if a client’s operating conditions change over time.
  • Safety First: Because the underlying model (SNGP) is probabilistic, it can flag "Out-of-Distribution" samples. In a real-world factory, the model can essentially say, "I don't recognize this vibration pattern; call a human engineer," rather than making a confident but wrong guess.

Key Results

The results were striking, especially in the most difficult "Scenario 3" (high heterogeneity):

  • Superior Accuracy: FedSNGP outperformed standard FedAvg by 5.1% and a common cosine-similarity-based clustering algorithm by a massive 30.7% on average.
  • Robustness: In extreme cases where local training accuracy dropped to ~50% (no better than a coin flip for some tasks), FedSNGP maintained over 95% accuracy by effectively leveraging knowledge from the right neighbors.
  • OOD Performance: The model demonstrated a high success rate in identifying data from fault types it had never seen during training, preventing dangerous false negatives.

Limitations and Future Work

While powerful, the authors acknowledge a few hurdles:

  • Communication Overhead: In the current version, every client has to download every other client's model to estimate similarity. In a federation of thousands of clients, this would be a massive bandwidth hog.
  • Privacy Nuances: While raw data isn't shared, downloading other clients' models could theoretically allow a malicious actor to perform "model inversion" attacks to guess details about the training data. The authors suggest shuffling client IDs and model orders to mitigate this.

Future research will likely focus on reducing this communication cost and further hardening the privacy protections of the similarity estimation step.

Summary updated

BibTeX
@inproceedings{lu2024federated,
  author = {Hao Lü and Adam Thelen and Olga Fink and Chao Hu and Simon Laflamme},
  title = {{Federated learning with uncertainty-based client clustering for fleet-wide fault diagnosis}},
  booktitle = {Mechanical},
  year = {2024},
  doi = {10.1016/j.ymssp.2023.111068},
}
Figure