Next Article in Journal
Forecasting Climate Change Impacts on Water Security Using HEC-HMS: A Case Study of Angat Dam in the Philippines
Previous Article in Journal
Enrichment Strategies for Enhanced Food Waste Hydrolysis in Acidogenic Leach Bed Reactors
Previous Article in Special Issue
AI-Driven Anomaly Detection in Smart Water Metering Systems Using Ensemble Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on the Denitrification Efficiency of Anammox Sludge Based on Machine Vision and Machine Learning

1
Institute of Agricultural Bio-Environmental Engineering, College of Bio-Systems Engineering and Food Science, Zhejiang University, Hangzhou 310058, China
2
Department of Environmental Engineering, College of Environmental & Resource Sciences, Zhejiang University, Hangzhou 310058, China
3
Zhejiang Province Key Laboratory for Water Pollution Control and Environmental Safety, Hangzhou 310058, China
4
The Rural Development Academy, Zhejiang University, Hangzhou 310058, China
*
Author to whom correspondence should be addressed.
Water 2025, 17(14), 2084; https://doi.org/10.3390/w17142084
Submission received: 18 May 2025 / Revised: 4 July 2025 / Accepted: 10 July 2025 / Published: 12 July 2025
(This article belongs to the Special Issue AI, Machine Learning and Digital Twin Applications in Water)

Abstract

This study combines machine vision technology and deep learning models to rapidly assess the activity of anaerobic ammonium oxidation (Anammox) granular sludge. As a highly efficient nitrogen removal technology for wastewater treatment, the Anammox process has been widely applied globally due to its energy-saving and environmentally friendly features. However, existing sludge activity monitoring methods are inefficient, costly, and difficult to implement in real-time. In this study, we collected and enhanced 1000 images of Anammox granular sludge, extracted color features, and used machine learning and deep learning training methods such as XGBoost and the ResNet50d neural network to construct multiple models of sludge image color and sludge denitrification efficiency. The experimental results show that the ResNet50d-based neural network model performed the best, with a coefficient of determination (R2) of 0.984 and a mean squared error (MSE) of 523.38, significantly better than traditional machine learning models (with R2 up to 0.952). Additionally, the experiment demonstrated that under a nitrogen load of 2.22 kg-N/(m3·d), the specific activity of Anammox granular sludge reached its highest value of 470.1 mg-N/(g-VSS·d), with further increases in nitrogen load inhibiting sludge activity. This research provides an efficient and cost-effective solution for online monitoring of the Anammox process and has the potential to drive the digital transformation of the wastewater treatment industry.

1. Introduction

