Figures
Abstract
The agricultural biomass addition on constructed wetlands (CWs) is a sustainable strategy that integrates pollution control with waste valorization. However, their widespread applications remain constrained by variations in biomass types, pretreatments, and system designs. This study combined meta-analysis and explainable machine learning to assess how agricultural biomass addition influences Chemical Oxygen Demand (COD) and Total Nitrogen (TN) removal in CWs, particularly under low C/N conditions, using 272 and 1,283 independent observations for meta-analysis and machine learning, respectively. Results showed that bamboo biochar significantly enhances COD removal efficiency in CWs by an average of 54.8% (SMD = 2.50), while lotus leaf biochar improves TN removal efficiency by 32.5% (SMD = 1.20) compared with controls. Additionally, multiple machine learning models were tested and the results showed that the XGBoost model demonstrated the robustperformance in simulating TN removal (R2 = 0.83), whereas the Random Forest model is effective for COD removal (R2 = 0.76). SHAP analysis further indicatedthat increasing wetland volume can simultaneously enhance both COD and TN removal efficiencies. This study underscores the power of combining meta-analysis and explainable machine learning to optimize CW design and management, offering a robust framework for improving pollution removal in CWs.
Citation: Li W, Wang J, Liu X, Zhuang Y, Fang H, Huang J (2026) Pollution removal efficiency enhancement by agricultural biomass additions in constructed wetlands: A framework integrating meta-analysis with explainable machine learning. PLoS One 21(7): e0353064. https://doi.org/10.1371/journal.pone.0353064
Editor: Sovik Das, Indian Institute of Technology Delhi, INDIA
Received: January 14, 2026; Accepted: June 18, 2026; Published: July 7, 2026
Copyright: © 2026 Li et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All data and author-generated code supporting the findings of this study are publicly available on GitHub at: https://github.com/leeeee-max/Plos-One.git. There are no restrictions on access.
Funding: This research was supported by the Natation Natural Science Foundation of China (Grant No.42376225). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Introduction
Constructed wetlands (CWs) are recognized as environmentally friendly and cost-effective natural water treatment systems [1,2]. They emulate the structure and function of natural wetlands by channeling wastewater through an integrated ecosystem composed of substrates, vegetation, fauna, and microbial communities [3]. Over the past two decades, CWs have been extensively employed worldwide, not only for municipal wastewater treatment but also for managing industrial and agricultural wastewater, landfill leachate, and stormwater runoff [4].
The resource-oriented utilization of rural waste in CWs represents a sustainable strategy for enhancing denitrification while addressing environmental challenges associated with agricultural residues. This approach supports the principles of the circular economy by transforming waste into value-added resources, thereby promoting ecological balance and reducing dependency on synthetic carbon sources. For example, Awasthi et al. [5] highlighted that the prevailing linear economic model of “take-make-dispose” has led to severe resource depletion and rural waste accumulation, underscoring the urgency of sustainable waste reuse. Among various biomass-based materials, biochar has attracted increasing attention because of its high porosity, large surface area, and cation-exchange capacity, which facilitate pollutant adsorption, microbial colonization, and contaminant degradation in CWs. Beyond wastewater treatment, biochar serves as an effective soil amendment, improving nutrient retention, microbial activity, and water-holding capacity, thus extending its value to broader environmental applications [6].
Agricultural biomass has emerged as a promising alternative to conventional carbon sources in CWs, simultaneously enhancing nitrogen removal efficiency and promoting rural waste valorization [7]. For example, Jia et al. [8] demonstrated that recycled agricultural biomass can serve as an effective and low-cost carbon source, improving nitrogen removal efficiency. Similarly, Li et al. [9] and Zhong et al. [10] reported that integrating rural biomass, such as corn straw or biochar, into CWs not only supports microbial denitrification but also contributes to resource recycling. Ajibade et al. [11] further observed that biochar-amended CWs significantly enhanced TN removal under low C/N conditions. Collectively, these findings highlight the feasibility and environmental benefits of integrating CW technology with rural waste valorization, aligning both ecological and economic goals within the circular economy framework.
Therefore, systematic and data-driven approaches to are crucially required to evaluate the role of agricultural waste as a carbon source for nitrogen removal in CWs. While traditional experimental designs are valuable, they are often limited in scalability, comparability, and reproducibility when applied to diverse waste types and wetland configurations. For example, Tao et al. [12] investigated the use of agricultural residues, such as reeds, as external carbon sources and observed enhanced denitrification efficiency in CWs treating low C/N wastewater. However, these studies are typically constrained by site-specific conditions and lack cross-study generalizability. Integrating existing research through meta-analysis and predictive modeling offers a promising solution for overcoming these challenges.
Meta-analysis involves the statistical integration of findings from individual studies on a unified scale and has been applied in research on CWs, providing a foundation for further research [13]. For instance, Yan et al. [14] used meta-analysis to assess the factors influencing trace organic contaminant removal in CWs and found that removal patterns correlated with CW conditions, with multiple parameters determining removal efficiency, suggesting the presence of universal patterns. Similarly, Jiang et al. [15] used a multi-level meta-analysis to evaluate the impact of biochar on greenhouse gas emissions in CWs, reporting significant effects on CO2 mitigation, though, not on CH4 and N2O emissions. However, these methods may not completely capture the complex interrelationships within datasets, potentially resulting in oversimplified interpretations. This limitation highlights the need for more advanced and robust analytical methodologies.
Artificial intelligence (AI), with its rapid and efficient data processing and analysis capabilities, emerges as a powerful tool for achieving carbon neutrality. Machine learning (ML), a key data-driven modeling technique within AI, excels at handling high-dimensional operational data to extract knowledge, optimize parameters, and mitigate environmental emissions [16,17]. Therefore, ML algorithms offer a promising avenue for predicting CW efficiency because they can learn from large obseravationsand uncover hidden patterns that may be overlooked by traditional modeling approaches [18]. For example, Nguyen et al. [19] successfully predicted the removal of ammonium nitrogen and BOD5 in CWs using ML models, including random forests (RFs), generalized linear models, and support vector machines. These approaches may still overlook intricate relationships within the data and lead to oversimplified interpretations, underscoring the need for more sophisticated analytical tools.
In this study, we propose an integrated framework that combines meta-analysis, ML, and SHapley Additive exPlanations (SHAP) to address these challenges, is summarized in Fig 1. The research objectives were threefold: (1) to quantify the effects of rural waste amendments on COD and TN removal in CWs via meta-analysis, (2) to identify key influencing factors and predict removal efficiency using ML integrated with SHAP analysis, and (3) to inform the optimization of rural waste applications and CW system design through integrated empirical and computational insights. This approach aims to leverage the strengths of each method, offering a more comprehensive and robust solution for enhancing CW performance and supporting sustainable environmental management.
Materials and methods
Literature search and data selection
The dataset on CW performance in treating wastewater with a low C/N ratio was compiled from peer-reviewed papers indexed in the Web of Science (https://www.webofscience.com/) on October 15, 2024. The search strategy employed the following keywords: ((TS=(constructed wetland)) OR (TS=(constructed wetlands)) AND (TS=(low CN)) OR (TS=(low CN ratio)). The time span was limited to the past 20 years. We initially retrieved 91 publications, which were then screened by title and abstract to exclude irrelevant studies. Subsequently, full texts of potentially relevant papers were retrieved and assessed for eligibility according to the following criteria: (1) inclusion of both treatment (agricultural biomass addition) and control (no agricultural biomass addition) groups, and (2) evaluation of the effect of CWs on wastewater treatment, specifically COD and TN removal. Details of the search terms and screening process are provided in SI Text A. After rigorous screening, 70 peer-reviewed publications were included in the meta-analysis, and 15 studies were selected for subsequent ML analysis, Specifically, a total of 272 independent observations were extracted from the 70 studies to construct the meta-analysis dataset. Subsequently, 1,283 high resolution observations were extracted from the 15 selected studies to build the machine learning dataset. A flowchart illustrating the screening process is shown in S1 Fig. This systematic approach ensured that the dataset was robust and representative for investigating the efficacy of CWs in treating low C/N ratio wastewater, in this study low C/N ratio is strictly defined as an influent C/N ratio less than 5.0, as this threshold significantly limits the microbial denitrification process due to carbon source deficiency.
Meta-analysis
In this study, we employed meta-analysis techniques to evaluate CW performance by focusing on the Normalized Loading Rate (NLR) per unit volume of wetland as a key assessment factor. To achieve this, we compared the NLR across different CW configurations and calculated the effect size to quantify the differences in treatment efficiency. From the screened studies, we extracted three key parameters for the NLR of COD and TN, including the mean NLR values, standard deviations (SD), and number of replicates (n). When standard errors were provided, SD was calculated using the appropriate conversion formula. To estimate the magnitude of the treatment effect, we used the Standardized Mean Difference (SMD) approach, following established methodology [20].
Furthermore, we conducted a K-means clustering analysis of wetland volumes to categorize them into five distinct clusters. K-means clustering was selected because of its simplicity, efficiency, and suitability for largeobservations. This clustering approach enabled the identification of patterns and grouping of similar wetland volumes, providing insights into the relationship between wetland size and treatment performance. The clustering process involved four steps: (1) Data preprocessing—standardizing wetland volume data to avoid bias from scale differences; (2) Determination of optimal clusters—using the elbow method to determine the optimal number of clusters, which was five; (3) Clustering execution—applying the K-means algorithm using the factoextra package in R version 4.1.3 (https://www.r-project.org/), which provided visualizations for interpretation; and (4) Cluster analysis—analyzing each cluster to characterize wetland volumes within each group and their corresponding NLR performance. Meta-analysis was conducted using the metafor package in R, while K-means clustering was performed using the factoextra package, ensuring a comprehensive and statistically robust approach.
Implementation of ML models
In this study, we employed four supervised ML models—RF [21], Boosting [22], Multi-Layer Perceptron (MLP), and Support Vector Regression (SVR) [18,23]. to simulate the complex relationships between operational parameters and the pollutant removal efficiencies(%) of TN and COD in CWs [24].
To ensure model reliability and prevent data leakage caused by the inherent autocorrelation of multiple observations extracted from the same primary study, we implemented a rigorous study-level grouped nested cross-validation framework. Before model training, data were normalized to address issues related to dimensional inconsistencies and unit differences, thereby enhancing the robustness of the modeling process. Specifically, a nested cross-validation structure was employed: the inner loop was strictly confined to hyperparameter tuning to minimize the root mean squared error (RMSE), while the outer loop was exclusively reserved for evaluating the optimized model on completely untouched hold-out sets. This grouped validation strategy ensures that the models are trained on a subset of studies and evaluated on entirely unseen studies, thereby providing a robust assessment of true external generalization and mitigating the risk of overfitting [25]. Model performance was rigorously evaluated during both calibration and validation phases to prevent overfitting, thereby enhancing the generalizability of the model, particularly with limited training datasets [21]. The caret package in R was utilized to streamline the training, tuning, and validation processes for both the regression and classification tasks, leveraging its integration with numerous ML models. This methodological framework provided a comprehensive and statistically robust approach to understanding the dynamic interactions between operational parameters and pollutant removal efficiency in CWs.
Model interpretation: ML modeling and SHAP analysis
The model evaluation metrics used in this study were the correlation coefficient (R2), mean squared error (MSE), and RMSE. R2 quantifies the goodness of fit between the dataset and the regression model, whereas MSE and RMSE, representing the standard deviation of the predicted errors, indicate the dispersion of data points around the regression line.
where is the predicted output value,
is the true value,
is the average observed value,
is the predicted value of the algorithm, and
is the number of observations.
Previous studies have often focused on achieving high prediction accuracy while neglecting the interpretability and explainability of the models [26]. Although accuracy metrics may be satisfactory, the lack of interpretability limits the potential insights that can be derived from model predictions. To address this gap, this study employed the SHAP framework, which is based on SHAP values from game theory [27]. SHAP quantifies the contribution of each feature to the prediction outcome and aggregates these contributions to explain the final model output [28]. This method has been widely adopted across various disciplines owing to its ability to provide transparent and interpretable explanations, thereby enhancing the understanding of complex predictive systems [29,30].
In this study, SHAP analysis was employed to provide a detailed interpretation of the predicted results for pollutant removal in CWs [31]. The process involved several steps [32]. Initially, a background distribution was constructed using the training dataset as a reference for evaluating model behavior and feature contributions. Subsequently, various feature coalitions were generated by considering all possible subsets of the selected parameters, including the wetland volume, COD influent concentration, aeration time, aeration rate, influent C/N ratio, TN or COD release from added rural waste, and hydraulic retention time (HRT). For each feature coalition, model predictions were assessed, and SHAP values were calculated. These values represent the average marginal contribution of each feature to model predictions across all possible feature combinations. This method enables a comprehensive understanding of how individual features, such as wetland volume and COD influent concentration, influence the output of the model regarding pollutant removal efficiency. By quantifying the impact of each parameter, SHAP analysis offers robust interpretability and explainability of the prediction results, thereby addressing the gap in previous research, where interpretability was often neglected despite achieving high predictive accuracy [33–35]. This approach not only enhances model transparency but also reveals model inferred feature importance and underlying data patterns associated with pollutant removal in CW systems, which is crucial for advancing the understanding and application of artificial wetland systems in environmental management and decision-making.
Since this study is based on a meta-analysis of previously published literature and computational machine learning modeling, and does not involve human participants or animal subjects, institutional ethical approval and informed consent were not required.
Results
Meta-analysis for the waste dataset
As shown in Fig 2A and B, the analysis of different biomass types revealed distinct patterns of effectiveness in COD and TN removal. Bamboo addition produced the greatest enhancement in COD removal, with an SMD of approximately 2.50, indicating a significantly higher contribution than that of the control group (CWs without bamboo addition). For TN removal, lotus leaves demonstrated the most pronounced effect, corresponding to an SMD of approximately 1.2. These SMD values not only quantify the relative performance of different biomass types but also highlight that TN removal efficiency is more responsive to agricultural biomass additions than COD removal. This finding aligns with those of previous experimental studies [36,37], thereby strengthening the credibility of the meta-analysis and underscoring its value in guiding the selection of optimal biomass types for CW applications.
(A) showing the COD removal effect by biomass type, (B) displaying the TN removal effect by biomass type.
This study also explored the influence of different pretreatment methods on the pollutant removal performance of agricultural biomass in CWs. For COD removal, physical pretreatment alone was the least effective approach, whereas the combined physical and chemical pretreatment achieved the highest removal efficiency. A similar pattern was observed for TN removal, where physical pretreatment again showed the least efficiency, while the combined method produced the highest efficiency. As illustrated in S1 Fig, these findings emphasize the importance of pretreatment in maximizing the pollutant removal potential of agricultural biomass. The SMD values linked to these pretreatment methods provide a robust quantitative basis for selecting the most effective pretreatment strategies, thereby enhancing the benefits of biomass addition in CWs, particularly when targeting specific pollutants, such as COD or TN.As shown in Fig 3A and B, wetland volume exerts complex impacts on COD and TN removal efficiencies in CWs. Wetland volume is a critical determinant of pollutant retention and treatment capacity, as larger systems provide more space for biomass and vegetation growth, both of which contribute to pollutant removal. However, the results indicate that increasing wetland volume beyond certain thresholds does not necessarily enhance pollutant removal efficiency. This may be attributed to the saturation of treatment media and microbial communities. When the wetland volume is excessively large, the additional space may not be effectively utilized, as the capacity of the media and microbial communities to degrade or adsorb pollutants can reach a saturation point. Therefore, the optimal wetland volume should be determined by considering both pollutant loading and operational efficiency of the wetland system.
(A) and (B) show the COD and TN removal effects by wetland volume, (C) and (D) illustrate the COD and TN removal effects by CW type.
As shown in Fig 3A and b, HRT exerts complex effects on COD and TN removal efficiencies in CWs. HRT is a critical parameter that influences the contact time between pollutants and treatment media, including biomass and wetland vegetation. A sufficient HRT ensures adequate microbial degradation and adsorption. However, the results indicate that merely extending HRT beyond certain thresholds does not guarantee an enhanced pollutant removal efficiency. This is likely due to the saturation of microbial communities and treatment media, where additional time does not proportionally increase the degradation or adsorption capacity [38,39]. Therefore, optimal HRT should balance contact time with the operational efficiency of the wetland system.
Regarding CW type, horizontal subsurface flow (HSF) wetlands demonstrate superior pollutant removal efficiency, particularly when augmented with external carbon sources (Fig 3C, D). HSF systems facilitate uniform distribution of wastewater through the media, enhancing the interaction between pollutants, biomass, and microbial communities. The horizontal flow pattern ensures more uniform contact with the treatment media, improving the utilization of external carbon sources and microbial activity across the wetland. This configuration is particularly advantageous for denitrification and organic matter degradation, which are crucial for efficient COD and TN removal. These findings underscore the importance of selecting both appropriate HRT and CW type to optimize the performance of CWs for pollutant removal.
Algorithm selection
This study employed several ML models to predict the COD removal efficiency of CWs. To coherently integrate the findings from the meta-analysis, the categorical variations in biomass types were quantitatively translated into continuous physical and chemical features, specifically ‘biochar COD release’ and ‘biochar TN release,’ allowing the ML models to capture the underlying material driven mechanisms. The input features included C/N ratio, wetland volume, HRT, aeration time, aeration rate, biochar COD release, biochar TN release, and influent COD concentration. These input features were selected based on the high relevance factors identified in a previous meta-analysis and findings of prior studies [40,41]. The output variable was the COD removal efficiency of CWs.
S2 Fig presents the scatter plots of actual versus predicted COD removal efficiencies for each model, with corresponding R2 values to quantify model performance. Fig 4A shows bar charts of MAE and RMSE for each model, providing a visual comparison of model accuracy. The scatter plots in S2 Fig reveal that the RF model exhibited the highest R2 value (0.76), demonstrating reliable prediction accuracy. The Lasso model recorded the lowest R2 value (0.29), indicating inadequate performance for capturing the intricate dynamics of COD removal in CWs. This discrepancy highlights the need for nonlinear models, such as MLP, RF, and SVR, to accurately predict COD removal efficiency. The bar charts in S2 Fig show that the Lasso model had the highest MAE (0.624) and RMSE (0.685), indicating poor predictive accuracy and reliability. This suggests that the relationship between the input features and COD removal efficiency is not adequately captured by a simple linear model. Conversely, the RF model demonstrated satisfactory performance, with an R2 of 0.76, MAE of 0.048, and RMSE of 0.075, indicating its reliable ability to model complex nonlinear relationships in the data.
(A) bar charts comparing the MAE and RMSE of different machine learning models in predicting COD removal efficiency (B) bar charts comparing the MAE and RMSE of different ML models in predicting TN removal efficiency.
Several ML models were employed to predict the TN removal efficiency of CWs. The input features were similar to those used in the COD removal efficiency prediction, except that the influent TN concentration was used instead of the influent COD concentration. S3 Fig presents scatter plots of actual versus predicted TN removal efficiencies for each model, with R2 values displayed in each subplot to quantify performance. It also shows bar charts of the MAE and RMSE for each model, offering a visual comparison of the model accuracy. The bar charts in Fig 4B indicate that the Lasso model again exhibits the highest MAE and RMSE, showing poor prediction accuracy and reliability. This finding reinforces the idea that the relationship between input features and TN removal efficiency is not adequately captured by a simple linear model. In contrast, the XGBoost model demonstrated effective mechanisms performance, with an R2 of0.82, MAE of0.018, and RMSE of0.024, indicating its satisfactoryability to model complex nonlinear relationships in the data. The scatter plots in S3 Fig further demonstrate the high accuracy of XGBoost, which consistently outperformed other models. Similar to the COD removal analysis, the Lasso model achieved the lowest R2, further underscoring its poor performance in capturing the intricate dynamics of TN removal in CWs. These findings highlight the necessity of employing nonlinear models, such as XGBoost, MLP, RF, and SVR, to accurately predict TN removal efficiency.
When comparing the overall performance of the models predicting TN removal efficiency and those predicting COD removal efficiency, the TN models consistently achieved higher prediction accuracy. The MAE and RMSE values for the TN models were generally lower than those for the COD models, indicating that the models were better at capturing nonlinear relationships in TN removal. This finding suggests that the input features might have a more defined and predictable relationship with TN removal than with COD removal, or that the TN removal process in CWs is more amenable to modeling with the selected features and algorithms. The reliableperformance of the XGBoost model in TN removal prediction, with its low MAE and RMSE, makes it the most suitable model for predicting TN removal efficiency in CWs. This finding underscores the importance of selecting appropriate models that can effectively handle data complexity and the nonlinear nature of the processes involved in pollutant removal in CWs.
Model interpretation by SHAP analysis
SHAP analysis was performed using the RF model, which was identified in a previous study as the optimal model for simulating COD removal efficiency in CWs. The bar chart illustrates the mean SHAP value for each feature, indicating its relative importance in the model as shown in Fig 5. Longer bars indicate a greater influence of the feature on the model's predictions. The three most influential factors were wetland volume, COD influent concentration, and aeration rate. This indicates that, while the addition of rural waste as an external carbon source does not significantly enhance COD removal efficiency, increasing aeration may be more beneficial for improving COD removal in CWs. These results align with those of previous studies, confirming the reliability of the findings.
Subfigure (A) illustrates the feature importance and SHAP value contribution for predicting COD removal efficiency using the Random Forest model, demonstrating the relative significance of various features through their mean SHAP values, while (B) presents the same for predicting TN removal efficiency using the XGBoost model, highlighting the key features influencing the model's predictions by displaying their respective SHAP values.
The scatter plot displays SHAP values against feature values, with a color gradient representing feature values. This visualization highlights how variations in feature values influence model predictions, revealing both the direction and magnitude of their impact on COD removal efficiency. These insights provide a valuable basis for optimizing CW operations to enhance COD removal.
Focusing on the scatter plot, wetland volume showed a positive correlation with COD removal efficiency, indicating that larger volumes generally contribute to higher removal rates. This is likely due to the increased surface area and longer HRT provided by larger wetlands, allowing for more extensive treatment processes. In contrast, TN influent concentration exhibited a negative correlation with COD removal efficiency. Higher TN concentrations may compete with COD for degradation pathways or reflect more complex wastewater compositions that are difficult to treat, suggesting that while TN itself is not directly removed in this context, its presence can influence COD removal dynamics. These detailed insights clarify how specific features drive model predictions and can inform strategies to optimize CW design and operation.
SHAP analysis revealed a predominantly positive correlation between aeration rate and COD removal efficiency. Higher aeration rates generally enhanced COD removal, as indicated by positive SHAP values associated with this feature. The scatter plot highlights an optimal range of aeration rates where COD removal efficiency is maximized. Beyond this range, further increases in aeration may not yield proportional improvements in COD removal and could lead to diminishing returns or even negative effects. The impact of aeration rate is also influenced by interactions with other features. For instance, higher aeration rates combined with sufficient wetland volume and appropriate C/N ratios create synergistic effects that further enhance COD removal efficiency.
The addition of biochar in CWs can effectively enhance COD removal efficiency. This improvement can be attributed to biochar’s porous structure and large specific surface area, which enable physical adsorption and filtration of organic matter in wastewater. Additionally, functional groups on the biochar surface can interact with organic matter through electrostatic attraction or repulsion and form hydrogen bonds with organic compounds. Biochar also provides a favorable habitat for microorganisms, promoting their growth and activity, which facilitates the biodegradation of organic matter.
SHAP analysis was conducted using the XGBoost model, which was identified in a previous study as the optimal model for simulating TN removal efficiency in CWs. The bar chart in the figure represents the mean SHAP value for each feature, indicating their relative importance in the model. The three most influential factors were the wetland volume, TN influent concentration, and TN release from the added carbon source. This highlights the important role of external carbon sources, such as biochar, in enhancing TN removal efficiency in CWs.
Focusing on the scatter plot, wetland volume showed a positive correlation with TN removal efficiency, suggesting that larger systems generally contribute to higher removal rates. This is likely due to the increased surface area and longer HRT provided by larger wetlands, allowing for more extensive treatment processes. For TN influent concentration, the scatter plot revealed a complex nonlinear relationship with TN removal efficiency. Higher TN concentrations may initially enhance removal rates because of increased microbial activity, however, may eventually saturate the system, leading to diminishing returns. The TN released from the added carbon source positively contributed to TN removal efficiency, suggesting that the addition of external carbon sources, such as biochar, provides additional adsorption sites and promotes microbial degradation of TN, thereby enhancing TN removal efficiency.
After adding biochar to CWs, TN removal efficiency exceeded that of COD. Specifically, certain bacteria are involved in the nitrification process, converting ammonia nitrogen into nitrate nitrogen, whereas others utilize organic carbon sources to reduce nitrate to nitrogen gas during the denitrification process. The introduced biochar provides an appropriate habitat along with sufficient organic carbon sources to support the growth and metabolic activities of these microorganisms, thereby enhancing TN removal. In contrast, COD removal predominantly depends on the adsorption and degradation of organic matter by the biochar and microorganisms. The complexity and variability of organic matter present in wastewater may result in a relatively lower COD removal efficiency than TN removal efficiency.
Discussion
Effectiveness of the proposed framework
This study proposes an integrated analytical framework that combines meta-analysisand interpretable ML to evaluate the influence of agricultural biomass addition on pollutant removal in CWs, while aligning data-driven feature insights with established ecological principles. Unlike previous CW studies that primarily focused on site-specific performance or single-factor optimization, this approach provides both predictive accuracy and mechanistic insight, supporting its application across diverse ecological and operational contexts.
As highlighted in the Introduction, traditional CW studies often suffer from site-specific limitations, limited reproducibility, and a lack of generalizable design principles [12]. Prior studies have demonstrated the predictive capacity of ML; for instance, ANN models achieved R2 values up to 0.835 for TN removal in low-OLR horizontal flow CWs [36], and SVM models reached an R2 of 0.736 for predicting total phosphorus removal in hybrid CWs under variable meteorological and hydraulic conditions [42]. However, these approaches typically focus on specific pollutant indicators and lack interpretability or integration across system components.
Recently, a literature-data-statistics framework was developed to identify the key factors influencing antibiotic and ARG removal in CWs, highlighting elements, such as mobile genetic elements, plant types, and hydraulic conditions [43]. While these studies offer valuable insights, they primarily focus on either descriptive factor analysis or pollutant-specific system optimization.
Building on these developments, our framework extends the analytical depth by incorporating both global performance synthesis via meta-analysis and interpretable predictions via ML and SHAP. The meta-analysis qualitatively identified the optimal biomass materials, while the ML models, utilizing the carbon release features derived from these materials, quantitatively predicted their performance under complex operational matrices. This approach not only achieved high predictive accuracy(R2 > 70for COD and TN) but also revealed the influence of specific features such as biomass type, wetland volume, and aeration rate. This dual capacity positions the framework as both a predictive engine and a transparent decision support tool for optimizing CW design, operation, and resource reuse.
Agricultural biomass additions enhance pollution removal efficiency in CWs
The addition of agricultural biomass, particularly biochar, enhances pollutant removal in CWs through multiple interacting ecological processes. These include: (1) providing labile and recalcitrant carbon sources to support denitrifying microbial communities, (2) increasing surface area and porosity for microbial colonization and organic matter adsorption, and (3) modifying redox gradients to facilitate coupled nitrification–denitrification pathways [6].
Our results demonstrated that TN removal efficiency consistently exceeds that of COD removal in biochar-amended CWs. This is attributed to the enrichment of functional microorganisms, such as nitrifying and denitrifying bacteria, which are supported by the porous structure and surface chemistry of biochar [11,44]. These microbial communities catalyze nitrogen transformation processes, such as ammonia oxidation and nitrate reduction, leading to efficient TN removal, even under low C/N conditions. In contrast, COD removal is more dependent on biochar’s physical adsorption and microbial degradation of complex organic compounds, which may vary in solubility and degradability. When the amount of biochar is reduced, COD removal efficiency declines sharply, underscoring the importance of maintaining sufficient reactive surfaces for adsorption and microbial colonization [45–47].
Moreover, aeration played a critical role in COD removal. Although increased aeration generally enhances oxygen availability and organic degradation, our results indicate that excessive aeration under short HRT conditions can lead to suboptimal removal owing to insufficient contact time [48]. Therefore, achieving synergistic improvements requires balancing optimal aeration intensity with appropriate wetland volume and HRT.
Collectively, these findings reinforce the concept discussed in the Introduction: agricultural biomass not only serves as a low-cost external carbon source but also contributes to the ecological and operational sustainability of CWs, aligning with circular economy principles and offering a viable pathway for waste valorization and rural water treatment co-optimization.
Limitations and future perspectives
This study had a few limitations. First, while the framework demonstrated strong predictive capability and mechanistic insight, the dataset was limited by the availability of studies reporting both biomass properties and detailed operational parameters. Therefore, expanding the range of biomass types and pretreatment methods in future studies will strengthen the ecological generalizability of the findings. Second, the sample size may be insufficient, as only 70 of 91 manually screened articles were included in the meta-analysis and 15 in the ML models, which may not completely represent the breadth of research in this field, and the literature search was restricted to the Web of Science Core Collection. This single-database approach and the specific keyword set employed may introduce potential retrieval biases, potentially omitting relevant studies indexed in other databases. Finally, the manual article screening process lacked reverse validation. Specifically, this study did not use SHAP-derived feature contributions to verify laboratory experiments, which could have provided additional insights into the relationships between variables.
Future research should further explore the use of rural waste-derived biochar as an external amendment to enhance pollutant removal efficiency in CWs. Additionally, further studies should expand the range of rural waste types used as external carbon sources to help identify more efficient and cost-effective materials for pollutant removal and contribute to waste recycling and resource utilization. Beyond the percentage of pollutant removal in CWs, future studies should focus on efficiency, such as the rate of pollutant removal per unit time and volume, which can provide a more accurate and practical measure of the pollutant removal performance in CWs. Moreover, this study revealed that appropriately increasing the volume of CWs could improve their pollutant removal efficiency to a certain extent. Therefore, future research should investigate the optimal design and operational conditions of CWs to maximize pollutant removal while considering factors, such as cost and space requirements.
Conclusions
This study presented an integrated framework that combines meta-analysis and ML to evaluate the impact of agricultural biomass addition on pollution removal efficiency in CWs. The meta-analysis revealed that bamboo biochar improved COD removal efficiency by approximately 54.8%, whereas lotus leaf biochar enhanced TN removal efficiency by approximately 32.5% compared with controls. Wetland volume, influent concentration, and aeration rate were identified as the dominant ecological and operational drivers. These findings align with the established premise that biomass addition improves CW performance through multiple mechanisms, including enhanced microbial colonization, increased adsorption capacity, and optimized redox gradients that facilitate coupled nitrification–denitrification.
From an ecological engineering perspective, these results highlight the need to align biomass type with target pollutants, optimize hydrological retention through appropriate wetland volume, and balance aeration to sustain diverse microbial pathways. Valorizing rural agricultural waste as a functional component of CWs supports the circular economy, reduces reliance on synthetic inputs, and enhances the multifunctionality of CWs as nature-based solutions for water quality improvement, biodiversity support, and climate resilience.
Future research should integrate large-scale field validation with modeling frameworks to ensure the robustness of predicted ecological responses under varying climatic and hydrological regimes, thereby advancing transferable design principles for global CW applications.
Supporting information
S1 Fig. Forest plots of COD and TN removal efficiency by HRT, CW Type, CW Volume and pretrement.
https://doi.org/10.1371/journal.pone.0353064.s001
(JPG)
S2 Fig. Comparison of machine learning models’ performance in predicting COD removal efficiency in constructed wetlands.
https://doi.org/10.1371/journal.pone.0353064.s002
(PNG)
S3 Fig. Comparison of machine learning models’ performance in predicting TN removal efficiency in constructed wetlands.
https://doi.org/10.1371/journal.pone.0353064.s003
(PNG)
References
- 1. Zhao F, Zhang X, Xu Z, Feng C, Pan W, Lu L, et al. Review of hydraulic conditions optimization for constructed wetlands. J Environ Manage. 2024;370:122377. pmid:39243655
- 2. Idris NN, Chua LHC, Mustaffa Z, Das S, Takaijudin H. A review study on the association between hydraulic performance and treatment effectiveness in free surface flow constructed wetlands. Ecol Eng. 2024;203:107258.
- 3. Dominguez-Solis D, Martinez-Rodriguez MC, Ramirez-Escamilla HG, Campos-Villegas LE, Dominguez-Solis R. Constructed wetlands as a decentralized treatment option for domestic wastewater: a systematic review (2015-2024). Water. 2025;17(10).
- 4. Lin Z, Li M, Yan P, Zhang J, Xie H, Wu H. Constructed wetlands for wastewater treatment and reuse: two decades of experience from China. Environ Res. 2025;279(Pt 2):121781. pmid:40335010
- 5. Awasthi MK, Sindhu R, Sirohi R, Kumar V, Ahluwalia V, Binod P, et al. Agricultural waste biorefinery development towards circular bioeconomy. Renew Sustain Energy Rev. 2022;158:112122.
- 6. Munir R, Muneer A, Sadia B, Younas F, Zahid M, Yaseen M, et al. Biochar imparted constructed wetlands (CWs) for enhanced biodegradation of organic and inorganic pollutants along with its limitation. Environ Monit Assess. 2024;196(5):425. pmid:38573498
- 7. Tao M, Jing Z, Li Y-Y. Constructed wetland for enhanced nitrogen removal of carbon limited wastewater and its economic and environmental assessment: a review. J Clean Prod. 2025;501:145272.
- 8. Jia L, Gou E, Liu H, Lu S, Wu S, Wu H. Exploring utilization of recycled agricultural biomass in constructed wetlands: characterization of the driving force for high-rate nitrogen removal. Environ Sci Technol. 2019;53(3):1258–68. pmid:30608662
- 9. Li Y, Wang S, Li Y, Kong F, Xi H, Liu Y. Corn straw as a solid carbon source for the treatment of agricultural drainage water in horizontal subsurface flow constructed wetlands. Water. 2018;10(4):511.
- 10. Zhong L, Yang S-S, Ding J, Wang G-Y, Chen C-X, Xie G-J, et al. Enhanced nitrogen removal in an electrochemically coupled biochar-amended constructed wetland microcosms: the interactive effects of biochar and electrochemistry. Sci Total Environ. 2021;789:147761. pmid:34051500
- 11. Odedishemi Ajibade F, Wang H-C, Guadie A, Fausat Ajibade T, Fang Y-K, Muhammad Adeel Sharif H, et al. Total nitrogen removal in biochar amended non-aerated vertical flow constructed wetlands for secondary wastewater effluent with low C/N ratio: Microbial community structure and dissolved organic carbon release conditions. Bioresour Technol. 2021;322:124430. pmid:33383476
- 12. Tao J, Zhang Y, Zhang T, You Z, Shah KJ, Kim H. Application of reeds as carbon source for enhancing denitrification of low C/N micro-polluted water in vertical-flow constructed wetland. Appl Sci. 2022;12(13):6756.
- 13. Lam VS, Tran TCP, Vo T-D-H, Nguyen DD, Nguyen XC. Meta-analysis review for pilot and large-scale constructed wetlands: design parameters, treatment performance, and influencing factors. Sci Total Environ. 2024;927:172140. pmid:38569956
- 14. Yan J, Hu X, Chen M, Zhang J, Guo F, Vymazal J, et al. Meta-analysis of the removal of trace organic contaminants from constructed wetlands: conditions, parameters, and mechanisms. Ecol Eng. 2022;178:106596.
- 15. Jiang B-N, Lu M-B, Zhang Z-Y, Xie B-L, Song H-L. Quantifying biochar-induced greenhouse gases emission reduction effects in constructed wetlands and its heterogeneity: a multi-level meta-analysis. Sci Total Environ. 2023;855:158688. pmid:36108836
- 16. Li J, Pan L, Suvarna M, Tong YW, Wang X. Fuel properties of hydrochar and pyrochar: prediction and exploration with machine learning. Appl Energy. 2020;269:115166.
- 17. Jiang B-N, Zhang Y-Y, Zhang Z-Y, Yang Y-L, Song H-L. Tree-structured parzen estimator optimized-automated machine learning assisted by meta-analysis for predicting biochar-driven N2O mitigation effect in constructed wetlands. J Environ Manage. 2024;354:120335. pmid:38368804
- 18. Dong Q, Bai S, Wang Z, Zhao X, Yang S, Ren N. Virtual sample generation empowers machine learning-based effluent prediction in constructed wetlands. J Environ Manage. 2023;346:118961. pmid:37708683
- 19. Nguyen XC, Ly QV, Peng W, Nguyen V-H, Nguyen DD, Tran QB, et al. Vertical flow constructed wetlands using expanded clay and biochar for wastewater remediation: A comparative study and prediction of effluents using machine learning. J Hazard Mater. 2021;413:125426. pmid:33621772
- 20. Coryn CLS. Introduction to meta-analysis. Eval Progr Plann. 2011;34(2):160–1.
- 21. Yang Y, Zhu DZ, Loewen MR, Ahmed SS, Zhang W, Yan H, et al. Evaluation of pollutant removal efficiency of urban stormwater wet ponds and the application of machine learning algorithms. Sci Total Environ. 2023;905:167119. pmid:37717762
- 22.
Chen T, Guestrin C, Assoc Comp M. XGBoost: A Scalable Tree Boosting System. 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD); 2016.
- 23. Zhu J, Jiang Z, Feng L. Improved neural network with least square support vector machine for wastewater treatment process. Chemosphere. 2022;308(Pt 1):136116. pmid:36037940
- 24. Elnakar H. Machine learning for electrochemical advanced oxidation in water treatment: descriptors, interpretability, and control. Acs EsT Water. 2026.
- 25. Roberts DR, Bahn V, Ciuti S, Boyce MS, Elith J, Guillera‐Arroita G, et al. Cross‐validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure. Ecography. 2017;40(8):913–29.
- 26. Tan X, Qi F, Liu Q, Qie H, Duan G, Lin A, et al. Is Cr(III) re-oxidation occurring in Cr-contaminated soils after remediation: Meta-analysis and machine learning prediction. J Hazard Mater. 2024;465:133342. pmid:38150755
- 27. Shapley LS. A value for $n$-person games. Ann Math Stud. 1953.
- 28.
Lundberg SM, Lee S-I. A Unified Approach to Interpreting Model Predictions. 31st Annual Conference on Neural Information Processing Systems (NIPS). 2017.
- 29. Parsa AB, Movahedi A, Taghipour H, Derrible S, Mohammadian AK. Toward safer highways, application of XGBoost and SHAP for real-time accident detection and feature analysis. Accid Anal Prev. 2020;136:105405. pmid:31864931
- 30. Wang D, Thunéll S, Lindberg U, Jiang L, Trygg J, Tysklind M. Towards better process management in wastewater treatment plants: Process analytics based on SHAP values for tree-based machine learning methods. J Environ Manage. 2022;301:113941. pmid:34731954
- 31. Elnakar H. Automated machine learning and SHAP-based interpretation of PFOA removal via electrochemical oxidation. Desalin Water Treat. 2026;325:101598.
- 32. Aldrees A, Khan M, Taha ATB, Ali M. Evaluation of water quality indexes with novel machine learning and SHapley Additive ExPlanation (SHAP) approaches. J Water Process Eng. 2024;58:104789.
- 33. Abdulalim Alabdullah A, Iqbal M, Zahid M, Khan K, Nasir Amin M, Jalal FE. Prediction of rapid chloride penetration resistance of metakaolin based high strength concrete using light GBM and XGBoost models by incorporating SHAP analysis. Construct Build Mater. 2022;345:128296.
- 34. Xu R, Li Y, Luo Y, Fang F, Feng Q, Cao J, et al. Prediction and evaluation of indirect carbon emission from electrical consumption in multiple full-scale wastewater treatment plants via automated machine learning-based analysis. ACS EST Eng. 2022;3(3):360–72.
- 35. Zhang H, Xie Y, Zheng L, Zhang D, Zhang Q. Interpreting multivariate Shapley interactions in DNNs. Arxiv. 2021.
- 36. Singh S, Soti A, Kulshreshtha NM, Samaria A, Brighu U, Gupta AB. Machine learning application for nutrient removal rate coefficient analyses in horizontal flow constructed wetlands. Acs Es&T Water. 2024;4(6):2619–31.
- 37. Cheng L, Gong X, Wang B, Liu Z, Liang H, Gao D. Novel Biochar/Fe-modified biocarriers assisted tidal-flow constructed wetlands for enhanced nitrogen removal from eutrophic water under low temperatures. ACS EST Water. 2024;4(4):1834–43.
- 38. Yu G, Peng H, Fu Y, Yan X, Du C, Chen H. Enhanced nitrogen removal of low C/N wastewater in constructed wetlands with co-immobilizing solid carbon source and denitrifying bacteria. Bioresour Technol. 2019;280:337–44. pmid:30780093
- 39. Fu G, Huangshen L, Guo Z, Zhou Q, Wu Z. Effect of plant-based carbon sources on denitrifying microorganisms in a vertical flow constructed wetland. Bioresour Technol. 2017;224:214–21. pmid:27838318
- 40. Wojciechowska E. Potential and limits of landfill leachate treatment in a multi-stage subsurface flow constructed wetland - Evaluation of organics and nitrogen removal. Bioresour Technol. 2017;236:146–54. pmid:28399418
- 41. Li J, Liu L, Huang X, Liao J, Liu C. Cross-effect of wetland substrates properties on anammox process in three single-substrate anammox constructed wetlands for treating high nitrogen sewage with low C/N. J Environ Manage. 2022;304:114329. pmid:34933265
- 42. Kumar S, Chand N, Sangwan V, Deswal S. Prediction of total phosphorus removal in hybrid constructed wetlands: a machine learning approach for rice mill wastewater treatment. Water Environ Res. 2025;97(5):e70085. pmid:40364614
- 43. Zhang L, Yan C, Wen C, Yu Z. Influencing factors of antibiotic resistance genes removal in constructed wetlands: a meta-analysis assisted by multivariate statistical methods. Chemosphere. 2023;315:137755. pmid:36608881
- 44. Lu R, Zhang Q, Chen Y, An H, Zhang L, Wu Z, et al. Nitrate reduction pathway of iron sulphides based MFC-CWs purifying low C/N wastewater: competitive mechanism to inorganic and organic electrons. Chem Eng J. 2024;479:147379.
- 45. Deng C, Huang L, Liang Y, Xiang H, Jiang J, Wang Q, et al. Response of microbes to biochar strengthen nitrogen removal in subsurface flow constructed wetlands: Microbial community structure and metabolite characteristics. Sci Total Environ. 2019;694:133687. pmid:31382172
- 46. Wang W, Ding Y, Ullman JL, Ambrose RF, Wang Y, Song X, et al. Nitrogen removal performance in planted and unplanted horizontal subsurface flow constructed wetlands treating different influent COD/N ratios. Environ Sci Pollut Res Int. 2016;23(9):9012–8. pmid:26822218
- 47. Zhang Y, Li M, Dong L, Han C, Li M, Wu H. Effects of biochar dosage on treatment performance, enzyme activity and microbial community in aerated constructed wetlands for treating low C/N domestic sewage. Environ Technol Innov. 2021;24:101919.
- 48. Phanwilai S, Noophan P, Li CW, Choo KH. Effect of COD:N ratio on biological nitrogen removal using full-scale step-feed in municipal wastewater treatment plants. Sustain Environ Res. 2020;30(1).