Blockchain-based Federated Learning for Failure Detection in Industrial IoT

Weishan Zhang, Qinghua Lu, Qiuyu Yu, Zhaotong Li, Yue Liu, Sin Kit Lo, Shiping Chen, Xiwei Xu, Liming Zhu

Introduction

In the era of Industrial IoT (IIoT), predictive maintenance is critical for operational efficiency. However, traditional centralized machine learning approaches face significant hurdles regarding data privacy and the inherent heterogeneity of industrial data. This paper presents a robust framework that combines Federated Learning (FL) with blockchain technology to enable collaborative model training without compromising sensitive business data.

The Challenge: Privacy and Data Heterogeneity

Industrial equipment, such as water-cooled magnetic levitation chillers, generates vast amounts of sensor data. Centralizing this data for failure detection poses two main problems:

  1. Privacy Risks: Raw data can reveal sensitive operational patterns, such as occupancy rates in hotels or production cycles in factories.
  2. Data Heterogeneity: Devices operate in diverse environments, leading to non-IID (not identically and independently distributed) data. Standard FL algorithms like FedAvg often struggle to produce accurate global models under these conditions.

Proposed Methodology

The authors propose a three-layered solution to address these challenges, integrating model training, data integrity, and incentive mechanisms.

1. CDW-FedAvg Algorithm

The core innovation is the Centroid Distance Weighted Federated Averaging (CDW-FedAvg) algorithm. Unlike standard FedAvg, which weights contributions solely by sample size, CDW-FedAvg evaluates the "centroid distance" between failure and normal classes in local datasets. This ensures that clients with higher-quality, more discriminative data have a greater influence on the global model.

2. Blockchain Anchoring and Integrity

To ensure data integrity, the system utilizes a blockchain anchoring protocol. Instead of storing massive raw datasets on-chain, the system creates a Merkle tree of local sensor data and stores only the root hash. This provides a verifiable audit trail for data contributions without the prohibitive costs of on-chain storage.

3. Smart Contract Incentives

Ethereum-based smart contracts automate the distribution of rewards. Tokens are allocated based on both data volume and the quality metric (centroid distance) derived from the CDW-FedAvg process, encouraging high-quality data contributions.

System architecture of the proposed blockchain-integrated federated learning framework showing the interaction between client organizations, the central server, and the blockchain.

Experimental Evaluation

The framework was tested using a real-world dataset from a major air-conditioner manufacturer, focusing on failure detection in magnetic levitation chillers. The dataset included 18 key features, such as temperature, pressure, and compressor load, distributed across four simulated client environments to test performance against data heterogeneity.

Results and Performance Analysis

The experimental results demonstrate that CDW-FedAvg consistently outperforms standard FedAvg in both Logistic Regression and Neural Network models. In many scenarios, the federated model achieved accuracy levels comparable to centralized training.

Workflow of the system and performance metrics for blockchain execution and incentive mechanisms.

Regarding system overhead, the blockchain execution time for writing Merkle tree roots and contribution data typically ranges from 18 to 21 seconds. While this introduces some latency, it is negligible relative to the long-term data collection cycles typical of industrial equipment. Furthermore, the federated approach significantly reduces communication overhead by transmitting only model weights rather than raw sensor data.

Conclusion and Future Work

The proposed framework successfully bridges the gap between data privacy and model performance in IIoT. By treating blockchain as an immutable auditor rather than a primary database, the system remains scalable. Future research will focus on optimizing these modules for resource-constrained edge devices and enhancing the security of the central aggregator against potential manipulation or poisoning attacks.

Summary updated

BibTeX
@article{zhang2021blockchain,
  author = {Weishan Zhang and Qinghua Lu and Qiuyu Yu and Zhaotong Li and Yue Liu and Sin Kit Lo and Shiping Chen and Xiwei Xu and Liming Zhu},
  title = {{Blockchain-based Federated Learning for Failure Detection in Industrial IoT}},
  journal = {IEEE Internet of Things Journal},
  year = {2021},
  url = {https://openreview.net/forum?id=PFRYfj5BlgT},
}
Figure