A method and device for identifying rotor resistance of an asynchronous motor

By using the LSTM-RNN model combined with the Attention mechanism's rotor resistance online identification method in the asynchronous motor, the problems of low accuracy and over-fitting in the existing technology are solved, high-precision rotor resistance identification is achieved, and the motor operating efficiency evaluation is improved. accuracy.

CN114696704BActive Publication Date: 2024-10-01HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210357120.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-01
Publication Date
2024-10-01
Estimated Expiration
2042-04-01

AI Technical Summary

Technical Problem

The existing online identification method of asynchronous motor rotor resistance fails to make full use of the timing characteristics, resulting in low accuracy, easy to fall into local optimal solutions and over-fitting, and cannot accurately identify the rotor resistance, affecting the evaluation of motor operating efficiency.

Method used

The LSTM-RNN model combined with the Attention mechanism is used to establish an online rotor resistance identification model. The timing characteristics of the motor data are used to build a multi-step, multi-variable identification model. The model parameters are optimized through the training set, verification set and test set to improve the identification accuracy and reliability.

Benefits of technology

It achieves high rotor resistance identification accuracy and reliability, can effectively handle long-distance dependency issues, adapts to time series data analysis, and improves the accuracy of motor operating efficiency evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114696704B_ABST
    Figure CN114696704B_ABST
Patent Text Reader

Abstract

The present application relates to a method and device for identifying the rotor resistance of an asynchronous motor, and to the technical field of asynchronous motors. The method comprises the following steps: obtaining motor data and motor rotor resistance of a reference motor rotor, constructing a motor data sequence and a first output sequence; configuring a training set, a validation set, and a test set based on the motor data sequence and the first output sequence of the reference motor rotor; constructing an Attention‑LSTM‑RNN model, and training the Attention‑LSTM‑RNN model; obtaining motor data of a motor rotor to be tested, and using the trained Attention‑LSTM‑RNN model to identify the motor rotor resistance. The present application makes full use of the timing characteristics of the rotor resistance change, and on the basis of the LSTM‑RNN model, establishes an online rotor resistance identification model, which has good accuracy and identification reliability, so as to identify the rotor resistance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of asynchronous motors, and in particular to a method and device for identifying the rotor resistance of an asynchronous motor. Background Art

[0002] In the energy efficiency evaluation of the motor system, the accuracy of the rotor resistance parameters directly affects the evaluation accuracy of the motor operating efficiency. In the vector control system, the accuracy of the rotor resistance parameters will directly affect the accuracy of the flux observer and the control link.

[0003] However, affected by complex factors such as temperature rise and skin effect, the rotor resistance of asynchronous motors has nonlinear and time-varying characteristics. For example, the motor temperature will increase as the motor working time increases, which will cause the rotor resistance value to change. Such changes will cause changes in the motor rotor time constant, etc., resulting in distortion of various motor feedback signals calculated based on fixed parameter settings.

[0004] At present, traditional online identification methods for asynchronous motor rotor resistance include least squares method, Kalman filtering method, etc. These methods fail to fully utilize the timing characteristics of rotor resistance, cannot well identify the input features that play a key role in rotor resistance identification, and have problems such as low accuracy, easy to fall into local optimal solution and overfitting.

[0005] Therefore, in order to meet the actual use requirements, a method and device for identifying the rotor resistance of an asynchronous motor are provided. Summary of the invention

[0006] The present application provides an asynchronous motor rotor resistance identification method and device, which fully utilizes the timing characteristics of the rotor resistance change, and establishes a rotor resistance online identification model based on the LSTM-RNN model, which has good accuracy and identification reliability, so as to identify the rotor resistance.

[0007] In a first aspect, the present application provides a method for identifying the rotor resistance of an asynchronous motor, the method comprising the following steps:

[0008] Obtaining motor data and motor rotor resistance of a reference motor rotor, and constructing a motor data sequence of the reference motor rotor and a first output sequence;

[0009] Based on the motor data sequence of the control motor rotor and the first output sequence, configuring a training set, a validation set and a test set according to a preset ratio;

[0010] Constructing an Attention-LSTM-RNN model, and training the Attention-LSTM-RNN model based on the training set, the validation set, and the test set;

[0011] Obtaining motor data of the motor rotor to be tested, and using the trained Attention-LSTM-RNN model to identify the motor rotor resistance; wherein,

[0012] The Attention-LSTM-RNN model includes an input layer, an LSTM hidden layer, an Attention layer, a fully connected layer, and an output layer;

[0013] The number of neurons in the input layer and the output layer is determined based on the number of variables in the motor data and the number of motor rotor resistances.