As the main cause of eutrophication in water bodies, nitrogen (ammonia nitrogen and total nitrogen) is a key regulatory parameter in sewage treatment. The traditional biological denitrification of sewage relies on nitrification and denitrification processes, which require significant energy input for aeration and external carbon sources. In the 1990s, the discovery of anaerobic ammonium oxidation (Anammox) revolutionized our understanding of the natural nitrogen cycle. Anammox is a biological reaction driven by anaerobic ammonia-oxidizing bacteria (AnAOB) that converts ammonia and nitrous acid into nitrogen gas [1]. Anammox has become widely recognized as the most cost-effective biological denitrification technology, achieving a 60% reduction in aeration, complete elimination of carbon source requirements, and an 80% decrease in residual sludge production [2]. It has been implemented across over 200 projects worldwide. The Anammox process has become an economically efficient and low-carbon advanced technology for upgrading wastewater treatment processes [3].
AnAOB grows slowly and is sensitive to changes in environmental conditions. In actual sewage treatment, the water quality and quantity can exhibit significant fluctuations, often containing toxic substances such as salt, organic matter, and heavy metals, which can strongly interfere with the metabolic activity of AnAOB and easily cause system performance instability or even collapse [4]. In addition, AnAOB often exists in the form of biological aggregates, and its natural tendency for self-immobilization limits the adaptive capacity of functional bacterial communities to keep pace with changing environmental conditions, requiring a long duration to reach stability. Therefore, compared to traditional denitrification processes, the stable operation of the Anammox process requires more stringent monitoring and control measures [5].
From the perspective of process control, the sewage treatment process exhibits characteristics like nonlinearity, uncertainty, strong interference, and strong coupling [6]. Traditional control technologies such as feedforward, feedback, and proportional integral derivative (PID) are commonly used in urban sewage treatment plants in China [7]. The controller structure parameters are fixed, exhibiting poor adaptability, and the control system accuracy is low, resulting in inefficient sewage treatment operation and frequent exceedance of effluent quality standards. In addition, process control relies heavily on the input of key water quality parameters, and currently, the core water quality indicators related to biochemical performance in sewage treatment plants remain challenging to acquire. Most of these indicators depend on offline laboratory testing methods, the capabilities of laboratory equipment, and the expertise of technical personnel, with long testing cycles (several hours to several days). However, the existing online detection instruments are expensive, have high maintenance costs, and are significantly impacted by solid suspended/sediment in water, resulting in a low practical application rate. A literature review conducted on 14 existing Anammox production facilities showed that pH and dissolved oxygen (DO) are still the main online monitoring indicators [6]. The nitrogen concentration in water bodies detected offline is only the final product of the complex microbial community’s multiple biochemical metabolic pathways within the system and cannot directly characterize the Anammox activity of sludge. At present, the Anammox process still lacks intuitive and effective activity monitoring indicators.
AnAOB exhibits a unique red color due to the presence of high concentrations of cytochrome c (Cyt c) protein in its cells. The image of Anammox granular sludge is shown in Figure 1. In Anammox reactors, AnAOB often exists in the form of biological aggregates such as granular sludge, and during the operation of the reactor, Anammox granular sludge exhibits different colors (gray-black, brown-yellow, deep red, etc.) [8]. Our team’s previous research demonstrated that the color of Anammox granular sludge is closely related to its activity [9]. Among them, the content of reduced Cyt c serves as a key mediator in correlating color and activity. Color is a direct visual indicator for humans, which can be measured rapidly and non-destructively, and has been used in many fields for biological monitoring. Therefore, the color of Anammox granular sludge holds the potential as an effective indicator for monitoring its activity.
Machine vision technology primarily involves simulating human visual functions through computers and imaging devices, extracting useful feature information from objective images, processing, analyzing, and understanding it, and ultimately applying it to detection, measurement, and control [10]. With the rapid development of sensors, microscopy technology, and image recognition algorithms, machine vision technology has been successfully applied in fields such as transportation, healthcare, and security, and its range of applications continues to broaden [11]. In the field of wastewater treatment research, machine vision has found applications in activated sludge systems. Mesquita et al. used image processing and other methods to extract morphological features of sludge to characterize its biomass (MLSS) and volume index (SVI), aiming to evaluate the abnormal swelling state of activated sludge systems [12]. Ginoris et al. employed image processing coupled with multivariate statistical analysis techniques to identify native and post-protozoa in activated sludge systems, to assess the operational performance of these systems [13]. In the field of food research, using machine vision systems to collect and quantitatively process and analyze images of fruits allows the extraction of color, shape, size, and texture features to accurately determine fruit quality levels [14]. Therefore, introducing machine vision technology to recognize the unique color characteristics of Anammox granular sludge has the potential to rapidly assess its activity status, thereby enabling the online monitoring of the Anammox process. However, no relevant studies have been reported in the literature so far.
Machine learning is a discipline focused on building mathematical models and algorithms that allow computers to recognize patterns, make predictions, or make decisions from large datasets without the need for explicit programming [15,16]. Machine learning has become a core technology in modern science and engineering, with applications spanning natural language processing, computer vision, medical diagnosis, financial prediction, and more. Its importance in data-driven decision-making and intelligent system development has become increasingly significant [17].
A neural network is a computational model inspired by the human brain’s nervous system [18]. The training process of neural networks involves learning the feature representation of input data by adjusting connection weights and modeling complex relationships through layer-by-layer transfer, weighted summation, activation functions, and other operations [19]. In recent years, with the continuous increase in data volume and the improvement of computing power, deep neural networks have received widespread attention as a powerful machine learning technology. Deep neural networks have achieved great success in fields such as image recognition [20], speech recognition, and natural language processing [21] and have outperformed human experts in many applications. With ongoing research and technological advancement, neural networks are pivotal in advancing the fields of artificial intelligence and machine learning [22]. However, as the number of layers in the neural network increases, the effects of gradient vanishing and exploding begin to emerge, manifested in the instability of the model’s accuracy. To address this issue, He et al. proposed residual neural networks by adding residual blocks between convolutional layers [23]. The Skip Connection within the residual block group can better transfer gradients, which helps train deeper networks, which enables ResNet to extract richer features through its deep network structure, thereby improving recognition accuracy.
The results of this study seek to offer novel insights into monitoring the Anammox process and facilitate the digitalization and intelligent transformation of the wastewater treatment sector.

