Lake and reservoir type chlorophyll concentration prediction method and device and medium

Through online monitoring and preprocessing of data, combined with Informer and LSTM models, chlorophyll concentration prediction is solved, which solves the problem of existing models ignoring hydrodynamic and illumination factors, improves prediction accuracy and speed, and achieves accurate prediction of chlorophyll concentration in lakes and reservoirs. .

CN118821044AActive Publication Date: 2024-10-22TONGJI UNIV +1

Patent Information

Application Number
CN202410857111.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-22
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing models ignore the continuous influence of environmental factors such as hydrodynamics and light when predicting chlorophyll concentration in lakes and reservoirs, resulting in low prediction accuracy.

Method used

By obtaining the water quality, hydrodynamic and meteorological data of the lake and reservoir, online automatic monitoring is carried out, preprocessing and feature extraction are performed, cumulative illumination features are constructed, and chlorophyll concentration prediction is performed using the fusion prediction model (Informer and LSTM model) combined with the reciprocal error method.

Benefits of technology

It improves the accuracy of data prediction, realizes the analysis of non-linear relationships and timing effects on chlorophyll distribution, enhances the accuracy and computing speed of the prediction model, and can accurately predict chlorophyll data for a longer period of time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118821044A_ABST
    Figure CN118821044A_ABST
Patent Text Reader

Abstract

The invention relates to a lake and reservoir type chlorophyll concentration prediction method and device and a medium. The method comprises the following steps: acquiring online automatic monitoring data of water quality, hydrodynamic force and meteorology of a lake and reservoir containing a prediction point location and an upstream point location; preprocessing the online automatic monitoring data to obtain processed data; performing feature extraction on the processed data to obtain water quality features and hydrodynamic index features of the predicted point location and the upstream point location, and constructing accumulated illumination features; inputting the upstream water quality characteristics, the hydrodynamic index characteristics and the illumination characteristics into a pre-trained fusion prediction model to obtain an upstream transport chlorophyll prediction result and a time sequence influence chlorophyll prediction result, and fusing the upstream transport chlorophyll prediction result and the time sequence influence chlorophyll prediction result by using an error reciprocal method; and outputting a chlorophyll prediction result obtained by fusion. Compared with the prior art, the method has the advantages of high accuracy, high stability and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water quality data prediction, and in particular to a lake-type chlorophyll concentration prediction method, device and medium. Background Art

[0002] Eutrophication of water bodies refers to the phenomenon that lakes and other aquatic ecosystems become unbalanced due to excessive nutrient content in the water under the influence of human activities. Eutrophication has become the main problem faced by most lakes and reservoirs in the world today. It is a typical form of water pollution. Chlorophyll a is a water quality indicator that can characterize the eutrophication of water bodies and the growth of algae. Therefore, it is of great significance to understand the long-term spatiotemporal variation of chlorophyll a in lakes and reservoirs, reveal the driving factors and make predictions and forecasts for lake risk warning and effective management of key areas.

[0003] Parameter statistics and ecodynamic models have always been the traditional methods for modeling chlorophyll, and a lot of research has been done on the model prediction of chlorophyll a. However, the existing models have limited consideration of hydrodynamic conditions, and often ignore the continuous impact of environmental factors such as hydrodynamics and light on water movement and the distribution of substances in the water, resulting in the inability of the prediction model to accurately describe the changing trend of chlorophyll a. Summary of the invention

[0004] The purpose of the present invention is to provide a lake-type chlorophyll concentration prediction method, device and medium in order to overcome the defect of low accuracy in the above-mentioned prior art.

[0005] The purpose of the present invention can be achieved by the following technical solutions:

[0006] A lake reservoir type chlorophyll concentration prediction method comprises the following steps:

[0007] S1: Obtain online automatic monitoring data of water quality, hydrodynamics and meteorology of lakes and reservoirs including prediction points and upstream points;

[0008] S2: preprocessing the online automatic monitoring data to obtain processed data;

[0009] S3: Extract features from the processed data to obtain water quality characteristics and hydrodynamic index characteristics of the predicted point and upstream point, and construct cumulative illumination characteristics;

[0010] S4: Input the upstream water quality characteristics, hydrodynamic index characteristics and illumination characteristics into the pre-trained fusion prediction model to obtain the upstream transport chlorophyll prediction results and the time-series impact chlorophyll prediction results, and use the inverse error method to fuse the upstream transport chlorophyll prediction results and the time-series impact chlorophyll prediction results;

