Electromechanical equipment fault cross-domain diagnosis method and system based on minimum category confusion

By using a fault diagnosis model based on multi-scale feature extraction and cross-domain alignment, the problems of incomplete feature extraction, coarse cross-domain alignment, and unclear decision boundaries in fault diagnosis of electromechanical equipment are solved, achieving high-precision and interpretable fault diagnosis.

CN121765356AActive Publication Date: 2026-03-31HUNAN INSTITUTE OF ENGINEERING

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-02
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing fault diagnosis technologies for electromechanical equipment suffer from problems in cross-domain diagnosis, such as single feature extraction scale, incomplete information capture, coarse cross-domain alignment that easily leads to negative transfer, and unclear decision boundaries in the target domain that lack interpretability.

Method used

A fault diagnosis model employing a multi-scale feature extractor, fault classifier, conditional domain discriminator, and minimum class confusion module is developed. Through joint adversarial training and lightweight processing, multi-scale feature fusion and cross-domain alignment are achieved, enhancing the interpretability of the model.

Benefits of technology

It improves the accuracy and interpretability of fault diagnosis for electromechanical equipment, avoids feature omission and negative transfer, and enhances the visualization and verification capabilities of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121765356A_ABST
    Figure CN121765356A_ABST
Patent Text Reader

Abstract

The invention discloses an electromechanical equipment fault cross-domain diagnosis method and system based on minimum category confusion, and the method comprises the steps: selecting an external public data set or labeled historical data as a source domain data set, and then collecting the real-time operation data of electromechanical equipment to be diagnosed, taking the real-time operation data of the electromechanical equipment to be diagnosed as a target domain data set; constructing a fault diagnosis model; performing joint adversarial training on the fault diagnosis model by using the preprocessed source domain data set and target domain data set, and performing lightweight processing and parameter solidification after training is completed to obtain a final fault diagnosis model; and deploying the final fault diagnosis model to an edge computing equipment end, and diagnosing the preprocessed real-time fault data of the electromechanical equipment by using the final fault diagnosis model to obtain a diagnosis result. According to the method, the multi-scale feature extractor is adopted to perform multi-scale feature extraction and fusion, so that the feature extraction capability is improved, and missing of key features is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electromechanical equipment fault diagnosis technology, and in particular to a cross-domain fault diagnosis method and system for electromechanical equipment based on minimum category confusion. Background Technology

[0002] Existing industrial equipment fault diagnosis technologies typically include traditional signal processing methods and deep learning-based methods. Traditional methods, such as Fourier transform and wavelet analysis, rely on manual feature extraction, making it difficult to fully capture the implicit information of equipment operation. With the development of deep learning, automatic feature extraction models such as CNN and ResNet have been proposed and achieved some success. However, current research still has the following significant shortcomings in cross-domain diagnosis under complex operating conditions: First, the single-scale feature extraction leads to incomplete information capture: Existing convolutional neural networks typically use convolutional kernels of a fixed single scale for feature extraction. However, the vibration signals from faults in electromechanical equipment often contain complex frequency components, including both short-term impact components (high frequency) and long-term periodic trends (low frequency). Single-scale convolutional kernels struggle to simultaneously capture both local details and long-range dependencies, resulting in insufficient feature representation and a tendency to miss crucial fault signs. Long-range dependencies refer to the close correlation or mutual influence between two elements that are geographically distant in a sequence or structure.

[0003] Second, coarse cross-domain alignment can easily lead to negative migration: When dealing with cross-domain problems with different loads or speeds, existing domain adaptation methods (such as DANN) mainly focus on aligning the global feature distributions of the source and target domains. This method ignores the structural differences between different fault categories, which can easily lead to the phenomenon of "negative migration" (e.g., incorrectly aligning the inner fault features of the source domain to the outer fault distribution of the target domain), resulting in blurred classification boundaries and limited diagnostic accuracy.

[0004] Third, the target domain decision boundary is unclear and lacks interpretability: Due to the lack of labels on the target domain data, traditional methods struggle to constrain the distribution of target domain samples in the feature space, easily leading to class confusion—that is, samples from different fault categories are too close together in the feature space. Furthermore, existing systems are often "black box" models, lacking intuitive visualization and verification methods for feature distribution and classification boundaries (such as t-SNE distribution plots or confusion matrices), making it difficult to meet the requirements of interpretability and reliability of diagnostic results in industrial settings. In summary, current industrial equipment fault diagnosis technologies still need further improvement in areas such as multi-scale feature fusion capabilities, refined cross-domain alignment capabilities based on categories, and the clarity of target domain classification boundaries. Summary of the Invention

[0005] This invention provides a cross-domain diagnosis method and system for electromechanical equipment faults based on minimal category confusion, in order to solve the technical problems mentioned in the background art.

[0006] To achieve the above objectives, the technical solution of the present invention is implemented as follows: This invention provides a cross-domain fault diagnosis method for electromechanical equipment based on minimal category confusion, comprising the following steps: S1. Select external public datasets or labeled historical data in the field of fault diagnosis of similar electromechanical equipment as the source domain dataset, collect real-time operation data of the electromechanical equipment to be diagnosed, and use the real-time operation data of the electromechanical equipment to be diagnosed as the target domain dataset. Then, preprocess the source domain dataset and the target domain dataset. S2. Construct a fault diagnosis model, which includes a multi-scale feature extractor, a fault classifier, a conditional domain discriminator, and a minimum class confusion module. The multi-scale feature extractor, fault classifier, and conditional domain discriminator are interconnected, and the fault classifier is connected to the minimum class confusion module. S3. Use the preprocessed source domain dataset and target domain dataset to perform joint adversarial training on the fault diagnosis model. After training, perform lightweight processing on the trained fault diagnosis model and solidify the parameters of the lightweight fault diagnosis model to obtain the final fault diagnosis model. S4. Deploy the final fault diagnosis model to the edge computing device of the intelligent diagnosis system, and use the final fault diagnosis model to diagnose the pre-processed real-time fault data of electromechanical equipment to obtain the diagnosis results.