2. Materials and Methods

2.1. Anammox Granular Sludge

The reactor inoculated sludge is taken from the short-range nitrification anaerobic ammonia oxidation denitrification device, with a designed treatment capacity of 8 t/d, ammonia nitrogen concentration of 140 mg/L, reaction tower volume of 1 m3, ammonia nitrogen removal rate of up to 88.9%, total nitrogen removal rate of over 82.7%, and volumetric load of approximately 4.9 kg-N/(m3·d). The concentration of suspended solids (SSs) in sludge is 28.88 g/L, and the concentration of volatile suspended solids (VSSs) is 26.22 g/L. Using simulated wastewater inflow, ammonia nitrogen and nitrite nitrogen are provided by (NH4)2SO4 and NaNO2, respectively, with a ratio of approximately 1:1.2. Unless otherwise specified, the chemical reagents used in this study were purchased from Sinopharm Chemical Reagent Co. Ltd., Shanghai, China.
According to the research results, the upper limit of nitrogen load in Anammox reactors generally does not exceed 20 kg-N/(m3·d), and most of them are below 10 kg-N/(m3·d); The lower limit is generally not less than 0.3 kg-N/(m3·d). Therefore, to cover the range of nitrogen load, this study operated 8 UASB (Up-flow Anaerobic Sludge Bed) reactors with different nitrogen loads by setting different hydraulic retention times. The operating and structural parameters of the reactors are detailed in the attachment. The Anammox granular sludge used in the experiment was taken from a UASB reactor operating in steady state.

2.2. Specific Activity Determination

We used serum bottle batch test to determine the specific activity of Anammox granular sludge. We weighed 1 g of wet sludge, washed it three times with 0.1 M phosphate buffer solution (pH = 7.5), and transferred it to a serum bottle. The volume of serum bottle was 50 mL, and the mother liquor was the same as the inlet formula of the reactor. Then, aeration with 95% Ar+5% CO2 was carried out for 10 min to remove oxygen from the headspace and solution, and it was sealed with a butyl rubber stopper and fixed with an aluminum cap. We set the initial concentrations of ammonia nitrogen and nitrite nitrogen to 50 mg N/L and 60 mg N/L. We placed the serum bottle on a shaker (150 rpm, 35 °C), took samples at 1 h intervals, passed them through a membrane (pore size 0.45 μm), and measured the concentrations of ammonia nitrogen, nitrite nitrogen, and nitrate nitrogen. After the sampling was completed, we opened the cap to detect the concentration of VSS in the serum bottle. We drew a time history curve of nitrogen concentration and used linear regression to fit the degradation rate of the substrate. The specific activity is calculated as the sum of the degradation rates of ammonia nitrogen, nitrite, and nitrate nitrogen per unit of VSS. Two parallel experiments are set for each group.

2.3. Transcriptional Activity Assay

We weighed 0.2 g of Anammox granular sludge and extracted total RNA using PNeasy PowerBiofilm Kit (Qiagen, Dusseldorf, Germany). We referred to the instructions of the RNA extraction kit for the extraction method. We used the PrimeScript RT reagent kit (Takara, Tokyo, Japan) for RNA reverse transcription and followed the instructions in the kit for the reverse transcription process. The abundance of hzsA gene in cDNA obtained by reverse transcription was determined using fluorescence quantitative PCR (qPCR) technology. We used a 25 μL amplification system, including 12.5 μL Ex Taq enzyme premix (Takara, Japan), 9.5 μL deionized water, 1 μL template DNA, 1 μL pre-primer, and 1 μL post-primer. The primer sequences used are shown in the attached table. The CFX Connect quantitative PCR instrument (Bio-Rad, Hercules, CA, USA) was used for quantitative PCR analysis. The melting curve obtained by SYBR Green method amplification was used to characterize the specificity of primers, and the recombinant plasmid ten-fold dilution method was used to construct a quantitative PCR standard curve. The amplification efficiency is 90% to 100%, and the R2 values for line fitting are all greater than 0.98. Three replicates were set for the sample.

2.4. Image Acquisition and Image Data Processing

