Bearing fault diagnosis method and system based on transfer learning
Through the method based on transfer learning, the problems of low accuracy and poor generalization ability of bearing fault diagnosis models under different load conditions in the existing technology are solved, and more efficient and widely applicable bearing fault diagnosis is achieved.
Patent Information
- Application Number
- CN202410906273.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-29
AI Technical Summary
Existing intelligent fault diagnosis models have problems such as low accuracy and poor generalization ability under different load conditions, making it difficult to adapt to bearing fault diagnosis under complex working conditions.
Using a method based on transfer learning, the original vibration signals of the bearing under different working conditions are processed in the frequency domain, a shared feature subspace is defined, a cross-domain Laplacian diagram is constructed, and the edge distribution difference and conditional distribution difference between domains are calculated to construct The loss function, combined with the empirical risk of source domain samples and the prediction error penalty of target domain samples, is iteratively optimized to initialize the fault diagnosis classification function.
It improves the accuracy and efficiency of bearing fault diagnosis, enhances the generalization ability of the model, can better adapt to fault diagnosis under different working conditions and bearing models, and ensures performance on training data while maintaining high performance on new data. .
Smart Images

Figure CN118861815A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of bearing component fault diagnosis, and in particular to a bearing fault diagnosis method and system based on transfer learning. Background Art
[0002] Long-term operation of mechanical equipment will cause problems such as reduced equipment accuracy and performance degradation of key components, which will lead to failure or malfunction of mechanical equipment, which may affect production at the least and damage the entire equipment at the worst, resulting in significant economic losses. According to statistics, equipment failures caused by bearing failure account for about 40% of the total failure causes. Therefore, real-time monitoring of the operating status of mechanical bearings, discovering their potential failure modes and timely maintenance are of great significance to ensure the safe and stable operation of the production system.
[0003] In the context of industrial big data in intelligent manufacturing, data-driven intelligent fault diagnosis methods have become a research hotspot in the field of fault diagnosis in recent years. First, the key features in the fault signal are highlighted using the feature extraction method of signal processing, and then the association between the fault features and different fault modes is established. However, in actual complex working conditions, for the same equipment, its workload usually changes due to different processing tasks, and the fault signals collected by the sensor usually come from different load conditions, resulting in heterogeneous scenarios in different feature spaces, although the fault modes represented by the collected signals are the same.
[0004] Therefore, a fault diagnosis method trained under a load condition is only applicable to the distribution space corresponding to the condition. Once the load changes, its diagnostic ability will also change. In summary, the intelligent fault diagnosis model in the prior art has the problems of low accuracy and poor generalization ability, and is difficult to be extended to engineering practice applications. Summary of the invention
[0005] Based on this, the present application proposes a bearing fault diagnosis method and system based on transfer learning, aiming to solve the problems of low accuracy and poor generalization ability of the intelligent fault diagnosis model in the prior art.
[0006] A first aspect of the present application provides a bearing fault diagnosis method based on transfer learning, the method comprising: S1: Collect original vibration signals of the bearing under different working conditions, perform frequency domain processing on the original vibration signals, divide them into a source domain data set and a target domain data set, define the source domain data set and the target domain data set as source domain data samples with fault labels and target domain data samples without fault labels, respectively, and project the source domain data samples and the target domain data samples to a shared feature subspace. ; S2: Based on the shared feature subspace , define the fault diagnosis classification function parameters , construct the fault diagnosis classification function as: ,in Indicates input of the target domain data to be tested. Indicates output bearing fault label; S3: constructing a cross-domain Laplace graph in the label space of the cross-domain data, and performing Laplace regularization in the cross-domain Laplace graph to obtain a Laplace regularization term; S4: Based on the shared feature subspace Calculate the marginal distribution difference and conditional distribution difference between domains respectively to obtain the cross-domain data joint distribution alignment item; S5: Construct the loss function term based on the empirical risk of source domain samples and the prediction error penalty of target domain samples; S6: constructing an objective function according to the loss function term, the cross-domain data joint distribution alignment term and the Laplace regularization term, and introducing a model complexity regularization term into the objective function; S7: Using the source domain data sample to train the fault diagnosis classification function to initialize the fault diagnosis classification function parameters , in the cross-domain Laplacian graph, the target domain probability pseudo-label is initialized according to the label propagation algorithm , initialize the shared feature subspace according to the principal component analysis algorithm ; S8: Iteratively optimize the parameters in the objective function, and the iterative optimization includes fixing renew ,fixed Update ,fixed renew , iterative optimization until the fault diagnosis classification function parameter W converges; S9: Substitute the converged fault diagnosis classification function parameter W into the fault diagnosis classification function, and when the target domain data to be tested is input, output the predicted bearing fault label result.
[0007] Compared with the prior art, the present application provides a bearing fault diagnosis method based on transfer learning, which constructs an objective function by combining the empirical risk of source domain samples, the prediction error penalty of target domain samples, the cross-domain data joint distribution alignment term, the Laplace regularization term, and the model complexity regularization term, thereby realizing the diagnosis of bearing faults. It has the following beneficial effects: 1. Improve the accuracy and efficiency of fault diagnosis: Introduce the concept of transfer learning. Through the knowledge transfer from the source domain (i.e. existing knowledge or data) to the target domain (i.e. the bearing to be diagnosed), it can make full use of existing experience and reduce the dependence on new data, thereby speeding up the diagnosis. Combined with the principle of structural risk minimization, it can ensure the performance of the model on the training data while also considering the model's generalization ability to new data, thereby improving the accuracy of diagnosis; 2. Enhance the generalization ability of the model: The introduction of cross-domain data joint distribution alignment and Laplace regularization helps to reduce the feature distribution differences between source domain and target domain data, so that the model can better adapt to fault diagnosis under different working conditions and bearing models. In this way, the model can not only perform well on training data, but also maintain high performance on a wider range of data sets, that is, it has stronger generalization ability.
[0008] It should be noted that the innovation of the present invention is: 1. By assigning soft probability pseudo labels to samples in the target domain, it can prevent the possible error accumulation caused by hard probability pseudo labels and use a semi-supervised framework to learn the fault diagnosis classification function; 2. The loss function of the fault diagnosis function not only considers the prediction loss of labeled data, but also considers the consistency loss between the Laplace prediction label of unlabeled data and the fault diagnosis classification function, so as to ensure the smoothness of the target label and the generalization performance of the fault diagnosis classification function. 3. The original features are projected into the common subspace, and the target domain samples use soft probability pseudo labels to calculate the conditional distribution to align the data distribution of the source domain and target domain samples, which can reduce the impact of class imbalance; 4. The method of independently optimizing feature learning and classifier learning in stages is changed. The present invention links feature learning and classifier learning through the probabilistic pseudo-labels of target samples, unifies them under the same framework, promotes each other, and learns iteratively.
[0009] As an optional implementation manner of the first aspect, the S1 includes: S11: Select the acceleration sensor at the drive end to collect original vibration signals of four working conditions: normal bearing, rolling element fault, inner ring fault, and outer ring fault; use fast Fourier transform to convert the original vibration signals into frequency domain signals, process them into data sets of different working conditions, and combine the data sets of different working conditions in pairs to form several groups of source domain data sets and target domain data sets; S12: Define the source domain dataset as ,in It means that the source domain contains m source domain data samples with dimension d, and the corresponding fault label is defined as , Represents the number of fault label categories; the source domain dataset is defined as , contains n target domain data samples without fault labels; S13: All data of source domain data samples and target domain data samples are collected Through principal component analysis, an orthogonal transformation matrix is found to transform all data Projected into the shared feature subspace P.
[0010] As an optional implementation manner of the first aspect, the S3 includes minimizing the Laplace regularization term, which is expressed by the formula: , Among them, Y represents the label matrix, represents the transposed label matrix, Represent the labels of the i-th and j-th samples in the source and target domains, respectively. Representation sample With sample The correlation value between represents the trace of the matrix, Represents the Laplacian matrix of the corresponding graph.
[0011] As an optional implementation of the first aspect, the S4 includes minimizing the cross-domain data joint distribution alignment item, which is expressed by the formula: , in, represents the difference in joint distribution between the source domain and the target domain, represents the conditional distribution difference between the source domain and the target domain, represents the difference in marginal distribution between the source domain and the target domain, represents the source domain label augmentation matrix, represents the source domain augmented diagonal matrix, represents the target domain label augmentation matrix, represents the target domain augmented diagonal matrix.
[0012] As an optional implementation manner of the first aspect, the loss function term in S5 is expressed by the formula: , in, represents the empirical risk term of the source domain samples, Represents the prediction error penalty term for target domain samples.
[0013] As an optional implementation manner of the first aspect, the objective function in S6 is expressed by a formula: , in, represents the objective function, represents the loss function term, represents the model complexity regularization term, represents the Laplace regularization term, represents the cross-domain data joint distribution alignment item, , Indicates the balance parameter corresponding to the item.
[0014] As an optional implementation manner of the first aspect, the iterative optimization in S8 includes: S81: Fixed renew , the formula after optimization is described as: , in is a diagonal matrix, , For the matrix The i-th row vector of For variables The partial derivative is set to 0, that is =0 , ; S82: Fixed Update , described by the formula: , , definition , , For variables The partial derivative is set to 0, that is =0, , according to the Sylvester equation ; S83: Fixed renew , keep the objective function The calculation item of , the optimization formula is described as: , , ,right Take the derivative and set it to 0, that is , Apply the Carlo-Kuhn-Tucker condition ,Right now , According to semi-nonnegative matrix factorization , in, , , .
[0015] A second aspect of an embodiment of the present application provides a bearing fault diagnosis system based on transfer learning, the system comprising: A data preparation module is used to collect original vibration signals of the bearing under different working conditions, perform frequency domain processing on the original vibration signals, divide them into a source domain data set and a target domain data set, define the source domain data set and the target domain data set as source domain data samples with fault labels and target domain data samples without fault labels, respectively, and project the source domain data samples and the target domain data samples to a shared feature subspace. ; A classification function building module for classifying based on the shared feature subspace , define the fault diagnosis classification function parameters , construct the fault diagnosis classification function as: ,in Indicates input of the target domain data to be tested. Indicates output bearing fault label; A Laplace regularization module, used for constructing a cross-domain Laplace graph in the label space of the cross-domain data, and performing Laplace regularization in the cross-domain Laplace graph to obtain a Laplace regularization term; A data distribution alignment module is used to align the data distribution based on the shared feature subspace. Calculate the marginal distribution difference and conditional distribution difference between domains respectively to obtain the cross-domain data joint distribution alignment item; The loss function construction module is used to construct the loss function term according to the empirical risk of the source domain samples and the prediction error penalty of the target domain samples; An objective function construction module, used to construct an objective function according to the loss function term, the cross-domain data joint distribution alignment term and the Laplace regularization term, and introduce a model complexity regularization term into the objective function; A variable initialization module is used to train the fault diagnosis classification function using the source domain data sample to initialize the fault diagnosis classification function parameters. , in the cross-domain Laplacian graph, the target domain probability pseudo-label is initialized according to the label propagation algorithm , initialize the shared feature subspace according to the principal component analysis algorithm ; The variable optimization module is used to iteratively optimize the parameters in the objective function. The iterative optimization includes fixed renew ,fixed Update ,fixed renew , iterative optimization until the fault diagnosis classification function parameter W converges; The result output module is used to substitute the converged fault diagnosis classification function parameter W into the fault diagnosis classification function, and when the target domain data to be tested is input, the predicted bearing fault label result is output.
[0016] A third aspect of an embodiment of the present application provides a computer device, which includes a memory, a processor, and a processing program stored in the memory and executable on the processor, wherein the processing program implements the above-mentioned bearing fault diagnosis method based on transfer learning when executed by the processor.
[0017] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, on which a processing program is stored. When the processing program is executed by a processor, the above-mentioned bearing fault diagnosis method based on transfer learning is executed.
[0018] Additional aspects and advantages of the present application will be given in part in the following description, and in part will become apparent from the following description, or will be understood through the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A first flow chart of a bearing fault diagnosis method based on transfer learning proposed in the first embodiment of the present application; Figure 2 A process demonstration diagram of a bearing fault diagnosis method based on transfer learning proposed in the first embodiment of the present application; Figure 3 A structural schematic diagram of a bearing fault diagnosis system based on transfer learning proposed in the second embodiment of the present application.
[0020] The following specific implementation methods will further illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0021] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Several embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0023] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0024] The first embodiment of the present application proposes a bearing fault diagnosis method based on transfer learning, such as Figure 1 FIG. 1 is a flow chart of a bearing fault diagnosis method based on transfer learning proposed in the first embodiment of the present application. Figure 2 This is a process demonstration diagram of a bearing fault diagnosis method based on transfer learning proposed in the first embodiment of the present application.
[0025] S1: Collect original vibration signals of the bearing under different working conditions, perform frequency domain processing on the original vibration signals, divide them into a source domain data set and a target domain data set, define the source domain data set and the target domain data set as source domain data samples with fault labels and target domain data samples without fault labels, respectively, and project the source domain data samples and the target domain data samples to a shared feature subspace. .
[0026] Specifically, the S1 includes S11, S12 and S13, wherein: S11: Select the acceleration sensor at the drive end to collect the original vibration signals of four working conditions: normal bearing, rolling element fault, inner ring fault and outer ring fault. Use fast Fourier transform to convert the original vibration signals into frequency domain signals, process them into data sets of different working conditions, and combine the data sets of different working conditions in pairs to form several groups of source domain data sets and target domain data sets.
[0027] It should be noted that the fault information of mechanical equipment can generally be collected through different sensors installed on the mechanical equipment. The collected information mainly includes the operating condition information of the equipment, real-time temperature, current, voltage, vibration (usually represented by acceleration), etc. Among them, the vibration signal represented by acceleration is the most commonly used fault information data set.
[0028] Exemplarily, the present invention uses the CWRU data set (bearing fault data set) released by Case Western Reserve University, selects the vibration data collected by the drive end acceleration sensor, the sampling frequency is 12kHz, and the four motor load conditions (0, 0.75kW, 1.5 kW, 2.25 kW) under the condition of light fault degree (diameter 0.18mm), 500 data for each condition, a total of 2000 data, and the data sets of the four conditions are marked as Data1, Data2, Data3, Data4. The fault mode is divided into four categories (normal, rolling element fault, inner ring fault, outer ring fault).
[0029] In this embodiment, the fast Fourier transform is used to convert the bearing time domain vibration signal into a frequency domain signal, and the data sets of different load conditions are processed. The combination of two can form several groups of source domain data and target domain data sets. The four working condition data sets can form 12 groups of migration data sets (Data1->Data2, Data1->Data3, Data1->Data4, Data2->Data1, Data2->Data3, Data2->Data4, Data3->Data1, Data3->Data2, Data3->Data4, Data4->Data1, Data4->Data2, Data4->Data3). Taking the first group of migration data as an example, Data1->Data2, Data1 is the source data, Data2 is the target domain data, and the fault diagnosis task is the known source data Data1, which has 500 data and its corresponding 4 fault modes, and predicts that the target domain Data2 has 500 data and its corresponding 4 fault modes.
[0030] S12: Define the source domain dataset as ,in It means that the source domain contains m source domain data samples with dimension d, and the corresponding fault label is defined as , Represents the number of fault label categories; the source domain dataset is defined as , contains n target domain data samples without fault labels.
[0031] Specifically, each set of data is uniformly defined as follows: source domain ,in It means that the source domain contains m data samples with dimension d, and the corresponding failure mode is defined as , Represents the number of failure mode categories; The target domain is defined as , contains n unlabeled samples. The marginal distributions of the source domain and the target domain are different , and the conditional distribution is different , the two domains share the feature space and the failure mode space , where the failure mode space (hereinafter referred to as label space) ={1,2 }.
[0032] For ease of understanding, the variable symbols involved in step S12 are explained as shown in Table 1.
[0033] Table 1 Symbols and meanings of variables in S12 S13: All data of source domain data samples and target domain data samples are collected Through principal component analysis, an orthogonal transformation matrix is found to transform all data Projected into the shared feature subspace P.
[0034] Specifically, for all data An orthogonal transformation matrix is found through principal component analysis to project the data into a shared feature subspace, preserving the source domain and target domain information by maximizing the data variance.
[0035] (1) represents the trace of the matrix. Solved by eigendecomposition The generalized eigenvalue of , H is the centralization matrix, ,in It can be composed of the eigenvectors corresponding to the first r largest eigenvalues. The data after feature changes can be expressed as .
[0036] For ease of understanding, the variable symbols involved in step S13 are explained as shown in Table 2.
[0037] Table 2 Symbols and meanings of variables in S13 S2: Based on the shared feature subspace , define the fault diagnosis classification function parameters , construct the fault diagnosis classification function as: ,in Indicates input of the target domain data to be tested. Indicates the output bearing fault label.
[0038] In the shared subspace P, define the fault diagnosis classification function parameters , enter the target domain data , Type of output bearing failure , expressed as: (2) The initial value of the source domain data The pre-trained classification model is obtained.
[0039] S3: construct a cross-domain Laplace graph in the label space of the cross-domain data, and perform Laplace regularization in the cross-domain Laplace graph to obtain a Laplace regularization term.
[0040] It should be noted that in order to maintain the manifold structure of the label space, a Laplace regularization term is constructed: (3) is the corresponding graph Laplacian matrix, , is the adjacency matrix, , The calculation method is: (4) Representative samples With sample The similarity measurement function is is a diagonal matrix, Calculated. Representation sample Here we take 5 nearest neighbor values, that is, k=5.
[0041] (5) Represents the cross-domain weight matrix between source and target domain samples. (6) For ease of understanding, the variable symbols involved in step S3 are explained as shown in Table 3.
[0042] Table 3 Symbols and meanings of variables in S3 S4: Based on the shared feature subspace The marginal distribution difference and conditional distribution difference between domains are calculated respectively to obtain the cross-domain data joint distribution alignment item.
[0043] In order to reduce the edge distribution and The difference between the conditional distribution with The empirical maximum mean difference (MMD) is used as the distance measure to align the distributions by minimizing the distance metric.
[0044] First, compute the marginal distribution differences: (7) The conditional distribution difference is then calculated by using the inter-domain class conditional distribution: (8) Indicates that it belongs to the category in the source domain The sample set of , the target domain label uses a probabilistic pseudo label, assuming that the target domain sample Belongs to a certain fault label The probability of ,at this time and , Represents the category in the target domain The number of samples, which may not be an integer, is given by the formula Approximate computing, target domain , and are all diagonal matrices, The elements are , the probability pseudo-label matrix of the target sample ,in , for each row of target samples there is The formula takes into account the class prior probability of the sample, which can reduce the impact of class imbalance to a certain extent. Finally, the marginal distribution and conditional distribution between domains are minimized at the same time, and formulas (7) and (8) are combined. (9) st , in, , , , H is the center matrix, , is a matrix of all 1s. Used to constrain the feature transformation space P to maintain data variance; Make sure that each value of the target probability pseudo label is not less than 0. Ensure that the probability of the target sample belonging to each class is 1.
[0045] For ease of understanding, the variable symbols involved in step S4 are explained as shown in Table 4.
[0046] Table 4 Symbols and meanings of variables in S4 S5: Construct the loss function term based on the empirical risk of source domain samples and the prediction error penalty of target domain samples.
[0047] It should be noted that the loss function Use the least square error to minimize it; (10) The first term of formula (10) is the empirical risk of the source domain samples, and the second term is the prediction error penalty of the target domain samples. This is also the characteristic of the present invention. Unlabeled target samples often contain a large amount of potential information such as variance. If target samples are introduced during the training process, the model can avoid over-reliance on source domain samples and cause overfitting. Therefore, the error penalty of the target domain is combined on the basis of the empirical error of the source domain to ensure the maximum smoothness and consistency of the target label. Here, the target domain label predicted by the graph label propagation algorithm is and the target domain label output by the classification diagnosis function The error between them is used as a penalty factor. is the label matrix, , containing known labels of the source domain and the target domain graph label ,because is the known source label, using the one-hot encoding class matrix, , Represents the target sample Belongs to a certain fault category The probability that the target sample exists in each row is .
[0048] S6: Construct an objective function according to the loss function term, the cross-domain data joint distribution alignment term and the Laplace regularization term, and introduce a model complexity regularization term into the objective function.
[0049] It should be noted that in order to ensure the generalization performance of the classification model, the structural risk minimization principle is used to optimize the classification model. Adding regularization term to the objective function , which can prevent the model from overfitting and achieve the effect of feature selection. The loss function is merged and the formula is integrated into the following form: (11) Then, formulas (6) and (9) are added as regularization terms to the objective function (11) to form the final objective function: (12) Will The equality conditions are relaxed to inequalities , and at the same time The inequality constraints are incorporated into the objective function using Lagrange multipliers: (13) S7: Using the source domain data sample to train the fault diagnosis classification function to initialize the fault diagnosis classification function parameters , in the cross-domain Laplacian graph, the target domain probability pseudo-label is initialized according to the label propagation algorithm , initialize the shared feature subspace according to the principal component analysis algorithm .
[0050] Specifically, we first use the fault diagnosis classification function parameter W to initialize the target domain data graph label , through the Laplacian graph created in S3, use the label propagation algorithm to predict the initial pseudo label of the target domain , especially the target pseudo label here It is a probabilistic pseudo-label, that is, the process of removing the last step of the label propagation algorithm to take the max to determine the category; then the shared subspace P is initialized by principal component analysis through S4; the classification diagnosis function is trained through samples and labels of the source domain data to obtain the initial parameter W.
[0051] S8: Iteratively optimize the parameters in the objective function, and the iterative optimization includes fixing renew ,fixed Update ,fixed renew , iterative optimization is performed until the fault diagnosis classification function parameter W converges.
[0052] Specifically, the iterative optimization in S8 includes S81, S82 and S83, wherein; S81: Fixed renew , only the first two items in the objective function have W calculations, so the optimization solution formula is described as: , in is a diagonal matrix, , For the matrix The i-th row vector of For variables The partial derivative is set to 0, that is =0 , . S82: Fixed Update , only two items in the objective function contain The calculation of , the optimization formula is described as: , , definition , , For variables The partial derivative is set to 0, that is =0, , according to the Sylvester equation . S83: Fixed renew , keep the objective function The calculation item of , the optimization formula is described as: , , ,right Take the derivative and set it to 0, that is , Apply the Carlo-Kuhn-Tucker condition ,Right now , According to semi-nonnegative matrix factorization , in, , , .
[0053] The above three optimization processes are iteratively performed, and the parameters are continuously updated until the fault diagnosis classification function parameter W converges.
[0054] For ease of understanding, the variable symbols involved in step S8 are explained as shown in Table 5.
[0055] Table 5 Symbols and meanings of variables in S8 S9: Substitute the converged fault diagnosis classification function parameter W into the fault diagnosis classification function, and when the target domain data to be tested is input, output the predicted bearing fault label result.
[0056] After all parameters are iteratively optimized and solved, the fault diagnosis classification function parameters are used here Complete the label reasoning of the target sample, which is different from other algorithms that use label propagation algorithms to calculate This has a stronger generalization performance for new data that has not been seen, which is also a feature of the present invention.
[0057] See also Figure 3 , shown is a structural schematic diagram of a bearing fault diagnosis system based on transfer learning in the second embodiment of the present application, the system comprising: The data preparation module 10 is used to collect the original vibration signals of the bearing under different working conditions, perform frequency domain processing on the original vibration signals, divide them into a source domain data set and a target domain data set, define the source domain data set and the target domain data set as source domain data samples with fault labels and target domain data samples without fault labels, respectively, and project the source domain data samples and the target domain data samples to a shared feature subspace. ; The classification function building module 20 is used to construct a classification function based on the shared feature subspace. , define the fault diagnosis classification function parameters , construct the fault diagnosis classification function as: ,in Indicates input of the target domain data to be tested. Indicates output bearing fault label; A Laplace regularization module 30, configured to construct a cross-domain Laplace graph in the label space of the cross-domain data, and perform Laplace regularization in the cross-domain Laplace graph to obtain a Laplace regularization term; The data distribution alignment module 40 is used to align the data distribution based on the shared feature subspace. Calculate the marginal distribution difference and conditional distribution difference between domains respectively to obtain the cross-domain data joint distribution alignment item; A loss function construction module 50, used to construct a loss function term according to the empirical risk of the source domain sample and the prediction error penalty of the target domain sample; An objective function construction module 60, configured to construct an objective function according to the loss function term, the cross-domain data joint distribution alignment term and the Laplace regularization term, and introduce a model complexity regularization term into the objective function; The variable initialization module 70 is used to train the fault diagnosis classification function using the source domain data sample to initialize the fault diagnosis classification function parameters. , in the cross-domain Laplacian graph, the target domain probability pseudo-label is initialized according to the label propagation algorithm , initialize the shared feature subspace according to the principal component analysis algorithm ; The variable optimization module 80 is used to iteratively optimize the parameters in the objective function. The iterative optimization includes fixed renew ,fixed Update ,fixed renew , iterative optimization until the fault diagnosis classification function parameter W converges; The result output module 90 is used to substitute the converged fault diagnosis classification function parameter W into the fault diagnosis classification function, and when the target domain data to be tested is input, output the predicted bearing fault label result.
[0058] On the other hand, the present application also proposes a computer device, which includes a memory, a processor, and a processing program stored in the memory and executable on the processor, and when the processing program is executed by the processor, the above-mentioned bearing fault diagnosis method based on transfer learning is implemented.
[0059] On the other hand, the present application further proposes a computer-readable storage medium, on which a processing program is stored. When the processing program is executed by a processor, the above-mentioned bearing fault diagnosis method based on transfer learning is executed.
[0060] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0061] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A bearing fault diagnosis method based on transfer learning, characterized in that: The method comprises: S1: Collect original vibration signals of the bearing under different working conditions, perform frequency domain processing on the original vibration signals, divide them into a source domain data set and a target domain data set, define the source domain data set and the target domain data set as source domain data samples with fault labels and target domain data samples without fault labels, respectively, and project the source domain data samples and the target domain data samples to a shared feature subspace. ; S2: Based on the shared feature subspace , define the fault diagnosis classification function parameters , construct the fault diagnosis classification function as: ,in Indicates input of the target domain data to be tested. Indicates output bearing fault label; S3: constructing a cross-domain Laplace graph in the label space of the cross-domain data, and performing Laplace regularization in the cross-domain Laplace graph to obtain a Laplace regularization term; S4: Based on the shared feature subspace Calculate the marginal distribution difference and conditional distribution difference between domains respectively to obtain the cross-domain data joint distribution alignment item; S5: Construct the loss function term based on the empirical risk of source domain samples and the prediction error penalty of target domain samples; S6: constructing an objective function according to the loss function term, the cross-domain data joint distribution alignment term and the Laplace regularization term, and introducing a model complexity regularization term into the objective function; S7: Using the source domain data sample to train the fault diagnosis classification function to initialize the fault diagnosis classification function parameters , in the cross-domain Laplacian graph, the target domain probability pseudo-label is initialized according to the label propagation algorithm , initialize the shared feature subspace according to the principal component analysis algorithm ; S8: Iteratively optimize the parameters in the objective function, and the iterative optimization includes fixing renew ,fixed Update ,fixed renew , iterative optimization until the fault diagnosis classification function parameter W converges; S9: Substitute the converged fault diagnosis classification function parameter W into the fault diagnosis classification function, and when the target domain data to be tested is input, output the predicted bearing fault label result.
2. The bearing fault diagnosis method according to claim 1, characterized in that: The S1 includes: S11: Select the acceleration sensor at the drive end to collect original vibration signals of four working conditions: normal bearing, rolling element fault, inner ring fault, and outer ring fault; use fast Fourier transform to convert the original vibration signals into frequency domain signals, process them into data sets of different working conditions, and combine the data sets of different working conditions in pairs to form several groups of source domain data sets and target domain data sets; S12: Define the source domain dataset as ,in It means that the source domain contains m source domain data samples with dimension d, and the corresponding fault label is defined as , Represents the number of fault label categories; the source domain dataset is defined as , contains n target domain data samples without fault labels; S13: All data of source domain data samples and target domain data samples are collected Through principal component analysis, an orthogonal transformation matrix is found to transform all data Projected into the shared feature subspace P.
3. The bearing fault diagnosis method according to claim 2, characterized in that: The S3 consists of minimizing the Laplace regularization term, which is expressed as: , Among them, Y represents the label matrix, represents the transposed label matrix, Represent the labels of the i-th and j-th samples in the source and target domains, respectively. Representation sample With sample The correlation value between represents the trace of the matrix, Represents the Laplacian matrix of the corresponding graph.
4. The bearing fault diagnosis method according to claim 3, characterized in that: The S4 includes minimizing the cross-domain data joint distribution alignment term, which is expressed as: , in, represents the difference in joint distribution between the source domain and the target domain, represents the conditional distribution difference between the source domain and the target domain, represents the difference in marginal distribution between the source domain and the target domain, represents the source domain label augmentation matrix, represents the source domain augmented diagonal matrix, represents the target domain label augmentation matrix, represents the target domain augmented diagonal matrix.
5. The bearing fault diagnosis method according to claim 4, characterized in that: The loss function term in S5 is expressed as follows: , in, represents the empirical risk term of the source domain samples, Represents the prediction error penalty term for target domain samples.
6. The bearing fault diagnosis method according to claim 5, characterized in that: The objective function in S6 is expressed as follows: , in, represents the objective function, represents the loss function term, represents the model complexity regularization term, represents the Laplace regularization term, represents the cross-domain data joint distribution alignment item, , Indicates the balance parameter corresponding to the item.
7. The bearing fault diagnosis method according to claim 6, characterized in that: The iterative optimization in S8 includes: S81: Fixed renew , the formula after optimization is described as: , in is a diagonal matrix, , For the matrix The i-th row vector of For variables The partial derivative is set to 0, that is =0 , ; S82: Fixed Update , described by the formula: , , definition , , For variables The partial derivative is set to 0, that is =0, , according to the Sylvester equation ; S83: Fixed renew , keep the objective function The calculation item of , the optimization formula is described as: , , ,right Take the derivative and set it to 0, that is , Apply the Carlo-Kuhn-Tucker condition ,Right now , According to semi-nonnegative matrix factorization , in, , , 。 8. A bearing fault diagnosis system based on transfer learning, characterized in that: The system comprises: A data preparation module is used to collect original vibration signals of the bearing under different working conditions, perform frequency domain processing on the original vibration signals, divide them into a source domain data set and a target domain data set, define the source domain data set and the target domain data set as source domain data samples with fault labels and target domain data samples without fault labels, respectively, and project the source domain data samples and the target domain data samples to a shared feature subspace. ; A classification function building module for classifying based on the shared feature subspace , define the fault diagnosis classification function parameters , construct the fault diagnosis classification function as: ,in Indicates input of the target domain data to be tested. Indicates output bearing fault label; A Laplace regularization module, used for constructing a cross-domain Laplace graph in the label space of the cross-domain data, and performing Laplace regularization in the cross-domain Laplace graph to obtain a Laplace regularization term; A data distribution alignment module is used to align the data distribution based on the shared feature subspace. Calculate the marginal distribution difference and conditional distribution difference between domains respectively to obtain the cross-domain data joint distribution alignment item; The loss function construction module is used to construct the loss function term according to the empirical risk of the source domain samples and the prediction error penalty of the target domain samples; An objective function construction module, used to construct an objective function according to the loss function term, the cross-domain data joint distribution alignment term and the Laplace regularization term, and introduce a model complexity regularization term into the objective function; A variable initialization module is used to train the fault diagnosis classification function using the source domain data sample to initialize the fault diagnosis classification function parameters. , in the cross-domain Laplacian graph, the target domain probability pseudo-label is initialized according to the label propagation algorithm , initialize the shared feature subspace according to the principal component analysis algorithm ; The variable optimization module is used to iteratively optimize the parameters in the objective function. The iterative optimization includes fixed renew ,fixed Update ,fixed renew , iterative optimization until the fault diagnosis classification function parameter W converges; The result output module is used to substitute the converged fault diagnosis classification function parameter W into the fault diagnosis classification function, and when the target domain data to be tested is input, the predicted bearing fault label result is output.
9. A computer device, characterized in that: The computer device includes a memory, a processor, and a processing program stored in the memory and executable on the processor. When the processing program is executed by the processor, a bearing fault diagnosis method based on transfer learning as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a processing program, and when the processing program is executed by a processor, the bearing fault diagnosis method based on transfer learning as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Bearing unbalance fault diagnosis method and system cooperatively guided by double classifiers
CN119827155A
Multi-source domain approximation fault diagnosis method combining real data and mechanism data for fluctuating rotating speed working condition
CN120257056A
