A bearing fault diagnosis method, system, storage medium and device
By using the attention module and the deep learning model of the convolution layer in bearing fault diagnosis, feature fusion and preprocessing of multi-dimensional vibration signals are solved, which solves the problem that traditional methods cannot fully utilize the information, and improves the accuracy and accuracy of fault diagnosis. robustness.
Patent Information
- Application Number
- CN202111340215.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-11-12
AI Technical Summary
Traditional bearing fault diagnosis methods only sample vibration signals in one dimension and cannot make full use of all effective information, resulting in low diagnosis accuracy.
The attention module and convolutional layer are used to build a deep learning model. Vibration images are generated by feature fusion and preprocessing of vibration signals in multiple dimensions, and convolutional neural networks are used to extract features to improve the accuracy of fault diagnosis.
Through the application of multi-dimensional sampling and attention mechanism, the accuracy of bearing fault diagnosis is improved, the robustness of the deep network is enhanced, and the information in the vibration signal can be used more effectively.
Smart Images

Figure CN114266269B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bearing fault diagnosis, and in particular to a bearing fault diagnosis method, system, storage device and equipment. Background Art
[0002] In recent years, bearings have been widely used as important components in intelligent manufacturing. Once a bearing is damaged during the operation of a machine, it will cause a failure in the transmission part of the rotating machine, which will cause vibration that affects the entire production line, resulting in economic losses and safety hazards. Therefore, bearing fault diagnosis plays a vital role in the intelligent manufacturing industry. A good fault diagnosis method can bring huge economic benefits and safety guarantees. Deep learning, as a method that combines feature extraction and classification, provides an end-to-end solution for bearing fault diagnosis.
[0003] Considering that the traditional fault diagnosis method only samples the vibration signal of one dimension, it cannot make good use of all the effective information. At the same time, the traditional fault diagnosis method cannot select the information that is useful for the task for a given vibration signal, resulting in low diagnostic accuracy. Summary of the invention
[0004] The present invention provides a bearing fault diagnosis method, system, storage medium and device, which can solve the technical problem that the existing method cannot fully utilize the effective information attached to the vibration signal.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] A bearing fault diagnosis method, which performs the following steps by a computer device:
[0007] S1: Obtain the vibration signal data s1, s2, ...s of N sensors where the fault occurs N , construct the attention module ATT to increase the weight of effective information;
[0008] S2: pre-process the data after the attention module, convert the obtained N-dimensional vibration signal data into a vibration image according to the set rules, and calculate the pixel value of the image;
[0009] S3: Establish a harmonization layer to fuse the features of the vibration signals of N channels, taking full account of the signal features of N channels;
[0010] S4: Use the convolutional layer to build a feature extractor and output the prediction results.
[0011] Furthermore, step S1 specifically includes the following subdivision steps S11 to S12:
[0012] S11: Segment the original signal into a number of segments of length M×N at random;
[0013] S12: Construct an attention mechanism ATT, and pass the above signal fragments through the attention mechanism; the attention mechanism is constructed as follows:
[0014] The signal received by each sensor forms a channel. Assume that the input of the attention module is a channel combination A = [a1, a2, a3, ..., a c ],(a i ∈R ω×1 ), perform normalization processing;
[0015]
[0016] Among them, E and Var represent expectation and variance respectively; the attention module ATT compresses the global time information into channel descriptors by using the global average pooling layer Avgpool and generates a channel statistical vector q, q∈R 1×c , c is the number of input channels;
[0017]
[0018] Then generate the channel recalibration vector q′:
[0019] q′=σ(F″(δ(F′(q))))
[0020] Among them, δ is the ReLu activation function, F′ and F″ represent the convolution operation with 1 channel and 1×1 convolution kernel, σ represents the Sigmoid function; q′ i The value of represents the importance of the i-th channel;
[0021]
[0022] M is the result of redistributing the importance of feature A, and m1 represents the new value of the first channel after redistribution of importance;
[0023] The final output is:
[0024] A ATT =A+M.
[0025] Furthermore, the step S2 specifically includes the following subdivision steps S21 to S22:
[0026] S21: Segment the signal after the attention mechanism module to obtain several s(k, i), where k represents the number of channels, which is 1, 2, or 3; i represents the length of the signal, which is M×N, and M×N is the length of the signal; and calculate S(k, i);
[0027] S(k,i)=s(k,i)·s(k,i)
[0028] S22: Calculate the pixel value H(m,n) of the feature image, where m=1, 2, ..., 3M, n=1, 2, ..., N;
[0029]
[0030] The value of k is:
[0031]
[0032] Furthermore, step S3 specifically includes the following subdivision steps S31 to S32:
[0033] S31: The blending layer is considered as a convolution operation with a 1×1 convolution kernel and a total feature map that combines each feature map;
[0034] S32: The output of the reconciliation layer is used for N-channel information fusion; wherein, the convolution kernel is 1×k, the step size is 1×k, k represents the number of sensor channels, and in the network structure diagram, k=3 is set so that the data of N channels can be effectively fused; the N channel data of the same time node in the reconciliation layer are fused, and the data of different time nodes will not be fused in this layer.
[0035] Furthermore, the step S4 specifically includes the following subdivision steps S41 to S43:
[0036] S41: Building convolutional neural network layers;
[0037] Let x∈R d , the j-th feature map can be described as:
[0038] c j =x*w j +b j
[0039] Among them, w j represents the jth filter, b j represents the deviation term;
[0040] S42: Establish a pooling layer; the maximum pooling layer is used here, and its mathematical expression is:
[0041]
[0042] Among them, c j represents the input, r is the pool size, Represents the maximum value in the corresponding pooling area;
[0043] S43: Establish a fully connected layer and input the result; the mathematical expression of the fully connected layer is:
[0044] fc l =σ(w l ·fc l-1 +b l )
[0045] Among them, fc l represents the output characteristics of the first fully connected layer, w l and b l Represent weights and biases respectively, and σ represents a nonlinear activation function;
[0046] Finally, the decision layer is used to output the prediction results:
[0047]
[0048] p(z) i Represents the probability that the bearing is in a faulty state.
[0049] On the other hand, the present invention also discloses a bearing fault diagnosis system, comprising the following units:
[0050] The attention module builds a unit for acquiring the vibration signal data s1, s2, ...s of N sensors at the fault location. N , construct the attention module ATT to increase the weight of effective information;
[0051] A calculation unit, used to pre-process the data passed through the attention module, convert the obtained vibration signal data of N dimensions into a vibration image according to a set rule, and calculate the pixel value of the image;
[0052] The feature fusion unit is used to establish a harmonization layer to perform feature fusion on the vibration signals of N channels, taking full account of the signal features of N channels;
[0053] The result output unit is used to construct a feature extractor using a convolutional layer and output the prediction result.
[0054] In a second aspect, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.
[0055] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.
[0056] It can be seen from the above technical scheme that the bearing fault diagnosis method of the present invention achieves the goal of improving the fault diagnosis prediction accuracy by efficiently utilizing the effective information attached to the vibration signal, samples the vibration signal in multiple dimensions to utilize more effective information, and adds an attention mechanism to "take the essence and remove the dross" of the vibration signal, so as to fully utilize the effective information and improve the accuracy of fault diagnosis.
[0057] The present invention extracts and fuses vibration signals of N dimensions and uses an attention mechanism to increase the weight of effective information, so that the deep network has good robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 is a flow chart of the method of the present invention;
[0059] Figure 2 This is a schematic diagram of the network model of the method of the present invention;
[0060] Figure 3 This is a schematic diagram of the internal structure of ATT;
[0061] Figure 4 It is a schematic diagram of the harmonizing layer;
[0062] Figure 5 It is a schematic diagram of feature visualization of an embodiment of the present invention on the CWRU public dataset. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0064] like Figure 1 and Figure 2 As shown, the bearing fault diagnosis method described in this embodiment includes the following steps:
[0065] Step 1: Obtain the vibration signal data s1, s2, ...s of N sensors at the fault location N , construct the attention module ATT to increase the weight of effective information.
[0066] Step 2: Preprocess the data after the attention module, convert the obtained N-dimensional vibration signal data into a vibration image according to certain rules, and calculate the pixel value of the image.
[0067] Step 3: Establish a harmonization layer to fuse the features of the vibration signals of N channels, taking full account of the signal features of N channels.
[0068] Step 4: Use the convolutional layer to build a feature extractor and output the prediction results.
[0069] The specific steps are as follows:
[0070] Furthermore, in the above step S1: obtaining vibration signal data s1, s2, ...s of N sensors at the fault location N , build an attention module and increase the weight of effective information.
[0071] Specifically, it includes the following subdivision steps S11 to S12:
[0072] S11: Split the original signal into a number of segments of length M×N at random.
[0073] S12: Construct the attention mechanism ATT, and pass the above signal fragments through the attention mechanism. The attention mechanism is constructed as follows:
[0074] The signal received by each sensor forms a channel. Assume that the input of the attention module is a channel combination A = [a1, a2, a3, ..., a c ],(a i ∈R ω×1 ) and perform normalization.
[0075]
[0076] Where E and Var represent expectation and variance respectively. The attention module ATT compresses the global temporal information into channel descriptors by using the global average pooling layer Avgpool and generates a channel statistics vector q(q∈R 1×c , c is the number of input channels).
[0077]
[0078] Then generate the channel recalibration vector q′:
[0079] q′=σ(F″(δ(F′(q))))
[0080] Among them, δ is the ReLu activation function, F′ and F″ represent the convolution operation with 1 channel and 1×1 convolution kernel, respectively, and σ represents the Sigmoid function. q′ i The value represents the importance of the i-th channel.
[0081]
[0082] M is the result of redistributing the importance of feature A, and m1 represents the new value of the first channel after redistribution of importance.
[0083] Finally, the present invention uses residual networks and introduces residual connections, which improves the feasibility of optimization while retaining the original information. The final output is:
[0084] A ATT =A+M;
[0085] The structure diagram of the ATT module is as follows Figure 3 shown.
[0086] Furthermore, the above step S2: pre-processes the data after the attention module, converts the obtained N-dimensional vibration signal data into a vibration image according to certain rules, and calculates the pixel value of the image. Specifically, it includes the following subdivision steps S21 to S22:
[0087] S21: Segment the signal after the attention mechanism module to obtain several s(k, i), where k represents the number of channels, which is 1, 2, or 3; i represents the length of the signal, which is M×N, and M×N is the length of the signal. And calculate S(k, i).
[0088] S(k,i)=s(k,i)·s(k,i)
[0089] S22: Calculate the pixel value H(m,n) of the feature image, where m=1, 2, ..., 3M, n=1, 2, ..., N.
[0090]
[0091] The value of k is:
[0092]
[0093] Furthermore, the above step S3: establishes a harmonization layer to fuse the vibration signals of N channels, taking full account of the signal characteristics of N channels. Specifically, it includes the following subdivision steps S31 to S32:
[0094] S31: The blending layer can be seen as a convolution operation with a 1×1 convolution kernel and a total feature map that combines each feature map.
[0095] S32: The output of the reconciliation layer can be used for N-channel information fusion. The convolution kernel is 1×k, the step size is 1×k, and k represents the number of sensor channels (in the network structure diagram, let k=3), so that the data of N channels can be effectively fused. The N channel data of the same time node in the reconciliation layer are fused, and the data of different time nodes will not be fused in this layer; the example of the reconciliation layer is as follows Figure 4 shown.
[0096] Furthermore, the above step S4: constructing a feature extractor using a convolutional layer and outputting a prediction result specifically includes the following subdivision steps S41 to S43:
[0097] S41: Establish a convolutional neural network layer. Let x∈R d , the j-th feature map can be described as:
[0098] c j =x*w j +b j
[0099] Among them, w j represents the jth filter, b j Represents the deviation term.
[0100] S42: Establish a pooling layer. Here we use the maximum pooling layer, which is mathematically expressed as:
[0101]
[0102] Among them, c j represents the input, r is the pool size, Represents the maximum value in the corresponding pooling area.
[0103] S43: Establish a fully connected layer and input the result. The mathematical expression of the fully connected layer is:
[0104] fc l =σ(w l ·fc l-1 +b l )
[0105] Among them, fc l represents the output characteristics of the first fully connected layer, w l and b l Represent weights and biases respectively, and σ represents a nonlinear activation function.
[0106] Finally, the decision layer is used to output the prediction results.
[0107]
[0108] p(z) i Represents the probability that the bearing is in a faulty state.
[0109] The proposed method performs well on the CWRU bearing test dataset. Figure 5 The feature visualization diagram of the method on the CWRU public data set is shown. It can be seen that the present invention can well distinguish normal bearings from bearings with different types of faults. Numbers 0-9 represent normal data and inner ring, outer ring, and ball faults at different speeds, respectively. Only three cases are marked in the legend.
[0110] On the other hand, the present invention also discloses a bearing fault diagnosis system, comprising the following units:
[0111] The attention module builds a unit for acquiring the vibration signal data s1, s2, ...s of N sensors at the fault location. N , construct the attention module ATT to increase the weight of effective information;
[0112] A calculation unit, used to pre-process the data passed through the attention module, convert the obtained vibration signal data of N dimensions into a vibration image according to a set rule, and calculate the pixel value of the image;
[0113] The feature fusion unit is used to establish a harmonization layer to perform feature fusion on the vibration signals of N channels, taking full account of the signal features of N channels;
[0114] The result output unit is used to construct a feature extractor using a convolutional layer and output the prediction result.
[0115] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above method.
[0116] In a second aspect, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.
[0117] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.
[0118] The embodiment of the present application also provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus.
[0119] Memory, used to store computer programs;
[0120] The processor is used to implement the above-mentioned bearing fault diagnosis method when executing the program stored in the memory, and the method includes:
[0121] S1: Obtain the vibration signal data s_1, s_2, …s_N of N sensors where the fault occurs, build an attention module ATT, and increase the weight of effective information;
[0122] S2: pre-process the data after the attention module, convert the obtained N-dimensional vibration signal data into a vibration image according to the set rules, and calculate the pixel value of the image;
[0123] S3: Establish a harmonization layer to fuse the vibration signals of N channels, taking into full account the signal characteristics of N channels;
[0124] S4: Use the convolutional layer to build a feature extractor and output the prediction results.
[0125] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0126] The communication interface is used for communication between the above electronic device and other devices.
[0127] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0128] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
[0129] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned bearing fault diagnosis methods are implemented.
[0130] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any one of the bearing fault diagnosis methods in the above embodiments.
[0131] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0132] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0133] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0134] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A bearing fault diagnosis method, characterized in that: Follow the steps below on your computer device, S1: Obtain the vibration signal data of N sensors at the fault location , construct the attention module ATT to increase the weight of effective information; S2: pre-process the data after the attention module, convert the obtained N-dimensional vibration signal data into a vibration image according to the set rules, and calculate the pixel value of the image; S3: Establish a harmonization layer to fuse the features of the vibration signals of N channels, taking full account of the signal features of N channels; S4: Use the convolutional layer to build a feature extractor and output the prediction results; Step S1 specifically includes the following sub-steps S11 to S12: S11: Split the original signal into several random segments of length fragments; S12: Construct an attention mechanism ATT, and pass the above signal fragments through the attention mechanism; the attention mechanism is constructed as follows: The signal received by each sensor forms a channel, assuming that the input of the attention module is a channel combination , ( ), perform normalization processing; Among them, E and Var represent expectation and variance respectively; the attention module ATT uses a global average pooling layer , compress the global time information into a channel descriptor and generate a channel statistics vector q, ,c is the number of input channels; Then generate the channel recalibration vector : in, is the ReLu activation function, and Represents the number of channels as 1 and the convolution kernel as 1 respectively 1 convolution operation, Represents the Sigmoid function; The value of represents the importance of the i-th channel; M is the result of redistributing the importance of feature A. represents the new value of the first channel after reallocating its importance; The final output is: ; The step S2 specifically includes the following subdivision steps S21 to S22: S21: Split the signal after the attention mechanism module to obtain several s(k,i), where k represents the number of channels, which is 1, 2, or 3; i represents the length of the signal, which is , is the length of the signal; and calculate S(k,i); S22: Calculate the pixel value H(m,n) of the feature image, where m=1,2,…,3M, n=1,2,…,N; The value of k is: ; Step S3 specifically includes the following sub-steps S31 to S32: S31: Treat the blending layer as a 1 1 convolution operation of the convolution kernel and a total feature map that combines each feature map; S32: The output of the blending layer is used for N-channel information fusion; the convolution kernel is 1 , the step size is 1 , k represents the number of sensor channels. In the network structure diagram, let k=3, so that the data of N channels can be effectively fused; the N channel data of the same time node in the reconciliation layer are fused, and the data of different time nodes will not be fused in this layer.
2. The bearing fault diagnosis method according to claim 1, characterized in that: The step S4 specifically includes the following subdivision steps S41 to S43: S41: Establish convolutional neural network layer; make , the jth feature map can be described as: in, represents the jth filter, represents the deviation term; S42: Establish a pooling layer; the maximum pooling layer is used here, and its mathematical expression is: in, represents the input, r is the pool size, Represents the maximum value in the corresponding pooling area; S43: Establish a fully connected layer and input the result; the mathematical expression of the fully connected layer is: in, represents the output characteristics of the lth fully connected layer, and represent weight and bias respectively, represents a nonlinear activation function; Finally, the decision layer is used to output the prediction results: Represents the probability that the bearing is in a faulty state.
3. A bearing fault diagnosis system, capable of implementing the bearing fault diagnosis method according to claim 1 or 2, characterized in that: The following units are included: Attention module building unit, used to obtain the vibration signal data of N sensors where the fault occurs , construct the attention module ATT to increase the weight of effective information; A calculation unit, used to pre-process the data passed through the attention module, convert the obtained vibration signal data of N dimensions into a vibration image according to a set rule, and calculate the pixel value of the image; The feature fusion unit is used to establish a harmonization layer to perform feature fusion on the vibration signals of N channels, taking full account of the signal features of N channels; The result output unit is used to construct a feature extractor using a convolutional layer and output the prediction result.
4. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the method according to claim 1 or 2.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to claim 1 or 2.
Citation Information
Patent Citations
Bearing fault prediction method and device based on equal division
CN109084980A
Convolutional neural network fault diagnosis method based on multi-channel attention module
CN112284736A
Rolling bearing fault analysis based on CNN and LSTM
CN112507785A
Fault identification method and system based on vibration signal imaging
CN112966632A
Photovoltaic array fault diagnosis method based on composite information
US20210135625A1
