journal article·2025-12-21Open access

Learning the Grid: Transformer Architectures for Electricity Price Forecasting in the Australian National Market

Mark Sinclair, Andrew J. Shepley, Farshid Hajati

Applied Sciences· Volume 16· Issue 1

Abstract

The increasing adoption of highly variable renewable energy has introduced unprecedented volatility into the National Electricity Market (NEM), rendering traditional linear price forecasting models insufficient. The Australian Energy Market Operator (AEMO) spot price forecasts often struggle during periods of volatile demand, renewable variability, and strategic rebidding. This study evaluates whether transformer architectures can improve intraday NEM price forecasting. Using 34 months of market data and weather conditions, several transformer variants, including encoder–decoder, decoder-only, and encoder-only, were compared against the AEMO’s operational forecast, a two-layer LSTM baseline, the Temporal Fusion Transformer, PatchTST, and TimesFM. The decoder-only transformer achieved the best accuracy across the 2–16 h horizons in NSW, with nMAPE values of 33.6–39.2%, outperforming both AEMO and all baseline models. Retraining in Victoria and Queensland produced similarly strong results, demonstrating robust regional generalisation. A feature importance analysis showed that future-facing predispatch and forecast covariates dominate model importance, explaining why a decoder-only transformer variant performed so competitively. While magnitude estimation for extreme price spikes remains challenging, the transformer models demonstrated superior capability in delivering statistically significant improvements in forecast accuracy. An API providing real-time forecasts using the small encoder–decoder transformer model is available.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Energy Load and Power Forecasting · Integrated Energy Systems Optimization · Electric Power System Optimization

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Science and Technology, University of New England, Armidale, NSW 2350, Australia

References (49)

Show source-provided references
1. AEMO (2025, June 20). Predispatch Procedure. Available online: https://aemo.com.au/-/media/files/electricity/nem/security_and_reliability/power_system_ops/procedures/so_op_3704-predispatch.pdf?la=en.
2. Strategic bidding and rebidding in electricity markets10.1016/j.eneco.2016.07.011 ↗
3. Game-theoretic evolution in renewable energy systems: Advancing sustainable energy management and decision optimization in decentralized power markets10.1016/j.rser.2025.115776 ↗
4. Review on Virtual Power Plants/Virtual Aggregators: Concepts, applications, prospects and operation strategies10.1016/j.rser.2024.115242 ↗
5. ASX (2025, August 12). ASX AU Electricity Futures Market. Available online: https://www.asxenergy.com.au/futures_au.
6. Sustainable development of renewable energy integrated power sector: Trends, environmental impacts, and recent challenges10.1016/j.scitotenv.2022.153645 ↗
7. Jakaša, T., Andročec, I., and Sprčić, P. (2011, January 25–27). Electricity price forecasting—ARIMA model approach. Proceedings of the 2011 8th International Conference on the European Energy Market, Zagreb, Croatia.10.1109/EEM.2011.5953012 ↗
8. Saini, D., Saxena, A., and Bansal, R.C. (2016, January 23–25). Electricity price forecasting by linear regression and SVM. Proceedings of the 2016 International Conference on Recent Advances and Innovations in Engineering (ICRAIE), Jaipur, India.10.1109/ICRAIE.2016.7939509 ↗
9. Bansal, M., Raj, A., and Raj, A. (2024). Comparative Analysis of ML Models for Electricity Price Forecasting. Inventive Communication and Computational Technologies, Springer Nature. Lecture Notes in Networks and Systems.10.1007/978-981-97-7710-5_42 ↗
10. Cantillo-Luna, S., Moreno-Chuquen, R., Lopez-Sotelo, J., and Celeita, D. (2023). An Intra-Day Electricity Price Forecasting Based on a Probabilistic Transformer Neural Network Architecture. Energies, 16.10.3390/en16196767 ↗
11. An optimized heterogeneous structure LSTM network for electricity price forecasting10.1109/ACCESS.2019.2932999 ↗
12. Short-term load forecasts using LSTM networks10.1016/j.egypro.2019.01.952 ↗
13. Temporal Fusion Transformers for Enhanced Multivariate Time Series Forecasting of Indonesian Stock Prices
14. Forecasting day-ahead electricity prices: A review of state-of-the-art algorithms, best practices and an open-access benchmark10.1016/j.apenergy.2021.116983 ↗
15. Interpretable transformer model for capturing regime switching effects of real-time electricity prices10.1109/TPWRS.2022.3195970 ↗
16. Abdellatif, A., Mubarak, H., Ahmad, S., Mekhilef, S., Abdellatef, H., Mokhlis, H., and Kanesan, J. (2023). Electricity Price Forecasting One Day Ahead by Employing Hybrid Deep Learning Model, IEEE.10.1109/GlobConHT56829.2023.10087634 ↗
17. A novel electricity price forecasting approach based on multi-attention feature fusion model optimized by variational mode decomposition10.1016/j.measurement.2025.117596 ↗
18. Kazemi, S.M., Goel, R., Eghbali, S., Ramanan, J., Sahota, J., Thakur, S., Wu, S., Smyth, C., Poupart, P., and Brubaker, M. (2019). Time2vec: Learning a vector representation of time. arXiv.
19. Day-ahead electricity price forecasting employing a novel hybrid frame of deep learning methods: A case study in NSW, Australia10.1016/j.epsr.2023.109300 ↗
20. Half-hourly electricity price prediction with a hybrid convolution neural network-random vector functional link deep learning approach10.1016/j.apenergy.2024.123920 ↗
21. Liu, C., Cai, L., Dalzell, G., and Mills, N. (2024). Large Language Model for Extreme Electricity Price Forecasting in the Australia Electricity Market, IEEE.10.1109/IECON55916.2024.10906045 ↗
22. Kang, K., and Wang, Q. (2025). A Transformer-Based Framework for Explainable Electricity Market Dynamics, IEEE.10.1109/CMSS66566.2025.11182358 ↗
23. Malyala, R., Thattai, K., Malik, A., and Ravishankar, J. (2024, January 10–13). Weather-Independent Forecasting for State-Wide Energy Markets Using Hybrid GPI-DSSM Model. Proceedings of the 2024 4th International Conference on Smart City and Green Energy, Sydney, Australia.10.1109/ICSCGE64239.2024.11064192 ↗
24. Electricity market clearing price prediction based on mode decomposition and improved transformer
25. Attention is all you need
26. Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
27. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting
28. Zhou, T., Ma, Z., Wen, Q., Wang, X., Sun, L., and Jin, R. (2022, January 17–23). Fedformer: Frequency enhanced decomposed transformer for long-term series forecasting. Proceedings of the 39th International Conference on Machine Learning, Baltimore, MD, USA.
29. A regional electricity price prediction method based on Transformer and Graph Neural Networks10.1016/j.aej.2025.04.050 ↗
30. Gradient surgery for multi-task learning
31. Day-ahead electricity price prediction in multi-price zones based on multi-view fusion spatio-temporal graph neural network10.1016/j.apenergy.2024.123553 ↗
32. Temporal-aware deep reinforcement learning for energy storage bidding in energy and contingency reserve markets10.1109/TEMPR.2024.3372656 ↗
33. Integrated Multi-Head Self-Attention Transformer model for electricity demand prediction incorporating local climate variables10.1016/j.egyai.2023.100302 ↗
34. AEMO (2025, November 20). NEMweb Data. Available online: https://nemweb.com.au/Reports/Archive/.
35. AEMO (2025, July 05). Aggregated Price and Demand Data. Available online: https://www.aemo.com.au/energy-systems/electricity/national-electricity-market-nem/data-nem/aggregated-data.
36. Zippenfenig, P. (2025, June 20). Open-Meteo: Historical and Forecast Weather Data. Available online: https://open-meteo.com/.
37. Extremal dependence in Australian electricity markets10.1016/j.jcomm.2025.100476 ↗
38. ABS (2025, June 14). Snapshot of New South Wales, Available online: https://www.abs.gov.au/articles/snapshot-nsw-2021.
39. Quickiebites. Syed (2025, November 20). File: Australia Color Map.svg. Available online: https://commons.wikimedia.org/wiki/File:Australia_Color_Map.svg.
40. A probabilistic forecast methodology for volatile electricity prices in the Australian National Electricity Market10.1016/j.ijforecast.2023.12.003 ↗
41. Wang, Q., Li, B., Xiao, T., Zhu, J., Li, C., Wong, D.F., and Chao, L.S. (2019). Learning deep transformer models for machine translation. arXiv.10.18653/v1/P19-1176 ↗
42. Kingma, D.P., and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv.
43. Nie, Y., Nguyen, N.H., Sinthong, P., and Kalagnanam, J. (2022). A time series is worth 64 words: Long-term forecasting with transformers. arXiv.
44. Abhimanyu, D., Weihao, K., Rajat, S., and Yichen, Z. (2023). A decoder-only foundation model for time-series forecasting. arXiv.
45. Temporal Fusion Transformers for interpretable multi-horizon time series forecasting10.1016/j.ijforecast.2021.03.012 ↗
46. Google (2025, October 11). TimesFM 2.5 Git Repository. Available online: https://github.com/google-research/timesfm.
47. A unified approach to interpreting model predictions
48. Kandadi, T., and Shankarlingam, G. (2025, November 29). Drawbacks of Lstm Algorithm: A Case Study. Available SSRN 5080605, 2025. Available online: https://www.researchgate.net/publication/398082802_DRAWBACKS_OF_LSTM_ALGORITHM_A_CASE_STUDY?channel=doi&linkId=6929d661a130337711c01f71&showFulltext=true.
49. energy.gov.au (2025, November 29). Australian Electricity Generation—Fuel Mix Calendar Year 2024, Available online: https://www.energy.gov.au/energy-data/australian-energy-statistics/data-charts/australian-electricity-generation-fuel-mix-calendar-year-2024.