[0007] Furthermore, the preprocessing of the source domain dataset and the target domain dataset in S1 includes the following steps: S11. First, the real-time operating data of the electromechanical equipment to be diagnosed in the target domain dataset is processed through anti-aliasing filtering and analog-to-digital conversion to obtain a digital sequence. Then, a sliding window slicing algorithm is used to slice the digital sequence according to a set sampling frequency. Convert to discrete time series data ; S12. Employing an overlapping sliding window mechanism for discrete time series data. Perform segmentation, then extract the first segment. A time-domain sample fragment , No. A time-domain sample fragment The expression is: ; in, This is the sequence number of the sample segment. ; Representing discrete time series data The index is Data points; This represents the total number of samples obtained after segmentation. Indicates the sliding step size; Indicates the window length; S13. The Fast Fourier Transform algorithm is used to process the first... A time-domain sample fragment Perform a Fast Fourier Transform to transform the time-domain sample fragments. Mapping from the time domain to the frequency domain; Specifically, first calculate the first... A time-domain sample fragment complex spectrum The expression is as follows: ; in, Representing time-domain samples The first in One data point; It is a natural constant; The imaginary unit; For frequency domain index, the value range is 0 to... ; Then according to the first A time-domain sample fragment complex spectrum Calculate the amplitude intensity in each frequency domain, and truncate the first half of the effective components according to the spectral conjugate symmetry to generate the frequency domain feature vector. The formulas for calculating the amplitude intensity in each frequency domain are as follows: ; in, Indicates the first Amplitude intensity in each frequency domain; Represents the function that takes the real part of a complex number; The function representing the imaginary part of a complex number; S14, Regarding the frequency domain feature vector Perform Z-Score normalization to obtain the normalized frequency domain input samples. The expression is as follows: ; in, Represents frequency domain eigenvectors The arithmetic mean of the amplitude intensities across all frequency domains; Represents frequency domain eigenvectors The standard deviation of the amplitude intensity across all frequency domains; It is a very small positive number, used to avoid calculation errors when the denominator is zero; S15. Input the standardized frequency domain samples. As the target domain after preprocessing; S16. Then, the source domain dataset is preprocessed in the same way as S11 to S14 to obtain the preprocessed source domain dataset.

[0008] Furthermore, the multi-scale feature extractor comprises sequentially connected... The system includes convolutional layers, multiple parallel convolutional processing branches, feature fusion, and channel attention mechanisms; each convolutional processing branch comprises sequentially connected convolutional kernels of size [missing information]. The convolutional layers, normalized layer (BN), and activation functions; the feature fusion and channel attention mechanism includes sequentially connected channel splicing modules and channel attention mechanisms; The fault classifier consists of two cascaded fully connected layers. The conditional domain discriminator includes a fusion module, a gradient inversion layer, and a domain discriminator connected in sequence.

[0009] Furthermore, the convolution processing branch in the multi-scale feature extractor is used to extract feature maps at different scales. The specific expression is as follows: ; in, Indicates the kernel size as Convolutional layers; Indicates the activation function; express Convolutional layer; This represents the sample vector input to the multi-scale feature extractor after preprocessing of the source or target domain dataset. The channel stitching module is used to stitch together the feature maps of each branch along the channel dimension to obtain the stitched feature. The expression is as follows: ; in, This indicates the channel splicing operation within the channel splicing module; These represent feature maps of different scales output by the three parallel convolutional processing branches, respectively. The channel attention mechanism is used to calculate attention weights based on the importance of each channel, and then combine the attention weights with the input features of the identity mapping branch to calculate the deep feature vector. The relevant expressions are as follows: ; ; in, Indicates attention weight; Indicates the activation function; , Indicates the weighting coefficient; Indicates the average pooling layer; This indicates element-wise multiplication; This represents the input features of the identity mapping branch in the channel attention mechanism, used to construct residual connections to prevent network degradation.

[0010] Furthermore, the fault classifier is used to classify deep feature vectors Mapping to the fault category space yields the predicted probability distribution of the fault categories. The relevant expressions are as follows: ; ; in, and These represent the weight matrix and bias vector of the fault classifier, respectively; This is the unnormalized logical output vector; express function; The conditional domain discriminator is used to achieve cross-domain alignment based on fault categories, thereby obtaining joint information variables. The expression is as follows: ; in, This indicates a tensor product operation or a dimension-reduced outer product operation based on a random mapping. The minimum class confusion module is used to calculate the class correlation matrix of samples in the target domain dataset. Category correlation matrix The first in Line 1 Column elements Define as a category With category The cosine similarity is expressed as follows: ; in, Indicates the first The sample belongs to the first The predicted probability of a class; Indicates the first The sample belongs to the first The predicted probability of a class; B This indicates the number of target domain samples in the current training batch.

