From Prediction to Sustainability: AI for Smart Energy Management in Wastewater Treatment Plants

preprint OA: closed CC-BY-4.0
📄 Open PDF Full text JSON View at publisher

Abstract

Abstract Accurate energy prediction is vital in optimizing operations and self-consumption and ensuring sustainability goals in wastewater treatment plants (WWTPs) and environmental applications. Self- consumption refers to the proportion of energy produced locally that is used on-site to meet energy demands. To anticipate energy generation and consumption, this paper compares and evaluates the performance of Machine Learning (ML) techniques for energy self-consumption, including long- term memory (LSTM), support vector machines (SVM), recurring neural networks (RNN), gated recurrent unit (GRU), and XGBoost, to forecast energy generation (EG) and energy consumption (EC) in WWTPs. The performance of each model is evaluated using metrics such as mean absolute error (MAE), mean absolute percentage error (MAPE), and root mean square error (RMSE) using a solid dataset of daily operating records. The findings show that GRU achieves the highest performance with RMSE of 0.102, MAE of 0.085, and R² of 0.978, followed by LSTM, GRU, and RNN, showcasing reliable temporal prediction capabilities, as well as these models driving energy efficiency and reducing operational costs in WWTPs. This paper highlights actionable insight into adopting ML for sustainable energy management in WWTPs, transforming energy forecasting, improving energy self-consumption, and establishing the framework for increasing WWTP’s operational efficiency and environmental sustainability.
Full text 15,909 characters · extracted from preprint-html · click to expand
From Prediction to Sustainability: AI for Smart Energy Management in Wastewater Treatment Plants | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Article From Prediction to Sustainability: AI for Smart Energy Management in Wastewater Treatment Plants Saeed Hamood Alsamhi, Ammar Hawbani, Niall O’Brolchain, Mohammed A. A. Al-qaness, and 5 more This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-7274115/v1 This work is licensed under a CC BY 4.0 License Status: Published Journal Publication published 16 Dec, 2025 Read the published version in Scientific Reports → Version 1 posted 13 You are reading this latest preprint version Abstract Accurate energy prediction is vital in optimizing operations and self-consumption and ensuring sustainability goals in wastewater treatment plants (WWTPs) and environmental applications. Self- consumption refers to the proportion of energy produced locally that is used on-site to meet energy demands. To anticipate energy generation and consumption, this paper compares and evaluates the performance of Machine Learning (ML) techniques for energy self-consumption, including long- term memory (LSTM), support vector machines (SVM), recurring neural networks (RNN), gated recurrent unit (GRU), and XGBoost, to forecast energy generation (EG) and energy consumption (EC) in WWTPs. The performance of each model is evaluated using metrics such as mean absolute error (MAE), mean absolute percentage error (MAPE), and root mean square error (RMSE) using a solid dataset of daily operating records. The findings show that GRU achieves the highest performance with RMSE of 0.102, MAE of 0.085, and R² of 0.978, followed by LSTM, GRU, and RNN, showcasing reliable temporal prediction capabilities, as well as these models driving energy efficiency and reducing operational costs in WWTPs. This paper highlights actionable insight into adopting ML for sustainable energy management in WWTPs, transforming energy forecasting, improving energy self-consumption, and establishing the framework for increasing WWTP’s operational efficiency and environmental sustainability. Physical sciences/Energy science and technology Physical sciences/Engineering Earth and environmental sciences/Environmental sciences Physical sciences/Mathematics and computing Energy generation Energy consumption Self-consumption Wastewater treatment plants Sustainability transforming energy forecasting Deep learning Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Published Journal Publication published 16 Dec, 2025 Read the published version in Scientific Reports → Version 1 posted Editorial decision: Revision requested 13 Oct, 2025 Reviews received at journal 10 Oct, 2025 Reviews received at journal 06 Oct, 2025 Reviewers agreed at journal 06 Oct, 2025 Reviewers agreed at journal 06 Oct, 2025 Reviewers agreed at journal 05 Oct, 2025 Reviewers agreed at journal 04 Oct, 2025 Reviewers agreed at journal 04 Oct, 2025 Reviewers invited by journal 02 Sep, 2025 Editor assigned by journal 02 Sep, 2025 Editor invited by journal 20 Aug, 2025 Submission checks completed at journal 13 Aug, 2025 First submitted to journal 13 Aug, 2025 You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-7274115","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Article","associatedPublications":[],"authors":[{"id":511473957,"identity":"659e4507-0035-4d3a-8e14-501edc82e2be","order_by":0,"name":"Saeed Hamood Alsamhi","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABQ0lEQVRIie2Qv0rDUBSHTwkky3mAW5TeVzil4J8lvsoNFzK1Lh0MKLYgtJPkBYJ9hUxxTQmkg5klkyQInSrNZkEQb62DiUE6Cubjwr0/uB+/wwFoaPirIMChunQQDgPQ1GMfBXdK8qWE8Jn3UFoT2P39TeHTaJ6twEQ+fbCz/O7knE+Nx+cCzM4xv80zcJ7McVmhxJZdDyRSMrgnK2BDivCCQpC904nRI0iGsqpA/+gAQUOCQcCUYvka2mz+Hlp+rOusNRGyOpi7fn1DGCF3X9R/j1mzG6WEEI6UYmxqFEj7uoYQIaTblrE6kRFvFUGqRS1EmBWD0mWv7dECKVUtIlaDRaizBGTXj22NiUSIH4PJvFg5lx3uDoL25uramrmLJXPA5BTFraJwxFntqqmU8FtUFVZlY3UYWSnWtzQ0NDT8Iz4A/MhtSrmA+iIAAAAASUVORK5CYII=","orcid":"","institution":"University of Galway","correspondingAuthor":true,"prefix":"","firstName":"Saeed","middleName":"Hamood","lastName":"Alsamhi","suffix":""},{"id":511473958,"identity":"4fc29d6a-b6d4-4a9d-b051-2601b805575f","order_by":1,"name":"Ammar Hawbani","email":"","orcid":"","institution":"IBB University","correspondingAuthor":false,"prefix":"","firstName":"Ammar","middleName":"","lastName":"Hawbani","suffix":""},{"id":511473959,"identity":"24ca2b1d-653c-4374-b202-83fc40e88c3e","order_by":2,"name":"Niall O’Brolchain","email":"","orcid":"","institution":"University of Galway","correspondingAuthor":false,"prefix":"","firstName":"Niall","middleName":"","lastName":"O’Brolchain","suffix":""},{"id":511473960,"identity":"1b7240a6-d070-49fd-9d2c-923a77d4c01d","order_by":3,"name":"Mohammed A. A. Al-qaness","email":"","orcid":"","institution":"Zhejiang Normal University","correspondingAuthor":false,"prefix":"","firstName":"Mohammed","middleName":"A. A.","lastName":"Al-qaness","suffix":""},{"id":511473961,"identity":"e2408e3c-3844-49e4-995e-4e5487e7b297","order_by":4,"name":"Liang Zhao","email":"","orcid":"","institution":"IBB University","correspondingAuthor":false,"prefix":"","firstName":"Liang","middleName":"","lastName":"Zhao","suffix":""},{"id":511473962,"identity":"c7b99881-9075-4cd4-ad3f-cc32a1dc73c0","order_by":5,"name":"Ahmed Al-Dubai","email":"","orcid":"","institution":"Edinburgh Napier University","correspondingAuthor":false,"prefix":"","firstName":"Ahmed","middleName":"","lastName":"Al-Dubai","suffix":""},{"id":511473963,"identity":"88528a1e-3078-49c3-8e5e-8f22f5676350","order_by":6,"name":"Mamoona Asghar","email":"","orcid":"","institution":"University of Galway","correspondingAuthor":false,"prefix":"","firstName":"Mamoona","middleName":"","lastName":"Asghar","suffix":""},{"id":511473964,"identity":"889a5261-9d90-42aa-9ea1-7e9db0f0b7e6","order_by":7,"name":"Redhwan Algabri","email":"","orcid":"","institution":"Sejong University","correspondingAuthor":false,"prefix":"","firstName":"Redhwan","middleName":"","lastName":"Algabri","suffix":""},{"id":511473965,"identity":"eb805b48-ced5-4c8a-928e-e3a7d66ed1c6","order_by":8,"name":"Mohsen Guizani","email":"","orcid":"","institution":"Mohamed Bin Zayed University of Artificial Intelligence (MBZUAI)","correspondingAuthor":false,"prefix":"","firstName":"Mohsen","middleName":"","lastName":"Guizani","suffix":""}],"badges":[],"createdAt":"2025-08-01 20:08:10","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-7274115/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-7274115/v1","draftVersion":[],"editorialEvents":[{"content":"https://doi.org/10.1038/s41598-025-28281-2","type":"published","date":"2025-12-16T15:57:54+00:00"}],"editorialNote":"","failedWorkflow":false,"files":[{"id":98813966,"identity":"81209d9a-9630-4f85-b6ff-1257ee435c0e","added_by":"auto","created_at":"2025-12-22 16:08:40","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":934644,"visible":true,"origin":"","legend":"","description":"","filename":"Self13.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7274115/v1_covered_8f8dfed8-0e7e-42c3-8a38-6eae6a615de7.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"From Prediction to Sustainability: AI for Smart Energy Management in Wastewater Treatment Plants","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":true,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"scientific-reports","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"scirep","sideBox":"Learn more about [Scientific Reports](http://www.nature.com/srep/)","snPcode":"","submissionUrl":"","title":"Scientific Reports","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Scientific Reports","inReviewEnabled":true,"inReviewRevisionsEnabled":true},"keywords":"Energy generation, Energy consumption, Self-consumption, Wastewater treatment plants, Sustainability, transforming energy forecasting, Deep learning","lastPublishedDoi":"10.21203/rs.3.rs-7274115/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-7274115/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eAccurate energy prediction is vital in optimizing operations and self-consumption and ensuring sustainability goals in wastewater treatment plants (WWTPs) and environmental applications. Self- consumption refers to the proportion of energy produced locally that is used on-site to meet energy demands. To anticipate energy generation and consumption, this paper compares and evaluates the performance of Machine Learning (ML) techniques for energy self-consumption, including long- term memory (LSTM), support vector machines (SVM), recurring neural networks (RNN), gated recurrent unit (GRU), and XGBoost, to forecast energy generation (EG) and energy consumption (EC) in WWTPs. The performance of each model is evaluated using metrics such as mean absolute error (MAE), mean absolute percentage error (MAPE), and root mean square error (RMSE) using a solid dataset of daily operating records. The findings show that GRU achieves the highest performance with RMSE of 0.102, MAE of 0.085, and R\u0026sup2; of 0.978, followed by LSTM, GRU, and RNN, showcasing reliable temporal prediction capabilities, as well as these models driving energy efficiency and reducing operational costs in WWTPs. This paper highlights actionable insight into adopting ML for sustainable energy management in WWTPs, transforming energy forecasting, improving energy self-consumption, and establishing the framework for increasing WWTP\u0026rsquo;s operational efficiency and environmental sustainability.\u003c/p\u003e","manuscriptTitle":"From Prediction to Sustainability: AI for Smart Energy Management in Wastewater Treatment Plants","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-09-09 14:49:26","doi":"10.21203/rs.3.rs-7274115/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"decision","content":"Revision requested","date":"2025-10-13T06:29:27+00:00","index":"","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2025-10-10T07:47:00+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2025-10-06T12:37:50+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"129816485317662989959039035934299434680","date":"2025-10-06T12:33:04+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"99108869055194031554576432882893866184","date":"2025-10-06T12:09:29+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"59156564670792716711728366141998667028","date":"2025-10-05T08:43:17+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"181005861766431792741864060445375857337","date":"2025-10-04T14:49:26+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"251510936267321585569069985894591486980","date":"2025-10-04T11:51:23+00:00","index":"hide","fulltext":""},{"type":"reviewersInvited","content":"","date":"2025-09-02T23:30:29+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2025-09-02T23:20:40+00:00","index":"","fulltext":""},{"type":"editorInvited","content":"","date":"2025-08-20T04:57:20+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2025-08-13T19:47:27+00:00","index":"","fulltext":""},{"type":"submitted","content":"Scientific Reports","date":"2025-08-13T19:44:13+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"scientific-reports","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"scirep","sideBox":"Learn more about [Scientific Reports](http://www.nature.com/srep/)","snPcode":"","submissionUrl":"","title":"Scientific Reports","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Scientific Reports","inReviewEnabled":true,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"802bb0a7-7eb6-4396-a037-46b850752a9b","owner":[],"postedDate":"September 9th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"published-in-journal","subjectAreas":[{"id":54322537,"name":"Physical sciences/Energy science and technology"},{"id":54322538,"name":"Physical sciences/Engineering"},{"id":54322539,"name":"Earth and environmental sciences/Environmental sciences"},{"id":54322540,"name":"Physical sciences/Mathematics and computing"}],"tags":[],"updatedAt":"2025-12-22T16:01:41+00:00","versionOfRecord":{"articleIdentity":"rs-7274115","link":"https://doi.org/10.1038/s41598-025-28281-2","journal":{"identity":"scientific-reports","isVorOnly":false,"title":"Scientific Reports"},"publishedOn":"2025-12-16 15:57:54","publishedOnDateReadable":"December 16th, 2025"},"versionCreatedAt":"2025-09-09 14:49:26","video":"","vorDoi":"10.1038/s41598-025-28281-2","vorDoiUrl":"https://doi.org/10.1038/s41598-025-28281-2","workflowStages":[]},"version":"v1","identity":"rs-7274115","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-7274115","identity":"rs-7274115","version":["v1"]},"buildId":"XKTyCvWXoU3ODBz1xrDgd","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-22T02:00:06.705733+00:00
License: CC-BY-4.0