Method and device for post-correction of predicted parameters by using a H-infinity filter

10962936 ยท 2021-03-30

Assignee

Inventors

Cpc classification

International classification

Abstract

Provided are a prediction value correction method and apparatus. The prediction value correction method includes steps of: (a) determining a prediction condition to be predicted; (b) receiving past prediction values and past measurement values according to the determined prediction condition; (c) filtering the past prediction values and the past measurement values by using an H-infinity filter to obtain an output value for a final time point; (d) estimating a future bias for a date and time point to be predicted by using the output value of the H-infinity filter; and (e) correcting a future prediction value for the date and time point to be predicted by using the estimated future bias to obtain a corrected future prediction value for the date and time point to be predicted.

Claims

1. A prediction value correction method executed by a computer processor of a weather prediction system, the method comprising steps of: (a) determining a prediction condition to be predicted; (b) receiving past prediction values and past measurement values according to the determined prediction condition; (c) filtering the past prediction values and the past measurement values by using an H-infinity filter to obtain an output value x.sub.K for a final time point and outputting the output value; (d) estimating a future bias for a date and time point to be predicted by using the output value of the H-infinity filter; and (e) correcting a future prediction value for the date and time point to be predicted by using the estimated future bias to obtain a corrected future prediction value for the date and time point to be predicted, wherein the step (c) includes steps of: (c1) providing the past prediction values and the past measurement values to the H-infinity filter; (c2) initializing variables of the H-infinity filter to obtain an initialized H-infinity filter; (c3) estimating a filter gain H.sub.k of the initialized H-infinity filter, updating the output value x.sub.K by using the estimated filter gain, and obtaining an error covariance to perform a filtering process of the H-infinity filter; and (c4) performing sequentially a time series of processes to obtain the output value x.sub.K for the final time point which is an end of a window.

2. The prediction value correction method according to claim 1, wherein the prediction condition in the step (a) includes a date to be predicted, a prediction time, a time point, a filter order, and a window size.

3. The prediction value correction method according to claim 1, wherein the corrected future prediction value for a corresponding time point of each date is sequentially obtained by repeatedly performing the steps (c), (d), and (e) while incrementing a data corresponding to a window by one.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a block diagram illustrating a prediction value correction apparatus 1 according to a preferred embodiment of the present invention;

(2) FIG. 2 is a flowchart sequentially illustrating a prediction value correction method applied to the prediction value correction apparatus according to the preferred embodiment of the present invention;

(3) FIGS. 3 to 6 are diagrams illustrating weather prediction as examples, which are graphs of performance comparison of a case of a weather prediction value by a NWP system in the related art, a case of correcting a weather prediction value by using a Kalman filter in the related art, and a case of correcting a weather prediction value by using an H-infinity filter according to the present invention; and

(4) FIG. 7 is a table listing performance comparison of the case of correcting the weather prediction value by the NWP system in the related art, the case of correcting the weather prediction value by using the Kalman filter in the related art, and the case of correcting the weather prediction value by using the H-infinity filter according to the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

(5) A prediction value correction method for a certain physical quantity according to the present invention is characterized in that a precise future prediction value can be obtained by applying an H-infinity filter to past prediction values and measurement values to obtain an output value of a final time point, estimating a future bias for a data and time point to be predicted by using the output value, and correcting a future prediction value predicted by a prediction system (for example, NWP) by using the estimated future bias.

(6) Hereinafter, a prediction value correction method and a prediction value correction apparatus using the same according to a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

(7) FIG. 1 is a block diagram illustrating a prediction value correction apparatus 1 according to a preferred embodiment of the present invention.

(8) Referring to FIG. 1, the prediction value correction apparatus 1 according to the present invention includes a past prediction value providing module 100, a past measurement value providing module 110, an H-infinity filter 120, a future bias estimation module 130, and a future prediction value correction module 140.