[0014] Specifically, the motor data includes the rotor d-axis current, the rotor q-axis current, the rotor d-axis voltage, the rotor q-axis voltage, the torque, the ambient temperature and the rotor frequency obtained through PI transformation in a preset coordinate system.

[0015] Specifically, the obtaining of the motor data and the motor rotor resistance of the reference motor rotor, and the construction of the motor data sequence and the first output sequence of the reference motor rotor include the following steps:

[0016] Obtaining motor data of a reference motor rotor, and sequentially constructing a motor data sequence of the reference motor rotor;

[0017] The motor rotor resistance is used as the output variable of the Attention-LSTM-RNN model, and the first output sequence is constructed in an order corresponding to the motor data in the motor data sequence.

[0018] Specifically, after obtaining the motor data and the motor rotor resistance of the reference motor rotor and before constructing the motor data sequence of the reference motor rotor and the first output sequence, the method further includes the following steps:

[0019] The motor data is normalized.

[0020] Specifically, in constructing the Attention-LSTM-RNN model, the method further includes the following steps:

[0021] According to the data type of the motor data in the motor data sequence, different initial attention weights are configured in the input layer of the Attention-LSTM-RNN model.

[0022] Specifically, in constructing the Attention-LSTM-RNN model, the method further includes the following steps:

[0023] Obtaining relative entropies of different types of motor data in the motor data sequence;

[0024] Based on the relative entropy, obtaining redundancy of different types of motor data in the motor data sequence;

[0025] Based on the remnants of different types of motor data in the motor data sequence, the initial attention weight is configured in the input layer of the Attention-LSTM-RNN model.

[0026] Specifically, based on the training set, the validation set and the test set, the Attention-LSTM-RNN model is trained, and the method includes the following steps:

[0027] Using the data in the motor data sequence belonging to the training set as input, and using the data in the first output sequence belonging to the training set as output, to train the Attention-LSTM-RNN model;

[0028] Based on the motor data sequence and the data belonging to the test set in the first output sequence, a simulation test is performed using the Attention-LSTM-RNN model to obtain a test set loss value;

[0029] Based on the motor data sequence and the data belonging to the validation set in the first output sequence, a simulation test is performed using the Attention-LSTM-RNN model to obtain a validation set loss value;

[0030] Compare the test set loss value with the validation set loss value to determine whether the Attention-LSTM-RNN model has passed the training.

[0031] Specifically, in constructing the Attention-LSTM-RNN model, the method further includes the following steps:

[0032] The number of neurons in the input layer is set according to the number of motor data in the motor data sequence;

[0033] The number of neurons in the output layer is set based on the number of data in the first output sequence.

[0034] Specifically, the motor data of the motor rotor to be tested is obtained, and the motor rotor resistance is identified by using the trained Attention-LSTM-RNN model. The method includes the following steps:

[0035] When the motor to be tested reaches a thermal equilibrium state, the temperature is not used as an input parameter of the Attention-LSTM-RNN model.

[0036] In a second aspect, the present application provides an asynchronous motor rotor resistance identification device, the device comprising:

[0037] A data acquisition module, which is used to obtain motor data and motor rotor resistance of the reference motor rotor, and to construct a motor data sequence of the reference motor rotor and a first output sequence;

[0038] A data splitting module, configured to configure a training set, a validation set and a test set according to a preset ratio based on the motor data sequence of the control motor rotor and the first output sequence;

[0039] A model building module, which is used to build an Attention-LSTM-RNN model and train the Attention-LSTM-RNN model based on the training set, the validation set and the test set;

[0040] A resistance identification module is used to obtain motor data of the motor rotor to be tested, and use the trained Attention-LSTM-RNN model to identify the motor rotor resistance; wherein,

[0041] The Attention-LSTM-RNN model includes an input layer, an LSTM hidden layer, an Attention layer, a fully connected layer, and an output layer;

[0042] The number of neurons in the input layer and the output layer is determined based on the number of variables in the motor data and the number of motor rotor resistances.

[0043] Specifically, the motor data includes the rotor d-axis current, the rotor q-axis current, the rotor d-axis voltage, the rotor q-axis voltage, the torque, the ambient temperature and the rotor frequency obtained through PI transformation in a preset coordinate system.

[0044] Specifically, the data acquisition module is further used to obtain motor data of a control motor rotor, and to sequentially construct a motor data sequence of the control motor rotor;

[0045] The data acquisition module is also used to use the motor rotor resistance as the output variable of the Attention-LSTM-RNN model, and to construct the first output sequence in an order corresponding to the motor data in the motor data sequence.

[0046] Specifically, the device further includes a normalization module, which is used to perform normalization processing on the motor data.

[0047] Specifically, the model building module includes a weight assignment submodule, which is used to configure different initial attention weights in the input layer of the Attention-LSTM-RNN model according to the data type of the motor data in the motor data sequence.

[0048] Specifically, the weight allocation submodule is also used to obtain the relative entropy of different types of motor data in the motor data sequence;

[0049] The weight allocation submodule is also used to obtain the redundancy of different types of motor data in the motor data sequence based on the relative entropy;

[0050] The weight allocation submodule is also used to configure the initial attention weight in the input layer of the Attention-LSTM-RNN model based on the redundancy of different types of motor data in the motor data sequence.

[0051] Specifically, the model construction module includes a model training submodule, which is used to take the data belonging to the training set in the motor data sequence as input, and take the data belonging to the training set in the first output sequence as output, to train the Attention-LSTM-RNN model;

[0052] The model training submodule is also used to perform simulation testing using the Attention-LSTM-RNN model based on the motor data sequence and the data belonging to the test set in the first output sequence to obtain a test set loss value;

[0053] The model training submodule is also used to perform simulation testing using the Attention-LSTM-RNN model based on the motor data sequence and the data belonging to the verification set in the first output sequence to obtain a verification set loss value;

[0054] The model training submodule is also used to compare the test set loss value with the validation set loss value to determine whether the Attention-LSTM-RNN model has passed the training.

[0055] Specifically, the model building module includes a model building submodule, which is used to set the number of neurons in the input layer according to the number of motor data in the motor data sequence;

[0056] The model building submodule is also used to set the number of neurons in the output layer based on the number of data in the first output sequence.

[0057] Specifically, the device also includes a model adjustment module, which is used to not use temperature as an input parameter of the Attention-LSTM-RNN model when the motor to be tested reaches a thermal equilibrium state.

[0058] The beneficial effects of the technical solution provided by this application include:

[0059] This application makes full use of the timing characteristics of the rotor resistance change and establishes an online rotor resistance identification model based on the LSTM-RNN model, which has good accuracy and identification reliability, so as to identify the rotor resistance. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Terminology explanation:

[0061] LSTM: Long Short-Term Memory, long short-term memory network;

[0062] RNN: Recurrent Neural Network, recurrent neural network;

[0063] MAE: Mean Absolute Error, mean absolute error;

[0064] RMSE: Root Mean Squared Error, root mean square error.

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

[0066] Figure 1 A flowchart of the steps of the asynchronous motor rotor resistance identification method provided in an embodiment of the present application;

[0067] Figure 2 A schematic diagram of an asynchronous motor rotor resistance identification method provided in an embodiment of the present application;

[0068] Figure 3 This is an Attention-LSTM-RNN neural network structure diagram of the asynchronous motor rotor resistance identification method provided in an embodiment of the present application;

[0069] Figure 4 A curve diagram showing the rotor resistance variation with temperature of an asynchronous motor when the asynchronous motor is working in the method for identifying the rotor resistance of an asynchronous motor provided in an embodiment of the present application;

[0070] Figure 5 A schematic diagram showing a comparison between a rotor resistance parameter identification result and its true value of an asynchronous motor rotor resistance identification method provided in an embodiment of the present application;

[0071] Figure 6 This is a structural block diagram of an asynchronous motor rotor resistance identification device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0073] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.

[0074] The embodiment of the present application provides an asynchronous motor rotor resistance identification method and device, which fully utilizes the timing characteristics of the rotor resistance change, and establishes a rotor resistance online identification model based on the LSTM-RNN model, which has good accuracy and identification reliability, so as to identify the rotor resistance.

[0075] In order to achieve the above technical effects, the overall idea of ​​this application is as follows:

[0076] A method for identifying the rotor resistance of an asynchronous motor, the method comprising the following steps:

[0077] S1, obtaining motor data and motor rotor resistance of a reference motor rotor, and constructing a motor data sequence and a first output sequence of the reference motor rotor;

[0078] S2, based on the motor data sequence of the control motor rotor and the first output sequence, configuring a training set, a validation set and a test set according to a preset ratio;

[0079] S3. Build an Attention-LSTM-RNN model and train the Attention-LSTM-RNN model based on the training set, validation set, and test set;

[0080] S4, obtaining the motor data of the motor rotor to be tested, and using the trained Attention-LSTM-RNN model to identify the motor rotor resistance; wherein,

[0081] The Attention-LSTM-RNN model includes an input layer, an LSTM hidden layer, an Attention layer, a fully connected layer, and an output layer;

[0082] The number of neurons in the input layer and the output layer is determined based on the number of variables in the motor data and the number of motor rotor resistances.

[0083] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.

[0084] First, see Figures 1 to 5As shown, the embodiment of the present application provides a method for identifying the rotor resistance of an asynchronous motor, the method comprising the following steps:

[0085] S1, obtaining motor data and motor rotor resistance of a reference motor rotor, and constructing a motor data sequence and a first output sequence of the reference motor rotor;

[0086] S2, based on the motor data sequence of the control motor rotor and the first output sequence, configuring a training set, a validation set and a test set according to a preset ratio;

[0087] S3. Build an Attention-LSTM-RNN model and train the Attention-LSTM-RNN model based on the training set, validation set, and test set;

[0088] S4, obtaining the motor data of the motor rotor to be tested, and using the trained Attention-LSTM-RNN model to identify the motor rotor resistance; wherein,

[0089] The Attention-LSTM-RNN model includes an input layer, an LSTM hidden layer, an Attention layer, a fully connected layer, and an output layer;

[0090] The number of neurons in the input layer and the output layer is determined based on the number of variables in the motor data and the number of motor rotor resistances.

[0091] The embodiment of the present application makes full use of the timing characteristics of the rotor resistance change, and establishes an online rotor resistance identification model based on the LSTM-RNN model, which has good accuracy and identification reliability, so as to identify the rotor resistance;

[0092] The LSTM-RNN model can handle long-distance dependency problems, make full use of historical information, have stronger adaptability in time series data analysis, and make full use of the time series characteristics of rotor resistance changes. On the basis of the LSTM-RNN model, the Attention mechanism is introduced to highlight the data sequences that have a key impact on the rotor resistance identification results, and a multi-step, multi-variable rotor resistance online identification model is established.

[0093] Specifically, the motor data includes the rotor d-axis current, the rotor q-axis current, the rotor d-axis voltage, the rotor q-axis voltage, the torque, the ambient temperature and the rotor frequency obtained through PI transformation in a preset coordinate system;

[0094] The preset coordinate system is the dq0 coordinate system;

[0095] The establishment of the dq0 coordinate system is as follows:

[0096] The Park transformation projects the a, b, and c three-phase currents of the stator onto the direct axis (d axis), the quadrature axis (q axis), and the zero axis (0 axis) perpendicular to the dq plane that rotates with the rotor, thereby diagonalizing the stator inductance matrix and simplifying the operation analysis of the synchronous motor.

[0097] Among them, PI transformation: the current command value outputs the voltage command value through the PI controller. The PI controller is a proportional integrator. The full name of the PI controller in English is Proportional Integral Controller.

[0098] Specifically, the obtaining of the motor data and the motor rotor resistance of the reference motor rotor, and the construction of the motor data sequence and the first output sequence of the reference motor rotor include the following steps:

[0099] Obtaining motor data of a reference motor rotor, and sequentially constructing a motor data sequence of the reference motor rotor;

[0100] The motor rotor resistance is used as the output variable of the Attention-LSTM-RNN model, and the first output sequence is constructed in an order corresponding to the motor data in the motor data sequence.

[0101] Specifically, after obtaining the motor data and the motor rotor resistance of the reference motor rotor and before constructing the motor data sequence of the reference motor rotor and the first output sequence, the method further includes the following steps:

[0102] The motor data is normalized.

[0103] Specifically, in constructing the Attention-LSTM-RNN model, the method further includes the following steps:

[0104] According to the data type of the motor data in the motor data sequence, different initial attention weights are configured in the input layer of the Attention-LSTM-RNN model.

[0105] Specifically, in constructing the Attention-LSTM-RNN model, the method further includes the following steps:

[0106] Obtaining relative entropies of different types of motor data in the motor data sequence;

[0107] Based on the relative entropy, obtaining redundancy of different types of motor data in the motor data sequence;

[0108] Based on the remnants of different types of motor data in the motor data sequence, the initial attention weight is configured in the input layer of the Attention-LSTM-RNN model.

[0109] Specifically, based on the training set, the validation set and the test set, the Attention-LSTM-RNN model is trained, and the method includes the following steps:

[0110] Using the data in the motor data sequence belonging to the training set as input, and using the data in the first output sequence belonging to the training set as output, to train the Attention-LSTM-RNN model;

[0111] Based on the motor data sequence and the data belonging to the test set in the first output sequence, a simulation test is performed using the Attention-LSTM-RNN model to obtain a test set loss value;

[0112] Based on the motor data sequence and the data belonging to the validation set in the first output sequence, a simulation test is performed using the Attention-LSTM-RNN model to obtain a validation set loss value;

[0113] Compare the test set loss value with the validation set loss value to determine whether the Attention-LSTM-RNN model has passed the training.

[0114] Specifically, in constructing the Attention-LSTM-RNN model, the method further includes the following steps:

[0115] The number of neurons in the input layer is set according to the number of motor data in the motor data sequence;

[0116] The number of neurons in the output layer is set based on the number of data in the first output sequence.

[0117] Specifically, the motor data of the motor rotor to be tested is obtained, and the motor rotor resistance is identified by using the trained Attention-LSTM-RNN model. The method includes the following steps:

