1. Introduction
Water pollution has continually been a major risk and challenge facing the world. With advancements in water treatment technology, the processes involved have become increasingly intricate. The urban wastewater treatment system represents a complex and highly nonlinear industrial control process, characterized by time delays and time-varying attributes [
1]. At present, most WWTPs still rely on extensive management models. These are mainly based on manual experience and traditional process parameters. For example, the staff judges the amount of carbon sources to be added based on their experience. However, this method may not be accurate enough and has lags, because changes in water quality and quantity can lead to changes in the amount of carbon sources required. In addition, traditional monitoring methods are time-consuming. Moreover, test results are easily affected by environmental factors. Consequently, it becomes difficult for WWTPs to predict changes in water quality parameters and concentrations in advance, and to implement corresponding controls [
2,
3]. Especially in typical scenarios, such as low C/N (such as C/N = 3) [
4,
5], low water temperatures, and rainstorms, challenges arise for WWTPs. The extensive regulation mode, lacking a scientific operation strategy, exacerbates these challenges [
6]. It not only increases the risk of discharging substandard effluent but also leads to low efficiency and high treatment costs. Thus, there is an urgent need to develop operational control strategies tailored to these typical scenarios.
Research on the operational control strategies of WWTPs is based on the premise that COD and TN effluent meet the standard. Therefore, achieving accurate and real-time prediction of effluent quality is crucial for advancing research on WWTPs’ operational control strategies. Mechanism models have been widely used in the simulation of wastewater treatment processes under different operational schemes [
4]. However, the application of these models is often complex, involving intricate mathematical formulas and cumbersome operations to describe the treatment process and design parameters [
7]. In the water treatment industry, promoting the informatization and intelligent construction of wastewater treatment has become the focus topic of many experts and researchers. In recent years, a variety of machine learning algorithms have been widely used in water quality prediction, including SVM [
8,
9], RF [
10], FNN [
11], CNN [
12], LSTM [
13], and GRU. These algorithms have stronger non-linear relationship expression ability, which can learn the complex dynamic changes in the wastewater treatment process and achieve accurate prediction of the wastewater treatment effect. At the same time, they are driven by data and can extract key features from large datasets. They can reflect the interaction relationship between various factors in the sewage treatment process and provide a scientific basis for the formulation of operational strategies.
To realize the scientific operation and control of WWTPs, this study established the stacked LSTM-GRU model to predict the effluent quality of the WWTP, and realized the accurate prediction of the effluent COD and TN. With the help of the LSTM-GRU model, the carbon source dosage and DO concentration in the three typical scenarios of low C/N, low water temperature, and high water temperature are coordinated to develop a quantitative and scientific operation strategy. The main contributions of this study are as follows:
Constructing an effluent quality prediction model for WWTPs applying LSTM-GRU;
Achieving synergistic regulation of carbon source dosage and DO concentration in three typical operational scenarios;
Providing a scientific basis for regulating operational parameters of WWTPs in typical scenarios.
2. Related Works
Low C/N is one of the typical scenarios of WWTPs. When treating wastewater with low C/N, denitrification becomes difficult due to the lack of carbon sources [
14]. Usually, measures such as increasing carbon source dosage, increasing aeration rate, and adding chemicals are taken to ensure denitrification efficiency. These additional measures not only increase the operation cost but also may have a negative impact on the subsequent treatment process. Therefore, how to optimize the operation parameters and reduce the cost under the premise of ensuring the treatment effect has become an important research topic. Secondly, the ambient temperature, as an unalterable external factor, also has an important impact on the effect of wastewater treatment. Significant differences in microbial metabolic rates under different water temperatures lead to changes in treatment effects [
15]. Different operational control strategies are needed for different water temperature conditions. However, improper operational control strategies will lead to an increase in operating costs. Therefore, it is particularly important to carry out strategic research on WWTPs in different typical scenarios to achieve more targeted regulation. At present, the main parameters for the operational control of the WWTP are DO [
16,
17] and the carbon source dosage. These two control parameters not only directly affect the treatment effect but also affect the cost of WWTP. DO concentration directly affects the activity of aerobic microorganisms, and then affects the removal efficiency of organic matter and ammonia nitrogen. The external carbon source [
18], such as methanol and sodium acetate, is the key factor to promote the denitrification process, which helps to improve the TN removal efficiency. Therefore, reasonable control of carbon source dosage and DO concentration is very important to ensure the treatment effect and reduce energy consumption.
The water quality prediction technology can realize the early warning of water quality and ensure that the effluent of the wastewater treatment system meets the standard. It can also optimize the processing flow and operation parameters for engineers or intelligent control systems [
19]. In the current research field of water quality prediction, there are mainly two types of models: mechanism prediction model [
20,
21] and data-driven prediction model [
22]. Although the mechanism model can reveal the internal mechanism of water quality change in theory, its practical application faces many challenges [
23], such as complex parameter calibration, high calculation cost and poor adaptability to complex working conditions. The data-driven prediction model shows significant advantages in practical applications. The wastewater treatment process is nonlinear, complex and multi-factor coupling [
24]. Machine learning algorithms, especially SVM, RF, and extreme learning machine models [
25], can capture these nonlinear relationships in a large amount of operation data and water quality data, and effectively predict the water quality data at a certain time in the future. Based on the prediction results, the operation management personnel can timely adjust the operation parameters, such as carbon source dosage and aeration rate, to cope with the changes of different working conditions. Wang et al. [
26] used RF model, XGBoost model and LightGBN model to predict total suspended solids and Total Phosphorus (TP) in the effluent from WWTP in Sweden. LSTM model can capture the long-term dependence in time series data and is widely used in water quality prediction [
27]. Meng et al. [
28] designed an improved LSTM-OBE algorithm, which combines the minimum trace optimal boundary ellipsoid algorithm with LSTM to predict the effluent biochemical oxygen demand. The results show that the MAE and RMSE of LSTM-OBE algorithm are 0.06 and 0.07, which are lower than other machine learning models. As a simplified version of the LSTM model, the GRU [
29] model is widely used in many fields, such as speech recognition [
30], time series prediction [
31,
32], and so on, due to its simple structure, fewer parameters, superior performance and other characteristics.
Based on a review of relevant studies, two key research gaps have been identified. First, operational control in WWTPs primarily relies on manual experience, lacking scientifically grounded and detailed strategies. This limitation becomes particularly evident under conditions of low influent C/N and extreme water temperatures. In the context of carbon peaking and carbon neutrality goals, the current control methods struggle to meet these objectives. Second, while most research focuses on developing predictive models using various machine learning techniques, studies on the practical application of these models remain insufficient. There is a lack of research integrating predictive models with real-world control challenges in the daily operation of WWTPs.
The key novelty statements of this study are as follows. First, a deep learning-based effluent quality prediction model is established and validated. The proposed stacked LSTM-GRU model effectively processes time-series monitoring data from a WWTP in Rizhao City, accurately predicting effluent COD and TN concentrations in a timely manner. Additionally, the prediction model is applied to determine optimal operational control strategies, including carbon source dosage and DO concentration, under low C/N, low water temperature, and high water temperature scenarios. The primary objective is to develop scientifically sound and practical control strategies that ensure compliance with discharge standards while minimizing operating costs.
5. Conclusions
To ensure stable treatment efficiency, wastewater treatment plants (WWTPs) must maintain consistent performance, particularly under conditions of influent quality fluctuations and environmental changes. This study proposes operational control strategies for three typical scenarios: low C/N, low water temperature, and high water temperature. These strategies are developed based on the stacked LSTM-GRU prediction model, which was validated using monitoring data from a WWTP in Rizhao City. The optimal control strategies for carbon source dosage and DO concentration were identified. The key findings are as follows:
- (1)
The LSTM-GRU model accurately predicts effluent COD and TN concentrations. Compared to the SVR and RF models, it demonstrates superior predictive performance, with lower RMSE values of 1.988 and 0.698, respectively;
- (2)
Based on the LSTM-GRU model, optimal control strategies for carbon source dosage and DO concentration under the three scenarios were determined, as summarized in
Table 6.
The water quality prediction model constructed in this study has only been verified in a WWTP so far. The water quality characteristics, treatment processes, and operating conditions of different WWTPs may vary, and these factors may affect the predictive performance of the model. With the continuous improvement of computing power and technological breakthroughs, in the future, the strong nonlinear capability of machine learning could provide more opportunities to solve the simulation, optimization, and control problems of wastewater treatment processes. For instance, applying machine learning methodology in predicting free nitrous acid and nitrogen removal rate of anammox processes.