This repository includes the code for the paper Neural Dynamics Model for Temperature Estimation of Permanent Magnet Synchronous Motor.
Accurate temperature estimation of permanent magnet synchronous motors is the basis for ensuring safe operation and designing effective thermal management strategies. Model-based estimation methods exhibit superior real-time performance, but the intricate modeling process requires substantial expert knowledge and lacks versatility. To the contrary, data-driven estimation methods, while offering flexibility, often lack physical implications in terms of system dynamics. This paper proposed a structured linear neural dynamics model for motor temperature estimation. The stability of the data-driven pipeline is facilitated by the Perron-Frobenius theorem, and the smooth evolution of the state between time steps is achieved by utilizing a physics-informed loss term. The effectiveness of the proposed method is verified by temperature estimation tasks at the edge end, and its practicality is demonstrated by measuring the memory and power usage of a deployed STM32 microcontroller.
Download the dataset from this website and put it into the Data folder firstly!
Go into the folder 1_Software_code, and
pip install -r requirements.txt
Go into the folder 1_Software_code, and
python Train.py
Detailed instructions for hardware deployment can be found here. 🔨🔨 The trained pfNDM firstly split into many tiny parts, convolutional neural networks models are converted to .keras models, and others are converted to .onnx models. Then each model is converted into a .c model by Cube.AI. Finally, every model deployed on the microcontroller by Keil.
The left figure shows the current and voltage of the system at the full running state, and the right figure shows the current and voltage of the system at idle state. According to the current and voltage, the algorithm power can be calculated as 27 mW.
The first figure is the estimation result and the ground truth, the first row of the second figure is the decoupling result of NDM, and the second row of the second figure is the decoupling result of pfNDM.
Model | RAM | FLASH |
---|---|---|
f_01 | 0.416 KB | 0.416 KB |
f_02 | 0.416 KB | 10.69 KB |
f_u | 0.384 KB | 29.66 KB |
f_x | 0.384 KB | 9.19 KB |
f_y | 0.208 KB | 0.768 KB |
Total | 1.808 KB | 50.724 KB |
@ARTICLE{Liao23Explainable,
author={Xinyuan Liao and Shaowei Chen and Yunxiang Long and Shuai Zhao},
title={Explainable Neural Dynamics Models for Motor Temperature Prediction},
year={2023},
pages={1-9},
doi={10.36227/techrxiv.24555889}}