The entire image acquisition process is completed in a darkroom. An electron microscope camera (Gaopin, Kunshan, China) was utilized to capture images of Anammox granular sludge. Two to four Anammox particles were placed in a clean culture dish. Clean test strips were employed to absorb surface moisture, and the samples were then placed in a dark room. Using a uniform brightness bar light source (HIKVISION, Hangzhou, China) as the background light source to eliminate the influence of external lighting conditions. The electron microscope camera was focused until the image was clear, and specialized software(S-EYE 1.4.3.479), which is provided by the manufacturer of electron microscope cameras, was used to capture images of the Anammox granular sludge. Forty to fifty portions of Anammox particles were taken from each UASB reactor, capturing approximately 1000 images of Anammox particle sludge from three different angles for each portion.
A substantial dataset is crucial for obtaining robust machine learning results, and collecting only 1000 images is insufficient to train a comprehensive machine learning model. Therefore, data augmentation techniques were employed to address this issue. Six data augmentation techniques were employed: (1) horizontal flipping, (2) vertical flipping, (3) center symmetry processing, (4) horizontal flipping and Gaussian blur, (5) vertical flipping and motion blur, and (6) center symmetry processing with Gaussian noise.
The highlight areas of Anammox granular sludge images were detected after data augmentation, followed by image restoration and enhancement methods to process the highlight areas and remove reflective parts in the image. Foreground and background in the images were detected and distinguished, and image segmentation algorithms were used to remove irrelevant backgrounds. The background-segmented images were converted from RGB to HSV. The pixel values of the entire HSV image were traversed, weighted, and averaged based on their morphological features to obtain the mean pixel values of the H, S, and V channels. The images were proportionally scaled to 224 × 224 pixels for machine learning training. The original sludge image, the background segmented sludge image and the HSV image of sludge are shown in Figure 2

2.5. Machine Learning

The H, S, and V values of each Anammox granular sludge image were used as independent variables, and the specific activity of the corresponding Anammox granular samples was the dependent variable. Machine learning training was conducted using three mathematical models: polynomial regression, random forest, and XGBOOST.
Polynomial regression was applied to the data, and the optimal training result was determined by comparing the predicted outcomes with actual results on the test set, adjusting parameters such as R2 and MSE. It was found that the optimal performance was achieved when the polynomial degree was 3, with an R2 of approximately 0.91.
Due to the limited number of samples relative to active data in this experiment, the random forest algorithm was considered for regression to reduce the risk of overfitting. Random forest regression was performed using 5-fold cross-validation to evaluate the training results, with R2 and MSE as performance metrics. Hyperparameters of the random forest were iteratively adjusted, and the optimal results were obtained when the number of decision trees was 47 and the maximum depth was 17, achieving an R2 of 0.898.
Given the suboptimal performance of traditional random forests, the XGBOOST algorithm was employed for gradient boosting optimization of the model. XGBOOST was applied to integrate random forest decision trees, utilizing five-fold cross-validation and evaluating performance using metrics such as R2 and MSE. After multiple adjustments to account for the impact of XGBOOST hyperparameters on training outcomes, it was determined that the best performance was achieved with 50 decision trees, a maximum depth of 5, and a learning rate of 0.22, resulting in an R2 of 0.928.
Given the suboptimal performance of the three methods, the Stacking algorithm was employed to integrate polynomial, random forest, and XGBOOST algorithms, enhancing the training results. The above algorithms served as primary learners, and to mitigate overfitting, a simple linear regression model was employed as the secondary learner. The primary learners were trained using the training set, and the predicted values from these trained primary learners were used as input for training the secondary learner. Five-fold cross-validation was utilized to evaluate the training outcomes, and the hyperparameters of the primary learners were adjusted based on the cross-validation results. Following multiple training iterations, the model with the best R2 and MAE values was selected as the final machine learning model.

2.6. Deep Learning

In this study, the ResNet50d neural network served as the main deep learning model. ResNet50d is an enhanced variant of the ResNet series, featuring a deeper network structure and more parameters. ResNet employs a deep residual structure to mitigate the gradient vanishing issue in deep neural network training, which facilitates the training of deeper networks and improves model performance. Although ResNet has a deep network structure, through the use of techniques like residual connections and global average pooling, the number of parameters in the model remains relatively small, helping to reduce the risk of overfitting.
To balance detection speed and accuracy, ResNet50 with a moderate depth was employed as the foundation. The neural network structure is shown in Figure 3. The residual function module replaces traditional convolution layers, and the ReLU activation function is applied within the residual function module. The input image consists of a 244 × 244 × 3 HSV three-channel image, and the output corresponds to the number of adaptive categories, facilitating both classification and regression tasks.
In this study, the MSE function was employed as the loss function. The MSE function is defined as follows:
Loss = 1 M i = 1 M Y i     Y ^ i 2
where Y ^ i is the predicted value of the model and Y i is the annotation value of the training set.
Deep learning is a data-driven approach, and training neural networks with extensive datasets can enhance the robustness of the model and reduce overfitting. However, in practice, the available training data is often limited, which may compromise model reliability, and the cost of obtaining data can be high. Additionally, training with large datasets may incur significant hardware and time costs. Using pretrained weights can effectively reduce training time and improve the generalization performance of the model. To enhance detection accuracy, pretrained weights from ImageNet were utilized to train our neural network, thereby improving the model’s robustness.