[0011] S5: The fusion prediction model outputs the fused chlorophyll prediction result.

[0012] Further, step S3 includes the following steps:

[0013] Randomly sample all water quality and hydrodynamic characteristic data in the processed data to create a decision tree; calculate the regression prediction accuracy of data outside the sample bag For out-of-bag data feature X i Apply random perturbations and calculate the regression prediction accuracy after the i-th feature perturbation Calculate X i Importance of i , the calculation expression is:

[0014]

[0015] Where P i is the importance of the i-th feature, K is the number of training samples;

[0016] P i Sort in descending order to get the feature importance ranking Q i ; Then construct the fuzzy system; the sorted features Q i Input the fuzzy system to obtain the final fuzzy system score of each feature, and select features as subsequent model input based on the fuzzy system score.

[0017] Furthermore, the calculation method of the cumulative illumination feature is:

[0018] The illumination data set is obtained by recording the illumination data of the cumulative period in reverse order. The influence of turbidity on illumination at time r is calculated according to the Lambert-Beer formula. The calculation expression is:

[0019]

[0020] Where, TA r is the turbidity influence intensity at time r, ABS is the absorption coefficient, T r is the turbidity at time r;

[0021] Calculate the time weight at time r, the calculation expression is:

[0022] TSr=eα*(r- l ag)

[0023] Where, TS r is the time weight, lag is the lag time (h), and α is the time weight factor;

[0024] Calculate the cumulative illumination after removing the lag time. The calculation expression is:

[0025]

[0026] Where AR is the accumulated illumination and h is the accumulated period.

[0027] Furthermore, the fusion prediction model includes an Informer model and an LSTM model. The Informer model obtains the upstream transport chlorophyll prediction result based on the water quality characteristics and hydrodynamic index characteristics of the upstream points. The LSTM model obtains the chlorophyll prediction result affected by the time series of the prediction points based on the water quality characteristics, hydrodynamic index characteristics and cumulative illumination characteristics of the prediction points.

[0028] Furthermore, the specific steps of the training process of the pre-trained fusion prediction model include:

[0029] S401: Input the water quality characteristics and hydrodynamic index characteristics of the upstream points into Informe r The model obtains the prediction results of upstream transport chlorophyll;

[0030] S402: Input the water quality characteristics, hydrodynamic index characteristics and cumulative illumination characteristics of the prediction point into the LSTM model to obtain the time-series impact chlorophyll prediction result;

[0031] S403: Informe r The model and the LSTM model are used as base training models, and the models are fused according to the inverse error method to obtain a fused prediction model.

[0032] Furthermore, Informe r The model is the optimized Informe r Model, the optimization method is as follows:

[0033] Step 4011: construct time feature coding, decompose the time data according to different periods, and use triangular feature coding to generate feature coding at time d:

[0034]

[0035] Where Z is the time decomposition method, is the cosine feature encoding under Z decomposition, is the sinusoidal feature encoding under Z decomposition, per Z is the period length under Z decomposition;

[0036] Step 4012: Use a multi-scale multi-layer perceptron to process the input time feature encoding, and process it into a long-time feature set L, a medium-time feature set M, and a short-time feature set S, respectively, to obtain the final multi-scale fusion feature:

[0037]

[0038] In the formula, NOR is the normalization algorithm, MLP is the multi-layer perceptron operation, c is the feature set of different scales, represents splicing, F′ LMS is the normalized fusion feature, F LMS is the final fusion time feature;

[0039] Step 4013: Input the obtained fused time features into the Informer model as input feature encoding to obtain an optimized Informer model.

[0040] Furthermore, the LSTM model is an optimized LSTM model, and the optimization method is specifically as follows:

[0041] Step 4021: Input feature T i Converted to logarithmic rate of return LT i ;

[0042] Step 4022: Use the attention mechanism to optimize the information acquisition of the LSTM algorithm;

[0043] Get LSTM processing LT i The hidden state matrix H obtained when i-w ,…,h i-1 ), use one-dimensional convolution to extract the time pattern matrix, and the calculation expression is:

[0044]

[0045] Where C is the filter, is the eigenvalue extracted by the qth filter at time p, w is the filter length, l is the padding length for convolution calculation, and W represents the maximum weight length;

[0046] The attention formula is obtained by calculating the weights:

[0047]