[0011] Furthermore, step S3 specifically includes the following steps: S31. Input the labeled samples from the preprocessed source domain dataset and the unlabeled samples from the preprocessed target domain dataset into the fault diagnosis model. S32. After preprocessing, the labeled samples in the source domain dataset are processed by a multi-scale feature extractor to output deep feature vectors. , to deep feature vector The input is fed into the fault classifier, and the output is the predicted probability distribution of the fault category. Then, based on the predicted probability distribution of the fault category Calculate source domain classification loss ; S33. After preprocessing, the unlabeled samples of the target domain dataset are processed by a multi-scale feature extractor to output deep feature vectors. , to deep feature vector The input is fed into the fault classifier, and the output is the predicted probability distribution of the fault category. ; S34. Transfer deep feature vectors Predicted probability distribution of fault categories The input is fed into the fusion module of the conditional domain discriminator to obtain the joint information variables. ; to deep feature vector Predicted probability distribution of fault categories The input is fed into the fusion module of the conditional domain discriminator to obtain the joint information variables. ; S35, then the joint information variables Joint information variables The results are fed into the domain discriminator, and the adversarial loss is calculated based on the results. ; S36. Calculate the minimum class confusion loss using the minimum class confusion module. ; S37. Then, based on the source domain classification loss... Combating losses Minimal Class Confusion Loss Calculate the overall objective function ; S38. Minimize the overall objective function using the standard backpropagation algorithm. The trained fault diagnosis model is obtained; S39. The trained fault diagnosis model is lightweighted by removing the conditional domain discriminator and the minimum class confusion module through structural pruning, retaining only the multi-scale feature extractor and the fault classifier to obtain the lightweight fault diagnosis model. The parameters of the lightweight fault diagnosis model are then solidified to obtain the final fault diagnosis model.

[0012] Furthermore, the source domain classification loss in S32 The expression is as follows: ; in, This represents the number of labeled samples in the source domain in batches. Total number of fault categories; Let be the indicator function, when the true label of the sample is The value is 1 if the condition is met, otherwise it is 0. The fault diagnosis model will use the preprocessed source domain dataset to determine the first... i The labeled sample is predicted to be the first... The probability of a class; Indicates the first The true fault category label of each source domain sample; The S35 countermeasure loss The expression is as follows: ; in, This indicates the number of unlabeled samples in the target domain in a batch. This indicates the probability that the conditional domain discriminator outputs the sample from the source domain; Indicates the first Joint information variables corresponding to each source domain sample; Indicates the first Joint information variables corresponding to each target domain sample; Minimum class confusion loss in S36 The expression is: ; The overall objective function in S37 The expression is: ; in, , These represent the weighting coefficients for the corresponding losses.

[0013] Furthermore, step S4 specifically includes the following steps: S41. Deploy the final fault diagnosis model to the edge computing device of the intelligent diagnosis system; S42. Preprocess the real-time fault data of electromechanical equipment to obtain preprocessed real-time fault data of electromechanical equipment, and input it into the final fault diagnosis model in the edge computing device. After passing through the multi-scale feature extractor, the deep feature vector is output. ; S43, then the deep feature vector The input is fed into the fault classifier, which outputs the predicted probability distribution of the fault category. ; S44. Select the predicted probability distribution of the fault category The category index with the highest probability value is used as the prediction result. And this maximum probability value is defined as the prediction confidence level. ; S45. Intelligent alarm is performed using a multi-verification mechanism of "category-confidence level-temperature"; S46. Use the t-SNE dimensionality reduction algorithm to reduce deep feature vectors Map the points to a two-dimensional plane coordinate system, and draw feature scatter plots on the visualization interface based on these points in the two-dimensional plane coordinate system to generate visualization charts; S47. Collect online diagnostic historical data over a period of time, use the confusion matrix calculation module to calculate and draw the target domain confusion matrix. The target domain confusion matrix can intuitively reflect the most common misjudgment types of current electromechanical equipment, providing a basis for subsequent final fault diagnosis model adjustments.

[0014] Furthermore, the prediction result in S44 Prediction confidence The expressions are as follows: ; ; in, This function returns the index corresponding to the maximum value. This indicates a function that returns the maximum value.

[0015] In another aspect, the present invention provides a cross-domain fault diagnosis system for electromechanical equipment, configured to execute the above-described cross-domain fault diagnosis method for electromechanical equipment, the cross-domain fault diagnosis system for electromechanical equipment comprising: The multi-source sensing and data acquisition module includes a high-frequency vibration acceleration sensor and a temperature sensor installed on the electromechanical equipment, which are used to collect real-time operating data of the electromechanical equipment to be diagnosed and convert it into a digital sequence. The edge computing and preprocessing module is used to preprocess the digital sequence using the built-in sliding window slicing algorithm and fast Fourier transform algorithm to obtain preprocessed real-time fault data of electromechanical equipment. The intelligent diagnostic reasoning module is used to perform forward reasoning on the preprocessed real-time fault data of electromechanical equipment based on the built-in final fault diagnosis model, calculate the predicted probability distribution of fault categories, and then output the prediction confidence based on the predicted probability distribution of fault categories. The interactive monitoring and alarm module includes a display terminal and an audible and visual alarm, which is used for intelligent alarms using a multi-verification mechanism of "category-confidence-temperature". The data transmission and storage module is used to realize data transmission and data storage between the multi-source sensing and data acquisition module, the edge computing and preprocessing module, the intelligent diagnostic reasoning module, and the interactive monitoring and alarm module.

[0016] The beneficial effects of this invention are: 1. This invention discloses a cross-domain fault diagnosis method for electromechanical equipment based on minimum class confusion. The fault diagnosis model disclosed internally uses a multi-scale feature extractor for multi-scale feature extraction and fusion. Compared with the existing convolutional neural network which uses a fixed single-scale convolutional kernel for feature extraction, the multi-scale feature extractor in this invention captures more comprehensive information. It can capture short-time high-frequency signals and long-term periodic low-frequency signals in the fault vibration signals of electromechanical equipment. At the same time, it can take into account both local details and long-range dependencies, effectively avoiding the omission of key fault features.

[0017] 2. The fault diagnosis model in this invention also includes a conditional domain discriminator and a minimum category confusion module. The conditional domain discriminator is used to achieve cross-domain alignment, and the minimum category confusion module considers the structural differences between different fault categories, avoids the "negative migration" phenomenon, and also avoids the blurring of classification boundaries, thereby improving the diagnostic accuracy.

