A hydrological prediction error space-time correction method, electronic equipment and storage medium

By combining the extreme learning machine model with singular spectrum analysis and cooperative search algorithm with spatiotemporal error correction method, the problem of low prediction accuracy in the prior forecast framework is solved, and high accuracy of hydrological forecasting and improved model generalization ability are achieved.

CN118568436BActive Publication Date: 2026-11-27HOHAI UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410696010.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2026-11-27
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

In existing hydrological forecasting methods, the forecasting framework model is affected by the endpoint effect, resulting in low prediction accuracy and the inclusion of future information, which leads to poor model generalization ability.

Method used

The training set samples are decomposed into subsequences using singular spectral analysis, and prediction is performed using an extreme learning machine model with a cooperative search algorithm. The model is then improved using a spatiotemporal error correction method, and the correlation of the training error sequences is used for correction.

Benefits of technology

It improves the accuracy of hydrological forecasts and the generalization ability of models, reduces prediction errors, and enhances the accuracy of prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568436B_ABST
    Figure CN118568436B_ABST
Patent Text Reader

Abstract

The application discloses a hydrological prediction error space-time correction method, which comprises the following steps: firstly, establishing a runoff time sequence according to historical measured runoff data; secondly, establishing an extreme learning machine model, optimizing model parameters by using a cooperative search algorithm, training the model by using training set samples and obtaining training errors; dividing the training set into a proper number of relatively stable subsequences by using a first report framework by means of a singular spectrum decomposition method; adding data in a test set one by one in a rolling manner, further predicting each subsequence by using the extreme learning machine model; and superimposing the prediction values of all the subsequences to obtain an initial prediction result; finally, correcting the prediction value by combining the errors in space and time to obtain a final prediction result; and iteratively updating to obtain the prediction results of all the samples in the test set. The application can realize the prediction of a hydrological time sequence based on a first report framework decomposition model which has more practical application value, and the space-time combined error correction method can effectively improve the prediction precision of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of hydrological forecasting, specifically relating to a method for spatiotemporal correction of hydrological forecasting errors, electronic equipment, and storage medium. Background Technology

[0002] Currently, the "decomposition-reconstruction" method is widely used in hydrological forecasting. The introduction of decomposition methods has sparked discussion and research regarding pre- and post-reporting issues. Most decomposition methods utilize a post-reporting experimental framework, decomposing the entire runoff sequence and then dividing it into training and test sets. This reduces the complexity and non-stationarity of the original time series, allowing for the exploration of potential patterns in the samples and enhancing the predictive reliability of the model. However, this introduces future data unavailable in practical applications, resulting in subsequences containing information about future runoff changes. Consequently, the obtained runoff predictions are distorted and meaningless. To avoid the introduction of future information, researchers proposed a pre-reporting experimental framework. This involves first dividing the data into training and test sets, applying the decomposition method only to the training set, and then predicting the test set data one by one. However, this method is affected by endpoint effects, significantly reducing the model's generalization ability and resulting in extremely low prediction accuracy. Summary of the Invention

[0003] This invention addresses the problems existing in the prior art by providing a spatiotemporal correction method for hydrological forecasting errors, an electronic device, and a storage medium. By combining an error correction method for training errors, spatiotemporal predictions are made on the decomposed error subsequences, and the prior forecasting framework model is improved based on the obtained error correction values, thereby enhancing the accuracy of runoff prediction.

[0004] To solve the above technical problems, the present invention provides the following technical solution: a method for spatiotemporal correction of hydrological forecasting errors, comprising the following steps:

[0005] S1. Divide the original runoff sequence into a training set and a test set; calibrate the model parameters using the Cooperative Search Algorithm (CSA) for the samples in the training set to obtain the Extreme Learning Machine (ELM) prediction model coupled with CSA, and then initialize the model to obtain the initial prediction model, and set t=1;

[0006] S2. Calculate the error sequence for the samples in the training set;

[0007] S3. Decompose the training set sample sequence to obtain K sub-sequences. Use the prediction model to build a sub-prediction model for the sub-sequences. Predict and accumulate the prediction values ​​of all sub-prediction models for time period t+1 to obtain the initial prediction result.

[0008] S4. Perform spatiotemporal error correction on the initial prediction results for time period t+1, and update the error sequence using the measured values ​​of the test set for time period t+1; add test set samples to the training set samples in a rolling manner, and update the training set sequence to be decomposed.

[0009] S5. Return to steps S2 to S4 until the prediction of all test set data is completed.

[0010] Furthermore, in step S2 described above, the error sequence is calculated. Specifically, it calculates the average of the error sequence by comparing the measured values ​​with the predicted values ​​in the training set of the initial prediction model. .

[0011] Furthermore, the aforementioned step S3 includes the following sub-steps:

[0012] S301. Using singular spectral analysis to decompose the training set samples, a predetermined number of subsequences are obtained:

[0013] (1)

[0014] In the formula, For SSA decomposition function; The training set time series is to be decomposed; The number of decompositions; The first one obtained after decomposition Subsequences;

[0015] S302. Establish a corresponding number of CSA-ELM prediction models for the obtained subsequences. The initial predicted runoff value for that period is obtained by processing the subsequence prediction results. ;

[0016] (2)

[0017] In the formula, These are the model parameters.

[0018] Furthermore, in the aforementioned step S4, the error correction involving spatiotemporal factors is performed, including the following sub-steps:

[0019] S401. Decompose the error sequence of the training set using the SSA method to obtain a sequence of length... ,have Error matrix of each subsequence.

[0020] (3)

[0021] In the formula, Indicates the first The th subsequence One value;

[0022] S402. In terms of time, take the principal components obtained after SSA decomposition error sequence. The optimal time delay is determined by partial autocorrelation analysis. ,get Time error correction value for a given period.

[0023] (4)

[0024] S403. Spatially, using the correlation coefficient function Obtain the subsequence with the highest correlation to the error sequence from the subsequences of the error sequence decomposition, and calculate... Spatial error correction value for the time period.

[0025] (5)

[0026] (6)

[0027] S404. The error correction value combined with spatiotemporal correction is calculated using the following formula. And obtain the corrected runoff prediction results. .

[0028] (7)

[0029] (8)

[0030] On the other hand, the present invention proposes an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the methods described in the present invention.

[0031] The present invention also proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described in the present invention.

[0032] Compared with the prior art, the beneficial technical effects of the present invention using the above technical solution are as follows:

[0033] 1. This invention uses singular spectrum analysis to decompose complex nonlinear hydrological sequences into several relatively stable subsequences, and uses an extreme learning machine with coupled cooperative search algorithm as the prediction model, which can effectively reduce the uncertainty generated by a single model in forecasting.

[0034] 2. This invention addresses the problem of low prediction accuracy of the pre-reported framework by improving the basic model using a spatiotemporal combination method based on the correlation between subsequences of the training error sequence. This method can effectively improve the model's generalization ability and prediction accuracy. Attached Figure Description

[0035] Figure 1 This is a flowchart of the present invention.

[0036] Figure 2 The figure shows a comparison of the prediction results of the present invention with those of other models. In the figure, (a) is the prediction result of the single model CSA-ELM, (b) is the prediction result of the original decomposition model SSA-CSA-ELM, and (c) is the prediction result of the present invention. Detailed Implementation

[0037] To better understand the technical content of the present invention, specific embodiments are described below in conjunction with the accompanying drawings.

[0038] In this invention, various aspects of the invention are described with reference to the accompanying drawings, which illustrate numerous illustrative embodiments. Embodiments of the invention are not limited to those shown in the drawings. It should be understood that the invention is implemented through any of the various concepts and embodiments described above, as well as the concepts and embodiments described in detail below, because the concepts and embodiments disclosed in this invention are not limited to any particular implementation. Furthermore, some aspects of the invention disclosed can be used alone or in any suitable combination with other aspects of the invention disclosed.

[0039] refer to Figure 1 The flowchart of this invention, a spatiotemporal correction method for hydrological forecasting errors, includes the following steps:

[0040] S1. Divide the original runoff sequence into training and test sets; calibrate the model parameters using the Cooperation Search Algorithm (CSA) on the samples in the training set to obtain the Extreme Learning Machine (ELM) prediction model coupled with CSA, and then initialize the model to obtain the initial prediction model. And let t=1;

[0041] S2. Calculate the error sequence for the samples in the training set;

[0042] S3. Decompose the training set sample sequence to obtain K sub-sequences. Use the prediction model to build a sub-prediction model for the sub-sequences. Predict and accumulate the prediction values ​​of all sub-prediction models for time period t+1 to obtain the initial prediction result.

[0043] S4. Perform spatiotemporal error correction on the initial prediction results for time period t+1, and update the error sequence using the measured values ​​of the test set for time period t+1; add test set samples to the training set samples in a rolling manner, and update the training set sequence to be decomposed.

[0044] S5. Return to steps S2 to S4 until the prediction of all test set data is completed.

[0045] Furthermore, as a preferred embodiment of the present invention, the error sequence is calculated. Specifically, it is the difference between the measured values ​​and predicted values ​​in the training set of the initial prediction model, and then the average value of the error sequence is calculated. .

[0046] Furthermore, as a preferred embodiment of the present invention, step S3 includes the following sub-steps:

[0047] S301. Use Singular Spectrum Analysis (SSA) to decompose the training set samples to obtain a certain number of subsequences.

[0048] (1)

[0049] In the formula, For SSA decomposition function; The training set time series is to be decomposed; The number of decompositions; The first one obtained after decomposition Subsequences;

[0050] S302. Establish a corresponding number of CSA-ELM prediction models for the obtained subsequences. The initial predicted runoff value for that period is obtained by processing the subsequence prediction results. ;

[0051] (2)

[0052] In the formula, These are the model parameters.

[0053] Furthermore, as a preferred embodiment of the present invention, step S4, which involves combining spatiotemporal error correction, includes the following sub-steps:

[0054] S401. Decompose the error sequence of the training set using the SSA method to obtain a sequence of length... ,have Error matrices of subsequences;

[0055] (3)

[0056] In the formula, Indicates the first The th subsequence Values.

[0057] S402. In terms of time, take the principal components obtained after SSA decomposition error sequence. The optimal time delay is determined by partial autocorrelation analysis. ,get Time error correction value for a given period.

[0058] (4)

[0059] S403. Spatially, using the correlation coefficient function Obtain the subsequence with the highest correlation to the error sequence from the subsequences of the error sequence decomposition, and calculate... Spatial error correction value for the time period.

[0060] (5)

[0061] (6)

[0062] S404. The error correction value combined with spatiotemporal correction is calculated using the following formula. And obtain the corrected runoff prediction results. .

[0063] (7)

[0064] (8)

[0065] On the other hand, the present invention proposes an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the methods described in the present invention.

[0066] This invention uses the results from a certain hydrological station for comparative research. Figure 2 The figure shows a comparison of the prediction results of this invention with other models. In the figure, (a) is the prediction result of the single model CSA-ELM, (b) is the prediction result of the original decomposition model SSA-CSA-ELM, and (c) is the prediction result of this invention. The figure shows the prediction results of this invention compared to the single model and the original decomposition model (i.e., the model without error correction). It can be seen that the prediction error range of the method of this invention is smaller, and the correlation coefficient is better than the comparison methods. Therefore, it can be concluded that the proposed method effectively incorporates error correction values, which can significantly improve prediction accuracy.

[0067] The present invention also proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described in the present invention.

[0068] While the present invention has been described above with reference to preferred embodiments, it is not intended to limit the invention. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention shall be determined by the claims.

Claims

1. A method for spatiotemporal correction of hydrological forecast errors, characterized in that, Includes the following steps: S1. Divide the original runoff sequence into a training set and a test set; calibrate the model parameters using the Cooperative Search Algorithm (CSA) for the samples in the training set to obtain the Extreme Learning Machine (ELM) prediction model coupled with CSA, and then initialize the model to obtain the initial prediction model, and set t=1; S2. Calculate the error sequence for the samples in the training set; S3. Decompose the training set sample sequence to obtain K sub-sequences. Use the prediction model to build sub-prediction models for the sub-sequences, predict and accumulate the prediction values ​​of all sub-prediction models for time period t+1 to obtain the initial prediction result; specifically including the following sub-steps: S301. Using singular spectral analysis to decompose the training set samples, a predetermined number of subsequences are obtained: ,(1), In the formula, For SSA decomposition function; The training set time series is to be decomposed; The number of decompositions; The first one obtained after decomposition Subsequences; S302. Establish a corresponding number of CSA-ELM prediction models for the obtained subsequences. The initial predicted runoff value for that period is obtained by processing the subsequence prediction results. ; ,(2) In the formula, These are model parameters; S4. Perform spatiotemporal error correction on the initial prediction results for time period t+1, and update the error sequence using the measured values ​​of the test set for time period t+1. The test set samples are added to the training set samples in a rolling manner, and the training set sequence to be decomposed is updated; this includes the following sub-steps: S401. Decompose the error sequence of the training set using the SSA method to obtain a sequence of length... ,have Error matrices of subsequences; (3), In the formula, Indicates the first The th subsequence One value, It is an error sequence; S402. In terms of time, take the principal components obtained after SSA decomposition error sequence. The optimal time delay is determined by partial autocorrelation analysis. ,get Time error correction value for the time period; (4), S403. Spatially, using the correlation coefficient function Obtain the subsequence with the highest correlation to the error sequence from the subsequences of the error sequence decomposition, and calculate... Spatial error correction value for the time period; (5), (6), S404. The error correction value combined with spatiotemporal correction is calculated using the following formula. And obtain the corrected runoff prediction results. ; (7), (8), S5. Return to steps S2 to S4 until the prediction of all test set data is completed; In step S2, the error sequence is calculated. Specifically, it calculates the average of the error sequence by comparing the measured values ​​with the predicted values ​​in the training set of the initial prediction model. .

2. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the spatiotemporal correction method for hydrological forecasting errors as described in claim 1.

3. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the spatiotemporal correction method for hydrological forecasting errors as described in claim 1.

Citation Information

Patent Citations

  • Hydrological time series prediction method based on CSVMD-LSTM-ELM

    CN114912684A

  • Hydrological forecasting intelligent method and system, electronic equipment and storage medium

    CN115345077A