An improved SCSO-CNN-BiLSTM method for rotating machinery fault diagnosis

By improving the sand cat swarm optimization algorithm to optimize the hyperparameters of the CNN-BiLSTM model, the problem of difficulty in hyperparameter optimization of deep learning networks in rotating machinery fault diagnosis is solved, and the accuracy and iteration loss value of fault diagnosis are significantly improved, achieving a more efficient Fault feature extraction and classification.

CN118427742BActive Publication Date: 2024-09-17CHONGQING QIANHONGJIA NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410883054.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-17
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

It is difficult to optimize the hyperparameters of existing deep learning networks in rotating machinery fault diagnosis, which affects the classification effect and leads to low diagnosis accuracy.

Method used

The improved sand cat swarm optimization algorithm is used to optimize the hyperparameters of the CNN-BiLSTM model, and the number of neurons and convolution kernel size of the convolutional layer and BiLSTM layer are optimized through the position update formula of the population initialization, search, development and anti-predation stages. , improve the iteration loss value and diagnosis accuracy of the model.

Benefits of technology

It improves the hyperparameter optimization effect of the CNN-BiLSTM model, avoids local optimal solutions, enhances global search capabilities, and significantly improves the diagnosis accuracy and iteration loss value of rotating machinery faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118427742B
    Figure CN118427742B
Patent Text Reader

Abstract

The invention provides a rotating machinery fault diagnosis method based on an improved SCSO-CNN-BiLSTM, which belongs to the technical field of rotating machinery fault diagnosis. The method comprises the following steps: inputting a rotating machinery vibration signal; decomposing the rotating machinery vibration signal by using a variational mode decomposition (VMD) method, removing the residual and reconstructing a new vibration signal; converting the new vibration signal into a two-dimensional time-frequency image by using a short-time Fourier transform (STFT); optimizing the hyperparameters of a convolutional neural network (CNN)-long short-term memory neural network (BiLSTM) based on an improved sand cat swarm optimization algorithm (SCSO), including the number of neurons in a convolutional layer, the size of a convolutional kernel, and the number of neurons in a BiLSTM layer; and inputting the two-dimensional time-frequency image into a CNN-BiLSTM model after optimizing the hyperparameters, so as to realize rotating machinery fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rotating machinery fault diagnosis, and in particular to a rotating machinery fault diagnosis method based on an improved SCSO-CNN-BiLSTM. Background Art

[0002] Rotating machinery failures may affect the normal production and cause a decline in product quality. In severe cases, they may cause huge economic losses to the company and even lead to major safety and casualties. Therefore, it is of great practical significance to effectively diagnose rotating machinery failures in a timely and accurate manner.

[0003] With the development of the times and the improvement of computer technology, deep learning has become more and more excellent, and has achieved good development results in the fields of pattern recognition and image processing. At present, in the field of rotating machinery fault diagnosis, the time-frequency feature map of the vibration signal of rotating machinery equipment is obtained through certain signal processing methods, and then the convolutional network and its derivative network are used for feature extraction, and the classification task is performed to complete the fault diagnosis. However, since the performance of the deep learning network model is affected by the hyperparameters, it is necessary to set the hyperparameters through a large number of experiments and adjustments to optimize the model performance. Therefore, optimizing the hyperparameters of the deep learning network model to determine the optimal parameters for the classification effect is an urgent problem to be solved, and it is one of the research focuses of the fault diagnosis method of rotating machinery equipment in the future. Summary of the invention

[0004] The main purpose of the present invention is to solve the deficiencies in the prior art and provide a rotating machinery fault diagnosis method based on an improved SCSO-CNN-BiLSTM. The present invention optimizes CNN-BiLSTM parameters through an improved sand cat swarm optimization algorithm, with the aim of finding a set of hyperparameters so that the network has a lower iteration loss value and a higher diagnostic accuracy, thereby providing reliable support for protecting people's lives and property safety.

[0005] The technical solution to achieve the purpose of the present invention is: an improved SCSO-CNN-BiLSTM rotating machinery fault diagnosis method, comprising the following steps:

[0006] Step 1: Input the vibration signal of rotating machinery;

[0007] Step 2: Decompose the vibration signal of the rotating machinery using VMD, remove the residual and reconstruct a new vibration signal;

[0008] Step 3: Convert the new vibration signal into a two-dimensional time-frequency image through short-time Fourier transform STFT;

[0009] Step 4: Optimize the hyperparameters of CNN-BiLSTM based on the improved sand cat swarm optimization algorithm;

[0010] Step 5: Input the two-dimensional time-frequency image into the CNN-BiLSTM model with optimized hyperparameters to realize rotating machinery fault diagnosis.

[0011] Furthermore, in step 4, the improved sand cat colony optimization algorithm includes: (1) population initialization phase, (2) search phase, (3) development phase, and (4) anti-predation phase:

[0012] (1) In the population initialization stage, the tent chaotic map is used to initialize the population position, and its mathematical expression is:

[0013]

[0014] in, a is the chaos coefficient, x i is a random sequence with values ​​between (0-1), x i+1 is based on x i The generated chaotic map sequence;

[0015] (2) When |R|>1, the search phase begins; when When , it enters the development stage, where R is the balance factor, expressed as follows:

[0016] R=R G ×(2×rand-1)

[0017] in, rand is a random number between (0, 1), R G for Sensitivity, the expression is as follows:

[0018] R G =2×(1-t / T)

[0019] in, t is the current iteration number, T is the maximum number of iterations;

[0020] The position update formula in the search phase is:

[0021] P t+1 =R G ×rand×(Pbest t -rand×P t )

[0022] Pbest t Indicates the best position of the current sand cat, P t Indicates the current location of the sand cat, P t+1 is the position of the sand cat at the next time step;

[0023] (3) The development stage is divided into tracking hunting behavior and ambush hunting behavior: When When the predator enters the ambush hunting behavior, G F is the decision factor:

[0024] G F =0.2×(1-t / T)×rand

[0025] The position update formula for tracking hunting behavior is:

[0026] ,

[0027] The position update formula for ambush hunting behavior is:

[0028] P t+1 =Pbest t +rand×(P t -P rand )+X step ×trnd(1)

[0029] X step is the time step of waiting for prey, X step = (ub-lb) ×e (-C×t / T) ,in, C=2×G F ×N , is the tolerance factor, ub represents the upper boundary of the parameter, lb represents the lower boundary of the parameter, P rnd and P rand Indicates the current sand cat moving distance and a random sand cat position. is a random angle on the circle, trnd(1) is a random number that follows a t distribution with 1 degree of freedom;

[0030] (4) After the search or development phase, randomly select A Individuals enter the anti-predator stage, in which A= ⌊ z×N ⌋, ⌊ ⌋ means round down, N is the population size, z=0.3×e (1-t / T) , the position update formula in the anti-predation stage is as follows:

[0031]

[0032] in, Pworst t Indicates the worst position of the current sand cat, , , They are the individual fitness value, the current best fitness value, and the current worst fitness value. is the step size control parameter, a random number that follows a normal distribution with a mean of 0 and a variance of 1. is a random number from (-1,1), The constant is 10 -50 , to avoid the denominator being 0.

[0033] Furthermore, in step 4, the improved sand cat swarm optimization algorithm optimizes the hyperparameters of CNN-BiLSTM, including the number of neurons in the convolution layer, the size of the convolution kernel, and the number of neurons in the BiLSTM layer.

[0034] Furthermore, in step five, the CNN-BiLSTM model includes 4 convolutional layers, 3 pooling layers, a flattening layer, a BiLSTM layer, and an output layer. The activation function of the convolutional layer is the relu function, the stride is (2, 2), and zero padding; the pooling layer size is 2×2; the output of the output layer is 4, and the activation function is the softmax function; wherein the number of neurons in the convolutional layer, the size of the convolution kernel, and the number of neurons in the BiLSTM layer are obtained in step four.

[0035] The beneficial effects of the present invention are as follows: the present invention improves the sand cat swarm optimization algorithm, can achieve good optimization effects in terms of convergence accuracy and stability of parameter optimization, increases the diversity of the search space, avoids falling into a local optimal solution, and improves the global search capability, which is superior to the original sand cat optimization algorithm; the present invention optimizes the hyperparameters of CNN-BiLSTM based on the improved sand cat swarm optimization algorithm, enables the optimized CNN-BiLSTM to more effectively extract fault features, more effectively judge the fault category of rotating machinery, and has a lower iteration loss value, thereby improving the accuracy of fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 is a flow chart of the present invention;

[0038] Figure 2 It is the flow chart of the improved sand cat swarm optimization algorithm;

[0039] Figure 3 It is the topological diagram of the CNN-BiLSTM network model structure;

[0040] Figure 4 It is a comparison chart of the convergence curves of optimizing CNN-BiLSTM hyperparameters using the sparrow algorithm, the sand cat swarm optimization algorithm, and the improved sand cat swarm optimization algorithm;

[0041] Figure 5 It is the model loss iteration graph after optimizing CNN-BiLSTM hyperparameters using the sparrow algorithm, the sand cat swarm optimization algorithm, and the improved sand cat swarm optimization algorithm;

[0042] Figure 6 It is an iteration graph of model accuracy after optimizing CNN-BiLSTM hyperparameters using the sparrow algorithm, sand cat swarm optimization algorithm, and improved sand cat swarm optimization algorithm. DETAILED DESCRIPTION

[0043] 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 combination with the implementation cases and drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 making creative work belong to the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.

[0044] like Figure 1 , a rotating machinery fault diagnosis method based on improved SCSO-CNN-BiLSTM, comprising the following steps:

[0045] Step 1: Input the vibration signal of rotating machinery;

[0046] Step 2: Decompose the vibration signal of the rotating machinery using VMD, remove the residual and reconstruct a new vibration signal;

[0047] Step 3: Convert the new vibration signal into a two-dimensional time-frequency image through short-time Fourier transform STFT;

[0048] Step 4: Optimize the hyperparameters of CNN-BiLSTM based on the improved sand cat swarm optimization algorithm;

[0049] Step 5: Input the two-dimensional time-frequency image into the CNN-BiLSTM model with optimized hyperparameters to realize rotating machinery fault diagnosis.

[0050] Further, in step 4, the improved sand cat group optimization algorithm is shown in Figure 2 , including: (1) population initialization phase, (2) search phase, (3) development phase, and (4) anti-predation phase:

[0051] (1) In the population initialization stage, the tent chaotic map is used to initialize the population position, and its mathematical expression is:

[0052]

[0053] in, a is the chaos coefficient, x i is a random sequence with values ​​between (0-1), x i+1 is based on x i The generated chaotic map sequence;

[0054] (2) When |R|>1, the search phase begins; when When , it enters the development stage, where R is the balance factor, expressed as follows:

[0055] R=R G ×(2×rand-1)

[0056] in, rand is a random number between (0, 1), R G for Sensitivity, the expression is as follows:

[0057] R G =2×(1-t / T)

[0058] in, t is the current iteration number,T is the maximum number of iterations;

[0059] The position update formula in the search phase is:

[0060] P t+1 =R G ×rand×(Pbest t -rand×P t )

[0061] Pbest t Indicates the best position of the current sand cat, P t Indicates the current location of the sand cat, P t+1 is the position of the sand cat at the next time step;

[0062] (3) The development stage is divided into tracking hunting behavior and ambush hunting behavior: When When the predator enters the ambush hunting behavior, G F is the decision factor:

[0063] G F =0.2×(1-t / T)×rand

[0064] The position update formula for tracking hunting behavior is:

[0065] ,

[0066] The position update formula for ambush hunting behavior is:

[0067] P t+1 =Pbest t +rand×(P t -P rand )+X step ×trnd(1)

[0068] X step is the time step of waiting for prey, X step = (ub-lb) ×e (-C×t / T) ,in, C=2×G F×N , is the tolerance factor, ub represents the upper boundary of the parameter, lb represents the lower boundary of the parameter, P rnd and P rand Indicates the current sand cat moving distance and a random sand cat position. is a random angle on the circle, trnd(1) is a random number that follows a t distribution with 1 degree of freedom;

[0069] (4) After the search or development phase, randomly select A Individuals enter the anti-predator stage, in which A= ⌊ z×N ⌋, ⌊ ⌋ means round down, N is the population size, z=0.3×e (1-t / T) , the position update formula in the anti-predation stage is as follows:

[0070]

[0071] in, Pworst t Indicates the worst position of the current sand cat, , , They are the individual fitness value, the current best fitness value, and the current worst fitness value. is the step size control parameter, a random number that follows a normal distribution with a mean of 0 and a variance of 1. is a random number from (-1,1), The constant is 10 -50 , to avoid the denominator being 0.

[0072] Furthermore, in step 4, the improved sand cat swarm optimization algorithm optimizes the hyperparameters of CNN-BiLSTM, including the number of neurons in the convolution layer, the size of the convolution kernel, and the number of neurons in the BiLSTM layer.

[0073] Further, in step 5, the CNN-BiLSTM model, see Figure 3 , including 4 convolutional layers, 3 pooling layers, a flattening layer, a BiLSTM layer, and an output layer. The activation function of the convolutional layer is the relu function, the stride is (2, 2), and zero padding; the size of the pooling layer is 2×2; the output of the output layer is 4, and the activation function is the softmax function; among them, the number of neurons in the convolutional layer, the size of the convolution kernel, and the number of neurons in the BiLSTM layer are obtained from step 4.

[0074] The method of the present invention is described below by taking a specific rotating machinery fault diagnosis case as an example.

[0075] Example 1: Take the XJTU-SY rolling bearing accelerated life test data set as an example. The sampling frequency in the test is 25.6KHz, the sampling interval is 1min, and each sampling is 1.28s. The present invention uses the data of working condition 2. The bearing related parameters involved in the experiment are shown in Table 1, and the experimental data information is shown in Table 2.

[0076] Table 1 Bearing parameters

[0077]

[0078] Table 2 Data information list

[0079]

[0080] The specific implementation process is as follows:

[0081] (1) Input vibration signal. In order to simulate the strong noise environment in actual work, -12dB Gaussian noise is added to the input vibration signal.

[0082] (2) Use VMD to decompose the vibration signal, remove the residual, and then reconstruct a new vibration signal;

[0083] (3) Convert the new vibration signal into a two-dimensional time-frequency image through short-time Fourier transform (STFT);

[0084] (4) Optimize the hyperparameters of CNN-BiLSTM based on the improved sand cat swarm optimization algorithm. The evaluation results are shown in Figure 4 ;

[0085] (5) The two-dimensional time-frequency image is input into the CNN-BiLSTM model with optimized hyperparameters to realize the fault diagnosis of rotating machinery; the evaluation results are shown in Table 3. Figure 5 , Figure 6 .

[0086] Table 3 Comparison of model accuracy and loss value

[0087]

[0088] Example 2: An improved SCSO-CNN-BiLSTM method for rotating machinery fault diagnosis, the main content of which is shown in Example 1, wherein the improved sand cat group optimization algorithm is shown in Figure 2 , including: (1) population initialization phase, (2) search phase, (3) development phase, and (4) anti-predation phase:

[0089] (1) In the population initialization stage, the tent chaotic map is used to initialize the population position, and its mathematical expression is:

[0090]

[0091] in, a is the chaos coefficient, x i is a random sequence with values ​​between (0-1), x i+1 is based on x i The generated chaotic map sequence;

[0092] (2) When |R|>1, the search phase begins; when When , it enters the development stage, where R is the balance factor, expressed as follows:

[0093] R=R G ×(2×rand-1)

[0094] in, rand is a random number between (0, 1), R G for Sensitivity, the expression is as follows:

[0095] R G =2×(1-t / T)

[0096] in, t is the current iteration number, T is the maximum number of iterations;

[0097] The position update formula in the search phase is:

[0098] P t+1 =R G ×rand×(Pbest t -rand×P t )

[0099] Pbest t Indicates the best position of the current sand cat, P t Indicates the current location of the sand cat, P t+1 is the position of the sand cat at the next time step;

[0100] (3) The development stage is divided into tracking hunting behavior and ambush hunting behavior: When When the predator enters the ambush hunting behavior, G F is the decision factor:

[0101] G F =0.2×(1-t / T)×rand

[0102] The position update formula for tracking hunting behavior is:

[0103] ,

[0104] The position update formula for ambush hunting behavior is:

[0105] P t+1 =Pbest t +rand×(P t -P rand )+X step ×trnd(1)

[0106] X step is the time step of waiting for prey, X step = (ub-lb) ×e (-C×t / T) ,in, C=2×G F ×N , is the tolerance factor, ub represents the upper boundary of the parameter, lb represents the lower boundary of the parameter, P rnd and P rand Indicates the current sand cat moving distance and a random sand cat position. is a random angle on the circle, trnd(1) is a random number that follows a t distribution with 1 degree of freedom;

[0107] (4) After the search or development phase, randomly select A Individuals enter the anti-predator stage, in which A= ⌊ z×N ⌋, ⌊ ⌋ means round down, N is the population size, z=0.3×e (1-t / T) , the position update formula in the anti-predation stage is as follows:

[0108]

[0109] in, Pworst t Indicates the worst position of the current sand cat, , , They are the individual fitness value, the current best fitness value, and the current worst fitness value. is the step size control parameter, a random number that follows a normal distribution with a mean of 0 and a variance of 1. is a random number from (-1,1), The constant is 10 -50 , to avoid the denominator being 0.

[0110] Example 3: A rotating machinery fault diagnosis method with an improved SCSO-CNN-BiLSTM. The main content is shown in Example 1, wherein, in step 4, the improved sand cat swarm optimization algorithm optimizes the hyperparameters of CNN-BiLSTM, including the number of neurons in the convolution layer, the size of the convolution kernel, and the number of neurons in the BiLSTM layer.

[0111] Example 4: An improved SCSO-CNN-BiLSTM method for rotating machinery fault diagnosis, the main content of which is shown in Example 1, wherein in step 5, the CNN-BiLSTM model is shown in Figure 3 , including 4 convolutional layers, 3 pooling layers, a flattening layer, a BiLSTM layer, and an output layer. The activation function of the convolutional layer is the relu function, the stride is (2, 2), and zero padding; the size of the pooling layer is 2×2; the output of the output layer is 4, and the activation function is the softmax function; among them, the number of neurons in the convolutional layer, the size of the convolution kernel, and the number of neurons in the BiLSTM layer are obtained from step 4.

Claims

1. A rotating machinery fault diagnosis method based on an improved SCSO-CNN-BiLSTM, comprising the following steps: Step 1: Input the vibration signal of rotating machinery; Step 2: Decompose the vibration signal of the rotating machinery using VMD, remove the residual and reconstruct a new vibration signal; Step 3: Convert the new vibration signal into a two-dimensional time-frequency image through short-time Fourier transform STFT; Step 4: Optimize the hyperparameters of CNN-BiLSTM based on the improved sand cat swarm optimization algorithm; Step 5: Input the two-dimensional time-frequency image into the CNN-BiLSTM model with optimized hyperparameters to realize rotating machinery fault diagnosis; In step 4, the improved sand cat colony optimization algorithm includes: population initialization stage, search stage, development stage, and anti-predation stage: In the population initialization stage, the tent chaotic map is used to initialize the population position, and its mathematical expression is: Among them, a is the chaos coefficient, x i is a random sequence with values ​​between (0-1), x i+1 According to x i The generated chaotic map sequence; When |R|>1, it enters the search phase; when |R|≤1, it enters the development phase, where R is the balance factor, expressed as follows: R=R G ×(2×rand-1) Among them, rand is a random number between (0, 1), R G is the sensitivity, and the expression is as follows: R G =2×(1-t / T) Among them, t is the current iteration number, T is the maximum iteration number; The position update formula in the search phase is: P t+1 =R G ×rand×(Pbest t -rand×P t ) Pbest t represents the best position of the current sand cat, P t Indicates the current position of the sand cat, P t+1 is the position of the sand cat at the next time step; The development stage is divided into tracking hunting behavior and ambush hunting behavior: when G F ≤|R|≤1, it enters the tracking and hunting behavior; when |R| <G F When the ambush hunting behavior begins, G F is the decision factor: G F =0.2×(1-t / T)×rand The position update formula for tracking hunting behavior is: P rnd =|(rand×Pbest t -P t )| P t+1 =Pbest t -P rnd ×RG×rand×cosθ The position update formula for ambush hunting behavior is: P t+1 =Pbest t +rand×(P t -P rand )+X step ×trnd(1) X step is the time step of waiting for prey, X step =(ub-lb)×e (-C×t / T) , where C = 2 × G F ×N, is the tolerance factor, ub is the upper boundary of the parameter, lb is the lower boundary of the parameter, P rnd and P rand represents the current moving distance of the sand cat and a random sand cat position, θ is a random angle on the circumference, and trnd(1) is a random number that follows a t-distribution with 1 degree of freedom; After the search or development phase, individual A is randomly selected to enter the anti-predation phase, where represents rounding down, N is the number of populations, z = 0.3 × e (1-t / T) , the position update formula in the anti-predation stage is as follows: Among them, Pworst t represents the worst position of the current sand cat, f t 、f g 、f w are the individual fitness value, the current best fitness value, and the current worst fitness value, respectively. β is the step size control parameter, which is a random number that follows a normal distribution with a mean of 0 and a variance of 1. k is a random number between (-1, 1). ε is a constant of 10. -50 , to avoid the denominator being 0.

2. The rotating machinery fault diagnosis method of the improved SCSO-CNN-BiLSTM according to claim 1, characterized in that: In step 4, the improved sand cat swarm optimization algorithm optimizes the hyperparameters of CNN-BiLSTM, including the number of neurons in the convolution layer, the size of the convolution kernel, and the number of neurons in the BiLSTM layer.

3. The rotating machinery fault diagnosis method of the improved SCSO-CNN-BiLSTM according to claim 1, characterized in that: In step 5, the CNN-BiLSTM model includes 4 convolutional layers, 3 pooling layers, a flattening layer, a BiLSTM layer, and an output layer. The activation function of the convolutional layer is the relu function, the stride is (2, 2), and zero padding; the pooling layer size is 2×2; the output of the output layer is 4, and the activation function is the softmax function; wherein the number of neurons in the convolutional layer, the size of the convolution kernel, and the number of neurons in the BiLSTM layer are obtained in step 4.