Anomaly Detection on Power Input Using Machine Learning on Microcontroller Systems
| dc.contributor.author | Yang, Qirui | |
| dc.contributor.author | Yi, Haoming | |
| dc.contributor.department | Chalmers tekniska högskola / Institutionen för elektroteknik | sv |
| dc.contributor.examiner | Agrell, Erik | |
| dc.contributor.supervisor | Olsson, Björn | |
| dc.date.accessioned | 2025-09-26T11:49:02Z | |
| dc.date.issued | 2025 | |
| dc.date.submitted | ||
| 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 | http://hdl.handle.net/20.500.12380/310555 | |
| dc.language.iso | eng | |
| dc.relation.ispartofseries | 00000 | |
| dc.setspec.uppsok | Technology | |
| dc.subject | PLD, anomaly detection, 1D-CNN, CNN–LSTM, quantization (INT8), TensorFlow Lite, embedded microcontroller (STM32G474) | |
| dc.title | Anomaly Detection on Power Input Using Machine Learning on Microcontroller Systems | |
| dc.type.degree | Examensarbete för masterexamen | sv |
| dc.type.degree | Master's Thesis | en |
| dc.type.uppsok | H | |
| local.programme | Systems, control and mechatronics (MPSYS), MSc |
