Submitted:
20 March 2025
Posted:
21 March 2025
You are already at the latest version
Abstract

Keywords:
1. Introduction & Background
- Integration of DNN with MHE: This work represents one of the first attempts to integrate a DNN-based model with MHE, providing a novel framework for state estimation.
- Deployment and validation on embedded systems: The feasibility of implementing a DNN-based MHE framework in real-time is demonstrated. This research is also one of the first to test and validate the deployment of DNN-based state estimation on real-time hardware using the acados optimal control framework [23].
2. Deep Neural Network Modeling
2.1. Long Short-Term Memory Network
- hyperbolic tangent activation function:
- sigmoid activation function:
2.2. Experimental Setup and Data Generation
2.3. Neural Network Training
3. Estimator Formulation
3.1. MHE Problem Formulation
3.2. Implementation in acados
4. Simulation Results
5. Embedded Integration
6. Conclusions
Author Contributions
Acknowledgments
Conflicts of Interest
References
- Simon, D. Optimal State Estimation - Kalman, H Infinity, and Nonlinear Approaches; John Wiley & Sons, 2006. [Google Scholar]
- Aldrich, J. R.A. Fisher and the making of maximum likelihood 1912-1922. Statistical Science 1997, 12. [Google Scholar] [CrossRef]
- Janacek, G.J. Estimation of the minimum mean square error of prediction. Biometrika 1975, 62, 175. [Google Scholar] [CrossRef]
- Kalman, R.E. A new approach to linear filtering and prediction problems. Transactions of the ASME–Journal of Basic Engineering 1960, 82, 35–45. [Google Scholar] [CrossRef]
- Fujii, K. Extended kalman filter. Reference Manual 2013. [Google Scholar]
- Julier, S.; Uhlmann, J. New extension of the Kalman filter to nonlinear systems. Proceedings of SPIE 1997. [Google Scholar] [CrossRef]
- Rao, C.V.; Rawlings, J.B.; Lee, J.H. Constrained linear state estimation — a moving horizon approach. Automatica 2001, 37, 1619–1628. [Google Scholar] [CrossRef]
- Rawlings, J.B.; Allan, D.A. Moving Horizon Estimation. In Encyclopedia of Systems and Control; Springer International Publishing: Cham, 2021; pp. 1352–1358. [Google Scholar] [CrossRef]
- Asch, M.; Bocquet, M.; Nodet, M. Data assimilation: methods, algorithms, and applications; French National Centre for Scientific Research, 2016. [Google Scholar]
- Brunton, S.L.; Kutz, J.N. Data-Driven Science and Engineering; Cambridge University Press, 2019. [Google Scholar] [CrossRef]
- Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning; MIT Press, 2016; Available online: http://www.deeplearningbook.org.
- Lecun, Y.; Bottou, L.; Bengio, Y.; Haffner, P. Gradient-based learning applied to document recognition. Proceedings of the IEEE 1998, 86, 2278–2324. [Google Scholar] [CrossRef]
- Bishop, C.M. Pattern Recognition and Machine Learning (Information Science and Statistics); Springer-Verlag: Berlin, Heidelberg, 2006. [Google Scholar]
- Sarker, I.H. Deep Learning: a comprehensive overview on techniques, taxonomy, applications and research directions. SN Computer Science 2021. [Google Scholar] [CrossRef]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. In Neural computation; 1997; pp. 1735–1780. [Google Scholar]
- Bragantini, A.; Baroli, D.; Posada-Moreno, A.F.; Benigni, A. Neural-network-based state estimation: The effect of pseudo- measurements. In 2021 IEEE 30th International Symposium on Industrial Electronics (ISIE); 2021. [Google Scholar] [CrossRef]
- Suykens, J.a.K.; De Moor, B.L.R.; Vandewalle, J. Nonlinear system identification using neural state space models, applicable to robust control design. International Journal of Control 1995, 62, 129–152. [Google Scholar] [CrossRef]
- Pan, Y.; Sung, S.W.; Lee, J.H. Nonlinear dynamic trend modeling using feedback neural networks and prediction error minimization. IFAC Proceedings Volumes 2000, 33, 827–832. [Google Scholar] [CrossRef]
- Norouzi, A.; Shahpouri, S.; Gordon, D.; Winkler, A.; Nuss, E.; Abel, D.; Andert, J.; Shahbakhti, M.; Koch, C.R. Deep learning based model predictive control for compression ignition engines. Control Engineering Practice 2022, 127, 105299. [Google Scholar] [CrossRef]
- Gordon, D.C.; Winkler, A.; Bedei, J.; Schaber, P.; Pischinger, S.; Andert, J.; Koch, C.R. Introducing a Deep Neural Network-Based Model Predictive Control Framework for Rapid Controller Implementation. In Proceedings of the 2024 American Control Conference (ACC); 2024; pp. 5232–5237. [Google Scholar] [CrossRef]
- Winkler, A.; Wang, W.; Norouzi, A.; Gordon, D.; Koch, C.; Andert, J. Integrating Recurrent Neural Networks into Model Predictive Control for Thermal Torque Derating of Electric Machines. IFAC-PapersOnLine 2023, 56, 8254–8259. [Google Scholar] [CrossRef]
- Winkler, A.; Frey, J.; Fahrbach, T.; Frison, G.; Scheer, R.; Diehl, M.; Andert, J. Embedded Real-Time Nonlinear Model Predictive Control for the Thermal Torque Derating of an Electric Vehicle. IFAC-PapersOnLine 2021, 54, 359–364, 7th IFAC Conferenceon Nonlinear Model Predictive Control NMPC 2021. [Google Scholar] [CrossRef]
- Verschueren, R.; Frison, G.; Kouzoupis, D.; Frey, J.; van Duijkeren, N.; Zanelli, A.; Novoselnik, B.; Albin, T.; Quirynen, R.; Diehl, M. acados – a modular open-source framework for fast embedded optimal control. Mathematical Programming Computation 2021. [Google Scholar] [CrossRef]
- Winkler, A. Deep Neural Network Based Moving Horizon Estimation: Data, Models, Scripts (feat. acados). Zenodo 2025. [Google Scholar] [CrossRef]
- Brownlee, J. Long Short-Term Memory Networks With Python Edition v1.0; Machine Learning Mastery, 2017. [Google Scholar]
- Rawlings, J.; Mayne, D.; Diehl, M. Model Predictive Control: Theory, Computation, and Design; Nob Hill Publishing, 2017. [Google Scholar]
- Haykin, S.; Moher, M. Communication Systems; Wiley, 2009. [Google Scholar]
- Frison, G.; Diehl, M. HPIPM: a high-performance quadratic programming framework for model predictive control. IFAC-PapersOnLine 2020, 53, 6563–6569. [Google Scholar] [CrossRef]
- Frey, J.; Hänggi, S.; Winkler, A.; Diehl, M. Embedded Workflow - acados documentation. Available online: https://docs.acados.org/embedded_workflow/index.html (accessed on 5 March 2025).














