{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,27]],"date-time":"2026-11-27T17:33:27Z","timestamp":1795800807246,"version":"4.11.3"},"reference-count":32,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2025,4,1]],"date-time":"2025-04-01T00:00:00Z","timestamp":1743465600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Artif. Intell."],"abstract":"<jats:p>This research presents an optimized system for predicting energy usage in smart grids by integrating the Temporal Fusion Transformer (TFT) with the Aquila Optimizer (AO). The study addresses the growing need for accurate energy consumption forecasts in smart grids, driven by the increasing adoption of renewable energy and real-time data collection through smart meters. The TFT model leverages self-attention mechanisms to handle complex time-series data, improving forecasting accuracy across various time horizons. To enhance predictive performance, the Aquila Optimizer, a nature-inspired algorithm, is employed to fine-tune critical hyperparameters, ensuring optimal model convergence and performance. The proposed AO-TFT model is evaluated against traditional models like LSTM and CNN-BiLSTM, demonstrating superior accuracy, lower RMSE, and faster computation times. The research also analyses the impact of various factors, including building types, weather conditions, and load variations on energy prediction. The proposed AO-TFT model achieved a significantly lower RMSE of 0.48 and MAE of 0.31, demonstrating superior accuracy compared to traditional models. Future work is suggested to explore hybrid optimization techniques and real-time adaptive models for dynamic grid management.<\/jats:p>","DOI":"10.3389\/frai.2025.1542320","type":"journal-article","created":{"date-parts":[[2025,4,1]],"date-time":"2025-04-01T06:36:25Z","timestamp":1743489385000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":16,"title":["An optimized system for predicting energy usage in smart grids using temporal fusion transformer and Aquila optimizer"],"prefix":"10.3389","volume":"8","author":[{"given":"Namdeo Baban","family":"Badhe","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Rahul P.","family":"Neve","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Vijaykumar P.","family":"Yele","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Swati","family":"Abhang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Komal Madhukar","family":"Dhule","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Darshan","family":"Mali","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2025,4,1]]},"reference":[{"key":"ref1","doi-asserted-by":"publisher","first-page":"107250","DOI":"10.1016\/j.cie.2021.107250","article-title":"Aquila optimizer: a novel metaheuristic optimization algorithm","volume":"157","author":"Abualigah","year":"2021","journal-title":"Comput. Ind. Eng."},{"key":"ref2","doi-asserted-by":"publisher","first-page":"3358182","DOI":"10.1109\/ACCESS.2024.3358182","article-title":"Short-term load forecasting in smart grids using hybrid deep learning","volume":"12","author":"Asiri","year":"2024","journal-title":"IEEE Access"},{"key":"ref3","author":"Bache","year":"2012"},{"key":"ref4","doi-asserted-by":"publisher","first-page":"49738","DOI":"10.1109\/CSCloud-EdgeCom49738.2020.00047","article-title":"Research on load forecasting method of distribution transformer based on deep learning","volume":"2020","author":"Chen","year":"2020","journal-title":"IEEE CSCloud EdgeCom"},{"key":"ref5","doi-asserted-by":"publisher","first-page":"012025","DOI":"10.1088\/1742-6596\/2465\/1\/012025","article-title":"Two-layer optimization of energy efficiency based on provincial smart energy service platform","volume":"2465","author":"Cheng","year":"2023","journal-title":"J. Phys. Conf. Ser."},{"key":"ref6","author":"Choudhary","year":"2023"},{"key":"ref7","doi-asserted-by":"publisher","first-page":"100709","DOI":"10.1016\/j.suscom.2022.100709","article-title":"Intelligent energy management for micro-grid based on deep learning LSTM prediction model and fuzzy decision-making","volume":"36","author":"El Bourakadi","year":"2022","journal-title":"Sustain. Comput. Inform. Syst."},{"key":"ref8","doi-asserted-by":"publisher","first-page":"012056","DOI":"10.1088\/1755-1315\/621\/1\/012056","article-title":"Internet-of-things-assisted smart grid applications in industry 4.0","volume":"621","author":"Jinglei","year":"2021","journal-title":"IOP Conf. Ser. Earth Environ. Sci."},{"key":"ref9","doi-asserted-by":"publisher","first-page":"9847769","DOI":"10.1109\/CONIT55038.2022.9847769","article-title":"Deep neural network based forecasting of short-term solar photovoltaic power output","volume":"2022","author":"Jogunuri","year":"2022","journal-title":"IEEE Int. Conf. Emerg. Trends Inform. Technol. Eng."},{"key":"ref10","doi-asserted-by":"publisher","first-page":"72","DOI":"10.1016\/j.energy.2019.05.230","article-title":"Predicting residential energy consumption using CNN\u2013LSTM neural networks","volume":"182","author":"Kim","year":"2019","journal-title":"Energy"},{"key":"ref11","doi-asserted-by":"publisher","first-page":"743","DOI":"10.1109\/CERA59325.2023.10455743","article-title":"TFT-powered PV production forecasting: a multivariate approach for long, medium, and short terms","volume":"2023","author":"Kumar","year":"2023","journal-title":"IEEE Conf. Energy Res. Appl."},{"key":"ref12","doi-asserted-by":"publisher","first-page":"15055","DOI":"10.3390\/su152015055","article-title":"Review of machine learning techniques for power quality performance evaluation in grid-connected systems","volume":"15","author":"Kuppusamy","year":"2023","journal-title":"Sustain. For."},{"key":"ref13","doi-asserted-by":"publisher","first-page":"110886","DOI":"10.1016\/J.ENBUILD.2021.110886","article-title":"A building energy consumption prediction model based on rough set theory and deep learning algorithms","volume":"238","author":"Lei","year":"2021","journal-title":"Energ. Buildings"},{"key":"ref14","author":"Lim","year":"2019"},{"key":"ref15","doi-asserted-by":"publisher","first-page":"6788668","DOI":"10.1155\/2022\/6788668","article-title":"Application of improved deep learning method in intelligent power system","volume":"2022","author":"Liu","year":"2022","journal-title":"Int. Trans. Electr. Energy Syst."},{"key":"ref16","doi-asserted-by":"publisher","first-page":"03008","DOI":"10.1051\/e3sconf\/202454003008","article-title":"AI-controlled wind turbine systems: integrating IoT and machine learning for smart grids","volume":"540","author":"Madeswaran","year":"2024","journal-title":"E3S Web Conf."},{"key":"ref17","doi-asserted-by":"publisher","first-page":"8105","DOI":"10.3390\/en16248105","article-title":"Forecasting of solar power using GRU\u2013temporal fusion transformer model and DILATE loss function","volume":"16","author":"Mazen","year":"2023","journal-title":"Energies"},{"key":"ref18","doi-asserted-by":"publisher","first-page":"6161","DOI":"10.3390\/en14196161","article-title":"Efficient energy management based on convolutional long short-term memory network for smart power distribution system","volume":"14","author":"Mohammad","year":"2021","journal-title":"Energies"},{"key":"ref19","doi-asserted-by":"publisher","first-page":"1524","DOI":"10.3390\/su15021524","article-title":"Wild horse optimization with deep learning-driven short-term load forecasting scheme for smart grids","volume":"15","author":"Motwakel","year":"2023","journal-title":"Sustain. For."},{"key":"ref20","doi-asserted-by":"publisher","first-page":"6840","DOI":"10.3390\/s23156840","article-title":"Transformers for energy forecast","volume":"23","author":"Oliveira","year":"2023","journal-title":"Sensors"},{"key":"ref21","doi-asserted-by":"publisher","first-page":"3060870","DOI":"10.1109\/TII.2021.3060870","article-title":"Unbundling smart meter services through spatiotemporal decomposition agents in DER-rich environments","volume":"17","author":"Qin","year":"2021","journal-title":"IEEE Trans. Industr. Inform."},{"key":"ref22","author":"Rajabi","year":"2019"},{"key":"ref23","author":"Rao","year":"2020"},{"key":"ref24","doi-asserted-by":"publisher","first-page":"3606","DOI":"10.21533\/pen.v11i3.3606","article-title":"Enhancing smart home energy efficiency through accurate load prediction using deep convolutional neural networks","volume":"11","author":"Saber","year":"2023","journal-title":"Period. Eng. Nat. Sci."},{"key":"ref25","doi-asserted-by":"publisher","first-page":"247","DOI":"10.3390\/en14010247","article-title":"Estimating energy forecasting uncertainty for reliable AI autonomous smart grid design","volume":"14","author":"Selim","year":"2021","journal-title":"Energies"},{"key":"ref26","doi-asserted-by":"publisher","first-page":"9312710","DOI":"10.1109\/ACCESS.2021.3071654","article-title":"Deep learning-based short-term load forecasting approach in smart grid with clustering and consumption pattern recognition","volume":"9","author":"Syed","year":"2021","journal-title":"IEEE Access"},{"key":"ref27","doi-asserted-by":"publisher","first-page":"6673","DOI":"10.1007\/s00521-021-06773-2","article-title":"A deep LSTM network for the Spanish electricity consumption forecasting","volume":"34","author":"Torres","year":"2022","journal-title":"Neural Comput. & Applic."},{"key":"ref28","doi-asserted-by":"publisher","first-page":"123369","DOI":"10.1109\/ACCESS.2019.2963045","article-title":"Short-term prediction of residential power energy consumption via CNN and multi-layer bi-directional LSTM networks","volume":"8","author":"Ullah","year":"2019","journal-title":"IEEE Access"},{"key":"ref29","doi-asserted-by":"publisher","first-page":"106054","DOI":"10.1016\/j.ijepes.2020.106054","article-title":"Deep learning loss model for large-scale low voltage smart grids","volume":"121","author":"Velasco","year":"2020","journal-title":"Int. J. Electr. Power Energy Syst."},{"key":"ref30","doi-asserted-by":"publisher","first-page":"113315","DOI":"10.1016\/j.apenergy.2019.113315","article-title":"A comparison of day-ahead photovoltaic power forecasting models based on deep learning neural network","volume":"251","author":"Wang","year":"2019","journal-title":"Appl. Energy"},{"key":"ref31","doi-asserted-by":"publisher","first-page":"1353312","DOI":"10.3389\/fenrg.2024.1353312","article-title":"Energy cost forecasting and financial strategy optimization in smart grids via ensemble algorithm","volume":"12","author":"Yang","year":"2024","journal-title":"Front. Energy Res."},{"key":"ref32","doi-asserted-by":"publisher","first-page":"1672","DOI":"10.3390\/en17071672","article-title":"Toward prediction of energy consumption peaks and timestamping in commercial supermarkets using deep learning","volume":"17","author":"Zhao","year":"2024","journal-title":"Energies"}],"container-title":["Frontiers in Artificial Intelligence"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1542320\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,4,1]],"date-time":"2025-04-01T06:36:27Z","timestamp":1743489387000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1542320\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,4,1]]},"references-count":32,"alternative-id":["10.3389\/frai.2025.1542320"],"URL":"https:\/\/doi.org\/10.3389\/frai.2025.1542320","relation":{},"ISSN":["2624-8212"],"issn-type":[{"value":"2624-8212","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,4,1]]},"article-number":"1542320"}}