Journal of Water and Environmental Nanotechnology

Journal of Water and Environmental Nanotechnology

Investigating the Efficiency of Machine Learning Methods for Simulating the Effects of the Paper-Pulp Industry on Aqua Ecosystem Pollution

Document Type : Original Research Paper

Authors
1 Department of Chemistry, North Tehran Branch, Islamic Azad University, Tehran, Iran.
2 Department of Chemical Engineering, Babol Noshirvani University of Technology, Babol, Iran.
Abstract
The paper and pull industry has grown exponentially since 1960 and it is one of the main reasons for water pollution. Due to the rapid extension of the paper and pull industry and its considerable role in aqua ecosystem pollution, analyzing and managing the related pollutant factors are essential. This is not an easy task since sewer space limitations for using monitoring equipment. In addition, laboratory analysis of pollutant factors takes a long time and may affected by measurement error or some undefined induced error. To overcome these difficulties, this paper aims to use machine learning tools for analyzing the pollutant space. The chemical oxygen demand (COD), mixed liquor suspended solids  (MLSS), and pH are considered the main parameters for analyzing pollutant systems. First, the experimental values of MLSS and COD for different hydraulic retention times (HRT=12, 18, and 24) are obtained. After that, the efficiency of linear regression, generalized additive model, neural network, and support vector regression for simulating and predicting the trend of MLSS and COD are investigated. In addition, these methods are considered for predicting pH in the membrane-aerated biofilm reactor (MBR) and the membrane-aerated biofilm reactor (MABR). The numerical results show that  NN is a highly accurate method for predicting COD and MLSS and GAM can predict pH accurately. In addition, the results indicate that HRT=18 is the most accurate and stable time retention for analyzing COD and MLSS. 
Keywords

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.

 

  1. Support Vector Regression (SVR)

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].

 

  1. Linear regression

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.

 

  1. Neural Network Models in Machine Learning Work

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].  

 

  1. Generalized Additive

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.

  1. Ahmadi, M., et al., Exploring the application of the hybrid nano-bioreactor technology based on the developed polyethersulfone mixed-matrix membrane for industrial effluent treatment. Arabian Journal of Chemistry, 2023. 16(10): p. 105189. https://doi.org/10.1016/j.arabjc.2023.105189
  2. Kumar, A., et al., Paper and pulp mill wastewater: characterization, microbial-mediated degradation, and challenges, in Nanotechnology in Paper and Wood Engineering. 2022, Elsevier. p. 371-387. https://doi.org/10.1016/B978-0-323-85835-9.00011-8
  3. Tripathy, A., P. Dixit, and A. Panigrahi, Impact of effluent of Pulp & Paper industry on the flora of river basin at Jaykaypur, Odisha, India and its ecological implications. Environmental Research, 2022. 204: p. 111769. https://doi.org/10.1016/j.envres.2021.111769
  4. Yekani, N.H., et al., Design and annual operation of full scale landfill leachate plant in Iran: focus on multistage membrane technology. Chemical Papers, 2022. 76(7): p. 4509-4521. https://doi.org/10.1007/s11696-022-02108-0
  5. Sharma, P. and S.P. Singh, Pollutants characterization and toxicity assessment of pulp and paper industry sludge for safe environmental disposal. Emerging Treatment Technologies for Waste Management, 2021: p. 207-223. https://doi.org/10.1007/978-981-16-2015-7_10
  6. de Azevedo, A.R., et al., Characterizing the paper industry sludge for environmentally-safe disposal. Waste Management, 2019. 95: p. 43-52. https://doi.org/10.1016/j.wasman.2019.06.001
  7. Zare Abyaneh, H., Evaluation of multivariate linear regression and artificial neural networks in prediction of water quality parameters. Journal of Environmental Health Science and Engineering, 2014. 12: p. 1-8. https://doi.org/10.1186/2052-336X-12-40
  8. Hur, J., et al., Estimation of biological oxygen demand and chemical oxygen demand for combined sewer systems using synchronous fluorescence spectra. Sensors, 2010. 10(4): p. 2460-2471. https://doi.org/10.3390/s100402460
  9. Dogan, E., et al., Application of artificial neural networks to estimate wastewater treatment plant inlet biochemical oxygen demand. Environmental progress, 2008. 27(4): p. 439-446. https://doi.org/10.1002/ep.10295
  10. Suen, J.-P. and J.W. Eheart, Evaluation of neural networks for modeling nitrate concentrations in rivers. Journal of water resources planning and management, 2003. 129(6): p. 505-510. https://doi.org/10.1061/(ASCE)0733-9496(2003)129:6(505)
  11. Aghdam, E., et al., Predicting quality parameters of wastewater treatment plants using artificial intelligence techniques. Journal of Cleaner Production, 2023. 405: p. 137019. https://doi.org/10.1016/j.jclepro.2023.137019
  12. Häck, M. and M. Köhne, Estimation of wastewater process parameters using neural networks. Water Science and Technology, 1996. 33(1): p. 101-115. https://doi.org/10.2166/wst.1996.0010
  13. Fan, R., S. Wang, and H. Chen, A COD measurement method with turbidity compensation based on a variable radial basis function neural network. Analytical Methods, 2023. 15(40): p. 5360-5368. https://doi.org/10.1039/D3AY01537H
  14. Akbar, M.A., et al., Identification and Quantification of Aqueous Disinfectants Using an Array of Carbon Nanotube-Based Chemiresistors. ACS Applied Engineering Materials, 2023. 1(11): p. 3040-3052. https://doi.org/10.1021/acsaenm.3c00505
  15. Cheng, Q., et al., Novel Ensemble Learning Approach for Predicting COD and TN: Model Development and Implementation. Water, 2024. 16(11): p. 1561. https://doi.org/10.3390/w16111561
  16. Hamed, M.M., M.G. Khalafallah, and E.A. Hassanien, Prediction of wastewater treatment plant performance using artificial neural networks. Environmental Modelling & Software, 2004. 19(10): p. 919-928. https://doi.org/10.1016/j.envsoft.2003.10.005
  17. Zhang, S.-Z., S. Chen, and H. Jiang, A back propagation neural network model for accurately predicting the removal efficiency of ammonia nitrogen in wastewater treatment plants using different biological processes. Water Research, 2022. 222: p. 118908. https://doi.org/10.1016/j.watres.2022.118908
  18. Ekinci, E., et al., Application of machine learning algorithms and feature selection methods for better prediction of sludge production in a real advanced biological wastewater treatment plant. Journal of Environmental Management, 2023. 348: p. 119448. https://doi.org/10.1016/j.jenvman.2023.119448
  19. Gambella, C., B. Ghaddar, and J. Naoum-Sawaya, Optimization problems for machine learning: A survey. European Journal of Operational Research, 2021. 290(3): p. 807-828. https://doi.org/10.1016/j.ejor.2020.08.045
  20. Zhang, F. and L.J. O’Donnell, Support vector regression, in Machine learning. 2020, Elsevier. p. 123-140. https://doi.org/10.1016/B978-0-12-815739-8.00007-9
  21. Freedman, D.A., Statistical models: theory and practice. 2009: cambridge university press. https://doi.org/10.1017/CBO9780511815867
  22. Rencher, A.C. and W.F. Christensen, Chapter 10, multivariate regression-Section 10.1, introduction. Methods of multivariate analysis, Wiley Series in Probability and Statistics, 2012. 709: p. 19. https://doi.org/10.1002/9781118391686
  23. Seal, H.L., Studies in the History of Probability and Statistics. XV The historical development of the Gauss linear model. Biometrika, 1967. 54(1-2): p. 1-24. https://doi.org/10.1093/biomet/54.1-2.1
  24. Peter, S.C., et al., Quantitative structure-activity relationship (QSAR): modeling approaches to biological applications. 2019. https://doi.org/10.1016/B978-0-12-809633-8.20197-0
  25. Talha, M., S. Boulaknadel, and D. Aboutajdine, Enhancing Performance of Hybrid Named Entity Recognition for Amazighe Language. Machine Learning Paradigms: Theory and Application, 2019: p. 211-232. https://doi.org/10.1007/978-3-030-02357-7_10
  26. Hastie, T.J., Generalized additive models, in Statistical models in S. 2017, Routledge. p. 249-307. https://doi.org/10.1201/9780203738535-7
  27. Rubinstein, Y.D. and T. Hastie. Discriminative vs Informative Learning. in KDD. 1997.
  28. Wood, S.N., N. Pya, and B. Säfken, Smoothing parameter and model selection for general smooth models. Journal of the American Statistical Association, 2016. 111(516): p. 1548-1563. https://doi.org/10.1080/01621459.2016.1180986