Bearing fault detection method, training method, device, equipment, medium and product
By fusing time-domain and frequency-domain features into the bearing fault detection model and using data augmentation and feature extraction networks to process bearing data, the problem of low accuracy in bearing fault detection in existing technologies is solved, and more accurate fault category identification is achieved.
Patent Information
- Application Number
- CN202410966938.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-18
AI Technical Summary
The accuracy of bearing fault detection in existing technologies is low, especially when the cost of generating bearing fault data is high and the amount of data is small. Deep learning classification models are difficult to train sufficiently, resulting in low classification accuracy.
By inputting bearing data into the target bearing fault detection model, the bearing time-domain and frequency-domain features are fused, including the combination of time-domain feature extraction network and frequency-domain feature extraction network. The bearing data is standardized using a data augmentation network, and the initial frequency-domain features are obtained through Fourier transform and radiative transform. After filtering, fault identification is performed.
This improves the accuracy of bearing fault detection by comprehensively considering the characteristics of bearing data in both the time and frequency domains, resulting in more comprehensive and accurate bearing fault category results.
Smart Images

Figure CN118965098A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of fault detection, and in particular to a bearing fault detection method, a training method, an apparatus, a computer device, a storage medium and a computer program product for a bearing fault detection model. Background Art
[0002] Bearings are an important component in mechanical equipment, used to support mechanical rotating bodies, reduce the friction coefficient during movement, and ensure their rotation accuracy. Therefore, bearing fault detection is crucial to the safe operation of mechanical equipment.
[0003] In related technologies, when performing bearing fault detection, it is usually necessary to label the bearing data, then obtain a deep learning classification model based on the labeled data set, and finally detect the bearing through the deep learning classification model to obtain the bearing fault type.
[0004] However, there is a problem in the related art that the accuracy of fault detection results is low. Summary of the invention
[0005] Based on this, it is necessary to provide a bearing fault detection method, a training method, device, computer equipment, storage medium and computer program product for a bearing fault detection model that can improve the accuracy of bearing fault detection results in response to the above technical problems.
[0006] In a first aspect, the present application provides a bearing fault detection method, the method comprising:
[0007] In response to a fault detection instruction of a target bearing, acquiring bearing data and a target bearing fault detection model;
[0008] The bearing data is input into the target bearing fault detection model. The bearing time domain features and bearing frequency domain features in the bearing data are fused through the target bearing fault detection model. Fault identification is performed on the fused features to obtain the bearing fault category of the target bearing.
[0009] In one embodiment, the target bearing fault detection model includes a time domain feature extraction network and a frequency domain feature extraction network, and the bearing time domain features and the bearing frequency domain features in the bearing data are fused and processed by the target bearing fault detection model, including:
[0010] Inputting the bearing data into a time domain feature extraction network to obtain the bearing time domain features; and inputting the bearing data into a frequency domain feature extraction network to obtain the bearing frequency domain features;
[0011] The time domain features and frequency domain features of the bearing are superimposed to obtain the fused features.
[0012] In one embodiment, bearing data is input into a frequency domain feature extraction network to obtain bearing frequency domain features, including:
[0013] The bearing data is processed by Fourier transform and radiation transform in sequence to obtain the initial frequency domain characteristics of the bearing;
[0014] The initial frequency domain characteristics of the bearing are filtered based on the spectrum intensity distribution in the initial frequency domain characteristics of the bearing to obtain the frequency domain characteristics of the bearing.
[0015] In one embodiment, the target bearing fault detection model further includes a data enhancement network. Before fusing the bearing time domain features and the bearing frequency domain features in the bearing data, the method further includes:
[0016] The bearing data is input into the data enhancement network, and the bearing data is standardized through the data enhancement network to obtain the bearing time series array, and the bearing time series array is subjected to feature fusion processing to obtain the processed bearing data.
[0017] In a second aspect, the present application provides a method for training a bearing fault detection model, the method comprising:
[0018] Obtaining an initial bearing fault detection model and a bearing fault data set; the initial bearing fault detection model includes an initial time domain feature extraction network and an initial frequency domain feature extraction network;
[0019] According to the bearing fault data set, the initial time domain feature extraction network and the initial frequency domain feature extraction network are trained to obtain the target bearing fault detection model; the target bearing fault detection model is used to fuse the bearing time domain features and the bearing frequency domain features of the bearing data in the target bearing, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
[0020] In one embodiment, the initial bearing fault detection model further includes an initial data enhancement network; an initial time domain feature extraction network and an initial frequency domain feature extraction network in the initial bearing fault detection model are trained according to the bearing fault data set to obtain a target bearing fault detection model, including:
[0021] According to the bearing fault data set, the initial data enhancement network, the initial time domain feature extraction network and the initial frequency domain feature extraction network are trained simultaneously to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network;
[0022] Based on the data enhancement network, time domain feature extraction network and frequency domain feature extraction network, the target bearing fault detection model is obtained.
[0023] In one embodiment, a bearing fault data set includes bearing data samples; according to the bearing data samples, an initial data enhancement network, a time domain feature extraction network, and an initial frequency domain feature extraction network are simultaneously trained to obtain a data enhancement network, a time domain feature extraction network, and a frequency domain feature extraction network, including:
[0024] Input the bearing data samples into the initial data enhancement network to obtain the bearing standardized data;
[0025] Inputting the bearing standardized data into the initial time domain feature extraction network to obtain the time domain loss, and inputting the bearing standardized data into the initial frequency domain feature extraction network to obtain the frequency domain loss;
[0026] Based on the time domain loss and the frequency domain loss, the initial data enhancement network, the time domain feature extraction network and the initial frequency domain feature extraction network are trained to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network.
[0027] In one embodiment, the bearing data sample is input into the initial data enhancement network, including:
[0028] The bearing data samples are stored in a queue of preset capacity, and the bearing data samples in the queue are continuously updated;
[0029] The bearing data samples currently stored in the queue are input into the initial data augmentation network.
[0030] In one embodiment, the bearing normalized data is input into the initial time domain feature extraction network to obtain the time domain loss, including:
[0031] Different parameter updating methods are used to update the network parameters in the initial time domain feature extraction network, and two sets of parameter updating results are obtained. By comparing the two sets of parameter updating results, the time domain loss is obtained.
[0032] In one embodiment, the bearing standardized data is input into the initial frequency domain feature extraction network to obtain the frequency domain loss, including:
[0033] Different parameter updating methods are used to update the network parameters in the initial frequency domain feature extraction network, and two sets of parameter updating results are obtained. By comparing the two sets of parameter updating results, the frequency domain loss is obtained.
[0034] In one embodiment, the bearing fault data set includes bearing test samples and bearing test labels; the initial bearing fault detection model also includes an initial fault classification network; based on the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network, a target bearing fault detection model is obtained, including:
[0035] Input the bearing test sample into the initial bearing fault detection model to obtain the bearing test result;
[0036] Based on the loss value between the bearing test results and the bearing test labels, the parameters in the initial fault classification network are trained while keeping the parameters of the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network unchanged to obtain the target bearing fault detection model.
[0037] In a third aspect, the present application also provides a bearing fault detection device, comprising:
[0038] An instruction response module, used to respond to a fault detection instruction of a target bearing and obtain bearing data and a target bearing fault detection model;
[0039] The fault identification module is used to input the bearing data into the target bearing fault detection model, fuse the bearing time domain features and the bearing frequency domain features in the bearing data through the target bearing fault detection model, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
[0040] In a fourth aspect, the present application also provides a training device for a bearing fault detection model, comprising:
[0041] A data acquisition module is used to acquire an initial bearing fault detection model and a bearing fault data set; the initial bearing fault detection model includes an initial time domain feature extraction network and an initial frequency domain feature extraction network;
[0042] The model training module is used to train the initial time domain feature extraction network and the initial frequency domain feature extraction network according to the bearing fault data set to obtain the target bearing fault detection model; the target bearing fault detection model is used to fuse the bearing time domain features and the bearing frequency domain features of the bearing data in the target bearing, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
[0043] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any one of the embodiments of the first aspect or the second aspect are implemented.
[0044] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in any one of the embodiments of the first or second aspect above.
[0045] In a seventh aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method in any one of the embodiments of the first aspect or the second aspect.
[0046] The above-mentioned bearing fault detection method, device, computer equipment, storage medium and computer program product, in response to the fault detection instruction of the target bearing, obtains the bearing data and the target bearing fault detection model, and inputs the bearing data into the target bearing fault detection model, and fuses the bearing time domain features and the bearing frequency domain features in the bearing data through the target bearing fault detection model, and performs fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing. In this method, the bearing time domain features and the bearing frequency domain features in the bearing data are fused through the target bearing fault detection model, and the fault identification is performed on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing, which is equivalent to comprehensively considering the characteristics of the bearing data in the time domain and the frequency domain when performing fault identification on the bearing data, so as to characterize more comprehensive and accurate bearing status information. Furthermore, the bearing fault category result determined based on the complete and comprehensive bearing status information is also more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 is an internal structure diagram of a computer device in one embodiment;
[0049] Figure 2 A schematic diagram of a flow chart of a bearing fault detection method in one embodiment;
[0050] Figure 3 is a flowchart of a feature fusion step in an embodiment;
[0051] Figure 4 A schematic diagram of a flow chart of a frequency domain feature extraction step in one embodiment;
[0052] Figure 5 A schematic diagram of a flow chart of a bearing fault detection method in another embodiment;
[0053] Figure 6 A schematic diagram of a flow chart of a method for training a bearing fault detection model in one embodiment;
[0054] Figure 7is a schematic diagram of the architecture of a target bearing fault detection model in one embodiment;
[0055] Figure 8 A schematic flow chart of a step of acquiring a target bearing fault detection model in one embodiment;
[0056] Fig. 9 A schematic flow chart of a step of acquiring a target bearing fault detection model in another embodiment;
[0057] Fig.10 A schematic diagram of a flow chart of a feature extraction network training step in another embodiment;
[0058] Fig.11 A flowchart of a comparative learning training step in one embodiment;
[0059] Fig.12 A schematic diagram of a process flow of a queue sample update step in one embodiment;
[0060] Fig.13 A schematic flow chart of a method for training a bearing fault detection model in another embodiment;
[0061] Fig.14 A schematic diagram of the architecture of a feature extraction network in one embodiment;
[0062] Fig.15 is a structural block diagram of a bearing fault detection device in one embodiment;
[0063] Fig.16 The structure block diagram of a training device for a bearing fault detection model in one embodiment. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] The bearing fault detection method or the bearing fault detection model training method provided in the embodiment of the present application can be applied to a computer device. The computer device can be a server, and its internal structure diagram can be as follows: Figure 1As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store fault detection data or model training data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a bearing fault detection method or a bearing fault detection model training method is implemented.
[0066] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0067] Bearings are an important part of mechanical equipment, used to support mechanical rotating bodies and reduce the friction coefficient of mechanical rotating bodies during movement. In this case, bearing fault detection is crucial to the safe operation of mechanical equipment.
[0068] In the related art, when fault detection is performed on bearings, there are two methods, supervised learning and unsupervised learning.
[0069] Among them, supervised learning requires the annotation of bearing data, and then the deep learning classification model is trained based on the annotated data set, and finally the bearing is detected through the deep learning classification model to obtain the bearing fault type. However, in the specific field of bearing fault detection, the cost of generating bearing fault data or abnormal data is high, the standard is difficult, and the data volume of the data set is small, which makes it difficult to fully train the deep learning classification model, resulting in low classification accuracy of the model.
[0070] Unsupervised learning is usually the representation learning of unlabeled time series data, which often focuses too much on the relationship between data samples in the time domain and ignores the characteristics of time series data in other domains. In addition, unsupervised learning methods are suitable for detecting stationary data. For non-stationary data such as bearing fault data, feature extraction is often prone to overfitting, which leads to poor robustness of the model and affects the accuracy of model fault identification.
[0071] In summary, considering the low accuracy of fault detection results based on bearing data in related technologies, this application proposes to input bearing data into a target bearing fault detection model, fuse the bearing time domain features and bearing frequency domain features in the bearing data through the target bearing fault detection model, and perform fault identification on the features obtained by the fusion process to obtain the bearing fault category of the target bearing. This is equivalent to comprehensively considering the characteristics of the bearing data in the time domain and frequency domain when identifying faults in the bearing data to characterize more comprehensive and accurate bearing data characteristics. Furthermore, the bearing fault category results determined based on the bearing data characteristics are also more accurate.
[0072] In an exemplary embodiment, Figure 2 As shown, a bearing fault detection method is provided, the method comprising:
[0073] S201, in response to a fault detection instruction of a target bearing, acquiring bearing data and a target bearing fault detection model.
[0074] The target bearing may be any working bearing currently running on the mechanical equipment, or may be a historical bearing that has ever run on the mechanical equipment.
[0075] The target bearing fault detection instruction is used to instruct the computer device to execute a bearing fault detection step, specifically to determine whether the target bearing has a fault, and if the target bearing has a fault, to further determine the bearing fault category of the target bearing.
[0076] The fault detection instruction can be triggered automatically or manually when a bearing fault is detected, that is, when a target bearing is determined; it can also be triggered after a designated target bearing on the mechanical equipment is determined as the target bearing during the operation of the mechanical equipment.
[0077] In an embodiment of the present application, in response to a fault detection instruction of a target bearing, operating data of the target bearing is collected as bearing data, and a target bearing fault detection model is determined from a database.
[0078] Exemplarily, if the target bearing is a confirmed faulty bearing, the fault detection instruction carries the bearing data. At this time, the computer device responds to the fault detection instruction and can directly extract the bearing data from the fault detection instruction.
[0079] For example, if the target bearing is a currently running bearing, and the fault detection instruction carries the data collection time, then the computer device responds to the fault detection instruction and collects the operation data within the preset time period from the current moment as the bearing data. The computer device can be directly connected to the device where the target bearing is located through a cable to collect the bearing data, or it can be connected to the mechanical device to which the target bearing belongs through an intelligent collection device to obtain the bearing data collected by the intelligent collection device.
[0080] The target bearing fault detection model is a trained deep learning classification model, which is suitable for fault detection of different types of target bearings and has reusability. In the embodiment of the present application, the input of the target bearing fault detection model is bearing data, and the output is the bearing fault type.
[0081] S202, input the bearing data into the target bearing fault detection model, fuse the bearing time domain features and the bearing frequency domain features in the bearing data through the target bearing fault detection model, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
[0082] After determining the bearing data and the target bearing fault detection model, the bearing data is used as the input of the target bearing fault detection model. The target bearing fault detection model is used to extract the bearing time domain features and the bearing frequency domain features of the bearing data, and the bearing time domain features and the bearing frequency domain features are obtained respectively. Then, the bearing time domain features and the bearing frequency domain features are fused, so that the fused features cover the characteristics of the bearing data in both the time domain and the frequency domain, and can more comprehensively and completely characterize the characteristics of the bearing data. On this basis, the fused features are used for fault identification, that is, the characteristics of multiple dimensions of the bearing data are integrated for identification to obtain more accurate bearing fault classification results.
[0083] In an embodiment of the present application, in response to a fault detection instruction of a target bearing, bearing data and a target bearing fault detection model are acquired, and the bearing data is input into the target bearing fault detection model, and the bearing time domain features and the bearing frequency domain features in the bearing data are fused through the target bearing fault detection model, and fault identification is performed on the features obtained by the fusion process to obtain the bearing fault category of the target bearing. In this method, the bearing time domain features and the bearing frequency domain features in the bearing data are fused through the target bearing fault detection model, and fault identification is performed on the features obtained by the fusion process to obtain the bearing fault category of the target bearing, which is equivalent to comprehensively considering the characteristics of the bearing data in the time domain and the frequency domain when performing fault identification on the bearing data to characterize more comprehensive and accurate bearing status information. Furthermore, the bearing fault category result determined based on the complete and comprehensive bearing status information is also more accurate.
[0084] It can be seen from the above embodiments that the bearing fault category is determined based on the features obtained by fusing the bearing time series features and the bearing frequency domain features. Based on this, the following further describes the steps of obtaining and fusing the bearing time series features and the bearing frequency domain features through an embodiment.
[0085] In an exemplary embodiment, Figure 3 As shown, the target bearing fault detection model includes a time domain feature extraction network and a frequency domain feature extraction network. The target bearing fault detection model is used to fuse the bearing time domain features and the bearing frequency domain features in the bearing data, including:
[0086] S301, inputting the bearing data into a time domain feature extraction network to obtain the bearing time domain features; and, inputting the bearing data into a frequency domain feature extraction network to obtain the bearing frequency domain features.
[0087] The target bearing fault detection model includes two feature extraction networks in parallel: a time domain feature extraction network and a frequency domain feature extraction network.
[0088] Among them, the time domain feature extraction network includes multiple one-dimensional convolutional layers and pooling layers, which are used to extract the time series characteristics of bearing data in the time domain, namely, the bearing time domain characteristics.
[0089] It should be noted that, considering that time domain feature extraction is very sensitive to the size of the one-dimensional convolution kernel, in order to avoid overfitting or underfitting of the time domain feature extraction network, the sizes of the convolution kernels in the time domain feature extraction network are different, that is, different sizes of convolution kernels are set in the time domain feature extraction network. The pooling layer can be an average pooling layer, which is used to pool the convolutional features along the convolution kernel dimension and the time dimension, while retaining important feature information, discarding some unimportant details, and reducing the spatial dimension of the features output by the convolution layer, thereby achieving feature dimensionality reduction. As shown in the following formula:
[0090]
[0091] In the above formula, M is the number of convolution kernels, L is the sequence length of the sample, and X is i is the i-th feature output by the convolution module, and T is the sequential time dimension of the bearing data.
[0092] Among them, the frequency domain feature extraction network includes frequency domain features and frequency domain filtering features, which are used to extract the time-invariant components of bearing data in the frequency domain, namely, bearing frequency domain features.
[0093] The bearing data is input into the frequency domain feature extraction network to first extract the frequency domain features of the bearing data, then differentiate the frequency domain features to obtain the time-varying components and the time-invariant components, and then determine the time-invariant components as the bearing frequency domain features.
[0094] S302, superimposing the time domain features of the bearing and the frequency domain features of the bearing to obtain fused features.
[0095] The size of the bearing time domain features and the bearing frequency domain features are the same. Based on this, the bearing time domain features can be superimposed with the features at the corresponding positions in the bearing frequency domain features according to the feature positions to obtain the fused features.
[0096] In the embodiment of the present application, the bearing data is input into the time domain feature extraction network to obtain the bearing time domain feature; and the bearing data is input into the frequency domain feature extraction network to obtain the bearing frequency domain feature, and the bearing time domain feature and the bearing frequency domain feature are superimposed to obtain the fused feature, which completely and accurately characterizes the characteristics of the bearing data. In addition, the bearing data is processed in parallel through two networks (the time domain feature extraction network and the bearing frequency domain feature extraction network) to obtain the bearing time domain feature and the bearing frequency domain feature, which can also shorten the feature extraction time to a certain extent and speed up the fault detection efficiency.
[0097] Next, the steps for obtaining the frequency domain characteristics of the bearing are described. In an exemplary embodiment, Figure 4 As shown, the bearing data is input into the frequency domain feature extraction network to obtain the bearing frequency domain features, including:
[0098] S401, performing Fourier transform processing and radial transform processing on the bearing data in sequence to obtain initial frequency domain characteristics of the bearing.
[0099] First, the bearing data is subjected to a discrete Fourier transform (DFT) to transform the sampling of the time domain signal into sampling in the discrete time Fourier transform frequency domain, so as to separate the frequency domain features in the bearing data from the bearing data. The calculation formula of DFT is as follows:
[0100]
[0101] In the above formula, i is the i-th sample in the sample set, k is the k-th frequency domain component, c is the number of channels, L is the sample length, and j is the complex operator.
[0102] In order to obtain frequency domain features that are discriminative for different fault stages and categories, the amplitude of the bearing data in the frequency domain is further obtained. The calculation method is as follows:
[0103]
[0104] In the above formula, A i is the amplitude of the frequency domain feature, R e is the real part of the frequency domain feature, I mis the imaginary part of the frequency domain feature, the i-th sample in the i-th sample set, k is the k-th frequency domain component, and C is the number of channels.
[0105] Furthermore, in order to allow the frequency domain features between different channels to interact, a self-attention mechanism is used to design a learnable affine transformation layer. The implementation is as follows:
[0106]
[0107]
[0108] In the above formula, T1 and T2 are two parameters of the affine transformation layer, F is the frequency domain length, i is the i-th sample in the sample set, k is the k-th frequency domain component, c is the number of channels, C is the total number of channels, and einsum() is the affine transformation layer operation.
[0109] S402, filtering the initial frequency domain characteristics of the bearing based on the frequency spectrum intensity distribution in the initial frequency domain characteristics of the bearing to obtain the frequency domain characteristics of the bearing.
[0110] It should be noted that the initial frequency domain characteristics of the bearing obtained after discrete Fourier transform and radioactive transform processing are generated by taking into account the decomposable characteristics of non-stationary data in the frequency domain. This feature can already characterize the bearing characteristics under complex fault scenarios to a certain extent.
[0111] In actual scenarios, based on the decomposable characteristics of frequency domain features, the time-invariant features after decomposition, the time-varying features after decomposition, and the frequency domain features before decomposition are identified respectively to obtain the corresponding identification results. Through a large number of experimental verifications, it is concluded that the time-invariant features can best reflect the characteristics of bearing faults.
[0112] Based on this, for the bearing fault diagnosis task, the embodiment of the present application also needs to extract the time-invariant components of each specific stage and specific fault category data, and filter them based on the spectral intensity distribution to select a frequency set with high intensity in each stage as the main frequency feature of that stage.
[0113] The specific process is as follows:
[0114] According to the data set of each fault category, the spectral distribution intensity of its amplitude is calculated, and then it is arranged according to the intensity to determine the globally shared spectrum. Average pooling is performed along the frequency domain dimension, and the frequency domain features are filtered to obtain the bearing frequency domain features.
[0115] The features of the data set whose spectrum distribution intensity is greater than the spectrum are averaged to obtain the filtered bearing frequency domain features.
[0116] In an embodiment of the present application, the bearing data is sequentially subjected to Fourier transform processing and radial transform processing to obtain the initial frequency domain characteristics of the bearing, and the initial frequency domain characteristics of the bearing are filtered based on the spectral intensity distribution in the initial frequency domain characteristics of the bearing to obtain the frequency domain characteristics of the bearing, which is equivalent to extracting the time-invariant components in the bearing data and filtering the time-varying components in the bearing data to improve the effectiveness of the frequency domain characteristics of the bearing.
[0117] Before extracting features from the bearing data, the bearing data may be preprocessed, such as normalizing the scale, increasing the receptive field, etc., to capture the long-term variability of the target bearing data and improve the accuracy of feature extraction. In an exemplary embodiment, the target bearing fault detection model also includes a data enhancement network. Before fusing the bearing time domain features and the bearing frequency domain features in the bearing data, the method also includes:
[0118] The bearing data is input into the data enhancement network, and the bearing data is standardized through the data enhancement network to obtain the bearing time series array, and the bearing time series array is subjected to feature fusion processing to obtain the processed bearing data.
[0119] For the bearing data generated by the system operation, the scale difference is eliminated through the standardization module in the data enhancement network, and then the dilated convolution module is used to perform feature fusion extraction on the bearing data to effectively capture the long-term change characteristics of the data and expand the receptive field without increasing the number of network parameters.
[0120] Each dilated convolution module contains 2 dilated convolution layers and a GeLU activation function. At the same time, the input signal of the convolution module is fed forward to the output end while passing through the convolution layer operation, and is added to the convolution layer operation result as the final output of the module. This residual structure can effectively alleviate the gradient vanishing problem of deep neural networks and improve the convergence effect of network training.
[0121] In an embodiment of the present application, the bearing data is input into a data enhancement network, the bearing data is standardized through the data enhancement network to obtain a bearing time series array, and the bearing time series array is feature fused to obtain processed bearing data, so as to eliminate scale differences through standardization, increase the receptive field without increasing the number of network parameters, and improve the effectiveness of subsequent feature extraction.
[0122] In an exemplary embodiment, Figure 5 As shown, a bearing fault detection method is provided, the method comprising:
[0123] S501, in response to a fault detection instruction of a target bearing, acquiring bearing data and a target bearing fault detection model.
[0124] S502, input the bearing data into the data enhancement network, perform standardization processing on the bearing data through the data enhancement network to obtain a bearing time series array, and perform feature fusion processing on the bearing time series array to obtain processed bearing data.
[0125] S503, input the bearing data into the time domain feature extraction network to obtain the bearing time domain features.
[0126] S504, performing Fourier transform processing and radial transform processing on the bearing data in sequence to obtain initial frequency domain characteristics of the bearing.
[0127] S505, filtering the initial frequency domain features of the bearing based on the frequency spectrum intensity distribution in the initial frequency domain features of the bearing to obtain the frequency domain features of the bearing.
[0128] S506, superimposing the time domain features of the bearing and the frequency domain features of the bearing to obtain features obtained by fusion processing.
[0129] S507, performing fault identification on the features obtained through the fusion process to obtain a bearing fault category of the target bearing.
[0130] In an embodiment of the present application, the bearing time domain features and the bearing frequency domain features in the bearing data are fused through a target bearing fault detection model, and fault identification is performed on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing. This is equivalent to comprehensively considering the characteristics of the bearing data in the time domain and frequency domain when performing fault identification on the bearing data to characterize more comprehensive and accurate bearing status information. Furthermore, the bearing fault category result determined based on the complete and comprehensive bearing status information is also more accurate.
[0131] In an exemplary embodiment, Figure 6 As shown, a training method for a bearing fault detection model is also provided, the method comprising:
[0132] S601, obtaining an initial bearing fault detection model and a bearing fault data set; the initial bearing fault detection model includes an initial time domain feature extraction network and an initial frequency domain feature extraction network.
[0133] The initial bearing fault detection model includes an initial time domain feature extraction network and an initial frequency domain feature extraction network, and the network parameters of the initial bearing fault detection model are all initialization parameters or empirical parameters.
[0134] It should be known that in the initial bearing fault detection model, in addition to the above-mentioned initial time domain feature extraction network and initial frequency domain feature extraction network, other sub-networks may also be included, such as an initial feature enhancement network, an initial classification network, etc.
[0135] In an embodiment of the present application, the bearing fault data set may include a large number of unlabeled bearing data samples and a small number of labeled bearing data sets. Of course, if the bearing data generation cost and labeling cost are controllable, the bearing fault data sets may all be labeled bearing data sets.
[0136] S602, based on the bearing fault data set, train the initial time domain feature extraction network and the initial frequency domain feature extraction network to obtain a target bearing fault detection model; the target bearing fault detection model is used to fuse the bearing time domain features and the bearing frequency domain features of the bearing data in the target bearing, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
[0137] In the embodiment of the present application, the initial time domain feature extraction network and the initial frequency domain features can be obtained by training in an unsupervised learning manner.
[0138] In one scenario, unlabeled bearing data samples can be used to train some sub-networks in the initial bearing fault detection model, and then labeled bearing data sets can be used to train the remaining sub-networks in the initial bearing fault detection model to obtain the target bearing fault detection model. This phased model training method can reduce the labeling cost of bearing data while ensuring the accuracy of model detection.
[0139] In another scenario, a labeled bearing dataset can also be used to train all sub-networks in the initial bearing fault detection model until the training is completed to obtain the target bearing fault detection model.
[0140] See also Figure 7 , Figure 7 The schematic diagram of the target bearing fault detection model is shown in Figure 2. Figure 7 It can be seen that the target bearing fault detection model includes a data enhancement network, a time domain feature extraction network, a frequency domain feature extraction network, and a classification layer network. Among them, the bearing data is used as the input of the data enhancement network, and the output of the data enhancement network is used as the input of the time domain feature extraction network and the input of the frequency domain feature extraction network at the same time. The output of the time domain feature extraction network and the output of the frequency domain feature extraction network are input to the classification layer network after feature fusion. The classification layer network outputs the fault classification result to obtain the bearing fault category of the bearing data.
[0141] After obtaining the target bearing fault detection model, it can be stored in the memory of the computer device so that the computer device can call the model at any time to perform the bearing fault detection step. The specific calling process and beneficial effects are consistent with the specific embodiment of the aforementioned bearing fault detection method, and will not be repeated here. For details, please refer to the embodiment of the aforementioned bearing fault detection method.
[0142] In an embodiment of the present application, an initial bearing fault detection model and a bearing fault data set are obtained, and the initial time domain feature extraction network and the initial frequency domain feature extraction network in the initial bearing fault detection model are trained according to the bearing fault data set to obtain a target bearing fault detection model. The target bearing fault detection model is used to fuse the bearing time domain features and the bearing frequency domain features of the bearing data in the target bearing, and perform fault identification on the features obtained by the fusion process to obtain the bearing fault category of the target bearing. In this method, the initial time domain feature extraction network and the initial frequency domain feature extraction network in the initial bearing fault detection model are trained, so that the target bearing detection model obtained includes the trained time domain feature extraction network and the frequency domain feature extraction network, so that when the target bearing is fault-identified, the bearing time domain features and the bearing frequency domain features of the bearing data can be fused, so that the processed state information can be more comprehensive and accurate, thereby improving the accuracy of the final bearing fault category result.
[0143] Next, the training process of the target bearing fault monitoring model is further explained.
[0144] In an exemplary embodiment, Figure 8 As shown, the initial bearing fault detection model also includes an initial data enhancement network; the initial time domain feature extraction network and the initial frequency domain feature extraction network in the initial bearing fault detection model are trained according to the bearing fault data set to obtain a target bearing fault detection model, including:
[0145] S801, according to the bearing fault data set, the initial data enhancement network, the initial time domain feature extraction network and the initial frequency domain feature extraction network are trained simultaneously to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network.
[0146] Among them, the initial data enhancement network is connected to the initial time domain feature extraction network and the initial frequency domain feature extraction network respectively, that is, the output of the initial data enhancement network is also the input of the initial time domain feature extraction network and the input of the initial frequency domain feature extraction network. Further, the output of the initial time domain feature extraction network and the output of the initial frequency domain feature extraction network are fused to form an initial feature extraction network.
[0147] The bearing fault data set is input into the initial feature extraction network in batches to update the parameters of the initial feature extraction network, and then a data enhancement network, a time domain feature extraction network and a frequency domain feature extraction network are obtained.
[0148] S802, obtaining a target bearing fault detection model based on a data enhancement network, a time domain feature extraction network, and a frequency domain feature extraction network.
[0149] It is important to emphasize again that in the initial bearing fault detection model, in addition to the initial time domain feature extraction network and the initial frequency domain feature extraction network, other sub-networks may also be included, such as the initial feature enhancement network, the initial fault classification network, and the like.
[0150] Taking the initial bearing fault detection model that also includes the initial fault classification network as an example, it can be trained in stages. For example, the unlabeled bearing data samples in the bearing fault data set are used to train the initial data enhancement network, the initial time domain feature extraction network and the initial frequency domain feature extraction network to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network; the labeled bearing data in the bearing fault data set are used to train the initial classification network to obtain the classification network, and then the data enhancement network, the time domain feature extraction network, the frequency domain feature extraction network and the classification network are spliced to obtain the target bearing fault detection model.
[0151] In one scenario, after the data enhancement network, time series feature extraction network and frequency domain feature extraction network are trained, the trained network and the initial classification network are spliced, and then the trained network parameters are frozen. The spliced network is trained using a bearing fault data set to adjust the network parameters in the initial classification network until the training is completed to obtain the target bearing fault detection model.
[0152] In an exemplary embodiment, Fig. 9 As shown in the figure, the bearing fault data set includes bearing test samples and bearing test labels; the initial bearing fault detection model also includes an initial fault classification network; based on the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network, the target bearing fault detection model is obtained, including:
[0153] S901, input the bearing test sample into the initial bearing fault detection model to obtain the bearing test result.
[0154] The bearing test samples are input into the initial bearing fault detection model. The data enhancement network performs data enhancement processing on the bearing test samples. The time domain feature extraction network extracts the time domain features of the bearing test samples after data enhancement. The frequency domain feature extraction network extracts the frequency domain features of the bearing test samples after data enhancement. The initial fault classification network classifies the features of the fused time domain features and frequency domain features to obtain the bearing test results.
[0155] S902, based on the loss value between the bearing test results and the bearing test labels, while keeping the parameters of the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network unchanged, the parameters in the initial fault classification network are trained to obtain the target bearing fault detection model.
[0156] Among them, the function expression of the loss value is as follows:
[0157]
[0158] Where, L cls is the classification loss, N label is the number of bearing test labels, yi is the bearing test label of the i-th data, i.e., the true label, and p i is the bearing test result of the bearing test sample, that is, the predicted label.
[0159] Based on the bearing test results and bearing test labels, the loss value of the initial bearing fault monitoring model is calculated. While keeping the parameters of the data enhancement network, the time domain feature extraction network, and the frequency domain feature extraction network unchanged, a multi-round iterative training method is used to adjust the parameters in the initial fault classification network until the training is completed to obtain the target bearing fault detection model.
[0160] In the embodiment of the present application, the bearing fault detection model is trained in a phased training manner: in the first phase, the initial data enhancement network, the initial time domain feature extraction network and the initial frequency domain feature extraction network in the initial bearing fault detection model are trained using unlabeled bearing data samples; in the second phase, the classification model in the initial bearing fault detection model is trained using labeled bearing test samples and bearing test labels. This training method only requires a small number of sample labels, which greatly saves the training cost of the model.
[0161] In an embodiment of the present application, the initial data enhancement network, the initial time domain feature extraction network and the initial frequency domain feature extraction network are trained simultaneously, and the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network are obtained at one time, which can improve the training time of the network and improve the training efficiency.
[0162] The following is an example to illustrate the training process of the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network in the above-mentioned embodiment.
[0163] In an exemplary embodiment, Fig.10 As shown, the bearing fault data set includes bearing data samples; according to the bearing data samples, the initial data enhancement network, the initial time domain feature extraction network and the initial frequency domain feature extraction network are trained simultaneously to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network, including:
[0164] S1001, input the bearing data sample into the initial data enhancement network to obtain the bearing standardized data.
[0165] Among them, the initial data enhancement network includes an expanded convolution module, which is used to perform standardization and feature fusion processing on the bearing data samples to enhance the effectiveness of the bearing data samples and obtain standardized bearing data.
[0166] S1002, inputting the bearing standardized data into the initial time domain feature extraction network to obtain the time domain loss, and inputting the bearing standardized data into the initial frequency domain feature extraction network to obtain the frequency domain loss.
[0167] The bearing standardized data is input into the initial time domain feature extraction network, the time domain features of the bearing standardized data are extracted through the initial time domain feature extraction network, and the loss between the time domain features and the bearing standardized data is calculated to obtain the time domain loss.
[0168] The bearing standardized data is input into the initial frequency domain feature extraction network, the frequency domain features of the bearing standardized data are extracted through the initial frequency domain feature extraction network, the loss between the frequency domain features and the bearing standardized data is calculated, and the frequency domain loss is obtained.
[0169] In another scenario, a contrastive learning training strategy can also be used to drive the initial time domain feature extraction network / initial frequency domain feature extraction network to learn good features or representations by comparing the similarities or differences between data samples. Fig.11 As shown, specifically, different parameter updating methods are used to update the parameters in the network to obtain the network loss. Fig.11 In the invention, the feature extraction module is used to extract the features of the bearing data; the projection head module is used to map the features obtained by the feature extraction module to the contrast loss space.
[0170] Exemplarily, different parameter updating methods are used to update the network parameters in the initial time domain feature extraction network to obtain two sets of parameter updating results. By comparing the two sets of parameter updating results, the time domain loss is obtained.
[0171] For example, the parameters of the initial time domain feature extraction network are updated by gradient update to obtain the first loss, and the parameters of the initial time domain feature extraction network are updated by momentum update to obtain the second loss. The formula for momentum update is as follows:
[0172]
[0173] In the above formula, is the parameter updated at time (t+1), m is the number of convolution kernels, q is the network parameter of the first branch, and k is the network parameter of the second branch.
[0174] Then, the first loss and the second loss are mapped to the contrast loss space to obtain the contrast cross entropy loss, that is, the time domain loss. Temp The expression is as follows:
[0175]
[0176] In the above formula, N is the total number of samples, q i , k i represents a positive sample pair, q j , k j represents negative sample pairs.
[0177] Exemplarily, different parameter updating methods are used to update the network parameters in the initial frequency domain feature extraction network to obtain two sets of parameter updating results. The frequency domain loss is obtained by comparing the two sets of parameter updating results.
[0178] For example, the parameters of the initial frequency domain feature extraction network are updated by gradient update to obtain the third loss, and the parameters of the initial frequency domain feature extraction network are updated by momentum update to obtain the fourth loss. Then the third loss and the fourth loss are mapped to the contrast loss space to obtain the contrast cross entropy loss, that is, the frequency domain loss.
[0179] S1003, based on the time domain loss and the frequency domain loss, the initial data enhancement network, the time domain feature extraction network and the initial frequency domain feature extraction network are trained to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network.
[0180] The time domain loss and frequency domain loss are superimposed as the comparative cross entropy loss, and the bearing sample data are used to train the initial data enhancement network, the time domain feature extraction network and the initial frequency domain feature extraction network in batches until the overall loss meets the loss threshold. The training is completed and the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network are obtained.
[0181] In an embodiment of the present application, the bearing data sample is input into the initial data enhancement network and subjected to standardization processing by the initial data enhancement network to facilitate the subsequent extraction of time domain features and frequency domain features. Then, the standardized bearing data sample is simultaneously input into the initial time domain feature extraction network and the initial frequency domain feature extraction network to obtain the time domain features and frequency domain features of the bearing data sample, and then the time domain loss and frequency domain loss are obtained to update the parameters of the above-mentioned initial data enhancement network, the time domain feature extraction network and the initial frequency domain feature extraction network to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network.
[0182] It can be seen from the above embodiments that the initial data enhancement network, the initial time domain feature extraction network and the initial frequency domain feature extraction network are trained using unlabeled bearing data samples. Based on this, multiple bearing data samples in the bearing fault data set can be input into the above initial networks in batches for training. In an exemplary embodiment, Fig.12 As shown, the bearing data samples are input into the initial data enhancement network, including:
[0183] S1201, store the bearing data samples in a queue of preset capacity, and update the bearing data samples in the queue.
[0184] The queue stores a preset capacity of bearing data samples. When the bearing data samples in the queue reach the preset capacity, new bearing data samples are stored in the queue. The earliest bearing data samples used for training in the queue are removed from the queue, and the latest bearing data samples are added to the queue for network training. That is, the earlier the bearing data samples enter the queue, the earlier the training time.
[0185] S1202, input the bearing data samples currently stored in the queue into the initial data enhancement network.
[0186] The bearing data samples in the queue are used to update the initial data enhancement network, the initial time domain feature enhancement network, and the initial frequency domain feature enhancement network.
[0187] In an embodiment of the present application, each time the bearing data samples in the queue are updated, the bearing data samples currently stored in the updated queue are input into the initial data enhancement network, and feature extraction is performed through subsequent initial time domain feature extraction and initial frequency domain feature extraction networks to obtain time domain features and frequency domain features, as well as corresponding time domain losses and frequency domain losses, thereby realizing the update of the initial data enhancement network, the initial time domain feature extraction network, and the initial frequency domain feature extraction network.
[0188] In the embodiment of the present application, the bearing data samples are stored in a queue of preset capacity, the bearing data samples in the queue are updated, and the bearing input samples currently stored in the queue are input into the initial data enhancement network to update it. In this training method, the samples in the queue are updated once, and the parameters of the network are updated once, so that the network is trained multiple times until the training is completed, so that each bearing data sample can participate in the network training, and the trained model parameters are more accurate.
[0189] In an exemplary embodiment, Fig.13 As shown, a training method for a bearing fault detection model is provided, the method comprising:
[0190] S1301, obtaining an initial bearing fault detection model and a bearing fault data set.
[0191] Among them, the initial bearing fault detection model includes an initial data enhancement network, an initial time domain feature extraction network, an initial frequency domain feature extraction network and an initial fault classification network.
[0192] The bearing fault dataset includes bearing data samples, bearing test samples, and bearing test labels.
[0193] The bearing data samples are used for the first stage of training, specifically for training the initial data enhancement network, the initial time domain feature extraction network, and the initial frequency domain feature extraction network;
[0194] The bearing test samples and bearing test labels are used for the second stage of training, specifically for training the initial fault classification network.
[0195] S1302, storing the bearing data samples in a queue of preset capacity, and continuously updating the bearing data samples in the queue.
[0196] S1303, input the bearing data samples currently stored in the queue into the initial data enhancement network to obtain bearing standardized data.
[0197] S1304, using different parameter updating methods to update the network parameters in the initial time domain feature extraction network, obtaining two sets of parameter updating results, and obtaining the time domain loss by comparing the two sets of parameter updating results.
[0198] S1305, using different parameter updating methods to update the network parameters in the initial frequency domain feature extraction network, obtaining two sets of parameter updating results, and obtaining the frequency domain loss by comparing the two sets of parameter updating results.
[0199] S1306, based on the time domain loss and the frequency domain loss, the initial data enhancement network, the time domain feature extraction network and the initial frequency domain feature extraction network are trained to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network.
[0200] The above steps S1302 to S1306 are the first stage of training, please refer to Fig.14 , Fig.14 Schematic diagram of the network architecture for the first stage of training.
[0201] S1307, input the bearing test sample into the initial bearing fault detection model to obtain the bearing test result.
[0202] S1308, based on the loss value between the bearing test results and the bearing test labels, while keeping the parameters of the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network unchanged, the parameters in the initial fault classification network are trained to obtain the target bearing fault detection model.
[0203] Among them, the target bearing fault detection model is used to fuse the bearing time domain features and bearing frequency domain features of the bearing data in the target bearing, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
[0204] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0205] Based on the same inventive concept, the embodiment of the present application also provides a bearing fault detection device for implementing the bearing fault detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more bearing fault detection device embodiments provided below can refer to the limitations of the bearing fault detection method above, and will not be repeated here.
[0206] In an exemplary embodiment, Fig.15 As shown, a bearing fault detection device is provided, including: an instruction response module 1501 and a fault identification module 1502, wherein:
[0207] The instruction response module 1501 is used to respond to the fault detection instruction of the target bearing and obtain the bearing data and the target bearing fault detection model;
[0208] The fault identification module 1502 is used to input the bearing data into the target bearing fault detection model, fuse the bearing time domain features and the bearing frequency domain features in the bearing data through the target bearing fault detection model, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
[0209] In an exemplary embodiment, the fault identification module 1502 includes: a feature extraction unit and a feature superposition unit, wherein:
[0210] A feature extraction unit is used to input the bearing data into a time domain feature extraction network to obtain the bearing time domain features; and input the bearing data into a frequency domain feature extraction network to obtain the bearing frequency domain features;
[0211] The feature superposition unit is used to superimpose the bearing time domain features and the bearing frequency domain features to obtain fused features.
[0212] In an exemplary embodiment, the feature extraction unit is also used to perform Fourier transform processing and radial transform processing on the bearing data in sequence to obtain the initial frequency domain characteristics of the bearing, and filter the initial frequency domain characteristics of the bearing based on the spectral intensity distribution in the initial frequency domain characteristics of the bearing to obtain the frequency domain characteristics of the bearing.
[0213] In an exemplary embodiment, the bearing fault detection device also includes a data enhancement module, which is used to input the bearing data into a data enhancement network, standardize the bearing data through the data enhancement network to obtain a bearing time series array, and perform feature fusion processing on the bearing time series array to obtain processed bearing data.
[0214] Each module in the above-mentioned bearing fault detection device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0215] The embodiment of the present application also provides a training device for a bearing fault detection model for implementing the training method for the bearing fault detection model involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the training device for one or more bearing fault detection models provided below can refer to the limitations of the training method for the bearing fault detection model above, and will not be repeated here.
[0216] In an exemplary embodiment, Fig.16 As shown, a training device for a bearing fault detection model is provided, comprising: a data acquisition module 1601 and a model training module 1602, wherein:
[0217] The data acquisition module 1601 is used to acquire an initial bearing fault detection model and a bearing fault data set; the initial bearing fault detection model includes an initial time domain feature extraction network and an initial frequency domain feature extraction network;
[0218] Model training module 1602 is used to train the initial time domain feature extraction network and the initial frequency domain feature extraction network according to the bearing fault data set to obtain a target bearing fault detection model; the target bearing fault detection model is used to fuse the bearing time domain features and the bearing frequency domain features of the bearing data in the target bearing, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
[0219] In an exemplary embodiment, the model training module 1602 includes a network training unit and a model acquisition unit, wherein:
[0220] A network training unit is used to simultaneously train an initial data enhancement network, an initial time domain feature extraction network, and an initial frequency domain feature extraction network according to a bearing fault data set to obtain a data enhancement network, a time domain feature extraction network, and a frequency domain feature extraction network;
[0221] The model acquisition unit is used to obtain a target bearing fault detection model based on a data enhancement network, a time domain feature extraction network and a frequency domain feature extraction network.
[0222] In an exemplary embodiment, the network training unit is used for a normalization subunit, a loss acquisition subunit and a joint training subunit, wherein:
[0223] A normalization subunit, used for inputting bearing data samples into the initial data enhancement network to obtain normalized bearing data;
[0224] A loss acquisition subunit, used for inputting the bearing standardized data into the initial time domain feature extraction network to obtain the time domain loss, and inputting the bearing standardized data into the initial frequency domain feature extraction network to obtain the frequency domain loss;
[0225] The joint training subunit is used to train the initial data enhancement network, the time domain feature extraction network and the initial frequency domain feature extraction network based on the time domain loss and the frequency domain loss to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network.
[0226] In an exemplary embodiment, the normalization subunit is specifically used to store the bearing data samples in a queue of preset capacity, update the bearing data samples in the queue, and input the bearing data samples currently stored in the queue into the initial data enhancement network.
[0227] In an exemplary embodiment, the loss acquisition subunit is specifically used to update the network parameters in the initial time domain feature extraction network using different parameter update methods, obtain two sets of parameter update results, and obtain the time domain loss by comparing the two sets of parameter update results.
[0228] In an exemplary embodiment, the loss acquisition subunit is specifically used to update the network parameters in the initial frequency domain feature extraction network using different parameter update methods, obtain two sets of parameter update results, and obtain the frequency domain loss by comparing the two sets of parameter update results.
[0229] In an exemplary embodiment, the model acquisition unit includes a result acquisition unit and a model determination unit, wherein:
[0230] A result acquisition unit, used for inputting the bearing test sample into the initial bearing fault detection model to obtain the bearing test result;
[0231] The model determination unit is used to train the parameters in the initial fault classification network based on the loss value between the bearing test results and the bearing test labels while keeping the parameters of the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network unchanged, so as to obtain the target bearing fault detection model.
[0232] Each module in the training device of the bearing fault detection model can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0233] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0234] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0235] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0236] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0237] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0238] The above-described 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 detection method, characterized in that: The method comprises: In response to a fault detection instruction of a target bearing, acquiring bearing data and a target bearing fault detection model; The bearing data is input into the target bearing fault detection model, the bearing time domain features and the bearing frequency domain features in the bearing data are fused through the target bearing fault detection model, and fault identification is performed on the fused features to obtain the bearing fault category of the target bearing.
2. The method according to claim 1, characterized in that The target bearing fault detection model includes a time domain feature extraction network and a frequency domain feature extraction network. The target bearing fault detection model is used to fuse the bearing time domain features and the bearing frequency domain features in the bearing data, including: Inputting the bearing data into the time domain feature extraction network to obtain the bearing time domain feature; and inputting the bearing data into the frequency domain feature extraction network to obtain the bearing frequency domain feature; The time domain features of the bearing and the frequency domain features of the bearing are superimposed to obtain fused features.
3. The method according to claim 2, characterized in that The step of inputting the bearing data into the frequency domain feature extraction network to obtain the bearing frequency domain features comprises: Performing Fourier transform processing and radiometric transform processing on the bearing data in sequence to obtain initial frequency domain characteristics of the bearing; The initial frequency domain characteristics of the bearing are filtered based on the frequency spectrum intensity distribution in the initial frequency domain characteristics of the bearing to obtain the frequency domain characteristics of the bearing.
4. The method according to any one of claims 1 to 3, characterized in that: The target bearing fault detection model also includes a data enhancement network. Before fusing the bearing time domain features and the bearing frequency domain features in the bearing data, the method also includes: The bearing data is input into the data enhancement network, the bearing data is standardized by the data enhancement network to obtain a bearing time series array, and feature fusion processing is performed on the bearing time series array to obtain processed bearing data.
5. A method for training a bearing fault detection model, characterized in that: The method comprises: Acquire an initial bearing fault detection model and a bearing fault data set; the initial bearing fault detection model includes an initial time domain feature extraction network and an initial frequency domain feature extraction network; According to the bearing fault data set, the initial time domain feature extraction network and the initial frequency domain feature extraction network are trained to obtain a target bearing fault detection model; the target bearing fault detection model is used to fuse the bearing time domain features and the bearing frequency domain features of the bearing data in the target bearing, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
6. The method according to claim 5, characterized in that The initial bearing fault detection model also includes an initial data enhancement network; the initial time domain feature extraction network and the initial frequency domain feature extraction network in the initial bearing fault detection model are trained according to the bearing fault data set to obtain a target bearing fault detection model, including: According to the bearing fault data set, the initial data enhancement network, the initial time domain feature extraction network and the initial frequency domain feature extraction network are trained simultaneously to obtain a data enhancement network, a time domain feature extraction network and a frequency domain feature extraction network; Based on the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network, the target bearing fault detection model is obtained.
7. The method according to claim 6, characterized in that The bearing fault data set includes bearing data samples; according to the bearing data samples, the initial data enhancement network, the initial time domain feature extraction network and the initial frequency domain feature extraction network are trained simultaneously to obtain a data enhancement network, a time domain feature extraction network and a frequency domain feature extraction network, including: Inputting the bearing data sample into the initial data enhancement network to obtain bearing standardized data; Inputting the bearing standardized data into the initial time domain feature extraction network to obtain time domain loss, and inputting the bearing standardized data into the initial frequency domain feature extraction network to obtain frequency domain loss; Based on the time domain loss and the frequency domain loss, the initial data enhancement network, the time domain feature extraction network and the initial frequency domain feature extraction network are trained to obtain the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network.
8. The method according to claim 7, characterized in that The step of inputting the bearing data sample into the initial data enhancement network comprises: storing the bearing data samples in a queue of preset capacity, and updating the bearing data samples in the queue; The bearing data samples currently stored in the queue are input into the initial data enhancement network.
9. The method according to claim 7, characterized in that: The step of inputting the bearing standardized data into the initial time domain feature extraction network to obtain the time domain loss comprises: Different parameter updating methods are adopted to update the network parameters in the initial time domain feature extraction network to obtain two sets of parameter updating results. The time domain loss is obtained by comparing the two sets of parameter updating results.
10. The method according to claim 7, characterized in that The step of inputting the bearing standardized data into the initial frequency domain feature extraction network to obtain the frequency domain loss comprises: Different parameter updating methods are adopted to update the network parameters in the initial frequency domain feature extraction network to obtain two sets of parameter updating results. The frequency domain loss is obtained by comparing the two sets of parameter updating results.
11. The method according to any one of claims 6 to 10, characterized in that: The bearing fault data set includes bearing test samples and bearing test labels; the initial bearing fault detection model also includes an initial fault classification network; the target bearing fault detection model is obtained based on the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network, including: Inputting the bearing test sample into the initial bearing fault detection model to obtain a bearing test result; Based on the loss value between the bearing test result and the bearing test label, the parameters in the initial fault classification network are trained while keeping the parameters of the data enhancement network, the time domain feature extraction network and the frequency domain feature extraction network unchanged to obtain the target bearing fault detection model.
12. A bearing fault detection device, characterized in that: The device comprises: An instruction response module, used to respond to a fault detection instruction of a target bearing and obtain bearing data and a target bearing fault detection model; A fault identification module is used to input the bearing data into the target bearing fault detection model, fuse the bearing time domain features and the bearing frequency domain features in the bearing data through the target bearing fault detection model, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
13. A training device for a bearing fault detection model, characterized in that: The device comprises: A data acquisition module, used to acquire an initial bearing fault detection model and a bearing fault data set; the initial bearing fault detection model includes an initial time domain feature extraction network and an initial frequency domain feature extraction network; A model training module is used to train the initial time domain feature extraction network and the initial frequency domain feature extraction network according to the bearing fault data set to obtain a target bearing fault detection model; the target bearing fault detection model is used to fuse the bearing time domain features and the bearing frequency domain features of the bearing data in the target bearing, and perform fault identification on the features obtained by the fusion processing to obtain the bearing fault category of the target bearing.
14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Rolling bearing fault analysis based on CNN and LSTM
CN112507785A
Time-frequency feature fusion fault diagnosis method based on self-attention
CN116304861A
Bearing fault diagnosis method and device and electronic equipment
CN116721097A
Bearing fault diagnosis model training method and bearing fault diagnosis method and device
CN117890111A
