Motor rotor temperature estimation method, computer program product and storage medium
Through BP neural network combined with time series data processing, the problem of inaccurate motor rotor temperature estimation in the existing technology is solved, and high-precision, real-time monitoring of motor rotor temperature under different working conditions is achieved to protect the performance and safety of electric vehicle motors. .
Patent Information
- Application Number
- CN202410746627.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology is difficult to estimate the motor rotor temperature with high real-time and high accuracy under different ambient temperatures and working conditions, and cannot adapt to changes in the motor's operating status, resulting in inaccurate rotor temperature estimation and affecting motor performance control.
Using the BP neural network method, by obtaining parameters such as stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, etc. as input, combined with time series data processing, filtering and normalization processing, the neural network is trained to estimate the motor rotor temperature online in real time. And make adaptive adjustments under different working conditions.
It achieves high-precision, real-time monitoring of motor rotor temperature under different ambient temperatures and working conditions, effectively protects electric vehicle motors, takes into account power requirements and safety, and does not increase hardware costs.
Smart Images

Figure CN118739934A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor temperature monitoring, and in particular to a motor rotor temperature estimation method, a computer program product and a storage medium. Background Art
[0002] Since it is not easy to arrange rotor temperature sensors on the motor rotor, it is of great significance to obtain the rotor temperature of the permanent magnet synchronous motor by estimation. First, when the rotor temperature of the permanent magnet synchronous motor exceeds a certain critical temperature, the rotor magnet will undergo irreversible demagnetization, causing the power output of the whole vehicle to be interrupted; second, the change of rotor temperature will cause the magnetic flux of the motor permanent magnet to change, thereby affecting the motor torque estimation and control accuracy, causing the performance control deviation of the whole vehicle; third, accurate estimation of the motor rotor temperature can improve the working threshold of the motor stator temperature. Increasing the stator temperature threshold can improve the motor current output ratio capability and extend the duration of the motor peak power.
[0003] At present, the industry mostly uses thermal network method, empirical formula method, back-EMF method and neural network prediction method for single working condition to calculate the motor rotor temperature. However, these methods have large computational complexity and cannot adapt to changes in motor operating conditions. Under different working conditions such as normal motor operation, natural cooling, auxiliary heating, and active reduced efficiency heating, the factors affecting the change of motor rotor temperature are not the same. Therefore, it is necessary to consider different influencing factors under different working conditions to estimate the motor rotor temperature in order to enhance the adaptability of the rotor temperature estimation to different working conditions. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is: how to provide a method with high real-time performance, high precision and strong adaptability, which can meet the requirements of motor rotor temperature estimation under different ambient temperatures and different working conditions.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0006] A method for real-time online estimation of electric vehicle motor rotor temperature comprises the following steps:
[0007] (1) When the electric vehicle is powered on, the running state of the motor is judged. If the speed and torque of the motor are both zero, step (2) is executed; if the speed and torque of the motor exist, step (3) is executed;
[0008] (2) determining whether the motor heating mode is activated, if not activated, executing step (4); if activated, executing step (5);
[0009] (3) determining whether the active efficiency reduction mode of the motor is activated; if not, executing step (6); if activated, executing step (7);
[0010] (4) obtaining the stator temperature, ambient temperature, coolant temperature, and cooling oil pump speed as inputs of the neural network, and taking the rotor temperature at the highest point of the rotor temperature as output to obtain an estimated temperature;
[0011] (5) obtaining the stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current and q-axis current as inputs of the neural network, and taking the rotor temperature at the highest point of the rotor temperature as output to obtain an estimated temperature;
[0012] (6) obtaining stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current, q-axis current, motor speed, motor torque, DC input power and motor mechanical power as inputs of the neural network, taking the rotor temperature at the highest point of the rotor temperature as output, and obtaining an estimated temperature;
[0013] (7) The stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current and q-axis current are obtained as inputs of the neural network, and the rotor temperature at the highest point of the rotor temperature is taken as output to obtain the estimated temperature.
[0014] As an optimization, the estimated temperature is filtered and output to eliminate abnormal estimated data.
[0015] As an optimization, the neural network is a BP neural network, and the BP neural network is trained by acquiring several continuous and uninterrupted time series data of relevant parameters before use. Before training, several continuous and uninterrupted time series data of relevant parameters are processed, including:
[0016] A data missing check is performed on the acquired time series data. If the time series data is partially missing, the time series method is used to process the missing part of the time series data, as shown in formula (1):
[0017]
[0018] Where v(ti) represents the k data points before time t, v(t+i) represents the i data points after time t, and the tth moment is the missing position in the data. The average value of the data before and after time t and the adjacent data is used as the missing value of the item to fill it.
[0019] Data anomaly check is performed on the acquired time series data, and the abnormal data with large fluctuations is eliminated using the threshold method, as shown in formula (2):
[0020] 0≤a(i)≤THR (2)
[0021] Where a(i) represents the value of the data at time i, THR represents the threshold of the data, and after removing the abnormal data, the time series method is used to fill in the data at that position;
[0022] The obtained time series data are smoothed using the average filtering method, as shown in formula (3):
[0023]
[0024] Where v(tk)...v(t-1) represent the k data points before time t, and v(t+1)...v(t+k) represent the k data points after time t.
[0025] As an optimization, several continuous time series data of the relevant parameters are normalized. The calculation formula for data normalization is shown in formula (4):
[0026]
[0027] Where x is the value before normalization, is the normalized value, x max and x min are the maximum and minimum values of the parameter data respectively.
[0028] As an optimization, several continuous and uninterrupted time series data of the processed related parameters are divided into training sets and test sets in proportion, and the training set input and test set input formed by the input and the training set output and test set output formed by the output are imported into the BP neural network for training, and the weights and biases are updated.
[0029] A computer program product comprises a computer program, and when the computer program is executed by a computer, the method described above is implemented.
[0030] A computer-readable storage medium stores a computer program, which, when executed by a computer, implements the method described above.
[0031] Compared with the prior art, the present invention has the following beneficial effects: without increasing the hardware cost, the present invention can meet the requirements for estimating the motor rotor temperature under different ambient temperatures and different working conditions, can monitor the motor rotor temperature in real time, and effectively protect the electric vehicle motor from damage, thereby taking into account both the power demand and safety of the motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is the structure diagram of BP neural network in the present invention;
[0033] Figure 2It is a thermal diagram related to the motor rotor temperature and various influencing factors in the present invention;
[0034] Figure 3 It is a training flow chart of the BP neural network in the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, 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 part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0036] like Figure 1 As shown, a method for real-time online estimation of electric vehicle motor rotor temperature in this specific implementation includes the following steps:
[0037] (1) When the electric vehicle is powered on, the running state of the motor is judged. If the speed and torque of the motor are both zero, step (2) is executed; if the speed and torque of the motor exist, step (3) is executed;
[0038] (2) determining whether the motor heating mode is activated, if not activated, executing step (4); if activated, executing step (5);
[0039] (3) determining whether the active efficiency reduction mode of the motor is activated; if not, executing step (6); if activated, executing step (7);
[0040] (4) obtaining the stator temperature, ambient temperature, coolant temperature, and cooling oil pump speed as inputs of the neural network, and taking the rotor temperature at the highest point of the rotor temperature as output to obtain an estimated temperature;
[0041] (5) obtaining the stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current and q-axis current as inputs of the neural network, and taking the rotor temperature at the highest point of the rotor temperature as output to obtain an estimated temperature;
[0042] (6) obtaining stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current, q-axis current, motor speed, motor torque, DC input power and motor mechanical power as inputs of the neural network, taking the rotor temperature at the highest point of the rotor temperature as output, and obtaining an estimated temperature;
[0043] (7) Since the motor is in a normal driving state when the active efficiency reduction mode is started, but the motor is not running on the optimal power curve, the stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current and q-axis current are obtained as the input of the neural network, and the rotor temperature at the highest point of the rotor temperature is taken as the output to obtain the estimated temperature.
[0044] When training the neural network, several different types of data were collected to find the data with high correlation with the rotor temperature under different working conditions in the test data as the input of the neural network, reduce the complexity of the neural network model, save the training time of the neural network, and improve the prediction accuracy of the neural network for the rotor temperature. Before training the neural network, the correlation analysis of various test data affecting the rotor temperature was performed, and the feature quantities with high correlation were extracted as the input of the neural network. The Pearson correlation coefficient is used to express the correlation between the rotor temperature and the influencing factors (denoted as R, with a value range of [-1.1]). The larger the absolute value of R, the stronger the correlation, indicating that the higher the correlation between the rotor temperature and the influencing factor. The relationship between the correlation coefficient and the degree of correlation is shown in Table 1. The calculation of the Pearson correlation coefficient is shown in formula (5):
[0045]
[0046] Where x i and i Respectively represent any two parameter test values in the collected data, and They respectively represent the average values of two parameters in the collected volume.
[0047]
[0048]
[0049] Table 1
[0050] Calculate according to different types of data and draw relevant heat maps of various influencing factors, such as Figure 2As shown, it can be seen that the stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current, q-axis current, motor speed, motor torque, DC input power, and motor mechanical power are highly correlated with the rotor temperature. Therefore, corresponding types of data are selected under different working conditions to estimate the motor rotor temperature.
[0051] In this specific implementation, the estimated temperature is filtered and output to eliminate abnormal estimated data and improve estimation accuracy.
[0052] In this specific implementation, the neural network is a BP neural network. Before use, the BP neural network is trained by acquiring a number of continuous and uninterrupted time series data of relevant parameters. Before training, the number of continuous and uninterrupted time series data of relevant parameters are processed, including:
[0053] In the process of data collection and analysis, a small amount of data may be missing due to various problems. If the missing data is not filled or directly assigned a value of 0, it will obviously increase the disturbance of the original data and reduce the quality of the data. Therefore, a data missing check is performed on the acquired time series data. If there is a partial missing in the time series data, the time series method is used to process the missing part of the time series data, as shown in formula (1):
[0054]
[0055] Where v(ti) represents the k data points before time t, v(t+i) represents the i data points after time t, and the tth moment is the missing position in the data. The average value of the data before and after time t and the adjacent data is used as the missing value of the item to fill it.
[0056] Due to various interferences in the process of data collection and analysis, a small number of data may have values that are obviously inconsistent with common sense, resulting in data anomalies; therefore, data anomalies are checked for several acquired time series data, and the threshold method is used to eliminate abnormal data with large fluctuations, as shown in formula (2):
[0057] 0≤a(i)≤THR (2)
[0058] Where a(i) represents the value of the data at time i, THR represents the threshold of the data, and after removing the abnormal data, the time series method is used to fill in the data at that position;
[0059] There are systematic errors and measurement errors in the collected data, which may cause noise in the collected test data. In order to improve the data quality and retain the change law of the original data, while reducing the interference of noise data on the original data; therefore, the average filtering method is used to smooth the acquired time series data, as shown in formula (3):
[0060]
[0061] Where v(tk)...v(t-1) represent the k data points before time t, and v(t+1)...v(t+k) represent the k data points after time t.
[0062] In this specific implementation, different data have different dimensions and their data interval range is also relatively large. Before performing neural network training, a number of continuous and uninterrupted time series data of the obtained relevant parameters are normalized to eliminate the dimension differences between different types of data, which is beneficial to improving the neural network training effect and prediction accuracy. The calculation formula for data normalization is shown in formula (4):
[0063]
[0064] Where x is the value before normalization, is the normalized value, x max and x min are the maximum and minimum values of the parameter data respectively.
[0065] In this specific implementation, several continuous and uninterrupted time series data of the processed related parameters are divided into training sets and test sets in proportion, and the training set input and test set input formed by the input and the training set output and test set output formed by the output are imported into the BP neural network for training, and the weights and biases are updated.
[0066] The multi-layer BP neural network requires that the training set accounts for the majority, and the ratio of training set to test set can be 7:3, 7.5:2.5, 8:2, etc. The test set data can be extracted by random extraction or uniform extraction. Considering the large amount of test data and the ease of implementation, the uniform extraction method is used to extract 20% of the total test data as the test set, and the remaining 80% as the training set.
[0067] The training set input and test set input formed by the input and the training set output and test set output formed by the output are imported into the BP neural network to start training. The BP neural network training is carried out through the back propagation algorithm, which is divided into forward and backward propagation. The weights and biases are updated according to the error, and this is repeated so that the error gradually converges to an acceptable range. The BP neural network training process is as follows: Figure 3 shown.
[0068] Forward propagation is the process of transferring the input signal from the input layer to the hidden layer, and then from one hidden layer to the next hidden layer, and finally to the output layer. Each hidden layer neuron executes the Sigmoid function, as shown in formula (6), to calculate the output of each hidden layer. The output of the output layer is compared with the actual target value to calculate the loss function 1oss and converge within the specified range. During the entire forward training process, the signal flow from the input layer signal vector (x) to the three hidden layer input and output signals (a1, z1, a2, z2, a3, z3) and then to the output layer signal vector (y) is as follows: Figure 1 shown.
[0069]
[0070] Back propagation starts from the output layer to calculate the gradient of the loss function loss, and then propagates these gradients backward to the hidden layer, using the gradient descent optimization algorithm to update the weights and biases to reduce the loss function 1oss. The chain-seeking method is used to obtain the gradients of weights w1, w2, w3, w4 and the gradients of biases b1, b2, b3, b4, respectively, and they are put into the calculation of the next forward propagation to update the weights and biases. The calculation process is shown in formula (7). The learning rate is used to control the update speed of weights and biases. If the learning rate is too large, the loss number may not converge or even increase. If the learning rate is too small, more rounds of training may be required to achieve sufficient accuracy. Therefore, the choice of learning rate should be suitable for the characteristics of the data. In the BP neural network training for rotor temperature estimation, the learning rate can be selected based on experience.
[0071]
[0072] In the formula is the updated weight, w1, w2, w3, w4 are the weights before the update, is the updated bias, b1, b2, b3, b4 are the biases before update, η is the learning rate, and loss is the loss function.
[0073] The hidden layer weights w and bias b completed by the two-way propagation training are embedded in the BP neural network. When the motor system is running, the signal quantity is input into the input layer of the BP neural network through data acquisition and processing. After the learning of the three hidden layers, the calculated quantity is given to the output layer to obtain the real-time estimation of the motor rotor temperature.
[0074] A computer program product comprises a computer program, and when the computer program is executed by a computer, the method described above is implemented.
[0075] A computer-readable storage medium stores a computer program, which, when executed by a computer, implements the method described above.
[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A method for estimating the temperature of a motor rotor, characterized in that: The following steps are involved: (1) When the electric vehicle is powered on, the running state of the motor is judged. If the speed and torque of the motor are both zero, step (2) is executed; if the speed and torque of the motor exist, step (3) is executed; (2) determining whether the motor heating mode is activated, if not activated, executing step (4); if activated, executing step (5); (3) determining whether the active efficiency reduction mode of the motor is activated; if not, executing step (6); if activated, executing step (7); (4) obtaining the stator temperature, ambient temperature, coolant temperature, and cooling oil pump speed as inputs of the neural network, and taking the rotor temperature at the highest point of the rotor temperature as output to obtain an estimated temperature; (5) obtaining the stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current and q-axis current as inputs of the neural network, and taking the rotor temperature at the highest point of the rotor temperature as output to obtain an estimated temperature; (6) obtaining stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current, q-axis current, motor speed, motor torque, DC input power and motor mechanical power as inputs of the neural network, taking the rotor temperature at the highest point of the rotor temperature as output, and obtaining an estimated temperature; (7) The stator temperature, ambient temperature, coolant temperature, cooling oil pump speed, DC bus voltage, DC bus current, d-axis current and q-axis current are obtained as inputs of the neural network, and the rotor temperature at the highest point of the rotor temperature is taken as output to obtain the estimated temperature.
2. The method for estimating the motor rotor temperature according to claim 1, characterized in that: The obtained estimated temperature is filtered and outputted to eliminate abnormal estimated data.
3. The method for estimating the motor rotor temperature according to claim 1, characterized in that: The neural network is a BP neural network. Before use, the BP neural network is trained by acquiring a number of continuous and uninterrupted time series data of relevant parameters. Before training, the number of continuous and uninterrupted time series data of relevant parameters are processed, including: A data missing check is performed on the acquired time series data. If the time series data is partially missing, the time series method is used to process the missing part of the time series data, as shown in formula (1): Where v(ti) represents the k data points before time t, v(t+i) represents the i data points after time t, and the tth moment is the missing position in the data. The average value of the data before and after time t and the adjacent data is used as the missing value of the item to fill it. Data anomaly check is performed on the acquired time series data, and the abnormal data with large fluctuations is eliminated using the threshold method, as shown in formula (2): 0≤a(i)≤THR (2) Where a(i) represents the value of the data at time i, THR represents the threshold of the data, and after removing the abnormal data, the time series method is used to fill in the data at that position; The obtained time series data are smoothed using the average filtering method, as shown in formula (3): Where v(tk)...v(t-1) represent the k data points before time t, and v(t+1)...v(t+k) represent the k data points after time t.
4. The method for estimating the motor rotor temperature according to claim 3, characterized in that: The continuous and uninterrupted time series data of the obtained relevant parameters are normalized. The calculation formula for data normalization is shown in formula (4): Where x is the value before normalization, is the normalized value, x max and x min are the maximum and minimum values of the parameter data respectively.
5. The method for estimating the motor rotor temperature according to any one of claims 3 or 4, characterized in that: The processed continuous and uninterrupted time series data of relevant parameters are divided into training sets and test sets in proportion, and the training set input and test set input formed by the input and the training set output and test set output formed by the output are imported into the BP neural network for training, and the weights and biases are updated.
6. A computer program product, characterized in that: The method comprises a computer program, which, when executed by a computer, implements the method according to any one of claims 1 to 5.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a computer, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Cited By
Temperature estimation model training method and device, temperature estimation method and device, equipment and medium
CN120688569A