[0118] When the motor to be tested reaches a thermal equilibrium state, the temperature is not used as an input parameter of the Attention-LSTM-RNN model.

[0119] Based on the technical solution of the embodiment of the present application, in the specific implementation, the operation process is as follows:

[0120] The first step is to collect data signals that can reflect the characteristics of the rotor resistance, specifically, the motor data of the motor rotor and the motor rotor resistance.

[0121] The motor data includes the rotor d-axis current i in the dq0 coordinate system. d, rotor q-axis current i q , the rotor d-axis voltage v obtained after PI transformation d , rotor q-axis voltage v q , torque T e , ambient temperature T and rotor frequency f, etc., and use them as a comprehensive input variable to form the motor data sequence X = {x1, x2, …, x n};

[0122] The motor rotor resistance R r As output variables, the output sequence Y = {y1, y2, ..., y n}.

[0123] Process the historical data to obtain the motor time series data, x i (t) = {x i (1),x i (2),…,x i (n)}, y(t) = {y(1), y(2), …, y(n)}, forming a nonlinear autoregressive time series model with external input:

[0124] y(t)=f{x i (t-1),x i (t-2),…,x i (tp),y(t-1),y(t-2),…,y(tp)}; where,

[0125] f{} is the Attention-LSTM-RNN neural network simulation estimation approximation function, and p is the p adjacent time periods in the time series.

[0126] In addition, considering that the magnitude of motor data varies greatly and the fluctuation range is wide, all data need to be normalized to reduce the influence of noise, etc.:

[0127] in,

[0128] x * is the normalized motor data, x i is the initial motor data, i is the number of input variables, x max is the maximum value of the data, x min is the minimum value of the data.

[0129] The second step is to determine the Attention-LSTM-RNN network structure;

[0130] Figure 3This is a structural diagram of the Attention-LSTM-RNN neural network in an embodiment of the present application. The Attention-LSTM-RNN model includes an input vector, m LSTM hidden layers, an Attention layer, a fully connected layer, and an output rotor resistance identification value.

[0131] It should be noted that the values ​​required in the neural network are as follows:

[0132] (1) Network input value at the current moment;

[0133] (2) Number of hidden layers;

[0134] (3) Number of neurons in the hidden layer;

[0135] (4) Activation function of each layer;

[0136] (5) The output value of the network hidden layer at the previous moment;

[0137] (6) The network unit status output value at the previous moment;

[0138] (7) Learning rate;

[0139] (8) Loss function.

[0140] Specifically, the input vector starts from the input layer, passes through m layers of LSTM hidden layers, and outputs the processed vector as the input of the Attention layer;

[0141] In the Attention layer, the weight vector is first calculated based on the current layer input vector, and then the weight vector and the current layer input vector are merged to obtain a new vector, which is input into the fully connected layer, and finally the rotor resistance identification value is calculated; among them,

[0142] The number of neurons in the input and output layers is determined by the number of motor input variables and output variables determined in the first step;

[0143] The number of hidden layers, the number of neurons in each layer, and the learning rate are adjusted to find the optimal values;

[0144] The input and output values ​​of various networks are intermediate process parameters, which are obtained through real-time calculation;

[0145] You can choose the mean square error function or the information entropy of the motor dataset time series matrix as the loss function.

[0146] Specifically, the update of LSTM is as follows:

[0147] f t =σ(W f [h t-1 ,x t ])+bf ,

[0148] i t =σ(W i [h t-1 ,x t ])+b i ,

[0149] g t =tanh(W g [h t-1 ,x t ])+b g ,

[0150] g t =tanh(W g [h t-1 ,x t ])+b g ,

[0151] C t =f t C t-1 +i t g t ,

[0152] o t =σ(W o [h t-1 ,x t ])+b o ,

[0153] h t =o t tanhC t ,

[0154] Where: f, i, g, C, o represent the forget gate, input gate, alternative cell state for updating, updated cell state and output gate respectively;

[0155] W and b are the corresponding weight coefficient matrix and bias term respectively;

[0156] σ and tanh represent the ReLU activation function and the hyperbolic tangent activation function, respectively.

[0157] Specifically, the calculation formula of the Attention mechanism is as follows:

[0158]

[0159] s ki =vtanh(Whk+Uh i +b),

[0160]

[0161] Specifically, the final eigenvector h k′ That is, the hidden vector of the last node:

[0162] h k′ =H(C, h k , x k )

[0163] x1, x2, …, x k Represents input features;

[0164] h1, h2, …, h k represents the state value of the hidden layer corresponding to the input sequence;

[0165] α ki The attention weight of the hidden layer state of the historical input to the current input;

