A Hardware-Software Co-Design Framework for Energy Efficient LSTM Based SoC Estimation on Resource-Constrained FPGAs
DOI:
https://doi.org/10.57159/jcmm.5.3.26806Keywords:
State-Of-Charge (SoC) Estimation, LSTM Neural Networks, FPGA Acceleration, Hardware-Software Co-DesignAbstract
The rapid proliferation of electric vehicles drives the need for accurate, real-time and energy-efficient Battery Management Systems. The conventional model-based approach can't address the need due to complex and non-linear battery operations. LSTM based network provide better accuracy due to their inherent capability to capture temporal dependencies. However, this makes its deployment on the low-cost edge hardware challenging due to stringent constraints on power, latency and on-chip resources. To address the issue, a three-stage software-hardware codesign methodology is proposed. It includes Python-based software evaluation and parameter selection, hardware estimation using High Level Synthesis and physical deployment on an FPGA platform. Pareto analysis is used to identify the optimal configurations that balance the accuracy with the hardware requirements, such as inference latency and resource utilization, to achieve efficient deployment. Design Space Exploration (DSE) is performed to evaluate the different configurations with different model architectures, temporal window size and quantization policies. A State of Charge inference engine for the NASA Lithium-Ion Battery dataset is deployed on a resource-constrained Pynq Z2 board using the proposed codesign framework. It demonstrates strong consistency between the software and hardware domains, with the Pearson coefficient exceeding 0.90. The average accuracy transfer with only 0.834% degradation. Additionally, it is also shown that uniform 8-bit fixed-point quantization preserves accuracy while significantly improving the hardware deployment. This suggests that a uniform quantization policy works well for small neural network architectures. The experiment demonstrates better per-dollar energy efficiency (GOPS/W/$) than many state-of-the-art implementations. Overall, this work provides a structured and validated approach for jointly optimizing algorithm and hardware parameters. This enables efficient deployment of deep learning models on the resource-constrained hardware platforms.
References
[1] E. K. Almaita, S. Alshkoor, E. Abdelsalam, and F. Almomani, "State of charge estimation for a group of lithium-ion batteries using long short-term memory neural network," Journal of Energy Storage, 2022.
[2] M. K. Khan, M. A. Houran, K. Kauhaniemi, M. Zafar, M. Mansoor, and S. Rashid, "Efficient state of charge estimation of lithium-ion batteries in electric vehicles using evolutionary intelligence-assisted gla-cnn-bi-lstm deep learning model," Heliyon, vol. 10, 2024.
[3] M. Ali, A. Zafar, S. Nengroo, S. Hussain, M. J. Alvi, and H.-J. Kim, "Towards a smarter battery management system for electric vehicle applications: A critical review of lithium-ion battery state of charge estimation," Energies, 2019.
[4] D. N. How, M. Hannan, M. S. Lipu, and P. Ker, "State of charge estimation for lithium-ion batteries using model-based and data-driven methods: A review," IEEE Access, vol. 7, pp. 136116–136136, 2019.
[5] V. Selvaraj and I. Vairavasundaram, "A comprehensive review of state of charge estimation in lithium-ion batteries used in electric vehicles," Journal of Energy Storage, 2023.
[6] K. Laadjal and A. Cardoso, "Estimation of lithium-ion batteries state-condition in electric vehicle applications: Issues and state of the art," Electronics, 2021.
[7] F. Yang, X. Song, F. Xu, and K. Tsui, "State-of-charge estimation of lithium-ion batteries via long short-term memory network," IEEE Access, vol. 7, pp. 53792–53799, 2019.
[8] C. Tripp-Barba, J. Aguilar-Calderón, L. Urquiza-Aguiar, A. Zaldívar-Colado, and A. Ramírez-Noriega, "A systematic mapping study on state estimation techniques for lithium-ion batteries in electric vehicles," World Electric Vehicle Journal, 2025.
[9] M. Dang, C. Zhang, Z. Yang, J. Wang, Y. Li, and J. Huang, "An estimation method for the state-of-charge of lithium-ion battery based on pso-lstm," AIP Advances, 2023.
[10] A. Rehman, "Review paper for soc estimation techniques: Challenges and future areas for improvement," Power System Technology, 2024.
[11] Z. Zhang, C. Liu, T. Li, T. Wang, Y. Cui, and P. Zhao, "Cnn-lstm optimized with swats for accurate state-of-charge estimation in lithium-ion batteries considering internal resistance," Scientific Reports, vol. 15, 2025.
[12] V. Rybalkin, C. Sudarshan, C. Weis, J. Lappas, N. Wehn, and L. Cheng, "Efficient hardware architectures for 1d- and md-lstm networks," Journal of Signal Processing Systems, vol. 92, pp. 1219–1245, 2020.
[13] A. Boutros, A. Arora, and V. Betz, "Field-programmable gate array architecture for deep learning: Survey and future directions," Proceedings of the IEEE, vol. 113, pp. 613–639, 2024.
[14] S.-E. Chang, Y. Li, R. Shi, H. K.-H. So, X. Qian, Y. Wang, and X. Lin, "Mix and match: A novel fpga-centric deep neural network quantization framework," in 2021 IEEE International Symposium on High-Performance Computer Architecture (HPCA), pp. 208–220, 2021.
[15] I. B. Espedal, A. Jinasena, O. Burheim, and J. Lamb, "Current trends for state-of-charge (soc) estimation in lithium-ion battery electric vehicles," Energies, vol. 14, p. 3284, 2021.
[16] B. D. Soyoye, I. Bhattacharya, M. V. A. Dhason, and T. Banik, "State of charge and state of health estimation in electric vehicles: Challenges, approaches and future directions," Batteries, 2025.
[17] C. Chin, Z. Gao, J. Chiew, and C. Z. Zhang, "Nonlinear temperature-dependent state model of cylindrical lifepo4 battery for open-circuit voltage, terminal voltage and state-of-charge estimation with extended kalman filter," Energies, 2018.
[18] M. Adaikkappan and N. Sathiyamoorthy, "Modeling, state of charge estimation, and charging of lithium-ion battery in electric vehicle: A review," International Journal of Energy Research, vol. 46, pp. 2141–2165, 2021.
[19] R. Xiong, J. Cao, Q. Yu, H. He, and F. Sun, "Critical review on the battery state of charge estimation methods for electric vehicles," IEEE Access, vol. 6, pp. 1832–1843, 2017.
[20] P. Pillai, S. Sundaresan, P. Kumar, K. R. Pattipati, and B. Balasingam, "Open-circuit voltage models for battery management systems: A review," Energies, vol. 15, no. 18, p. 6803, 2022.
[21] K. Movassagh, A. Raihan, B. Balasingam, and K. Pattipati, "A critical look at coulomb counting approach for state of charge estimation in batteries," Energies, 2021.
[22] N. Lotfi, R. Landers, J. Li, and J. Park, "Reduced-order electrochemical model-based soc observer with output model uncertainty estimation," IEEE Transactions on Control Systems Technology, vol. 25, pp. 1217–1230, 2017.
[23] Y. Li, H. Qi, X. Shi, Q. Jian, F. Lan, and J. Chen, "A physics-based equivalent circuit model and state of charge estimation for lithium-ion batteries," Energies, 2024.
[24] K. M. Carthy, H. Gullapalli, K. Ryan, and T. Kennedy, "Review—use of impedance spectroscopy for the estimation of li-ion battery state of charge, state of health and internal temperature," Journal of The Electrochemical Society, 2021.
[25] S. Hochreiter and J. Schmidhuber, "Long short-term memory," Neural Computation, vol. 9, no. 8, pp. 1735–1780, 1997.
[26] R. Carrera, L. Quiroz, C. Guevara, and P. Acosta-Vargas, "State-of-charge estimation of medium- and high-voltage batteries using lstm neural networks optimized with genetic algorithms," Sensors, vol. 25, 2025.
[27] X. Gu, K. See, Y. Wang, L. Zhao, and W. Pu, "The sliding window and shap theory—an improved system with a long short-term memory network model for state of charge prediction in electric vehicle application," Energies, 2021.
[28] X. Song, F. Yang, D. Wang, and K. Tsui, "Combined cnn-lstm network for state-of-charge estimation of lithium-ion batteries," IEEE Access, vol. 7, pp. 88894–88902, 2019.
[29] A. Shawahna, S. M. Sait, and A. El-Maleh, "Fpga-based accelerators of deep learning networks for learning and classification: A review," IEEE Access, vol. 7, pp. 7823–7859, 2019.
[30] C. Machireddy and S. Chella, "Reconfigurable acceleration of neural networks: A comprehensive study of fpga-based systems," International Journal of Computational and Experimental Science and Engineering, 2024.
[31] W. Jiang, L. Yang, E. H.-M. Sha, Q. Zhuge, S. Gu, S. Dasgupta, Y. Shi, and J. Hu, "Hardware/software co-exploration of neural architectures," IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 39, no. 12, pp. 4805–4815, 2020.
[32] J. Haris, P. Gibson, J. Cano, N. B. Agostini, and D. Kaeli, "Secda: Efficient hardware/software co-design of fpga-based dnn accelerators for edge inference," in 2021 IEEE 33rd International Symposium on Computer Architecture and High Performance Computing (SBAC-PAD), pp. 33–43, IEEE, 2021.
[33] V. Vakharia, M. Shah, P. Nair, H. Borade, P. Sahlot, and V. Wankhede, "Estimation of lithium-ion battery discharge capacity by integrating optimized explainable-ai and stacked lstm model," Batteries, 2023.
[34] S. Wang, P. Lin, R. Hu, H. Wang, J. He, Q. Huang, and S. Chang, "Acceleration of lstm with structured pruning method on fpga," IEEE Access, vol. 7, pp. 62930–62937, 2019.
[35] M. Wang, Z. Wang, J. Lu, J. Lin, and Z. Wang, "E-lstm: An efficient hardware architecture for long short-term memory," IEEE Journal on Emerging and Selected Topics in Circuits and Systems, vol. 9, pp. 280–291, 2019.
[36] T. Yin, F. Dong, C. Chen, C. Ouyang, Z. Wang, and Y. Yang, "A spiking lstm accelerator for automatic speech recognition application based on fpga," Electronics, 2024.
[37] D. He, J. He, J. Liu, J. Yang, Q. Yan, and Y. Yang, "An fpga-based lstm acceleration engine for deep learning frameworks," Electronics, 2021.
[38] Z. Que, Y. Zhu, H. Fan, J. Meng, X. Niu, and W. Luk, "Mapping large lstms to fpgas with weight reuse," Journal of Signal Processing Systems, vol. 92, pp. 965–979, 2020.
[39] C. Hao, X. Zhang, Y. Li, S. Huang, J. Xiong, K. Rupnow, W.-m. Hwu, and D. Chen, "Fpga/dnn co-design: An efficient design methodology for iot intelligence on the edge," in Proceedings of the 56th Annual Design Automation Conference 2019, pp. 1–6, 2019.
[40] W. Zhao, Q. Dang, T. Xia, J. Zhang, N. Zheng, and P. Ren, "Optimizing fpga-based dnn accelerator with shared exponential floating-point format," IEEE Transactions on Circuits and Systems I: Regular Papers, vol. 70, pp. 4478–4491, 2023.
[41] C. Willmott and K. Matsuura, "Advantages of the mean absolute error (mae) over the root mean square error (rmse) in assessing average model performance," Climate Research, vol. 30, pp. 79–82, 2005.
[42] N. Gunantara, "A review of multi-objective optimization: Methods and its applications," Cogent Engineering, vol. 5, 2018.
[43] E. Bank-Tavakoli, S. A. Ghasemzadeh, M. Kamal, A. Afzali-Kusha, and M. Pedram, "Polar: A pipelined/overlapped fpga-based lstm accelerator," IEEE Transactions on Very Large Scale Integration (VLSI) Systems, vol. 28, no. 3, pp. 838–842, 2019.
[44] N. Wang, J. Nie, J. Li, K. Wang, and S. Ling, "A compression strategy to accelerate lstm meta-learning on fpga," ICT Express, vol. 8, pp. 322–327, 2022.
[45] S. A. Ghasemzadeh, E. B. Tavakoli, M. Kamal, A. Afzali-Kusha, and M. Pedram, "Brds: An fpga-based lstm accelerator with row-balanced dual-ratio sparsification," arXiv preprint arXiv:2101.02667, 2021.
[46] L. Ioannou and S. A. Fahmy, "Streaming overlay architecture for lightweight lstm computation on fpga socs," ACM Transactions on Reconfigurable Technology and Systems, vol. 16, no. 1, pp. 1–26, 2022.
Downloads
Published
How to Cite
Issue
Section
Categories
License
Copyright (c) 2026 The Author(s)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Articles published in the Journal of Computers, Mechanical and Management are licensed under a CC BY-NC 4.0 license. Authors retain copyright of their work and grant the journal a non-exclusive license to publish, distribute, and archive the article. Full terms are on the Copyright and Licensing page.