Back to search

Chalmers University of Technology

Optimization of battery AI models for edge deployment: A systematic study of model compression techniques and hardware-aware efficiency

Abstract

dc:description.abstract

Battery management systems (BMS) increasingly employ data-driven models to estimate battery state of health (SoH), but deploying such models on automotive microcontrollers remains challenging because of limited memory and computational resources. This thesis evaluates a hardware-aware workflow for transferring, compressing, and preparing a long short-term memory (LSTM)-based SoH estimation model for embedded execution. The baseline model and its original training were provided by Cognivity AI; model development is therefore outside the scope of this thesis. The study uses the provided model and its established preprocessing pipeline, with battery-level data separation for evaluation. The workflow covers PyTorch to MATLAB model transfer, numerical equivalence verification, pruning and quantization evaluation, Simulink integration, and embedded C++ code generation. Two complementary compression directions are evaluated. Structured pruning reduces the number of learnable parameters while retaining useful predictive accuracy in the reported experiment. INT8 post-training quantization (PTQ) and quantization-aware training (QAT) reduce the theoretical weight storage to approximately one quarter of the FP32 value; QAT performs better than PTQ for the unpruned baseline in the reported comparison. Compression configurations are selected with validation data and evaluated on the held-out test data only after they are frozen. The selected models are exported to Simulink for model-in-the-loop functional checks, and statically allocated C++ code is generated using Embedded Coder. The generated artifacts were cross-compiled for the Infineon KIT_A3G_TC4D7_LITE evaluation platform. These results demonstrate conversion and compilation feasibility, but do not establish INT8 arithmetic in the generated implementation, on-target execution time, power consumption, or completed hardware deployment. Those measurements remain future work.

Degree

thesis:*
Level thesis:degree_level
H
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för mikroteknologi och nanovetenskap (MC2)
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • Xia, Yuxin
  • Liu, Yerui
Advisors dc:contributor.supervisor
  • Thiringer, Torbjörn
  • Fleischer, Christian
Committee member dc:contributor.committeemember
  • Peterson, Lena

Subjects

dc:subject × 1

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Coursecode
MCCX04

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Xia, Yuxin; Liu, Yerui. Optimization of battery AI models for edge deployment: A systematic study of model compression techniques and hardware-aware efficiency. H thesis, 2026. https://hdl.handle.net/20.500.12380/312567