The AI-Enhanced Battery Management System with Real-Time SOC/SOH Estimation and IoT-Based Autonomous Load Control: Hardware Implementation on ESP32 with MQTT and ML Inference

Authors

  • Manojkumar Sahebrao Chavhan Research Centre – Jaywant Shikshan Prasarak Mandal’s Rajarshi Shahu College of Engineering, Tathwade, Pune - 33
  • Rupesh Jagatarao Patil Trinity Academy of Engineering, Bopdev Ghat, Pune - 48.

DOI:

https://doi.org/10.70917/ijcisim-2026-2498

Keywords:

Battery Management System, State of Charge, State of Health, Artificial Intelligence, ESP32, INA219, MQTT, Flask, Tkinter, real voltage/SoC readings, relay logic, protection tiers, hardware validation

Abstract

This paper presents an AI-driven Battery Management System (BMS) with complete hardware implementation for real-
time State of Charge (SOC) and State of Health (SOH) estimation in 3S lithium -ion battery packs (ICR-18650, 2500mAh, 11.1V nominal). Three machine learning models — Random Forest, XGBoost, and LSTM — are trained and evaluated on the NASA
Battery Dataset (9,742 records, 80/20 train/test split, random seed=42). Random Forest (n estimators=100) achieved the highest
predictive accuracy (R2=0.976, lowest MAE and RMSE across all targets) and was successfully deployed on an ESP32
microcontroller (240 MHz, dual-core, WiFi-enabled) for embedded real-time inference. The hardware prototype integrates two
INA219 I2C current sensors (0x40, 0x41) with 0.1Ω shunt resistors for dual-load current measurement, a 2-channel active-low relay
module (GPIO26, GPIO27) for autonomous load switching, and a JHD 16×2 LCD display for local monitoring. Battery voltage
and current measurements are acquired at 500ms intervals and published over MQTT (broker.emqx.io:1883) at 2 -second intervals
across 13 dedicated topics. Remote real-time monitoring and relay control is offered by a Flask-SocketIO web dashboard and a
Tkinter desktop interface. The trained Random Forest classifier (V Load Decision: 4 classes) is run on -device using a hybrid SOC
algorithm with Coulomb counting (60% weight) and voltage-based mapping (40% weight). System operation was confirmed using
live readings: V=9.87V, SoC=39.4%, SoH=100%, Cycle=0; and the autonomous LOW VOLTAGE warning was triggered and
Relay 1 was in control of the primary load at 0.061A / 0.60W. A staged protection logic offers progressive action: alert at less than
10 V, load shedding at less than 9 V, and emergency shut down at less than 8 V. The feature importance analysis shows that the current (weight=0.53) and cycle count (0.30) are the main predictors of degradation. This article presents the ESP32 -based, IoT- assisted, ML-controlled BMS prototype that is proven on a real lithium-ion device, the transition between AI-based battery studies and real-world embedded implementation.

Downloads

Download data is not yet available.

Downloads

Published

2026-08-09

How to Cite

Manojkumar Sahebrao Chavhan, & Rupesh Jagatarao Patil. (2026). The AI-Enhanced Battery Management System with Real-Time SOC/SOH Estimation and IoT-Based Autonomous Load Control: Hardware Implementation on ESP32 with MQTT and ML Inference. International Journal of Computer Information Systems and Industrial Management Applications, 18(13s), 329–357. https://doi.org/10.70917/ijcisim-2026-2498

Issue

Section

Original Articles