This project develops machine learning models to predict household electricity consumption in Kerala, India, during monsoon and summer seasons.
The project focuses on understanding energy usage patterns in residential buildings and identifying key drivers like home size, number of occupants, floors, and orientation.
Electricity consumption varies seasonally due to climate and occupant behavior.
This project aims to:
- Predict electricity bills for monsoon and summer months.
- Analyze feature importance to understand energy drivers.
- Provide interpretable insights for energy-efficient home design.
- Source: Collected as part of the project “Building Self Sustainable Smart Cities through Energy Efficient Homes using Intelligent Design”
- Rows: 500
- Columns:
Total Area (sqft)— Total built-up area of the homeNumber of Occupants— Total residentsNumber of Floors— Number of floorsOrientation— Main direction the house facesKSEB bill in monsoon— Target for monsoon modelKSEB bill in summer— Target for summer model
Input Features:
- Total Area (sqft)
- Number of Occupants
- Number of Floors
- Orientation
Target Variables:
- KSEB bill in monsoon
- KSEB bill in summer
- Preprocessing:
- One hot encoding for categorical features
- Standard scaling
- Models:
- CatBoost Regressor (primary)
- Evaluation:
- 5-fold cross-validation
- R² score calculation
- Feature importance analysis
Separate models were trained for monsoon and summer to capture season-specific patterns.
Monsoon Model:
- R² (CV): 0.71
- Top Feature: Total Area (70.9%)
Summer Model:
- R² (CV): 0.51
- Top Feature: Total Area (71.5%), Orientation more important than in monsoon
Insight: Summer electricity consumption is more influenced by occupant behavior and solar exposure, while monsoon usage is dominated by structural factors.
Residual analysis was performed for both monsoon and summer models. Monsoon residuals show stable, random error distribution, while summer residuals exhibit higher variance due to unobserved behavioral factors.
- Install requirements:
pip install -r requirements.txt