[0166] h k′ The hidden layer state value of the last node representing the final output.

[0167] The present invention improves the initial attention weight of the input and preliminarily determines its importance by calculating the information entropy between each input variable.

[0168] Define the residual degree of the kth input motor variable as T k =1-e k ;

[0169] Calculated by the formula

[0170]

[0171] Among them, e k 、E k 、E max They represent the relative entropy, entropy and maximum entropy of the kth input motor variable respectively;

[0172] T k The larger the value, the more obvious the characteristics of the influencing factor are and the higher its importance is.

[0173] The proportional weight of the kth input variable can be changed to:

[0174] The third step is to obtain training samples.

[0175] The motor data set collected in the first step is divided into a training set, a validation set, and a test set in a ratio of 9:0.5:0.5;

[0176] Taking various input variables as control conditions, an adaptive momentum estimation algorithm is used for training to obtain a batch of training samples. If the loss value of the test set is smaller than that of the validation set, considering that the model has not converged, the training model step is returned to increase the number of iterations and samples to continue training.

[0177] If the loss value of the test set is slightly larger than that of the validation set, the accuracy of the model results has basically passed the test;

[0178] If the loss value of the test set is significantly greater than that of the validation set, overfitting may occur. In this case, a Dropout layer is added to the Attention layer and the LSTM layer to disconnect the connection between certain nodes in the network in a certain proportion, so that the model has better generalization ability and robustness.

[0179] It should be noted that the motor data is used as a reference to preliminarily determine the model approximation function, and the output of this model is used as the target value of the network to perform error backpropagation and weight correction.

[0180] In addition, in actual training, considering that the rotor resistance of the motor is greatly affected by temperature, as the motor continues to run, the rotor resistance will not increase indefinitely, but will eventually be in a thermal equilibrium state. At this time, the motor temperature no longer rises, and the temperature becomes a constant that affects the change of the rotor resistance. Therefore, the present invention multiplies the rotor resistance thermal balance coefficient ε before the temperature variable to determine the transition process of the temperature from a variable to a constant. When the motor temperature no longer rises within a certain period of time, it is considered that the motor has reached a thermal equilibrium state, and the input parameter in the resistance change function relationship can be reduced by one, thereby simplifying the amount of calculation and increasing the convergence speed.

[0181] According to the actual operating conditions of the motor, the calculation formula of the rotor resistance thermal balance coefficient ε is as follows: ε=0;

[0182] In the formula, α is a fixed time interval, and q is the number of time intervals;

[0183] When ε is within the error range within a certain time interval If the motor rotor resistance reaches thermal equilibrium, the rotor resistance thermal balance coefficient is 0, otherwise it is 1.

[0184] The fourth step is to identify the rotor resistance;

[0185] The data signal collected in the first step that can reflect the characteristics of the rotor resistance is used as the input variable, and its effect is detected by the network. The learning rate, some parameters of the training sample size, and the training accuracy are debugged to test whether the recognition effect of the neural network is improved and find the optimal parameters of the network under the input variable.

[0186] Furthermore, in order to verify the correctness and advancement of the technical solution of the embodiment of the present application, 5 groups of random load conditions were taken between full load and light load through a 20KW asynchronous motor towing test platform. The load motor was operated in torque mode and the test motor was operated in speed mode. The current value of the load motor torque was adjusted to change the load torque of the test motor. The parameters of the load motor and the test motor were the same, as shown in Table 1 below.

[0187] Table 1 Experimental motor parameters

[0188]

[0189] In the embodiment of the present application, the number of iterations is 200, the number of training sets is 800, the number of test sets is 200, dropout = 0.45, the learning rate = 0.01, and the number of hidden layers is increased by a step size of 1 from hidden layers 2 to 20 respectively. When it is determined that the number of hidden layers is 16, the training effect is best.

[0190] The prediction method proposed in this invention is compared with other classical rotor resistance prediction methods. The comparison results of rotor resistance parameter identification results and their true values ​​are shown in the figure. Figure 5 As shown; and the mean absolute error (MAE) and root mean square error (RMSE) are used as evaluation indicators.

[0191] MAE reveals the degree of deviation between the actual value and the predicted value. When the predicted value is exactly the same as the true value, it is equal to 0, which is an ideal model; the larger the error, the larger its value. RMSE is sensitive to the original data and is very good at measuring accuracy. The comparison of prediction results is shown in Table 2.

[0192] Table 2 Comparison of asynchronous motor rotor resistance prediction methods

[0193]

[0194] BP stands for Back Propagation. BP neural network is a multi-layer feedforward neural network trained according to the error back propagation algorithm.

[0195] It can be seen from Table 2 that the asynchronous motor rotor resistance prediction method of the present invention can effectively improve the identification precision and accuracy of the rotor resistance and gain a deeper understanding of the internal operation of the motor.