3. Results and Discussion

3.1. Anammox Granular Sludge Denitrification Activity Under Various Operating Conditions and Loads

Batch experiments were conducted to investigate the specific activity of Anammox granular sludge cultivated under various operating loads, and the results are shown in Figure 4. Anammox granular sludge cultivated under different nitrogen loads exhibits significant differences in specific activity. With the increase of nitrogen load, the specific activity of Anammox granular sludge shows a trend of first increasing and then decreasing. Among them, when the nitrogen load was 2.22 kg-N/(m3·d), the specific activity of Anammox granular sludge reached its maximum value of 470.1 mg-N/(g-VSS·d). Continuing to increase the nitrogen load inhibited the specific activity of the granular sludge.

3.2. Machine Learning Model Training Results

Polynomial regression was applied to the data, and the optimal training outcome was determined by comparing predicted results with actual values on the prediction set, adjusting parameters such as R2 and MSE. The best results were obtained when the polynomial degree was set to 3, with an R2 of approximately 0.91.
Random forest regression was employed based on specific activity, using five-fold cross-validation to evaluate training performance based on R2 and MSE metrics. The hyperparameters of the random forest were iteratively adjusted across multiple training sessions. The optimal performance was achieved when the number of decision trees was 47 and the maximum depth was 17, yielding an R2 of 0.898.
XGBOOST was applied to integrate random forest decision trees, using five-fold cross-validation to assess training performance with R2 and MSE as metrics. Considering the influence of XGBOOST hyperparameters on the training results, the optimal performance was achieved after multiple adjustments when the number of decision trees was set to 50, the maximum depth to 5, and the learning rate to 0.2, resulting in an R2 of 0.928.
The Stacking algorithm was employed to perform ensemble training on Anammox granular sludge images, and the test set data were simulated. The results are shown in Figure 5. The final evaluation metrics on the prediction set include an R2 value of 0.961 and an MAE of 12.33, and the linear regression of the scatter plot in Figure 5 follows the equation y = 0.994×, and the standard deviation is 3.86681. The Stacking algorithm ensemble model demonstrated robust performance on Anammox granular sludge images, exhibiting significant improvement compared to pre-ensemble results.

3.3. Training Results Based on Deep Learning

The Anammox granular sludge images, after data augmentation, were randomly partitioned into training and testing sets at a 4:1 ratio. A neural network based on ResNet50d was employed to train on the training set for 45 epochs. The changes in the loss function during the training process are shown in Figure 6, and the final results were recorded after the training stabilized. The final training results of the neural network model are shown in Table 1, yielding an MSE of 523.38 and an R2 of 0.984, indicating a significant improvement over traditional machine learning models. The neural network-based detection model was applied to the reserved validation set, and the detection results are shown in Figure 7. Compared to the results of machine learning, the deep learning-based detection model exhibited more consistent detection results, with high precision and accuracy. These results indicate that, compared to machine learning, deep learning methods can achieve better learning outcomes.
The final recognition model trained using neural networks was validated using real sludge sample detection, and the detection results are shown in Figure 8. The linear regression of the scatter plot in Figure 8 is y = 1.003×, and the standard deviation is 1.94436. Compared to machine learning models, the MSE, the MAE, and the standard deviation of the detection results from the neural network model are lower, with an R2 value closer to 1. Compared with Figure 6, Figure 8 has a narrower 95% confidence band and prediction band, which means that, compared to machine learning models, deep learning models have higher confidence in prediction results. Additionally, in comparison to machine learning models, deep learning models exhibit higher accuracy in predicting the validation set, with more stable predictions that are closer to the true values. Thus, compared to machine learning models, detection models developed through deep learning methods demonstrate greater reliability.

4. Conclusions

