Next Article in Journal
An Overview of the ASKOS Campaign in Cabo Verde
Previous Article in Journal
Methods of Identification Coherent Structures in Atmospheric Numerical Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

A Hybrid Extended Kalman Filter Based on a Parametrized FeedForward Neural Network for the Improvement of the Results of Numerical Wave Prediction Models †

by
Athanasios Donas
1,
George Galanis
2 and
Ioannis Th. Famelis
1,*
1
microSENSES Laboratory, Department of Electrical and Electronics Engineering, Ancient Olive Grove Campus, University of West Attica, 12241 Athens, Greece
2
Mathematical Modeling and Applications Laboratory, Hellenic Naval Academy, Hatzikiriakion, 18539 Piraeus, Greece
*
Author to whom correspondence should be addressed.
Presented at the 16th International Conference on Meteorology, Climatology and Atmospheric Physics—COMECAP 2023, Athens, Greece, 25–29 September 2023.
Environ. Sci. Proc. 2023, 26(1), 199; https://doi.org/10.3390/environsciproc2023026199
Published: 20 September 2023

Abstract

:
Aiming to develop a novel optimization model for numerical weather and wave predictions, this study proposes a hybrid approach based on the combination of Artificial Neural Networks (ANNs) and Kalman Filters (KFs). The KF technique uses fixed covariance matrices, which is inappropriate for dynamic conditions where the measurement error varies due to outside factors. This work proposes an alternative method for updating the covariance matrices, depending on a selected parameter that was obtained from a parametrized FeedForward Neural Network. The FeedForward Neural Network is trained for various values of the parameter for a set of historical data to provide the best choice based on a predetermined objective. Following this procedure, the parameter is added to the hybrid Extended Kalman Filter, which improves the direct outputs of numerical forecasts by decoding the systematic error between the model’s direct output and the corresponding observations. The suggested approach was used in a number of time periods in various locations with very promising results.

1. Introduction

Due to numerous important applications, including search and rescue, shipping and renewable energy sources, the necessity for accurate wave predictions has substantially increased. Numerical wave prediction models, which are employed by many operational and research centers, are a trustworthy and effective instrument to reach these goals, as they are fairly successful in simulating global environmental conditions. Nevertheless, when the forecasting concerns a local area of interest, numerical models fail to provide precise forecasts. The main reason for this is the multiparametric nature of the various factors involved, such as the strong dependence on initial and lateral conditions or the parametrization of some atmospheric or wave procedures [1].
The enhancement of the model’s resolution could be a potential solution to these problems, but the success of this strategy is uncertain and at the same time extremely costly, as the computational time will rise dramatically. An alternative approach could be to use post-processing algorithms [1,2,3] to improve the starting conditions based on assimilation systems. These instruments, like ANNs and Kalman Filters, can be used to improve the output generated by statistical models by reducing the systematic error of the simulation. In order to achieve this, a cost function is defined as the “distance” (bias) between the direct output of the model and the actual observations.
Under this framework, we introduce a hybrid Extended Kalman Filter based on a parametrized FeedForward Neural Network (pFFNN) for the prediction of the Significant Wave Height (SWH). In particular, for a set of historical data, the pFFNN is trained for various values of the parameter and the optimal value is added to the hybrid Extended Kalman Filter, which reduces the systematic error between the direct output of the WAM-cycle 4 [4] model and the corresponding observation.

2. Extended Kalman Filter Algorithm

