Federated Transfer Learning with Task Personalization for Condition Monitoring in Ultrasonic Metal Welding

Ahmadreza Eslaminia, Yuquan Meng, Klara Nahrstedt, Chenhui Shao · DOI

Abstract

Condition monitoring in ultrasonic metal welding (UMW) is critical for ensuring manufacturing quality in industries ranging from automotive to electronics. However, traditional machine learning approaches struggle with domain shift—where models trained on one material fail on another—and data privacy concerns that prevent cross-organizational data sharing. This paper introduces Federated Transfer Learning with Task Personalization (FTL-TP), a framework that enables collaborative model training without exposing raw data. By utilizing a split neural network architecture and specialized regularization, FTL-TP achieves a 5%–8% improvement in accuracy over standard federated learning methods and demonstrates superior generalization to unseen welding configurations.

1. Introduction

Ultrasonic metal welding (UMW) is a high-precision process sensitive to variables such as tool wear and surface contamination. While machine learning (ML) offers a robust solution for anomaly detection, its deployment is hindered by two primary challenges. First, the "Domain Shift" problem: an ML model optimized for aluminum welding often performs poorly when applied to copper due to differing physical properties. Second, the "Privacy Wall": manufacturers are often reluctant to share proprietary process data.

To address these hurdles, we propose the Federated Transfer Learning with Task Personalization (FTL-TP) framework. This approach focuses on "domain generalization," allowing a model to perform effectively on entirely new, unseen factory setups while maintaining strict data localization.

2. The FTL-TP Framework

The FTL-TP framework leverages the collaborative power of Federated Learning (FL) while introducing architectural and mathematical innovations to handle task-specific nuances.

2.1 Split Architecture and Communication

Unlike standard FL, which often seeks a single global model, FTL-TP employs a split neural network architecture:

  • Shared Base Layers: The lower layers of the network are aggregated across all clients. These layers learn universal, physics-based features of welding signals (e.g., vibration and power consumption) that remain consistent across different materials.
  • Personalized Upper Layers: The top layers are task-specific and are only aggregated among clients performing identical tasks (e.g., tool wear classification vs. surface contamination detection).
Overview of the Federated Learning communication cycle between the central server and local clients.

2.2 Optimization and Regularization

To ensure stability and generalization, the framework incorporates a custom loss function featuring two key terms:

  1. FedProx Term: This prevents local models from diverging too far from the global average, ensuring stability in heterogeneous data environments.
  2. L2-norm Regularization (L2R): Applied to the shared layers' output, this forces the model to learn simpler, more generalizable representations, facilitating better transfer to new domains.

3. Experimental Setup

The framework was validated using three distinct domain groups derived from real-world UMW experiments:

  • Group M (Material): Tool condition monitoring across four material combinations (e.g., Al-Cu, Cu-Cu).
  • Group S (Surface): Tool condition monitoring across varying workpiece surface states (Clean, Polished, Contaminated).
  • Group T (Task): Surface condition classification using the same data as Group S.

The system was implemented using Raspberry Pi edge devices and a RabbitMQ message broker to simulate a real-world industrial edge-cloud environment.

4. Results and Discussion

FTL-TP demonstrated significant performance gains over state-of-the-art baselines:

  • Accuracy Gains: The framework achieved a 5.35%–8.08% improvement in accuracy on unseen target domains compared to FedAvg and FedL2R.
  • Collaborative Advantage: Surprisingly, FTL-TP outperformed Centralized Transfer Learning (CTL) by approximately 3.84%. This suggests that the federated approach provides a beneficial regularization effect that prevents the model from over-fitting to a single massive dataset.
  • Edge Efficiency: Training rounds on Raspberry Pi hardware were completed in under two minutes, confirming the framework's suitability for low-power industrial edge deployment.

5. Conclusion

FTL-TP successfully bridges the gap between data privacy and model performance in industrial settings. By acknowledging that "physics is universal" through shared base layers while allowing for "local flavor" via personalized upper layers, the framework provides a scalable solution for condition monitoring. Future research will focus on enhancing privacy through Differential Privacy and scaling the framework to handle hundreds of simultaneous manufacturing tasks.

Summary updated

BibTeX
@article{eslaminia2024federated,
  author = {Ahmadreza Eslaminia and Yuquan Meng and Klara Nahrstedt and Chenhui Shao},
  title = {{Federated Transfer Learning with Task Personalization for Condition Monitoring in Ultrasonic Metal Welding}},
  journal = {Journal of Manufacturing Systems},
  year = {2024},
  doi = {10.1016/j.jmsy.2024.09.023},
}
Figure