Introducing machine vision technology to recognize the unique color characteristics of Anammox granular sludge has the potential to rapidly assess its activity status, facilitating online monitoring of the Anammox process. To address the current challenges, an end-to-end detection approach was implemented, proposing a model that combines traditional machine learning methods with a ResNet50d neural network. In addition, given the limited availability of datasets related to granular sludge, a dataset comprising 1000 Anammox granular sludge images was developed for further research. Recognizing the data-driven nature of deep learning, data augmentation and transfer learning methods were utilized to enhance the model’s accuracy.
The experimental results show that the model proposed in this study effectively recognizes the unique color characteristics of Anammox granular sludge and establishes a reliable correlation between color characteristics and sludge activity, satisfying the requirements for real-time detection. Besides, the ResNet50d-based model outperforms traditional machine learning models in detection performance. The model based on the ResNet50d neural network in this study can effectively detect denitrification efficiency in real-time by recognizing the color characteristics of Anammox granular sludge. Compared to traditional detection methods, this study does not require tedious and time-consuming chemical experiments and only requires deployment in deep learning computing units and suitable machine vision systems. The model proposed in this study can be applied to laboratory or wastewater denitrification processes to perform real-time, rapid, and safe detection of Anammox particle denitrification efficiency without contact with chemicals.
However, current deep learning techniques heavily rely on datasets. Despite the use of data augmentation and transfer learning in this study to reduce dependency on datasets, the image dataset provided by the eight UASB reactors still affects the model’s generalization to some extent. In future research, a more comprehensive and complete dataset would facilitate a thorough and systematic investigation of the Anammox process using machine vision and machine learning technologies. Additionally, to further advance this research, it is necessary to deploy online models in actual wastewater treatment industrial facilities. Considering the requirements for industrialized models, some lightweight models and new network architectures, such as attention mechanisms that enable neural network models to adapt to highly complex working environments, can be considered, and their usability and accuracy compared.

Author Contributions

Conceptualization, D.X. and Y.H.; methodology, Y.H.; software, Y.H.; validation, Y.H., D.X. and S.G.; formal analysis, Y.H.; investigation, D.X.; resources, S.G.; data curation, Y.H.; writing—original draft preparation, Y.H.; writing—review and editing, D.X.; visualization, D.S.; supervision, M.Z.; project administration, Y.R.; funding acquisition, Y.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Zhejiang Science Foundation for Distinguished Young Scholars (LR22C190001).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

We also thank the reviewers for their insightful comments and suggestions.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AnammoxAnaerobic ammonium oxidation
AnAOBAnaerobic ammonia-oxidizing bacteria
AnGSAnammox granular sludge
UASBUp-flow Anaerobic Sludge Bed
MSEMean squared error
R2coefficient of determination
SVRSupport Vector Regression
MAEMean absolute error

