A multi-structure-oriented circuit breaker fault diagnosis method and system
By employing a fault diagnosis method for circuit breakers with multiple structures, and utilizing feature extraction and feature alignment techniques, the problem of category confusion in fault diagnosis of circuit breakers with different structural types is solved, the diagnostic accuracy is improved, and automatic diagnosis across structures is achieved, making it suitable for practical engineering applications.
Patent Information
- Application Number
- CN202611376855.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, when performing fault diagnosis on circuit breakers of different structural types, the diagnostic model is prone to fault category confusion and misclassification, resulting in low fault diagnosis accuracy.
A fault diagnosis method for circuit breakers with multiple structures is adopted. The method acquires a training dataset and extracts features using a channel attention module, a multi-scale convolutional branch, and a temporal feature extraction branch. It then combines a domain adaptation module and a classification module to perform feature alignment and optimize the classification loss, thereby training a fault diagnosis model.
It improves the accuracy of fault diagnosis in cross-structure scenarios, reduces inter-class confusion and misclassification, realizes end-to-end automatic fault diagnosis across structures, and has good engineering applicability.
Smart Images

Figure CN123138955A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of circuit breaker fault diagnosis technology, and specifically to a fault diagnosis method and system for circuit breakers with multiple structures. Background Technology
[0002] As the core protection and controller in low-voltage power distribution systems, the reliability of universal circuit breakers directly affects the safety and stability of the power system. Depending on the installation and incoming / outgoing line methods, universal circuit breakers can be divided into two structural forms: drawer-type and fixed-type. These two structures differ significantly in the connection method of the operating mechanism, the transmission path, and the support rigidity. Even with the same type of fault, the resulting closing vibration signal exhibits distinctly different distribution characteristics in terms of amplitude, frequency components, and temporal evolution.
[0003] In related technologies, vibration signals are typically used to diagnose faults in circuit breaker operating mechanisms. However, when performing cross-structure fault diagnosis on circuit breakers of different structural types, the vibration signal data distribution of fixed structures and drawer-type structures will be significantly offset due to the essential differences in mechanical coupling methods, damping characteristics of moving parts, and installation foundation response of the operating mechanisms. This results in a low accuracy of the diagnostic model in diagnosing fault types when applied across structures. Summary of the Invention
[0004] The present invention aims to provide a fault diagnosis method and system for circuit breakers with multiple structures, in order to solve the technical problem that when the diagnostic model in the related technology performs fault diagnosis on circuit breakers with multiple structures, it is easy to have confusion and misclassification of fault categories, resulting in low fault diagnosis accuracy.
[0005] Embodiments of the present invention provide a fault diagnosis method for circuit breakers with multiple structures, the method comprising:
[0006] A training dataset is obtained, comprising source domain data and target domain data. The source domain data includes at least one type of circuit breaker with a first structural design and its closing vibration signal and fault category label under each fault category. The target domain data includes at least one type of circuit breaker with a second structural design and its closing vibration signal under each fault category. The training dataset is input into the fault diagnosis model to be trained. A channel attention module is used to filter features from the source and target domain data to obtain source and target domain features. These features are then input in parallel into a multi-scale convolution branch and a temporal feature extraction branch for feature extraction. The extracted multi-scale local features are fused with global temporal features to obtain high-dimensional features from the source and target domains. The high-dimensional features of the target domain are input into the classification module of the fault diagnosis model to obtain the source domain predicted label and the target domain pseudo label. According to the fault category, the target domain high-dimensional features with the same target domain pseudo label and the source domain high-dimensional features with the same fault category label are divided into the same subdomain. The distribution distance between the source domain high-dimensional features and the target domain high-dimensional features in the same subdomain is calculated based on the domain adaptation module, and the alignment loss is obtained with the goal of minimizing the distribution distance. The classification loss is calculated based on the deviation between the source domain predicted label and the fault category label. The parameters of each module of the fault diagnosis model are optimized based on the alignment loss and the classification loss to train the fault diagnosis model. The closing vibration signal of the circuit breaker to be diagnosed is input into the trained fault diagnosis model, and the fault category diagnosis result is output.
[0007] In one embodiment of the present invention, the training dataset is input into the fault diagnosis model to be trained, and the source domain data and target domain data are filtered by the channel attention module to obtain source domain features and target domain features. This includes: performing preliminary feature extraction on the training dataset through the residual network in the channel attention module to obtain an initial source domain feature map and an initial target domain feature map; compressing the spatial dimension of the initial source domain feature map and the initial target domain feature map by global average pooling; modeling the dependency relationship between each channel through a fully connected layer; generating the weight of each channel by an activation function; and weighting the weights with the initial source domain feature map and the initial target domain feature map channel by channel to obtain the source domain features and the target domain features.
[0008] In one embodiment of the present invention, the alignment loss is obtained with the goal of minimizing the distribution distance, specifically as follows:
[0009] ,
[0010] in, The square of the distribution distance; For source domain data; is the target domain data; C is the total number of fault categories; c is the current fault category number; i and j are the sample numbers of the high-dimensional features of the source domain and the target domain, respectively; For the i-th source domain high-dimensional feature sample; The sample represents the high-dimensional feature of the j-th target domain; The normalized weights for the fault category number c of the sample with the i-th high-dimensional feature of the source domain; The normalized weights for the samples of the high-dimensional features of the j-th target domain to belong to the fault category number c; , Let H be the feature mappings of the sample of the i-th source domain high-dimensional feature and the sample of the j-th target domain high-dimensional feature to the reproducing kernel Hilbert space, respectively; H is the reproducing kernel Hilbert space.
[0011] In one embodiment of the present invention, the multi-scale convolution branch includes at least three parallel one-dimensional convolutions: a large-scale convolution kernel, a medium-scale convolution kernel, and a small-scale convolution kernel; wherein, the large-scale convolution kernel is used to capture the low-frequency trend characteristics of the closing vibration, the medium-scale convolution kernel is used to capture the medium-frequency oscillation characteristics of the closing vibration, and the small-scale convolution kernel is used to capture the high-frequency impact characteristics of the closing vibration.
[0012] In one embodiment of the present invention, the input of the source domain features and the target domain features into the temporal feature extraction branch for feature extraction includes: using the source domain features and the target domain features as initial features, and using an encoder to normalize the initial features;
[0013] The normalized initial features are input into a multi-head self-attention mechanism for deactivation to obtain a first deactivated feature. The first deactivated feature is then fused with the initial features based on residual connections to obtain a first fused feature. The first fused feature is then normalized and input into a multilayer perceptron for deactivation to obtain a second deactivated feature. The first fused feature is then fused with the second deactivated feature based on residual connections to obtain the global temporal feature.
[0014] In one embodiment of the present invention, the fusion of extracted multi-scale local features and global temporal features includes: concatenating and merging the multi-scale local features output by the multi-scale convolution branch and the global temporal features output by the temporal feature extraction branch along the feature dimension to obtain source domain high-dimensional features and target domain high-dimensional features.
[0015] In one embodiment of the present invention, the parameters of each module of the fault diagnosis model are optimized based on the alignment loss and classification loss to train the fault diagnosis model, including: the classification loss is cross-entropy loss, the alignment loss and the classification loss are weighted and summed to obtain the total loss; the parameters of each module in the fault diagnosis model are iteratively updated based on the total loss until a preset number of iterations is reached to obtain a trained fault diagnosis model.
[0016] In one embodiment of the present invention, the parameters of each module in the fault diagnosis model are iteratively updated based on the total loss, including: optimizing the network parameters of the channel attention module, the multi-scale convolution branch, the temporal feature extraction branch, the domain adaptation module and the classification module through backpropagation, so that the total loss converges.
[0017] In one embodiment of the present invention, the first type of circuit breaker is a fixed circuit breaker and the second type of circuit breaker is a drawer-type circuit breaker; or, the first type of circuit breaker is a drawer-type circuit breaker and the second type of circuit breaker is a fixed circuit breaker.
[0018] An embodiment of the present invention also provides a fault diagnosis system for circuit breakers with multiple structures. The system includes: a data acquisition module for acquiring a training dataset, the training dataset comprising source domain data and target domain data, the source domain data including at least one type of circuit breaker with closing vibration signals and fault category labels under various fault categories, and the target domain data including at least one type of circuit breaker with closing vibration signals under various fault categories; and a feature extraction module for inputting the training dataset into a fault diagnosis model to be trained, performing feature filtering on the source domain data and target domain data through a channel attention module to obtain source domain features and target domain features, inputting the source domain features and target domain features in parallel into a multi-scale convolution branch and a temporal feature extraction branch for feature extraction, and fusing the extracted multi-scale local features with global temporal features to obtain high-dimensional features of the source domain and high-dimensional features of the target domain. The fault diagnosis model comprises a classification module, which inputs the source domain high-dimensional features and target domain high-dimensional features into the classification module to obtain source domain predicted labels and target domain pseudo-labels; a domain adaptation module, which classifies target domain high-dimensional features with the same target domain pseudo-labels and source domain high-dimensional features with the same fault category labels into the same subdomain according to the fault category; a domain adaptation module calculates the distribution distance between the source domain high-dimensional features and the target domain high-dimensional features in the same subdomain, and obtains the alignment loss with the goal of minimizing the distribution distance; a model training module, which calculates the classification loss based on the deviation between the source domain predicted labels and the fault category labels, and optimizes the parameters of each module of the fault diagnosis model based on the alignment loss and the classification loss to train the fault diagnosis model; and a diagnosis output module, which inputs the closing vibration signal of the circuit breaker to be diagnosed into the trained fault diagnosis model and outputs the fault category diagnosis result.
[0019] The present invention has the following beneficial effects:
[0020] 1. By using the channel attention module to filter features in the training data, irrelevant feature responses caused by different structures are suppressed. Then, by using multi-scale convolution branches and temporal feature extraction branches in parallel to extract and fuse features, the model can simultaneously capture the common and differential features of vibration signals under multiple structures. This overcomes the problem of significantly different vibration signal data distribution caused by different structures and improves the fault diagnosis accuracy in cross-structure scenarios.
[0021] 2. Based on the fault category, two domain features with the same label are divided into the same subdomain. The distribution distance between the two domain features in the same subdomain is calculated according to the domain adaptation module. The two domain features in the same subdomain are aligned with the goal of minimizing the distribution distance, which realizes fine alignment at the category level, thereby reducing inter-class confusion and misclassification in cross-structure fault diagnosis.
[0022] 3. The parameters of the fault diagnosis model are optimized by combining classification loss and alignment loss to ensure cross-domain feature alignment while pursuing classification accuracy. This guarantees the model's fault identification and data transfer capabilities, thus enabling the model to have both high recognition accuracy and versatility.
[0023] 4. From acquiring the training dataset and training the model to directly inputting the closing vibration signal of the circuit breaker to be diagnosed into the trained model and outputting the fault category diagnosis result, end-to-end automatic fault diagnosis across structures is achieved. After the model training is completed, it can be directly applied to the condition monitoring and fault identification of circuit breakers of different structural types in actual engineering, and has good engineering applicability. Attached Figure Description
[0024] Figure 1 This is a flowchart illustrating a fault diagnosis method for circuit breakers with multiple structures according to an embodiment of the present invention.
[0025] Figure 2 This is a schematic diagram of the network structure of a fault diagnosis model oriented towards multiple structures, as shown in an embodiment of the present invention.
[0026] Figure 3 A schematic diagram of the encoder structure is shown for one embodiment of the present invention;
[0027] Figures 4(a) and 4(b) are schematic diagrams of fault diagnosis results shown in an embodiment of the present invention;
[0028] Figure 5 This is a diagram illustrating the architecture of a circuit breaker fault diagnosis system for multiple structures, as shown in an embodiment of the present invention. Detailed Implementation
[0029] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described below are only for explaining the present invention and do not limit the scope of protection of the present invention.
[0030] The present invention will be further described in detail below through preferred embodiments:
[0031] Please see Figure 1 , Figure 1 This is a flowchart illustrating a fault diagnosis method for circuit breakers with multiple structures according to an embodiment of the present invention, as shown below. Figure 1 The method shown includes at least steps S1-S6.
[0032] Step S1: Obtain a training dataset. The training dataset includes source domain data and target domain data. The source domain data includes at least one type of circuit breaker with a first structural type and its closing vibration signal and fault category label under each fault category. The target domain data includes at least one type of circuit breaker with a second structural type and its closing vibration signal under each fault category.
[0033] For example, closing vibration data of the source domain and the target domain are collected respectively, and the closing vibration data of the two domains are converted into a time-frequency diagram using short-time Fourier transform (STFT), and the time-frequency diagram is input into the fault diagnosis model as the closing vibration signal.
[0034] For example, when the closing vibration signal is input into the fault diagnosis model, the hyperparameters of the fault diagnosis model (such as learning rate, batch size, maximum number of iterations, etc.) are set in a personalized manner, and the training dataset is input into the fault diagnosis model by batch loading.
[0035] For example, a fault diagnosis model to be trained can perform fault classification and diagnosis based on the input of source domain data after pre-training, obtaining the source domain predicted label corresponding to the source domain data. However, it can only obtain the target domain pseudo label based on the input of target domain data. After training with parameter optimization of each module based on classification loss and alignment loss, the fault diagnosis model can accurately classify and predict the fault category for both source domain data and target domain data, obtaining the corresponding fault category predicted label.
[0036] In one embodiment of the present invention, the first type of circuit breaker is a fixed circuit breaker and the second type of circuit breaker is a drawer-type circuit breaker; or, the first type of circuit breaker is a drawer-type circuit breaker and the second type of circuit breaker is a fixed circuit breaker.
[0037] For example, the universal circuit breaker also includes a plug-in circuit breaker, so the first structural type circuit breaker can be a fixed circuit breaker, a plug-in circuit breaker or a drawer-type circuit breaker, and the second structural type circuit breaker is a circuit breaker different from the first structural type, including but not limited to a drawer-type circuit breaker, a fixed circuit breaker or a plug-in circuit breaker.
[0038] Step S2: Input the training dataset into the fault diagnosis model to be trained, and use the channel attention module to filter the source domain data and target domain data to obtain source domain features and target domain features. Input the source domain features and target domain features into the multi-scale convolution branch and the temporal feature extraction branch in parallel for feature extraction, and fuse the extracted multi-scale local features with the global temporal features to obtain high-dimensional features of the source domain and high-dimensional features of the target domain.
[0039] In one embodiment of the present invention, the training dataset is input into the fault diagnosis model to be trained, and the source domain data and target domain data are filtered by the channel attention module to obtain source domain features and target domain features. This includes: performing preliminary feature extraction on the training dataset through the residual network in the channel attention module to obtain an initial source domain feature map and an initial target domain feature map; compressing the spatial dimension of the initial source domain feature map and the initial target domain feature map by global average pooling; modeling the dependency relationship between each channel through a fully connected layer; generating the weight of each channel by an activation function; and weighting the weights with the initial source domain feature map and the initial target domain feature map channel by channel to obtain the source domain features and the target domain features.
[0040] In one embodiment of the present invention, the multi-scale convolution branch includes at least three parallel one-dimensional convolutions: a large-scale convolution kernel, a medium-scale convolution kernel, and a small-scale convolution kernel; wherein, the large-scale convolution kernel is used to capture the low-frequency trend characteristics of the closing vibration, the medium-scale convolution kernel is used to capture the medium-frequency oscillation characteristics of the closing vibration, and the small-scale convolution kernel is used to capture the high-frequency impact characteristics of the closing vibration.
[0041] In one embodiment of the present invention, the process of inputting the source domain features and target domain features into a temporal feature extraction branch for feature extraction includes: using the source domain features and target domain features as initial features, and normalizing the initial features using an encoder; inputting the normalized initial features into a multi-head self-attention mechanism for deactivation to obtain a first deactivated feature; fusing the first deactivated feature and the initial features based on residual connections to obtain a first fused feature; normalizing the first fused feature; inputting the normalized first fused feature into a multilayer perceptron for deactivation to obtain a second deactivated feature; and fusing the first fused feature and the second deactivated feature based on residual connections to obtain the global temporal feature.
[0042] In one embodiment of the present invention, the fusion of extracted multi-scale local features and global temporal features includes: concatenating and merging the multi-scale local features output by the multi-scale convolution branch and the global temporal features output by the temporal feature extraction branch along the feature dimension to obtain source domain high-dimensional features and target domain high-dimensional features.
[0043] Step S3: Input the source domain high-dimensional features and target domain high-dimensional features into the classification module of the fault diagnosis model to obtain the source domain predicted label and the target domain pseudo label.
[0044] Step S4: Based on the fault category, target domain high-dimensional features with the same target domain pseudo-label and source domain high-dimensional features with the same fault category label are divided into the same subdomain. The distribution distance between the source domain high-dimensional features and the target domain high-dimensional features in the same subdomain is calculated based on the domain adaptation module, and the alignment loss is obtained with the goal of minimizing the distribution distance.
[0045] In one embodiment of the present invention, the alignment loss is obtained with the goal of minimizing the distribution distance, specifically as follows:
[0046] ,
[0047] in, The square of the distribution distance; For source domain data; is the target domain data; C is the total number of fault categories; c is the current fault category number; i and j are the sample numbers of the high-dimensional features of the source domain and the target domain, respectively; For the i-th source domain high-dimensional feature sample; The sample represents the high-dimensional feature of the j-th target domain; The normalized weights for the fault category number c of the sample with the i-th high-dimensional feature of the source domain; The normalized weights for the samples of the high-dimensional features of the j-th target domain to belong to the fault category number c; , Let H be the feature mappings of the sample of the i-th source domain high-dimensional feature and the sample of the j-th target domain high-dimensional feature to the reproducing kernel Hilbert space, respectively; H is the reproducing kernel Hilbert space.
[0048] Here, the square of the distribution distance is the square of the local maximum mean difference between the high-dimensional features of the source domain and the high-dimensional features of the target domain in the network layer.
[0049] in, and Samples and The normalized value belonging to class c is calculated using the following formula:
[0050] ,
[0051] in, Let be the normalized weight of the i-th sample of the high-dimensional features in the source domain for the c-th type of fault; i and j are the sample numbers of the high-dimensional features in the source and target domains, respectively; c is the fault category number. It is the label vector or class probability vector of the i-th sample in the high-dimensional features of the source domain; For vectors The c-th element represents the label value or probability that the i-th sample of the high-dimensional features of the source domain belongs to the fault category c; Σ represents the label value or probability of the j-th sample in the high-dimensional features of the target domain for the fault category c; Ds represents the source domain data; Σ represents the summation of related samples in the source domain.
[0052] For example, the deep domain adaptation method based on local maximum mean difference can reduce the overall difference between the features of the source and target domains by narrowing the gap in the marginal probability distributions of the sample features. Sub-domain adaptation can not only reduce the difference in conditional distributions between the source and target domains, but also align their marginal distributions.
[0053] Step S5: Calculate the classification loss based on the deviation between the source domain predicted label and the fault category label, and optimize the parameters of each module of the fault diagnosis model based on the alignment loss and classification loss to train the fault diagnosis model.
[0054] For example, the extracted high-dimensional features from the two domains are input into the domain adaptation module. Alignment loss (which can be local maximum mean difference loss) is used to align the distribution of features in the source and target domains, reducing the difference in feature distribution between the two domains. At the same time, classification loss (which can be cross-entropy loss) is used to perform supervised classification of the source domain samples, and pseudo-labels are generated based on the target domain samples to assist in adaptation. The alignment loss and classification loss are weighted and summed to form the total loss function. An optimizer is used to iteratively update the model parameters until the maximum number of training rounds is reached. The trained fault diagnosis model is saved, the saved fault diagnosis model is loaded, and the test set (the closing vibration signal of the target domain under fault conditions) is input into the network. The final fault category identification result is obtained through forward propagation.
[0055] In one embodiment of the present invention, the parameters of each module of the fault diagnosis model are optimized based on the alignment loss and classification loss to train the fault diagnosis model, including: the classification loss is cross-entropy loss, the alignment loss and the classification loss are weighted and summed to obtain the total loss; the parameters of each module in the fault diagnosis model are iteratively updated based on the total loss until a preset number of iterations is reached to obtain a trained fault diagnosis model.
[0056] In one embodiment of the present invention, the parameters of each module in the fault diagnosis model are iteratively updated based on the total loss, including: optimizing the network parameters of the channel attention module, the multi-scale convolution branch, the temporal feature extraction branch, the domain adaptation module and the classification module through backpropagation, so that the total loss converges.
[0057] Step S6: Input the closing vibration signal of the circuit breaker to be diagnosed into the trained fault diagnosis model and output the fault category diagnosis result.
[0058] Please seeFigure 2 , Figure 2 This is a schematic diagram of the network structure of a fault diagnosis model for multiple structures, as shown in an embodiment of the present invention. Figure 2 As shown, this network structure introduces a channel attention module (SE) to adaptively filter the input circuit breaker closing vibration signal, assigning greater weight to key fault features and providing more discriminative input for the subsequent time-series feature extraction branch (Transformer compiler) and multi-scale convolution branch (MS). Secondly, the Transformer compiler captures the long-distance dependencies of circuit breaker fault features, finely classifying different fault states and enhancing the feature differences between various fault states. Simultaneously, the multi-scale convolution branch adapts to the dynamic changes of circuit breaker fault features at different time scales, learning multi-scale fault information. The Transformer and MS modules complement each other, enabling the model to grasp the intrinsic correlation of fault features from a global perspective while also acquiring detailed information at different scales locally. This allows for a more comprehensive and accurate tracking of the evolution of circuit breaker fault states, enhancing the model's ability to adaptively extract fault features under different circuit breaker structures (such as drawer-type and fixed-type). Ultimately, this effectively improves the accuracy and robustness of cross-structure fault diagnosis for circuit breakers, achieving effective extraction and cross-structure adaptation of fault features for circuit breakers with different structures.
[0059] Figure 3 A schematic diagram of the encoder structure is shown for one embodiment of the present invention, as follows: Figure 3 The encoder shown incorporates global information through a multi-head self-attention mechanism, focusing on longer-range dependencies during feature extraction to adapt to the dynamic process of circuit breaker faults evolving from slight degradation to severe failure. This structure not only allows for more detailed classification of fault states but also effectively captures feature differences between different fault states, overcoming the problem of inconsistent intra-class data distribution for the same circuit breaker under the same fault state, while enhancing the discriminative power of features between different fault states. The Transformer encoder first normalizes the input, then randomly deactivates it after passing through the multi-head attention mechanism, and finally fuses it with the input features using residual connections. The data is normalized again before being fed into a multilayer perceptron, then randomly deactivated, and finally fused with the input data through residual connections.
[0060] The multi-head self-attention mechanism processes the following: Three different linear projections are applied to the input feature sequence X to obtain the query matrix Q, key matrix K, and value matrix V. The corresponding calculation formulas are as follows:
[0061] ,
[0062] Where Q: query matrix, representing the information to be searched at the current time position; X: input feature sequence; : Generates the query projection weight matrix for Q; the subscript q: indicates that the weight is dedicated to the query branch;
[0063] ,
[0064] Where K: key matrix, representing the information available for query matching at each time position; X: input feature sequence; : Generates the key projection weight matrix of K; subscript k: indicates that the weight is dedicated to the key branch.
[0065] ,
[0066] Where V is the value matrix, which stores the final weighted aggregation content; X is the input feature sequence. : Generates the value projection weight matrix of V; subscript v: indicates that the weight is dedicated to the value branch.
[0067] Subsequently, attention scores are calculated based on the query matrix Q and the key matrix K, and the scores are normalized using the Softmax function to generate attention weights, the calculation formula of which is as follows:
[0068] ,
[0069] Where Attention: scaled dot product attention function; Q: query matrix; K: key matrix; : The transpose of K; : Query the dot product similarity matrix with each key; V: Value matrix; : The dimension of the key vector in each attention head (configurable by model width and number of heads); : Scaling factor; softmax: A function that normalizes similarity into attention weights.
[0070] The advantage of multi-head self-attention mechanisms compared to single-head self-attention mechanisms lies in their provision of multiple distinct "representation subspaces," thereby enhancing the model's ability to capture positional information from different perspectives. The calculation formula for a single head is:
[0071] ,
[0072] in, : Represents the output of the i-th self-attention head; i: Attention head number; X: Input feature sequence shared by all attention heads; , , : The weight matrix of the i-th self-attention head; Attention: Calculation of scaled dot product attention.
[0073] After obtaining the outputs of all heads, they are concatenated along the feature dimensions, and finally, a linear transformation is applied to integrate the information to obtain the final output:
[0074] ,
[0075] Wherein, Multi-Head: Multi-head attention function; Q, K, V: Query, key, and value matrices; H1…Hn: Outputs of the 1st to nth attention heads; n: Total number of attention heads (configurable according to model width and computational cost); Concat: Concatenation along the feature dimension (can be replaced by equivalent tensor concatenation); W: Weight matrix of the multi-head self-attention mechanism.
[0076] By leveraging a multi-head attention mechanism, the encoder can focus on features from multiple representation subspaces, capturing diverse information to enhance feature robustness. Simultaneously, the model employs convolutional kernels of different scales in parallel to extract multi-scale features, fusing them with the encoder's output. This strengthens the network's adaptive extraction capability for features of different circuit breaker fault states, effectively mitigating the problem of significant data distribution differences between different devices.
[0077] Please refer to Figure 4, which is a schematic diagram of the fault diagnosis results shown in an embodiment of the present invention. As shown in Figure 4, the fault diagnosis model performs well overall, with significant advantages of fast convergence speed and stable generalization ability. In the 10th iteration, the model rapidly jumped from an initial accuracy of 25% (close to random guessing) to 95%, and in the subsequent training process up to the 60th iteration, the test accuracy remained stable at 95% without significant fluctuations or declines, indicating that the model did not overfit and the domain adaptation module effectively aligned the feature distributions of the source domain and the target domain.
[0078] Please see Figure 5 ,like Figure 5 As shown, embodiments of the present invention also provide a fault diagnosis system for circuit breakers with multiple structures. The system includes: a data acquisition module for acquiring a training dataset, wherein the training dataset includes source domain data and target domain data, wherein the source domain data includes closing vibration signals and fault category labels of circuit breakers of a first structure type under each fault category, and the target domain data includes closing vibration signals of circuit breakers of a second structure type under each fault category.
[0079] The feature extraction module is used to input the training dataset into the fault diagnosis model to be trained, and to perform feature filtering on the source domain data and target domain data through the channel attention module to obtain source domain features and target domain features. The source domain features and target domain features are then input into the multi-scale convolution branch and the temporal feature extraction branch in parallel for feature extraction. Finally, the extracted multi-scale local features and global temporal features are fused to obtain high-dimensional features of the source domain and high-dimensional features of the target domain.
[0080] The classification module is used to input the high-dimensional features of the source domain and the high-dimensional features of the target domain into the classification module of the fault diagnosis model to obtain the predicted labels of the source domain and the pseudo-labels of the target domain.
[0081] The domain adaptation module is used to divide the high-dimensional features of the target domain with the same target domain pseudo-label and the high-dimensional features of the source domain with the same fault category label into the same subdomain according to the fault category. Based on the domain adaptation module, the distribution distance between the high-dimensional features of the source domain and the high-dimensional features of the target domain under the same subdomain is calculated, and the alignment loss is obtained with the goal of minimizing the distribution distance.
[0082] The model training module is used to calculate the classification loss based on the deviation between the source domain predicted label and the fault category label, and to optimize the parameters of each module of the fault diagnosis model based on the alignment loss and the classification loss, so as to train the fault diagnosis model.
[0083] The diagnostic output module inputs the closing vibration signal of the circuit breaker to be diagnosed into the trained fault diagnosis model and outputs the fault category diagnosis result.
[0084] The preferred embodiments of this application have been described in detail above with reference to the accompanying drawings. Typical known structures and common knowledge techniques in the preferred embodiments have not been described in detail here. Those skilled in the art can improve and implement the technical solutions of this invention based on the guidance provided in these embodiments and their own capabilities. Some typical known structures, known methods or common knowledge techniques should not be obstacles for those skilled in the art to implement this application.
[0085] The scope of protection claimed in this application shall be determined by the contents of its claims, and the contents described in the invention description, specific embodiments and drawings shall be used to interpret the claims.
[0086] Within the scope of the technical concept of this application, several modifications can be made to the specific implementation of this application, and these modified implementations should also be considered within the protection scope of this application.
Claims
1. A fault diagnosis method for circuit breakers with multiple structures, characterized in that, The method includes: Obtain a training dataset, which includes source domain data and target domain data. The source domain data includes at least a closing vibration signal and a fault category label for a circuit breaker of a first structural type under each fault category. The target domain data includes at least a closing vibration signal for a circuit breaker of a second structural type under each fault category. The training dataset is input into the fault diagnosis model to be trained. The source domain data and target domain data are filtered by the channel attention module to obtain source domain features and target domain features. The source domain features and target domain features are input into the multi-scale convolution branch and the temporal feature extraction branch in parallel for feature extraction. The extracted multi-scale local features and global temporal features are fused to obtain source domain high-dimensional features and target domain high-dimensional features. The source domain high-dimensional features and target domain high-dimensional features are input into the classification module of the fault diagnosis model to obtain the source domain predicted label and the target domain pseudo label. Based on the fault category, the high-dimensional features of the target domain with the same target domain pseudo-label and the high-dimensional features of the source domain with the same fault category label are divided into the same subdomain. The distribution distance between the high-dimensional features of the source domain and the high-dimensional features of the target domain under the same subdomain is calculated based on the domain adaptation module, and the alignment loss is obtained with the goal of minimizing the distribution distance. The classification loss is calculated based on the deviation between the source domain predicted label and the fault category label, and the parameters of each module of the fault diagnosis model are optimized based on the alignment loss and the classification loss in order to train the fault diagnosis model. The closing vibration signal of the circuit breaker to be diagnosed is input into the trained fault diagnosis model, and the fault category diagnosis result is output.
2. The fault diagnosis method for circuit breakers with multiple structures according to claim 1, characterized in that, The training dataset is input into the fault diagnosis model to be trained. The source domain data and target domain data are filtered by the channel attention module to obtain the source domain features and target domain features, including: The training dataset is initially feature extracted using the residual network in the channel attention module to obtain an initial source domain feature map and an initial target domain feature map. The spatial dimensions of the initial source domain feature map and the initial target domain feature map are compressed by global average pooling. The dependencies between channels are modeled by a fully connected layer, and the weights of each channel are generated by the activation function. The weights are then weighted channel by channel with the initial source domain feature map and the initial target domain feature map to obtain the source domain features and the target domain features.
3. The fault diagnosis method for circuit breakers with multiple structures according to claim 1, characterized in that, The alignment loss is obtained with the objective of minimizing the distribution distance, specifically as follows: , in, The square of the distribution distance; For source domain data; is the target domain data; C is the total number of fault categories; c is the current fault category number; i and j are the sample numbers of the high-dimensional features of the source domain and the target domain, respectively; For the i-th source domain high-dimensional feature sample; The sample represents the high-dimensional feature of the j-th target domain; The normalized weights for the fault category number c of the sample with the i-th high-dimensional feature of the source domain; The normalized weights for the samples of the high-dimensional features of the j-th target domain to belong to the fault category number c; , Let H be the feature mappings of the sample of the i-th source domain high-dimensional feature and the sample of the j-th target domain high-dimensional feature to the reproducing kernel Hilbert space, respectively; H is the reproducing kernel Hilbert space.
4. The fault diagnosis method for circuit breakers with multiple structures according to claim 1, characterized in that, The multi-scale convolution branch includes at least three parallel one-dimensional convolutions: a large-scale convolution kernel, a medium-scale convolution kernel, and a small-scale convolution kernel. Among them, large-scale convolution kernels are used to capture the low-frequency trend characteristics of closing vibration, medium-scale convolution kernels are used to capture the medium-frequency oscillation characteristics of closing vibration, and small-scale convolution kernels are used to capture the high-frequency impact characteristics of closing vibration.
5. The fault diagnosis method for circuit breakers with multiple structures according to claim 1, characterized in that, The source domain features and target domain features are input into the temporal feature extraction branch for feature extraction, which includes: The source domain features and target domain features are used as initial features, and the encoder is used to normalize the initial features; The normalized initial features are input into a multi-head self-attention mechanism to deactivate them and obtain the first deactivated features. The first deactivated features are then fused with the initial features based on residual connections to obtain the first fused features. The first fused feature is normalized, and the normalized first fused feature is input into a multilayer perceptron for deactivation to obtain the second deactivated feature. The first fused feature and the second deactivation feature are fused based on residual connections to obtain the global temporal feature.
6. The fault diagnosis method for circuit breakers with multiple structures according to claim 1, characterized in that, The extracted multi-scale local features are fused with global temporal features, including: The multi-scale local features output by the multi-scale convolution branch and the global temporal features output by the temporal feature extraction branch are concatenated and merged along the feature dimension to obtain high-dimensional features of the source domain and high-dimensional features of the target domain.
7. The fault diagnosis method for circuit breakers with multiple structures according to claim 1, characterized in that, The parameters of each module of the fault diagnosis model are optimized based on the alignment loss and classification loss to train the fault diagnosis model, including: The classification loss is the cross-entropy loss, and the alignment loss and the classification loss are weighted and summed to obtain the total loss. The parameters of each module in the fault diagnosis model are iteratively updated based on the total loss until a preset number of iterations is reached, resulting in a trained fault diagnosis model.
8. The fault diagnosis method for circuit breakers with multiple structures according to claim 7, characterized in that, The parameters of each module in the fault diagnosis model are iteratively updated based on the total loss, including: optimizing the network parameters of the channel attention module, the multi-scale convolution branch, the temporal feature extraction branch, the domain adaptation module, and the classification module through backpropagation, so that the total loss converges.
9. The fault diagnosis method for circuit breakers with multiple structures according to claim 1, characterized in that, The first type of circuit breaker is a fixed circuit breaker, and the second type of circuit breaker is a drawer-type circuit breaker; or, the first type of circuit breaker is a drawer-type circuit breaker, and the second type of circuit breaker is a fixed circuit breaker.
10. A fault diagnosis system for circuit breakers with multiple structures, characterized in that, The system includes: The data acquisition module is used to acquire a training dataset, which includes source domain data and target domain data. The source domain data includes at least a closing vibration signal and a fault category label of a circuit breaker of a first structural type under each fault category. The target domain data includes at least a closing vibration signal of a circuit breaker of a second structural type under each fault category. The feature extraction module is used to input the training dataset into the fault diagnosis model to be trained, and to perform feature filtering on the source domain data and target domain data through the channel attention module to obtain source domain features and target domain features. The source domain features and target domain features are then input into the multi-scale convolution branch and the temporal feature extraction branch in parallel for feature extraction. Finally, the extracted multi-scale local features and global temporal features are fused to obtain high-dimensional features of the source domain and high-dimensional features of the target domain. The classification module is used to input the high-dimensional features of the source domain and the high-dimensional features of the target domain into the classification module of the fault diagnosis model to obtain the predicted labels of the source domain and the pseudo-labels of the target domain. The domain adaptation module is used to divide the high-dimensional features of the target domain with the same target domain pseudo-label and the high-dimensional features of the source domain with the same fault category label into the same subdomain according to the fault category. Based on the domain adaptation module, the distribution distance between the high-dimensional features of the source domain and the high-dimensional features of the target domain under the same subdomain is calculated, and the alignment loss is obtained with the goal of minimizing the distribution distance. The model training module is used to calculate the classification loss based on the deviation between the source domain predicted label and the fault category label, and to optimize the parameters of each module of the fault diagnosis model based on the alignment loss and the classification loss, so as to train the fault diagnosis model. The diagnostic output module inputs the closing vibration signal of the circuit breaker to be diagnosed into the trained fault diagnosis model and outputs the fault category diagnosis result.
