Next Article in Journal
Multi-Temperature Zone Active Thermal Control Using Feedforward Decoupling Integrated MPC–PID for Machine Tool
Previous Article in Journal
Research on Autonomous Navigation System of Drilling Robots for Coal Mine Gas Outburst Prevention
Previous Article in Special Issue
Multimodal Fault Diagnosis of Rolling Bearings Based on GRU–ResNet–CBAM
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Relation Knowledge-Guided Federated Model Compression for Rare-Fault Preservation in Motor Fault Diagnosis

Automation with the College of Information Science and Engineering, Northeastern University, Shenyang 110000, China
*
Author to whom correspondence should be addressed.
Machines 2026, 14(6), 689; https://doi.org/10.3390/machines14060689 (registering DOI)
Submission received: 14 May 2026 / Revised: 8 June 2026 / Accepted: 11 June 2026 / Published: 15 June 2026

Abstract

To address global knowledge bias, weak rare-fault recognition, and high edge-deployment costs caused by heterogeneous sample sizes, data quality, fault categories, and monitoring modalities among multiple clients, this paper proposes a rare-fault-preserving federated dynamic model slimming method based on relational knowledge. The core idea is to formulate lightweight federated diagnosis as a joint optimization problem of rare-fault knowledge preservation and redundant knowledge suppression. At each local client, output-discriminative knowledge, class-prototype relations, and input-sensitive relations are extracted to describe diagnostic knowledge from the decision, structure, and weak-response levels. At the federated server, a rare-fault-aware weighting mechanism adjusts the contribution of local knowledge according to sample scarcity, output reliability, and distribution dispersion and then fuses multi-granularity relational knowledge to optimize the global teacher model. A relation-constrained gated slimming strategy is further designed for the student model, enabling the lightweight model to retain critical diagnostic channels while suppressing repetitive and low-contribution information. Experiments on the CWRU bearing dataset and the HUST multimodal motor dataset show that the proposed method achieves higher diagnostic accuracy, rare-fault recall, and deployment efficiency under composite imbalance, cross-condition generalization, and modality-missing deployment scenarios. These results demonstrate the effectiveness of the proposed method for raw-data-free and privacy-aware multi-client motor fault diagnosis.

1. Introduction

Motors are key actuating components in industrial transmission equipment and intelligent manufacturing systems, and their operating conditions directly affect production safety, operational continuity, and maintenance cost [1,2]. During long-term service, motors are subject to load fluctuations, start–stop impacts, installation deviations, component aging, and environmental disturbances, which may lead to various faults, such as bearing damage, rotor unbalance, misalignment, broken rotor bars, winding short circuits, and voltage imbalance [3]. However, motor fault diagnosis in engineering applications is not a simple classification problem but is jointly affected by data decentralization, class scarcity, distribution heterogeneity, privacy constraints, and limited resources for edge deployment.
In multi-client collaborative diagnosis scenarios, differences in motor types, operating conditions, sensor arrangements, and maintenance states lead to significant inconsistencies among local datasets. Some clients may operate mainly under normal or slightly degraded conditions for long periods, resulting in insufficient fault samples. Incipient and rare faults are usually characterized by weak impacts, strong noise interference, ambiguous class boundaries, and limited sample coverage [4]. Existing studies still have three main limitations in balancing rare-fault preservation and lightweight deployment. First, conventional federated aggregation and federated distillation tend to emphasize global accuracy or knowledge consistency, but rare-fault knowledge from small-sample clients can still be weakened during server-side fusion. Second, most distillation methods rely mainly on output responses or feature representations, which are insufficient to jointly describe soft decision boundaries, inter-class fault structures, and weak-fault sensitivity. Third, existing federated compression or slimming methods mainly reduce parameters or channels, but they do not explicitly prevent the removal of weak yet critical representations related to rare-fault boundaries. As a result, rare-fault features can be easily overwhelmed by majority classes and highly repetitive samples, making it difficult for diagnostic models to preserve sensitivity to minority faults under imbalanced data conditions [5]. Centralized deep learning methods can train diagnostic models by aggregating data from different devices [6], but direct data sharing is often constrained by enterprise privacy policies, equipment security, communication costs, and data management regulations. Federated learning provides a feasible raw-data-free solution for multi-client collaborative modeling by keeping raw monitoring data locally and exchanging model parameters or knowledge descriptors [7]. It should be noted that raw-data-free collaboration does not indicate a formal privacy guarantee because exchanged parameters or descriptors may still contain statistical information about local data. In addition, due to non-IID data distributions, conventional federated aggregation tends to be dominated by clients with larger sample sizes, more complete fault categories, and higher data quality. Consequently, rare-fault knowledge from minority clients may be weakened in the global model [8]. Meanwhile, the global model may also absorb repetitive, low-quality, and weakly task-related knowledge from multiple clients. Such knowledge usually makes a limited contribution to rare-fault discrimination but may increase model complexity and weaken minority-class boundaries. It may arise from repetitive feature responses of large-sample clients, majority-class-dominated decision information, or low-contribution channels that are insensitive to rare and incipient faults. As a result, the global model may contain redundant decision boundaries, leading to higher deployment cost and reduced edge-side applicability.
Pruning, quantization, knowledge distillation, and federated distillation have been widely used to reduce model complexity, storage cost, communication burden, and inference latency in mechanical fault diagnosis [9,10,11,12]. However, most existing lightweighting methods are designed for centralized or single-client scenarios, and their objectives mainly focus on parameter compression or teacher-output approximation [13]. Under multi-client imbalanced conditions, minority-fault and incipient-fault responses are usually weak and can be removed during pruning or slimming. Meanwhile, existing federated distillation methods mainly transfer soft labels, feature representations, class prototypes, or generated knowledge to improve model fusion, cross-domain generalization, or communication efficiency, with insufficient attention to rare-fault knowledge preservation during compression [14]. Relying only on output probabilities or conventional feature distillation cannot fully represent inter-class fault structures, input-sensitive weak responses, and complex rare-fault boundaries. Therefore, lightweight federated diagnosis should not only reduce model size but also preserve effective diagnostic knowledge and suppress redundant, low-quality, and majority-class-dominated knowledge.
More specifically, existing related techniques address only part of this requirement. Federated prototype learning aligns feature structures through class prototypes, but it cannot describe soft decision boundaries or input-sensitive weak responses. Federated knowledge distillation transfers output-level knowledge, while output responses alone are insufficient to preserve structural relations among similar faults. Rare-class reweighting increases the contribution of minority samples during local training, but it cannot evaluate the reliability of rare-fault knowledge during federated fusion. Model slimming reduces structural redundancy, but weak channels associated with rare-fault boundaries may still be removed without explicit knowledge-preservation constraints. Therefore, rare-fault-preserving lightweight federated diagnosis requires a unified framework that jointly considers decision-level discrimination, class-level structural relations, input-level sensitivity responses, rare-fault-aware knowledge fusion, and redundancy-suppressed model slimming.
To address these issues, this paper proposes a rare-fault-preserving federated dynamic model slimming method based on relational knowledge. The core novelty lies in using multi-granularity relational knowledge as a unified constraint for both rare-fault-aware federated fusion and gated student slimming, rather than treating relational distillation, federated weighting, and model slimming as independent modules. Specifically, output-discriminative knowledge, class-prototype relations, and input-sensitive relations are extracted at local clients to describe diagnostic knowledge from the decision, structure, and sensitivity levels. At the federated center, rare-fault-aware weighting is introduced to enhance reliable minority-fault knowledge from clients with scarce samples and heterogeneous data quality. Then, a relation-constrained gated teacher-to-student slimming strategy is constructed to reduce deployment complexity while preserving rare-fault recognition capability. The main contributions of this paper are summarized as follows:
(1)
A rare-fault-preserving federated dynamic slimming framework is proposed for multi-client imbalanced motor fault diagnosis. Different from conventional federated distillation or federated compression methods, the proposed framework jointly considers federated knowledge fusion, rare-fault boundary preservation, and redundant channel suppression.
(2)
A multi-granularity relational knowledge representation mechanism is developed by integrating output-discriminative knowledge, class-prototype relations, and input-sensitive relations. This design preserves soft decision boundaries, fault-class structural relationships, and weak-fault response sensitivity simultaneously.
(3)
A rare-fault-aware knowledge weighting strategy and a relation-constrained gated slimming strategy are designed. The former reduces the dominance of majority clients during federated fusion, while the latter prevents the lightweight student model from removing key channels associated with rare-fault recognition.

2. Related Works

2.1. Lightweight Fault Diagnosis Methods