[0018] 3. This invention uses the t-SNE algorithm to draw feature scatter plots on a visualization interface, thereby generating visual charts and enhancing the interpretability of the model. Attached Figure Description

[0019] Figure 1 This is a flowchart of the cross-domain fault diagnosis method for electromechanical equipment in this invention; Figure 2 This is a schematic diagram of the network structure of the fault diagnosis model in this invention. Detailed Implementation

[0020] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Preferred embodiments of the invention are shown in the drawings. However, the invention can be implemented in many other different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a thorough and complete understanding of the disclosure of the invention.

[0021] Reference Figure 1 and Figure 2 This application provides a cross-domain fault diagnosis method for electromechanical equipment based on minimal category confusion, including the following steps: S1. Select external public datasets (such as the Western Reserve University CWRU dataset) or labeled historical data in the field of fault diagnosis of similar electromechanical equipment as the source domain dataset. Use high-frequency vibration acceleration sensors and temperature sensors to collect real-time operating data of key parts of the electromechanical equipment to be diagnosed (such as drive end bearings, fan end bearings, etc.) and use the real-time operating data of the electromechanical equipment to be diagnosed as the target domain dataset. Then, preprocess the source domain dataset and the target domain dataset. S2. Construct a fault diagnosis model (MS-CDAN). The fault diagnosis model includes a multi-scale convolutional neural network (MS-CNN), a fault classifier, a conditional discriminator, and a minimum class confusion (MCC) module. The multi-scale feature extractor, fault classifier, and conditional discriminator are interconnected, and the fault classifier is connected to the minimum class confusion module. S3. Use the preprocessed source domain dataset and target domain dataset to perform joint adversarial training on the fault diagnosis model. After training, perform lightweight processing on the trained fault diagnosis model and solidify the parameters of the lightweight fault diagnosis model to obtain the final fault diagnosis model. S4. Deploy the final fault diagnosis model to the edge computing device of the intelligent diagnosis system, and use the final fault diagnosis model to diagnose the pre-processed real-time fault data of electromechanical equipment to obtain the diagnosis results.

[0022] In some embodiments, the preprocessing of the source domain dataset and the target domain dataset in S1 includes the following steps: S11. First, the real-time operating data of the electromechanical equipment to be diagnosed in the target domain dataset is processed through anti-aliasing filtering and analog-to-digital conversion to obtain a digital sequence. Then, a sliding window slicing algorithm is used to slice the digital sequence according to a set sampling frequency. Convert to discrete time series data ; Specifically, discrete time series data The expression is as follows: ; in, Indicates the first K Vibration amplitude data collected from each sampling point is used as the primary data for learning and training the fault diagnosis model. Indicates the first K The temperature values ​​collected at each sampling point are used as auxiliary data and are not involved in the learning and training of the fault diagnosis model. They are only used in the dual verification mechanism within S45 later. KThis indicates the total number of sampling points covered in a single data collection task; S12. To construct samples that meet the input dimensions of the fault diagnosis model and maintain the temporal continuity of fault features, an overlapping sliding window mechanism is used for discrete time series data. Perform segmentation, then extract the first segment. A time-domain sample fragment , No. A time-domain sample fragment The expression is: ; in, This is the sequence number of the sample segment. ; Representing discrete time series data The index is Data points; This represents the total number of samples obtained after segmentation. Indicates the sliding step size; Indicates the window length; S13. To fully exploit the periodic fault characteristics in the vibration signals of electromechanical equipment, a Fast Fourier Transform algorithm is used to analyze the first... A time-domain sample fragment Perform a Fast Fourier Transform to transform the time-domain sample fragments. Mapping from the time domain to the frequency domain; Specifically, first calculate the first... A time-domain sample fragment complex spectrum The expression is as follows: ; in, Representing time-domain samples The first in One data point; It is a natural constant; The imaginary unit; For frequency domain index, the value range is 0 to... ; Then according to the first A time-domain sample fragment complex spectrum Calculate the amplitude intensity in each frequency domain, and truncate the first half of the effective components according to the spectral conjugate symmetry to generate the frequency domain feature vector. The formulas for calculating the amplitude intensity in each frequency domain are as follows: ; in, Indicates the first Amplitude intensity in each frequency domain; Represents the function that takes the real part of a complex number; The function representing the imaginary part of a complex number; S14. To eliminate the impact of sensitivity differences between different sensors and signal energy fluctuations on model convergence, the frequency domain feature vectors are... Perform Z-Score normalization to obtain the normalized frequency domain input samples. The expression is as follows: ; in, Represents frequency domain eigenvectors The arithmetic mean of the amplitude intensities across all frequency domains; Represents frequency domain eigenvectors The standard deviation of the amplitude intensity across all frequency domains; It is a very small positive number, used to avoid calculation errors when the denominator is zero; S15. Input the standardized frequency domain samples. As the target domain after preprocessing; S16. Then, the source domain dataset is preprocessed in the same way as S11 to S14 to obtain the preprocessed source domain dataset.

[0023] In some embodiments, the multi-scale feature extractor comprises sequentially connected... Convolutional layers, multiple (e.g., three) parallel convolutional processing branches, feature fusion, and channel attention mechanisms; each convolutional processing branch includes sequentially connected convolutional kernels of size [missing information]. The convolutional layers, normalized layer (BN), and activation functions; the feature fusion and channel attention mechanism includes sequentially connected channel splicing modules and channel attention mechanisms; The fault classifier consists of two cascaded fully connected layers; the fault classifier is used to map deep features to a fault category space. The conditional domain discriminator comprises a fusion module, a gradient reversal layer (GRL), and a domain discriminator connected in sequence. The gradient reversal layer keeps the input unchanged during forward propagation and multiplies the gradient by a negative coefficient during backward propagation. , These are the domain-adaptive weights, used to control the intensity of adversarial training, and are typically adjusted dynamically as the training progresses.