References

  1. Wang, Y.-C.; Mao, Y.; Fu, H.-M.; Wang, J.; Weng, X.; Liu, Z.-H.; Xu, X.-W.; Yan, P.; Fang, F.; Guo, J.-S.; et al. New insights into functional divergence and adaptive evolution of uncultured bacteria in anammox community by complete genome-centric analysis. Sci. Total Environ. 2024, 924, 171530. [Google Scholar] [CrossRef] [PubMed]
  2. Zubair, M.; Wang, S.; Zhang, P.; Ye, J.; Liang, J.; Nabi, M.; Zhou, Z.; Tao, X.; Chen, N.; Sun, K.; et al. Biological nutrient removal and recovery from solid and liquid livestock manure: Recent advance and perspective. Bioresour. Technol. 2020, 301, 122823. [Google Scholar] [CrossRef] [PubMed]
  3. Ye, Y.; Zhang, K.; Peng, X.; Zhou, Q.; Pan, Z.; Xing, B.; Liu, X. Research Progress on Biological Denitrification Process in Wastewater Treatment. Water 2025, 17, 520. [Google Scholar] [CrossRef]
  4. Chen, Q.-Q.; Sun, F.-Q.; Guo, Q.; Shen, Y.-Y.; Zhu, W.-Q.; Jin, R.-C. Process stability in an anammox UASB reactor with individual and combined thiocyanate and hydraulic shocks. Sep. Purif. Technol. 2017, 173, 165–173. [Google Scholar] [CrossRef]
  5. Zhang, Q.; Xu, X.; Zhou, X.; Chen, C. Recent Advances in Autotrophic Biological Nitrogen Removal for Low Carbon Wastewater: A Review. Water 2022, 14, 1101. [Google Scholar] [CrossRef]
  6. Zhou, Y.; Zhu, Y.; Zhu, J.; Li, C.; Chen, G. A Comprehensive Review on Wastewater Nitrogen Removal and Its Recovery Processes. Int. J. Enivorn. Res. Public Health 2023, 20, 3429. [Google Scholar] [CrossRef]
  7. Wen, R.; Jin, Y.; Zhang, W. Application of the Anammox in China—A Review. Int. J. Enivorn. Res. Public Health 2020, 17, 1090. [Google Scholar] [CrossRef]
  8. Yang, Y.; Liu, S.; Liu, L.; Long, Y.; Wang, C.; Liu, C. Significance of Influent C/N Ratios in Mainstream Anammox Process: Nitrogen Removal and Microbial Dynamics. Water 2025, 17, 562. [Google Scholar] [CrossRef]
  9. Kang, D.; Lin, Q.; Xu, D.; Hu, Q.; Li, Y.; Ding, A.; Zhang, M.; Zheng, P. Color characterization of anammox granular sludge: Chromogenic substance, microbial succession and state indication. Sci. Total Environ. 2018, 642, 1320–1327. [Google Scholar] [CrossRef]
  10. Abbas, I.; Liu, J.; Faheem, M.; Noor, R.S.; Shaikh, S.A.; Solangi, K.A.; Raza, S.M. Different sensor based intelligent spraying systems in Agriculture. Sens. Actuators A Phys. 2020, 316, 112265. [Google Scholar] [CrossRef]
  11. Zhu, Y.; Ling, Z.; Zhang, Y. Research progress and prospect of machine vision technology. J. Graph. 2021, 41, 871–890. [Google Scholar]
  12. Mesquita, D.P.; Amaral, A.L.; Ferreira, E.C. Identifying different types of bulking in an activated sludge system through quantitative image analysis. Chemosphere 2011, 85, 643–652. [Google Scholar] [CrossRef] [PubMed]
  13. Ginoris, Y.P.; Amaral, A.L.; Nicolau, A.; Coelho, M.A.Z.; Ferreira, E.C. Development of an image analysis procedure for identifying protozoa and metazoa typical of activated sludge system. Water Res. 2007, 41, 2581–2589. [Google Scholar] [CrossRef] [PubMed]
  14. Olorunfemi, B.O.; Nwulu, N.I.; Adebo, O.A.; Kavadias, K.A. Advancements in machine visions for fruit sorting and grading: A bibliometric analysis, systematic review, and future research directions. J. Agric. Food Res. 2024, 16, 101154. [Google Scholar] [CrossRef]
  15. Liang, J.; Du, Y.; Xu, Y.; Xie, B.; Li, W.; Lu, Z.; Li, R.; Bal, H. Using Adaptive Chaotic Grey Wolf Optimization for the daily streamflow prediction. Expert Syst. Appl. 2024, 237, 121113. [Google Scholar] [CrossRef]
  16. Kumar, R.; Dubey, S.; Sen, D.; Mandal, S.K. A machine learning based approach for predicting Pool boiling heat transfer coefficient of CNT + GO nanoparticle coated surfaces. Int. Commun. Heat Mass Transf. 2024, 154, 107455. [Google Scholar] [CrossRef]
  17. Wu, C.; Jia, Y.; Barnes, D. Criteria system construction for sustainable supplier selection: A product-category-oriented intelligent model. Appl. Soft Comput. 2023, 145, 110586. [Google Scholar] [CrossRef]
  18. Pouyanfar, N.; Harofte, S.Z.; Soltani, M.; Siavashy, S.; Asadian, E.; Ghorbani-Bidkorbeh, F.; Keçili, R.; Hussain, C.M. Artificial intelligence-based microfluidic platforms for the sensitive detection of environmental pollutants: Recent advances and prospects. Trends Environ. Anal. Chem. 2022, 34, e00160. [Google Scholar] [CrossRef]
  19. Aldweesh, A.; Derhab, A.; Emam, A.Z. Deep learning approaches for anomaly-based intrusion detection systems: A survey, taxonomy, and open issues. Knowl.-Based Syst. 2020, 189, 105124. [Google Scholar] [CrossRef]
  20. Wani, N.A.; Kumar, R.; Mamta; Bedi, J.; Rida, I. Explainable AI-driven IoMT fusion: Unravelling techniques, opportunities, and challenges with Explainable AI in healthcare. Inf. Fusion 2024, 110, 102472. [Google Scholar] [CrossRef]
  21. Shaffiee Haghshenas, S.; Guido, G.; Vitale, A.; Astarita, V. Assessment of the level of road crash severity: Comparison of intelligence studies. Expert Syst. Appl. 2023, 234, 121118. [Google Scholar] [CrossRef]
  22. Xian, X.; Wu, T.; Qiao, S.; Wang, W.; Wang, C.; Liu, Y.; Xu, G. DeepEC: Adversarial attacks against graph structure prediction models. Neurocomputing 2021, 437, 168–185. [Google Scholar] [CrossRef]
  23. He, K.; Zhang, X.; Ren, S.; Sun, J.J.I. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016. [Google Scholar]
