AI-driven optimization of energy consumption and demand response in smart homes

Due to the rapid adoption of renewable energy sources and the increasing complexity of residential electricity consumption, there is a growing need for intelligent, scalable, and context-aware energy management systems in smart homes. This paper presents an artificial intelligence (AI)-based model that integrates high-resolution household power forecasting with dynamic demand response (DR) simulations to optimize energy consumption, enhance grid stability, and support sustainable energy transitions. Using the publicly available UCI Smart Home Energy dataset, a seven-step framework was implemented, including data preprocessing, exploratory data analysis (EDA), feature engineering, and the development of various predictive models—linear regression (LR), random forest regressor (RFR), support vector regression (SVR), k-nearest neighbors (k-NN), and long short-term memory (LSTM) neural networks. Each model was evaluated under seven DR strategies to capture temporal dependencies and nonlinear load behaviors: Peak Clipping, Valley Filling, Load Shifting, Load Leveling, Time-of-Use (ToU) Optimization, Price-Based Control, and Behavioral DR. Model performance was assessed using the mean absolute error (MAE), root mean squared error (RMSE), and the coefficient of determination ( R ²). Results revealed that the LSTM model achieved the highest accuracy, with the lowest MAE (18.95 Wh), lowest RMSE (24.83 Wh), and highest R ² (0.94) under the Price-Based DR strategy. Random forest emerged as the most effective traditional model, yielding an MAE of 25.13 Wh and R ² of 0.89, particularly for Behavioral and ToU-based DR strategies. The SVR and k-NN models provided moderate accuracy, while LR performed poorly, underscoring its limitation in modeling nonlinear and dynamic energy patterns. DR simulations indicated that Price-Based, Behavioral, and ToU Optimization strategies achieved the best alignment between household loads and grid requirements while maintaining user flexibility. Visualization tools such as heatmaps, grouped bar plots, and R ² comparisons further confirmed the superior temporal modeling capability of deep learning (DL) methods. Overall, the proposed framework offers a scalable and interpretable AI-driven platform that integrates load forecasting with DR evaluation, demonstrating that DL—particularly LSTM—can substantially enhance forecasting accuracy, enable smarter DR programs, and promote sustainable energy management in smart homes.

Authors

Institutions

Publication Details

Journal
Energy Exploration & Exploitation
Published
2025-11-28
DOI
https://doi.org/10.1177/01445987251403607
Citations
1
Primary Topic
Smart Grid Energy Management
Type
article
Field-Weighted Citation Impact
0.73
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

AI-driven optimization of energy consumption and demand response in smart homes

Muneera Altayeb, Muhammad Zain Yousaf, Umar Farooq, Abdul Aziz et al.
1 citations
Energy Exploration & Exploitation
Smart Grid Energy Management
0.73
article

AI-driven optimization of energy consumption and demand response in smart homes

Muneera Altayeb, Muhammad Zain Yousaf, Umar Farooq, Abdul Aziz, Azzam ul Asar, Ali Mujtaba Durrani, Mebratu Sintie Geremew, Wajid Khan
article en
1 citations

Abstract

Due to the rapid adoption of renewable energy sources and the increasing complexity of residential electricity consumption, there is a growing need for intelligent, scalable, and context-aware energy management systems in smart homes. This paper presents an artificial intelligence (AI)-based model that integrates high-resolution household power forecasting with dynamic demand response (DR) simulations to optimize energy consumption, enhance grid stability, and support sustainable energy transitions. Using the publicly available UCI Smart Home Energy dataset, a seven-step framework was implemented, including data preprocessing, exploratory data analysis (EDA), feature engineering, and the development of various predictive models—linear regression (LR), random forest regressor (RFR), support vector regression (SVR), k-nearest neighbors (k-NN), and long short-term memory (LSTM) neural networks. Each model was evaluated under seven DR strategies to capture temporal dependencies and nonlinear load behaviors: Peak Clipping, Valley Filling, Load Shifting, Load Leveling, Time-of-Use (ToU) Optimization, Price-Based Control, and Behavioral DR. Model performance was assessed using the mean absolute error (MAE), root mean squared error (RMSE), and the coefficient of determination ( R ²). Results revealed that the LSTM model achieved the highest accuracy, with the lowest MAE (18.95 Wh), lowest RMSE (24.83 Wh), and highest R ² (0.94) under the Price-Based DR strategy. Random forest emerged as the most effective traditional model, yielding an MAE of 25.13 Wh and R ² of 0.89, particularly for Behavioral and ToU-based DR strategies. The SVR and k-NN models provided moderate accuracy, while LR performed poorly, underscoring its limitation in modeling nonlinear and dynamic energy patterns. DR simulations indicated that Price-Based, Behavioral, and ToU Optimization strategies achieved the best alignment between household loads and grid requirements while maintaining user flexibility. Visualization tools such as heatmaps, grouped bar plots, and R ² comparisons further confirmed the superior temporal modeling capability of deep learning (DL) methods. Overall, the proposed framework offers a scalable and interpretable AI-driven platform that integrates load forecasting with DR evaluation, demonstrating that DL—particularly LSTM—can substantially enhance forecasting accuracy, enable smarter DR programs, and promote sustainable energy management in smart homes.

Energy Exploration & Exploitation
Al-Ahliyya Amman University (JO), Tianjin University (CN), Mizan Tepi University (ET), Virtual High School (US), CECOS University (PK), Virtual University of Pakistan (PK)
Openalex Percentile: Top 21%
Smart Grid Energy Management
0.73
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.