in

Computational artificial intelligence modeling and optimization of nutrient removal in microalgae membrane bioreactors using ANN and RSM


Abstract

Biological based methods for wastewater treatment are preferred because of they are more economical and environmentally friendly. This work sought to predict microalgae membrane bioreactor (MBR) levels of ammonia nitrogen, phosphate concentration, and removal efficiency. Forecasting the values in the study using artificial neural network (ANN) modeling and response surface methodology (RSM). According to the data, the RSM model accurately estimates the effectiveness of phosphate, nitrogen, and ammonia removal. The R2 values of 0.9733 and 0.9608 help to justify the significant correlation between the predictions of the model and the removal efficiencies. The model uses time to predict the removal effectiveness of these contaminants, along with TOC content. Moreover, the performance metrics for ANN designs are R2 coefficient of determination of 0.99791, mean squared error (MSE) of 3.57E-02 for ammonia nitrogen, and R2 coefficient of determination of 0.99722 and MSE of 2.75E-02 for phosphate concentration. Nonetheless, variations between the actual data and the ANN’s predictions suggest possible limits in the model or experimental design. Furthermore, using RSM and NSGA-II in the optimization process demonstrated the model’s ability to accurately pinpoint the ideal circumstances for removing nutrients from the bioreactor.

Data availability

The authors declare that the data will be made available on reasonable request.

References

  1. Wang, L. et al. Bibliometric analysis and literature review of ultrasound-assisted degradation of organic pollutants. Sci. Total Environ. 876, 162551. https://doi.org/10.1016/j.scitotenv.2023.162551 (2023).

    Google Scholar 

  2. Zhang, Y., Jiang, H., Bian, K., Wang, H. & Wang, C. A critical review of control and removal strategies for microplastics from aquatic environments. J. Environ. Chem. Eng. 9 (4), 105463. https://doi.org/10.1016/j.jece.2021.105463 (2021).

    Google Scholar 

  3. Luo, D. et al. Phosphorus adsorption by functionalized biochar: A review. Environ. Chem. Lett. 21 (1), 497–524. https://doi.org/10.1007/s10311-022-01519-5 (2023).

    Google Scholar 

  4. He, Z. et al. Fabrication of a novel Hollow wood fiber membrane decorated with Halloysite and metal-organic frameworks nanoparticles for sustainable water treatment. Ind. Crops Prod. 202, 117082. https://doi.org/10.1016/j.indcrop.2023.117082 (2023).

    Google Scholar 

  5. Liu, H., Li, X., Zhang, X., Coulon, F. & Wang, C. Harnessing the power of natural minerals: A comprehensive review of their application as heterogeneous catalysts in advanced oxidation processes for organic pollutant degradation. Chemosphere 139404 https://doi.org/10.1016/j.chemosphere.2023.139404 (2023).

  6. Wang, L., Luo, D., Yang, J. & Wang, C. Metal-organic frameworks-derived catalysts for contaminant degradation in persulfate-based advanced oxidation processes. J. Clean. Prod. 134118 https://doi.org/10.1016/j.jclepro.2022.134118 (2022).

  7. Abinandan, S. & Shanthakumar, S. Challenges and opportunities in application of microalgae (Chlorophyta) for wastewater treatment: A review. Renew. Sustain. Energy Rev. 52, 123–132. https://doi.org/10.1016/j.rser.2015.07.086 (2015).

    Google Scholar 

  8. Bhushan, S., Simsek, H., Krishna, A., Sharma, S. & Prajapati, S. K. Remediation of domestic wastewater using algal-bacterial biotechnology. Appl. Microalgae Wastewater Treat. 1 Domest. Ind. Wastewater Treat. 269-289 https://doi.org/10.1007/978-3-030-13913-1_13 (2019).

  9. Khoo, K. S., Chia, W. Y., Chew, K. W. & Show, P. L. Microalgal-bacterial consortia as future prospect in wastewater bioremediation, environmental management and bioenergy production. Indian J. Microbiol. 61 (3), 262–269. https://doi.org/10.1007/s12088-021-00924-8 (2021).

    Google Scholar 

  10. Nagarajan, D. et al. Current advances in biological swine wastewater treatment using microalgae-based processes. Bioresour. Technol. 289, 121718. https://doi.org/10.1016/j.biortech.2019.121718 (2019).

    Google Scholar 

  11. Amini, E., Babaei, A., Mehrnia, M. R., Shayegan, J. & Safdari, M. S. Municipal wastewater treatment by semi-continuous and membrane algal-bacterial photo-bioreactors. J. Water Process. Eng. 36, 101274. https://doi.org/10.1016/j.jwpe.2020.101274 (2020).

    Google Scholar 

  12. Bis, M., Montusiewicz, A., Piotrowicz, A. & Łagód, G. Modeling of wastewater treatment processes in membrane bioreactors compared to conventional activated sludge systems. Processes 7 (5), 285. https://doi.org/10.3390/pr7050285 (2019).

    Google Scholar 

  13. Gurung, K., Ncibi, M. C., Fontmorin, J. M., Särkkä, H. & Sillanpää, M. Incorporating submerged MBR in conventional activated sludge process for municipal wastewater treatment: a feasibility and performance assessment. J. Membr. Sci. Technol. 6 (3). https://doi.org/10.4172/2155-9589.1000158 (2016).

  14. Amiri, M. K. et al. Multi-objective optimization of thermophysical properties GO powders-DW/EG Nf by RSM, NSGA-II, ANN, MLP and ML. Energy 128176 https://doi.org/10.1016/j.energy.2023.128176 (2023).

  15. Barzegar Gerdroodbary, M. Application of neural network on heat transfer enhancement of magnetohydrodynamic nanofluid. Heat Transfer—Asian Res. 49 (1), 197–212 (2020).

    Google Scholar 

  16. Zaferani, S. P. G. et al. Prediction and optimization of sustainable fuel cells behavior using artificial intelligence algorithms. Int. J. Hydrog. Energy. https://doi.org/10.1016/j.ijhydene.2023.03.335 (2023).

    Google Scholar 

  17. Dikmen, F. et al. AI-driven wastewater management through comparative analysis of feature selection techniques and predictive models. Sci. Rep. 15 (1), 25347. https://doi.org/10.1038/s41598-025-07124-0 (2025).

    Google Scholar 

  18. Jassim, M. S., Hammad, S. & Coskuner, G. AI-Driven optimization models for prediction of effluent quality parameters in a wastewater treatment plant. Process. Integr. Optim. Sustain. 1–17. https://doi.org/10.1007/s41660-025-00576-x (2025).

  19. Yang, S., Behzadian, K., Coleman, C., Holloway, T. G. & Campos, L. C. Application of AI-based techniques for anomaly management in wastewater treatment plants: A review. J. Environ. Manage. 392, 126886. https://doi.org/10.1016/j.jenvman.2025.126886 (2025).

    Google Scholar 

  20. Viet, N. D. & Jang, A. Development of artificial intelligence-based models for the prediction of filtration performance and membrane fouling in an osmotic membrane bioreactor. J. Environ. Chem. Eng. 9 (4), 105337. https://doi.org/10.1016/j.jece.2021.105337 (2021).

    Google Scholar 

  21. Mojiri, A. et al. Contaminant removal from wastewater by microalgal photobioreactors and modeling by artificial neural network. Water 14 (24), 4046. https://doi.org/10.3390/w14244046 (2022).

    Google Scholar 

  22. Taheri, E., Amin, M. M., Fatehizadeh, A., Rezakazemi, M. & Aminabhavi, T. M. Artificial intelligence modeling to predict transmembrane pressure in anaerobic membrane bioreactor-sequencing batch reactor during biohydrogen production. J. Environ. Manage. 292, 112759. https://doi.org/10.1016/j.jenvman.2021.112759 (2021).

    Google Scholar 

  23. Alipourzadeh, A., Mehrnia, M. R., Sani, A. H. & Babaei, A. Application of response surface methodology for investigation of membrane fouling behaviours in microalgal membrane bioreactor: the effect of aeration rate and biomass concentration. RSC Adv. 6 (112), 111182–111189. https://doi.org/10.1039/C6RA23188H (2016).

    Google Scholar 

  24. Sultana, N. et al. Experimental study and parameters optimization of microalgae based heavy metals removal process using a hybrid response surface methodology-crow search algorithm. Sci. Rep. 10 (1), 15068. https://doi.org/10.1038/s41598-020-72236-8 (2020).

    Google Scholar 

  25. Chen, Y. et al. Quantification of interfacial energies associated with membrane fouling in a membrane bioreactor by using BP and GRNN artificial neural networks. J. Colloid Interface Sci. 565, 1–10. https://doi.org/10.1016/j.jcis.2020.01.003 (2020).

    Google Scholar 

  26. Ding, Y. et al. Effect of different influent conditions on biomass production and nutrient removal by aeration microalgae membrane bioreactor (ICFB-MMBR) system for mariculture wastewater treatment. Membranes 11 (11), 874. https://doi.org/10.3390/membranes11110874 (2021).

    Google Scholar 

  27. Wang, T. & Li, Y. Y. Predictive modeling based on artificial neural networks for membrane fouling in a large pilot-scale anaerobic membrane bioreactor for treating real municipal wastewater. Sci. Total Environ. 169164 https://doi.org/10.1016/j.scitotenv.2023.169164 (2023).

  28. Amari, A., Elboughdiri, N., Said, E. A., Zahmatkesh, S. & Ni, B. J. Effects of CO2 concentration and time on algal biomass film, NO3–N concentration, and pH in the membrane bioreactor: Simulation-based ANN, RSM and NSGA-II. J. Environ. Manage. 351, 119761. https://doi.org/10.1016/j.jenvman.2023.119761 (2024).

    Google Scholar 

  29. Asrami, M. R., Pirouzi, A., Nosrati, M., Hajipour, A. & Zahmatkesh, S. Energy balance survey for the design and auto-thermal thermophilic aerobic digestion of algal-based membrane bioreactor for landfill leachate treatment (under organic loading rates): experimental and simulation-based ANN and NSGA-II. Chemosphere 347, 140652. https://doi.org/10.1016/j.chemosphere.2023.140652 (2024).

    Google Scholar 

  30. Montgomery, D. C. Experimental design for product and process design and development. J. Royal Stat. Soc. Ser. D: Stat. 48 (2), 159–177. https://doi.org/10.1111/1467-9884.00179 (1999).

    Google Scholar 

  31. Gunaraj, V. & Murugan, N. Application of response surface methodology for predicting weld bead quality in submerged Arc welding of pipes. J. Mater. Process. Technol. 88 (1–3), 266–275. https://doi.org/10.1016/S0924-0136(98)00405-1 (1999).

    Google Scholar 

  32. Sawyer, S. F. & 27E-38E. Analysis of variance: the fundamental concepts. J. Man. Manipulative Therapy 17 (2). https://doi.org/10.1179/jmt.2009.17.2.27E (2009).

  33. Mishra, S. & Datta-Gupta, A. Chap. 7—Experimental Design and Response Surface Analysis. In: Applied Statistical Modeling and Data Analytics. 169–193 (eds Mishra, S. & Datta-Gupta, A.) (Eds) (2018).

  34. Ncibi, K., Sadraoui, T., Faycel, M. & Djenina, A. A multilayer perceptron artificial neural networks based a preprocessing and hybrid optimization task for data mining and classification. Int. J. Econ. Finance Manage. Sci. 5 (1), 12–21. https://doi.org/10.12691/ijefm-5-1-3 (2017).

    Google Scholar 

  35. Doukim, C. A., Dargham, J. A. & Chekima, A. Finding the number of hidden neurons for an MLP neural network using coarse to fine search technique. In: 10th international conference on information science, signal processing and their applications (ISSPA 2010) 606–609. (IEEE, 2010).

  36. Schmidt-Hieber, J. Nonparametric regression using deep neural networks with ReLU activation function. https://doi.org/10.1214/19-AOS1875 (2020).

  37. Ying, X. An overview of overfitting and its solutions. In: Journal of physics: Conference series 022022. (IOP Publishing, 2019).

  38. Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I. & Salakhutdinov, R. Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res. 15 (1), 1929–1958 (2014).

    Google Scholar 

