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

dc.contributor.authorXia, Yuxin
dc.contributor.authorLiu, Yerui
dc.contributor.departmentChalmers tekniska högskola / Institutionen för mikroteknologi och nanovetenskap (MC2)sv
dc.contributor.departmentChalmers University of Technology / Department of Microtechnology and Nanoscience (MC2)en
dc.contributor.examinerPeterson, Lena
dc.contributor.supervisorThiringer, Torbjörn
dc.contributor.supervisorFleischer, Christian
dc.date.accessioned2026-09-30T08:44:13Z
dc.date.issued2026
dc.date.submitted
dc.description.abstractBattery 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.
dc.identifier.coursecodeMCCX04
dc.identifier.urihttps://hdl.handle.net/20.500.12380/312567
dc.language.isoeng
dc.setspec.uppsokPhysicsChemistryMaths
dc.subjectBattery Management System, Deep Learning, Edge Computing, Model Pruning, Model Compression, Quantization-Aware Training
dc.titleOptimization of battery AI models for edge deployment: A systematic study of model compression techniques and hardware-aware efficiency
dc.type.degreeExamensarbete för masterexamensv
dc.type.degreeMaster's Thesisen
dc.type.uppsokH
local.programmeEmbedded electronic system design (MPEES), MSc

Ladda ner

Original bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
Yerui-Yuxin-MCCX04_Master_Thesis_in_Chalmers-FINAL.pdf
Size:
2.9 MB
Format:
Adobe Portable Document Format

License bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
license.txt
Size:
2.35 KB
Format:
Item-specific license agreed upon to submission
Description: