Motor fault prediction method and device, electronic equipment and storage medium

By conducting empirical mode decomposition and prediction model prediction on the motor's historical current signal, combined with the clustering algorithm, the accuracy of motor fault prediction is improved, the problem of inaccurate fault prediction in the existing technology is solved, and the stable operation of the system is ensured. .

CN118566718AActive Publication Date: 2024-08-30HARBIN SIZHERUI INTELLIGENT MEDICAL EQUIP CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410610698.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-30
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

Existing motor fault prediction methods have poor accuracy and are difficult to predict accurately before motor failure, which affects the normal operation of the system.

Method used

Empirical mode decomposition is performed by obtaining the historical current signal of the target motor, the components are predicted using a prediction model based on the long-term and short-term recurrent neural network and the target genetic algorithm, and the current signal is processed through a clustering algorithm to determine the fault prediction result.

Benefits of technology

It improves the accuracy of motor fault prediction, enables corresponding decisions to be made before faults occur, and prevents uncontrollable problems from occurring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118566718A
    Figure CN118566718A
Patent Text Reader

Abstract

The invention discloses a motor fault prediction method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a historical current signal of a target motor in a first time period, and performing empirical mode decomposition on the historical current signal to obtain a plurality of connotation mode components and a residual component; for each target component, predicting the input target component through a target prediction model to obtain a prediction component of the target component in a second time period; reconstructing the plurality of prediction components to obtain a prediction current signal of the second time period; obtaining a standard current signal, and processing the standard current signal and the predicted current signal through a target clustering algorithm to obtain a clustering result corresponding to the predicted current signal; and determining a fault prediction result of the target motor in the second time period based on the clustering result. Based on the technical scheme of the invention, the accuracy of motor fault prediction can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a motor fault prediction method, device, electronic equipment and storage medium. Background Art

[0002] As a common power device, the motor has the advantages of long service life and good stability. It has been widely used in aerospace, medical equipment and other fields. However, due to factors such as sudden load changes and harsh working environment, the motor often fails and is damaged. Once the motor is damaged, it will seriously affect the normal operation of the system. Taking the medical surgical robot as an example, the joints of the medical surgical robot are usually driven by a motor. When the motor works normally, the joints of the robot can complete rotation or movement under the drive of the motor. The combination of the movements of each joint enables the medical surgical robot to complete complex surgical movements. When the motor fails, the movement of the corresponding joint will be uncontrollable, which will affect the normal operation of the surgical robot, affect the surgical process, and even endanger the patient's life in severe cases. For this reason, how to predict the fault before the motor fails has always been a hot issue in the field of fault detection.

[0003] In the related art, the vibration signal of the motor is usually predicted through a deep network learning model, and the motor failure is predicted by analyzing the predicted vibration signal, but the accuracy of the prediction result is often unsatisfactory, that is, the accuracy of the current common motor fault prediction methods is poor. Summary of the invention

[0004] The present invention provides a motor fault prediction method, device, electronic device and storage medium to solve the technical problem of poor accuracy of the current common motor fault prediction methods.

[0005] According to one aspect of the present invention, a method for predicting a fault of a motor is provided, wherein the method comprises:

[0006] Acquire a historical current signal of the target motor in a first time period, perform empirical mode decomposition on the historical current signal, and obtain a plurality of intrinsic mode components and a residual component;

[0007] For each target component, the input target component is predicted by a target prediction model to obtain a predicted component of the target component in the second time period, wherein the target prediction model is obtained by training a long-short term recursive neural network based on a training sample set and a target genetic algorithm, and the target genetic algorithm is a genetic algorithm in which a crossover rate and a mutation rate are associated with a number of genetic iterations;

[0008] Reconstructing the plurality of predicted components to obtain a predicted current signal for the second time period;

[0009] Acquire a standard current signal, and process the standard current signal and the predicted current signal by using a target clustering algorithm to obtain a clustering result corresponding to the predicted current signal;

[0010] A fault prediction result of the target motor in the second time period is determined based on the clustering result.

[0011] According to another aspect of the present invention, a fault prediction device for a motor is provided, wherein the device comprises:

[0012] An empirical mode decomposition module, used for acquiring a historical current signal of a target motor in a first time period, performing empirical mode decomposition on the historical current signal, and obtaining a plurality of intrinsic mode components and a residual component;

[0013] A component prediction module is used to predict the input target component for each target component through a target prediction model to obtain a predicted component of the target component in a second time period, wherein the target prediction model is obtained by training a long-short term recursive neural network based on a training sample set and a target genetic algorithm, and the target genetic algorithm is a genetic algorithm in which a crossover rate and a mutation rate are associated with a number of genetic iterations;

[0014] A component reconstruction module, used for reconstructing the plurality of predicted components to obtain a predicted current signal for the second time period;

[0015] A clustering processing module, used for acquiring a standard current signal, processing the standard current signal and the predicted current signal by a target clustering algorithm, and obtaining a clustering result corresponding to the predicted current signal;

[0016] A fault prediction module is used to determine a fault prediction result of the target motor in the second time period based on the clustering result.

[0017] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0018] at least one processor; and

[0019] a memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the motor fault prediction method described in any embodiment of the present invention.

[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the motor fault prediction method described in any embodiment of the present invention when executed.

[0022] The technical solution of the embodiment of the present invention is to obtain the historical current signal of the target motor in the first time period, perform empirical mode decomposition on the historical current signal, and obtain multiple intrinsic modal components and a residual component; for each target component, predict the input target component through the target prediction model to obtain the predicted component of the target component in the second time period, wherein the target prediction model is obtained by training the long-term and short-term recursive neural network based on the training sample set and the target genetic algorithm, and the target genetic algorithm is a genetic algorithm in which the crossover rate and mutation rate are associated with the number of genetic iterations; reconstruct the multiple predicted components to obtain the predicted current signal of the second time period; obtain the standard current signal, process the standard current signal and the predicted current signal through the target clustering algorithm, and obtain the clustering result corresponding to the predicted current signal; determine the fault prediction result of the target motor in the second time period based on the clustering result. The present application can improve the accuracy of motor fault prediction, so as to make corresponding decisions before the motor fault occurs, and prevent uncontrollable problems caused by sudden motor fault.

[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 is a flow chart of a motor fault prediction method provided according to Embodiment 1 of the present invention;

[0026] Figure 2 is a data example diagram of an empirical mode decomposition method provided according to an embodiment of the present invention;

[0027] Figure 3 is a flow chart of an empirical mode decomposition current signal provided according to an embodiment of the present invention;

[0028] Figure 4is a structural diagram of a long-short term recurrent neural network provided according to an embodiment of the present invention;

[0029] Figure 5 is a flow chart of clustering a standard current signal and a predicted current signal provided by an embodiment of the present invention;

[0030] Figure 6 is an example diagram of a clustering result provided according to an embodiment of the present invention;

[0031] Figure 7 A flowchart of a motor fault prediction method provided in Embodiment 2 of the present invention;

[0032] Figure 8 is a flow chart of training a long-term and short-term recurrent neural network according to an embodiment of the present invention;

[0033] Fig. 9 is an overall flow chart of a motor fault prediction method provided according to an embodiment of the present invention;

[0034] Fig.10 is a schematic diagram of the structure of a motor fault prediction device provided according to Embodiment 3 of the present invention;

[0035] Fig.11 It is a schematic diagram of the structure of an electronic device for implementing the motor fault prediction method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] Embodiment 1

[0039] Figure 1 A flowchart of a motor fault prediction method is provided for the first embodiment of the present invention. This embodiment is applicable to the case of predicting the fault of a motor driving a surgical robot. The method can be performed by a motor fault prediction device. The motor fault prediction device can be implemented in the form of hardware and / or software. The motor fault prediction device can be configured in a computer. Figure 1 As shown, the method includes:

[0040] S101, obtaining a historical current signal of a target motor in a first time period, performing empirical mode decomposition on the historical current signal, and obtaining a plurality of intrinsic mode components and a residual component.

[0041] Among them, the target motor can be understood as an electric energy conversion device. Optionally, in a medical scenario, the target motor can be used to drive a surgical robot. Specifically, the target motor drives the joints of the surgical robot to complete actions such as rotation or movement, and the actions of each joint are combined with each other to enable the surgical robot to complete complex surgical projects. In an embodiment of the present invention, the target motor can be preset according to the scene requirements, and is not specifically limited here. Exemplarily, the target motor may include a generator or an electric motor.

[0042] The first time period can be understood as a historical time period relative to the target time point. Optionally, the first time period can be a time period determined based on the target time point and a first preset time interval. Wherein, the first preset time interval can be 20s, 30s or 50s, etc. The target time point can be a real-time time point.

[0043] The historical current signal may be understood as a historical current signal.

[0044] The Empirical Mode Decomposition (EMD) can be understood as a method for decomposing signals based on the time scale characteristics of the data itself.

[0045] The intrinsic mode functions (IMF) and the residual components (RES) can be understood as the decomposition results of the empirical mode decomposition of the current signal (refer to Figure 2 ).

[0046] Figure 2 This is a data example diagram of an empirical mode decomposition method provided according to an embodiment of the present invention.

[0047] in, Figure 2, the historical current signal, six intrinsic modal components (IMF1, IMF2, IMF3, IMF4, IMF5 and IMF6) and one residual component obtained after performing empirical mode decomposition on the historical current signal are respectively shown.

[0048] Figure 3 FIG. 1 is a flow chart of an empirical mode decomposition current signal according to an embodiment of the present invention. Figure 3 As shown, wherein x(t) represents the historical current signal, IMF represents the intrinsic modal component, and Res(t) represents the residual component.

[0049] Specifically, the process of EMD current signal can be:

[0050] 1. Identify the extreme points of x(t) to locate the minimum and maximum points in the historical current signal;

[0051] 2. Using the cubic spline interpolation method, the identified maximum and minimum points are fitted respectively, and the first fitting curve E1 and the first fitting curve E2 are obtained in turn;

[0052] 3. Calculate the intermediate function H(t) based on E1 and E2, and determine whether H(t) is an IMF; if H(t) is not an IMF, re-identify the extreme points of x(t); if H(t) is an IMF, obtain the remainder T(t) after IMF decomposition;

[0053] 4. Determine whether T(t) is a monotonic function; if T(t) is not a monotonic function, use T(t) as x(t) and return to execute steps 1-3. If T(t) is a monotonic function, use T(t) as Res(t).

[0054] S102: For each target component, predict the input target component by using a target prediction model to obtain a predicted component of the target component in a second time period.

[0055] The target component can be understood as a component obtained by empirical mode decomposition. The target component can be one of the intrinsic mode function components or one of the residual components.

[0056] The target prediction model can be understood as a model with component prediction function. In the embodiment of the present invention, the input data of the target prediction model is the target component. The output data of the target prediction model is the prediction component corresponding to the target component.

[0057] Optionally, the prediction component includes a first component corresponding to the intrinsic mode function component or a second component corresponding to the residual component. Correspondingly, the target prediction model may include a first prediction model for predicting the first component or a second prediction model for predicting the second component. Further, the first component may include multiple sub-components, and correspondingly, the first prediction model may also include multiple sub-prediction models.

[0058] The second time period can be understood as a future time period relative to the target time point corresponding to the first time period. Optionally, the second time period can be a time period determined based on the target time point and a second preset time interval. The second preset time interval can be 1s, 3s or 5s, etc. The second preset time interval is less than the first preset time interval.

[0059] Optionally, the target prediction model is obtained by training a long-short term recursive neural network based on a training sample set and a target genetic algorithm, and the target genetic algorithm is a genetic algorithm in which a crossover rate and a mutation rate are associated with the number of genetic iterations.

[0060] The training sample set may be understood as samples used to train the target prediction model.

[0061] The target genetic algorithm can be understood as a genetic algorithm in which the crossover rate and mutation rate are associated with the number of genetic iterations.

[0062] The Long Short-Term Memory (LSTM) can be understood as a neural network that has the ability to memorize long-term and short-term information.

[0063] The crossover rate can be understood as the ratio of the number of offspring generated by crossover in each generation of the genetic algorithm to the number of individuals in the population. The mutation rate can be understood as the percentage of the number of mutant genes in the population of the genetic algorithm to the total number of genes.

[0064] The number of genetic iterations can be understood as the real-time iteration number of the target genetic algorithm. Exemplarily, the number of genetic iterations can be 1, 22, or 55, etc.

[0065] Figure 4 is a structural diagram of a long-term and short-term recurrent neural network provided according to an embodiment of the present invention. Figure 4 As shown, the structure of the long short-term recurrent neural network includes three gating units: a forget gate F, an input gate I and an output gate O. The three gating units jointly selectively store, update and forget the structural units, thereby realizing effective transmission of information.

[0066] Among them, the main function of the forget gate is to control the amount of memory information input from the previous moment to the memory information at the current moment, which can be expressed as:

[0067] F(t)=σ(W F [h(t-1),x(t)]+b F )

[0068] Among them, F(t) is the forget gate, σ is the sigmoid function, h(t) is the output of the structural unit at time t, x(t) is the input of the structural unit at time t, and b F Indicates the bias value, W F represents the weight matrix.

[0069] The expression of the sigmoid function can be: σ = 1 / (1+e -x ).

[0070] The main function of the input gate is to control the amount of input information at the current moment, which can be expressed as:

[0071] I(t)=σ(W I [h(t-1),x(t)]+b I )

[0072] Among them, I(t) is the input gate, σ is the sigmoid function, h(t) is the output of the structural unit at time t, x(t) is the input of the structural unit at time t, and b I Indicates the bias value, W I represents the weight matrix.

[0073] The candidate input at the current moment can be expressed as:

[0074]

[0075] Among them, tanh represents the hyperbolic activation function, h(t) is the output of the structural unit at time t, x(t) is the input of the structural unit at time t, and b c Indicates the bias value, W c represents the weight matrix.

[0076] Then, the memory information C(t-1) of the previous moment controlled by the forget gate F and the candidate input information of the current moment controlled by the input gate I can be obtained, which can be expressed as:

[0077]

[0078] Among them, C(t) represents the memory information of the structural unit at time t, F(t) is the forget gate, and I(t) is the input gate.

[0079] The main function of the output gate is to control the amount of memory information at the current moment, which is expressed as:

[0080] O(t)=σ(W O [h(t-1),x(t)]+b O )

[0081] Among them, O(t) represents the output gate, σ is the sigmoid function, h(t) is the output of the structural unit at time t, x(t) is the input of the structural unit at time t, and b O Indicates the bias value, W O represents the weight matrix.

[0082] The relationship among h(t), O(t) and C(t) may be: h(t)=O(t)tanh(C(t)).

[0083] The present invention selects the LSTM model as the prediction model of the component, which can avoid the problem of long-term dependence defects when targeting a longer time series and ensure the accuracy of component prediction.

[0084] S103: reconstruct the multiple prediction components to obtain a predicted current signal for the second time period.

[0085] The predicted current signal may be understood as a predicted current signal.

[0086] S104 , obtaining a standard current signal, and processing the standard current signal and the predicted current signal by using a target clustering algorithm to obtain a clustering result corresponding to the predicted current signal.

[0087] The standard current signal may be understood as a standard current signal or a normal current signal.

[0088] The target clustering algorithm can be understood as an algorithm for dividing a data set into different classes or clusters. Optionally, the target clustering algorithm can be kmeans++.

[0089] The clustering result may be understood as the clustering result of the predicted current signal. Optionally, the clustering result may be the clustering category of each data point corresponding to the predicted current signal.

[0090] Figure 5 FIG. 1 is a flow chart of clustering a standard current signal and a predicted current signal according to an embodiment of the present invention. Figure 5As shown, the normal current signal of the target motor is combined with the predicted current model generated and reconstructed by GA-LSTM (i.e., the target prediction model), and the kmeans++ clustering algorithm is used for classification, and the current average value and the root mean square value are selected as clustering indicators. If the working state of the motor is abnormal, the kmeans++ clustering result of the predicted current signal will deviate from the normal state center. Specifically, the distance between the data point of the current signal and the category center is calculated based on the following formula:

[0091]

[0092] Among them, d represents the Euclidean distance, x represents the category center, and y represents the data point.

[0093] Figure 6 FIG. 1 is an example diagram of a clustering result provided according to an embodiment of the present invention. Figure 6 As shown, the kmeans++ algorithm can distinguish between the standard current signal and the abnormal current signal. Therefore, when the predicted current signal is abnormal, the present application can accurately identify it through the target clustering algorithm.

[0094] S105 . Determine a fault prediction result of the target motor in the second time period based on the clustering result.

[0095] The fault prediction result may be understood as a result of predicting whether the target motor has a fault in the second time period. Optionally, the fault prediction result may include the presence of a fault and / or the absence of a fault.

[0096] The technical solution of the embodiment of the present invention is to obtain the historical current signal of the target motor in the first time period, perform empirical mode decomposition on the historical current signal, and obtain multiple intrinsic modal components and a residual component; for each target component, predict the input target component through the target prediction model to obtain the predicted component of the target component in the second time period, wherein the target prediction model is obtained by training the long-term and short-term recursive neural network based on the training sample set and the target genetic algorithm, and the target genetic algorithm is a genetic algorithm in which the crossover rate and mutation rate are associated with the number of genetic iterations; reconstruct the multiple predicted components to obtain the predicted current signal of the second time period; obtain the standard current signal, process the standard current signal and the predicted current signal through the target clustering algorithm, and obtain the clustering result corresponding to the predicted current signal; determine the fault prediction result of the target motor in the second time period based on the clustering result. The present application can improve the accuracy of motor fault prediction, so as to make corresponding decisions before the motor fault occurs, and prevent uncontrollable problems caused by sudden motor fault.

[0097] Embodiment 2

[0098] Figure 7 This is a flow chart of a motor fault prediction method provided in the second embodiment of the present invention. This embodiment is to add the prediction of the input target component by the target prediction model described in the above embodiment. Figure 7 As shown, the method includes:

[0099] S201, respectively initializing the long and short-term recursive neural network and the target genetic algorithm.

[0100] 1. Initialize LSTM. According to the sample space dimension of the training sample, determine the appropriate network topology, determine the number of neurons in the network, and initialize the weight threshold of each neuron node.

[0101] 2. Initialize GA. According to the LSTM topology to be optimized, determine the number of individuals in the GA population, and design an appropriate population number and total number of genetic iterations; select the training results of the LSTM model as the fitness function of the GA; set the crossover rate and mutation rate of the GA to adaptive values ​​that change with the change of the fitness value.

[0102] S202: predicting the input training samples through the long short-term recurrent neural network to obtain a prediction result, and determining the fitness value of the target genetic algorithm based on the prediction result.

[0103] Wherein, the fitness value can be understood as a value characterizing the fitness of the target genetic algorithm. In an embodiment of the present invention, the fitness value can reflect the performance of the target genetic algorithm. Optionally, the closer the fitness value is to the target value, the better the performance of the target genetic algorithm.

[0104] Optionally, determining the fitness value of the target genetic algorithm based on the prediction result includes:

[0105] The total number of samples in the training sample set is determined, and the fitness value is determined based on the prediction result, the sample labels of the training samples, and the total number of samples.

[0106] The total number of samples can be understood as the total number of training samples in the training sample set. The sample label can be understood as the label of the training sample.

[0107] In the embodiment of the present invention, the fitness value may be calculated based on the following formula:

[0108]

[0109] Wherein, Fit represents the fitness value, N represents the total number of samples, and y represents the sample label. Represents the prediction result.

[0110] S203. When the fitness value does not satisfy the preset condition, respectively update the crossover rate and mutation rate of the target genetic algorithm to obtain an updated crossover rate and an updated mutation rate.

[0111] Optionally, the preset condition may include that the fitness value is less than a target value. In the embodiment of the present invention, if the fitness value is less than the target value, it means that the performance of the target genetic algorithm has reached the target.

[0112] Optionally, updating the crossover rate of the target genetic algorithm to obtain an updated crossover rate includes:

[0113] Determine the average fitness corresponding to the training sample set, and if the fitness value exceeds the average fitness, use the preset first crossover rate as the updated crossover rate; otherwise,

[0114] Determining an updated crossover rate based on the first crossover rate, a preset second crossover rate, a current number of genetic iterations, and a preset total number of genetic iterations;

[0115] The first crossover rate is greater than the second crossover rate.

[0116] The average fitness can be understood as the average fitness value of all the training samples in the training sample set.

[0117] The total number of genetic iterations can be understood as the total number of iterations of the target legacy algorithm. The total number of genetic iterations can be preset according to scenario requirements and is not specifically limited here. Optionally, the total number of genetic iterations can include 50, 100 or 200, etc.

[0118] Related research has shown that the target genetic algorithm has better performance when the crossover rate belongs to the first fixed interval. Exemplarily, the first fixed interval can be [0.3, 0.8],

[0119] In the embodiment of the present invention, the first cross rate may be the maximum cross rate corresponding to the first fixed interval, and the first cross rate is 0.8 for example. The second cross rate may be the minimum cross rate corresponding to the first fixed interval, and the second cross rate is 0.3 for example.

[0120] In the embodiment of the present invention, the updated crossover rate may be calculated based on the following formula:

[0121]

[0122] Among them, p c represents the updated crossover rate, pcmax represents the first crossover rate, p cmin represents the second crossover rate, Fit represents the fitness value, and Fit mean represents the average fitness, j represents the current number of genetic iterations, and j max Represents the total number of genetic iterations.

[0123] Optionally, updating the mutation rate of the target genetic algorithm to obtain an updated mutation rate includes:

[0124] When the fitness value exceeds the average fitness, the preset first mutation rate is used as the updated mutation rate; otherwise,

[0125] Determining an updated mutation rate based on the first mutation rate, a preset second mutation rate, a current number of genetic iterations, and a preset total number of genetic iterations;

[0126] Wherein, the first mutation rate is smaller than the second mutation rate.

[0127] It is important to understand that, for the fitness function, the smaller the fitness value of the population, the stronger the adaptability of the population, and the more likely its excellent genes will be retained. The fundamental purpose of selecting, crossing over, and mutating the population according to the fitness value is to retain the evolutionary good genes and eliminate the inferior genes. In this step, the size of the crossover rate and the mutation rate seriously affects the performance of the genetic algorithm. In traditional genetic algorithms, the crossover rate p c With mutation rate p m The value is a constant. However, in the early stage of genetic iteration, a larger crossover rate and a smaller mutation rate help improve the genes of individuals with poor fitness; in the middle stage of genetic iteration, a larger mutation rate helps the algorithm improve local search capabilities; when the genetic iteration reaches the late stage, for individuals with strong adaptability, a smaller crossover rate and mutation rate help the individual genes to remain. In summary,

[0128] Related research has shown that the target genetic algorithm has better performance when the mutation rate belongs to the second fixed interval. Exemplarily, the second fixed interval can be [0.001, 0.1],

[0129] In the embodiment of the present invention, the first mutation rate may be the minimum mutation rate corresponding to the second fixed interval, and for example, the first mutation rate is 0.001. The second mutation rate may be the maximum mutation rate corresponding to the second fixed interval, and for example, the second mutation rate is 0.1.

[0130] In the embodiment of the present invention, the updated mutation rate can be calculated based on the following formula:

[0131]

[0132] Among them, p m represents the updated mutation rate, p mmax represents the second mutation rate, p mmin represents the first mutation rate, Fit represents the fitness value, and Fit mean represents the average fitness, j represents the current number of genetic iterations, and j max Represents the total number of genetic iterations.

[0133] S204: Update the training sample set based on the updated crossover rate and the updated mutation rate to obtain the updated training sample set.

[0134] S205, determining target model parameters based on the updated training sample set, and updating model parameters of the long-short term recurrent neural network based on the target model parameters to obtain an optimized prediction model.

[0135] The target model parameters may be understood as a set of optimized model parameters. Optionally, the target model parameters may include a target weight and / or a target threshold.

[0136] The optimized prediction model can be understood as the long-term and short-term recurrent neural network after model parameters are optimized.

[0137] Optionally, determining the target model parameters based on the updated training sample set includes:

[0138] Based on the updated training sample set, the operation of training the long short-term recurrent neural network through the training samples to obtain a prediction result and determining the fitness value of the target genetic algorithm based on the prediction result is returned.

[0139] Until the fitness value satisfies the preset condition, stop returning to the execution operation and determine the target model parameters based on the fitness value.

[0140] Figure 8 1 is a flow chart of a training long-term and short-term recurrent neural network according to an embodiment of the present invention. Figure 8 As shown, the process of training long short-term recurrent neural networks can be:

[0141] 1. GA optimization iteration. After initializing LSTM and GA, the sample space (i.e., the training sample) is used to train the LSTM model and obtain the training result of the model. The training result is used as the fitness value of GA and it is determined whether the value meets the end condition of GA optimization. If the fitness value does not meet the preset requirements, the crossover rate and mutation rate are updated, and the population gene of GA is selected for crossover and mutation to generate new individuals. The LSTM is retrained according to the new population individuals to obtain a new fitness value. If the GA fitness value meets the set requirements or the number of iterations of GA reaches the preset value, the LSTM node weight threshold optimized by GA at this time is output.

[0142] 2. LSTM verification. The optimized LSTM model is trained in combination with the sample space. During the model training process, if the training result of the neural network does not meet the expected requirements, the model training will continue; if it meets the expected requirements, the corresponding LSTM model will be output, and this model is the optimal LSTM model (i.e., the target prediction model).

[0143] S206: Train the optimized prediction model using the training sample set before updating to obtain the target prediction model.

[0144] S207 , obtaining a historical current signal of the target motor in the first time period, performing empirical mode decomposition on the historical current signal, and obtaining a plurality of intrinsic mode components and a residual component.

[0145] S208. For each target component, predict the input target component by using a target prediction model to obtain a predicted component of the target component in the second time period.

[0146] S209: reconstruct the multiple prediction components to obtain a predicted current signal for the second time period.

[0147] S210 , obtaining a standard current signal, and processing the standard current signal and the predicted current signal by using a target clustering algorithm to obtain a clustering result corresponding to the predicted current signal.

[0148] S211 . Determine a fault prediction result of the target motor in the second time period based on the clustering result.

[0149] The technical solution of the embodiment of the present invention is to respectively initialize the long-short term recurrent neural network and the target genetic algorithm; predict the input training sample through the long-short term recurrent neural network to obtain the prediction result, and determine the fitness value of the target genetic algorithm based on the prediction result; when the fitness value does not meet the preset condition, respectively update the crossover rate and mutation rate of the target genetic algorithm to obtain the updated crossover rate and the updated mutation rate; update the training sample set based on the updated crossover rate and the updated mutation rate to obtain the updated training sample set; determine the target model parameters based on the updated training sample set, and update the model parameters of the long-short term recurrent neural network based on the target model parameters to obtain the optimized prediction model; train the optimized prediction model through the training sample set before updating to obtain the target prediction model. The present application optimizes the long-short term recurrent neural network based on the target genetic algorithm whose crossover rate and mutation rate are updated with the number of genetic iterations, which can improve the performance of the trained target prediction model and improve the accuracy of the component prediction of the target prediction model.

[0150] Fig. 9 It is an overall flow chart of a motor fault prediction method provided according to an embodiment of the present invention.

[0151] like Fig. 9 As shown, the overall process of the motor fault prediction method can be:

[0152] 1. Data acquisition and processing. Obtain the historical current signal of the target motor under stable load. Generally speaking, as the motor is used for a longer time, its working performance decreases, resulting in a gradual increase in the motor current under the same load. Perform EMD decomposition on the acquired current signal to obtain multiple intrinsic modal components (IMF) and a residual component (RES).

[0153] 2. Model establishment and application. For the different IMF components and RES components obtained by decomposition, GA-LSTM models (i.e., target prediction models) are constructed for them respectively. The GA-LSTM model is used to predict the IMF components and RES components respectively, and the prediction results are integrated to obtain the predicted current signal of the motor.

[0154] 3. Reconstruction and classification of prediction data. The kmeans++ method is used to classify the prediction current signal and the standard current signal obtained by the GA-LSTM model. If there is a large deviation between the kmeans++ classification result of the prediction current signal and the classification result of the standard current signal of the motor, it indicates that the target motor is about to fail.

[0155] Based on the technical solution of the embodiments of the present invention, motor failure can be predicted so that corresponding decisions can be made before a real failure occurs, thereby preventing uncontrollable problems caused by sudden motor failure.

[0156] Embodiment 3

[0157] Fig.10 This is a schematic diagram of the structure of a motor fault prediction device provided by the third embodiment of the present invention. Fig.10 As shown, the device includes: an empirical mode decomposition module 310, a component prediction module 320, a component reconstruction module 330, a clustering processing module 340 and a fault prediction module 350. Among them,

[0158] An empirical mode decomposition module 310 is used to obtain the historical current signal of the target motor in the first time period, perform empirical mode decomposition on the historical current signal, and obtain multiple intrinsic modal components and one residual component; a component prediction module 320 is used to predict the input target component through a target prediction model for each target component, and obtain the predicted component of the target component in the second time period, wherein the target prediction model is obtained by training a long-term and short-term recursive neural network based on a training sample set and a target genetic algorithm, and the target genetic algorithm is a genetic algorithm in which the crossover rate and mutation rate are associated with the number of genetic iterations; a component reconstruction module 330 is used to reconstruct multiple predicted components to obtain a predicted current signal in the second time period; a clustering processing module 340 is used to obtain a standard current signal, and process the standard current signal and the predicted current signal through a target clustering algorithm to obtain a clustering result corresponding to the predicted current signal; a fault prediction module 350 is used to determine the fault prediction result of the target motor in the second time period based on the clustering result.

[0159] The technical solution of the embodiment of the present invention is to obtain the historical current signal of the target motor in the first time period, perform empirical mode decomposition on the historical current signal, and obtain multiple intrinsic modal components and a residual component; for each target component, predict the input target component through the target prediction model to obtain the predicted component of the target component in the second time period, wherein the target prediction model is obtained by training the long-term and short-term recursive neural network based on the training sample set and the target genetic algorithm, and the target genetic algorithm is a genetic algorithm in which the crossover rate and mutation rate are associated with the number of genetic iterations; reconstruct the multiple predicted components to obtain the predicted current signal of the second time period; obtain the standard current signal, process the standard current signal and the predicted current signal through the target clustering algorithm, and obtain the clustering result corresponding to the predicted current signal; determine the fault prediction result of the target motor in the second time period based on the clustering result. The present application can improve the accuracy of motor fault prediction, so as to make corresponding decisions before the motor fault occurs, and prevent uncontrollable problems caused by sudden motor fault.

[0160] Optionally, the target component includes an intrinsic modal function component or a residual component, the predicted component includes a first component corresponding to the intrinsic modal function component or a second component corresponding to the residual component, and the target prediction model includes a first prediction model for predicting the first component or a second prediction model for predicting the second component.

[0161] Optionally, the motor fault prediction device further includes: an initialization module, a fitness value determination module, a cross-mutation update module, a sample set update module, a model parameter update module and a target model determination module; wherein,

[0162] The initialization module is used to respectively initialize the long-term and short-term recursive neural network and the target genetic algorithm before predicting the input target component through the target prediction model;

[0163] The fitness value determination module is used to predict the input training samples through the long short-term recurrent neural network to obtain a prediction result, and determine the fitness value of the target genetic algorithm based on the prediction result;

[0164] The crossover mutation update module is used to update the crossover rate and mutation rate of the target genetic algorithm respectively to obtain an updated crossover rate and an updated mutation rate when the fitness value does not meet the preset condition;

[0165] The sample set updating module is used to update the training sample set based on the updated crossover rate and the updated mutation rate to obtain the updated training sample set;

[0166] The model parameter updating module is used to determine the target model parameters based on the updated training sample set, and update the model parameters of the long-term and short-term recurrent neural network based on the target model parameters to obtain an optimized prediction model;

[0167] The target model determination module is used to train the optimized prediction model through the training sample set before updating to obtain the target prediction model.

[0168] Optionally, the model parameter updating module is specifically used to:

[0169] Based on the updated training sample set, the operation of training the long short-term recurrent neural network through the training samples to obtain a prediction result and determining the fitness value of the target genetic algorithm based on the prediction result is returned.

[0170] Until the fitness value satisfies the preset condition, stop returning to the execution operation and determine the target model parameters based on the fitness value.

[0171] Optionally, the fitness value determination module is specifically used to:

[0172] The total number of samples in the training sample set is determined, and the fitness value is determined based on the prediction result, the sample labels of the training samples, and the total number of samples.

[0173] Optionally, the crossover mutation update module includes: a first crossover rate update unit and a second crossover rate update unit; wherein,

[0174] The first crossover rate updating unit is used to determine the average fitness corresponding to the training sample set, and when the fitness value exceeds the average fitness, use the preset first crossover rate as the updated crossover rate; otherwise,

[0175] The second crossover rate updating unit is used to determine an updated crossover rate based on the first crossover rate, a preset second crossover rate, a current number of genetic iterations, and a preset total number of genetic iterations;

[0176] The first crossover rate is greater than the second crossover rate.

[0177] Optionally, the cross-mutation update module further includes: a first mutation rate update unit and a second mutation rate update unit; wherein,

[0178] The first mutation rate updating unit is used to use the preset first mutation rate as the updated mutation rate when the fitness value exceeds the average fitness; otherwise,

[0179] The second mutation rate updating unit is used to determine the updated mutation rate based on the first mutation rate, the preset second mutation rate, the current number of genetic iterations, and the preset total number of genetic iterations;

[0180] Wherein, the first mutation rate is smaller than the second mutation rate.

[0181] The motor fault prediction device provided in the embodiment of the present invention can execute the motor fault prediction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0182] Embodiment 4

[0183] Fig.11 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0184] like Fig.11 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0185] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0186] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a fault prediction method for a motor.

[0187] In some embodiments, the fault prediction method of the motor may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the fault prediction method of the motor described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the fault prediction method of the motor in any other appropriate manner (e.g., by means of firmware).

[0188] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0189] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0190] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 foregoing.

[0191] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0192] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0193] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0194] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0195] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for predicting motor faults, characterized in that: include: Acquire a historical current signal of the target motor in a first time period, perform empirical mode decomposition on the historical current signal, and obtain a plurality of intrinsic mode components and a residual component; For each target component, the input target component is predicted by a target prediction model to obtain a predicted component of the target component in the second time period, wherein the target prediction model is obtained by training a long-short term recursive neural network based on a training sample set and a target genetic algorithm, and the target genetic algorithm is a genetic algorithm in which a crossover rate and a mutation rate are associated with a number of genetic iterations; Reconstructing the plurality of predicted components to obtain a predicted current signal for the second time period; Acquire a standard current signal, and process the standard current signal and the predicted current signal by using a target clustering algorithm to obtain a clustering result corresponding to the predicted current signal; A fault prediction result of the target motor in the second time period is determined based on the clustering result.

2. The method according to claim 1, characterized in that The target component includes an intrinsic modal function component or a residual component, the predicted component includes a first component corresponding to the intrinsic modal function component or a second component corresponding to the residual component, and the target prediction model includes a first prediction model for predicting the first component or a second prediction model for predicting the second component.

