Hydrological forecast error space-time correction method, electronic equipment and storage medium

Through the extreme learning machine model of singular spectrum analysis method and coupled cooperative search algorithm, combined with the spatiotemporal error correction method, the problem of low accuracy of the advance frame in hydrological forecasting is solved, and the accuracy of runoff forecasting and model generalization ability are significantly improved.

CN118568436AActive Publication Date: 2024-08-30HOHAI UNIV +1

Patent Information

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

AI Technical Summary

Technical Problem

Among existing hydrological forecasting methods, the prediction accuracy of the advance forecast framework is low, and the decomposition method introduces future information, causing prediction distortion, and it is difficult to effectively reduce the generalization ability and prediction accuracy of the model.

Method used

The singular spectrum analysis method is used to decompose the training set samples into subsequences, and the extreme learning machine model of the coupled cooperative search algorithm is used for prediction. Combined with the spatiotemporal error correction method, the advance frame model is improved to improve the accuracy of runoff prediction.

Benefits of technology

It effectively reduces the uncertainty in single model forecasting, improves the model's generalization ability and forecasting accuracy, and significantly improves the accuracy of runoff forecasting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568436A
    Figure CN118568436A
Patent Text Reader

Abstract

The invention discloses a hydrological forecast error space-time correction method. The method comprises the following steps: firstly, establishing a runoff time sequence according to historical actually measured runoff data; secondly, establishing an extreme learning machine model, optimizing model parameters by adopting a cooperative search algorithm, training the model by utilizing a training set sample, and obtaining a training error; dividing the training set into a proper number of relatively stable subsequences by using a singular spectrum decomposition method and adopting a pre-report framework; adding data in the test set in a rolling manner one by one, and further predicting each sub-sequence by adopting an extreme learning machine model; and superposing the predicted values of all the subsequences to obtain an initial prediction result. And finally, carrying out error correction on the predicted value in combination with time and space to obtain a final prediction result. And iteratively updating to obtain prediction results of all samples in the test set. According to the method, the hydrological time series can be predicted on the basis of the pre-reporting framework decomposition model with more practical application value, and the prediction precision of the model is effectively improved through the provided space-time combined error correction method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of hydrological forecasting, and in particular relates to a hydrological forecasting error spatiotemporal correction method, electronic equipment and storage medium. Background Art

[0002] At present, the "decomposition-reconstruction" method is widely used in the field of hydrological forecasting. The introduction of the decomposition method has aroused discussions and research on the problems of pre- and post-reporting among scholars. Among them, most of the decomposition methods use the post-reporting experimental framework, that is, the entire runoff sequence is decomposed, and then the training set and the test set are divided, so as to reduce the complexity and non-stationarity of the original time series, thereby exploring the potential laws in the sample and enhancing the prediction reliability of the prediction model. However, this introduces future data that is not available in practical applications, and the resulting subsequence contains information on the changes in future runoff. The resulting runoff prediction value is distorted and has no practical significance. In order to avoid the introduction of future information, scholars proposed a pre-reporting experimental framework, that is, first divide the training set and the test set, and only use the decomposition method for the training set, and then predict the sample data of the test set one by one. However, this method is affected by the endpoint effect, which greatly reduces the generalization ability of the model and the prediction accuracy is extremely low. Summary of the invention

[0003] In view of the problems existing in the prior art, the present invention provides a method for spatiotemporal correction of hydrological forecast errors, an electronic device and a storage medium. Combined with the error correction method of training errors, the decomposed error subsequences are predicted in spatiotemporal terms respectively, and the prior forecast framework model is improved according to the obtained error correction values, thereby improving the accuracy of runoff prediction.

[0004] In order to solve the above technical problems, the present invention provides the following technical solutions: a method for spatiotemporal correction of hydrological forecast errors, comprising the following steps:

[0005] S1. Divide the original runoff sequence into a training set and a test set; calibrate the model parameters with the cooperative search algorithm CAS for the samples in the training set, obtain the extreme learning machine 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 subsequences, use the prediction model to establish a sub-prediction model for the subsequences, predict and accumulate the prediction values ​​of all sub-prediction models in the t+1 period to obtain the initial prediction result;

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

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

[0010] 2. A method for spatiotemporal correction of hydrological forecast errors according to claim 1, characterized in that in step S2, the error sequence error is calculated to be the difference between the actual value of the training set and the predicted value of the training set in the initial prediction model, and the average value of the error sequence is calculated to be

[0011] 3. The method for spatiotemporal correction of hydrological forecast errors according to claim 1, wherein step S3 comprises the following sub-steps:

[0012] S301, using singular spectrum analysis to decompose the training set samples to obtain a preset number of subsequences:

[0013] [p 1 ,...,p k ,...,p K ]=S(Q Train ,K), (1)

[0014] Where S(·) is the SSA decomposition function; Q Train is the time series of the training set to be decomposed; K is the number of decompositions; p k is the kth subsequence obtained after decomposition;

[0015] S302: Establish a corresponding number of CSA-ELM prediction models F(·) for the obtained subsequences, process the subsequence prediction results to obtain the initial predicted runoff value y for the period t+1 ;

[0016]

[0017] In the formula, ε is the model parameter.

[0018] 4. The method for spatiotemporal correction of hydrological forecast errors according to claim 1, characterized in that in step S4, the spatiotemporal error correction is performed, comprising the following sub-steps:

[0019] S401. Decompose the error sequence of the training set using the SSA method to obtain an error matrix with a length of N0 and K subsequences.

[0020]

[0021] In the formula, represents the tth value in the kth subsequence;

[0022] S402, in terms of time, take the principal component e obtained after SSA decomposition of the error sequence 1 , the optimal lag d is determined by partial autocorrelation analysis, and the time error correction value of the t+1 period is obtained.

[0023]

[0024] S403. In space, the correlation coefficient function corr(·) is used to obtain the subsequence with the greatest correlation with the error sequence in the error sequence decomposition subsequence, and the spatial error correction value of the time period t+1 is calculated.

[0025] e corr =corr([e 1 ,...,e K ],error) (5)

[0026]

[0027] S404, calculate the error correction value combined with time and space correction by the following formula: And get the revised runoff prediction results

[0028]

[0029] On the other hand, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the present invention when executing the computer program.

[0030] The present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any one of the methods described in the present invention when executed by a processor.

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

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

[0033] 2. To address the problem of low prediction accuracy of the advance forecast framework, the present invention improves the basic model by combining time and space according to the correlation between subsequences of the training error sequence, and proposes an error correction method that can effectively improve the generalization ability and prediction accuracy of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart of the present invention.

[0035] Figure 2 3 and 4, which are comparison diagrams of the prediction results of the present invention and other models, wherein (a) is the prediction result diagram of the single model CSA-ELM, (b) is the prediction result diagram of the original decomposition model SSA-CSA-ELM, and (c) is the prediction result diagram of the present invention. DETAILED DESCRIPTION

[0036] In order to better understand the technical content of the present invention, specific embodiments are given and described as follows in conjunction with the accompanying drawings.

[0037] Various aspects of the invention are described herein with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the invention are not limited to those described in the accompanying drawings. It should be understood that the invention is implemented by 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 the invention are not limited to any implementation. In addition, some aspects disclosed in the invention may be used alone or in any appropriate combination with other aspects disclosed in the invention.

[0038] refer to Figure 1 , flow chart of the present invention, a method for spatiotemporal correction of hydrological forecast errors of the present invention comprises the following steps:

[0039] S1. Divide the original runoff sequence into a training set and a test set; calibrate the model parameters with the cooperation search algorithm (CSA) for the samples in the training set, obtain the extreme learning machine (ELM) prediction model coupled with CSA, and then initialize the model to obtain the initial prediction model F(·), and set t=1;

[0040] S2, calculate the error sequence for the samples in the training set;

[0041] S3, decompose the training set sample sequence to obtain K subsequences, use the prediction model to establish a sub-prediction model for the subsequences, predict and accumulate the prediction values ​​of all sub-prediction models in the t+1 period to obtain the initial prediction result;

[0042] S4, perform time and space error correction on the initial prediction results of the t+1 period, and use the measured values ​​of the test set in the t+1 period to update the error sequence; add the test set samples to the training set samples in a rolling manner, and update the sequence to be decomposed in the training set;

[0043] S5. Return to execute step S2 to step S4 until the prediction of all test set data is completed.

[0044] Further, as a preferred embodiment of the present invention, the error sequence error is calculated to be the difference between the actual value of the training set and the predicted value of the training set in the initial prediction model, and then the average value of the error sequence is calculated, which is

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

[0046] S301. Decompose the training set samples using singular spectrum analysis (SSA) to obtain a certain appropriate number of subsequences.

[0047] [p 1 ,...,p k ,...,p K ]=S(Q Train ,K) (1)

[0048] Where S(·) is the SSA decomposition function; Q Train is the time series of the training set to be decomposed; K is the number of decompositions; p k is the kth subsequence obtained after decomposition;

[0049] S302: Establish a corresponding number of CSA-ELM prediction models F(·) for the obtained subsequences, process the subsequence prediction results to obtain the initial predicted runoff value y for the period t+1 ;

[0050]

[0051] In the formula, ε is the model parameter.

[0052] Further, as a preferred embodiment of the present invention, in step S4, error correction combining time and space is performed, including the following sub-steps:

[0053] S401, using the SSA method to decompose the error sequence of the training set, and obtain an error matrix with a length of N0 and K subsequences;

[0054]

[0055] In the formula, represents the tth value in the kth subsequence.

[0056] S402, in terms of time, take the principal component e obtained after SSA decomposition of the error sequence 1 , the optimal lag d is determined by partial autocorrelation analysis, and the time error correction value of the t+1 period is obtained.

[0057]

[0058] S403. In space, the correlation coefficient function corr(·) is used to obtain the subsequence with the greatest correlation with the error sequence in the error sequence decomposition subsequence, and the spatial error correction value of the time period t+1 is calculated.

[0059] e corr =corr([e 1 ,...,e K ],error) (5)

[0060]

[0061] S404, calculate the error correction value combined with time and space correction by the following formula: And get the revised runoff prediction results

[0062]

[0063]

[0064] On the other hand, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the present invention when executing the computer program.

[0065] The present invention selects the results of a certain hydrological station for comparative study. Figure 2 The figure is a comparison of the prediction results of the present invention and other models, in which (a) is the prediction result diagram of the single model CSA-ELM, (b) is the prediction result diagram of the original decomposition model SSA-CSA-ELM, and (c) is the prediction result diagram of the present invention. As can be seen from the figure, the prediction results of the present invention and the single model and the original decomposition model (i.e., the model without error correction) are shown. It can be seen that the prediction error range of the method of the present invention is smaller, and the correlation coefficient is better than the comparison method. It can be seen that the proposed method effectively combines the error correction value and can significantly improve the prediction accuracy.

[0066] The present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any one of the methods described in the present invention when executed by a processor.

[0067] Although the present invention has been described above with preferred embodiments, it is not intended to limit the present invention. A person skilled in the art of the present invention may make various modifications and improvements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the definition of the claims.

Claims

1. A method for spatiotemporal correction of hydrological forecast errors, characterized in that: The steps include: S1. Divide the original runoff sequence into a training set and a test set; calibrate the model parameters with the cooperative search algorithm CAS for the samples in the training set, obtain the extreme learning machine 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 subsequences, use the prediction model to establish a sub-prediction model for the subsequences, predict and accumulate the prediction values ​​of all sub-prediction models in the t+1 period to obtain the initial prediction result; S4, perform time and space error correction on the initial prediction results of the t+1 period, and update the error sequence using the measured values ​​of the test set in the t+1 period; Rollingly add test set samples to the training set samples to update the sequence to be decomposed in the training set; S5. Return to execute step S2 to step S4 until the prediction of all test set data is completed.

2. A method for spatiotemporal correction of hydrological forecast errors according to claim 1, characterized in that: In step S2, the error sequence error is calculated, which is specifically the difference between the actual value of the training set and the predicted value of the training set in the initial prediction model. The average value of the error sequence is calculated, which is 3. A method for spatiotemporal correction of hydrological forecast errors according to claim 1, characterized in that: Step S3 includes the following sub-steps: S301, using singular spectrum analysis to decompose the training set samples to obtain a preset number of subsequences: [p 1 ,...,p k ,...,p K ]=S(Q Train ,K), (1) Where S(·) is the SSA decomposition function; Q Train is the time series of the training set to be decomposed; K is the number of decompositions; p k is the kth subsequence obtained after decomposition; S302: Establish a corresponding number of CSA-ELM prediction models F(·) for the obtained subsequences, process the subsequence prediction results to obtain the initial predicted runoff value y for the period t+1 ; In the formula, ε is the model parameter.

4. A method for spatiotemporal correction of hydrological forecast errors according to claim 1, characterized in that: In step S4, error correction combining time and space is performed, including the following sub-steps: S401, using the SSA method to decompose the error sequence of the training set, and obtain an error matrix with a length of N0 and K subsequences; In the formula, represents the tth value in the kth subsequence. S402, in terms of time, take the principal component e obtained after SSA decomposition of the error sequence 1 , determine the optimal lag d by partial autocorrelation analysis, and obtain the time error correction value of the t+1 period; S403, spatially, using the correlation coefficient function corr(·) to obtain the subsequence with the greatest correlation with the error sequence in the error sequence decomposition subsequence, and calculate the spatial error correction value of the t+1 period; And corr =corr([and 1 ,...,And K ],error), (5) S404, calculate the error correction value combined with time and space correction by the following formula: And get the revised runoff prediction results 5. 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, the steps of the method according to any one of claims 1 to 4 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Explicit genetic algorithm and singular spectrum analysis-based meteorological and hydrological element forecast method

    CN106447072A

  • Two-stage decomposition integrated hydrological sequence prediction method

    CN110633859A

  • Hydrological forecast error correction method based on XGBoost

    CN114580762A

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

    CN114912684A

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

    CN115345077A

Cited By

  • Hydrological forecast error correction method and device, electronic equipment and storage medium

    CN121977605A