Document Type : Original Research Paper
Introduction
The pulp and paper industry stands as a significant source of water pollution. Its effluents are characterized by high levels of dissolved salts, suspended solids, chemical oxygen demand (COD), color, nutrients, and potentially toxic compounds like chlorinated organics, surfactants, and metals [1]. This cocktail of pollutants has a severe detrimental impact on receiving water bodies [2]. Furthermore, the industry’s colored wastewater, often a result of black liquor discharges, presents an additional environmental concern. This visual pollution not only disrupts the aesthetics of aquatic environments but can also negatively impact aquatic life. The challenge of characterizing pulp and paper mill wastewater lies in the industry’s inherent diversity. Each production process utilizes unique technologies and a distinct set of chemicals, making it difficult to establish a universal set of parameters for wastewater composition [3, 4]. The pulp and paper industry discharges highly complex wastewater, posing a significant challenge for treatment. This effluent contains a diverse mixture of components, including lignosulfonates (complex organic molecules), enzymes, residual alkali, reducing and oxidizing agents, unutilized black liquor, silica, and various additives [5]. This intricate composition makes the treatment process economically difficult. Characterization of pulp and paper wastewater relies on measuring key parameters that exhibit significant fluctuations. These parameters include pH, conductivity, color, biochemical oxygen demand (BOD), and COD. However, due to the inherent complexity of the effluent, developing an effective treatment strategy remains a major hurdle [6]. Additionally, the role of wastewater quality parameters is integral to the functioning of wastewater treatment plants and should not be ignored. Evaluating water quality parameters plays a critical role in enhancing the effectiveness of water resource assessment, ultimately leading to improved management and planning [7]. Despite the importance of water quality parameter evaluation, obtaining continuous data presents significant challenges. Limited space within sewer systems restricts the placement of monitoring equipment, and traditional BOD/COD analysis requires time-consuming lab experiments [8]. Furthermore, these methods are prone to errors due to tedious procedures and potential interference from toxic substances that impact microbial activity [9]. The complex interplay between water quality parameters raises the intriguing possibility of domain-specific mechanisms governing observed patterns, suggesting the potential for predicting these variables. However, existing water quality models, such as traditional mechanistic approaches, often require extensive and costly data inputs that are not readily available [10]. A surge in artificial intelligence (AI) is transforming wastewater treatment. Researchers are increasingly utilizing AI techniques to predict key parameters within wastewater treatment plants (WWTPs). This focus is particularly aimed at improving the efficiency of removing COD, a crucial indicator of organic pollutants [11]. Artificial neural networks (ANNs) have emerged as a powerful tool in these studies. Compared to traditional WWTP modeling methods, ANNs offer significant advantages [12]. They require less processing time and can rapidly adapt to changing influent conditions through targeted retraining. Several studies have successfully employed ANNs to predict water quality parameters and simulate the overall treatment efficiency of WWTPs [13]. Comparisons between predicted values and actual data, using both ANNs and adaptive neuro-fuzzy inference systems (ANFIS), revealed a remarkable correlation of 96.0% for COD prediction [14]. This strong correlation highlights the immense potential of AI for not only predicting but also controlling the performance of aerobic biological processes within WWTPs. By leveraging various water quality data points, AI can forecast WWTP function under diverse scenarios. These scenarios encompass fluctuations in influent quantity and quality, operating conditions, and seasonal variations. This predictive power paves the way for the development of decision-support systems. These systems can optimize WWTP operations, leading to enhanced efficiency, cost savings, and a multitude of other environmental benefits [15]. Various approaches have been employed by researchers to predict wastewater treatment plant performance. For instance, Maged Hamed et al. utilized ANNs to forecast biochemical oxygen demand (BOD) and suspended solids (SS) concentrations in Cairo, Egypt, WWTP. Based on historical data, the researchers developed two ANN models that demonstrated robust performance and efficiency, highlighting the potential of ANNs for optimizing WWTP operations [16]. In another study, Shu-Zhe Zhang et al used ANN to accurately predict denitrification efficiency in WWTPs. A backpropagation ANN (BPANN) model was developed using a year’s worth of operational data. Standardized principal component analysis (PCA) was applied to enhance model performance. The BPANN model demonstrated high accuracy in predicting denitrification efficiency in three WWTPs using A2O processes. Notably, the model’s versatility allows for its application to other common treatment processes (OD, SBR, MBR, CAST) by adjusting training data ratios [17]. A machine learning model was developed by Ekin Ekinci et al to accurately predict sewage sludge production in a wastewater treatment plant. The model, based on Kernel Ridge Regression, utilized plant data including flow rate, polyelectrolyte dosage, and pollutant removal rates. The model demonstrated high accuracy, outperforming other machine learning algorithms tested. This research offers a valuable tool for plant operators to efficiently manage sewage sludge production [18]. Recently, Ahmadi et al. investigated optimal hydraulic retention time (HRT) to maximum COD removal and MLSS concentration. In addition, they analyzed the pH values in MBR and SMABR systems [1]. To the best of our knowledge, the experimental results are useful from practical and theoritical point of view while the efficiency of predicting machine learning method in the mentioned experimental dataset are not studied. Based on the experimental results in [1], this paper aims to simulate and predict the amouts and trends of COD, MLSS and pH in a polluted aqua system using machine learning algorithms. Linear regression, generalized additive model, neural network and support vector regression are considered as the machine learning tools for this purpose. The rest of the paper is organized as follows. Next section is devoted to a brief introduction of the considered machine learning methods. Section 3 is devoted to numerical results. A conclusion and further work is given in Section 4.
Methods
This section is related to a brief description of the considered methods. The related references are provided for further investigation.
Support Vector Regression (SVR) is a machine learning algorithm used for regression analysis. The SVR Model in Machine Learning aims to find a function that approximates the relationship between the input variables and a continuous target variable while minimizing the prediction error. Unlike Support Vector Machines (SVMs) used for classification tasks, the SVR Model seeks a hyperplane that best fits the data points in a continuous space. This is achieved by mapping the input variables to a high-dimensional feature space and finding the hyperplane that maximizes the margin (distance) between the hyperplane and the closest data points, while also minimizing the prediction error [19]. The SVR Model can handle non-linear relationships between the input and target variables by using a kernel function to map the data to a higher-dimensional space. This makes it a powerful tool for regression tasks where complex relationships may exist. Support Vector Regression (SVR) uses the same principle as SVM but for regression problems. Let’s spend a few minutes understanding the idea behind SVR in Machine Learning [20].
Assuming that the equation of the hyperplane is as follows:
Y = wx+b (equation of hyperplane)
Then the equations of decision boundary become:
wx+b= +a
wx+b= -a
Thus, any hyperplane that satisfies our SVM for Regression Model should satisfy:
-a < Y- wx+b < +a
Our main aim here is to decide a decision boundary at ‘a’ distance from the original hyperplane such that data points closest to the hyperplane or the support vectors are within that boundary line. Hence, we will take only those points within the decision boundary that have the least error rate or are within the Margin of Tolerance. This will give us a better-fitting model [19].
In statistics, linear regression is a statistical model that estimates the linear relationship between a scalar response and one or more explanatory variables (also known as dependent and independent variables). The case of one explanatory variable is called simple linear regression; for more than one, the process is called multiple linear regression [21]. This term is distinct from multivariate linear regression, where multiple correlated dependent variables are predicted, rather than a single scalar variable [22]. If the explanatory variables are measured with error then errors-in-variables models are required, also known as measurement error models. In linear regression, the relationships are modeled using linear predictor functions whose unknown model parameters are estimated from the data. Such models are called linear models [23]. Most commonly, the conditional mean of the response given the values of the explanatory variables (or predictors) is assumed to be an affine function of those values; less commonly, the conditional median or some other quantile is used. Like all forms of regression analysis, linear regression focuses on the conditional probability distribution of the response given the values of the predictors, rather than on the joint probability distribution of all of these variables, which is the domain of multivariate analysis.
A neural network is a reflection of the human brain’s behavior. It allows computer programs to recognize patterns and solve problems in the fields of machine learning, deep learning, and artificial intelligence. These systems are known as artificial neural networks (ANNs) or simulated neural networks (SNNs). Google’s search algorithm is a fine example [24]. Neural networks are subtypes of machine learning and form the core part of deep learning algorithms. Their structure is designed to resemble the human brain, which makes biological neurons signal to one another. ANNs contain node layers that comprise input, one or more hidden layers, and an output layer. In this paper, we consider a feedforward neural network in which information direct forward and recursion is not allowed [25].
In statistics, a generalized additive model (GAM) is a generalized linear regression model in which the linear response variable depends linearly on unknown smooth functions of some predictor variables, and interest focuses on inference about these smooth functions. GAMs were originally developed by Trevor Hastie and Robert Tibshirani to blend the properties of generalized linear models with additive models [26]. They can be interpreted as the discriminative generalization of the naive Bayes generative model [27]. The model relates a univariate response variable, Y, to some predictor variables, xi. An exponential family distribution is specified for Y (for example normal, binomial, or Poisson distributions) along with a link function g (for example the identity or log functions) relating the expected value of Y to the predictor variables via a structure such as
The functions fi may be functions with a specified parametric form (for example a polynomial, or an un-penalized regression spline of a variable) or maybe specified non-parametrically, or semi-parametrically, simply as ‘smooth functions’, to be estimated by non-parametric means. So a typical GAM might use a scatterplot smoothing function, such as a locally weighted mean, for f1(x1), and then use a factor model for f2(x2). This flexibility to allow non-parametric fits with relaxed assumptions on the actual relationship between response and predictor provides the potential for better fits to data than purely parametric models, but arguably with some loss of interpretability. For more information, one can consult [28].
Results
We used MATLAB 2022 to investigate the efficiency of the considered methods. The default predefined parameters are used in computations unless otherwise stated. The computational results are given in Table 1. It is shown that the neural network (NN) had a lower error compared to the other methods for predicting COD removal efficiency. Linear regression (LM) and support vector machine (SVR) had similar accuracies. The same trend was observed for MLSS prediction. Therefore, we recommend the neural network for predicting COD and MLSS. Similarly, the prediction error of pH in the neural network is one-third of the SVR and LM methods and approximately half of the GAM method. Therefore, in the analysis, simulation, and prediction of parameters related to wastewater treatment, the feedforward neural network (NN) method is recommended. Based on the four models: neural network, linear, generalized additive, and support vector, the following figures show the COD removal efficiency at different hydraulic retention times.
Based on the obtained results and diagrams, the predicted COD removal efficiency for different days, assuming hydraulic retention times of 12, 18, and 24 hours, is shown in Figs. 1, 2, and 3, respectively. By comparing these diagrams, it is clear that the neural network has higher accuracy compared to other models, and we observe a match between the results obtained on a laboratory scale and the neural network model. According to Fig. 2, the highest COD removal efficiency based on the neural network model occurs at a hydraulic retention time of 18 hours. Based on the diagram obtained with the neural network model, we observe a match between the experimental value and the data obtained with this model.
Examination of the diagrams in the above figures shows that although the linear, generalized additive, and support vector models have a higher error value compared to the neural network model, the important point is that in all four models, with an increase in hydraulic retention time up to 18 hours, the COD removal efficiency increases, and we observe the proximity of the experimental curve diagram with the data obtained with the above theoretical models. Subsequently, with an increase in hydraulic retention time from 18 (Fig. 2) to 24 (Fig. 3) hours, the amount of COD removal decreases, which is consistent with the results obtained in the laboratory.
The following figures illustrate the Mixed Liquor Suspended Solids (MLSS) concentration at various hydraulic retention times, as predicted by four models: neural network, linear, generalized additive, and support vector.
Analysis of the diagrams for the neural network, linear, generalized additive, and support vector models at various hydraulic retention times reveals that the highest MLSS concentration, according to the neural network model, occurs at 18 hours (Fig. 5). The experimental data closely aligns with the results obtained from the neural network model. Examination of Figs. 4, 5, and 6 shows that although the linear, generalized additive, and support vector models exhibit higher error rates compared to the neural network, a common trend emerges: MLSS concentration increases with increasing hydraulic retention time up to 18 hours (Fig. 5), followed by a decrease. This trend is consistent with the experimental results, indicating a good fit between the theoretical models and the observed data.
Analysis of Fig. 7, which presents the results of the neural network, linear, generalized additive, and support vector models for various pH levels, suggests that the neural network and generalized additive models provide the most accurate predictions for the optimal pH for microbial growth. The experimental data closely aligns with the results obtained from the neural network and generalized additive models.
Table 2 presents the pH error rates for both MBR and MABR reactors. Although the error values for the GAM and NN models appear similar, Fig. 7 suggests that the NN model is more suitable for determining the optimal pH. Furthermore, the results obtained from all four models indicate that the optimal conditions for COD removal efficiency, MLSS concentration, and pH can be evaluated using these models. The neural network model, in particular, has demonstrated superior performance compared to the other models.
Conclusion
The paper and pull industry is one of the biggest and most important industries in the world and its wastage leads to environmental pollution. Every year, millions of tonnes of paper are produced which causes crucial pollution in an aqua ecosystem. Managing and reducing aqua pollution is vital from both social and environmental perspectives. This aim cannot be achieved without simulating and analyzing pollutant factors in the paper and pull industry. This is a challenging problem due to the limitation of sewer space for using the required equipment. In addition, laboratory analysis may give inaccurate results due the measurement error or any undefined induced error. To overcome these difficulties, this paper proposes to use a machine learning tool for simulating and analyzing the polluted aqua system which is affected by pollutant factors in the paper and pull industry. COD, MLSS, and pH are considered the main factors for analyzing a polluted aqua ecosystem. In the first step, the values of COD and MLSS for HRT= 12, 18, and 24 are experimentally obtained. These data are used for training and evaluating the considered machine learning methods i.e. GAM, LR, NN, and SVR. Although all methods could predict COD and MLSS with acceptable error, NN outperform with the error 0.0010 and 3.60e-05 in HRT=18 for COD and MLSS respectively. In addition, predicting the amount of pH in MBR and MABR is investigated. The results show that GAM and NN outperform LR and SVR. GAM and NN generate almost the same results while NN and GAM generate more accurate results in MBR and MABR respectively. To summarize, this paper suggests using NN for simulating and predicting the amounts of COD and MLSS. It suggests investigating the accuracy of GAM and NN for predicting pH in the considered system. Considering some other different pollutant factors such as BOD,…. can be considered as further work.
Conflicts of interest
The author do not have any conflicts of interest.