Joint Multi-Horizon Forecasting of Residential Electricity Demand and Price Using an LSTM–Transformer for Smart-Grid Energy Management

Accurate day-ahead forecasts of residential electricity demand and market prices are essential for demand response, economic scheduling, and reliable smart-grid operation. However, the nonlinear, nonstationary, and volatile dynamics of these variables make accurate joint forecasting challenging. This study develops and benchmarks an LSTM–Transformer hybrid for simultaneous 24-hour-ahead residential load and electricity-price forecasting. Six architectures—CNN, LSTM, Transformer, CNN–LSTM, CNN–Transformer, and LSTM–Transformer—were trained and evaluated under identical preprocessing, optimization, and chronological out-of-sample conditions using hourly data from 20 Pecan Street households in Austin, Texas, and ERCOT LZ-AEN real-time settlement-point prices from January 2018 to December 2022. A 24 h lookback window was used to predict the following 24 h, with the data divided chronologically into training, validation, and test sets in a 70:10:20 ratio. The proposed architecture combines stacked LSTM layers for sequential-memory representation with multi-head Transformer self-attention for capturing long-range temporal dependencies. On the test set, it achieved an MAE of 0.2771 kW, RMSE of 0.3573 kW, MAPE of 5.10%, and R2 of 0.9859 for load forecasting, and an MAE of 0.0176 $/kWh, RMSE of 0.0232 $/kWh, MAPE of 4.85%, and R2 of 0.9819 for price forecasting. Compared with the best-performing CNN–LSTM model, the proposed approach reduced RMSE by 15.8% for load and 27.7% for price. Residual diagnostics for the proposed model indicated low bias and stable error distributions, with near-zero mean residuals, low standard deviations, skewness close to zero, kurtosis near three, while strict normality is rejected because p is less than 0.001 and outlier rates are 0.34% for load and 0.28% for price. These results demonstrate that combining sequential memory with global attention improves forecasting accuracy and residual stability. The resulting forecasts can support flexible-load scheduling, EV charging, HVAC and water-heating control, battery peak shaving and arbitrage, and demand-response participation, thereby enabling more proactive, economical, and reliable demand-side energy management in smart grids.

Authors

Institutions

Publication Details

Journal
Electronics
Published
2026-11-17
DOI
https://doi.org/10.3390/electronics15225345
Primary Topic
Energy Load and Power Forecasting
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Joint Multi-Horizon Forecasting of Residential Electricity Demand and Price Using an LSTM–Transformer for Smart-Grid Energy Management

Mohamed Ahmed Mohandes, Suliman Aladhadh, Ali Al‐Shaikhi, Amr S. Zalhaf et al.
6 links
Electronics
Energy Load and Power Forecasting
article

Joint Multi-Horizon Forecasting of Residential Electricity Demand and Price Using an LSTM–Transformer for Smart-Grid Energy Management

Mohamed Ahmed Mohandes, Suliman Aladhadh, Ali Al‐Shaikhi, Amr S. Zalhaf, Temesgen Teshager Gela
article en

Abstract

Accurate day-ahead forecasts of residential electricity demand and market prices are essential for demand response, economic scheduling, and reliable smart-grid operation. However, the nonlinear, nonstationary, and volatile dynamics of these variables make accurate joint forecasting challenging. This study develops and benchmarks an LSTM–Transformer hybrid for simultaneous 24-hour-ahead residential load and electricity-price forecasting. Six architectures—CNN, LSTM, Transformer, CNN–LSTM, CNN–Transformer, and LSTM–Transformer—were trained and evaluated under identical preprocessing, optimization, and chronological out-of-sample conditions using hourly data from 20 Pecan Street households in Austin, Texas, and ERCOT LZ-AEN real-time settlement-point prices from January 2018 to December 2022. A 24 h lookback window was used to predict the following 24 h, with the data divided chronologically into training, validation, and test sets in a 70:10:20 ratio. The proposed architecture combines stacked LSTM layers for sequential-memory representation with multi-head Transformer self-attention for capturing long-range temporal dependencies. On the test set, it achieved an MAE of 0.2771 kW, RMSE of 0.3573 kW, MAPE of 5.10%, and R2 of 0.9859 for load forecasting, and an MAE of 0.0176 $/kWh, RMSE of 0.0232 $/kWh, MAPE of 4.85%, and R2 of 0.9819 for price forecasting. Compared with the best-performing CNN–LSTM model, the proposed approach reduced RMSE by 15.8% for load and 27.7% for price. Residual diagnostics for the proposed model indicated low bias and stable error distributions, with near-zero mean residuals, low standard deviations, skewness close to zero, kurtosis near three, while strict normality is rejected because p is less than 0.001 and outlier rates are 0.34% for load and 0.28% for price. These results demonstrate that combining sequential memory with global attention improves forecasting accuracy and residual stability. The resulting forecasts can support flexible-load scheduling, EV charging, HVAC and water-heating control, battery peak shaving and arbitrage, and demand-response participation, thereby enabling more proactive, economical, and reliable demand-side energy management in smart grids.

ElectronicsVol. 15(22)
King Fahd University of Petroleum and Minerals (SA), Qassim University (SA)
Qassim University
Affordable and clean energy, Industry, innovation and infrastructure, Climate action
Energy Load and Power Forecasting
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.

Laika access coming soon