BMS LSTM - Battery State of Charge Estimation using Deep Learning
Overview
This repository hosts the recipes and code for creating an LSTM-based Battery Management System (BMS) State of Charge (SoC) estimation model, adapted for deployment on NXP S32K5 hardware using eIQ Auto tools.
Model Description
This is a reduced order size and quantized version of battery-state-estimation optimized for NXP S32K5.
- Base Model: battery-state-estimation
- Original Model Authors: Kei Long Wong
- Original License: Apache-2.0
- Modified by: NXP
- Validated on: eIQ Auto Premium Edition version 3.17.0 CD for S32K5
Dataset
The dataset used for training and validation is derived by NXP.
Modifications
This model is a derivative work with the following changes from the original:
- Architecture: Model complexity was reduced by removing some LSTM layers in order to accelerate training and reduce deployment time on NXP hardware
- Quantization: int8 quantization via TFLite
- Quantization dataset: NXP-derived dataset (see Dataset)
- Compilation: Compiled for NXP S32K5 using eIQ Auto tools and Glow
- Format: Converted to Neutron TFLite format for NPU deployment
Original model available at: KeiLongW/battery-state-estimation.
Limitations
- Hardware-specific: Intended for deployment on NXP S32K5
- Quantization effects: May have accuracy differences due to int8 quantization
- Reduced complexity: Removal of LSTM layers may affect accuracy compared to the original model
Prerequisites
Before running this tutorial, the eIQ Auto setup steps for the NXP S32K5 must have been previously performed. Please refer to the eIQ Auto documentation for the required setup.
The scripts provided in this repository cover only the training of the model. To run the trained model on the NXP S32K5 board, all required steps are described in the eIQ Auto Tutorial Guide coming with the release package.
License
This model and the dataset are released under the Apache License 2.0.
Citation
If you use this model, please cite the original work:
@inproceedings{10.1145/3462203.3475878,
author = {Wong, Kei Long and Bosello, Michael and Tse, Rita and Falcomer, Carlo and Rossi, Claudio and Pau, Giovanni},
title = {Li-Ion Batteries State-of-Charge Estimation Using Deep LSTM at Various Battery Specifications and Discharge Cycles},
year = {2021},
isbn = {9781450384780},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3462203.3475878},
doi = {10.1145/3462203.3475878},
booktitle = {Proceedings of the Conference on Information Technology for Social Good},
pages = {85β90},
numpages = {6},
location = {Roma, Italy},
series = {GoodIT '21}
}