[0048] Where AT i is the attention vector, σ is the Sigmoid function, and WM is the weight matrix;

[0049] AT i With h i The final prediction value is obtained by adding after linear mapping;

[0050] Step 4023: Use the particle swarm algorithm to optimize the time step, learning rate, and filter length in the attention mechanism of the LSTM algorithm;

[0051] Construct a particle swarm algorithm, construct a dimensional space D with time step timestep, learning rate lr and filter length w, and randomly generate NP particles, whose positions and velocities are expressed as s z and v z (i=1, 2, ..., NP) indicates that the fitness function is the Nash efficiency coefficient NSE of the LSTM model prediction result:

[0052]

[0053] Among them, x obs,z is the actual value, x model,z is the predicted value, is the mean of the actual value, np is the amount of data;

[0054] According to the global optimal Y of all particles z and the local optimal Y of individual particle a za Update the speed and position of each particle:

[0055] v za (t+1)=ωv za (t)+c 1 r 1 (Y za (t)-s za (t))+c 2 r 2 (Y z (t)-s za (t))

[0056] s za (t+1)=s za (t)+v za (t+1)

[0057] Where t is the number of iterations, ω is the inertia weight, c 1 and c 2 is the learning factor, r 1 and r 2 is the random disturbance factor;

[0058] Use the particle swarm algorithm to iterate until the termination condition is reached, and output the time step, learning rate and filter length at this time;

[0059] Step 4023: Input the logarithmic return, attention vector, time step, learning rate and filter length into the LSTM model to obtain the prediction result.

[0060] Furthermore, the calculation expression for model fusion based on the inverse error method is:

[0061] f F =w I *fI +w L *f L

[0062]

[0063] In the formula, f I is the predicted value of upstream transported chlorophyll obtained by the Informer model, f L is the time series impact chlorophyll prediction value obtained by LSTM model, f F is the final prediction value after fusion, w I 、w L are the weight coefficients of the Informer model and the LSTM model, ε I , ε L Represent the errors of the prediction results of the Informer model and the LSTM model respectively.

[0064] A second aspect of the present invention is a lake-reservoir type chlorophyll concentration prediction device, comprising a memory, a processor, and a program stored in the memory, wherein when the processor executes the program, it implements any of the above lake-reservoir type chlorophyll concentration prediction methods.

[0065] A third aspect of the present invention is a storage medium having a program stored thereon, which, when executed, implements any of the above methods for predicting lake-type chlorophyll concentration.

[0066] Compared with the prior art, the present invention has the following beneficial effects:

[0067] 1) The present invention preprocesses the online automatic monitoring data of water quality, hydrodynamics and light, and performs feature extraction and data cleaning to improve data prediction accuracy. The upstream transport chlorophyll prediction results and the time-series impact chlorophyll prediction results are obtained by integrating the prediction model, and the nonlinear relationship and time-series impact of water quality, hydrodynamics and light on chlorophyll distribution at the upstream and prediction points are analyzed, the data stability is improved, rapid prediction is achieved, and chlorophyll data for a longer period of time can be accurately predicted.

[0068] 2) The present invention integrates the Informer and LSTM models through the inverse error method, and constructs the INFORMER-LSTM prediction model according to the model prediction result errors with different weights. It effectively integrates multiple point data of upstream and prediction points, and combines the advantages of the two models, further improving the calculation speed and prediction accuracy of the prediction model.

[0069] 3) The present invention proposes a cumulative illumination algorithm, which can construct features of illumination data more effectively. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 The present invention is a flow chart of the method.

[0071] Figure 2 This is a flow chart of the INFORMER-LSTM fusion prediction model of the present invention.

[0072] Figure 3 This is a table chart comparing the prediction accuracy of the INFORMER-LSTM fusion prediction model of the present invention, a single model, and different fusion methods.

[0073] Figure 4 This is a comparison chart of the predicted chlorophyll a concentration after 1 hour and the actual chlorophyll a concentration after 1 hour in the embodiment.

[0074] Figure 5 This is a table showing the long-term prediction accuracy of the INFORMER-LSTM fusion prediction model in the embodiment.

[0075] Figure 6 This is a comparison chart of the predicted chlorophyll a concentration after 24 hours and the actual chlorophyll a concentration after 24 hours in the embodiment. DETAILED DESCRIPTION

[0076] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0077] Example 1

[0078] The present invention is a method, device and medium for predicting lake-type chlorophyll concentration. Figure 1 As shown, the method comprises the following steps:

[0079] S1: Obtain online automatic monitoring data of water quality, hydrodynamics and meteorology of lakes and reservoirs including prediction points and upstream points;

[0080] S2: preprocessing the online automatic monitoring data to obtain processed data;

[0081] S3: Extract features from the processed data to obtain water quality characteristics and hydrodynamic index characteristics of the predicted point and upstream point, and construct cumulative illumination characteristics;

[0082] S4: Input the upstream water quality characteristics, hydrodynamic index characteristics and illumination characteristics into the pre-trained fusion prediction model to obtain the upstream transport chlorophyll prediction results and the time-series impact chlorophyll prediction results, and use the inverse error method to fuse the upstream transport chlorophyll prediction results and the time-series impact chlorophyll prediction results;

[0083] S5: The fusion prediction model outputs the fused chlorophyll prediction result.

[0084] Taking chlorophyll a as an example, the specific method is:

[0085] S1: Obtain online automatic monitoring data of water quality, hydrodynamics and meteorology of lakes and reservoirs including prediction points and upstream points;

[0086] S2: preprocessing the online automatic monitoring data to obtain processed data;

[0087] S201: Sort in ascending order based on time and remove duplicate data;

[0088] S202: Initial imputation using linear regression;

[0089] S203: Clean the data, classify and organize the acquired data according to the data type; mine the abnormal data features; use the STL time series decomposition and density clustering method to clean the data, and reconstruct the abnormal data with the sum of the trend component and the period component after the time series decomposition;

[0090] S204: Standardize the data and transform the data into a distribution with a mean of 0 and a standard deviation of 1:

[0091]

[0092] Where, X i is the data before processing, X i ′ is the processed data, μ is the mean value of the indicator, and σ is the standard deviation of the indicator.

[0093] Step 3: Select water quality and hydrodynamic index features and construct illumination features for the processed data;

[0094] The specific process of selecting water quality and hydrodynamic index features for the processed data is as follows:

[0095] All water quality and hydrodynamic characteristic data of the original data set are randomly sampled using the Boostrap framework, and finally K training samples are obtained, each with N features.

[0096] Create decision tree Y k ;

[0097] Calculate the regression prediction accuracy of out-of-bag data for this training sample

[0098] Then, the feature X of the out-of-bag data i (i=1, 2, ..., N) apply random disturbance and calculate the regression prediction accuracy after disturbance

[0099] Calculate X i Importance P of (i=1, 2, ..., N) i :

[0100]

[0101] Where P i is the importance of the i-th feature, K is the number of training samples;

[0102] P i Sort in descending order to get the feature importance ranking Q i ; Then construct the fuzzy system and establish the rule base; the sorted features Q i Input the fuzzy system to obtain the final fuzzy system score of each feature, and select features as subsequent model input based on the fuzzy system score.

[0103] The illumination feature is constructed through the cumulative illumination algorithm, which is specifically as follows:

[0104] The illumination data set is obtained by recording the illumination data of the cumulative period in reverse order, and the influence of turbidity on illumination at time r is calculated according to the Lambert-Beer formula:

[0105]

[0106] Where, TA r is the turbidity influence intensity at time r, ABS is the absorption coefficient, T r is the turbidity at time r;

[0107] Calculate the time weight at time r:

[0108] TSr=eα*(r- l ag)

[0109] Where, TS r is the time weight, lag is the lag time (h), and α is the time weight factor;

[0110] Calculate the cumulative illumination after removing the lag time:

[0111]

[0112] Where AR is the accumulated illumination and h is the accumulated period.

[0113] Step 4: Input water quality, hydrodynamic index characteristics and light characteristics into Informe r Train with the LSTM prediction model to obtain the trained INFORMER-LSTM fusion prediction model;

[0114] Depend on Figure 2 As shown in the figure, the water quality, hydrodynamic index characteristics and light characteristics are input into Informe r And LSTM prediction model is trained, the specific steps are:

[0115] Step 401: Input upstream water quality characteristics and hydrodynamic characteristics into Informe r The model obtained the prediction results of upstream transport of chlorophyll a;

[0116] Preferably, in step 401, Informe r The model is the optimized Informe r Model, the optimization method is as follows:

[0117] Construct time feature coding, decompose time data into year, season, month, week, day, and hour, and use triangular feature coding to generate feature coding at time d:

[0118]

[0119] Where Z is the time decomposition method, is the cosine feature encoding under Z decomposition, is the sinusoidal feature encoding under Z decomposition, per Z is the period length under the Z decomposition method.

[0120] The multi-scale multi-layer perceptron is used to process the input time feature encoding, which is the long-term feature set L for processing annual and seasonal features, the medium-term feature set M for processing monthly and weekly features, and the short-term feature set S for processing daily and hourly features, to obtain the final multi-scale fusion feature:

[0121]

[0122] In the formula, NOR is the normalization algorithm, MLP is the multi-layer perceptron operation, c is the feature set of different scales, represents splicing, F′ LMS is the normalized fusion feature, F LMS is the final fusion time feature.

[0123] Input the obtained fusion time features into Informe r The model is used as input feature encoding to obtain the optimized Informer model.

[0124] Step 402: inputting the water quality characteristics, hydrodynamic index characteristics and cumulative illumination characteristics of the prediction point into the LSTM model to obtain the time series impact chlorophyll a prediction result;

[0125] Preferably, the LSTM model is an optimized LSTM model, and the optimization method is specifically as follows:

[0126] Transform the input features into T i The logarithmic rate of return LT i :

[0127] LT i =ln(T i+1 )-ln(T i )

[0128] Use the attention mechanism to optimize the information acquisition of the LSTM algorithm;

[0129] Get LSTM processing LT i The hidden state matrix H obtained when i-w ,…,h i-1 ), and use one-dimensional convolution to extract the temporal pattern matrix.

[0130]

[0131] Where C is the filter, is the eigenvalue extracted by the qth filter at time p, w is the filter length, l is the padding length for convolution calculation, and W represents the maximum weight length.

[0132] The attention formula is obtained by calculating the weights:

[0133]

[0134] Where AT i is the attention vector, σ is the Sigmoid function, and WM is the weight matrix.

[0135] AT i With h i The final predicted value is obtained by adding them after linear mapping.

[0136] Use particle swarm optimization to optimize the time step, learning rate, and filter length in the attention mechanism of the LSTM algorithm;

[0137] Construct a particle swarm algorithm, construct a dimensional space D with time step timestep, learning rate lr and filter length w, and randomly generate NP particles, whose positions and velocities are expressed as s z and v z (i=1,2,...,NP). The fitness function is the Nash efficiency coefficient NSE of the LSTM model prediction result:

[0138]

[0139] Among them, x obs,z is the actual value, x model,z is the predicted value, is the mean of the actual values, and np is the amount of data.

[0140] According to the global optimal Y of all particles z and the local optimal Y of individual particle a za Update the speed and position of each particle:

[0141] v za (t+1)=ωv za (t)+c 1 r 1 (Y za (t)-s za (t))+c 2 r 2 (Y z (t)-s za (t))

[0142] s za (t+1)=s za (t)+v za (t+1)

[0143] Where t is the number of iterations, ω is the inertia weight, c 1 and c 2 is the learning factor, r 1 and r 2 is the random disturbance factor.

[0144] Use the particle swarm algorithm to iterate until the termination condition is reached, and output the time step, learning rate, and filter length at this time.

[0145] The logarithmic return, attention vector, time step, learning rate and filter length are input into the LSTM model to obtain the prediction result.

[0146] Step 403: Informe r The model and the LSTM model are used as base training models, and the models are fused according to the inverse error method to obtain the INFORMER-LSTM fusion prediction model.

[0147] The Informer model and the LSTM model are used as the base training models, and the models are fused according to the inverse error method to obtain the INFORMER-LSTM fusion prediction model. The specific steps are as follows;

[0148] f F =w I *f I +w L *f L

[0149]

[0150]

[0151] In the formula, f I is the predicted value of upstream transport chlorophyll a obtained by the Informer model, f L The time series obtained by the LSTM model affects the predicted value of chlorophyll a, f F is the final prediction value after fusion, w I 、w L are the weight coefficients of the Informer model and the LSTM model, ε I , ε L Represent the errors of the prediction results of the Informer model and the LSTM model respectively.

[0152] Step 5: Apply the INFORMER-LSTM fusion prediction model to predict the lake-type chlorophyll a concentration and obtain the prediction results.

[0153] The results of the prediction accuracy after the single model and the inverse error method are compared, such as Figure 3 As shown in the figure, we can see that the prediction accuracy of the INFORMER-LSTM fusion model in the short term of 1 hour is greatly improved compared with the single model and other fusion methods, such as Figure 4 As shown in the figure, the fusion model has a good effect in predicting chlorophyll a mutation.

[0154] like Figure 5 and Figure 6 As shown in the figure, this fusion model uses the Informer model for fusion, which solves the problem of non-stationarity of the data. It also has a good fitting effect and high prediction accuracy in the long-term prediction accuracy of 24 hours.

[0155] This embodiment also includes a lake-reservoir type chlorophyll concentration prediction device, including a memory, a processor, and a program stored in the memory. When the processor executes the program, a lake-reservoir type chlorophyll concentration prediction method provided by the present invention is implemented. The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine, or entirely on a remote machine or server.

[0156] The present embodiment also includes a storage medium on which a program is stored, and when the program is executed, a lake-type chlorophyll concentration prediction method provided by the present invention is implemented. The readable medium may be a tangible medium, which may contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0157] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A lake-type chlorophyll concentration prediction method, characterized in that: The following steps are involved: S1: Obtain online automatic monitoring data of water quality, hydrodynamics and meteorology of lakes and reservoirs including prediction points and upstream points; S2: preprocessing the online automatic monitoring data to obtain processed data; S3: Extract features from the processed data to obtain water quality characteristics and hydrodynamic index characteristics of the prediction point and upstream points, and construct cumulative illumination characteristics; S4: Input the upstream water quality characteristics, hydrodynamic index characteristics and illumination characteristics into the pre-trained fusion prediction model to obtain the upstream transport chlorophyll prediction results and the time-series impact chlorophyll prediction results, and use the inverse error method to fuse the upstream transport chlorophyll prediction results and the time-series impact chlorophyll prediction results; S5: The fusion prediction model outputs the fused chlorophyll prediction result.

2. A lake-type chlorophyll concentration prediction method according to claim 1, characterized in that: Step S3 includes the following steps: Randomly sample all water quality and hydrodynamic characteristic data in the processed data to create a decision tree; calculate the regression prediction accuracy of data outside the sample bag For out-of-bag data feature X i Apply random perturbations and calculate the regression prediction accuracy after the i-th feature perturbation Calculate X i Importance of i , the calculation expression is: Where P i is the importance of the i-th feature, K is the number of training samples; P i Sort in descending order to get the feature importance ranking Q i ; Then construct the fuzzy system; the sorted features Q i Input the fuzzy system to obtain the final fuzzy system score of each feature, and select features as subsequent model input based on the fuzzy system score.

3. A lake-type chlorophyll concentration prediction method according to claim 1, characterized in that: The calculation method of the cumulative illumination feature is: The illumination data set is obtained by recording the illumination data of the cumulative period in reverse order. The influence of turbidity on illumination at time r is calculated according to the Lambert-Beer formula. The calculation expression is: Where, TA r is the turbidity influence intensity at time r, ABS is the absorption coefficient, T r is the turbidity at time r; Calculate the time weight at time r, the calculation expression is: TS r =yes α*(r-lag) Where, TS r is the time weight, lag is the lag time (h), and α is the time weight factor; Calculate the cumulative illumination after removing the lag time. The calculation expression is: Where AR is the accumulated illumination and h is the accumulated period.

4. A lake-type chlorophyll concentration prediction method according to claim 1, characterized in that: The fusion prediction model includes an Informer model and an LSTM model. The Informer model obtains the upstream transport chlorophyll prediction result according to the water quality characteristics and hydrodynamic index characteristics of the upstream point, and the LSTM model obtains the chlorophyll prediction result of the time series affecting the prediction point according to the water quality characteristics, hydrodynamic index characteristics and cumulative illumination characteristics of the prediction point.

5. A lake-type chlorophyll concentration prediction method according to claim 4, characterized in that: The specific steps of the training process of the pre-trained fusion prediction model include: S401: Input the water quality characteristics and hydrodynamic index characteristics of the upstream point into the Informer model to obtain the upstream transport chlorophyll prediction result; S402: Input the water quality characteristics, hydrodynamic index characteristics and cumulative illumination characteristics of the prediction point into the LSTM model to obtain the time-series impact chlorophyll prediction result; S403: The Informer model and the LSTM model are used as base training models, and the models are fused according to the inverse error method to obtain a fusion prediction model.

6. A lake-type chlorophyll concentration prediction method according to claim 5, characterized in that: In step S401, the Informer model is an optimized Informer model, and the optimization method is specifically as follows: Step 4011: construct time feature coding, decompose the time data according to different periods, and use triangular feature coding to generate feature coding at time d: Where Z is the time decomposition method, is the cosine feature encoding under Z decomposition, is the sinusoidal feature encoding under Z decomposition, per Z is the period length under Z decomposition; Step 4012: Use a multi-scale multi-layer perceptron to process the input time feature encoding, and process it into a long-time feature set L, a medium-time feature set M, and a short-time feature set S, respectively, to obtain the final multi-scale fusion feature: In the formula, NOR is the normalization algorithm, MLP is the multi-layer perceptron operation, c is the feature set of different scales, ⊕ represents concatenation, and F L ′ MS is the normalized fusion feature, F LMS is the final fusion time feature; Step 4013: Input the obtained fused time features into the Informer model as input feature encoding to obtain an optimized Informer model.

7. A lake-reservoir chlorophyll concentration prediction method according to claim 5, characterized in that: In step S402, the LSTM model is an optimized LSTM model, and the optimization method is specifically as follows: Step 4021: Input feature T i Converted to logarithmic rate of return LT i ; Step 4022: Use the attention mechanism to optimize the information acquisition of the LSTM algorithm; Get LSTM processing LT i The hidden state matrix H obtained when i-w ,…,h i-1 ), use one-dimensional convolution to extract the time pattern matrix, and the calculation expression is: Where C is the filter, is the eigenvalue extracted by the qth filter at time p, w is the filter length, l is the padding length for convolution calculation, and W represents the maximum weight length; The attention formula is obtained by calculating the weights: Where AT i is the attention vector, σ is the Sigmoid function, and WM is the weight matrix; AT i With h i The final prediction value is obtained by adding after linear mapping; Step 4023: Use the particle swarm algorithm to optimize the time step, learning rate, and filter length in the attention mechanism of the LSTM algorithm; Construct a particle swarm algorithm, construct a dimensional space D with time step timestep, learning rate lr and filter length w, and randomly generate NP particles, whose positions and velocities are expressed as s z and v z (i=1,2,…,NP) indicates that the fitness function is the Nash efficiency coefficient NSE of the LSTM model prediction result: Among them, x obs,z is the actual value, x model,z is the predicted value, is the mean of the actual value, np is the amount of data; According to the global optimal Y of all particles z and the local optimal Y of individual particle a za Update the speed and position of each particle: v za (t+1)=ωv za 9t)+c1r1(Y za (t)-s za (t))+c2r2(Y z (t)-s za (t)) s za (t+1)=s za (t)+v za (t+1) Where t is the number of iterations, ω is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random perturbation factors; Use the particle swarm algorithm to iterate until the termination condition is reached, and output the time step, learning rate and filter length at this time; Step 4023: Input the logarithmic return, attention vector, time step, learning rate and filter length into the LSTM model to obtain the prediction result.

8. The method for predicting lake-type chlorophyll concentration according to claim 5, characterized in that: The calculation expression for model fusion according to the inverse error method is: f F =w I *f I +w L *f L In the formula, f I is the predicted value of upstream transported chlorophyll obtained by the Informer model, f L is the time series impact chlorophyll prediction value obtained by LSTM model, f F is the final prediction value after fusion, w I 、w L are the weight coefficients of the Informer model and the LSTM model, ε I , ε L Represent the errors of the prediction results of the Informer model and the LSTM model respectively.

9. A lake-type chlorophyll concentration prediction device, comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, a lake-type chlorophyll concentration prediction method as described in any one of claims 1-8 is implemented.

10. A storage medium having a program stored thereon, characterized in that: When the program is executed, a lake-type chlorophyll concentration prediction method as described in any one of claims 1-8 is implemented.

Citation Information

Patent Citations

  • Early warning method of lake and reservoir eutrophication based on data assimilation

    CN109086948A

  • Water body total nitrogen concentration indirect remote sensing inversion method, storage medium and terminal device

    CN113049499A

  • Reservoir type turbidity prediction method based on SVM-LSTM model

    CN117313040A

  • Catalytic cracking unit key index modeling method based on time sequence feature extraction

    WO2024021536A1

Cited By

  • Prediction, grading and early warning method for cyanobacterial bloom in large-scale reservoir

    CN119619441A