Abstract
Effective control of wastewater treatment plant (WWTP) performance requires monitoring of key parameters that reflect biological process stability. Increasingly, next-generation sequencing (NGS) is used to characterize microbial communities involved in nitrogen removal; however, most studies focus on activated sludge (AS), often overlooking treated wastewater (TW), which also contains living microorganisms and may provide valuable diagnostic information. In this study, the microbiomes of raw sewage (RS), AS, and TW from a full-scale biological WWTP were compared across multiple taxonomic levels. The potential of TW as a predictive indicator of AS microbiome composition, with particular emphasis on nitrifying bacteria responsible for nitrogen removal, was evaluated. In addition, relationships between microbial communities at different treatment stages and environmental factors were analysed. The results indicate that data-driven approach can successfully model the abundance of specific AS nitrifying taxa based on TW data, achieving an R2 score of 0.9826 on the training dataset and maintaining a high predictive accuracy with an R2 above 0.9996 on the testing dataset. This study demonstrates the feasibility of utilizing TW microbiome data as a predictive proxy to infer the abundance dynamics of key nitrifying functional groups in AS via explainable machine learning. The proposed proof-of-concept introduces an explainable machine-learning-based approach to monitoring nitrogen-removing microbial functional groups, with potential to support WWTP operation and optimization.
Funding
This work was supported by the National Science Centre, Poland [2022/06/X/ST10/01775]. The APC is financed by Wrocław University of Environmental and Life Sciences.
Author information
Authors and Affiliations
Corresponding author
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 4.0 International License, which permits use, sharing, adaptation, 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 changes were made. 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/4.0/.
Reprints and permissions
About this article
Cite this article
Domańska, M., Stańczyk, J. & Gawor, J. Inferring nitrifying taxa abundance in activated sludge from treated wastewater: a data-driven approach.
Sci Rep (2026). https://doi.org/10.1038/s41598-026-72038-4
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-72038-4
Keywords
- Activated sludge
- Machine learning
- Microbial variability
- Monitoring
- Nitrification
- Treated wastewater
Source: Resources - nature.com

