Optimization of TCN-BiLSTM for dissolved oxygen prediction based on improved sparrow search algorithm
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
기본 정보
- 저자
- DOI
- 10.1038/s41598-025-15674-6
- 저널
- Scientific Reports
- 발행년도
- 2025
- 발행기관
- Nature Portfolio
- 피인용수
- 1
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41598-025-15674-6
- 토픽
- Analytical Chemistry and Sensors
- OpenAlex ID
- W4413376166
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 68,590자
본문 펼치기
섹션 본문 71문단 · 36,303자
(제목 없음)
1Dissolved oxygen (DO) is a crucial indicator of water quality in river ecosystems, and its accurate prediction plays a vital role in the protection and sustainable utilization of these ecosystems.However, current DO prediction models often struggle with issues such as noise in the water quality data and insufficient feature extraction.To address these challenges, this paper proposes a dissolved oxygen prediction method based on an improved sparrow search algorithm optimized TCN-BiLSTM (SMI-TCN BiLSTM).Initially, the Savitzky-Golay (SG) filter is employed to denoise the water quality data, producing smoother and more consistent datasets.Next, the Maximum Information Coefficient (MIC) is applied to quantify the correlation between input features, enabling the identification and selection of key influencing factors.In addition, the traditional Temporal Convolutional Network (TCN) often fails to capture the dynamic fluctuations present in DO data, resulting in suboptimal prediction performance.To overcome this limitation, a Bi-directional Long Short-Term Memory (BiLSTM) network is integrated into the TCN framework, forming a TCN-BiLSTM prediction module.This module effectively captures both forward and backward temporal dependencies, improving the model's ability to track the dynamic trends in the data and enhancing its prediction accuracy.Finally, to address the stochastic nature of hyperparameter optimization in the TCN-BiLSTM module, we introduce an improved Sparrow Search Algorithm (ISSA).The ISSA is applied to optimize the hyperparameters of the TCN-BiLSTM model, thereby improving the overall prediction performance.To validate the proposed model, experiments are conducted on real datasets and compared with other water quality prediction models.The experimental results demonstrate that our method achieves the best prediction results.
2As a critical component of freshwater ecosystems, predicting river water quality parameters is essential for supporting the sustainable development of the water quality environment.DO concentration is one of the key indicators for water quality assessment, and it is closely influenced by factors such as water temperature, air pressure, air temperature, etc.When DO concentration is too low, it negatively impacts the survival of aquatic organisms and disrupts the ecological balance.Conversely, excessively high DO concentration can lead to eutrophication, odor, acidification, and an increase in harmful substances, thus affecting the water quality.Therefore, accurately predicting DO concentration is essential for assessing water quality and enabling timely and effective water quality management 1 .
3In recent years, with the development of artificial intelligence technology, data-driven modeling has been widely used in water quality prediction.Currently, water quality prediction research methods include the following three main categories: traditional prediction methods, machine learning prediction methods, and combined prediction methods.Traditional statistical methods include autoregressive (AR), autoregressive integral moving average (ARIMA) 2 , Markov model 3 , rely on time-series approximation for prediction.While these methods have been widely used, they tend to have limited learning capabilities and often fail to capture 1.We proposed a hybrid prediction model of dissolved oxygen SMI-TCN-BiLSTM.Aiming at the fact that TCN cannot effectively capture the dynamic trend of the fluctuating data in the prediction process, which reduces the prediction performance, and the dissolved oxygen has the feature of large diurnal temperature difference, we introduced BiLSTM to build the TCN-BiLSTM combined prediction model, and BiLSTM captures the forward and backward rule features of the time series data, which is helpful for obtaining the dynamic trend of the data and improves the prediction performance of the model, and applied the ISSA optimization algorithm to solve the hyperparameter selection problem in the TCN-BiLSTM prediction module.Performance, and apply ISSA optimization algorithm to solve the hyperparameter selection problem in TCN-BiLSTM prediction module.2. We propose the ISSA optimization algorithm.To address the issue of the SSA getting trapped in local optima, we investigate three key strategies: initializing the population using tent chaotic mapping, employing a butterfly optimization strategy, and introducing an adaptive T-distribution mutation technique to enhance its ability to find the optimal hyperparameters.These strategies overcome the traditional SSA's tendency to converge prematurely, enhance its ability to find optimal solutions, and improve the algorithm's convergence speed.3. We conduct experiments using a real river water quality dataset, comparing our model with nine other mainstream models to demonstrate the better predictive performance of the proposed approach.
4The main content of this article is arranged as follows: Section "Materials and methods" introduces the source of the dataset and the research methods used in this article; Section "Experimental evaluation" conducts experimental evaluations, including the experimental results on real datasets, and compares the model proposed in this paper with other widely used models.Section 4 summarizes and looks forward to the contributions of this article.
Materials and methods
5In this section we are organized as follows, Section "Description of the study area and data sources" gives a brief description of the study area as well as on the dataset; Section "Savitzky-Golay filter" introduces the SG filter; Section "Maximum information coefficient-based feature selection" outlines the MIC related content; Section "TCN and BiLSTM" we respectively introduced the TCN and BiLSTM models; Section "Improved sparrow search algorithm" elaborates on the introduction of the three strategies to improve the original sparrow algorithm; and Section "SMI-TCN-BiLSTM dissolved oxygen prediction model" describes the entire prediction process framework structure of the model.
Description of the study area and data sources
6The experimental data were collected from real-time monitoring real data of a river in Ying Jiang District, Anqing City, Anhui Province.The specific geographic location of the study area is shown in Fig. 1.The river has an approximate depth of 50 m and is equipped with various types of sensors, providing a solid foundation for water quality monitoring.As an important tributary of the Yangtze River, it is crucial to monitor changes in its water quality.The data are collected by water quality sensors and a small meteorological station.The monitoring indicators include both water quality and meteorological data Specifically, 11 indicators were recorded, comprising water quality parameters such as water temperature, dissolved oxygen, and pH, as well as meteorological parameters, including temperature, humidity, atmospheric pressure, wind direction, wind speed, rainfall, PM2.5, PM10.These indicators are collected every 30 min by the sensors and stored on a server, allowing for real-time access through a terminal.A detailed descriptive of the raw water quality data is shown in Table 1.The standardized variance is an important measure of the degree of dispersion of the data, indicating the extent to which the data points deviate relative to the mean.In forecasting, a smaller standard variance indicates that the forecast is more stable and less susceptible to extreme values.
Savitzky-Golay filter
7In order to reduce the impact of noise on the model prediction effect in the original water quality dataset, this paper utilizes the Savitzky-Golay to denoise the original water quality dataset.The SG filter, proposed by Savitzky and Golay in 1964, widely used for smoothing and denoising data stream.It is a time-domain filtering method based on local polynomial least-squares fitting.One of the key advantages of the SG filter is its ability to denoise while preserving the shape and width of the signal [23][24][25] .
Maximum information coefficient-based feature selection
8MIC can effectively capture the degree of correlation between variables and has been widely used in various fields.With sufficient data samples, MIC can detect both linear and nonlinear relationships between variables 26,27 , thus responding to the degree of correlation between water quality indicators and meteorological indicators.The monitoring of IoT devices obtains a variety of characteristic parameters involving water bodies and meteorology.However, an excess of parameters can negatively impact model training speed and prediction performance.Features that are weakly correlated or irrelevant to the prediction of dissolved oxygen can reduce the model's accuracy 28 .Therefore, it is necessary to further select the most relevant features for prediction.At present, commonly used correlation coefficient analyses include Pearson correlation coefficient analysis, Spearman correlation coefficient analysis, etc.However, some of the correlation analysis methods mentioned above have some issues in terms of applicability, computational complexity, robustness, and other characteristics.The idea of MIC is to discretize the relationship between two variables in a two-dimensional space.Dividing a certain number of intervals in the x and y directions in two-dimensional space and examining the scatter points falling into each square solves the problem of difficult joint probability calculation in mutual information.
TCN and BiLSTM
9TCN uses convolutional operations to capture temporal dependencies within sequences and has been applied in many continuous tasks.Zhao et al. 29 demonstrated that TCN outperforms variant networks, such as RNN, in analyzing longer sequence inputs.This feature facilitates parallel computation, model simplification and prevents gradient explosion.The TCN model mainly consists of causal convolution, extended convolution, and residual connectivity.The structure of the neural network of TCN is shown in Fig. 2 From a modeling perspective, however, the TCN model alone is not sensitive enough to the time-series nature of water quality data.Although TCN effectively capture local features, they struggle to adapt to sudden events, trend changes, or sharp fluctuations in the time series, leading to reduced prediction effectiveness.This is particularly problematic in complex water quality data, where fluctuations are common.
10LSTM network can process only forward information to make predictions, while BiLSTM 30 network, based on LSTM network, adopts a bidirectional design that allows them to integrate both forward and backward information.This bidirectional approach enhances prediction accuracy by incorporating the temporal dependencies in both directions of the time series.The structure of the BiLSTM network is shown in Fig. 3. BiLSTM is highly sensitive to time-series data, enabling it to better adapt to the dynamic changes, and capture the dependencies within water quality data more effectively.
Improved sparrow search algorithm
11Sparrow Search Algorithm (SSA) was proposed by Jiankai Xue et al. in 2020.It has been found that the quality of the initial population affects the overall performance of the SSA.In this paper, an improved SSA (ISSA) based algorithm is proposed to address the shortcomings of SSA.
12The standard SSA uses a random initialization population, but its distribution is often uneven, which may lead to insufficient early diversity in the population, thereby affecting the global search ability.Tent mapping is a chaotic mapping method with good traversal, uniformity, and initial sensitivity, which can effectively enhance the distribution uniformity and diversity of the initial population.By introducing Tent chaotic mapping to initialize individual positions, it helps to cover a wider search space and improve the algorithm's ability to jump out of local extremum points.The update strategy of discoverers in SSA has a certain global search ability, but it is still prone to getting stuck in local optima in complex multimodal functions.The Butterfly Optimization Algorithm (BOA) Chaotic mapping is known for its randomness and traversal, which can well overcome the issue of uneven population distribution.It is commonly used to generate chaotic sequences that improve the initialization process of population optimization algorithm.In this paper, we use tent chaotic mapping, which has a broader coverage and more uniform distribution, making it ideal for initializing the population.The mathematical expression for tent chaotic mapping is shown in Eq. ( 1): The expression of the Tent mapping through the Benuli-displacement transformation is shown in Eq. ( 2):
13However, in tent chaotic sequences there are characteristics such as small period, instability, etc., to avoid the above characteristics, some researchers have introduced random variables on the tent mapping expression and improved the expression as shown in Eq. ( 3):
14The transformed expression is then obtained by Bernoulli as shown in Eq. ( 4):
15In this paper, the initial position of the sparrow population in the feasible domain is obtained by introducing the improvement is tent chaotic perturbation to avoid it falling into local optimality, and the initial position of the sparrow population in the feasible domain is obtained by Eq. ( 5).
16where, ub id and lb id are the upper and lower bounds representing the feasible solution interval, respectively, x id is the mapped individual, and X id is the variable generated by Eq. ( 4).
17The SSA algorithm's position update formula for the discoverer tends to converge prematurely toward the zero point in the early stages of iteration, which can trap the algorithm in local optima.To mitigate this, we introduce the global search phase from the BOA to improve the position update strategy.The modified position update formula is shown in Eq. ( 6):
18where r is a random number between 0 and 1,X t best is the current iteration of the global optimal solution.ƒ i is the optimal fitness value.
19The formula for updating the position of the joiner is shown in Eq. ( 7):
20where i denotes the number of joiners; n denotes the total number of sparrows; X p is the best position currently occupied by the discoverer; X t worst indicates the current global worst position; A denotes a 1 × d matrix in which each element is randomly assigned a value of 1 or -1, and
21The formula for updating the position of a sparrow that realizes the danger is shown in Eq. ( 8):
22where x t best is the current global optimal position;βas a step control parameter, it is a random number that obeys a normal distribution with mean 0 and variance 1; 1] is a random number indicating the direction of the sparrow's movement and also the step control parameter; ƒ is the fitness value of the current sparrow individual; fg and fw are the current global maximum and minimum fitness values, respectively; ε is the smaller constant so that the denominator does not appear to be zero.
23To further address the issue of the population becoming concentrated around local optima, reducing diversity and impeding the algorithm's ability to escape local solutions, we introduce an adaptive T-distribution variation strategy to update the sparrow positions.The advantage of T-distribution lies in its integration of the characteristics of both the Cauchy and Gaussian distributions, improving the algorithm's ability and robustness to escape local optima.The formula for this update is shown in Eq. ( 9):
24where x t i is the position of the variant sparrow, xi is the position of sparrow i, iter is the current iteration number, and t(iter) is the T-distribution with the degrees of freedom parameterized by the number of iterations.
SMI-TCN-BiLSTM dissolved oxygen prediction model
25Water quality data are inherently complex and nonlinear, with unstable time series data that present challenges for accuracy prediction using a single method is limited.To improve accuracy of water quality prediction, this paper utilizes the SG filter to denoise the original time series data and the MIC to select the indicator factors with high correlation with dissolved oxygen.Since the performance of neural network models is highly sensitive to their parameters, this study conducts hyper-parameter optimization through ISSA to fine-tune the combined TCN-BiLSTM prediction module.The optimal parameter set obtained is then used for DO prediction.The overall experimental workflow mainly divided into the following steps in Fig. 4.
26The TCN-BiLSTM-based model proposed in this paper consists of one input layer, five TCN modules, one BiLSTM layer, two fully connected layers, and The TCN consists of a five-layer structure, the first layer consists of causal dilation convolution, the size of convolution kernel is 7, the dilation factor is 1, and the number of filters is 32.The dilation factors of the second, third, fourth, and fifth layers of the network are 2, 4, 8, and 16, respectively, and the rest of the parameters are the same as that of the first layer of the network.To compensate for the time series insensitivity of TCN to dissolved oxygen information, the effective features extracted by TCN are transmitted to the BiLSTM layer, which is used to extract the long-term dependence from the forward and backward directions, respectively, through bidirectional LSTM.Then the fully connected layers are followed and finally the predicted dissolved oxygen concentration values are output through the output layer.
27Step1: Data denoising.During the data collection process at water quality monitoring stations, issues such as sensor malfunctions, network failures, and communication errors often lead to missing or anomalous data.These irregularities can result in significant deviations between predicted and actual water quality values.To enhance prediction accuracy, it is essential to preprocess the raw water quality data by cleaning and denoising it.In this paper, the SG filter is used to denoise the original data.Additionally, to mitigate the impact of outlier values on model predictions, data normalization is performed.Specifically, Min-Max normalization 31 is applied to scale the data to a range of 0 to 1, ensuring that the variables are suitable for input into the model.
28Step2: Feature selection.After data denoising, feature selection will be performed for all parameter indicators.Using the method of MIC, the correlation coefficient between each index affecting DO change and DO will be calculated.The key index with significant influence will be selected as the input of the model to determine the input index system of the DO prediction model.
29Step3: Model construction.Based on the data denoising and feature selection, the TCN-BiLSTM module is optimized using ISSA to fine-tune the hyperparameters.This results in the development of the SMI-TCN-BiLSTM prediction model, which incorporates the optimal parameter values identified through the optimization process.
30Step4: Evaluation and analysis.We use real data from real-time monitoring of a river in Ying Jiang District, Anqing City, Anhui Province, to validate and evaluate the performance of the proposed SMI-TCN-BiLSTM
Denoising process
31For the phenomenon of missing data in the water quality data, we excluded data points with a missing duration of three hours.For the remaining missing values, we use linear interpolation method to fill.After preliminary processing, a total of 4000 data points, spanning from August 15, 2023 to November 9, 2023, were retained.
32Water quality data are inevitably collected with noisy data and data drift due to its complex monitoring environment.In this paper, a Savitzky-Golay filter is used to denoise the dataset, reducing noise interference and minimizing the impact of local outliers on the overall data trends.In SG filter, window size (W) and highest order term (R) play crucial roles in determining the filter's effectiveness.Figures 5 and 6 illustrate the DO time series after filtering with SG filters, using different W and R.
33As can be seen in Fig. 6, as R increases, the data smoothing becomes less effective, while too low an R also changes the trend of the data.Similarly, Fig. 5 reveals that at sample point 210, the filter with W = 5 produces the most consistent result with the original data trend, while larger values of W distort the data's trend.From Fig. 6, it is also evident that at sample point 210, the trend most closely aligns with the original data when R = 4, As shown in Fig. 7, a randomly selected graph of DO changes over the course of a day was plotted.Dissolved oxygen is compared with the original data set before and after using the SG filter.It is clear that the denoised data show a clear smoothing trend, with a significant reduction in noise and local perturbations.
Feature selection
34A heat map of the MIC correlation analysis is shown in Fig. 8 From the figure, it can be seen that the correlation with predicted dissolved oxygen (DO) is from high to low, followed by water temperature (WT), pH, air pressure (AP), and air temperature (AT).The correlation coefficients were 0.66, 0.47, 0.44 and 0.41, respectively.Among them, water temperature (WT) and pH had the highest correlation with DO, followed by air pressure (AP) and air temperature (AT).Therefore, the variables with little correlation with DO were removed, and the final features used for model training were reduced to four features: water temperature (WT), pH, air pressure (AP), and air temperature (AT).
Model evaluation criteria
35In this paper, we choose five indicators as criteria for water quality prediction, which are mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE), and coefficient of determination (R 2 ).The formulas are shown in Eqs.(10-14).
Experimental setup
36The experiments in this paper were conducted under Windows operating system, configured to handle Intel Core i5-12490F 3GHz CPU, 16GB RAM and NVIDIA GeForce RTX 3060 Ti.The experimental environment was Pycharm2021.3,which was completed based on the Tensorflow framework.In order to determine the appropriate time step, this paper investigates the effect of different time steps in the sliding window on the DO prediction model and tests it on the river monitoring dataset in Anqing City, Anhui Province.Figure 9 shows the RMSE and MAE values corresponding to different window steps.
37As shown in Fig. 9, the RMSE and MAE of the prediction model reach the lowest value when the window size T = 5.When T increases from 5 to 9, the RMSE tends to increase.Therefore, in the experiments of this paper, we choose T = 5.
38Since the setting of model parameters will have a certain impact on the overall prediction, in order to ensure the consistency of the experimental results, this paper sets the same model parameters on the same dataset.The specific situation is shown in Table 2.
Comparison experiment
39To evaluate the performance of the proposed model, we compare it with several mainstream water quality prediction models.This includes single models BP, SVR, LSTM, BiLSTM, and current mainstream models such as CNN-LSTM 32 , TCN-LSTM 33 , and CNN-GRU-Attention 14 .The various performance metrics of each model are shown in Table 3.
40From Table 3, it is evident that all the models can realize the prediction of dissolved oxygen, but with different effects.The SMI-TCN-BiLSTM model proposed in this paper, achieved the following evaluation metrics: RMSE = 0.0132, MAE = 0.1147, MAPE = 0.0851, R2 = 0.96%, and R = 98.43%.In comparison, the single models BP, SVR, and BiLSTM exhibited higher RMSE values of 0.317, 0.182, and 0.1571, representing increases of 63.8%, 36.9%, and 27% relative to the SMI-TCN-BiLSTM model.For the combined models, TCN-LSTM has an RMSE of 0.2081, CNN-LSTM has an RMSE of 0.1711, CNN-GRU-Attention has an RMSE value of 0.1738, TCN-BiLSTM has an RMSE value of 0.1566.SSA-TCN-BiLSTM provided an RMSE of 0.1501, indicating increases of 44.88%, 32.96%, 34%, 26.76%, 23.58%, respectively, compared to the proposed SMI-TCN-BiLSTM model.These results confirm that the SMI-TCN-BiLSTM model performs best on the pre-processed dataset.To provide a more intuitive understanding of the prediction performance, Fig. 10 visualizes the prediction results of the different models.Specifically, the first 400 samples from 20% of the test set are shown, with the results divided into four images, each containing 100 predicted values.
41As shown in Fig. 10, while all models are capable of predicting dissolved oxygen concentrations, the actual prediction results differ considerably.Traditional neural network models, such as BP and SVR, show significant discrepancies.These models are essentially static and fail to account for the time-dependent relationships inherent in time series data, leading to poor prediction accuracy.In contrast, the hybrid models generally outperform the single models.The SMI-TCN-BiLSTM curve is closest to the true curve, followed by SSA-TCN-BiLSTM, while TCN-BiLSTM performs relatively worse.The ISSA optimizes the model parameters in TCN-BiLSTM, resulting in improved hyperparameter combinations and superior prediction performance for dissolved oxygen.The SMI-TCN-BiLSTM method proposed in this paper proves to be an effective method for enhancing prediction accuracy through various optimization techniques.It provides valuable insights for future research in the field of water quality prediction.
Alation experiment
42The four optimal hyperparameters of the neural network model were determined by ISSA: the size of the convolution kernel in the TCN was 4, the number of neurons in the BiLSTM was 32, and the optimum number of training iterations was 100, learning rate was set to 0.01.In order to verify the effectiveness of different optimization operations, ablation experiments were conducted, and the dissolved oxygen prediction results are presented in Table 4.
43As shown in Table 4, the SMI-TCN-BiLSTM model proposed in this study yields the best results on the dataset.Although all models are capable of predicting dissolved oxygen, their performance varies significantly.By applying SG filtering to the original dataset, the indicators of the SG-TCN-BiLSTM model are significantly improved.Compared with TCN-BiLSTM, the MSE, RMSE, MAE, and R 2 metrics are improved by 37.64%, 21.02%, 33.48%, and 6.15%, respectively.These improvements suggest that SG filtering effectively reduces noise in the original data, making the data smoother and, in turn, enhancing the model's predictive accuracy.Based on the SG filtering operation, we used the MIC optimization operation to screen the relevant influencing factors, from screening out the factors that have a greater impact on the dissolved oxygen as the input to the model.11, where we visualized the first 400 predicted samples from 20% of the test set.To enhance clarity, the 400 predicted values were displayed across four images, each containing 100 predictions.
44As shown in Fig. 11, we visualize the results for the first 400 prediction samples in the test set.We can visualize that the black dashed line is the zero reference line, and the closer it is to the line indicates that the model predicts better performance with less error.Compared with several other models, the error of the SMI-TCN-BiLSTM proposed in this paper is the smallest and closest to the zero reference line.It proves the effectiveness of SG filtering and MIC correlation analysis operations, which can improve the prediction accuracy well.However, the SMI-TCN-BiLSTM is not effective in predicting dissolved oxygen at certain time periods, such as the 175th sample points in Fig. 11b, the 275th sample points in Fig. 11c, and the 325th sample points in Fig. 11d.These time points correspond to transition periods between 7:00 a.m. and 12:00 p.m., during which significant temperature fluctuations occur, leading to frequent changes in dissolved oxygen levels.Additionally, the presence of numerous organisms in the river, particularly algae, contributes to fluctuations in dissolved oxygen during this period, which further complicates accurate predictions.x i 30 [-10,10] 0
45[-5.12,5.12]0 parameters are maintained for ISSA and SSA, with the population size set to 30, and the maximum number of iterations set to 1000.The parameter settings of each optimization algorithm are shown in Table 6.
46To eliminate the errors caused by randomness, 30 independent experiments were conducted for each of the six test benchmark functions.Table 7 presents the mean, standard, and optimal fitness values of PSO, BOA, WOA, SSA, and the proposed ISSA algorithms after 30 independent runs on the standard test functions.
47From Table 7, we can see that both the improved sparrow search algorithm and the sparrow counting algorithm based on the ISSA find the best fitness value on the single-peak multi-peak test function.And in terms of mean and standard deviation, the improved sparrow search algorithm is significantly due to other categories of algorithms.In order to present the superiority of the improved sparrow search algorithm more intuitively, we also plotted the iterative convergence curves of the benchmark test functions to further visualize the convergence of each algorithm and the optimization results of the algorithms.Figure 12 illustrates these convergence curves, with each curve representing the performance of a different algorithm.The horizontal axis denotes the number of iterations, while the vertical axis represents the fitness value.
48It can be intuitively found from Fig. 12 that the improved sparrow search algorithm has a faster convergence speed and better convergence results on the single-peak test function compared to the other four swarm intelligence optimization algorithms.For the multi-peak test functions (F4 and F5), the ISSA also outperforms the other algorithms in terms of convergence speed, achieving better fitness values.
Conclusion
49Water quality monitoring data exhibit strong nonlinear characteristics, and traditional machine learning models often struggle to effectively capture the complex relationships between features, leading to poor prediction performance.To address this issue, we propose a combined prediction model of dissolved oxygen based on SMI-TCN-BILSTM.First, the SG filter is applied to denoise the water quality data, and the MIC system is used to identify and extract the key factors influencing dissolved oxygen fluctuations, which are then fed into the prediction model.This process reduces the impact of noisy data and redundant information on the prediction of dissolved oxygen.Secondly, the traditional Temporal Convolutional Network often fails to capture the dynamic fluctuations present in DO data, resulting in suboptimal prediction performance.To overcome this limitation, a Bi-directional Long Short-Term Memory network is integrated into the TCN framework, forming a TCN-BiLSTM prediction module.This module effectively captures both forward and backward temporal In future work, we will also explore the model under long-term prediction.In addition, only one monitoring site's water quality data is used in this paper.Future research will incorporate data from multiple sites within the study area.This will allow us to account for spatial and temporal correlations among monitoring locations, which may further improve the prediction accuracy.
Fig. 1 .
50Fig. 1.Geographic location map of the study area.Note: Produced using Arcgis software, version number 10.8, address h t t p s : / / w w w .e s r i .c o m / e n -u s / a r c g i s / p r o d u c t s / a r c g i s -d e s k t o p / r e s o u r c e s.
51has strong exploratory ability.Introducing this strategy into the discoverer update mechanism can improve the convergence direction control ability of SSA in high-dimensional space, further enhancing the algorithm's global search performance and ability to escape local optima.The individual updates of SSA are relatively fixed and lack local perturbation ability, which affects the search accuracy in the later stage.The T-distribution has a heavy tailed characteristic and is more suitable for generating long-range disturbances to escape local optima compared to the normal distribution.By adaptively adjusting the degree of freedom parameters, the mutation gradually shifts from "heavy perturbation" to "micro perturbation", achieving a natural transition from global coarse search to local fine search, thereby improving the optimization accuracy and stability of the algorithm.
Fig. 3 .Fig. 2 .
52Fig. 3. BiLSTM structure.
Fig. 4 .
53Fig. 4. Overall prediction flowchart.
Fig. 6 .
54Fig. 6.DO time series filtered by SG filters with different R.
Fig. 5 .
55Fig. 5. DO time series filtered by SG filters with different W.
Fig. 8 .
56Fig. 8. MIC correlation analysis.
Fig. 7 .
57Fig. 7. DO comparison chart before and after using the SG filter.
Fig. 9 .
58Fig. 9. RMSE and MAE values corresponding to different window orders.
Fig. 10 .
59Fig. 10.Fitting of SMI-TCN-BILSTM with different model predictions.
60Fig. 10.(continued)
Fig. 11 .
61Fig. 11.Error profiles under different optimization operations.
Algorithm Parameters PSO ω = 1 , 2 BOA αisiteratedf rom0.1to0. 3 WOA b = 1 SSA 2 Table 6 .
62c1 = 2, c2 = ST = 0.8, P D = 0.2, SD = 0.2 ISSA ST = 0.8, P D = 0.2, SD = 0.Other parameter settings of each optimization algorithm.dependencies, improving the model's ability to track the dynamic trends in the data and enhancing its prediction accuracy.ISSA is then employed to optimize the hyperparameters of the neural network model, ensuring stable and reliable predictions by preventing the influence of random parameter choices.Based on the real-world experiments, the SMI-TCN-BILSTM prediction model is compared with the current mainstream prediction model.Experimental results show that the SMI-TCN-BILSTM model exhibits high prediction accuracy and provides valuable theoretical insights for water quality forecasting.
Fig. 12 .
63Fig. 12. Convergence curves of the 6 test functions.
Table 1 .
64Description of water quality indicators.
Table 3 .
65Comparison of SMI-TCN-BILSTM with other neural network models.The model input data in the above tables are processed with Savitzky-Golay filter and MIC to ensure fairness of the prediction results.
Table 2 .
66Parameter settings of the dataset on TCN-BiLSTM.
67The experimental results demonstrate that the MSE, RMSE, MAE, R 2 indexes of the SG-MIC-TCN-BiLSTM model compared to the SG-TCN-BiLSTM were improved by 77.25%, 47.31%, 44.38%, and 7.47%, which indicates that the MIC feature screening can reduce the information interference of the indicator data with low DO correlation and effectively improve the accuracy of the prediction model.The MSE, RMSE, MAE, MAPE and R 2 of SG-MIC-SSA-TCN-BiLSTM model reached 0.0225, 0.1501,0.1082,1.23% and 97.31% respectively.Based on the improved sparrow search algorithm we seek optimization to get a set of optimal hyperparameters, and the MSE, RMSE, MAE, MAPE, and R 2 of the SMI-TCN-BiLSTM model reached 0.0132, 0.1147, 0.0851, 0.96%, and 98.43%, respectively.The performance of the improved prediction model is better than the previous optimization algorithm.The above data well illustrate that the SMI-TCN-BiLSTM model proposed in this paper has good predictability for DO.To verify the effectiveness of the different optimization operations, we employed visualization operations to compare the prediction errors of different models.The results are shown in Fig.
Table 4 .
68Dissolved oxygen prediction effect under different optimization operations.To evaluate the performance and optimization of the ISSA algorithm proposed in this paper, six commonly used test functions F1-F6 are used for testing.Among them, F1-F3 are single-peak functions, which can better test the convergence speed and accuracy of the algorithm.Functions F4-F6 are multi-peak functions, which can better test the convergence speed and accuracy of the function as well as the ability to jump out of the local optimum.The specific information of dimensions, value ranges, and best fitness values are shown in Table5.To further verify the feasibility and superiority of the ISSA algorithm, this paper compares this algorithm with other commonly used intelligent optimization algorithms, including SSA, PSO, WOA, BOA.The same
Table 5 .
69Test function basic information.
70SSA 2.63 × 10 −10 3.22 × 10 −06 7.68 × 10 −08 1.23 × 10 −07 1.05 × 10 −11 3.25 × 10 −06 WOA 2.59 × 10 −42 1.89 × 10 −28 9.55 × 10 −09 10 −8 4.02 2.9 × 10 −08 0.05 4.48 × 10 −08 1.18 × 10 −06 SSA 1.45 × 10 −9 1.57 × 10 −05 3.14 × 10 −07 8.04 × 10 −07 5.4 × 10 −11 1.8 × 10 −05 WOA 1.37 × 10 −41 5.01 × 10 −28 4.07 × 10 −08 10 −10 7.18 × 10 −07 1.68 × 10 −09 0.18 4.21 × 10 −09 3.49 × 10 −08 10 −8 2.93 × 10 −06 2.51 × 10 −08 1.53 × 10 −07 3.65 × 10 −08 1.11 × 10 −06
Table 7 .
71Optimization results of different intelligent algorithms in test function.
참고문헌 36건
- Freshwater algal bloom prediction by extreme learning machine in Macau Storage Reservoirs Neural Computing and Applications · Springer Science+Business Media · 2014 10.1007/s00521-013-1538-0
- Framewise phoneme classification with bidirectional LSTM and other neural network architectures Neural Networks · Elsevier BV · 2005 10.1016/j.neunet.2005.06.042
- Dissolved Oxygen Prediction in Apostichopus Japonicus Aquaculture Ponds by BP Neural Network and AR Model Sensor Letters · American Scientific Publishers · 2010 10.1166/sl.2010.1208
- Prediction of Dissolved Oxygen Content in Aquaculture of Sea Cucumber Using Support Vector Regression Sensor Letters · American Scientific Publishers · 2011 10.1166/sl.2011.1396
- Evaluating statistical model performance in water quality prediction Journal of Environmental Management · Elsevier BV · 2017 10.1016/j.jenvman.2017.11.049
- Water Quality Prediction Model of a Water Diversion Project Based on the Improved Artificial Bee Colony–Backpropagation Neural Network Water · Multidisciplinary Digital Publishing Institute · 2018 10.3390/w10060806
- Analysis and Prediction of Water Quality Using LSTM Deep Neural Networks in IoT Environment Sustainability · Multidisciplinary Digital Publishing Institute · 2019 10.3390/su11072058
- Deep Temporal Convolutional Networks for Short-Term Traffic Flow Forecasting IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2935504
- Short-term water quality variable prediction using a hybrid CNN–LSTM deep learning model Stochastic Environmental Research and Risk Assessment · Springer Science+Business Media · 2020 10.1007/s00477-020-01776-2
- Lane-Level Traffic Speed Forecasting: A Novel Mixed Deep Learning Model IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tits.2020.3038457
- Predicting river dissolved oxygen time series based on stand-alone models and hybrid wavelet-based models Journal of Environmental Management · Elsevier BV · 2021 10.1016/j.jenvman.2021.113085
- Assessing the Performance of Deep Learning Algorithms for Short-Term Surface Water Quality Prediction Sustainability · Multidisciplinary Digital Publishing Institute · 2021 10.3390/su131910690
- A Long-Term Water Quality Prediction Method Based on the Temporal Convolutional Network in Smart Mariculture Water · Multidisciplinary Digital Publishing Institute · 2021 10.3390/w13202907
- Short-Term Load Forecasting Using Channel and Temporal Attention Based Temporal Convolutional Network Electric Power Systems Research · Elsevier BV · 2021 10.1016/j.epsr.2021.107761
- Dissolved Oxygen Concentration Prediction Model Based on WT-MIC-GRU—A Case Study in Dish-Shaped Lakes of Poyang Lake Entropy · Multidisciplinary Digital Publishing Institute · 2022 10.3390/e24040457
- Inner Dynamic Detection and Prediction of Water Quality Based on CEEMDAN and GA-SVM Models Remote Sensing · Multidisciplinary Digital Publishing Institute · 2022 10.3390/rs14071714
- Prediction model of drinking water source quality with potential industrial-agricultural pollution based on CNN-GRU-Attention Journal of Hydrology · Elsevier BV · 2022 10.1016/j.jhydrol.2022.127934
- Water Quality Prediction for Smart Aquaculture Using Hybrid Deep Learning Models IEEE Access · Institute of Electrical and Electronics Engineers · 2022 10.1109/access.2022.3180482
- Ultra-short-term probabilistic wind power forecasting with spatial-temporal multi-scale features and K-FSDW based weight Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.120479
- Multi-indicator water quality prediction with attention-assisted bidirectional LSTM and encoder-decoder Information Sciences · Elsevier BV · 2023 10.1016/j.ins.2022.12.091
- A modified whale optimization algorithm with multi-strategy mechanism for global optimization problems Neural Computing and Applications · Springer Science+Business Media · 2023 10.1007/s00521-023-08287-5
- Fractional multivariate grey Bernoulli model combined with improved grey wolf algorithm: Application in short-term power load forecasting Energy · Elsevier BV · 2023 10.1016/j.energy.2023.126844
- Water quality prediction based on IGRA-ISSA-LSTM model Water Air & Soil Pollution · Springer Science+Business Media · 2023 10.1007/s11270-023-06117-x
- Ensemble Empirical Mode Decomposition and a Long Short-Term Memory Neural Network for Surface Water Quality Prediction of the Xiaofu River, China Water · Multidisciplinary Digital Publishing Institute · 2023 10.3390/w15081625
- Application of Bi-LSTM method for groundwater quality assessment through water quality indices Journal of Water Process Engineering · Elsevier BV · 2023 10.1016/j.jwpe.2023.103889
- A long short-term memory-based hybrid model optimized using a genetic algorithm for particulate matter 2.5 prediction Atmospheric Pollution Research · Elsevier BV · 2023 10.1016/j.apr.2023.101836
- Application of hybrid improved temporal convolution network model in time series prediction of river water quality Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-38465-3
- Long-Term Prediction of Hydrometeorological Time Series Using a PSO-Based Combined Model Composed of EEMD and LSTM Sustainability · Multidisciplinary Digital Publishing Institute · 2023 10.3390/su151713209
- A multi-step water quality prediction model based on the Savitzky-Golay filter and Transformer optimized network Environmental Science and Pollution Research · Springer Science+Business Media · 2023 10.1007/s11356-023-29920-9
- A Combined Model for Water Quality Prediction Based on VMD-TCN-ARIMA Optimized by WSWOA Water · Multidisciplinary Digital Publishing Institute · 2023 10.3390/w15244227
- A hybrid deep learning approach to improve real-time effluent quality prediction in wastewater treatment plant Water Research · Elsevier BV · 2023 10.1016/j.watres.2023.121092
- A deep learning interpretable model for river dissolved oxygen multi-step and interval prediction based on multi-source data fusion Journal of Hydrology · Elsevier BV · 2024 10.1016/j.jhydrol.2024.130637
- Comparing ARIMA and various deep learning models for long-term water quality index forecasting in Dez River, Iran Environmental Science and Pollution Research · Springer Science+Business Media · 2024 10.1007/s11356-024-32228-x
- Dissolved Oxygen Forecasting for Lake Erie’s Central Basin Using Hybrid Long Short-Term Memory and Gated Recurrent Unit Networks Water · Multidisciplinary Digital Publishing Institute · 2024 10.3390/w16050707
- Water quality prediction using ARIMA-SSA-LSTM combination model Water Science & Technology Water Supply · IWA Publishing · 2024 10.2166/ws.2024.060
- Multivariate wind speed forecasting with genetic algorithm-based feature selection and oppositional learning sparrow search Information Sciences · Elsevier BV · 2024 10.1016/j.ins.2024.121736