Kalman Filtering (KF) is a recursive prediction algorithm which provides an optimal estimation for an unknown state vector x t given information about an observable vector y t based on the assumption that there is a linear correlation between these variables. However, when the dynamics of the model are nonlinear, a different filtering approach is necessary. One such technique is the Extended Kalman Filter, which is an extension of the Kalman Filter through a linearization process based on Taylor’s approximation [5].
To lay the groundwork for the construction of the EKF, we consider a nonlinear system which is described by the following state measurement model:
x t = h t 1 ( t 1 , x t 1 ) + w t 1
y t = g t ( t , x t ) +   v t
where w t and v t are independent Gaussian noise processes with zero mean and covariance matrices Q t 1 and R t , respectively. The quantities h t 1 ( ) and g t ( ) are the nonlinear transition matricies functions, which are considered to be C 1 and in some cases are time varying.
The fundamental idea behind the Extended Kalman Filter is to linearize the state space model of Equations (1) and (2) each time around the previous or most recent state estimate, which is taken to be either x ^ t 1 or x ^ t / t 1 depending on which specific functional is being taken into consideration [5]. The variables x ^ t 1 and x ^ t / t 1 express the priori and the posteriori estimate of the state, respectively.

3. Parametrized FeedForward Neural Network

Artificial Neural Networks (ANNs) are adaptable artificial systems that draw inspiration from the processes of the human brain, and are able to rebuild the fuzzy rules that determine the unknown correlation between various variables. The simplest type of ANN is the FeedForward Neural Network, which is a multi-layer network where every neuron in the previous layer connects to each neuron of the next layer [6].
In this study, a parametrized three-level FeedForward Neural Network has been applied in order to determine the optimal parameter a , with one hidden layer, twenty neurons, the sigmoid function, f ( x ) = 1 1 + e x as the activation function and one linear output layer. In particular, the network’s direct output is given by:
y o u t = V f ( W x ~ T + b 1 ) + b 2
where W is a d × m matrix, with m being the number of neurons in the hidden layer and d being the size of the input data x ~ = ( x 1 , x 2 , x d 1 , α ) . V and b 1 are 1 × m matrices, while b 2 is the (scalar) bias of the output layer.
The pFFNN can be trained for a range of values of the parameter α (here 0 α 1 ), enhancing network’s efficiency. The idea behind the application of a parameterized ANN is based on the work of Famelis and Kaloutsa, in which an NN was trained for different values of a parameter in order to determine to what extent this affects the stiffness of the problem [7]. Furthermore, in order to determine the network’s parameters, the Levenberg–Marquardt method was applied as learning a rule.

4. The Proposed Methodology

The Kalman Filtering procedure uses fixed covariance matrices; thus, choosing the quantities Q t 1 and R t is one of the most challenging issues for the filter’s successful implementation.
To avoid this problem, Shahrokh Akhlaghi and Zhenyu Huang [8] proposed an estimating method to adaptably adjust the quantities Q and R at each step of the EKF algorithm, based on:
R t = α R t 1 + ( 1 α ) ε t ε t T + G t / t 1 P t / t 1 G t / t 1 T
and
Q t = α Q t 1 + 1 α K t d t d t T K t T
Their choice was α = 0.3 for all their tests. Here, the quantity ε t is the residual and can be determined by the difference between the measurement’s actual value and its projected value based on the data provided at step t. On the other hand, d t is the innovation and expresses the difference between the actual measurement and its predicted value at time t.
However, the choice of the parameter α cannot be independent of the available data, as this loses essential information necessary for the study of dynamical systems. For this reason, aiming to improve the forecasting capabilities of WAM-cycle 4, the proposed methodology implements the parametrized FeedForward Neural Network presented in Section 2 to determine parameter α and therefore to modify the covariance matrices.
More specifically, the available historical data are divided into three sections:
  • Data Set1. Train the pFFNN and obtain the parameter a .
  • Data Set2. Train the hybrid Extended Kalman Filter with the parameter a.
    D a t a   S e t 2 = D a t a   S e t 1 + 1 : D a t a S e t 1 + r a n g e
  • Data Set3. Forecast using the hybrid Extended Kalman Filter.
    D a t a   S e t 3 = D a t a   S e t 2 + 1 : D a t a S e t 2 + f o r e c a s t .