Figure 1. Anammox granular sludge.
Figure 1. Anammox granular sludge.
Water 17 02084 g001
Figure 2. Anammox granular sludge image (a), background segmented sludge image (b), and HSV image of sludge (c).
Figure 2. Anammox granular sludge image (a), background segmented sludge image (b), and HSV image of sludge (c).
Water 17 02084 g002
Figure 3. Detection neural network structure based on ResNet50.
Figure 3. Detection neural network structure based on ResNet50.
Water 17 02084 g003
Figure 4. Specific anammox activity (SAA) of Anammox granular sludge (AnGS) cultivated under different nitrogen loading rates (NLRs). The error bar shows the standard deviations.
Figure 4. Specific anammox activity (SAA) of Anammox granular sludge (AnGS) cultivated under different nitrogen loading rates (NLRs). The error bar shows the standard deviations.
Water 17 02084 g004
Figure 5. Prediction results of machine learning model.
Figure 5. Prediction results of machine learning model.
Water 17 02084 g005
Figure 6. Loss function during deep learning training process.
Figure 6. Loss function during deep learning training process.
Water 17 02084 g006
Figure 7. Stacking algorithm ensemble model and neural network training results under different denitrification efficiencies: (a) 154.6902; (b) 76.7286; (c) 97.5903; (d) 235.6904; (e) 327.7664; (f) 470.12; (g) 349.3064; (h) 415.4696.
Figure 7. Stacking algorithm ensemble model and neural network training results under different denitrification efficiencies: (a) 154.6902; (b) 76.7286; (c) 97.5903; (d) 235.6904; (e) 327.7664; (f) 470.12; (g) 349.3064; (h) 415.4696.
Water 17 02084 g007
Figure 8. Prediction results of neural network model.
Figure 8. Prediction results of neural network model.
Water 17 02084 g008
Table 1. Machine learning and deep learning training results.
Table 1. Machine learning and deep learning training results.
Machine Learning MethodsR2MSE/
(mg-N/(g-VSS·d))2
MAE/
mg-N/(g-VSS·d)
RMSE/
mg-N/(g-VSS·d)
SVR0.8660143230.21434.0958556.83497
XGBOOST0.952393797.793512.1560328.24524
Polynomial0.9334021421.04127.6956537.69669
Stacking0.967678676.006211.7412226.00012
Neural Network0.984635523.38239.29706822.87757
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hu, Y.; Xu, D.; Zhang, M.; Ge, S.; Shi, D.; Ruan, Y. Research on the Denitrification Efficiency of Anammox Sludge Based on Machine Vision and Machine Learning. Water 2025, 17, 2084. https://doi.org/10.3390/w17142084

AMA Style

Hu Y, Xu D, Zhang M, Ge S, Shi D, Ruan Y. Research on the Denitrification Efficiency of Anammox Sludge Based on Machine Vision and Machine Learning. Water. 2025; 17(14):2084. https://doi.org/10.3390/w17142084

Chicago/Turabian Style

Hu, Yiming, Dongdong Xu, Meng Zhang, Shihao Ge, Dongyu Shi, and Yunjie Ruan. 2025. "Research on the Denitrification Efficiency of Anammox Sludge Based on Machine Vision and Machine Learning" Water 17, no. 14: 2084. https://doi.org/10.3390/w17142084

APA Style

Hu, Y., Xu, D., Zhang, M., Ge, S., Shi, D., & Ruan, Y. (2025). Research on the Denitrification Efficiency of Anammox Sludge Based on Machine Vision and Machine Learning. Water, 17(14), 2084. https://doi.org/10.3390/w17142084

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop