Method and storage medium for calculating variable convolution kernel for variable resolution

By designing a variable convolution kernel based on the time domain width and frequency domain width of the time-frequency image, and combining it with the ResNet module, the problem of different position scale deformations in bearing fault diagnosis is solved, and fault classification with higher accuracy and shorter time is achieved. .

CN114692831BActive Publication Date: 2024-08-27HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210304788.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-23
Publication Date
2024-08-27
Estimated Expiration
2042-03-23

AI Technical Summary

Technical Problem

In the existing technology, bearing fault diagnosis and classification methods are difficult to handle objects with different scales or deformations at different locations, making it difficult for convolution kernels of the same size to perform effective convolution, affecting classification accuracy.

Method used

The method of calculating variable convolution kernels for variable resolutions is adopted, the variable convolution kernels are designed according to the time domain width and frequency domain width of each window in the time-frequency image, and the ResNet module is used in the convolutional neural network to perform convolution The resulting tensor is convolved to extract the texture and detailed information of the bearing fault.

Benefits of technology

Achieve higher-precision bearing fault classification diagnosis in a shorter time, avoid the loss of feature correlation, and improve the prediction performance of diagnostic classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114692831B
    Figure CN114692831B
Patent Text Reader

Abstract

The present invention discloses a method for calculating a variable convolution kernel for variable resolution. The time resolution and frequency resolution of each window function in the wavelet transform are different. The time domain width and frequency domain width of each window in the time-frequency image of the wavelet transform are different. The convolution kernel size for convolution with each window in the time-frequency image is determined according to the time domain width and frequency domain width of each window in the time-frequency image. The present invention designs the corresponding convolution kernel size according to the time domain width and frequency domain width of each window in the time-frequency image, solves the problem that objects with different scales or deformations at different positions are difficult to be convoluted with convolution kernels of the same size, and can perform bearing fault diagnosis and classification in a shorter time, thereby obtaining higher accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of convolutional neural networks, and in particular to a method and a storage medium for calculating a variable convolution kernel with variable resolution. Background Art

[0002] As one of the core components of mechanical systems, bearings are crucial to the efficient, stable and reliable operation of mechanical systems. At present, many methods for bearing fault classification have been developed. Traditional methods for bearing fault diagnosis and classification can be divided into three categories: signal processing, machine learning and deep learning. Signal processing-based methods require more prior knowledge and cannot achieve higher accuracy and automated diagnostic processes. Machine learning-based bearing fault classification methods require more related technologies to extract sensitive features. Deep learning-based bearing fault classification can automatically identify representative features of bearing faults from raw data, reduce dependence on technologies such as fault feature extraction, and thus become the mainstream technology for bearing fault diagnosis.

[0003] At the same time, the methods of bearing fault diagnosis and classification based on deep learning can also be divided into three categories: time domain analysis method, frequency domain analysis method and time-frequency domain analysis method. The time domain analysis method is completely localized in the time domain and does not contain frequency domain information. The frequency domain analysis method is completely localized in the frequency domain and does not contain time domain information. The time-frequency signal is analyzed based on the time-frequency domain analysis method. The time-frequency signal has both time domain information and frequency domain information, and the signal after wavelet transformation has the requirements of automatic adaptation to time-frequency analysis. Therefore, it has become a trend to select the time-frequency signal after wavelet transformation as the input of the convolutional neural network.

[0004] However, the wavelet transform is combined with the convolutional neural network, and the processed time-frequency image is input into the convolutional neural network model. If the receptive field size of the activation units in the same convolutional neural network layer is the same (the receptive field refers to the area in the input space that affects a specific unit of the network), it is not advisable for the advanced convolutional neural network layer in the spatial position. Since there are objects of different scales or deformations at different locations, it is difficult to perform convolution with the same size of convolution kernel. Summary of the invention

[0005] In order to overcome the defects in the above-mentioned prior art, the present invention provides a method for calculating a variable convolution kernel for variable resolution, and designs a variable convolution kernel according to the time domain width and frequency domain width of each window in the time-frequency image, so as to solve the problem that objects with different scales or deformations at different positions are difficult to be convolved with convolution kernels of the same size.

[0006] To achieve the above object, the present invention adopts the following technical solutions, including:

[0007] The method for calculating a variable convolution kernel for variable resolution comprises the following steps:

[0008] S1, perform wavelet transform on the signal to obtain the time-frequency image of wavelet transform; among them, the time resolution and frequency resolution of each window function in wavelet transform are different, and the time domain width Δ(ψ (a,b) ) and frequency domain width All are different;

[0009] S2, calculate the time domain width Δ(ψ (a,b) ) and frequency domain width

[0010] S3, according to the time domain width Δ(ψ (a,b) ) and frequency domain width Determine the size of the convolution kernel for convolution with each window in the time-frequency image respectively;

[0011] Among them, the width of the convolution kernel convolved with a window in the time-frequency image is: the time domain width of the window Δ(ψ (a,b) ) is the value after rounding off;

[0012] The height of the convolution kernel convolved with a window in the time-frequency image is: The value is then rounded to an integer.

[0013] In step S2, the time domain width Δ(ψ (a,b) ) and frequency domain width The calculation method of is as follows:

[0014] Δ(ψ (a,b) )=|a|Δ(ψ)

[0015]

[0016] Where a is the scale of wavelet transform, b is the displacement of wavelet transform; a≠0, b is an arbitrary real number;

[0017] ψ represents the wavelet transform function when a=1 and b=0; is the form of ψ after Fourier transformation; Δ(ψ) is the time domain width of the wavelet transform with a=1 and b=0; is the frequency domain width of the wavelet transform with a=1 and b=0;

[0018] ψ (a,b) represents the wavelet transform function with scale a and displacement b; is (a,b) The form after Fourier transformation; Δ(ψ (a,b)) is the time domain width of the wavelet transform with scale a and displacement b; is the frequency domain width of the wavelet transform with scale a and displacement b;

[0019] Since the window Δ(ψ (a,b) ) and frequency domain width The product of is a constant, namely

[0020]

[0021]

[0022] And because the scale a of wavelet transform is calculated as:

[0023]

[0024] Among them, F c is the wavelet center frequency, T s is the sampling time, F a is the actual frequency;

[0025] And Δ(ψ) and The calculation method is:

[0026]

[0027]

[0028] Among them, w 0 , γ are both constants, both positive values; t is the time variable; w is the frequency domain variable; i represents the imaginary number sign;

[0029] Therefore, the time domain width Δ(ψ (a,b) ) and frequency domain width The value of .

[0030] In step S3, in the deep layer of the convolutional neural network, the tensor convolved by the convolution kernel is convolved using the ResNet module.

[0031] The signal is a bearing fault signal, and a wavelet transform is performed on the bearing fault signal to obtain a time-frequency image of the wavelet transform of the bearing fault signal; a convolutional neural network is used to perform feature recognition on the time-frequency image of the wavelet transform of the bearing fault signal, so as to classify the bearing fault; the convolution kernel in the convolutional neural network is a variable convolution kernel, that is, the size of the convolution kernel convolved with each window in the time-frequency image is different; and the method of steps S1-S3 is used to solve the size of the convolution kernel convolved with each window in the time-frequency image.

[0032] The present invention also provides a storage medium for calculating a variable convolution kernel for variable resolution, the storage medium storing a computer program, the computer program including program instructions, and the program instructions, when executed by a processor, cause the processor to execute the method as claimed in claim 1, 2 or 3.

[0033] The advantages of the present invention are:

[0034] (1) The algorithm of the present invention can design the corresponding convolution kernel size according to the time domain width and frequency domain width of each window in the time-frequency image, thereby solving the problem that objects with different scales or deformations at different positions are difficult to convolve with the same size of convolution kernel, so that the bearing fault classification diagnosis can be performed in a shorter time with higher accuracy.

[0035] (2) In order to solve the problem that objects with different scales or deformations at different positions are difficult to be convolved with convolution kernels of the same size, the prior art mainly makes improvements in the design of convolution shapes and weights. However, since the previous designs of convolution shapes and weights were all based on images, no variable convolution kernel was designed from the perspective of the time-frequency image of the wavelet transform. However, the present invention designs a variable convolution kernel from the perspective of the time-frequency image of the wavelet transform, specifically, designs a variable convolution kernel based on the time domain width and frequency domain width of each window in the time-frequency image, which can perform bearing fault diagnosis and classification in a shorter time, thereby obtaining higher accuracy.

[0036] (3) The present invention embeds the relevant modules of ResNet in the designed variable convolution kernel method to extract the texture and detail information of the bearing fault. A larger variable convolution kernel is used in the shallow layer to extract the most original feature change of the texture detail. Then, the ResNet module is used in the deep layer to convolve the tensors after the convolution with the variable convolution kernel to avoid losing the feature correlation in a larger local range, thereby obtaining satisfactory bearing fault diagnosis classification prediction performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flow chart of the design method of the variable convolution kernel of the present invention.

[0038] Figure 2 Schematic diagram of the time-frequency image window of wavelet transform.

[0039] Figure 3 Schematic diagram of variable convolution kernels of different sizes designed for time-frequency images. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] In this embodiment, the UT6818 mechanical vibration analysis and fault simulation test bench is used to collect bearing fault diagnosis classification data. The test bench is mainly composed of an engine, a belt, a bearing seat, an acceleration sensor, and a bearing part. The acceleration sensor is installed on the bearing seat, and the speed of the bearing is controlled by a three-phase motor through an elastic coupling.

[0042] The UT6818 mechanical vibration analysis and fault simulation test bench was used to collect data sets. The bearing vibration signal was collected by connecting the accelerometer to the PC, and the vibration signal was collected at a sampling frequency of 51200 Hz. Seven conditions of bearing failure were collected, including one healthy bearing condition and six bearing crack fault conditions.

[0043] The method for calculating the variable convolution kernel for variable resolution is as follows:

[0044] S1, extract the bearing vibration signal, perform wavelet transform on the extracted bearing fault signal, and obtain a time-frequency image of the wavelet transform of the bearing fault signal. In this embodiment, Gabor transform is performed on the bearing fault time domain signal to obtain a time-frequency image.

[0045] Depend on Figure 2 As shown in the figure, in a time-frequency image, the vertical axis is frequency and the horizontal axis is time. As the frequency increases, low frequencies correspond to larger time windows, and high frequencies correspond to larger frequency windows. The width and height of the variable convolution kernel correspond to the time resolution and frequency resolution of the window function in the wavelet transform. Therefore, when calculating the variable convolution kernel for variable resolution, it is necessary to calculate the time domain width Δ(ψ (a,b) ) and frequency domain width

[0046] S2, calculate the time domain width Δ(ψ (a,b) ) and frequency domain width

[0047] Δ(ψ (a,b) )=|a|Δ(ψ)

[0048]

[0049] Where a is the scale of wavelet transform, b is the displacement of wavelet transform; a≠0, b is an arbitrary real number;

[0050] ψ represents the wavelet transform function when a=1 and b=0; is the form of ψ after Fourier transformation; Δ(ψ) is the time domain width of the wavelet transform with a=1 and b=0; is the frequency domain width of the wavelet transform with a=1 and b=0;

[0051] ψ (a,b) represents the wavelet transform function with scale a and displacement b; is (a,b) The form after Fourier transformation; Δ(ψ (a,b) ) is the time domain width of the wavelet transform with scale a and displacement b; is the frequency domain width of the wavelet transform with scale a and displacement b;

[0052] Since the Δ(ψ (a,b) ) and frequency domain width The product of is a constant, namely

[0053]

[0054]

[0055] In this embodiment, it can be known from Gabor transform that:

[0056]

[0057] And because the calculation formula of the scale a of wavelet transform is:

[0058]

[0059] Among them, F c is the wavelet center frequency, T s is the sampling time, F a is the actual frequency;

[0060] And Δ(ψ) and The calculation method is:

[0061]

[0062]

[0063] Among them, w 0 , γ are both constants and positive values; the Gabor function is a complex-valued sine function windowed by a Gaussian function centered at the origin, and its Fourier transform is w = w 0 The Gaussian function at the center, although the Gabor function does not strictly satisfy the admissibility condition, it approximately satisfies the condition if γ is large enough;

[0064] t is the time variable; w is the frequency domain variable; i represents the imaginary number symbol;

[0065] Therefore, the time domain width Δ(ψ (a,b) ) and frequency domain width The value of .

[0066] S3, according to the time domain width Δ(ψ (a,b) ) and frequency domain width Determine the size of the convolution kernel for convolution with each window in the time-frequency image respectively;

[0067] Among them, the width of the convolution kernel convolved with a window in the time-frequency image is: the time domain width of the window Δ(ψ (a,b) ) is the value after rounding off;

[0068] The height of the convolution kernel convolved with a window in the time-frequency image is: The value is then rounded to an integer.

[0069] In this embodiment, the bearing fault time domain signal is transformed into a time-frequency image of 128×128 pixels by continuous Gabor transformation, and the time domain width Δ(ψ (a,b) ) and frequency domain width The temporal width of the window in the time-frequency image is Δ(ψ (a,b) ) varies in the interval (9, +∞), and the frequency domain width of the window in the time-frequency image The value of (0, 6×10 -2 ) interval changes. If the time domain width Δ(ψ (a,b) ) and frequency domain width It is unrealistic to set the size of the convolution kernel 1:1 with the value of . Therefore, the present invention selects the time domain width Δ(ψ (a,b) ) is rounded to an integer value as the convolution kernel width for convolution with the window; select the frequency domain width of the window in the time-frequency image The rounded value is used as the height of the convolution kernel for convolution with the window.