For all case studies, D a t a S e t 1 = 1000 , r a n g e = 250 and f o r e c a s t = 40 .

Hybrid Extended Kalman Filter

In order to reduce the systematic error of the simulation, we define y t as the difference between the actual Significant Wave Height and the FeedForward Neural Network’s direct output, which uses as input the previous forecast of the model, with the following form:
y t = m t t , N t , S W H t 1 + v t .
where m ( ) is the nonlinear transition matrix function, while the quantity N t express a vectorial parameter that needs to be estimated by the filter. Note here that N t includes the parameters of each layer of the FFNN, i.e., N t = [ W , V , b 1 , b 2 ] and m t t , N t , S W H t 1 = V f ( W S W H t 1 + b 1 ) + b 2 , where f ( ) is the sigmoid function.
Furthermore, as we lack accurate knowledge about the evolution of the state vector N t in time, we presume that its change would be random and thus we set the system’s nonlinear transition matrix function h t 1 = 1 . Therefore, the state equation for the EKF can be described as follows:
N t = N t 1 + w t 1
Combining (3) and (4), we construct the state space model:
N t = N t 1 + w t 1
y t = m t ( t , N t , S W H t 1 ) + v t
When the dynamic system is defined, the hybrid Extended Kalman Filter follows the following steps:
  • Step 1. Initialization. For t = 0 , set
    N ^ 0 = E N 0 , P 0 = E N 0 E N 0 N 0 E N 0 T , R 0 , Q 0
  • Step 2. Iteration. For t = 1,2 , , compute:
    • The Jacobian matrix of the nonlinear transition function m ( ) .
      F t / t 1 = m t / t 1 | N ^ t / t 1
    • The Prediction Step.
      N ^ t / t 1 = N ^ t 1
      P t / t 1 = P t 1 + Q t 1
      d t = y t m t ( N ^ t / t 1 )
      K t = P t / t 1 F t / t 1 T [ F t / t 1 P t / t 1 F t / t 1 T + R t ] 1
      N ^ t / t = N ^ t / t 1 + K t [ y t m t ( N ^ t / t 1 ) ]
      ε t = y t m t ( N ^ t / t )
      R t = α R t 1 + ( 1 α ) ε t ε t T + F t / t 1 P t / t 1 F t / t 1 T
      K t = P t / t 1 F t / t 1 T [ F t / t 1 P t / t 1 F t / t 1 T + R t ] 1
      P t / t = [ I K t F t / t 1 ] P t / t 1
      Q t = α Q t 1 + ( 1 α ) K t d t d t T K t T
      N ^ t / t = N ^ t / t 1 + K t [ y t m t ( N ^ t / t 1 ) ]

5. Case Study

In this section, we compare the results derived from the hybrid Extended Kalman Filter with the tuned parameter a to those obtained by the same filter but with a stable parameter ( a = 0.3 ). The presented case study concerns data from the area of Lesvos in the Aegean Sea for the period 2010–2012. As training data for the pFFNN, one thousand WAM forecasts were used (DataSet1), while as training data for the hybrid EKF, the next two hundred and fifty model estimations were applied (DataSet2). Finally, in order to validate the performance of the proposed method, the following forty WAM predictions were used (DataSet3).
The values of Bias, Absolute Bias, Root Mean Square Error (Rmse) and Nash–Sutcliffe model efficiency coefficient (Ns) are reported in Table 1. More specifically, the indications “HybridEKFwithStableParameter” and “HybridEKFwithTuning Parameter” express the corresponding results from the proposed methodology, while the indication “Model” presents the direct output of the numerical wave model prior to the use of the method.
Additionally, time series diagrams per year are included. In particular, the indicator “True Values” expresses the actual observations of the Significant Wave Height, while “Model”, “HybridEKFwithStablePar” and “HybridEKFwithTuningPar” present the results produced from the numerical model before and after the implementation of the method, respectively.

Improving the Forecasting Capabilities-Lesvos Region

