{"id":{"repo_id":"chalmers","oai_identifier":"oai:odr.chalmers.se:20.500.12380/310555"},"canonical_url":"https://search.ndltd.org/etd/chalmers/oai:odr.chalmers.se:20.500.12380/310555","repository":{"repo_id":"chalmers","name":"Chalmers University of Technology","base_url":"https://odr.chalmers.se/oai/request"},"display":{"title":"Anomaly Detection on Power Input Using Machine Learning on Microcontroller Systems","abstract":"Robust −48V power input stages are essential for modern telecommunication equipment, including radio and baseband units. In practice, the input line experiences power-line disturbances (PLDs) such as square-wave ripple and voltage dips, which complicate real-time fault detection. Threshold-based protection is effective for wellknown cases but lacks adaptability to varying transients. This thesis develops and evaluates lightweight machine-learning methods for ondevice PLD classification on a resource-constrained microcontroller (MCU). A fourclass dataset (normal, ripple, milddip, severedip) is constructed by sampling at 1 kHz and segmenting signals into 20 ms windows, yielding 40,000 labeled examples. Three compact models are compared: a 1D convolutional neural network (1D-CNN), a long short-term memory (LSTM) network, and a hybrid CNN+LSTM. Models are trained and validated offline and then quantized with TensorFlow Lite (TFLite) for embedded deployment on an STM32G474. On the held-out test set, the 1D-CNN and the hybrid achieve accuracy and macro- F1 around > 99%, whereas the standalone LSTM is lower under the same 20 ms context. After full-integer (INT8) quantization, the 1D-CNN preserves accuracy while reducing the model size to about 21 kB and achieving ≈ 0.03 ms inference per 20 ms window, meeting real-time MCU constraints. In contrast, the recurrent models require SELECT_TF_OPS support in TFLite, which makes bare metal deployment less practical. These results demonstrate that a quantized 1D-CNN provides an effective and deployable solution for on-device monitoring of −48V power inputs, enabling reliable, low-latency anomaly detection in embedded telecommunication systems.","abstract_html":"Robust −48V power input stages are essential for modern telecommunication equipment, including radio and baseband units. In practice, the input line experiences power-line disturbances (PLDs) such as square-wave ripple and voltage dips, which complicate real-time fault detection. Threshold-based protection is effective for wellknown cases but lacks adaptability to varying transients. This thesis develops and evaluates lightweight machine-learning methods for ondevice PLD classification on a resource-constrained microcontroller (MCU). A fourclass dataset (normal, ripple, milddip, severedip) is constructed by sampling at 1 kHz and segmenting signals into 20 ms windows, yielding 40,000 labeled examples. Three compact models are compared: a 1D convolutional neural network (1D-CNN), a long short-term memory (LSTM) network, and a hybrid CNN+LSTM. Models are trained and validated offline and then quantized with TensorFlow Lite (TFLite) for embedded deployment on an STM32G474. On the held-out test set, the 1D-CNN and the hybrid achieve accuracy and macro- F1 around &gt; 99%, whereas the standalone LSTM is lower under the same 20 ms context. After full-integer (INT8) quantization, the 1D-CNN preserves accuracy while reducing the model size to about 21 kB and achieving ≈ 0.03 ms inference per 20 ms window, meeting real-time MCU constraints. In contrast, the recurrent models require SELECT_TF_OPS support in TFLite, which makes bare metal deployment less practical. These results demonstrate that a quantized 1D-CNN provides an effective and deployable solution for on-device monitoring of −48V power inputs, enabling reliable, low-latency anomaly detection in embedded telecommunication systems.","abstract_has_math":false,"creators":["Yang, Qirui","Yi, Haoming"],"institution":null,"degree_name":null,"degree_level":"H","degree_discipline":null,"degree_department":"Chalmers tekniska högskola / Institutionen för elektroteknik","school":null,"contributors":[],"advisors":["Olsson, Björn"],"committee_chairs":[],"committee_members":["Agrell, Erik"],"year":2025,"date_issued":"2025","date_published":"2025","updated_at":"2026-11-19T03:03:28Z","subjects":["PLD, anomaly detection, 1D-CNN, CNN–LSTM, quantization (INT8), TensorFlow Lite, embedded microcontroller (STM32G474)"],"languages":["eng"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.coursecode","label":"Dc Identifier Coursecode","values":["EENX30"],"render_values":[{"text":"EENX30","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/20.500.12380/310555","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/20.500.12380/310555","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%2F310555","prefix":"oai_dc"},"source_record":{"url":"https://odr.chalmers.se/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aodr.chalmers.se%3A20.500.12380%2F310555","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Agrell, Erik"]},{"key":"dc:contributor.department","label":"Department","values":["Chalmers tekniska högskola / Institutionen för elektroteknik"]},{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Olsson, Björn"]},{"key":"dc:creator","label":"Author","values":["Yang, Qirui","Yi, Haoming"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-09-26T11:49:02Z"]},{"key":"dc:date.issued","label":"Date","values":["2025"]},{"key":"dc:publisher.program","label":"Dc Publisher Program","values":["Systems, control and mechatronics (MPSYS), MSc"]},{"key":"dc:relation.ispartofseries","label":"Dc Relation Ispartofseries","values":["00000"]},{"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":["PLD, anomaly detection, 1D-CNN, CNN–LSTM, quantization (INT8), TensorFlow Lite, embedded microcontroller (STM32G474)"]},{"key":"dc:subject.uppsok","label":"Dc Subject Uppsok","values":["Technology"]}]},{"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":["EENX30"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/20.500.12380/310555"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Robust −48V power input stages are essential for modern telecommunication equipment, including radio and baseband units. In practice, the input line experiences power-line disturbances (PLDs) such as square-wave ripple and voltage dips, which complicate real-time fault detection. Threshold-based protection is effective for wellknown cases but lacks adaptability to varying transients. This thesis develops and evaluates lightweight machine-learning methods for ondevice PLD classification on a resource-constrained microcontroller (MCU). A fourclass dataset (normal, ripple, milddip, severedip) is constructed by sampling at 1 kHz and segmenting signals into 20 ms windows, yielding 40,000 labeled examples. Three compact models are compared: a 1D convolutional neural network (1D-CNN), a long short-term memory (LSTM) network, and a hybrid CNN+LSTM. Models are trained and validated offline and then quantized with TensorFlow Lite (TFLite) for embedded deployment on an STM32G474. On the held-out test set, the 1D-CNN and the hybrid achieve accuracy and macro- F1 around > 99%, whereas the standalone LSTM is lower under the same 20 ms context. After full-integer (INT8) quantization, the 1D-CNN preserves accuracy while reducing the model size to about 21 kB and achieving ≈ 0.03 ms inference per 20 ms window, meeting real-time MCU constraints. In contrast, the recurrent models require SELECT_TF_OPS support in TFLite, which makes bare metal deployment less practical. These results demonstrate that a quantized 1D-CNN provides an effective and deployable solution for on-device monitoring of −48V power inputs, enabling reliable, low-latency anomaly detection in embedded telecommunication systems."]},{"key":"dc:title","label":"Title","values":["Anomaly Detection on Power Input Using Machine Learning on Microcontroller Systems"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.committeemember":["Agrell, Erik"],"dc:contributor.department":["Chalmers tekniska högskola / Institutionen för elektroteknik"],"dc:contributor.supervisor":["Olsson, Björn"],"dc:creator":["Yang, Qirui","Yi, Haoming"],"dc:date.accessioned":["2025-09-26T11:49:02Z"],"dc:date.issued":["2025"],"dc:description.abstract":["Robust −48V power input stages are essential for modern telecommunication equipment, including radio and baseband units. In practice, the input line experiences power-line disturbances (PLDs) such as square-wave ripple and voltage dips, which complicate real-time fault detection. Threshold-based protection is effective for wellknown cases but lacks adaptability to varying transients. This thesis develops and evaluates lightweight machine-learning methods for ondevice PLD classification on a resource-constrained microcontroller (MCU). A fourclass dataset (normal, ripple, milddip, severedip) is constructed by sampling at 1 kHz and segmenting signals into 20 ms windows, yielding 40,000 labeled examples. Three compact models are compared: a 1D convolutional neural network (1D-CNN), a long short-term memory (LSTM) network, and a hybrid CNN+LSTM. Models are trained and validated offline and then quantized with TensorFlow Lite (TFLite) for embedded deployment on an STM32G474. On the held-out test set, the 1D-CNN and the hybrid achieve accuracy and macro- F1 around > 99%, whereas the standalone LSTM is lower under the same 20 ms context. After full-integer (INT8) quantization, the 1D-CNN preserves accuracy while reducing the model size to about 21 kB and achieving ≈ 0.03 ms inference per 20 ms window, meeting real-time MCU constraints. In contrast, the recurrent models require SELECT_TF_OPS support in TFLite, which makes bare metal deployment less practical. These results demonstrate that a quantized 1D-CNN provides an effective and deployable solution for on-device monitoring of −48V power inputs, enabling reliable, low-latency anomaly detection in embedded telecommunication systems."],"dc:identifier.coursecode":["EENX30"],"dc:identifier.uri":["https://hdl.handle.net/20.500.12380/310555"],"dc:language.iso":["eng"],"dc:publisher.program":["Systems, control and mechatronics (MPSYS), MSc"],"dc:relation.ispartofseries":["00000"],"dc:subject":["PLD, anomaly detection, 1D-CNN, CNN–LSTM, quantization (INT8), TensorFlow Lite, embedded microcontroller (STM32G474)"],"dc:subject.uppsok":["Technology"],"dc:title":["Anomaly Detection on Power Input Using Machine Learning on Microcontroller Systems"],"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:28Z"}