[0070] Depend on Figure 3 As shown, for Figure 2 For each window in the time-frequency image shown, several variable convolution kernels of different sizes are designed, and convolution is performed with the image by the variable convolution kernels of different sizes at different frequency values ​​of the time-frequency image.

[0071] Determining the number of variable convolution kernels of different sizes is crucial to the entire model. Among them, determining the number of types of variable convolution kernels can make the bearing fault classification effect better and the time shorter. In this embodiment, three groups of experiments were compared, and the number of types of variable convolution kernels in each group of experiments was different.

[0072] In this embodiment, based on the time-frequency image of 128×128 pixels, the number of categories of variable convolution kernels selected in the three groups of experiments are 3, 7, and 15 respectively. In the first group of experiments, Figure 3 As shown in the figure, 3 different sizes of variable convolution kernels are selected, and the time-frequency image is divided into 3 blocks, each of which is 64×128 in size, with a height of 64, a width of 128, and an overlap of 32 pixels. In the second group of experiments, 7 different sizes of variable convolution kernels are selected, and the time-frequency image is divided into 7 blocks, each of which is 32×128 in size, with an overlap of 16 pixels. In the third group of experiments, 15 different sizes of variable convolution kernels are selected, and the time-frequency image is divided into 15 blocks, each of which is 16×128 in size, with an overlap of 8 pixels.

[0073] According to the above selection, experiments were conducted separately, 150 epochs were defined, the training rate was 0.01, and Adam was selected as the optimizer. Dropout was used and set to 0.5 to reduce overfitting, and the loss function was cross entropy loss. The experimental results, classification accuracy and model calculation time of the three groups of variable convolution kernels of different types and numbers are shown in Table 1. From the experimental data in Table 1, it can be seen that the first group has the highest accuracy and the least time for model calculation. This is because when the time-frequency image is divided into more blocks by pixels, it not only increases the model complexity but also increases the calculation time. In addition, in order to avoid losing the edge information of the blocks, the image is taken according to the overlapping pixels, but it also causes some data redundancy. Therefore, we take the first group of three different sizes of variable convolution kernels as the variable convolution kernel selection for this experiment.

[0074] Table 1

[0075] Classification Accuracy Calculation time(s) Group 1 99.89±0.03 2292.14 Group 2 99.30±0.09 8832.70 Group 3 99.15±0.21 8994.31

[0076] In the present invention, a larger variable convolution kernel is used in the shallow layer to extract the most original feature changes of texture details, and then a ResNet module is used in the deep layer to convolve the tensors after the convolution kernel to avoid losing the feature correlation in a larger local range. For example, if the total number of layers is five, the first two layers can be defined as shallow layers and the last two layers as deep layers.

[0077] The time-domain signal of the bearing fault is transformed continuously by Gabor wavelet to obtain a time-frequency image, and then the time-frequency image is divided into several blocks according to the pixel value. In order to avoid the loss of partial information at the edge of the divided image block, the pixel block part needs to be repeatedly divided, that is, the pixel points overlap. The width and height of the corresponding variable convolution kernel are calculated according to the method of the present invention for the divided several blocks of images, and then the convolution kernels of different sizes are convolved with different image blocks respectively. Then, padding of different sizes is used according to the size of the variable convolution kernel. Then, the tensors after the convolution of the variable convolution kernel are convolved using the ResNet module in the deep layer, and several three-dimensional tensors are obtained after several convolution operations with small convolution kernels. The three-dimensional tensor is expanded to obtain a two-dimensional tensor with the same value in a certain dimension, and the two-dimensional tensors of the same dimension are spliced ​​to obtain a two-dimensional tensor map, and finally the spliced ​​two-dimensional tensor map is passed through two layers of fully connected layers, and finally output as the category required by oneself.

[0078] In order to evaluate the convolutional neural network based on the present invention, seven data sets of fault categories were collected for experiments, and the average performance of five consecutive experiments was used as the experimental result. The classification accuracy and calculation time of the convolutional neural network of the present invention were compared with the following four existing technologies:

[0079] Deep Residual Shrinkage Network (DRSN): DRSN uses residual networks, self-attention networks, and soft thresholding to reduce the difficulty of training convolutional neural networks, weight the channels of feature maps, and denoise the signals, respectively.

[0080] Dynamic Convolution (DynamicConv): DynamicConv dynamically aggregates multiple parallel convolution kernels according to the relevant attention, increasing the model complexity without increasing the depth and width of the network.

[0081] Deep residual learning (ResNet18): ResNet18 transforms the functional relationship to be learned by the network layer into learning the residual function about the layer input, making it possible to train deeper convolutional neural networks.

[0082] Visual Geometry Group (VGG-19): VGG-19 uses the smallest 3×3 convolution kernel size and the smallest margin, trains and tests images on the entire image and at multiple scales, and improves classification accuracy.

[0083] The comparison results are shown in Table 2 below:

[0084] Table 2

[0085]

[0086] The present invention designs a new variable convolution kernel, determines the size and type of the convolution kernel, and is used to classify bearing faults. This method can determine the number of variable convolution kernels to achieve a better solution for bearing fault classification. The variable convolution kernel is combined with the ResNet related module in the convolutional neural network to extract the texture and detail information of the bearing fault. Therefore, satisfactory bearing fault classification prediction performance can be obtained.

[0087] In addition to the above method, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the decision-making behavior decision method according to various embodiments of the present invention described in this specification.

[0088] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0089] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the decision-making behavior decision method according to various embodiments of the present invention described in the method of this specification.

[0090] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0091] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. Method for calculating variable convolution kernel for variable resolution, It is characterized in that The steps include: S1, perform wavelet transform on the signal to obtain the time-frequency image of wavelet transform; among them, the time resolution and frequency resolution of each window function in wavelet transform are different, and the time domain width Δ(ψ (a,b) ) and frequency domain width All are different; S2, calculate the time domain width Δ(ψ (a,b) ) and frequency domain width S3, according to the time domain width Δ(ψ (a,b) ) and frequency domain width Determine the size of the convolution kernel for convolution with each window in the time-frequency image respectively; Among them, the width of the convolution kernel convolved with a window in the time-frequency image is: the time domain width of the window Δ(ψ (a,b) ) is the value after rounding off; The height of the convolution kernel convolved with a window in the time-frequency image is: Then round the value to the nearest integer; The temporal width of the window in the time-frequency image is Δ(ψ (a,b) ) and frequency domain width The calculation method of is as follows: D(ψ (a,b) )=|a|Δ(ψ) Where a is the scale of wavelet transform, b is the displacement of wavelet transform; a≠0, b is an arbitrary real number; ψ represents the wavelet transform function when a=1 and b=0; is the form of ψ after Fourier transformation; Δ(ψ) is the time domain width of the wavelet transform with a=1 and b=0; is the frequency domain width of the wavelet transform with a=1 and b=0; ψ (a,b) represents the wavelet transform function with scale a and displacement b; is (a,b) The form after Fourier transformation; Δ(ψ (a,b) ) is the time domain width of the wavelet transform with scale a and displacement b; is the frequency domain width of the wavelet transform with scale a and displacement b; Since the window Δ(ψ (a,b) ) and frequency domain width The product of is a constant, namely And because the scale a of wavelet transform is calculated as: Among them, F c is the wavelet center frequency, T s is the sampling time, F a is the actual frequency; And Δ(ψ) and The calculation method is: Among them, w 0 , γ are both constants, both positive values; t is the time variable; w is the frequency domain variable; i represents the imaginary number sign; Therefore, the time domain width Δ(ψ (a,b) ) and frequency domain width The value of .

2. The method for calculating a variable convolution kernel for variable resolution according to claim 1, It is characterized in that In step S3, in the deep layer of the convolutional neural network, the tensor convolved by the convolution kernel is convolved using the ResNet module.

3. The method for calculating a variable convolution kernel for variable resolution according to any one of claims 1 to 2, It is characterized in that The signal is a bearing fault signal, and a wavelet transform is performed on the bearing fault signal to obtain a time-frequency image of the wavelet transform of the bearing fault signal; a convolutional neural network is used to perform feature recognition on the time-frequency image of the wavelet transform of the bearing fault signal, so as to classify the bearing fault; the convolution kernel in the convolutional neural network is a variable convolution kernel, that is, the size of the convolution kernel convolved with each window in the time-frequency image is different; and the method of steps S1-S3 is used to solve the size of the convolution kernel convolved with each window in the time-frequency image.

4. Compute the storage medium of the variable convolution kernel for variable resolution, It is characterized in that The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to claim 1 or 2.