[0024] The minimum category confusion module is used to solve the problem of ambiguous decision boundaries caused by unlabeled data in the target domain.

[0025] In some embodiments, the convolution processing branch in the multi-scale feature extractor is used to extract feature maps at different scales. The specific expression is as follows: ; in, Indicates the kernel size as ( =3, 5, 7) convolutional layers; Indicates the activation function; express Convolutional layer; This represents the sample vector input to the multi-scale feature extractor after preprocessing of the source or target domain dataset. The channel stitching module is used to stitch together the feature maps of each branch along the channel dimension to obtain the stitched feature. The expression is as follows: ; in, This indicates the channel splicing operation of the channel splicing module; These represent feature maps of different scales output by the three parallel convolutional processing branches, respectively. The channel attention mechanism is used to calculate attention weights based on the importance of each channel, and then combine the attention weights with the input features of the identity mapping branch to calculate the deep feature vector. The relevant expressions are as follows: ; ; in, Indicates attention weight; Indicates the activation function; , Indicates the weighting coefficient; Indicates the average pooling layer; This indicates element-wise multiplication (Hadamard Product). This represents the input features of the identity mapping branch in the channel attention mechanism, used to construct residual connections to prevent network degradation.

[0026] In some embodiments, the fault classifier is used to classify deep feature vectors Mapping to the fault category space yields the predicted probability distribution of the fault categories. The relevant expressions are as follows: ; ; in, and These represent the weight matrix and bias vector of the fault classifier, respectively; This is the unnormalized logical output vector; express function; The conditional domain discriminator is used to achieve cross-domain alignment based on fault categories, thereby obtaining joint information variables. The expression is as follows: ; in, This indicates a tensor product operation or a dimension-reduced outer product operation based on a random mapping. The minimum class confusion module is used to calculate the class correlation matrix of samples in the target domain dataset. Category correlation matrix The first in Line 1 Column elements Define as a category With category The cosine similarity is expressed as follows: ; in, Indicates the first The sample belongs to the first The predicted probability of a class; Indicates the first The sample belongs to the first The predicted probability of a class; B This represents the number of target domain samples in the current training batch. The goal of the minimum class confusion module is to minimize the class correlation matrix. The sum of the absolute values ​​of the off-diagonal elements.

[0027] In some embodiments, S3 specifically includes the following steps: S31. Input the labeled samples from the preprocessed source domain dataset and the unlabeled samples from the preprocessed target domain dataset into the fault diagnosis model. S32. After preprocessing, the labeled samples in the source domain dataset are processed by a multi-scale feature extractor to output deep feature vectors. , to deep feature vector The input is fed into the fault classifier, and the output is the predicted probability distribution of the fault category. Then, based on the predicted probability distribution of the fault category Calculate source domain classification loss Source domain classification loss The Cross Entropy Loss function is used. S33. After preprocessing, the unlabeled samples of the target domain dataset are processed by a multi-scale feature extractor to output deep feature vectors. , to deep feature vector The input is fed into the fault classifier, and the output is the predicted probability distribution of the fault category. ; S34. Transfer deep feature vectors Predicted probability distribution of fault categories The input is fed into the fusion module of the conditional domain discriminator to obtain the joint information variables. ; to deep feature vector Predicted probability distribution of fault categories The input is fed into the fusion module of the conditional domain discriminator to obtain the joint information variables. ; S35, then the joint information variables Joint information variables The results are fed into the domain discriminator, and the adversarial loss is calculated based on the results. When optimizing the feature extractor, the gradient inversion layer uses the lost gradient... Pass it back, symbol This represents the gradient operator, used to calculate the derivative of the loss function with respect to the network parameters. This enables adversarial processing. S36. To further optimize the classification boundary of the target domain, the minimum class confusion module is used to calculate the minimum class confusion loss. This loss function directly penalizes the ambiguity of samples in the target domain between different categories, prompting samples to cluster towards the category center with high confidence. S37. Then, based on the source domain classification loss... Combating losses Minimal Class Confusion Loss Calculate the overall objective function ; S38. Minimize the overall objective function using the standard back-propagation algorithm. The trained fault diagnosis model is obtained; S39. The trained fault diagnosis model is lightweighted by removing the conditional domain discriminator and the minimum class confusion module through structural pruning, retaining only the multi-scale feature extractor and the fault classifier to obtain the lightweight fault diagnosis model. The parameters of the lightweight fault diagnosis model are then solidified to obtain the final fault diagnosis model.

[0028] In some embodiments, the source domain classification loss in S32 The expression is as follows: ; in, This represents the number of labeled samples in the source domain in batches. Total number of fault categories; Let be the indicator function, when the true label of the sample is The value is 1 if the condition is met, otherwise it is 0. The fault diagnosis model will use the preprocessed source domain dataset to determine the first... i The labeled sample is predicted to be the first... The probability of a class; Indicates the first The true fault category label of each source domain sample; The S35 countermeasure loss The expression is as follows: ; in, This indicates the number of unlabeled samples in the target domain in a batch. This indicates the probability that the conditional domain discriminator outputs the sample from the source domain; Indicates the first Joint information variables corresponding to each source domain sample; Indicates the first Joint information variables corresponding to each target domain sample; Minimum class confusion loss in S36 The expression is: ; The overall objective function in S37 The expression is: ; in, , These represent the weighting coefficients for the corresponding losses.

