1. Introduction
Industrial developments and urban settlements are unavoidable in modern times. However, such unchecked developments have threatened the future of humans, as evidenced by serious environmental consequences including global climate changes, soil contamination, and most importantly the contamination of water resources. Among these undesirable consequences of non-sustainable development is water pollution. Water pollution caused by toxic pollutants is a global issue that affects the population in numerous ways, including its impact on direct consumption, agriculture, and recreational activities [
1]. Various methods for the removal of pollutants from wastewater include chemical, photovoltaic, aerobic, and anaerobic pathways. Anaerobic methods utilize microorganisms to transform organic matter without the presence of oxygen, making them effective for treating high-strength wastewater.
Recent investigations have extensively focused on biotechnology for the concurrent removal of nitrogen and sulfur [
2,
3,
4,
5,
6]. The use of biotechnology is essential for the well-being of ecosystems. This is because it transforms pollutants into benign substances, generates biodegradable materials from renewable sources, and develops environmentally safe manufacturing and disposal processes [
2]. Some of these processes are conducted in the absence of oxygen, referred to as anoxic, such as denitrification for the removal of nitrate [
7]. Another one of those technologies is anaerobic sulfide oxidation (ASO). The anoxic sulfide-oxidizing reactor is an up-flow reactor with biomass retention. The reactor is made of Perspex with a working volume of 1.3 L. The synthetic influent is pumped through a peristaltic pump from the 5 L influent vessel to the reactor. The flow rate can vary between 0.6 and 12.5 L per day, which provides the possibility of operating at HRTs between 2.0 and 0.1 days. A recycling pump is used in order to mix the influent (substrate) and sludge (biocatalyst) well and hence to decrease possible substrate inhibition. The process can be controlled by changing the ratio of recycling flow to the influent flow and the temperature of the reactor between [
2]. One of the challenges with the employment of ASO technology is the variation in reactor performance due to the intensity of shock loads. The effect of shock loading is directly proportional to the intensity of the shock loads. The reactor performance is observed to be stable at a relatively lower intensity (1.5 times shock load), while it shows considerable disturbance at a higher intensity (higher than 2.0 times shock load). The effluent sulfide-sulfur concentration was also found to be another sensitive parameter affecting the steady state of the reactor [
4].
The ASO reactor efficiently managed elevated influent quantities of sulfide (1920 mg/L) and nitrite (2265.25 mg/L). A 0.10-day hydraulic retention time (HRT) yielded peak loading rates of 13.84 kgS/(m
3·d) and 16.311 kgN/(m
3·d). A stoichiometric analysis indicated incomplete oxidation of sulfide, leading to the formation of elemental sulfur, attributed to a low sulfide-to-nitrite ratio of 0.93 [
2]. HRT did not influence sulfide removal but significantly affected nitrite removal. The reactor withstood a 0.10-day hydraulic retention time, but performance declined when it dropped to 0.08 days [
2,
3].
Mahmood et al. [
3] reported that sulfide removal efficiency in ASO was not significantly affected when HRT was lowered from 1.0 to 0.10 days. However, reducing HRT to 0.08 days negatively impacted reactor performance. Nitrite removal was significantly influenced by changes in HRT, indicating the reactor’s adaptability to operational adjustments [
4]. The importance of aerobic polishing following the ASO reactor for achieving effluent standards was emphasized, with results showing successful compliance after 12 h of aeration at dissolved oxygen (DO) levels below 1.0 mg/L [
4].
Artificial neural network (ANN) modeling proved effective for the performance prediction of the ASO reactor, achieving good agreement between predicted and observed values with correlation coefficients of 0.96 for nitrite and 0.98 for sulfide [
5]. Further optimization of the ASO reactor via ANN and Genetic Algorithm (GA) models enhanced performance under varying influent concentrations and operational conditions [
5]. Similarly, simultaneous removal of nitrogen and sulfur has been investigated in mixed culture bioreactors, demonstrating efficient performance under controlled conditions [
6]. Researchers have also applied constructed wetlands (CWs) to treat wastewater containing sulfide and nitrogen compounds. CWs offer low-cost and sustainable treatment solutions by leveraging natural processes such as microbial activity, plant uptake, and sedimentation [
8,
9,
10,
11].
In recent years, machine learning (ML) techniques have shown great potential in optimizing wastewater treatment processes, including sulfide and nitrogen removal [
12]. Among these, artificial neural networks (ANNs) have proven to be a powerful tool for modeling complex, non-linear relationships inherent in biological treatment systems [
13,
14].
ANN models mimic the functioning of biological neural systems to learn patterns in data, enabling them to predict system behavior under different operational conditions [
13,
15]. They have been applied successfully in various domains, including speech recognition [
16,
17], natural language processing [
18,
19,
20], autonomous driving [
21], medical diagnosis [
22], and financial prediction [
23].
Recently, researchers have increasingly applied ANNs to environmental engineering problems, particularly in water and wastewater treatment [
24,
25]. In this study, we utilized ANN modeling to predict the performance of an ASO reactor for the simultaneous removal of sulfide and nitrite under various operational conditions. Additionally, we employed SHapley Additive exPlanations (SHAP) analysis to interpret the contribution of different input variables to the reactor performance prediction. The use of SHAP analysis with ANNs is referred to as Explainable AI or XAI. Its application in the environmental field, despite its popularity in other fields, is rather limited. The limited literature found thus far shows that this approach increases the robustness of the models, as well as their generalizability. Moreover, it improves the interpretability of the results. Consequently, higher accuracy and interpretability aid decision-making ability, which could be vital for wastewater treatment systems [
26,
27].
The applications of XAI found thus far in the field of water treatment are all recent, which shows the popularity of this approach among modern researchers. More prominently, they deal with the prediction of water quality; such examples include [
28,
29,
30]. Another field of application is water demand management and prediction [
31]. With regard to the use in wastewater treatment, Nasir and Li [
32] have used this approach successfully for sludge prediction through employment of various tree-based models. Sludge monitoring was also conducted through image detection by applying deep learning [
33]. With regard to the tree models, they were also used in other studies for optimizing the parameters of wastewater treatment plants for cost minimization [
34]. One of the very few studies found to focus on the chemical parameters of treated wastewater is by [
35].
It is evident from the above that previous research on the use of ANNs and XAI in microbially controlled biotechnologies is scarce. Artificial intelligence techniques are now widely used to reap the benefits of modern technological progress. The artificial neural network model is expected to aid in identifying the important elements influencing the ASO biotechnology that treats nitrite and sulfide at the same time. Based on these findings, this study employs ANN models to predict the removal of pollutants from wastewater subjected to ASO treatment technology. The data for this study was taken from previously published works of [
2,
3,
4,
5,
6], and the focus of the study was kept on the modeling aspect. The models were subjected to SHAP analysis for determining the key parameters and their impact on pollutant removal. XAI lends itself as an effective and efficient method for obtaining accurate predictions of results as well as for determining the impacts of variables despite limitations of data and prior information about them.
The comparative analysis provided by the SHAP analysis, between different parameters, cannot be achieved through other traditional methods with the above-mentioned limitations. This type of research is non-existent in the field of ASO reactor performance prediction. The prediction model and its findings provide a solid basis for the application and improvement of the ASO method by exploring the values of operational factors beyond their known ranges.
4. Conclusions
The present investigation on the SHAP (SHapley Additive exPlanations) analysis of data obtained from an anaerobic ASO reactor treating sulfide and nitrite led to the following key findings.
The efficiency and stability of the ASO biotreatment process are influenced by a complex interaction of environmental and operational factors, including the sulfide-to-nitrite ratio (S:N ratio), pH, ammonium concentration, and influent sulfide concentration, all of which have a significant impact on the microbial community structure and metabolic pathways.
The S:N ratio and HRT were found to have the greatest influence on the prediction of sulfide removal efficiency. The positive impact of the S:N ratio on the removal rates suggests that sulfide oxidation is incomplete, resulting in the generation of elemental sulfur. Sulfide and nitrite concentrations in the influent had minimal effect on predicting the effluent pH, while the S:N ratio had the highest positive impact. The higher removal rates observed in this investigation at various nitrite-to-sulfide influent molar ratios suggest that sulfide oxidation is incomplete, resulting in the generation of elemental sulfur. Sulfide influent and HRT showed a detrimental effect on sulfate formation, whereas other variables contributed positively. The S:N ratio and influent pH were the most influential factors in predicting NO2−-N removal.
To optimize reactor performance for sulfide and nitrite removal, it is recommended to prioritize fine-tuning the S:N ratio and HRT, as these parameters significantly influence key performance indicators like sulfide and NO2−-N removal, as well as sulfate formation. The SHAP analysis showed that both these parameters have opposite effects on sulfide removal and nitrate formation. However, the impact on nitrate was higher than on sulfide removal. Hence, it could be said that a focus on nitrate removal would have a slightly negative impact on sulfide removal.
This study found that pH and HRT have significant impacts on wastewater treatment plants, but their accuracy varies due to high variation in the data. To improve the results, meta-heuristic or deep learning models may be employed. Future research should include real-world validation and explore microbial dynamics under varying environmental parameters. Advanced oxidation techniques could also be explored to reduce unnecessary substances in the system.