Skip to main content

Advertisement

Log in

Electrical energy recovery from wastewater: prediction with machine learning algorithms

  • Applications of Emerging Green Technologies for Efficient Valorization of Agro-Industrial Waste: A Roadmap Towards Sustainable Environment and Circular Economy
  • Published:
Environmental Science and Pollution Research Aims and scope Submit manuscript

A Correction to this article was published on 31 December 2022

This article has been updated

Abstract

Wind, solar, biomass, tidal, etc. are renewable energy sources obtained from natural sources. Among these resources, biomass can be characterized as a significant energy source. Today, the process of producing biogas from waste and turning it into electrical energy has become more popular. So, clean, sustainable, and eco-friendly energy is generated as the waste is managed and converted into electrical energy. The estimation of the electrical energy that will be produced by wastewater recovery using machine learning (ML) algorithms is vital and has not yet been investigated. Thus, this study fills this gap. In this study, it is aimed to predict the electrical energy recovery potential of the sewage sludge of Kahramanmaraş Advanced Biological Wastewater Treatment Plant (KABWWTP) (Turkey), through incineration and anaerobic digestion. For this aim, 6 distinct ML algorithms including linear regression (LR), extreme gradient boosting (XGB), Gaussian process regression (GPR), ridge regression (RR), Lasso regression (LASReg), and Bayesian ridge regression (BR) have been used. Another novelty in this study is the restricted number of input parameters. That is, the electrical energy (output parameter) is predicted using only 3 distinct input parameters (gas flow, conductivity, and TSS). With a MAPE value of 1.032, the XGB method has been determined as the most successful model. Heat mapping and correlation analyses are used to evaluate the relationship between these parameters. Performance results are presented in tables and graphs.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

Change history

Abbreviations

ADB:

Adaptive boosting algorithm

ANFIS:

Adaptive neuro-fuzzy inference system

ANN:

Artificial neural network

BG:

Bagging algorithm

BR:

Bayesian ridge regression

COD:

Chemical oxygen demand

DCB:

Deep cascade-forward backpropagation,

DFB:

Deep feed-forward backpropagation

DNN:

Deep neural networks

DT:

Decision Tree

FFNN:

Feed-forward neural network

GA:

Genetic algorithm

GB:

Gradient boost algorithm

GBDT:

Gradient boost decision tree

GBT:

Gradient boosting trees

GPR:

Gaussian process regression

IFFNN:

Improved feed-forward neural network

KABWWTP:

Kahramanmaraş advanced biological wastewater treatment plant

KNN:

K-Nearest neighbors

LASReg:

Lasso regression

LightGBM:

Light gradient boosting

LR:

Linear regression

ML:

Machine learning

MLCM:

Machine learning cost modeling

MSLE:

Mean squared log error

M5P:

Reconstruction of Quinlan’s M5 algorithm

NSE:

Nash–Sutcliff efficiency

QUA:

Quantile regression neural network modeling

QTA:

Qualitative trend analysis

RAE:

Relative absolute error

RF:

Random forest

RNN:

Recurrent neural network

RR:

Ridge regression

SML:

Supervised machine learning

SVM:

Support vector machine

SVR:

Support vector regression

TF:

Traditional feed-forward

TSS:

Total suspended solids

VSS:

Volatile suspended solids

WWTP:

Wastewater treatment plant

XGB:

Extreme gradient boosting

References

  • Abedi R, Costache R, Shafizadeh-Moghadam H, Pham QB (2022) Flash-flood susceptibility mapping based on XGBoost, random forest and boosted regression trees. Geocarto Int 37(19):5479–5496

    Google Scholar 

  • Assaf AG, Tsionas M, Tasiopoulos A (2019) Diagnosing and correcting the effects of multicollinearity: Bayesian implications of ridge regression. Tour Manage 71:1–8

    Google Scholar 

  • Bagherzadeh F, Nouri AS, Mehrani MJ, Thennadil S (2021) Prediction of energy consumption and evaluation of affecting factors in a full-scale WWTP using a machine learning approach. Process Saf Environ Prot 154:458–466

    CAS  Google Scholar 

  • Bagherzadeh F, Mehrani MJ, Basirifard M, Roostaei J (2021) Comparative study on total nitrogen prediction in wastewater treatment plant and effect of various feature selection methods on machine learning algorithms performance. J Water Process Eng 41:102033

    Google Scholar 

  • Bernardelli A, Marsili-Libelli S, Manzini A, Stancari S, Tardini G, Montanari D, Venier S (2020) Real-time model predictive control of a wastewater treatment plant based on machine learning. Water Sci Technol 81(11):2391–2400

    CAS  Google Scholar 

  • Caceres E, Alca JJ (2016) Potential for energy recovery from a wastewater treatment plant. IEEE Lat Am Trans 14(7):3316–3321

    Google Scholar 

  • Ceylan Z (2021) The impact of COVID-19 on the electricity demand: a case study for Turkey. Int J Energy Res 45(9):13022–13039

    CAS  Google Scholar 

  • Chintalapudi N, Angeloni U, Battineni G, di Canio M, Marotta C, Rezza G, Amenta F (2022) LASSO regression modeling on prediction of medical terms among seafarers’ health documents using tidy text mining. Bioengineering 9(3):124

    Google Scholar 

  • Costache R, Arabameri A, Moayedi H, Pham QB, Santosh M, Nguyen H, Pham BT (2022) Flash-flood potential index estimation using fuzzy logic combined with deep learning neural network, naïve Bayes, XGBoost and classification and regression tree. Geocarto Int 37(23):6780–6807

    Google Scholar 

  • El-Rawy M, Abd-Ellah MK, Fathi H, Ahmed AKA (2021) Forecasting effluent and performance of wastewater treatment plant using different machine learning techniques. J Water Process Eng 44:102380

    Google Scholar 

  • Granata F, de Marinis G (2017) Machine learning methods for wastewater hydraulics. Flow Meas Instrum 57:1–9

    Google Scholar 

  • Gu Y, Li Y, Li X, Luo P, Wang H, Robinson ZP, Li F (2017) The feasibility and challenges of energy self-sufficient wastewater treatment plants. Appl Energy 204:1463–1475

    Google Scholar 

  • Guo H, Jeong K, Lim J, Jo J, Kim YM, Park JP, Cho KH (2015) Prediction of effluent concentration in a wastewater treatment plant using machine learning models. J Environ Sci 32:90–101

    CAS  Google Scholar 

  • Hao X, Li J, van Loosdrecht MC, Jiang H, Liu R (2019) Energy recovery from wastewater: heat over organics. Water Res 161:74–77

    CAS  Google Scholar 

  • Hayes AF, Montoya AK (2017) A tutorial on testing, visualizing, and probing an interaction involving a multicategorical variable in linear regression analysis. Commun Methods Meas 11(1):1–30

    Google Scholar 

  • Hoerl AE, Kennard RW, Hoerl RW (1985) Practical use of ridge regression: a challenge met. J Roy Stat Soc: Ser C (appl Stat) 34(2):114–120

    Google Scholar 

  • Icke O, van Es DM, de Koning MF, Wuister JJG, Ng J, Phua KM, Tao G (2020) Performance improvement of wastewater treatment processes by application of machine learning. Water Sci Technol 82(12):2671–2680

    CAS  Google Scholar 

  • Kabeyi MJB, Olanrewaju OA (2022) Biogas production and applications in the sustainable energy transition. J Energy 2022

  • KASKİ (2022) General Directorate of Kahramanmaras Water and Sewerage Administration. https://www.maraskaski.gov.tr/icerik/detay.aspx?Id=498. Accessed 06 September 2022

  • Kerem A (2022) Investigation of carbon footprint effect of renewable power plants regarding energy production: a case study of a city in Turkey. J Air Waste Manag Assoc 72(3):294–307

    Google Scholar 

  • Kerem A, Kirbaş İ (2021) Multi-step forward forecasting of electrical power generation in lignite-fired thermal power plant. Mühendislik Bilimleri Ve Tasarım Dergisi 9(1):1–13

    Google Scholar 

  • Kerem A, Yazgan A (2022) Design and prototyping of GSM-bluetooth based solar energy remote monitoring system. COMPEL Int J Comput Math Electr Electron Eng 41(4):1072–1083

    Google Scholar 

  • Kerem A, Saygin A, Rahmani R (2022) A green energy research: Forecasting of wind power for a cleaner environment using robust hybrid metaheuristic model. Environ Sci Pollut Res 29(34):50998–51010

    Google Scholar 

  • Kirbaş İ, Kerem A (2016) Short-term wind speed prediction based on artificial neural network models. Measure Control 49(6):183–190

    Google Scholar 

  • Kumar S, Attri SD, Singh KK (2019) Comparison of Lasso and stepwise regression technique for wheat yield prediction. J Agrometeorol 21(2):188–192

    Google Scholar 

  • Mehrani MJ, Bagherzadeh F, Zheng M, Kowal P, Sobotka D, Mąkinia J (2022) Application of a hybrid mechanistic/machine learning model for prediction of nitrous oxide (N2O) production in a nitrifying sequencing batch reactor. Process Saf Environ Prot 162:1015–1024

    CAS  Google Scholar 

  • Mishra S, Panigrahi CK, Kothari DP (2016) Design and simulation of a solar–wind–biogas hybrid system architecture using HOMER in India. Int J Ambient Energy 37(2):184–191

    CAS  Google Scholar 

  • MW (2022) MathWorks. https://www.mathworks.com/help/stats/gaussian-process-regression-models.html. Accessed 8 September 2022

  • Pérez-Montalvo E, Zapata-Velásquez ME, Benitez-Vazquez LM, Cermeno-Gonzalez JM, Alejandro-Miranda J, Martinez-Cabero MA, de la Puente-Gil Á (2022) Model of monthly electricity consumption of healthcare buildings based on climatological variables using PCA and linear regression. Energy Rep 8:250–258

    Google Scholar 

  • Qambar AS, Al Khalidy MM (2022) Optimizing dissolved oxygen requirement & energy consumption in wastewater treatment plant aeration tanks using machine learning. J Water Process Eng 50:103237

  • Schulz E, Speekenbrink M, Krause A (2018) A tutorial on Gaussian process regression: modelling, exploring, and exploiting functions. J Math Psychol 85:1–16

    Google Scholar 

  • Singh V, Phuleria HC, Chandel MK (2020) Estimation of energy recovery potential of sewage sludge in India: waste to watt approach. J Clean Prod 276:122538

    Google Scholar 

  • SL (2022) Scikit-Learn. https://scikit-learn.org/0.16/modules/linear_model.html#bayesian-ridge-regression. Accessed 11 September 2022

  • Sundui B, Ramirez Calderon OA, Abdeldayem OM, Lázaro-Gil J, Rene ER, Sambuu U (2021) Applications of machine learning algorithms for biological wastewater treatment: updates and perspectives. Clean Technol Environ Policy 23(1):127–143

    CAS  Google Scholar 

  • Taylor SJ, Letham B (2018) Forecasting at scale. Am Stat 72(1):37–45

    Google Scholar 

  • Thao NTT, Hieu TT, Thao NTP, Vi LQ, Schnitzer H, Son LT, Hai LT (2022) An economic–environmental–energy efficiency analysis for optimizing organic waste treatment of a livestock-orchard system: a case in the Mekong Delta, Vietnam. Energy Sustain Soc 12(1):1–15

    Google Scholar 

  • Tibshirani R (1996) Regression shrinkage and selection via the lasso. J Roy Stat Soc: Ser B (methodol) 58(1):267–288

    Google Scholar 

  • Tipping ME (2001) Sparse Bayesian learning and the relevance vector machine. J Mach Learn Res 1(Jun):211–244

    Google Scholar 

  • Torregrossa D, Leopold U, Hernández-Sancho F, Hansen J (2018) Machine learning for energy cost modelling in wastewater treatment plants. J Environ Manage 223:1061–1067

    Google Scholar 

  • Tsiakiri EP, Mpougali A, Lemonidis I, Tzenos CA, Kalamaras SD, Kotsopoulos TA, Samaras P (2021) Estimation of energy recovery potential from primary residues of four municipal wastewater treatment plants. Sustainability 13(13):7198

    CAS  Google Scholar 

  • TWB (2022) The World Bank. https://www.worldbank.org/en/topic/water/publication/wastewater-initiative. Accessed 7 September 2022

  • Velimirović LZ, Janković R, Velimirović JD, Janjić A (2021) Wastewater plant reliability prediction using the machine learning classification algorithms. Symmetry 13(8):1518

    Google Scholar 

  • Wan X, Li X, Wang X, Yi X, Zhao Y, He X, Huang M (2022) Water quality prediction model using Gaussian process regression based on deep learning for carbon neutrality in papermaking wastewater treatment system. Environ Res 211:112942

    CAS  Google Scholar 

  • Wang D, Thunéll S, Lindberg U, Jiang L, Trygg J, Tysklind M (2022) Towards better process management in wastewater treatment plants: process analytics based on SHAP values for tree-based machine learning methods. J Environ Manage 301:113941

    CAS  Google Scholar 

  • Wang R, Yu Y, Chen Y, Pan Z, Li X, Tan Z, Zhang J (2022) Model construction and application for effluent prediction in wastewater treatment plant: data processing method optimization and process parameters integration. J Environ Manage 302:114020

    CAS  Google Scholar 

  • Xie LP, Tao LI, Gao JD, Fei XN, Xia WU, Jiang YG (2010) Effect of moisture content in sewage sludge on air gasification. J Fuel Chem Technol 38(5):615–620

    CAS  Google Scholar 

  • Xie Y, Chen Y, Lian Q, Yin H, Peng J, Sheng M, Wang Y (2022) Enhancing real-time prediction of effluent water quality of wastewater treatment plant based on improved feedforward neural network coupled with optimization algorithm. Water 14(7):1053

    CAS  Google Scholar 

  • Yamaka W, Phadkantha R, Rakpho P (2021) Economic and energy impacts on greenhouse gas emissions: a case study of China and the USA. Energy Rep 7:240–247

    Google Scholar 

  • Zaghloul MS, Achari G (2022) Application of machine learning techniques to model a full-scale wastewater treatment plant with biological nutrient removal. J Environ Chem Eng 10(3):107430

    CAS  Google Scholar 

  • Zhang S, Wang H, Keller AA (2021) Novel machine learning-based energy consumption model of wastewater treatment plants. ACS ES&T Water 1(12):2531–2540

    CAS  Google Scholar 

  • Zhang K, Li J, Zheng Z, Zhang J, Sun M, Huang S (2022) Analyzing the sludge characteristics and microbial communities of biofilm and activated sludge in the partial nitrification/anammox process. J Water Process Eng 46:102618

    Google Scholar 

Download references

Acknowledgements

The authors thank the General Directorate of Kahramanmaraş Water and Sewerage Administration (KASKİ) (Turkey) for their cooperation in obtaining and using these data.

Author information

Authors and Affiliations

Authors

Contributions

AK: idea, methodology, editing, software, supervision. EY: data gathering, investigation, software, methodology, writing—original draft preparation. All the authors read and approved the final manuscript.

Corresponding author

Correspondence to Alper Kerem.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Responsible Editor: Philippe Garrigues

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

In the nomenclature, ACO: Ant colony optimization" and "PSO: Particle swarm optimisation" should be removed. Introduction section, at last paragraph the text "the 4 parameters" should be changed to "the 3 parameters". The year in Qambar and Al Khalidy reference should be 2022.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kerem, A., Yuce, E. Electrical energy recovery from wastewater: prediction with machine learning algorithms. Environ Sci Pollut Res 30, 125019–125032 (2023). https://doi.org/10.1007/s11356-022-24482-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11356-022-24482-8

Keywords

Navigation