[0029] In some embodiments, S4 specifically includes the following steps: S41. Deploy the final fault diagnosis model to the edge computing device of the intelligent diagnosis system; S42. Preprocess the real-time fault data of electromechanical equipment to obtain preprocessed real-time fault data of electromechanical equipment, and input it into the final fault diagnosis model in the edge computing device. After passing through the multi-scale feature extractor, the deep feature vector is output. ; S43, then the deep feature vector The input is fed into the fault classifier, which outputs the predicted probability distribution of the fault category. ; S44. Select the predicted probability distribution of the fault category The category index with the highest probability value is used as the prediction result. And this maximum probability value is defined as the prediction confidence level. ; S45. Intelligent alarm is performed using a multi-verification mechanism of "category-confidence level-temperature"; Specifically, to reduce false alarm rates and improve safety in industrial settings, the system employs a multi-factor verification mechanism of "category-confidence level-temperature" for alarm control. Normal / Fault Binary Check: If the predicted category Corresponding to the "normal operation" state, the system remains silent; if If a certain type of fault is identified (such as inner ring fault or rolling element fault), then the confidence level check is performed.

[0030] Joint Confidence Validation with Temperature: Setting a Confidence Threshold for Model Predictions and equipment operating temperature warning threshold The system reads the confidence level at the current moment. and real-time temperature data collected in S11 (Calculate its mean) ), execute the following hierarchical logic: Valid fault event (urgent): If and The system is identified as a "high-risk fault." At this point, the probability of failure is high, accompanied by a rise in physical temperature. The equipment control module immediately triggers an audible and visual alarm and sends a forced shutdown command to the central control room to prevent the equipment from burning out.

[0031] Early fault warning (general): If but The system is identified as an "early-stage fault." At this point, the fault characteristics have become apparent but have not yet caused overheating. The system triggers a yellow warning signal, prompting maintenance personnel to conduct an inspection during the next maintenance window, but does not trigger an immediate shutdown to ensure production continuity.

[0032] Suspected interference: If If the event is identified as a suspected fault or noise interference, the system will mark it as "to be observed" and will not trigger an alarm. Instead, it will automatically increase the sampling frequency of the data for that time period to capture subsequent changes.

[0033] S46. Use the t-SNE (t-Distributed Stochastic Neighbor Embedding) dimensionality reduction algorithm to reduce deep feature vectors Map the points to a two-dimensional plane coordinate system, and draw feature scatter plots on the visualization interface based on these points in the two-dimensional plane coordinate system to generate visualization charts; In the process of drawing feature scatter plots, if the boundaries of different colored point clusters (representing different categories) are clear and the separation is high, it intuitively proves that the current diagnostic model's feature extraction is effective; if point clusters are mixed, it indicates to the operations and maintenance personnel that the model may experience performance degradation. S47. Collect historical online diagnostic data over a period of time, and use the confusion matrix calculation module to calculate and plot the target domain confusion matrix. The target domain confusion matrix can intuitively reflect the most common misjudgment types of the current electromechanical equipment, providing a basis for subsequent final fault diagnosis model adjustments. The darker the color of the diagonal elements in the target domain confusion matrix, the higher the diagnostic accuracy of that category; if the off-diagonal elements are highlighted, it intuitively reveals the most common misjudgment types of the current equipment, providing a basis for subsequent model fine-tuning.

[0034] In some embodiments, the prediction results in S44 Prediction confidence The expressions are as follows: ; ; in, This function returns the index corresponding to the maximum value. This indicates a function that returns the maximum value.

[0035] In another aspect, the present invention provides a cross-domain fault diagnosis system for electromechanical equipment, configured to execute the above-described cross-domain fault diagnosis method for electromechanical equipment, the cross-domain fault diagnosis system for electromechanical equipment comprising: The multi-source sensing and data acquisition module includes a high-frequency vibration acceleration sensor and a temperature sensor installed on key parts of the electromechanical equipment, as well as a high-frequency data acquisition card, which are used to collect real-time operating data of the electromechanical equipment to be diagnosed and convert it into a digital sequence. The edge computing and preprocessing module is used to preprocess the digital sequence using the built-in sliding window slicing algorithm and fast Fourier transform algorithm to obtain preprocessed real-time fault data of electromechanical equipment. The intelligent diagnostic reasoning module is used to perform forward reasoning on the preprocessed real-time fault data of electromechanical equipment based on the built-in final fault diagnosis model, calculate the predicted probability distribution of fault categories, and then output the prediction confidence based on the predicted probability distribution of fault categories. The interactive monitoring and alarm module includes a display terminal and an audible and visual alarm, which is used for intelligent alarms using a multi-verification mechanism of "category-confidence-temperature". The data transmission and storage module is used to realize data transmission and data storage between the multi-source sensing and data acquisition module, the edge computing and preprocessing module, the intelligent diagnostic reasoning module, and the interactive monitoring and alarm module.

[0036] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for cross-domain diagnosis of faults in mechatronic equipment based on minimum class confusion, characterized in that, The method comprises the following steps: S1, selecting external public data sets or labeled historical data in the same mechanical and electrical equipment fault diagnosis field as the source domain data set, collecting real-time running data of the mechanical and electrical equipment to be diagnosed, and taking the real-time running data of the mechanical and electrical equipment to be diagnosed as the target domain data set, and then preprocessing the source domain data set and the target domain data set; S2, constructing a fault diagnosis model, the fault diagnosis model comprising a multi-scale feature extractor, a fault classifier, a conditional domain discriminator and a minimum class confusion module; wherein the multi-scale feature extractor, the fault classifier and the conditional domain discriminator are connected with each other, and the fault classifier is connected with the minimum class confusion module; S3, jointly training the fault diagnosis model using the preprocessed source domain data set and target domain data set, performing lightweight processing on the trained fault diagnosis model after training, and solidifying the parameters of the lightweight processed fault diagnosis model to obtain the final fault diagnosis model; S4, deploying the final fault diagnosis model to the edge computing device end of the intelligent diagnosis system, and using the final fault diagnosis model to diagnose the preprocessed mechanical and electrical equipment real-time fault data to obtain a diagnosis result.

