AI-Powered Circuit Breaker Monitoring & Analysis Platform
- Problem Statement
- Solution Overview
- Key Features
- Technology Stack
- System Architecture
- Installation Guide
- Usage
- API Documentation
- Screenshots
- Future Scope
- Team
- License
Circuit breaker faults in electrical distribution systems lead to:
- โ Unplanned power outages
- โ Equipment damage and safety hazards
- โ High maintenance costs
- โ Lack of predictive maintenance capabilities
Traditional DCRM (Direct Contact Resistance Measurement) testing is manual, time-consuming, and reactive rather than proactive.
Our AI-Powered DCRM Fault Detection System revolutionizes circuit breaker monitoring by:
โ
Automated Analysis - Instant fault detection using machine learning
โ
Real-Time Monitoring - 24/7 continuous surveillance with live dashboards
โ
Predictive Maintenance - Early fault detection before failures occur
โ
Multiple Interfaces - Web-based analysis + Live monitoring dashboard
โ
High Accuracy - 100% accuracy on test datasets with confidence scoring
- CSV File Upload - Drag & drop support for historical data analysis
- Manual Data Input - Paste comma-separated resistance values
- Test Sample Generation - Generate synthetic waveforms for testing
- Instant Results - Fault detection with confidence scores and extracted features
- Live Waveform Visualization - Chart.js powered real-time graphs
- Animated Circuit Breaker - Visual representation with state indicators
- Fault Detection Display - Color-coded alerts with confidence metrics
- Statistics Panel - Total scans, faults detected, uptime, health rate
- Alert History - Comprehensive log of all detected anomalies
- Adjustable Monitoring Speed - Configurable update intervals (0.5s - 5s)
- Fault Simulation - Test with Normal, Spike, Plateau, Unstable signals
- Random Forest Classifier - 200 estimators with optimized parameters
- Feature Extraction - 9 key features including peaks, slopes, plateaus
- Multi-Class Classification - Detects Normal, Spike, Plateau, Unstable faults
- Confidence Scoring - Probability distribution for all fault types
- Trained on Synthetic Data - 300 samples with noise and variations
- Modern Glassmorphism Design - Frosted glass effects with backdrop blur
- Animated Backgrounds - Floating gradient orbs and moving grid patterns
- Color-Coded Themes - Purple/Pink for analysis, Teal/Cyan for monitoring
- Responsive Design - Mobile, tablet, and desktop optimized
- Smooth Animations - Hover effects, transitions, loading states
- Python 3.8+ - Core programming language
- Flask 2.3+ - Web framework for REST API
- Flask-CORS - Cross-origin resource sharing
- Scikit-learn - Machine learning library
- NumPy - Numerical computations
- SciPy - Signal processing
- Joblib - Model persistence
- HTML5 - Semantic markup
- CSS3 - Modern styling with animations
- JavaScript (ES6+) - Dynamic functionality
- Chart.js - Real-time waveform visualization
- Random Forest Classifier - Ensemble learning method
- Feature Engineering - Peak detection, statistical analysis
- Signal Processing - Savitzky-Golay filtering
- ESP32 Microcontroller - Hardware data acquisition
- IoT Sensors - Real-time DCRM measurements
- Cloud Deployment - Heroku, Vercel, Railway
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ User Interface Layer โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Analysis Page โ Monitoring Dashboard โ
โ (index_v2.html) โ (monitor_v2.html) โ
โ - Upload CSV โ - Live Waveform Chart โ
โ - Manual Input โ - Circuit Breaker Visual โ
โ - Test Generation โ - Real-time Statistics โ
โโโโโโโโโโโโฌโโโโโโโโโโโโดโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Flask REST API โ
โ (dcrm_flask_api.py) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Endpoints: โ
โ - POST /predict โ Analyze waveform โ
โ - GET /health โ API health check โ
โ - GET / โ API information โ
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Processing Layer โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 1. Feature Extraction โ
โ - Peak detection (SciPy) โ
โ - Statistical metrics (NumPy) โ
โ - Plateau duration analysis โ
โ - Slope calculations โ
โ โ
โ 2. ML Model (Random Forest) โ
โ - 200 decision trees โ
โ - 9 input features โ
โ - 4 output classes โ
โ - Confidence scoring โ
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Data Sources โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Current: Synthetic Data Generation โ
โ Future: ESP32 โ DCRM Sensors โ WiFi โ API โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Python 3.8 or higher
- pip package manager
- Modern web browser (Chrome, Firefox, Edge)
git clone https://github.com/yourusername/dcrm-fault-detection.git
cd dcrm-fault-detectioncd backend
pip install flask flask-cors numpy scipy scikit-learn joblibOr use requirements.txt:
pip install -r requirements.txtpython train_dcrm_classifier.pyThis generates dcrm_fault_classifier_v2.joblib
python dcrm_flask_api.pyAPI starts at http://localhost:5000
Navigate to frontend/ folder and open index_v2.html in your browser.
Or use a local server:
cd frontend
python -m http.server 8000Then visit http://localhost:8000
-
Upload CSV File
- Click browse or drag & drop your CSV file
- File should contain resistance measurements
- Click "Analyze CSV" button
-
Manual Input
- Paste comma-separated resistance values
- Minimum 10 values required
- Click "Analyze Data" button
-
Generate Test Sample
- Select fault type (Normal, Spike, Plateau, Unstable)
- Click "Generate & Analyze"
- System creates and analyzes synthetic waveform
- Click "๐ก Open Live Monitoring Dashboard" button
- Adjust monitoring speed (0.5s - 5s intervals)
- Select fault simulation type
- Click "๐ Start Monitoring"
- Watch live analysis with:
- Real-time waveform chart
- Animated circuit breaker
- Fault detection alerts
- Statistics updates
- Alert history
http://localhost:5000
GET /Response:
{
"message": "DCRM Fault Detection API",
"version": "1.0",
"endpoints": {
"/predict": "POST - Analyze waveform",
"/health": "GET - Check API health"
}
}GET /healthResponse:
{
"status": "healthy",
"model_loaded": true
}POST /predict
Content-Type: application/jsonRequest Body:
{
"waveform": [2.5, 2.6, 2.4, 2.7, ...]
}Response:
{
"success": true,
"predicted_fault": "spike",
"confidence": {
"normal": 0.00,
"spike": 77.00,
"plateau": 8.50,
"unstable": 14.50
},
"features_extracted": {
"num_peaks": 1,
"max_peak_height": 1.000,
"mean": 0.089,
"std": 0.110,
"plateau_duration": 10,
"max_slope": 0.3872,
"min_slope": -0.2341
}
}- Modern UI with gradient animations
- Three upload options
- Instant results display
- Live waveform chart
- Animated circuit breaker
- Statistics panel
- Alert history
- Confidence scores with progress bars
- Extracted features display
- Color-coded fault indicators
- โ ESP32 hardware integration
- โ WebSocket support for real-time data streaming
- โ Database integration (PostgreSQL/MongoDB)
- โ User authentication and multi-user support
- โ Historical data analytics and trends
- ๐ Mobile app (Flutter/React Native)
- ๐ Advanced ML models (LSTM, Transformer)
- ๐ Predictive maintenance scheduling
- ๐ Multi-sensor support (temperature, vibration)
- ๐ Cloud deployment with auto-scaling
- ๐ Integration with SCADA systems
- ๐ Anomaly detection for multiple fault types
- ๐ Report generation and export features
This project is developed for Smart India Hackathon 2025.
- Smart India Hackathon organizing committee
- RGIPT, Jais
- Open-source libraries: Flask, Scikit-learn, Chart.js
- Inspiration from modern UI design trends
For queries related to this project:
- Email: akhawattushar@gmail.com
- GitHub: https://github.com/akhawattushar
- LinkedIn: www.linkedin.com/in/tushar-singh-akhawat-9a4848341
Made with โค๏ธ for Smart India Hackathon 2025