3. The method according to claim 1, characterized in that Before predicting the input target component by the target prediction model, the method further includes: Initializing the long and short-term recursive neural network and the target genetic algorithm respectively; Predicting the input training samples through the long-short term recurrent neural network to obtain a prediction result, and determining the fitness value of the target genetic algorithm based on the prediction result; When the fitness value does not satisfy the preset condition, respectively updating the crossover rate and the mutation rate of the target genetic algorithm to obtain an updated crossover rate and an updated mutation rate; The training sample set is updated based on the updated crossover rate and the updated mutation rate to obtain the updated training sample set; Determining target model parameters based on the updated training sample set, and updating model parameters of the long-term and short-term recurrent neural network based on the target model parameters to obtain an optimized prediction model; The optimized prediction model is trained by using the training sample set before updating to obtain the target prediction model.

4. The method according to claim 1, characterized in that: The determining of target model parameters based on the updated training sample set includes: Based on the updated training sample set, the operation of training the long short-term recurrent neural network through the training samples to obtain a prediction result and determining the fitness value of the target genetic algorithm based on the prediction result is returned. Until the fitness value satisfies the preset condition, stop returning to the execution operation and determine the target model parameters based on the fitness value.

5. The method according to claim 3, characterized in that: Determining the fitness value of the target genetic algorithm based on the prediction result includes: The total number of samples in the training sample set is determined, and the fitness value is determined based on the prediction result, the sample labels of the training samples, and the total number of samples.

6. The method according to claim 3, characterized in that The step of updating the crossover rate of the target genetic algorithm to obtain an updated crossover rate includes: Determine the average fitness corresponding to the training sample set, and if the fitness value exceeds the average fitness, use the preset first crossover rate as the updated crossover rate; otherwise, Determining an updated crossover rate based on the first crossover rate, a preset second crossover rate, a current number of genetic iterations, and a preset total number of genetic iterations; The first crossover rate is greater than the second crossover rate.

7. The method according to claim 6, characterized in that The updating of the mutation rate of the target genetic algorithm to obtain an updated mutation rate includes: When the fitness value exceeds the average fitness, the preset first mutation rate is used as the updated mutation rate; otherwise, Determining an updated mutation rate based on the first mutation rate, a preset second mutation rate, a current number of genetic iterations, and a preset total number of genetic iterations; Wherein, the first mutation rate is smaller than the second mutation rate.

8. A motor fault prediction device, characterized in that: include: An empirical mode decomposition module, used for acquiring a historical current signal of a target motor in a first time period, performing empirical mode decomposition on the historical current signal, and obtaining a plurality of intrinsic mode components and a residual component; A component prediction module is used to predict the input target component for each target component through a target prediction model to obtain a predicted component of the target component in a second time period, wherein the target prediction model is obtained by training a long-short term recursive neural network based on a training sample set and a target genetic algorithm, and the target genetic algorithm is a genetic algorithm in which a crossover rate and a mutation rate are associated with a number of genetic iterations; A component reconstruction module, used for reconstructing the plurality of predicted components to obtain a predicted current signal for the second time period; A clustering processing module, used for acquiring a standard current signal, processing the standard current signal and the predicted current signal by a target clustering algorithm, and obtaining a clustering result corresponding to the predicted current signal; A fault prediction module is used to determine a fault prediction result of the target motor in the second time period based on the clustering result.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the fault prediction method for the motor according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the fault prediction method for a motor according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Energy storage device control method based on ensemble empirical mode decomposition and LSTM

    CN110059844A

  • Motor fault diagnosis system and method based on edge calculation and deep learning

    CN111830408A

  • Transformer oil temperature prediction method and device, computer equipment and storage medium

    CN115423177A

  • Online car-hailing demand prediction method based on improved EMD-LSTM

    CN116468469A

  • Photovoltaic power generation power prediction method and system

    CN117493795A