2. The method according to claim 1, wherein, The preprocessing of the source domain data set and the target domain data set in S1 comprises the following steps: S11, first, the real-time running data of the electromechanical equipment to be diagnosed in the target domain data set is subjected to anti-aliasing filtering and analog-digital conversion to obtain a digital sequence, then a sliding window slicing algorithm is used to convert the digital sequence into discrete time series data at a set sampling frequency ;​ S12, adopting an overlapping sliding window mechanism to the discrete time series data S12, adopting an overlapping sliding window mechanism to the discrete time series data S12, adopting an overlapping sliding window mechanism to the discrete time series data S12, adopting an overlapping sliding window mechanism to the discrete time series data S12, adopting an overlapping sliding window mechanism to the discrete time series data S12, adopting an overlapping sliding window mechanism to the discrete time series data ; wherein, is the sequence number of the sample segment, ; represents the discrete time series data at index of the data point; is the total number of samples obtained after segmentation; represents the sliding step length; represents the window length; S13, applying a fast Fourier transform algorithm to the time domain sample segment performing a fast Fourier transform, thereby mapping the time domain sample segment from the time domain to the frequency domain; In particular, first the complex spectrum of the time-domain sample segment is calculated , expressed as follows: ; wherein, denotes a time-domain sample at the th data point in the time-domain sample; is a natural constant; is the imaginary unit; is a frequency-domain index, taking values from the range 0 to ; Then according to the first time domain sample segment The complex spectrum of the second amplitude strength of each frequency domain is calculated, and the first half of the effective components is intercepted according to the spectral conjugate symmetry to generate a frequency domain feature vector The calculation formula of the amplitude strength of each frequency domain is as follows: ; wherein, represents the amplitude intensity of the th frequency domain; represents taking the real part function of a complex number; represents taking the imaginary part function of a complex number; S14, to the frequency domain feature vector perform Z-Score standardization to obtain the standardized frequency domain input sample , the expression is as follows: ; wherein, denotes the amplitude strength of the frequency domain feature vector denotes the arithmetic mean of the amplitude strengths of all frequency domains within the frequency domain feature vector denotes the amplitude strength of the frequency domain feature vector denotes the standard deviation of the amplitude strengths of all frequency domains within the frequency domain feature vector is a very small positive number, used to avoid computational exceptions with a zero denominator S15, normalizing the frequency domain input samples as a target domain after pre-processing; S16, then the source domain data set is preprocessed in the same way as S11 to S14 to obtain the preprocessed source domain data set.

3. The method of claim 1, wherein, The multi-scale feature extractor comprises, which are connected in sequence convolutional layers, a plurality of parallel convolutional processing branches, a feature fusion and channel attention mechanism; each convolutional processing branch comprises, which are connected in sequence convolutional layers with a convolution kernel size of 1*1, a normalization layer BN, an activation function; the feature fusion and channel attention mechanism comprises, which are connected in sequence a channel splicing module, a channel attention mechanism; The fault classifier is composed of two layers of cascaded fully connected layers; The conditional domain discriminator comprises a fusion module, a gradient reversal layer and a domain discriminator connected in sequence.

4. The method of claim 3, wherein, The convolution processing branch in the multi-scale feature extractor is used to extract feature maps of different scales The expression is specifically as follows: ; wherein, represents a convolutional layer with a kernel size of ; represents an activation function; represents a convolutional layer; represents a sample vector of the source domain dataset or the target domain dataset after pre-processing input to the multi-scale feature extractor; The channel splicing module is configured to splice the branch feature maps in the channel dimension to obtain spliced features The expression is as follows: ; wherein, represents a channel concatenation operation within the channel concatenation module; respectively represent feature maps of different scales output by the three parallel convolution processing branches respectively; The channel attention mechanism is used to calculate attention weights according to the importance of channels, and then a deep feature vector is calculated by combining the attention weights and input features of the identity mapping branch The relevant expression is as follows: ; ; wherein, denotes an attention weight; denotes an activation function; , denotes a weight coefficient; denotes a mean pooling layer; denotes element-wise multiplication; denotes the input feature of the identity mapping branch on the channel attention mechanism, which is used to construct a residual connection to prevent network degradation.

5. The method of claim 4, wherein, The fault classifier is used to map the deep feature vector to a fault class space, resulting in a predicted probability distribution over fault classes , which is given by the following expression: ; ; wherein, and denote the weight matrix and bias vector of the fault classifier, respectively; is the un-normalized logical output vector; denotes the function; The condition domain discriminator is used to realize cross-domain alignment based on the fault category, so as to obtain a joint information variable , and the expression is as follows: ; wherein, denotes a tensor product operation or a dimensionality reduction outer product operation based on random mapping; The minimum class confusion module is configured to calculate a class correlation matrix of samples in the target domain dataset , the class correlation matrix , the element in the i th row and j th column is defined as the cosine similarity between class i and class j , expressed as follows: ; wherein, denotes the prediction probability that the -th sample belongs to the -th class; denotes the prediction probability that the -th sample belongs to the -th class; B denotes the number of target domain samples within the current training batch.