As new data for the Significant Wave Height were provided every three hours, our goal was to employ the suggested strategy to improve the wave model predictions for a period of five days.
Analyzing the time series (Figure 1) and Table 1, it is observed that the proposed method enhances the forecasts of the simulation model for all time periods. In particular, the various indicators improved greatly, most of all the Nash–Sutcliffe model efficiency coefficient index (Ns) and the Root Mean Square Error (Rmse).
According to the Ns, the greatest improvement was observed in the period of 2012, which prior to the usage of the method had a negative value ( N s = 0.172398 ), while after the implementation of the hybrid filter with a tuning parameter, the corresponding value increased to N s = 0.7673621 .
Furthermore, in the same period, the Rmse indicator significantly reduced, as its prior value was R m s e = 0.4355139 , while after the application of the proposed methodology with the adaptive parameter, the corresponding value was R m s e = 0.1940013 . Additionally, it should be noted that in all cases, the hybrid filter with a fixed parameter improves the model’s performance, but to a lesser extent compared to the adapted parameter filter and therefore it cannot be considered as the optimal choice.

6. Conclusions

In this study, we introduce a hybrid Extended Kalman Filter based on a parametrized FeedForward Neural Network (pFFNN) for the prediction of the Significant Wave Height (SWH). In particular, for a set of historical data, the pFFNN is trained for various values of the parameter and the optimal value is selected. Then, the chosen parameter is used in the Extended Kalman Filter in order to modify the covariance matrices.
The efficiency of the above methodology was evaluated through various time periods, which concerned (among others) the area of Lesvos in the Aegean Sea in 2010–2012. For every case, we compared the hybrid Extended Kalman Filter with a tuned parameter with the corresponding constant parameter filter to determine to what extent the value of the parameter influenced the performance of the proposed methodology.
The hybrid filter significantly improved the forecasting results of the simulation system. More specifically, in all cases, we observed that the hybrid filter based on a tuned parameter provided better results in comparison to those derived from the fixed parameter filter and therefore it is considered the better option to improve the forecasts of the WAM-cycle 4 model.
Finally, the proposed method was also implemented for the Pacific and other Aegean regions with similar success, but the results are not included in this paper. Furthermore, it should be noted that the hybrid approach of ANNs and EKFs is not limited to WAM-cycle 4 applications, but can be extended to other numerical prediction models as well.

Author Contributions

Conceptualization, A.D., G.G. and I.T.F.; methodology, A.D., G.G. and I.T.F.; software, A.D. and I.T.F.; validation, A.D., G.G. and I.T.F.; formal analysis, A.D., G.G. and I.T.F.; investigation, A.D., G.G. and I.T.F.; resources, G.G.; data curation, A.D. and G.G.; writing—original draft preparation, A.D. and I.T.F.; writing—review and editing, A.D., G.G. and I.T.F.; visualization, A.D., G.G. and I.T.F.; supervision, G.G. and I.T.F.; project administration, G.G. and I.T.F.; funding acquisition, I.T.F. All authors have read and agreed to the published version of the manuscript.

Funding

