Litcius/Paper detail

State of charge estimation of an electric vehicle's battery using tiny neural network embedded on small microcontroller units

Yahia Mazzi, Hicham Ben Sassi, Ahmed Gaga, Fatima Errahimi

2022International Journal of Energy Research47 citationsDOI

Abstract

The latest breakthroughs in artificial intelligence resulted in their adoption in the electric vehicle's battery management systems. Simultaneously, the remarkable increase in the number of embedded systems in electric vehicles (EVs) has led to the search for new optimized state of charge (SOC) estimation strategies suitable for implementation on small and limited MCUs. In this regard, this paper provides a design and quantization processes of the 1D convolutional neural network (1D CNN) and the GRU-recurrent neural network (GRU-RNN), devoted for SOC estimation. Both the NN algorithms are designed and trained using data collected from an 18650 Li-ion battery. Furthermore, to account for the limited computational resources of the EV MCUs, the pre-trained models are then converted into highly optimized C-codes using the latest model quantification techniques. In this regard, this paper investigates, the performances of the STM32Cube.AI and the TensorFlow Lite for microcontroller (TFLite Micro), in quantizing the activation functions and weights of the proposed NN models. This is achieved by converting these latter from 32-bits floating-point to 8-bit integer precision. The obtained experimental results, under different profiles, indicate that the 1D CNN is more accurate than the GRU-based model with root mean squared error (RMSE) of 2.33% and mean absolute error (MAE) of 1.62%. Furthermore, the impact of the quantization using STM32Cube.AI is compared with that using the TFLite Micro. The obtained results, demonstrated the superiority of the 1D CNN model quantized using the STM32Cube.AI. This latter reduces the flash memory size of the 1D CNN model from 10.82 to 2.89 KB and the RAM size from 2.49 to 1.04 KB, compared to the TFLite Micro, which reduces the RAM size from 7.0107 to 4.23 KB, and the flash from 43.361 to 15.88 KB.

Topics & Concepts

Quantization (signal processing)Mean squared errorState of chargeArtificial neural networkMicrocontrollerConvolutional neural networkBattery (electricity)Computer scienceAlgorithmEngineeringArtificial intelligenceComputer hardwareMathematicsPower (physics)PhysicsStatisticsQuantum mechanicsAdvanced Battery Technologies ResearchIoT-based Smart Home SystemsElectric and Hybrid Vehicle Technologies
State of charge estimation of an electric vehicle's battery using tiny neural network embedded on small microcontroller units | Litcius