(9) The past prediction value providing module 100 provides the past prediction value in accordance with the prediction condition to be predicted to the H-infinity filter 120. The past measurement value providing module 110 provides the past measurement value actually measured corresponding to the prediction value. The prediction condition may include a date to be predicted, a prediction time, a time point, a filter order, and a window size.

(10) The H-infinity filter 120 receives the past prediction values and past measurement values from the past prediction value providing module and the past measurement value providing module, initializes variables of the H-infinity filter, estimates a filter gain, updates an estimated measurement value, obtains an error covariance, performs a filtering process, and obtains and provides an output value for the final time point which is an end of a window.

(11) The future bias estimation module 130 estimates a future bias for the date and time point to be predicted by using the output value for the final time point provided from the H-infinity filter.

(12) The future prediction value correction module 140 corrects the future prediction value predicted by the NWP system for the date and time point to be predicted by using the estimated future bias and obtains and provides a future prediction value for the date and time point to be predicted.

(13) Hereinafter, a prediction value correction method applied to the prediction value correction apparatus described above will be described in more detail with reference to FIG. 2. FIG. 2 is a flowchart sequentially illustrating the prediction value correction method applied to the prediction value correction apparatus according to the preferred embodiment of the present invention.

(14) Referring to FIG. 2, first, the prediction value correction method according to the present invention determines a prediction condition to be predicted (step S200). The prediction condition may include a date to be predicted, a prediction time, a time point, a filter order, and a window size.

(15) Next, past prediction values m.sub.k,f and past measurement values m.sub.k,r in accordance with the determined prediction conditions are provided (step S210). Herein, the past prediction values m.sub.k,f are prediction values obtained by the prediction system (for example, NWP) for each specific date and time point, k denotes a discontinuous time, and f denotes a prediction value (forecast). Any desired number of k's many be used. For example, a case where the number of k's is K may be assumed, and thus k=1, 2, . . . , K. Herein, the past measurement values m.sub.k,r are observation values actually measured for a date and time point corresponding to the past prediction values, and r denotes a measurement value.

(16) An actual bias B.sub.k for an arbitrary time is defined by Mathematical Formula 1.
B.sub.k=m.sub.k,fm.sub.k,r,k=1, . . . ,K[Mathematical Formula 1]

(17) The above-mentioned bias can be expressed as Mathematical Formula 2 by modeling the prediction value m.sub.k,f by using an n-order linear polynomial equation.
y.sub.k=x.sub.k,0+x.sub.k,1.Math.m.sub.k,f.sup.1+x.sub.k,2.Math.m.sub.k,f.sup.2+ . . . +x.sub.k,n.Math.m.sub.k,f.sup.n+w.sub.k[Mathematical Formula 2]

(18) Herein, w.sub.k denotes a noise component. Mathematical Formula 2 is expressed again by using a column vector as expressed by Mathematical Formulas 3 to 5.
x.sub.k=[x.sub.k,0x.sub.k,1x.sub.k,2x.sub.k,3. . . x.sub.k,n].sup.T[Mathematical Formula 3]
y.sub.k=G.sub.kx.sub.k+w.sub.k[Mathematical Formula 4]
G.sub.k=[1m.sub.k,f.sup.1m.sub.k,f.sup.2. . . m.sub.k,f.sup.n][Mathematical Formula 5]

(19) Herein, x.sub.k needs to be obtained. x.sub.k is defined as a vector including (n+1) elements, and T denotes transposition. Through this process, an H-infinity filtering process is performed. In the related art, a Kalman filter is used. However, in the present invention, an H-infinity filter is used to estimate the future bias of the prediction value and the measurement value by the prediction system.

(20) The H-infinity filter and the Kalman filter are filters that estimate some time-varying values by a few simple steps according to time while repeatedly incrementing k. The predictive correction is used for continuously estimating the time-varying x.sub.k values and use that last estimated value to estimate the error (that is, bias) for the prediction value of the next day of the last day. At this time, the specific time point and the length of the prediction time are determined in advance, and necessary data corresponding thereto are collected. The time point is one of 24 hours a day, and the length of the prediction time is 0 to 48 hours. For example, if the window size K=30 is used and the physical quantity at 10:00 am on May 1 is desired to be predicted before 1 hour, the prediction values of the physical quantity by the past prediction system at 10:00 am from April 1 to April 30 and the corresponding actual observation values are required. K can have a variety of values from 30 to 90, depending on the location where prediction is desired.