6. The method of claim 5, wherein, S3 specifically comprises the following steps: S31, inputting the labeled samples in the preprocessed source domain data set and the unlabeled samples in the preprocessed target domain data set into the fault diagnosis model; S32, the labeled samples in the source domain data set after pretreatment pass through the multi-scale feature extractor to output deep feature vectors , the deep feature vectors are input into the fault classifier to output a predicted probability distribution of the fault category , and then the predicted probability distribution of the fault category is used to calculate the source domain classification loss ;​ S33, the unlabeled sample of the target domain data set after pretreatment is outputted deep feature vector by the multi-scale feature extractor , the deep feature vector is inputted to the fault classifier, and a prediction probability distribution of the fault category is outputted ;​ S34, the deep feature vector , the predicted probability distribution of the fault category into the fusion module of the conditional domain discriminator to obtain the joint information variable ; the deep feature vector , the predicted probability distribution of the fault category into the fusion module of the conditional domain discriminator to obtain the joint information variable ; S35, then the joint information variables Joint information variables The results are fed into the domain discriminator, and the adversarial loss is calculated based on the results. ; S36, calculating a minimum class confusion loss using a minimum class confusion module ; S37、Then, according to the source domain classification loss , the adversarial loss , the minimum class confusion loss Calculate the total objective function ; S38, minimize the total objective function by a standard back propagation algorithm to obtain a trained fault diagnosis model. S39, performing lightweight processing on the trained fault diagnosis model, the lightweight processing being performed by structure pruning to remove the conditional domain discriminator and the minimum class confusion module, and only retaining the multi-scale feature extractor and the fault classifier to obtain a lightweight processed fault diagnosis model, and solidifying the parameters of the lightweight processed fault diagnosis model to obtain the final fault diagnosis model.

7. The method of claim 6, wherein, The expression of the S32 source domain classification loss is as follows: ; wherein, is the number of batch labeled samples in the source domain; is the total number of fault categories; is an indicator function, which is 1 when the sample’s true label is and 0 otherwise; is the probability that the fault diagnosis model predicts the i th labeled sample in the pre-processed source domain dataset to be of the th category; represents the true fault category label of the th source domain sample; The expression of the S35 against loss is as follows: ; in, This indicates the number of unlabeled samples in the target domain in a batch. This indicates the probability that the conditional domain discriminator outputs the sample from the source domain; Indicates the first Joint information variables corresponding to each source domain sample; Indicates the first Joint information variables corresponding to each target domain sample; the minimum class confusion loss in S36 The expression is: ; The total objective function in the S37 The expression is: ; wherein, , respectively represent the weight coefficients of the corresponding losses.

8. The method of claim 7, wherein, S4 specifically comprises the following steps: S41, deploying the final fault diagnosis model to the edge computing device end of the intelligent diagnosis system; S42, pre-process the real-time fault data of the electromechanical equipment to obtain pre-processed real-time fault data of the electromechanical equipment, and input the pre-processed real-time fault data of the electromechanical equipment into a final fault diagnosis model in an edge computing device end, pass through a multi-scale feature extractor, and output a deep feature vector ; S43, the deep feature vector is then input into the fault classifier, outputting a predicted probability distribution over fault classes ; S44, selecting a predicted probability distribution of the fault category the index of the category with the largest probability value as the prediction result and defining the largest probability value as the prediction confidence ; S45, adopting a "class-confidence-temperature" multiple verification mechanism for intelligent alarm; S46. Use the t-SNE dimensionality reduction algorithm to reduce deep feature vectors Map the points to a two-dimensional plane coordinate system, and draw feature scatter plots on the visualization interface based on these points in the two-dimensional plane coordinate system to generate visualization charts; S47, collecting online diagnosis historical data within a period of time, calculating and drawing a target domain confusion matrix using a confusion matrix calculation module, and the target domain confusion matrix can intuitively reflect the most likely misjudgment type of the current mechanical and electrical equipment, thereby providing a basis for subsequent adjustment of the final fault diagnosis model.

9. The method of claim 8, wherein, The predicted result in the S44 , the expression of the prediction confidence is as follows respectively: ; ; wherein, max_index represents a function returning the index of the maximum value; max_value represents a function returning the maximum value.

10. A system for cross-domain diagnosis of a fault in electromechanical equipment, characterized in that The mechanical and electrical equipment fault cross-domain diagnosis system configured or executed by the mechanical and electrical equipment fault cross-domain diagnosis method of any one of claims 1 to 9 comprises: A multi-source perception and data acquisition module comprising a high-frequency vibration acceleration sensor and a temperature sensor installed on the mechanical and electrical equipment, for real-time acquisition of real-time running data of the mechanical and electrical equipment to be diagnosed and conversion into digital sequences; The edge computing and preprocessing module is configured to preprocess the digital sequence by using a built-in sliding window slicing algorithm and a fast Fourier transform algorithm, to obtain preprocessed real-time fault data of the electromechanical equipment; The intelligent diagnosis reasoning module is configured to perform forward reasoning on the preprocessed real-time fault data of the electromechanical equipment based on a built-in final fault diagnosis model, to calculate a prediction probability distribution of a fault category, and then to output a prediction confidence according to the prediction probability distribution of the fault category; The interactive monitoring and alarm module includes a display terminal and an audible and visual alarm, and is configured to perform intelligent alarm by using a "category-confidence-temperature" multiple verification mechanism; The data transmission and storage module is configured to realize data transmission between the multi-source sensing and data acquisition module, the edge computing and preprocessing module, the intelligent diagnosis reasoning module and the interactive monitoring and alarm module, and data storage.

Citation Information

Patent Citations

  • Transfer learning bearing fault diagnosis method and device based on width multi-scale space-time attention, and storage medium

    CN116337448A

  • Cross-device domain adaptation method based on domain decoupling and class confusion minimization feature alignment

    CN118035783A

  • Generating a target classifier for a target domain via source-free domain adaptation using an adaptive adversarial neural network

    US20230094415A1

Cited By

  • Double-flow confrontation fault diagnosis method and system based on symmetric point mode image

    CN122112783A