[0196] Second, see Figure 6 As shown, the embodiment of the present application provides an asynchronous motor rotor resistance identification device based on the technical basis of the asynchronous motor rotor resistance identification method mentioned in the first aspect, and the device includes:

[0197] A data acquisition module, which is used to obtain motor data and motor rotor resistance of the reference motor rotor, and to construct a motor data sequence of the reference motor rotor and a first output sequence;

[0198] A data splitting module, configured to configure a training set, a validation set and a test set according to a preset ratio based on the motor data sequence of the control motor rotor and the first output sequence;

[0199] A model building module, which is used to build an Attention-LSTM-RNN model and train the Attention-LSTM-RNN model based on the training set, the validation set and the test set;

[0200] A resistance identification module is used to obtain motor data of the motor rotor to be tested, and use the trained Attention-LSTM-RNN model to identify the motor rotor resistance; wherein,

[0201] The Attention-LSTM-RNN model includes an input layer, an LSTM hidden layer, an Attention layer, a fully connected layer, and an output layer;

[0202] The number of neurons in the input layer and the output layer is determined based on the number of variables in the motor data and the number of motor rotor resistances.

[0203] The embodiment of the present application makes full use of the timing characteristics of the rotor resistance change, and establishes an online rotor resistance identification model based on the LSTM-RNN model, which has good accuracy and identification reliability, so as to identify the rotor resistance;

[0204] The LSTM-RNN model can handle long-distance dependency problems, make full use of historical information, have stronger adaptability in time series data analysis, and make full use of the time series characteristics of rotor resistance changes. On the basis of the LSTM-RNN model, the Attention mechanism is introduced to highlight the data sequences that have a key impact on the rotor resistance identification results, and a multi-step, multi-variable rotor resistance online identification model is established.

[0205] Specifically, the motor data includes the rotor d-axis current, the rotor q-axis current, the rotor d-axis voltage, the rotor q-axis voltage, the torque, the ambient temperature and the rotor frequency obtained through PI transformation in a preset coordinate system;

[0206] The preset coordinate system is the dq0 coordinate system.

[0207] Specifically, the data acquisition module is further used to obtain motor data of a control motor rotor, and to sequentially construct a motor data sequence of the control motor rotor;

[0208] The data acquisition module is also used to use the motor rotor resistance as the output variable of the Attention-LSTM-RNN model, and to construct the first output sequence in an order corresponding to the motor data in the motor data sequence.

[0209] Specifically, the device further includes a normalization module, which is used to perform normalization processing on the motor data.

[0210] Specifically, the model building module includes a weight assignment submodule, which is used to configure different initial attention weights in the input layer of the Attention-LSTM-RNN model according to the data type of the motor data in the motor data sequence.

[0211] Specifically, the weight allocation submodule is also used to obtain the relative entropy of different types of motor data in the motor data sequence;

[0212] The weight allocation submodule is also used to obtain the redundancy of different types of motor data in the motor data sequence based on the relative entropy;

[0213] The weight allocation submodule is also used to configure the initial attention weight in the input layer of the Attention-LSTM-RNN model based on the redundancy of different types of motor data in the motor data sequence.

[0214] Specifically, the model construction module includes a model training submodule, which is used to take the data belonging to the training set in the motor data sequence as input, and take the data belonging to the training set in the first output sequence as output, to train the Attention-LSTM-RNN model;

[0215] The model training submodule is also used to perform simulation testing using the Attention-LSTM-RNN model based on the motor data sequence and the data belonging to the test set in the first output sequence to obtain a test set loss value;

[0216] The model training submodule is also used to perform simulation testing using the Attention-LSTM-RNN model based on the motor data sequence and the data belonging to the verification set in the first output sequence to obtain a verification set loss value;

[0217] The model training submodule is also used to compare the test set loss value with the validation set loss value to determine whether the Attention-LSTM-RNN model has passed the training.

[0218] Specifically, the model building module includes a model building submodule, which is used to set the number of neurons in the input layer according to the number of motor data in the motor data sequence;

[0219] The model building submodule is also used to set the number of neurons in the output layer based on the number of data in the first output sequence.

[0220] Specifically, the device also includes a model adjustment module, which is used to not use temperature as an input parameter of the Attention-LSTM-RNN model when the motor to be tested reaches a thermal equilibrium state.

[0221] It should be noted that, in this application, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0222] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for identifying the rotor resistance of an asynchronous motor, characterized in that: The method comprises the following steps: Obtaining motor data and motor rotor resistance of a reference motor rotor, and constructing a motor data sequence of the reference motor rotor and a first output sequence; Based on the motor data sequence of the control motor rotor and the first output sequence, configuring a training set, a validation set and a test set according to a preset ratio; Constructing an Attention-LSTM-RNN model, and training the Attention-LSTM-RNN model based on the training set, the validation set, and the test set; Obtaining motor data of the motor rotor to be tested, and using the trained Attention-LSTM-RNN model to identify the motor rotor resistance; wherein, The Attention-LSTM-RNN model includes an input layer, an LSTM hidden layer, an Attention layer, a fully connected layer, and an output layer; The number of neurons in the input layer and the output layer is determined based on the number of variables in the motor data and the number of motor rotor resistances.

2. The asynchronous motor rotor resistance identification method according to claim 1, characterized in that: The motor data includes a rotor d-axis current, a rotor q-axis current, a rotor d-axis voltage, a rotor q-axis voltage obtained through PI transformation, torque, ambient temperature, and a rotor frequency in a preset coordinate system.

3. The asynchronous motor rotor resistance identification method according to claim 2, characterized in that: The obtaining of the motor data and the motor rotor resistance of the reference motor rotor, and constructing the motor data sequence and the first output sequence of the reference motor rotor include the following steps: Obtaining motor data of a reference motor rotor, and sequentially constructing a motor data sequence of the reference motor rotor; The motor rotor resistance is used as the output variable of the Attention-LSTM-RNN model, and the first output sequence is constructed in an order corresponding to the motor data in the motor data sequence.

4. The asynchronous motor rotor resistance identification method according to claim 1, characterized in that: After obtaining the motor data and the motor rotor resistance of the reference motor rotor and before constructing the motor data sequence of the reference motor rotor and the first output sequence, the method further includes the following steps: The motor data is normalized.

5. The asynchronous motor rotor resistance identification method according to claim 1, characterized in that: In constructing the Attention-LSTM-RNN model, the method further includes the following steps: According to the data type of the motor data in the motor data sequence, different initial attention weights are configured in the input layer of the Attention-LSTM-RNN model.

6. The asynchronous motor rotor resistance identification method according to claim 5, characterized in that: In constructing the Attention-LSTM-RNN model, the method further includes the following steps: Obtaining relative entropies of different types of motor data in the motor data sequence; Based on the relative entropy, obtaining redundancy of different types of motor data in the motor data sequence; Based on the remnants of different types of motor data in the motor data sequence, the initial attention weight is configured in the input layer of the Attention-LSTM-RNN model.

7. The asynchronous motor rotor resistance identification method according to claim 5, characterized in that: In training the Attention-LSTM-RNN model based on the training set, the validation set and the test set, the method comprises the following steps: Using the data in the motor data sequence belonging to the training set as input, and using the data in the first output sequence belonging to the training set as output, to train the Attention-LSTM-RNN model; Based on the motor data sequence and the data belonging to the test set in the first output sequence, a simulation test is performed using the Attention-LSTM-RNN model to obtain a test set loss value; Based on the motor data sequence and the data belonging to the validation set in the first output sequence, a simulation test is performed using the Attention-LSTM-RNN model to obtain a validation set loss value; Compare the test set loss value with the validation set loss value to determine whether the Attention-LSTM-RNN model has passed the training.

8. The asynchronous motor rotor resistance identification method according to claim 1, characterized in that: In constructing the Attention-LSTM-RNN model, the method further includes the following steps: The number of neurons in the input layer is set according to the number of motor data in the motor data sequence; The number of neurons in the output layer is set based on the number of data in the first output sequence.

9. The asynchronous motor rotor resistance identification method according to claim 1, characterized in that: Obtaining motor data of a motor rotor to be tested, and using the trained Attention-LSTM-RNN model to identify the motor rotor resistance, the method comprises the following steps: When the motor to be tested reaches a thermal equilibrium state, the temperature is not used as an input parameter of the Attention-LSTM-RNN model.

10. An asynchronous motor rotor resistance identification device, characterized in that: The device comprises: A data acquisition module, which is used to obtain motor data and motor rotor resistance of the reference motor rotor, and to construct a motor data sequence of the reference motor rotor and a first output sequence; A data splitting module, configured to configure a training set, a validation set and a test set according to a preset ratio based on the motor data sequence of the control motor rotor and the first output sequence; A model building module, which is used to build an Attention-LSTM-RNN model and train the Attention-LSTM-RNN model based on the training set, the validation set and the test set; A resistance identification module is used to obtain motor data of the motor rotor to be tested, and use the trained Attention-LSTM-RNN model to identify the motor rotor resistance; wherein, The Attention-LSTM-RNN model includes an input layer, an LSTM hidden layer, an Attention layer, a fully connected layer, and an output layer; The number of neurons in the input layer and the output layer is determined based on the number of variables in the motor data and the number of motor rotor resistances.