(21) Since the Kalman filter requires specific numerical insertion of u.sub.k, w.sub.k, means, and variance values of noise, the program execution time becomes very long. However, since the H-infinity filter does not require a specific numerical insertion, there are advantages in that the filtering process becomes simple, and the program execution time becomes short.

(22) Next, the past prediction values and past measurement values are provided to the H-infinity filter (step S220).

(23) Next, variables of the H-infinity filter are initialized (step S230). The H-infinity filter initially has parameters which are required to set some initial values for the initialization. That is, if 0 as an initial value of x.sub.0 is inserted, each variable is set to an initial value larger than 0, as illustrated in Mathematical Formula 6.
0<
0<P.sub.0
0<V
0<W[Mathematical Formula 6]
Herein, is bound, P.sub.0 is a weighted value for error of the estimated value of the initial value, and V and W are weighted values of noise.

(24) The subsequent processes take place recursively with time.

(25) The risk function J in the H-infinity filter is defined as Mathematical Formula 7.

(26) J = .Math. k = 0 K || x k - x ^ k || x k 2 || x 0 - x ^ 0 || P 0 - 1 2 + .Math. k = 0 K ( || u k || W k - 1 2 + || w k || V k - 1 2 ) [ Mathematical Formula 7 ]

(27) Herein, X.sub.k, {dot over (P)}.sub.k, W.sub.k and V.sub.k is a weighting matrices, is the vector norm, and u.sub.kw.sub.k.sub.1.sup.2 denotes u.sub.k.sup.TW.sup.1.sup.uk.

(28) The maximal J is minimized by the bound as illustrated in Mathematical Formula 8.
sup J<.sup.1[Mathematical Formula 8]

(29) Herein, sup denotes supremum.

(30) J is defined as Mathematical Formula 9.

(31) J = - - 1 || x 0 - x ^ 0 || P a - 1 2 + .Math. k = 0 K [ || x k - x ^ k || x k 2 - - 1 ( || u k || W k - 1 2 + || w k || V k - 1 2 ) ] [ Mathematical Formula 9 ]

(32) This problem becomes a minimax problem of Mathematical Formula 10.

(33) min x ^ k ( max u k , w k , x 0 J ) [ Mathematical Formula 10 ]

(34) Next, the filter gain H.sub.k is estimated by using the initialized H-infinity filter, the estimated measurement value x.sub.k is updated, the error covariance P.sub.k is obtained, and the filtering process is performed (step S240). Step 240 will be described in more detail.

(35) The H-infinity gain (H.sub.k) is obtained by the following Mathematical Formula 11.
H.sub.k=FP.sub.k-1S.sub.k(G.sub.k).sup.TV.sub.k.sup.1[Mathematical Formula 11]

(36) Herein, S.sub.k can be obtained by the Mathematical Formula 12.
S.sub.k={Ix.sub.kP.sub.k-1+(G.sub.k).sup.TV.sub.k.sup.1G.sub.kP.sub.k-1}.sup.1[Mathematical Formula 12]

(37) By using the above obtained values, the state value (x.sub.k) can be estimated by Mathematical Formula 13.
x.sub.k=Fx.sub.k-1+H.sub.k(y.sub.kG.sub.kx.sub.k-1)[Mathematical Formula 13]

(38) At the last step in one regression, the error covariance P.sub.k is updated by using Mathematical Formula 14.
P.sub.k=FP.sub.k-1S.sub.kF.sup.T+W.sub.k[Mathematical Formula 14]

(39) Next, a time series of processes is sequentially performed to obtain an output value x.sub.K for the final time point, which is an end of a window (step $250).

(40) Next, by using the output value x.sub.K of the H-infinity filter, a future bias for the date and timepoint to be predicted is estimated (step S260). The future bias y.sub.k is estimated by the following Mathematical Formula 15.
y.sub.K=G.sub.Kx.sub.K[Mathematical Formula 15]

(41) Next, by using the estimated future bias, a future prediction value m.sub.K+1,f for the date and time point to be predicted is corrected, and the corrected future prediction value m.sub.K+1,f for the date and time point to be predicted is obtained as expressed by Mathematical Formula 16 (step S270).
m.sub.K+1,f=m.sub.K+1,fy.sub.k[Mathematical Formula 16]
In the prediction value correction method, the steps 220 to 270 are repeatedly performed recursively while incrementing a data corresponding to a window by one to sequentially obtain the corrected future prediction value for a corresponding time point of each date.

(42) FIGS. 3 to 6 are diagrams illustrating weather prediction as examples, which are graphs of performance comparison of a case of a weather prediction value by a NWP system in the related art, a case of correcting a weather prediction value by using a Kalman filter in the related art, and a case of correcting a weather prediction value by using an H-infinity filter according to the present invention.

(43) FIG. 3 illustrates a case of 1-hour prediction (h=1), 10:00 am, n=1 in Chuncheon area from 2014 May 1 to 2014 May 30, a case of 24-hour prediction (h=24), 3:00 am, n=1 in Chuncheon area during the period from 2014 May 2 to 2014 May 31, a case of 1-hour prediction (h=1), 10:00 am, n=2 in Chuncheon area from 2014 May 1 to 2014 May 30, a case of 24-hour prediction (h 5=24), 3:00 am, n=2 in Chuncheon area during the period from 2014 May 2 to 2014 May 31.

(44) FIG. 7 is a table listing performance comparison of the case of correcting the weather prediction value by the NWP system in the related art, the case of correcting the weather prediction value by using the Kalman filter in the related art, and the case of correcting the weather prediction value by using the H-infinity filter according to the present invention.

(45) In FIG. 7, K denotes a window size, n denotes a polynomial order, Hrzn denotes the prediction time, and the root mean square error (RMSE) denotes a square root of a mean value of squares of biases for prediction values. The RMSE gain is a reduction ratio of the RMSE of the Kalman filter (Kf) and the H-infinity filter (Hf) on the basis on the RMSE of the NWP. The mean bias denotes a mean value of the biases for the weather prediction values included in the window, and the maximum bias denotes the maximum value of the bias due to the weather prediction values included in the window. In addition, N denotes the NWP system, Kf denotes the Kalman filter, and Hf denotes the H-infinity filter.

(46) Referring to FIG. 7, the RMSE of the NWP is 0.1624, the RMSE of Kf is 0.1466, the RMSE gain of Kf is 9.76%, the RMSE of Hf is 0.1398, and the RMSE gain of Hf is 13.92%. Therefore, it can be understood that the RMSE gain is improved in the case of using the H-infinity filter according to the present invention. It can also be understood that the mean bias is also improved in the case of using the H-infinity filter according to the present invention. In addition, with respect to the maximum bias, since the NWP is 0.4606 and Hf of 0.4104 is a small value in comparison with the Kf of 0.6218, it can be understood that the system according to the present invention has superior performance. This is because there is a great significance in lowering the error of the maximum value among the errors for the 30 prediction values.

(47) The prediction value correction method and apparatus according to the present invention can be used in weather prediction, stock price prediction, demand prediction, power generation amount prediction, and the like.

(48) While the present invention has been particularly illustrated and described with reference to exemplary embodiments thereof, it should be understood by the skilled in the art that the invention is not limited to the disclosed embodiments, but various modifications and applications not illustrated in the above description can be made without departing from the spirit of the invention. In addition, differences relating to the modifications and applications should be construed as being included within the scope of the invention as set forth in the appended claims.