Leakage-Aware Evaluation of Fault-State Detectors for a Low-Cost ESP32 Multi-Sensor Battery Safety Monitor

Abstract Low-cost microcontroller monitors for lithium-ion battery safety are frequently reported with near-perfect machine-learning accuracy, yet the datasets behind such figures are seldom audited and are usually split at random. This study documents an ESP32 prototype with a component cost below 2,000 BDT (16.19 USD) that samples cell voltage, motor-branch current, cell temperature and MQ-2 gas-sensor output every 2 s, applies a three-level threshold rule and drives a protection relay, and audits the 5,186-row dataset recorded on it. The dataset joins four phase recordings, each carrying a single label. The firmware rule reproduces 97.13% of the labels, temperature alone separates the three states, only 24.7% of temperature values fall on the output grid of the DS18B20 sensor, and 48.7% of current samples are positive in a branch that should conduct in one direction. Eight detectors (the firmware rule, five tabular learners, a one-dimensional convolutional network and a long short-term memory network) were compared under random, blocked and blocked five-fold splits with a 60-row embargo over five seeds. With temperature and gas available, every detector reached at least 0.994 macro-F1 under the blocked split, so no learner improved on the 126-byte rule. With voltage and current only, random splitting raised macro-F1 by 0.183 to 0.271 over blocked splitting (paired t-test, p ≤ 0.002). Compiled for the ESP32, the trained tabular detectors occupied 205 to 29,256 bytes. Recording-aware splits and a dataset audit should precede any accuracy claim for such monitors.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-03
DOI
https://doi.org/10.21203/rs.3.rs-11578110/v1
Primary Topic
Battery Modeling and Management
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Leakage-Aware Evaluation of Fault-State Detectors for a Low-Cost ESP32 Multi-Sensor Battery Safety Monitor

Nihal Das Ankur, Abdul Hasib, Majedul Islam Naeem
Research Square
Battery Modeling and Management
preprint

Leakage-Aware Evaluation of Fault-State Detectors for a Low-Cost ESP32 Multi-Sensor Battery Safety Monitor

Nihal Das Ankur, Abdul Hasib, Majedul Islam Naeem
preprint en

Abstract

Abstract Low-cost microcontroller monitors for lithium-ion battery safety are frequently reported with near-perfect machine-learning accuracy, yet the datasets behind such figures are seldom audited and are usually split at random. This study documents an ESP32 prototype with a component cost below 2,000 BDT (16.19 USD) that samples cell voltage, motor-branch current, cell temperature and MQ-2 gas-sensor output every 2 s, applies a three-level threshold rule and drives a protection relay, and audits the 5,186-row dataset recorded on it. The dataset joins four phase recordings, each carrying a single label. The firmware rule reproduces 97.13% of the labels, temperature alone separates the three states, only 24.7% of temperature values fall on the output grid of the DS18B20 sensor, and 48.7% of current samples are positive in a branch that should conduct in one direction. Eight detectors (the firmware rule, five tabular learners, a one-dimensional convolutional network and a long short-term memory network) were compared under random, blocked and blocked five-fold splits with a 60-row embargo over five seeds. With temperature and gas available, every detector reached at least 0.994 macro-F1 under the blocked split, so no learner improved on the 126-byte rule. With voltage and current only, random splitting raised macro-F1 by 0.183 to 0.271 over blocked splitting (paired t-test, p ≤ 0.002). Compiled for the ESP32, the trained tabular detectors occupied 205 to 29,256 bytes. Recording-aware splits and a dataset audit should precede any accuracy claim for such monitors.

Research Square
Leading University (BD), University of Frontier Technology, Bangladesh (BD), Southeast University (CN)
Battery Modeling and Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon