{"id":{"repo_id":"chalmers","oai_identifier":"oai:odr.chalmers.se:20.500.12380/312567"},"canonical_url":"https://search.ndltd.org/etd/chalmers/oai:odr.chalmers.se:20.500.12380/312567","repository":{"repo_id":"chalmers","name":"Chalmers University of Technology","base_url":"https://odr.chalmers.se/oai/request"},"display":{"title":"Optimization of battery AI models for edge deployment: A systematic study of model compression techniques and hardware-aware efficiency","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.","abstract_html":"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.","abstract_has_math":false,"creators":["Xia, Yuxin","Liu, Yerui"],"institution":null,"degree_name":null,"degree_level":"H","degree_discipline":null,"degree_department":"Chalmers tekniska högskola / Institutionen för mikroteknologi och nanovetenskap (MC2)","school":null,"contributors":[],"advisors":["Thiringer, Torbjörn","Fleischer, Christian"],"committee_chairs":[],"committee_members":["Peterson, Lena"],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-19T03:03:55Z","subjects":["Battery Management System, Deep Learning, Edge Computing, Model Pruning, Model Compression, Quantization-Aware Training"],"languages":["eng"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.coursecode","label":"Dc Identifier Coursecode","values":["MCCX04"],"render_values":[{"text":"MCCX04","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/20.500.12380/312567","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/20.500.12380/312567","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Achalmers%3Aoai%3Aodr.chalmers.se%3A20.500.12380%2F312567","prefix":"oai_dc"},"source_record":{"url":"https://odr.chalmers.se/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aodr.chalmers.se%3A20.500.12380%2F312567","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Peterson, Lena"]},{"key":"dc:contributor.department","label":"Department","values":["Chalmers tekniska högskola / Institutionen för mikroteknologi och nanovetenskap (MC2)","Chalmers University of Technology / Department of Microtechnology and Nanoscience (MC2)"]},{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Thiringer, Torbjörn","Fleischer, Christian"]},{"key":"dc:creator","label":"Author","values":["Xia, Yuxin","Liu, Yerui"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-09-30T08:44:13Z"]},{"key":"dc:date.issued","label":"Date","values":["2026"]},{"key":"dc:publisher.program","label":"Dc Publisher Program","values":["Embedded electronic system design (MPEES), MSc"]},{"key":"dc:type.degree","label":"Dc Type Degree","values":["Examensarbete för masterexamen","Master's Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["H"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Battery Management System, Deep Learning, Edge Computing, Model Pruning, Model Compression, Quantization-Aware Training"]},{"key":"dc:subject.uppsok","label":"Dc Subject Uppsok","values":["PhysicsChemistryMaths"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["eng"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.coursecode","label":"Dc Identifier Coursecode","values":["MCCX04"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/20.500.12380/312567"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:title","label":"Title","values":["Optimization of battery AI models for edge deployment: A systematic study of model compression techniques and hardware-aware efficiency"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.committeemember":["Peterson, Lena"],"dc:contributor.department":["Chalmers tekniska högskola / Institutionen för mikroteknologi och nanovetenskap (MC2)","Chalmers University of Technology / Department of Microtechnology and Nanoscience (MC2)"],"dc:contributor.supervisor":["Thiringer, Torbjörn","Fleischer, Christian"],"dc:creator":["Xia, Yuxin","Liu, Yerui"],"dc:date.accessioned":["2026-09-30T08:44:13Z"],"dc:date.issued":["2026"],"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."],"dc:identifier.coursecode":["MCCX04"],"dc:identifier.uri":["https://hdl.handle.net/20.500.12380/312567"],"dc:language.iso":["eng"],"dc:publisher.program":["Embedded electronic system design (MPEES), MSc"],"dc:subject":["Battery Management System, Deep Learning, Edge Computing, Model Pruning, Model Compression, Quantization-Aware Training"],"dc:subject.uppsok":["PhysicsChemistryMaths"],"dc:title":["Optimization of battery AI models for edge deployment: A systematic study of model compression techniques and hardware-aware efficiency"],"dc:type.degree":["Examensarbete för masterexamen","Master's Thesis"],"others:access_status":["open.access"],"thesis:degree_level":["H"]},"updated_at":"2026-11-19T03:03:55Z"}