| Hyperparameter | Value |
|---|---|
| Max epoch | 10000 |
| Optimizer | Adam |
| Mini-batch size | 512 |
| Initial learning rate | 0.02 |
| Learn rate schedule | Piecewise drop by 25% every 500 epochs |
| L2 regularization | 0.1 |
| Validation frequency | 10 |
| Metric | ||
|---|---|---|
| MAE / (degC/s) | 0.0288 | 0.0210 |
| MSE / (degC/s)2 | 0.0014 | 0.0008 |
| RMSE / (degC/s) | 0.0373 | 0.0282 |
| NRMSE / - | 2.77% | 9.39% |
| Symbol | Parameter | Value |
|---|---|---|
| Minimum winding and rotor temperature | 0 °C | |
| Maximum winding and rotor temperature | 155 °C | |
| Weighting matrix of the arrival cost | diag(1, 1) | |
| Q | Weighting matrix of mapped states | |
| R | Weighting matrix of controls | |
| N | Estimation horizon | 15 |
| Timestep size | 100 ms | |
| T | Horizon length | 1.5 s |
| Parameter | Value |
|---|---|
| Timestep | 100 ms |
| Horizon length (nodes) | 15, condensed to 5 |
| Maximum number of SQP iterations | 20 |
| Maximum number of iterations within the QP solver | 100 |
| Maximum computation time per timestep | 28 ms |
| Average computation time per timestep | 5.7 ms |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).