Download references

Funding

This work was supported and funded by the Deanship of Scientific Research at Imam Mohammad Ibn Saud Islamic University (IMSIU) (grant number IMSIU-DDRSP2603).

Author information

Authors and Affiliations

Authors

Contributions

Nadia Ghezaiel Hammouda; Study conception and design. Karim Kriaa; Data collection. Ahmed Mohsin Alsayah; Software. Husam Rajab; Validation. Narinderjit Singh Sawaran Singh; Visualization. Khalil Hajlaoui; Formal analysis. Walid Aich; Investigation. Mohammad Jadidi; Writing original draft.

Corresponding author

Correspondence to
Mohammad Jadidi.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note

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

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.

Reprints and permissions

About this article

Cite this article

Hammouda, N.G., Kriaa, K., Alsayah, A.M. et al. Computational artificial intelligence modeling and optimization of nutrient removal in microalgae membrane bioreactors using ANN and RSM.
Sci Rep (2026). https://doi.org/10.1038/s41598-025-34775-w

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1038/s41598-025-34775-w

Keywords

  • Membrane bioreactor
  • Phosphate
  • Wastewater and treatment
  • ANN


Source: Resources - nature.com

Climate change risk index and municipal bond disclosures of United States drinking water utilities

Climate change demands coordinated adaptation strategies of drinking water treatment

Back to Top