This work has been funded by the Unit of Economic and Administrative Support (E.L.K.E) of University of West Attica.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data is unavailable due to privacy restrictions.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Famelis, I. Runge-Kutta solutions for an environmental parameter prediction boundary value problem. J. Coupled Syst. Mul-tiscale Dyn. Exp. 2014, 2, 62–69. [Google Scholar] [CrossRef]
  2. Famelis, I.; Galanis, G.; Ehrhardt, M.; Triantafyllou, D. Classical and Quasi-Newton Methods for a Meteorological Parameters Prediction Boundary Value Problem. Appl. Math. Inf. Sci. 2014, 8, 2683–2693. [Google Scholar] [CrossRef]
  3. Famelis, I.; Tsitouras, C. Quadric Shooting Solution for an Environmental parameter prediction model. Far East J. Appl. Math. 2015, 91, 81–98. [Google Scholar] [CrossRef]
  4. Galanis, G.; Chu, P.C.; Kallos, G. Statistical post processes for the improvement of the results of numerical wave prediction models. A combination of Kolmogorov-Zurbenko and Kalman filters. J. Oper. Oceanogr. 2011, 4, 23–31. [Google Scholar] [CrossRef]
  5. Haykin, S. Kalman Filtering And Neural Networks; John Wiley & Sons: Hamilton, ON, Canada, 2001; p. 304. [Google Scholar]
  6. Famelis, I.; Donas, A.; Galanis, G. Comparative study of FeedForward and Radial Basis Function Neural Networks for solving an Environmental Boundary Value Problem. Results Appl. Math. 2022, 16, 100344. [Google Scholar] [CrossRef]
  7. Famelis, I.; Kaloutsa, V. Parameterized neural network training for the solution of a class of stiff initial value systems. Neural Comput. Appl. 2021, 33, 3363–3370. [Google Scholar] [CrossRef]
  8. Shahrokh, A.; Huang, Z. Adaptive Adjustment of Noise Covariance in Kalman Filter for Dynamic State Estimation. In Proceedings of the IEEE General Meeting Power& Energy Society, Chicago, IL, USA, 16–20 July 2017. [Google Scholar]
Figure 1. Forecasts from Lesvos in 2010–2012. The historic database contains 1250 observations and 40 correct predictions. (a) Results from 2010; (b) results from 2011; (c) results from 2012.
Figure 1. Forecasts from Lesvos in 2010–2012. The historic database contains 1250 observations and 40 correct predictions. (a) Results from 2010; (b) results from 2011; (c) results from 2012.
Environsciproc 26 00199 g001
Table 1. Aggregate results for the different periods. The historic database contains 1250 observations and 40 correct predictions.
Table 1. Aggregate results for the different periods. The historic database contains 1250 observations and 40 correct predictions.
2010BiasAbsoluteBiasRmseNs
Model0.1485260.1890.30070570.6992427
HybridEKFwithStablePar a = 0.30.0278860.16433060.2593940.7762037
HybridEKFwithTuningPar a = 0.70.0300330.13590920.21851810.941179
2011BiasAbsoluteBiasRmseNs
Model0.2756320.29568420.4009535−0.9108604
HybridEKFwithStablePar a = 0.30.1176580.1176580.3021639−0.0852406
HybridEKFwithTuningPar a = 0.60.0232350.15869070.19626340.5421536
2012BiasAbsoluteBiasRmseNs
Model0.2083160.28342110.4355139−0.172398
HybridEKFwithStablePar a = 0.3−0.029320.26569880.34868260.2484957
HybridEKFwithTuningPar a = 0.1−0.005710.14146790.19400130.7673621
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Donas, A.; Galanis, G.; Famelis, I.T. A Hybrid Extended Kalman Filter Based on a Parametrized FeedForward Neural Network for the Improvement of the Results of Numerical Wave Prediction Models. Environ. Sci. Proc. 2023, 26, 199. https://doi.org/10.3390/environsciproc2023026199

AMA Style

Donas A, Galanis G, Famelis IT. A Hybrid Extended Kalman Filter Based on a Parametrized FeedForward Neural Network for the Improvement of the Results of Numerical Wave Prediction Models. Environmental Sciences Proceedings. 2023; 26(1):199. https://doi.org/10.3390/environsciproc2023026199

Chicago/Turabian Style

Donas, Athanasios, George Galanis, and Ioannis Th. Famelis. 2023. "A Hybrid Extended Kalman Filter Based on a Parametrized FeedForward Neural Network for the Improvement of the Results of Numerical Wave Prediction Models" Environmental Sciences Proceedings 26, no. 1: 199. https://doi.org/10.3390/environsciproc2023026199

Article Metrics

Back to TopTop