Back to search

Schulich School of Engineering

An Attention-Based Deep Learning Approach for Forecasting Electricity Prices in Real-Time Electricity Markets

Abstract

dc:description.abstract

Real-time electricity markets are characterized by irregular and sudden price swings, leading to high price volatility and significant uncertainties for market participants. Accurate and informative electricity price forecasts are essential to reduce these uncertainties and enable more effective decision-making in energy generation, consumption, strategy planning, and risk management. This thesis presents a new forecasting framework for electricity prices in real-time markets, leveraging the capabilities of deep learning and advanced feature engineering. The proposed methodology integrates the Temporal Fusion Transformer (TFT), a deep learning model applied to time series forecasting, with dynamic clustering techniques to enhance forecasting accuracy. This is done by combining Hierarchical Density-Based Spatial Clustering of Applications with Noise and Dynamic Time Warping to cluster generators based on attributes such as geographical location, fuel type, installed capacity, and generation patterns. These clusters provide new covariates for forecasting models, enabling the method to adapt to the unique characteristics of any electricity market. The effectiveness of the proposed framework is demonstrated through a case study of the Ontario electricity market, where the methodology outperforms the forecasts of the system operator in terms of average error, accuracy, precision, and recall across a six-hour forecast horizon. This study underlines the framework's versatility and offers valuable insights into electricity price behavior, aiding market participants in mitigating risks and optimizing energy strategies.

Degree

thesis:*
Name thesis:degree_name
Master of Science (MSc)
Discipline thesis:degree_discipline
Engineering – Electrical & Computer
Grantor dc:publisher.institution
Schulich School of Engineering
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • do Carmo Junior, Jose Eustaquio
Advisor dc:contributor.advisor
  • Zareipour, Hamidreza
Committee members dc:contributor.committeemember
  • de Souza, Roberto Medeiros
  • Papalexiou, Simon Michael

Subjects

dc:subject × 4

Rights

dc:rights
Statement dc:rights
  • University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission.
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
do Carmo, J. (2025). An attention-based deep learning approach for forecasting electricity prices in real-time electricity markets (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca.

Chain of custody

source
Harvested from
University of Calgary
Base URL
ucalgary.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

do Carmo Junior, Jose Eustaquio. An Attention-Based Deep Learning Approach for Forecasting Electricity Prices in Real-Time Electricity Markets. Schulich School of Engineering, 2025. https://hdl.handle.net/1880/120482