In mechanical fault diagnosis, lightweight modeling has been widely studied to reduce storage cost, computational burden, and inference latency. Existing methods mainly include parameter pruning, weight quantization, low-rank decomposition, lightweight network design, and knowledge distillation [15,16]. Some studies improve deployment efficiency by using lightweight convolutional networks, depth-wise separable convolutions, compact residual modules, or embedded diagnostic networks. For example, Gong et al. [17] proposed a lightweight fault diagnosis method for embedded systems, and Sun et al. [18] developed a multi-level compression strategy for bearing fault diagnosis. Other studies combine compression with knowledge transfer. Zhang et al. [19] introduced knowledge distillation into fault diagnosis model compression, Ji et al. [20] integrated distillation with parameter quantization, and Liao et al. [21] improved deployment applicability by combining decoupled knowledge distillation with hardware acceleration. These studies show that lightweight design and distillation can reduce model complexity while maintaining diagnostic performance.
Nevertheless, most existing lightweight fault diagnosis methods are developed under centralized or single-client settings with relatively complete class distributions. Their objectives mainly focus on parameter reduction, inference acceleration, or teacher-output approximation, with insufficient attention to rare-fault preservation during compression. In multi-client motor fault diagnosis, data heterogeneity, inconsistent sample quality, and incomplete fault-category coverage make this problem more severe. When rare faults exist in only a few clients or low-SNR samples, pruning and quantization may remove parameters related to weak fault boundaries, while output distillation alone cannot preserve fault-class structures and weak-response features. Therefore, lightweight diagnosis under multi-client imbalanced conditions should not only reduce model size but also preserve effective fault knowledge and suppress redundant information during compression.

2.2. Knowledge Distillation-Based Fault Diagnosis Methods

Knowledge distillation transfers diagnostic knowledge from a teacher model to a student model and provides an effective compression strategy for lightweight fault diagnosis. Hinton et al. [22] introduced softened output probabilities to help the student model learn inter-class similarity information. Gou et al. [23] further summarized distillation knowledge into response-based, feature-based, and relation-based knowledge, indicating that the effectiveness of distillation depends on both the knowledge type and the transfer strategy. For fault diagnosis, different fault classes often have feature similarities and mechanism-level correlations, so hard-label supervision or output probability fitting alone is insufficient to preserve fine-grained class boundaries. In mechanical fault diagnosis, knowledge distillation has been used for model compression, lightweight deployment, and cross-condition diagnosis. Lu et al. [24] proposed a lightweight distillation transfer learning framework to improve bearing diagnosis under insufficient labeled samples. Other studies introduced intermediate feature hints [25] or relational knowledge distillation [26] to enhance the representation capability of student models. These methods show that distillation can improve lightweight diagnostic models by transferring output, feature, or relation knowledge. However, most existing methods still assume that teacher knowledge is reliable and mainly focus on centralized or single-domain scenarios. Under few-shot, low-SNR, and class-missing conditions, the teacher model may contain both useful discriminative knowledge and noise-induced bias. Directly transferring output responses or intermediate features may fail to preserve class structure relations, inter-sample similarities, and weak rare-fault boundaries.
In addition to knowledge distillation, digital-twin-guided diagnosis has become an important knowledge-driven fault diagnosis paradigm. Digital-twin-guided physical–virtual denoising methods construct bearing dynamic models to generate simulated fault signals and calibrate the virtual model using measured signals, thereby enhancing weak early-fault features under strong background noise [27]. Digital-twin-driven cross-domain adaptation methods further use high-fidelity simulated signals as knowledge sources to reduce the discrepancy between simulated and measured domains [28]. These studies demonstrate the value of generated physical knowledge for improving robustness and interpretability. However, they mainly focus on physical–virtual signal generation, denoising, or simulation-to-real adaptation. In contrast, this study focuses on federated rare-fault knowledge preservation and lightweight model slimming when raw diagnostic data are distributed across multiple clients and cannot be centrally shared.

2.3. Federated Distillation-Based Fault Diagnosis Methods

Federated learning enables multi-client collaborative diagnosis through local training and server-side aggregation, which alleviates data isolation without sharing raw monitoring data. Chen et al. [29] proposed a discrepancy-weighted federated transfer learning method to mitigate cross-client distribution differences in bearing diagnosis. Li et al. [30] investigated a privacy-aware federated transfer diagnosis method with target-adaptive capability. Zhao et al. [31] developed a federated multi-source domain adversarial adaptation framework to reduce distribution shifts among multiple clients. These studies promote the application of federated learning in mechanical fault diagnosis. However, most of them still rely on parameter aggregation or domain adaptation, with limited consideration of model heterogeneity, communication cost, and redundant knowledge accumulation. Federated distillation transfers diagnostic knowledge instead of complete model parameters, providing a more flexible solution for heterogeneous client collaboration and communication reduction. Xue et al. [32] combined federated transfer learning with consensus knowledge distillation, where consensus knowledge was used to guide clients in sharing diagnostic knowledge under raw-data-free collaboration. Sun et al. [13] proposed FedAlign, which uses data-free knowledge distillation and pseudo features to align heterogeneous client models. These studies show that federated distillation can reduce communication burden, support model heterogeneity, and improve cross-client knowledge sharing. However, existing federated distillation-based fault diagnosis methods still have difficulty meeting the requirements of rare-fault preservation and lightweight deployment under multi-client imbalance. Most methods focus on cross-domain generalization, model alignment, or communication efficiency, while paying insufficient attention to how redundant or biased knowledge affects minority-fault recognition. When sample size, sample quality, and fault-category distributions vary across clients, repetitive knowledge from large-sample clients, noise-biased knowledge from low-quality clients, and majority-class-dominated knowledge may weaken rare-fault boundaries. In addition, output probabilities, public-data responses, or pseudo features provide limited characterization of class-relation structures and input-sensitive weak responses. Therefore, multi-client motor fault diagnosis requires a unified design that combines federated distillation, relational knowledge preservation, rare-fault-aware fusion, and dynamic model slimming to support raw-data-free collaboration, rare-fault preservation, redundant knowledge suppression, and edge deployment.

3. Federated Dynamic Slimming Algorithms with Relation Knowledge for Rare-Fault Preservation

The main notation is unified as follows. K denotes the number of clients, C denotes the number of fault classes, D k denotes the local dataset of client k , and D a denotes the labeled calibration set at the server. F k , F G , and F S denote the local model, global teacher model, and student model, respectively. Q k , R k p , and R k s denote the output knowledge, class-prototype relation, and input-sensitive relation. α k , c denotes the class-level fusion weight, and ξ denotes the channel-retention threshold.

3.1. Overall Framework with Output Discrimination and Relation Knowledge Collaboration

To address the weakening of rare-fault knowledge, the accumulation of redundant knowledge in the global model, and the high deployment complexity at the edge side in multi-cliental motor fault diagnosis, this study constructs a relation knowledge-based federated dynamic slimming framework, as shown in Figure 1. The framework consists of four stages: local knowledge mining, federated knowledge fusion, global teacher model optimization, and gated dynamic slimming of the student model. Different from methods that only upload model parameters or distill output soft labels, the proposed method represents local diagnostic knowledge using output-discriminative knowledge, class-prototype relations, and input-sensitive relations, and further performs rare-fault-aware fusion at the federated center.
Assume that the federated system consists of K local clients. The local fault dataset of the k -th client is denoted as D k = { ( x k , i , y k , i ) } i = 1 n k , where C is the number of fault classes. The local diagnostic model is composed of a feature extractor ϕ k ( ) and a classifier g k ( ) , and the predicted probability is formulated as
z k , i = g k ϕ k x k , i ; θ k , p k , i = softmax ( z k , i )
where z k , i denotes the classification logits of the i -th sample, p k , i is the corresponding predicted probability, and θ k represents the local model parameters.
Unlike methods that directly upload model parameters or raw data, each client only uploads diagnostic knowledge descriptors extracted from its local model. The federated center then uses these descriptors to update the global teacher model F G and subsequently performs dynamic slimming through the gated student model F S . The key distinction of the proposed framework is that relational knowledge is used throughout the whole process, including local knowledge description, server-side rare-fault-aware fusion, teacher model optimization, and gated student slimming. Therefore, rare-fault boundaries are preserved during both knowledge aggregation and lightweight compression.
Remark 1.
The proposed method keeps raw monitoring signals at local clients and only uploads compact knowledge descriptors, including softened outputs, class prototypes, relation matrices, and class-level statistics. This design reduces the exposure of raw vibration, acoustic, or current signals. Therefore, the proposed method should be understood as a raw-data-free and privacy-aware diagnostic framework rather than a method with a formal privacy guarantee. The upload cost of one client in each communication round is mainly determined by the descriptor size: B r e l = b ( N a C + C d + 2 C 2 + 3 C ) , where b is the number of bytes of one floating-point value, N a is the number of calibration samples, C is the number of classes, and d is the prototype dimension. The four terms correspond to output responses, class prototypes, two relation matrices, and class-level statistics, respectively. In comparison, parameter-based federated learning uploads model parameters with the cost B p a r a m = b θ . Since N a , C , and d are usually much smaller than the number of local signal samples or model parameters, the proposed descriptor-based transmission is communication-efficient.

3.2. Local Model Training and Multi-Granularity Diagnostic Knowledge Mining

In each federated iteration, the federated center first distributes the current global teacher model parameters to the local clients. The k -th client then updates its model using its local dataset. Considering that rare-fault classes may be insufficiently represented in local data, a class-balancing factor is introduced to regularize the local loss function:
L k ce = 1 n k i = 1 n k γ k , y k , i log p k , i ( y k , i ) ,     γ k , c = ( n k , c + ε ) η j = 1 C ( n k , j + ε ) η ,
where n k , c denotes the number of samples belonging to the c -th fault class in the k -th client, ε is a small constant used to avoid division by zero, and η controls the compensation strength for rare classes. This design enables the local training stage to pay more attention to minority-fault classes, thereby preventing the subsequent federated fusion process from being dominated by majority-class samples. After model updating, the local clients do not upload raw monitoring signals. Instead, three types of diagnostic knowledge are extracted from the output layer, feature layer, and sensitivity-response layer, as shown in Figure 2.
First, output-discriminative knowledge is used to describe the soft decision boundaries of the model among different fault classes. The output distribution is softened using the temperature factor T , which is defined as
q k , i T = softmax z k , i T
Compared with hard labels, q k , i T preserves the similarity information between different fault classes and provides finer-grained discriminative constraints for the subsequent student model. Second, class-prototype relation knowledge is used to characterize the structural relationships among different fault classes in the feature space. Let h k , i = ϕ k ( x k , i ; θ k ) denote the deep feature extracted by the local model. The local class prototype of the c -th fault class is then defined as
π k , c = 1 n k , c i : y k , i = c h k , i h k , i 2
The class-relation matrix is constructed based on the class prototypes as follows:
R k p ( c , c ) = π k , c π k , c π k , c 2 π k , c 2
This matrix reflects the relative distances and similarity relationships among different fault classes, preventing the student model from learning only sample-level outputs while ignoring the underlying fault-class structure during the slimming process. Finally, input-sensitive relation knowledge is introduced to describe the model response to weak fault features and boundary samples. For the c -th fault class, its sensitivity prototype is defined as
s k , c = 1 n k , c i : y k , i = c h k , i Z k , i ( c ) h k , i Z k , i ( c ) 2 ,
The input-sensitive relation matrix is further constructed as
R k S ( c , c ) = s k , c s k , c s k , c 2 s k , c 2
Each component in the proposed pipeline is designed for a specific limitation in rare-fault-preserving federated slimming. Output knowledge preserves soft decision boundaries and global classification responses. Class-prototype relations preserve the structural distribution among fault classes, which is important for distinguishing rare faults from adjacent majority faults. Input-sensitive relations describe the response of the model to weak fault features and boundary samples, which helps retain rare-fault-sensitive channels. Rare-fault-aware weighting is used at the server to prevent reliable minority-fault knowledge from being suppressed by large-sample clients. Gated slimming further removes low-contribution channels while preserving relation-constrained diagnostic knowledge. Therefore, these components are complementary rather than simply stacked modules.

3.3. Rare-Fault-Aware Federated Relation Knowledge Fusion and Teacher Model Optimization

The knowledge uploaded by local clients may have different levels of reliability. Clients with large sample sizes may contribute substantial redundant knowledge and low-quality clients may produce low-confidence knowledge, whereas clients containing rare faults, despite having fewer samples, may carry critical class-boundary information. Therefore, the federated center constructs class-level knowledge weights according to sample scarcity, output confidence, and intra-class dispersion, as shown in Figure 3.
For the c -th fault class in the k -th client, its knowledge reliability is defined as
ρ k , c = 1 1 n k , c log C i : y k , i = c H q k , i T
where H ( ) denotes the information entropy. A larger ρ k , c indicates a more stable output distribution for the corresponding class. The intra-class dispersion is further defined as
d k , c = 1 n k , c i : y k , i = c h k , i h k , i 2 π k , c 2 2
Based on this, the class-level federated knowledge weight is constructed as
α k , c = exp ( β 1 r k , c + β 2 ρ k , c β 3 d k , c ) j K c exp ( β 1 r j , c + β 2 ρ j , c β 3 d j , c ) ,     r k , c = 1 log ( e + n k , c )
where K c denotes the set of clients containing knowledge of the c -th fault class; r k , c represents the class scarcity degree; and β 1 , β 2 , and β 3 control the effects of scarcity, reliability, and dispersion, respectively. The coefficients β r , β ρ , and β d control the effects of class scarcity, output reliability, and intra-class dispersion, respectively. In the validation stage, β r and β ρ were selected from 0.5 1.0 1.5 and β d was selected from 0.25 0.5 1.0 . The final setting was β r , β ρ , β d ) = ( 1.0 , 1.0 , 0.5 . This setting increases the contribution of reliable rare-fault knowledge while avoiding excessive amplification of unstable minority samples or excessive suppression of dispersed rare-fault features.
Based on α k , c , the federated center fuses the class prototypes and relation knowledge as follows:
π ¯ c = k K c α k , c π k , c R ¯ p ( c , c ) = k K c , c α ¯ k , c , c R k p ( c , c ) , R ¯ s ( c , c ) = k K c , c α ¯ k , c , c R k s ( c , c )
where K c , c denotes the set of clients that contain relation knowledge between class c and class c , and α k , c , c is obtained by normalizing α k , c and α k , c . The federated center then optimizes the global teacher model using the fused knowledge, with the objective function defined as
L G = L 0 c e + λ o T 2 KL ( q ¯ T q G T ) + λ p R G p R ¯ p F 2 + λ s R G s R ¯ s F 2 θ G t + 1 = θ G t η G θ G L G
where L 0 c e denotes the supervised loss computed on the public anchor set or a small calibration set at the federated center. If labeled anchor data are unavailable, this term can be removed, and the teacher model can be updated only through distillation and relation constraints. q ¯ T represents the weighted fusion result of output-discriminative knowledge from multiple clients. R G p and R G s denote the class-prototype relations and input-sensitive relations obtained by the teacher model on the anchor samples, respectively. This process enables the global teacher model not only to inherit the classification capability of local clients, but also to preserve the fault-class structure and the sensitivity responses to weak fault features.

3.4. Redundancy-Gated Dynamic Slimming of the Student Model

The global teacher model integrates diagnostic knowledge from multiple clients, but it may also contain redundant knowledge. Redundant knowledge mainly refers to majority-class-biased responses, repetitive feature representations from similar clients, and low-contribution channels that have weak effects on rare-fault discrimination. If such information is directly transferred to the student model, it may increase model complexity and weaken rare-fault boundaries. Therefore, this study introduces learnable gates to suppress low-contribution channels, while relation constraints are used to retain channels associated with output discrimination, class-prototype structure, and input-sensitive rare-fault responses, as shown in Figure 4.
Let h S , l denote the intermediate feature of the l -th layer in the student model. A learnable gating vector m l is introduced to control the retention degree of channels or neurons in this layer:
m l = σ ( a l ) ,     h ˜ S , l = m l h S , l
where a l denotes the gating parameter, σ ( ) is the sigmoid function, and represents element-wise multiplication. The training objective of the student model consists of output distillation, class-relation preservation, sensitivity relation preservation, and gate sparsity regularization. A smaller gate value indicates that the corresponding channel contributes less to the relation-preserving objective and is more likely to carry redundant or weakly task-related information.
L S = L S c e + μ o T 2 KL ( q G T q S T ) + μ p R G p R S p F 2 + μ s R G s R S s F 2 + μ g l m l 1 + μ b l m l ( 1 m l ) 1
where the first four terms enable the student model to inherit the output-discriminative capability, class structure relations, and input-sensitive responses of the teacher model. The term l m l 1 is used to compress redundant channels, while l m l ( 1 m l ) 1 encourages the gating values to converge toward either 0 or 1, thereby avoiding ambiguous structure selection during training. For the student objective in Equation (14), the output distillation weight is used as the reference term and is set to μ o = 1.0 . The prototype relation and sensitivity relation weights are selected from 0.25 0.5 1.0 , and both are set to μ p = μ s = 0.5 . This moderate setting preserves fault-class structures and weak-fault responses without over-constraining the student model. The sparsity and binary regularization weights are set to μ g = 10 4 and μ b = 10 3 , respectively, to encourage compact and clear channel selection without causing excessive pruning or composite imbalance conditions.
After training, the retained structure is determined according to the mean gating value:
M S = { j m l , j ξ ,   j M S }
where ξ is the structure-retention threshold, M s denotes the retained structural set of the student model after gate-based dynamic slimming. To prevent excessive compression from degrading rare-fault recognition performance, a performance-preservation criterion is introduced:
Acc ( F S ) Acc ( F G ) δ a ,   Rec r a r e ( F S ) Rec r a r e ( F G ) δ r
where F s represents the final slimmed student model constructed according to M s , R e c r a r e ( ) denotes the recall of rare-fault classes and δ a and δ r are the allowable degradation ranges of the overall accuracy and rare-fault recall, respectively. It should be noted that this criterion is used only during the offline slimming and model selection stage. In this stage, a small labeled calibration set, historical fault records, or laboratory-collected rare-fault samples can be used to prevent excessive compression from damaging rare-fault recognition. During online deployment, the slimmed model performs inference directly and does not require rare-fault labels.

3.5. Algorithm Implementation

The overall training and slimming procedure are summarized in Algorithm 1.
Algorithm 1. Relation knowledge-guided federated dynamic slimming
Input: Local datasets D k , calibration set D a , global teacher model F G , student model F S , maximum communication rounds R .
Output: Slimmed student model F S .
Initialize the global teacher model F G , local client models F k , student model F S , and gate parameters.
  For each communication round r = 1,2 , , R :
    The server broadcasts the current global teacher model F G to all clients.
    For each client k :
      Update the local model F k on D k using the class-balanced loss.
      Extract output knowledge Q k , class-prototype relation R k p , and input-sensitive relation R k s .
      Calculate the class sample number n k , c , output reliability ρ k , c , and intra-class dispersion d k , c .
      Upload the knowledge descriptor
                     Z k = Q k , R k p , R k s , n k , c , ρ k , c , d k , c
      to the server.
    End for.
    The server calculates the rare-fault-aware fusion weight α k , c .
    Fuse the multi-client output knowledge, class-prototype relations, and input-sensitive relations.
    Update the global teacher model F G on the calibration set D a .
    Stop teacher training if the stopping criterion is satisfied.
  End for.
Train the gated student model F S under the guidance of F G .
Update the student model parameters and gate parameters by back-propagation.
Calculate the mean gate value of each channel.
Retain the channels whose mean gate values are not smaller than the retention threshold.
Construct the slimmed student model F S .
If F S satisfies the accuracy and rare-fault recall preservation criterion, output F S .
Otherwise, relax the retention threshold and fine-tune the student model.
In Algorithm 1, the calibration set D a is only used for server-side teacher optimization and is not included in local client training or final testing.

4. Experimental Results and Analysis

The effectiveness of the proposed method is evaluated on two public datasets. The CWRU bearing fault dataset is used to assess class absence, low-quality small-sample conditions, quality–scale imbalance, and sample–scale imbalance under single-modal vibration signals. The HUST motor multi-modal motor fault dataset contains both vibration and acoustic signals and is used to evaluate multi-modal fragmentation, cross-condition generalization, and modality missing at the deployment stage. These two datasets are complementary in terms of signal modality, fault pattern, and experimental setting.

4.1. Experimental Setup and Comparison Methods

The CWRU dataset is provided by the Case Western Reserve University Bearing Data Center [33], and its experimental platform is shown in Figure 5. In this study, the data collected under a 1 HP load, a rotational speed of 1797 r/min, and a sampling frequency of 48 kHz are selected to construct the diagnosis task. Signals of each class are segmented into samples using a fixed-length window and then normalized by zero-mean standardization. To simulate multi-client federated diagnosis, the dataset is divided among three clients, and three scenarios are designed, namely, composite imbalance, quality–scale imbalance, and sample–scale imbalance, and the experimental setup is shown in Table 1.
The HUST motor dataset is a public multi-modal motor fault dataset, and its experimental platform is shown in Figure 6 [34]. The platform was built based on the Spectra Quest Mechanical Fault Simulator, and the monitored object is a motor system under different health conditions. The dataset contains six operating states, namely, healthy condition, bearing fault, rotor bow, broken rotor bar, rotor misalignment, and voltage unbalance. The operating frequencies are 5, 10, 20, and 30 Hz, and the sampling frequency is 25.6 kHz. Each file contains 163,840 data points. In this study, the dataset is used to construct three experimental scenarios: modality-fragmented rare-fault diagnosis, cross-condition generalization, and modality missing at the deployment stage, and the experimental setup is shown in Table 2.
The details of the network structure and parameter settings under different datasets during the experiment are shown in Table 3.
The CWRU experiments are designed to highlight single-modal class imbalance and the influence of model compression. Therefore, in addition to general federated baselines, quantization, pruning, and knowledge distillation methods related to model compression and communication efficiency are introduced. The HUST motor experiments focus on multi-modal and cross-condition heterogeneous scenarios. Accordingly, FedBN, FedDF, and FedSlim are further included on the basis of general federated baselines, since these methods are able to address distribution shift, server-side ensemble distillation, and model-structure differences, as shown in Table 4.
To ensure fairness, all compared methods used the same preprocessing procedure, input length, training/testing split, and 1D-CNN backbone whenever applicable. Compression-based methods were compared under comparable parameter budgets. Hyperparameters were selected only on the validation set, with the same search budget used for all methods. Each experiment was repeated five times with different random seeds and regenerated client partitions. Statistical significance between the proposed method and the strongest baseline was evaluated using a paired t-test, with p < 0.05 considered significant.
The evaluation metrics include average accuracy, Macro-F1, rare-class recall, the number of parameters, FLOPs, inference time, and GPU memory usage. In the CWRU dataset, OR14 is defined as the primary rare-fault class, while in the HUST motor dataset, the broken rotor bar fault, BRB, is defined as the primary rare-fault class. Macro-F1 is used to prevent the performance of minority classes from being masked by majority classes, and rare-class recall is used to directly evaluate the core objective of the proposed method.

4.2. Results Under the CWRU Composite Imbalance Scenario and Rare-Fault Recognition Analysis

The composite imbalance scenario is the most challenging setting in the CWRU experiments. Since OR14 is provided only by Client 1, which contains a limited number of samples and is contaminated by noise, conventional federated aggregation tends to regard its information as weak local knowledge or low-confidence knowledge, causing it to be overwhelmed by the information from the majority of clients. Table 5 and Figure 7 present the quantitative results under this scenario.
As shown in Table 5, conventional single-client models and standard compression methods exhibit poor performance on Client 1, indicating that a small sample size and low signal-to-noise ratio weaken the feature learning capability of local models. FedAvg improves the average accuracy to 64.0%, but its OR14 recall remains only 34.0%, suggesting that parameter averaging is easily dominated by clients with larger sample sizes and more complete class distributions. Fed-Prox alleviates client drift through a proximal constraint and increases the average accuracy to 68.8%; however, its optimization objective does not explicitly emphasize rare-class preservation. Fed-Proto mitigates partial inter-class structural shift by using class prototypes, increasing the OR14 recall to 56.0%, but it lacks input-sensitive relations and gated redundancy suppression. Fed-KD further enhances global consistency by exploiting soft output knowledge, yet its OR14 recall remains 58.0%. In contrast, the proposed method achieves an average accuracy, Macro-F1, and OR14 recall of 84.9%, 84.0%, and 80.0%, respectively, demonstrating that multi-granularity relation knowledge and rare-fault-aware weighting can significantly improve minority-class boundary preservation.
Combining Table 5 and the confusion matrices, the differences between the methods are reflected not only in the average accuracy results but more importantly in the misclassification of the rare OR14 class. DNN, quantization, and pruning can recognize several majority fault classes, but they show severe misclassification for OR14, which is mainly confused with the adjacent outer-race faults OR07 and OR21. This indicates that single-client training and conventional compression methods struggle to preserve rare-fault boundaries under small-sample and low-SNR conditions. FedAvg strengthens the overall diagonal pattern and improves the average accuracy to 64.0%, but its OR14 recall remains only 34.0%, suggesting that conventional parameter aggregation is easily dominated by majority clients and majority classes. Fed-Prox and Fed-Proto improve the results through proximal regularization and class-prototype alignment, respectively, but evident confusion still exists between OR07, OR14, and OR21. Fed-KD further improves global consistency using soft output knowledge, yet its OR14 recall is only 58.0%, showing that output distillation alone is insufficient to preserve fine-grained boundaries between similar faults.
In contrast, the proposed method achieves an average accuracy of 84.9%, a Macro-F1 of 84.0%, and an OR14 recall of 80.0%, while substantially reducing the misclassification between OR14 and its adjacent classes OR07 and OR21. This demonstrates that class-prototype relations preserve the structural distribution of similar faults, input-sensitive relations enhance weak-response boundaries, rare-fault-aware weighting increases the contribution of reliable OR14 knowledge from the small-sample client, and the gated student model retains key diagnostic channels after compression. These results confirm that the proposed method can effectively preserve rare-fault recognition capability under composite imbalance conditions.
To further visualize the effect of input-sensitive relation knowledge, feature-response heatmaps were generated for rare OR14 test samples. The response intensity was calculated from the channel-wise feature activation weighted by the sensitivity of the rare-fault output to the corresponding feature channel and then normalized to 0 1 . Fed-KD, the proposed method without input-sensitive relation, and the complete proposed method were compared, as shown in Figure 8.
In Figure 8, Fed-KD produces scattered feature responses, indicating that output-level distillation alone cannot clearly focus on weak rare-fault-related channels. After removing input-sensitive relation knowledge, the response region becomes clearer than Fed-KD, but the activation is still not sufficiently concentrated. In contrast, the complete proposed method produces stronger and more stable responses on a group of rare-fault-sensitive channels. This indicates that input-sensitive relation knowledge helps the student model retain weak-response patterns associated with OR14 and reduces the confusion between OR14 and adjacent outer-race faults.

4.3. Robustness and Deployment Efficiency Analysis Under CWRU Scenarios

To further verify the stability of the proposed method under different imbalance intensities, Figure 9 presents radar chart comparisons under three scenarios: composite imbalance, quality–scale imbalance, and sample–scale imbalance. Each subplot includes four metrics: Client 1 accuracy, average accuracy, Macro-F1, and OR14 recall. To ensure figure readability, only six representative methods are shown, namely, DNN, FedAvg, Fed-Prox, Fed-Proto, Fed-KD, and the proposed method.
As shown in Figure 8, the overall performance of all methods improves as the degree of imbalance decreases, while the proposed method maintains the largest radar coverage area across all three scenarios. In the compound imbalance scenario, the advantage is most evident in terms of OR14 recall, indicating that the proposed method can effectively address the rare-fault suppression problem caused by the coexistence of missing fault categories and low-quality few-shot samples. In the quality–scale imbalance scenario, the proposed method still achieves superior performance in Client 1 accuracy and Macro-F1, demonstrating that the knowledge reliability evaluation can select effective knowledge from noisy few-shot clients. In the scale imbalance scenario, the proposed method continues to outperform Fed-Proto and Fed-KD, suggesting that the gated student model is not only used for parameter compression but also capable of suppressing the propagation of repetitive knowledge from large-sample clients.
To make the deployment efficiency comparison reproducible, all models used the same input length, preprocessing procedure, and batch size. The inference latency was measured with a batch size of 1 to simulate online diagnosis. Each model was first executed for 100 runs and then evaluated over 1000 repeated inference runs. The reported latency is the average single-sample inference time. FLOPs and parameter numbers were calculated using the same profiling tool; the specific settings are shown in Table 6.
Under the above deployment setup, Figure 10 shows that FedAvg and Fed-Prox require a higher computational cost and GPU memory because they retain the complete global model structure.
Fed-Proto and Fed-KD outperform FedAvg in knowledge transfer, but their compression capability remains limited. In contrast, the proposed method selectively preserves key channels and parameters through the gated student network, thereby reducing redundant computation while retaining relation knowledge. Consequently, it achieves the highest overall deployment efficiency. The CWRU results demonstrate that the proposed method can simultaneously improve rare-fault recall and deployment-oriented efficiency under the tested hardware and measurement protocol.

4.4. Multi-Modal Federated Diagnosis Results on HUST Motor

To verify the applicability of the proposed method under multi-modal and cross-condition settings, further experiments are conducted on the HUST motor dataset. The main challenge of this dataset is not simple sample–scale imbalance but modality fragmentation, operating-condition variation, and modality missing at the deployment stage. Therefore, FedBN and FedDF are additionally included as baseline methods in this section, and BRB is defined as the primary rare-fault class. Table 7 presents the quantitative results under the modality-fragmented rare-fault scenario.
In Table 7, Local-DNN achieves an average accuracy of only 62.8% and a BRB recall of 35.0%, indicating that a single-client model struggles to learn multi-modal information and rare-fault features simultaneously. FedAvg improves the overall performance, but its BRB recall remains limited, suggesting that simple parameter aggregation is easily dominated by majority modalities and majority classes. FedBN alleviates cross-condition and cross-modal feature shifts by retaining local normalization statistics, while FedProto improves structural consistency through class prototypes; both methods outperform FedAvg. FedDF and Fed-KD further enhance global consistency using distillation knowledge, but they mainly rely on output responses or ensemble outputs, making it difficult to fully characterize inter-modal class structures and input-sensitive responses. The proposed method achieves 88.4% average accuracy, 87.8% Macro-F1, and 84.0% BRB recall, outperforming Fed-KD by 7.2, 7.8, and 18.0 percentage points, respectively. This indicates that the proposed method can preserve rare-fault knowledge under modality-fragmented and client-heterogeneous conditions.
Figure 11 shows that Local-DNN and FedAvg can identify majority classes such as H and BF to some extent, but they suffer from severe misclassification for the BRB class, which is mainly confused with BF and UNBAL. This phenomenon is consistent with the mechanism of broken rotor bar faults: a broken rotor bar induces electromagnetic torque fluctuations, whose responses are similar to those caused by voltage unbalance, and it may also trigger mechanical vibration variations. FedBN and FedProto reduce part of the cross-modal confusion, but evident overlap between BRB and UNBAL remains. Fed-KD improves the overall diagonal structure, yet the rare-class boundary is still not sufficiently clear. In contrast, the proposed method presents the clearest diagonal structure, with a substantially increased number of correctly identified BRB samples and significantly reduced misclassification among adjacent classes. This indicates that relation knowledge fusion improves boundary separability among similar fault categories.

4.5. Cross-Condition Generalization Results on the HUST Motor Dataset

The 5, 10, and 20 Hz operating conditions are used as local training conditions, while the 30 Hz condition is treated as an unseen testing condition. This setting is designed to examine whether federated knowledge fusion can learn fault-discriminative relations that remain stable across different operating frequencies. Table 8 presents the cross-condition generalization results.
Cross-condition testing significantly degrades the performance of all methods, indicating that operating-frequency variation leads to feature distribution shifts. FedBN outperforms FedProx in this scenario, suggesting that retaining local normalization statistics helps alleviate feature shifts across different operating conditions. FedDF and Fed-KD achieve average accuracies of 75.6% and 76.8%, respectively, showing that distillation mechanisms can improve global consistency under unseen conditions. The proposed method achieves 84.3% average accuracy, 83.5% Macro-F1, and 78.0% BRB recall, while Fed-KD achieves 76.8% average accuracy, 75.1% Macro-F1, and 61.0% BRB recall. These results demonstrate that the proposed method remains effective under cross-condition and cross-device-like federated heterogeneity.
Figure 12 further illustrates the feature distributions on the unseen-condition test set. FedAvg shows evident overlap among different fault classes, especially with blurred boundaries among BF, BRB, and UNBAL. FedProto improves the structure of class centers, but the intra-class dispersion remains relatively large. Fed-KD enhances class compactness through output knowledge distillation, yet overlap between BRB and UNBAL still exists. In contrast, the proposed method forms more compact intra-class distributions and clearer inter-class separations, indicating that multi-granularity relation knowledge improves the structural consistency of the feature space and enables the model to maintain strong fault discriminability under unseen operating frequencies.
In practical deployment, the edge side may only have access to a single-modal signal due to sensor failure, communication constraints, or installation limitations. Therefore, the diagnostic capability of the model is further evaluated under vibration-only, acoustic-only, and random modality-missing conditions. This scenario is designed to verify whether the gated dynamic slimming mechanism of the student model can preserve effective diagnostic knowledge during lightweight deployment, as shown in Table 9.
Figure 13 show that acoustic single-modality diagnosis generally performs worse than vibration single-modality diagnosis, indicating that vibration signals contain more direct discriminative information for most mechanical faults, whereas acoustic signals are more susceptible to propagation paths and environmental noise.
After model size reduction, FedSlim achieves a slightly lower accuracy than Fed-KD, suggesting that conventional model slimming may lead to the loss of cross-modal knowledge. The proposed method achieves the best results under all three input conditions, with an accuracy of 89.2% for vibration-only input, 84.6% for acoustic-only input, and 87.4% under random modality-missing conditions. These results indicate that input-sensitive relations help the student model learn the different contributions of each modality to fault discrimination, while the gating mechanism preserves critical channels and suppresses redundant ones, thereby improving robustness at the deployment end. This setting also provides a cross-device-like validation because different operating frequencies are assigned to different clients and the 30 Hz condition is completely unseen during training.
To further clarify the rare-fault recognition capability of the proposed method, the rare-fault results under different challenging scenarios are summarized in Table 10. These scenarios include composite imbalance in the CWRU dataset, modality-fragmented rare-fault diagnosis in the HUST motor dataset, and unseen operating-condition testing on the HUST motor dataset. Fed-KD is selected as the main reference method because it is the strongest distillation-based baseline in most rare-fault settings.
As shown in Table 10, the proposed method consistently outperforms Fed-KD in rare-fault recall under different challenging settings. In the CWRU composite imbalance scenario, the OR14 recall is improved from 58.0% to 80.0%. In the HUST modality-fragmented rare-fault scenario, the BRB recall is improved from 66.0% to 84.0%. Under the unseen 30 Hz operating condition, the BRB recall is improved from 61.0% to 78.0%. These results indicate that the proposed method improves not only average accuracy, but also minority-fault recognition under sample imbalance, modality fragmentation, and unseen-condition generalization.
To verify that the reported improvements are not caused by a specific random initialization or client partition, the proposed method and the strongest baseline were compared over five repeated runs. The results are summarized in Table 11.
In Table 11, the proposed method consistently outperforms Fed-KD over repeated runs. The improvements in rare-fault recall and Macro-F1 are statistically significant under the main challenging scenarios, indicating that the gains are not caused by random initialization or a single client partition.

4.6. Lightweight and Deployment Performance Analysis

In addition to diagnostic performance, the model complexity and deployment cost of the main federated methods are further compared. Since the HUST motor dataset contains dual-modal inputs, its deployment complexity is higher than that of the single-modal CWRU experiment. Therefore, this experiment better reflects the practical significance of the dynamic slimming mechanism. The experimental results are shown in Table 12.
Table 12 further shows that FedDF has the largest number of parameters and the highest GPU memory consumption because server-side ensemble distillation requires maintaining relatively complex models. Fed-KD reduces model complexity to some extent, but its student model still needs to preserve relatively complete feature channels to fit the teacher outputs. FedSlim achieves lower complexity; however, due to the lack of a relational knowledge preservation mechanism, its accuracy decreases under modality-missing conditions. The proposed method outperforms Fed-KD in terms of parameter size, FLOPs, inference time, and GPU memory consumption, and it is slightly better than FedSlim, while maintaining the highest diagnostic performance. These results indicate that the gated student model does not simply remove parameters but selectively preserves critical diagnostic knowledge under the constraint of relational distillation, thereby achieving a balance between performance and efficiency.

4.7. Ablation and Sensitivity Analysis

To isolate the contribution of each module, ablation studies were conducted by removing one component from the complete model at a time. The evaluated components included output-discriminative knowledge, class-prototype relations, input-sensitive relations, rare-fault-aware weighting, and gated slimming. The CWRU composite imbalance scenario was used as the main ablation setting because it contains class absence, low-quality rare samples, and majority-class dominance simultaneously. The results are shown in Table 13.
As shown in Table 13, removing any component leads to a decrease in diagnostic performance or deployment efficiency. Removing output knowledge reduces the overall accuracy and Macro-F1, indicating that soft decision responses are important for federated knowledge transfer. Removing prototype relations decreases OR14 recall from 80.0% to 72.0%, showing that class structure preservation is necessary for distinguishing adjacent fault classes. Removing input-sensitive relations also reduces OR14 recall, indicating that sensitivity responses help preserve weak rare-fault features. The largest drop in rare-fault recall is observed when rare-fault-aware weighting is removed, confirming that minority-fault knowledge can be suppressed during conventional federated fusion. When gated slimming is removed, the model achieves slightly higher accuracy but requires a full parameter structure. Therefore, the gated slimming module improves deployment efficiency while maintaining rare-fault recognition performance.
To further verify the weighting design in Equation (10), a compact sensitivity analysis was conducted on the CWRU composite imbalance scenario, as shown in Table 14.
As shown in Table 14, removing the scarcity or reliability term clearly reduces OR14 recall, indicating that both minority-class enhancement and confidence-based reliability are important for rare-fault preservation. A weak dispersion penalty may allow unstable local knowledge to enter the global model, while a strong dispersion penalty may suppress useful rare-fault knowledge from small-sample clients. The selected setting achieves the best balance among average accuracy, Macro-F1, and rare-fault recall.

5. Conclusions and Future Works

This paper proposes a rare-fault-preserving relation knowledge-based federated dynamic slimming method to address data heterogeneity, weakened minority-class knowledge, model redundancy, and high edge-deployment costs in multi-cliental motor fault diagnosis. The method constructs multi-granularity diagnostic knowledge using output-discriminative knowledge, class-prototype relations, and input-sensitive relations and introduces rare-fault-aware weighting to enhance the contribution of reliable minority-class knowledge during federated fusion. For model lightweighting, a redundancy-gated student model slimming mechanism is designed to retain key diagnostic channels under relation distillation constraints, while a rare-fault recall preservation criterion prevents performance degradation caused by excessive compression. Experiments on the CWRU and HUST motor datasets show that the proposed method outperforms compared methods under composite imbalance, cross-condition generalization, and modality-missing deployment scenarios. Confusion matrices and t-SNE results further verify its effectiveness in reducing rare-fault misclassification and improving feature separability, while complexity analysis demonstrates reduced parameter count, inference time, and GPU memory usage, indicating good potential for edge deployment.
The current validation is limited to a small number of clients and controlled non-IID settings. In ultra-large-scale or extreme non-IID scenarios, relation knowledge fusion may face higher communication costs and reduced reliability due to incomplete fault categories and biased operating conditions. In online federated learning, new faults and data drift may further affect the stability of learned relations. Future work will focus on scalable aggregation, uncertainty-aware weighting, drift-aware updating, and validation on in-house or industrial multi-client motor datasets.

Author Contributions

Methodology, G.Z. and J.Z.; writing—original draft, G.Z.; writing— review and editing, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data used in this article have been presented in the article.

Acknowledgments

It should be noted that Figure 1, Figure 2, Figure 3 and Figure 4 in the manuscript were drawn with the help of the generative artificial intelligence tool ChatGPT 5.5 to increase the readability and clarity of the algorithm implementation process.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yousuf, M.; Alsuwian, T.; Amin, A.A.; Fareed, S.; Hamza, M. IoT-based health monitoring and fault detection of industrial AC induction motor for efficient predictive maintenance. Meas. Control 2024, 57, 1146–1160. [Google Scholar]
  2. Evangeline, S.I.; Darwin, S.; Raj, E.F.I. A deep residual neural network model for synchronous motor fault diagnostics. Appl. Soft Comput. 2024, 160, 111683. [Google Scholar] [CrossRef]
  3. Kim, M.C.; Lee, J.H.; Wang, D.H.; Lee, I.S. Induction motor fault diagnosis using support vector machine, neural networks, and boosting methods. Sensors 2023, 23, 2585. [Google Scholar] [CrossRef] [PubMed]
  4. Deng, J.; Cheng, Z.; Gu, A.; Zhang, S. Research on equipment fault diagnosis model based on gan and inverse PINN: Solutions for data imbalance and rare faults. PLoS ONE 2025, 20, e0324180. [Google Scholar]
  5. Chen, H.; Liu, R.; Xie, Z.; Hu, Q.; Dai, J.; Zhai, J. Majorities help minorities: Hierarchical structure guided transfer learning for few-shot fault recognition. Pattern Recognit. 2022, 123, 108383. [Google Scholar] [CrossRef]
  6. Qiu, S.; Cui, X.; Ping, Z.; Shan, N.; Li, Z.; Bao, X.; Xu, X. Deep learning techniques in intelligent fault diagnosis and prognosis for industrial systems: A review. Sensors 2023, 23, 1305. [Google Scholar] [CrossRef]
  7. Zhang, W.; Li, X.; Ma, H.; Luo, Z.; Li, X. Federated learning for machinery fault diagnosis with dynamic validation and self-supervision. Knowl.-Based Syst. 2021, 213, 106679. [Google Scholar] [CrossRef]
  8. Han, J.; Zhang, X.; Xie, Z.; Zhou, W.; Tan, Z. Federated learning-based equipment fault-detection algorithm. Electronics 2024, 14, 92. [Google Scholar]
  9. Yao, D.; Liu, H.; Yang, J.; Li, X. A lightweight neural network with strong robustness for bearing fault diagnosis. Measurement 2020, 159, 107756. [Google Scholar] [CrossRef]
  10. Zhang, J.; Zhao, Z.; Jiao, Y.; Jiao, Y.; Zhao, R.; Xu, X.; Che, R. DPCCNN: A new lightweight fault diagnosis model for small samples and high noise problem. Neurocomputing 2025, 626, 129526. [Google Scholar] [CrossRef]
  11. Bai, R.; Li, Y.; Qiao, B.; Wang, X.; Wang, T.; Noman, K. FedDwa: A lightweight federated learning with dynamic weighted average aggregation method for machines RUL prediction. Adv. Eng. Inform. 2026, 69, 104075. [Google Scholar] [CrossRef]
  12. Zhao, C.; Shen, W. A federated distillation domain generalization framework for machinery fault diagnosis with data privacy. Eng. Appl. Artif. Intell. 2024, 130, 107765. [Google Scholar]
  13. Sun, W.; Yan, R.; Jin, R.; Zhao, R.; Chen, Z. FedAlign: Federated model alignment via data-free knowledge distillation for machine fault diagnosis. IEEE Trans. Instrum. Meas. 2023, 73, 3506112. [Google Scholar]
  14. Zhou, Y.; Wang, J.; Wang, Z. Bearing faulty prediction method based on federated transfer learning and knowledge distillation. Machines 2022, 10, 376. [Google Scholar] [CrossRef]
  15. Zhang, T.; Chen, J.; Li, F.; Zhang, K.; Lv, H.; He, S.; Xu, E. Intelligent fault diagnosis of machines with small & imbalanced data: A state-of-the-art review and possible extensions. ISA Trans. 2022, 119, 152–171. [Google Scholar] [PubMed]
  16. Dantas, P.V.; Sabino da Silva, W., Jr.; Cordeiro, L.C.; Carvalho, C. A comprehensive review of model compression techniques in machine learning: PV Dantas et al. Appl. Intell. 2024, 54, 11804–11844. [Google Scholar]
  17. Gong, R.; Wang, C.; Li, J.; Xu, Y. Lightweight fault diagnosis method in embedded system based on knowledge distillation. J. Mech. Sci. Technol. 2023, 37, 5649–5660. [Google Scholar] [CrossRef]
  18. Sun, J.; Liu, Z.; Wen, J.; Fu, R. Multiple hierarchical compression for deep neural network toward intelligent bearing fault diagnosis. Eng. Appl. Artif. Intell. 2022, 116, 105498. [Google Scholar] [CrossRef]
  19. Zhang, W.; Biswas, G.; Zhao, Q.; Zhao, H.; Feng, W. Knowledge distilling based model compression and feature learning in fault diagnosis. Appl. Soft Comput. 2020, 88, 105958. [Google Scholar] [CrossRef]
  20. Ji, M.; Peng, G.; Li, S.; Cheng, F.; Chen, Z.; Li, Z. A neural network compression method based on knowledge-distillation and parameter quantization for the bearing fault diagnosis. Appl. Soft Comput. 2022, 127, 109331. [Google Scholar] [CrossRef]
  21. Liao, J.; Wei, S.; Xie, C.; Zeng, T.; Sun, J.; Zhang, S.; Zhang, X. BearingPGA-Net: A lightweight and deployable bearing fault diagnosis network via decoupled knowledge distillation and FPGA acceleration. IEEE Trans. Instrum. Meas. 2023, 73, 3506414. [Google Scholar] [CrossRef]
  22. Hinton, G.; Vinyals, O.; Dean, J. Distilling the knowledge in a neural network. arXiv 2015, arXiv:1503.02531. [Google Scholar] [CrossRef]
  23. Gou, J.; Yu, B.; Maybank, S.J.; Tao, D. Knowledge distillation: A survey. Int. J. Comput. Vis. 2021, 129, 1789–1819. [Google Scholar] [CrossRef]
  24. Lu, R.; Liu, S.; Gong, Z.; Xu, C.; Ma, Z.; Zhong, Y.; Li, B. Lightweight knowledge distillation-based transfer learning framework for rolling bearing fault diagnosis. Sensors 2024, 24, 1758. [Google Scholar] [CrossRef] [PubMed]
  25. Neogi, D.; Das, N.; Deb, S. FitNet: A deep neural network driven architecture for real time posture rectification. In Proceedings of the 2021 International Conference on Innovation and Intelligence for Informatics, Computing, and Technologies (3ICT); NIT: The Woodlands, TX, USA, 2021; pp. 354–359. [Google Scholar]
  26. Park, W.; Kim, D.; Lu, Y.; Cho, M. Relational knowledge distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 3967–3976. [Google Scholar]
  27. Qiao, Z.; Ning, S.; Gai, Y.; Xie, C. A digital twin guided physical-virtual denoising method for early fault detection of rolling element bearings. Mech. Syst. Signal Process. 2026, 249, 114108. [Google Scholar] [CrossRef]
  28. Ning, S.; Qiao, Z.; Peng, B.; Zhu, R.; Zhang, C. A digital twin-driven cross-domain adaptation method for bearing intelligent fault diagnosis. Nondestruct. Test. Eval. 2026, 1–23. [Google Scholar] [CrossRef]
  29. Chen, J.; Li, J.; Huang, R.; Yue, K.; Chen, Z.; Li, W. Federated transfer learning for bearing fault diagnosis with discrepancy-based weighted federated averaging. IEEE Trans. Instrum. Meas. 2022, 71, 3514911. [Google Scholar] [CrossRef]
  30. Li, X.; Zhang, C.; Li, X.; Zhang, W. Federated transfer learning in fault diagnosis under data privacy with target self-adaptation. J. Manuf. Syst. 2023, 68, 523–535. [Google Scholar] [CrossRef]
  31. Zhao, K.; Hu, J.; Shao, H.; Hu, J. Federated multi-source domain adversarial adaptation framework for machinery fault diagnosis with data privacy. Reliab. Eng. Syst. Saf. 2023, 236, 109246. [Google Scholar] [CrossRef]
  32. Xue, X.; Zhao, X.; Zhang, Y.; Ma, M.; Bu, C.; Peng, P. Federated transfer learning with consensus knowledge distillation for intelligent fault diagnosis under data privacy preserving. Meas. Sci. Technol. 2024, 35, 015108. [Google Scholar] [CrossRef]
  33. Smith, W.A.; Randall, R.B. Rolling element bearing diagnostics using the Case Western Reserve University data: A benchmark study. Mech. Syst. Signal Process. 2015, 64, 100–131. [Google Scholar] [CrossRef]
  34. Zhao, C.; Shen, W.; Zio, E.; Ma, H. Multimodal unified generalization and translation network for intelligent fault diagnosis under dynamic environments. Eng. Appl. Artif. Intell. 2025, 162, 112559. [Google Scholar] [CrossRef]
  35. Das, A.; Saha, D. Fedprox-based federated transfer learning for efficient model personalization in healthcare. In Proceedings of the 2025 International Conference on Ambient Intelligence in Health Care (ICAIHC); IEEE: Piscataway, NJ, USA, 2025; pp. 1–6. [Google Scholar]
  36. Tan, Y.; Long, G.; Liu, L.; Zhou, T.; Lu, Q.; Jiang, J.; Zhang, C. Fedproto: Federated prototype learning across heterogeneous clients. Proc. AAAI Conf. Artif. Intell. 2022, 36, 8432–8440. [Google Scholar] [CrossRef]
  37. Gao, M.; Zheng, H.; Lin, J.; Feng, X.; Chen, Y. FedKD: A Fine-Grained Parameter-Efficient Federated Co-Tuning Framework With Knowledge Decoupling for Large and Small Foundation Models. IEEE Trans. Mob. Comput. 2026, 1–17. [Google Scholar] [CrossRef]
  38. Li, D.; Lin, W.; Duan, W.; Liu, B.; Chang, V. EarlyBirdFL: Leveraging Early Bird Ticket Networks for Enhanced Personalized Learning. IEEE Trans. Emerg. Top. Comput. Intell. 2024, 9, 2879–2893. [Google Scholar] [CrossRef]
  39. Li, X.; Jiang, M.; Zhang, X.; Kamp, M.; Dou, Q. Fedbn: Federated learning on non-iid features via local batch normalization. arXiv 2021, arXiv:2102.07623. [Google Scholar]
  40. Lin, T.; Kong, L.; Stich, S.; Jaggi, M. Ensemble distillation for robust model fusion in federated learning. Adv. Neural Inf. Process. Syst. 2020, 33, 2351–2363. [Google Scholar]
  41. Zhu, Z.; Hong, J.; Drew, S.; Zhou, J. Resilient and communication efficient learning for heterogeneous federated systems. Proc. Mach. Learn. Res. 2022, 162, 27504. [Google Scholar] [PubMed]
Figure 1. Overall framework of the rare-fault-preserving relation knowledge-based federated dynamic slimming method.
Figure 1. Overall framework of the rare-fault-preserving relation knowledge-based federated dynamic slimming method.
Machines 14 00689 g001
Figure 2. Local model training and multi-granularity diagnostic knowledge mining process.
Figure 2. Local model training and multi-granularity diagnostic knowledge mining process.
Machines 14 00689 g002
Figure 3. Process for federated relational knowledge fusion and teacher model optimization for rare-fault perception.
Figure 3. Process for federated relational knowledge fusion and teacher model optimization for rare-fault perception.
Machines 14 00689 g003
Figure 4. A dynamic slimming process for student models via redundant gating constraints.
Figure 4. A dynamic slimming process for student models via redundant gating constraints.
Machines 14 00689 g004
Figure 5. Experimental platform of the CWRU motor bearing fault dataset [33].
Figure 5. Experimental platform of the CWRU motor bearing fault dataset [33].
Machines 14 00689 g005
Figure 6. Experimental platform of the HUST motor multi-modal motor fault dataset [34].
Figure 6. Experimental platform of the HUST motor multi-modal motor fault dataset [34].
Machines 14 00689 g006
Figure 7. Confusion matrices of different methods under the CWRU composite imbalance scenario.
Figure 7. Confusion matrices of different methods under the CWRU composite imbalance scenario.
Machines 14 00689 g007aMachines 14 00689 g007b
Figure 8. Feature-response heatmaps of different methods for rare OR14 samples.
Figure 8. Feature-response heatmaps of different methods for rare OR14 samples.
Machines 14 00689 g008
Figure 9. Radar chart comparison of representative methods under three imbalanced scenarios on the CWRU dataset.
Figure 9. Radar chart comparison of representative methods under three imbalanced scenarios on the CWRU dataset.
Machines 14 00689 g009
Figure 10. Deployment efficiency comparison of representative methods on the CWRU dataset.
Figure 10. Deployment efficiency comparison of representative methods on the CWRU dataset.
Machines 14 00689 g010
Figure 11. Confusion matrices of all methods for multi-modal federated diagnosis on the HUST motor dataset.
Figure 11. Confusion matrices of all methods for multi-modal federated diagnosis on the HUST motor dataset.
Machines 14 00689 g011
Figure 12. t-SNE visualization of features extracted by different methods under the cross-condition generalization scenario on the HUST motor dataset.
Figure 12. t-SNE visualization of features extracted by different methods under the cross-condition generalization scenario on the HUST motor dataset.
Machines 14 00689 g012aMachines 14 00689 g012b
Figure 13. Performance comparison of representative methods under modality-missing conditions at the deployment end.
Figure 13. Performance comparison of representative methods under modality-missing conditions at the deployment end.
Machines 14 00689 g013
Table 1. Federated imbalance scenario design for the CWRU dataset.
Table 1. Federated imbalance scenario design for the CWRU dataset.
ScenarioClient 1Client 2Client 3Validation Objective
Composite imbalance20 × 10, 2 dB noise, with OR14200 × 9, without OR14200 × 9, without OR14Verify rare-fault preservation under class absence, low-quality small samples, and majority-class dominance
Quality–scale imbalance20 × 10, 2 dB noise200 × 10, no additional noise200 × 10, no additional noiseVerify reliable utilization of noisy small-sample knowledge
Sample–scale imbalance20 × 10, no additional noise40 × 10, no additional noise200 × 10, no additional noiseVerify suppression of redundant knowledge from large-sample clients
Table 2. Multi-modal federated experimental scenario design for the HUST motor dataset.
Table 2. Multi-modal federated experimental scenario design for the HUST motor dataset.
ScenarioTraining SettingTesting SettingValidation Objective
Modality-fragmented rare faultClient 1: 5/10 Hz vibration modality, all classes included but with few BRB samples; Client 2: 20 Hz acoustic modality, without BRB; Client 3: 30 Hz dual modalities, with few BRB samplesMixed-condition test setVerify rare-fault knowledge preservation under modality fragmentation
Cross-condition generalizationClients 1, 2, and 3 are trained using 5, 10, and 20 Hz data, respectively, with both modalities included30 Hz unseen-condition test setVerify the generalization ability of relation knowledge under operating-frequency variation
Modality missing at deploymentMulti-cliental dual-modal data are used during trainingVibration-only, acoustic-only, and random modality-missing testsVerify the edge-deployment robustness of the gated student model
Table 3. Main implementation settings of the proposed method.
Table 3. Main implementation settings of the proposed method.
ItemSetting
Calibration setCWRU uses 5 labeled samples per class, and HUST motor uses 10 labeled samples per class. These samples are excluded from local training and final testing.
Client updateThree clients participate in each round. Each client performs 5 local epochs before uploading knowledge descriptors.
Model architectureThe teacher uses a 1D-CNN with three Conv-BN-ReLU-Pool blocks. The student uses a narrower 1D-CNN with learnable channel gates after convolution blocks. For the HUST motor, vibration and acoustic signals are processed by two parallel branches and then fused.
OptimizationThe Adam optimizer is used. The learning rate is 1 × 10 3 for local and teacher models, 5 × 10 4 for the student model, and 1 × 10 3 for gate parameters. The batch size is 64.
Hyperparameters T = 3 ,   η = 0.5 ,   ϵ = 10 6 ,   β r = 1.0 ,   β ρ = 1.0 ,   β d = 0.5 . The weights of output, prototype, and sensitivity losses are set to 1.0, 0.5, and 0.5, respectively.
Slimming settingGate parameters are updated by back-propagation. The retention threshold is ξ = 0.5 .  If the performance criterion is not satisfied, ξ is reduced by 0.05 and the student model is fine-tuned.
Model trainingThe maximum number of communication rounds is 100. Teacher training stops if calibration Macro-F1 does not improve for 10 rounds. Student training lasts 50 epochs at most and stops early if validation loss does not improve for 10 epochs.
Table 4. Detailed description of comparison methods.
Table 4. Detailed description of comparison methods.
MethodMethod CategoryBrief DescriptionDataset Use
DNNSingle-client baselineLocal deep diagnostic model without federated collaboration.CWRU; HUST motor
PruningModel compressionRemoves low-contribution weights, channels, or neurons.CWRU
FedAvgClassical FLAggregates local model parameters at the server.CWRU; HUST motor
FedProx [35]Federated optimizationAdds a proximal term to mitigate client drift.CWRU; HUST motor
FedProto [36]Federated representationAggregates class prototypes for cross-client structure alignment.CWRU; HUST motor
Fed-KD [37]Federated distillationUses knowledge distillation for communication-efficient FL.CWRU; HUST motor
Fed-Pruning [38]Federated compressionIntroduces pruning into federated training.CWRU
FedBN [39]Cross-domain FLKeeps local BN statistics to alleviate feature shift.HUST motor
FedDF [40]Federated distillationFuses heterogeneous client models through server-side ensemble distillation.HUST motor
FedSlim [41]Federated slimmingApplies channel-level slimming or structural compression in FL.HUST motor
ProposedProposed methodRare-fault-aware weighting, relation knowledge fusion, and gated dynamic slimming.CWRU; HUST motor
Table 5. Diagnostic results for the CWRU compound imbalance scenario.
Table 5. Diagnostic results for the CWRU compound imbalance scenario.
MethodsClient 1 Acc/%Client 2 Acc/%Client 3 Acc/%Average Acc/%Macro-F1/%OR14 Recall/%
DNN49.853.455.853.050.618.0
Pruning49.053.655.052.549.720.0
FedAvg62.464.665.064.060.834.0
Fed-Prox66.869.470.268.865.246.0
Fed-Pruning68.470.070.669.766.348.0
Fed-Proto71.673.274.072.970.556.0
Fed-KD73.275.075.874.772.058.0
Proposed83.685.286.084.984.080.0
Table 6. Method hardware deployment setup.
Table 6. Method hardware deployment setup.
ItemSetting
HardwareNVIDIA RTX 3060Ti GPU and Intel i7 CPU
SoftwarePython 3.9, PyTorch 1.13, CUDA 11.7
Batch size1
Pre-training100
Repeated runs1000
Time delayAverage single-sample inference time
Memory metricPeak allocated inference memory
Table 7. Diagnostic results under the modality-fragmented rare-fault scenario on the HUST motor dataset.
Table 7. Diagnostic results under the modality-fragmented rare-fault scenario on the HUST motor dataset.
MethodsClient 1 Acc/%Client 2 Acc/%Client 3 Acc/%Average Acc/%Macro-F1/%BRB Recall/%
DNN61.263.463.862.860.535.0
FedAvg69.470.871.270.568.146.0
FedProx72.673.974.373.671.850.0
FedBN74.275.375.875.173.652.0
FedProto77.178.679.278.376.961.0
FedDF78.579.880.479.678.263.0
Fed-KD80.081.582.181.280.066.0
FedSlim79.380.981.280.578.764.0
Proposed87.288.889.288.487.884.0
Table 8. Diagnostic results under the cross-condition generalization scenario on the HUST motor dataset.
Table 8. Diagnostic results under the cross-condition generalization scenario on the HUST motor dataset.
MethodsAvg Acc/%Macro-F1/%BRB Recall/%
Local-DNN58.955.830.0
FedAvg65.763.240.0
FedProx68.266.043.0
FedBN70.468.546.0
FedProto72.871.055.0
FedDF75.673.958.0
Fed-KD76.875.161.0
FedSlim75.072.859.0
Proposed84.383.578.0
Table 9. Diagnostic results under the modality-missing deployment scenario on the HUST motor dataset.
Table 9. Diagnostic results under the modality-missing deployment scenario on the HUST motor dataset.
MethodsSingle Vibration Acc/%Acoustic Acc/%Random Modal Dropout Acc/%BRB Recall/%
Local-DNN65.161.358.831.0
FedAvg72.368.669.443.0
FedProx74.570.271.647.0
FedBN76.272.173.550.0
FedProto79.475.877.260.0
FedDF81.177.679.063.0
Fed-KD82.579.080.866.0
FedSlim81.778.279.664.0
Proposed89.284.687.483.0
Table 10. Summary of rare-fault validation under different challenging settings.
Table 10. Summary of rare-fault validation under different challenging settings.
DatasetSettingRare FaultMethodAvg Acc/%Macro-F1/%Rare-Fault Recall/%
CWRUComposite imbalanceOR14Fed-KD74.772.058.0
Proposed84.984.080.0
HUST motorModality-fragmented rare faultBRBFed-KD81.280.066.0
Proposed88.487.884.0
Unseen 30 Hz conditionFed-KD76.875.161.0
Proposed84.383.578.0
Table 11. Statistical comparison over five repeated runs.
Table 11. Statistical comparison over five repeated runs.
DatasetScenarioMetricFed-KDProposedp-Value
CWRUComposite imbalanceOR14 Recall/% 58 ± 2.6 80 ± 1.8 <0.01
Macro-F1/% 72.0 ± 1.5 84.0 ± 1.1 <0.01
HUST motorModality-fragmented rare faultBRB Recall/% 66.0 ± 2.3 84.0 ± 1.6 <0.01
HUST motorUnseen 30 Hz conditionBRB Recall/% 61.0 ± 2.8 78.0 ± 2.0 <0.01
Table 12. Model complexity and deployment overhead in the HUST motor experiment.
Table 12. Model complexity and deployment overhead in the HUST motor experiment.
MethodsParameter Count/MFLOPs/MTime of Diagnosis /msMemory Usage /MiB
FedAvg1.423.844.26965.4
FedBN1.423.844.18948.7
FedProto1.353.624.03922.5
FedDF1.584.184.611018.3
Fed-KD1.213.103.72835.6
FedSlim0.741.822.64628.2
Proposed0.681.552.31596.4
Table 13. Ablation study of the proposed method on the CWRU composite imbalance scenario.
Table 13. Ablation study of the proposed method on the CWRU composite imbalance scenario.
VariantAvg Acc/%Macro-F1/%OR14 Recall/%Parameter Ratio
Fed-KD baseline74.772.058.00.85
W/o output knowledge82.481.074.00.48
W/o prototype relation81.880.472.00.48
W/o sensitivity relation82.180.771.00.48
W/o rare-fault-aware weighting81.580.268.00.48
W/o gated slimming85.884.982.01.00
Proposed84.984.080.00.48
Table 14. Sensitivity analysis of the rare-fault-aware weighting coefficients.
Table 14. Sensitivity analysis of the rare-fault-aware weighting coefficients.
Setting( β r , β ρ , β d )Avg Acc/%Macro-F1/%OR14 Recall/%
W/o scarcity term(0, 1.0, 0.5)83.182.272.0
W/o reliability term(1.0, 0, 0.5)82.781.870.0
Weak dispersion penalty(1.0, 1.0, 0.25)84.383.478.0
Selected setting(1.0, 1.0, 0.5)84.984.080.0
Strong dispersion penalty(1.0, 1.0, 1.0)84.183.176.0
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhao, G.; Zhang, J. Relation Knowledge-Guided Federated Model Compression for Rare-Fault Preservation in Motor Fault Diagnosis. Machines 2026, 14, 689. https://doi.org/10.3390/machines14060689

AMA Style

Zhao G, Zhang J. Relation Knowledge-Guided Federated Model Compression for Rare-Fault Preservation in Motor Fault Diagnosis. Machines. 2026; 14(6):689. https://doi.org/10.3390/machines14060689

Chicago/Turabian Style

Zhao, Genbao, and Juan Zhang. 2026. "Relation Knowledge-Guided Federated Model Compression for Rare-Fault Preservation in Motor Fault Diagnosis" Machines 14, no. 6: 689. https://doi.org/10.3390/machines14060689

APA Style

Zhao, G., & Zhang, J. (2026). Relation Knowledge-Guided Federated Model Compression for Rare-Fault Preservation in Motor Fault Diagnosis. Machines, 14(6), 689. https://doi.org/10.3390/machines14060689

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop