The increasing deployment of Smart Grids (SG) has generated large volumes of real-time energy data, creating new challenges for accurate energy forecasting, dynamic pricing, and secure energy trading. Existing approaches often rely on predictive intelligence or static centralized trading mechanisms independently, limiting their ability to support adaptive and autonomous market operations. To address the above limitations, this paper proposes a multi-layer AI–Blockchain (BC) framework for intelligent energy trading in SGs. The proposed framework integrates the forecasting of three market parameters electricity demand, market sensitivity, and generator price cap with automated BC-based pricing and P2P energy trading through an oracle-enabled architecture. The proposed framework consists of three integrated layers: an IoT-enabled SG interaction layer, an off-chain intelligence layer, and an on-chain execution layer. A set of Deep Learning (DL) models is employed to predict electricity demand, market sensitivity coefficient (β), and generator price cap parameters using the SGRT-LMD dataset, which contains approximately 50,000 SG records. Experimental results demonstrate high forecasting accuracy. For electricity demand prediction, the CNN–MHA–BiLSTM model achieved an R2 of 0.9925 and an MAE of 0.2097. For β, the same model achieved an R2 of 0.9654 and an MAE of 0.2955, while the TCN–GRU model achieved the best generator price cap prediction performance with an R2 of 0.9808 and an MAE of 0.0123. BC evaluation demonstrated efficient execution, with the maximum observed gas consumption reaching approximately 224,150 gas units.
J. Powell, A. McCafferty-Leroux, W. Hilal, and S. A. Gadsden, “Smart grids: A comprehensive survey of challenges, industry applications, and future trends,” Energy Rep., 2024.
W. Hua, Y. Chen, M. Qadrdan, J. Jiang, H. Sun, and J. Wu, “Applications of blockchain and artificial intelligence technologies for enabling prosumers in smart grids: A review,” Renew. Sustain. Energy Rev., 2022.
M. Takruri, M. Rabih, L. M. Dbeiss, H. Shall, S. A. Badawi, M. Al Atem, and M. Arnaout, “AI–IoT-enabled smart energy ecosystems: Architectures, security, and sustainability,” Eng., vol. 7, no. 7, p. 354, 2026.
D. Kaur, S. N. Islam, M. A. Mahmud, M. E. Haque, and Z. Y. Dong, “Energy forecasting in smart grid systems: Recent advancements in probabilistic deep learning,” IET Gener. Transm. Distrib., 2022.
M. Andoni, V. Robu, D. Flynn, S. Abram, D. Geach, D. Jenkins, P. McCallum, and A. Peacock, “Blockchain technology in the energy sector: A systematic review of challenges and opportunities,” Renew. Sustain. Energy Rev., 2019.
Y. Guo, Z. Wan, and X. Cheng, “When Blockchain meets smart grids: A comprehensive survey,” High-Confidence Comput., vol. 2, no. 2, 2022.
R. K. Agrawal, “BQEB forecastbench: Benchmarking AI models for smart grid forecasting using BQEB-Data v1,” 2026.
X. Wen, J. Liao, Q. Niu, N. Shen, and Y. Bao, “Deep learning-driven hybrid model for short-term load forecasting and smart grid information management,” Sci. Rep., vol. 14, no. 1, 2024.
R. W. Kotla, S. R. Yarlagadda, and T. S. Devi, “Resilient adversarial–evolutionary multi-agent intelligence for real-time EV charging and energy trading in renewable-integrated smart grids,” Glob. Energy Interconnect, vol. 9, no. 3, pp. 621–638, 2026.
S. Shirke, S. K. Gupta, and S. K. Jain, “Intelligent energy trading in smart microgrids using Hopfield networks with Nash equilibrium fairness,” Iran. J. Sci. Technol. Trans. Electr. Eng., pp. 1–18, 2026.
A. Umar, D. Kumar, T. Ghose, T. A. H. Alghamdi, and A. Y. Abdelaziz, “Decentralized community energy management: Enhancing demand response through smart contracts in a Blockchain network,” IEEE Access, vol. 12, pp. 80781–80798, 2024.
J. Dong, P. Ning, H. Zhao, and C. Song, “Decentralized peer-to-peer energy trading: A blockchain-enabled pricing paradigm,” J. King Saud Univ. Comput. Inf. Sci., vol. 37, no. 1, 2025.
K. Su, Y. Yu, and J. Zhang, “Blockchain-based smart grid power trading technology,” J. Eng. Appl. Sci., vol. 71, no. 1, 2024.
M. Z. I. Badar and M. M. M. Al-Khalidy, “Integrating Blockchain and machine learning for secure energy transactions in smart grids,” Eng. Appl. Artif. Intell., vol. 165, no. 113419, p. 113419, 2026.
F. Uddin, J. Hao, I. Alsaduni, S. Iqbal, M. Shafiullah, M. Aurangzeb, and S. Uddin, “IoT-enhanced virtual power plants with edge computing and Blockchain security for sustainable smart grid management,” Sci. Rep., vol. 16, no. 1, 2026.
K. Singh, S. B. Goyal, A. S. Rajawat, and H. N. Waked, “A Blockchain-integrated AI framework for enhancing energy efficiency and sustainability in smart grids,” in Procedia Comput. Sci., pp. 2302–2311, Elsevier B.V., 2025.
H. Sun and T. Weingärtner, “A Blockchain-based architecture for energy trading to enhance power grid stability,” Electron., vol. 14, no. 23, 2025.
V. Kothuru, S. Dwivedi, K. Lingaraj, and A. S. L. G. Gupta, “Energy efficient hierarchical multi-agent graph transformer architecture for decentralized demand response and energy trading in Blockchain-coordinated smart grids,” Sustain. Comput. Inform. Syst., vol. 50, no. 101346, p. 101346, 2026.
F. Ahsan, N. H. Dana, S. K. Sarker, L. Li, S. Muyeen, M. F. Ali, Z. Tasneem, M. M. Hasan, S. H. Abhi, and M. R. Islam, “Data-driven next-generation smart grid towards sustainable energy evolution: Techniques and technology review,” Prot. Control Mod. Power Syst., vol. 8, no. 1, pp. 1–42, 2023.
G. Dudek and M. Blachnik, “Artificial intelligence and machine learning models for forecasting, optimization, and control in smart energy systems,” Energies, vol. 19, no. 3, p. 768, 2026.
M. F. Sulaima, A. K. Pradhan, M. Schmirler, and H. Namazi, “Physics-informed artificial intelligence architectures for carbon-neutral integrated energy systems,” Int. J. Energy Res., vol. 2026, no. 1, p. 5452111, 2026.
T. Alladi, V. Chamola, J. J. P. C. Rodrigues, and S. A. Kozlov, “Blockchain in smart grids: A review on different use cases,” Sensors, vol. 19, no. 22, p. 4862, 2019.
A. Rohini, P. Purnima, and M. Pradeep, “Deep learning-based fault prognosis in smart electrical networks using multivariate time-series signal analysis,” Comput. Decis. Making: Int. J., vol. 3, no. 2S, pp. 354–364, 2026.
S. Hochreiter and J. Schmidhuber, “Long short-term memory,” Neural Comput., vol. 9, no. 8, pp. 1735–1780, 1997.
W. Kong, Z. Y. Dong, Y. Jia, D. J. Hill, Y. Xu, and Y. Zhang, “Short-term residential load forecasting based on LSTM recurrent neural network,” IEEE Trans. Smart Grid, vol. 10, no. 1, pp. 841–851, 2019.
S. Bai, J. Z. Kolter, and V. Koltun, “An empirical evaluation of generic convolutional and recurrent networks for sequence modeling,” 2018.
Y. Nie, N. H. Nguyen, P. Sinthong, and J. Kalagnanam, “A time series is worth 64 words: Long-term forecasting with transformers,” in Int. Conf. Learning Representations, 2023. Accessed: Oct. 20, 2026.
S.-A. Chen, C.-L. Li, N. Yoder, S. O. Arik, and T. Pfister, “TSMixer: An all-MLP architecture for time series forecasting,” 2023.
I. D. Mienye and T. G. Swart, “A comprehensive review of deep learning: Architectures, recent advances, and applications,” Inf., vol. 15, no. 12, p. 755, 2024.
K. Erdayandi, L. C. Cordeiro, and M. A. Mustafa, “Privacy-preserving and accountable billing in peer-to-peer energy trading markets with homomorphic encryption and Blockchain,” Sustain. Energy Grids Netw., vol. 41, p. 101568, 2025.
Y. Sun and Y. Zhou, “BiTCSAtt-TCN: A hybrid model for efficient electricity load forecasting in smart grids,” Alexandria Eng. J., vol. 130, pp. 437–446, 2025.
J. G. Song, E. S. Kang, H. W. Shin, and J. W. Jang, “A smart contract-based P2P energy trading system with dynamic pricing on Ethereum Blockchain,” Sensors, vol. 21, no. 6, p. 1985, 2021.
A. K. Vishwakarma, P. K. Patro, A. Acquaye, R. Jayaraman, and K. Salah, “Blockchain-based peer-to-peer renewable energy trading and traceability of transmission and distribution losses,” J. Oper. Res. Soc., vol. 77, no. 1, pp. 85–107, 2026.
ALRikabi, H. TH and Albakri, I. (2026). A Forecast-Driven AI–BC Framework for Intelligent Energy Trading in Sustainable SGs. Journal of Operation and Automation in Power Engineering, 14(Special Issue), -. doi: 10.22098/joape.2026.21310.2668
MLA
ALRikabi, H. TH, and Albakri, I. . "A Forecast-Driven AI–BC Framework for Intelligent Energy Trading in Sustainable SGs", Journal of Operation and Automation in Power Engineering, 14, Special Issue, 2026, -. doi: 10.22098/joape.2026.21310.2668
HARVARD
ALRikabi, H. TH, Albakri, I. (2026). 'A Forecast-Driven AI–BC Framework for Intelligent Energy Trading in Sustainable SGs', Journal of Operation and Automation in Power Engineering, 14(Special Issue), pp. -. doi: 10.22098/joape.2026.21310.2668
CHICAGO
H. TH ALRikabi and I. Albakri, "A Forecast-Driven AI–BC Framework for Intelligent Energy Trading in Sustainable SGs," Journal of Operation and Automation in Power Engineering, 14 Special Issue (2026): -, doi: 10.22098/joape.2026.21310.2668
VANCOUVER
ALRikabi, H. TH, Albakri, I. A Forecast-Driven AI–BC Framework for Intelligent Energy Trading in Sustainable SGs. Journal of Operation and Automation in Power Engineering, 2026; 14(Special Issue): -. doi: 10.22098/joape.2026.21310.2668