ML-Based Microgrid Fault Detection System
Machine Learning

ML-Based Microgrid Fault Detection System

Abstract The ML-Based Microgrid Fault Detection System is designed to monitor electrical parameters and identify abnormal operating conditions in a microgrid using voltage and current sensors. The system uses an ESP32 for data acquisition and Python-based machine learning with the Random Forest algorithm to analyse electrical measurements and classify potential faults. It aims to support reliable microgrid operation through real-time monitoring, early fault identification, and alert generation. Project Description This project develops an IoT-enabled fault detection solution for microgrid systems. A microgrid may contain multiple energy sources, such as solar panels, wind turbines, batteries, and grid connections. Voltage and current sensors monitor electrical parameters at selected points in the microgrid. The ESP32 collects the sensor readings and transmits them to a Python-based machine learning application. The Random Forest algorithm analyses the collected data and identifies patterns associated with normal and abnormal operating conditions. Depending on the training dataset, the system can classify conditions such as overvoltage, undervoltage, overcurrent, and other supported fault categories. A web dashboard can display electrical measurements, microgrid operating status, fault classifications, and historical data. Alerts can also be generated when abnormal conditions are detected. Working Principle 1. Voltage and Current Measurement: Sensors measure electrical parameters at selected microgrid points. 2. ESP32 Data Acquisition: The ESP32 collects sensor readings and transmits the data to the Python application. 3. Data Preprocessing: Python processes the incoming measurements and prepares them for machine learning analysis. 4. Feature Extraction: Electrical features such as voltage, current, power, and power factor are calculated where the available measurements support them. 5. Random Forest Classification: The trained Random Forest model analyses the extracted features and classifies the operating condition. 6. Fault Identification: The system identifies supported conditions such as normal operation, overvoltage, undervoltage, and overcurrent. 7. Dashboard Monitoring: A web dashboard displays real-time measurements, system status, and detected faults. 8. Alert Generation: Notifications are generated when the system identifies abnormal operating conditions. Notes - The Random Forest model requires a labelled dataset containing normal and faulty operating conditions. - Model performance depends on sensor accuracy, sampling frequency, dataset quality, and the range of fault scenarios used during training. - Voltage and current sensors must be selected according to the microgrid's AC/DC characteristics and operating ranges. - For reliable fault identification, sensor placement and measurement points must be planned carefully. - A basic prototype can begin with a single monitored electrical source and later expand to solar, wind, battery, and grid inputs. - Random Forest provides classification results based on learned patterns; it does not independently guarantee detection of every electrical fault. - Actual line faults and protection events require appropriate hardware protection and safe fault-simulation methods. Do not intentionally create dangerous short circuits or expose the ESP32 to high voltage. - Use properly rated, isolated sensing modules and protective circuits. Mains and high-voltage microgrid testing must be handled by qualified electrical professionals. - The system is a monitoring and classification prototype; it should not replace certified circuit breakers, relays, or protection systems. Expected Outcome The expected outcome is an IoT-based microgrid monitoring prototype that collects voltage and current measurements and uses a Random Forest machine learning model to classify supported electrical operating conditions. The system can provide real-time monitoring, fault identification, dashboard visualization, historical data logging, and alerts. It demonstrates how IoT and machine learning can support improved microgrid monitoring, reliability, and operational awareness.
All Projects

Recommended Projects

ML-Based Battery Thermal Fault Detection System

View Project

ML-Based Home Appliance Energy Consumption Prediction

View Project

Phishing Website Detection System Using Python, ML and Browser/Web App

View Project
WhatsApp Contact
👋 Hi! I'm Divyika
How can I help you today?