# A Tidal Level Prediction Approach Based on BP Neural Network and Cubic B-Spline Curve with Knot Insertion Algorithm

Authors: Wenjuan Wang; Hongchun Yuan
Journal: Mathematical Problems in Engineering
 (2018)

---

## Abstract

Tide levels depend on both long-term astronomical effects that are mainly affected by moon and sun and short-term meteorological effects generated by severe weather conditions like storm surge. Storm surge caused by typhoons will impose serious security risks and threats on the coastal residents’ safety in production, property, and life. Due to the challenges of nonperiodic and incontinuous tidal level record data and the influence of multimeteorological factors, the existing methods cannot predict the tide levels affected by typhoons precisely. This paper targets to explore a more advanced method for forecasting the tide levels of storm surge caused by typhoons. First, on the basis of successive five-year tide level and typhoon data at Luchaogang, China, a BP neural network model is developed using six parameters of typhoons as input parameters and the relevant tide level data as output parameters. Then, for an improved forecasting accuracy, cubic B-spline curve with knot insertion algorithm is combined with the BP model to conduct smooth processing of the predicted points and thus the smoothed prediction curve of tidal level has been obtained. By using the data of the fifth year as the testing sample, the predicted results by the two methods are compared. The experimental results have shown that the latter approach has higher accuracy in forecasting tidal level of storm surge caused by typhoons, and the combined prediction approach provides a powerful tool for defending and reducing storm surge disaster.


---

## Body

## 1. Introduction

The phenomenon of local sea-level turbulence or non-periodical abnormal sea-level rise or decline due to strong winds and fast pressure changes caused by tropical cyclones, extratropical cyclones, and coastal squall lines is referred to as storm surge [1]. Storm surge is a severe natural disaster which will lead to abnormal rise of sea level in a short period of time. Located in the estuary of the Yangtze River, with the East China Sea to the east, Shanghai is frequently attached by typhoons. Storm surge caused by typhoons will impose serious security risks and threats on the coastal residents’ safety in production, property, and life.At present, there exist some methods for predicting tidal levels, such as time series analysis, finite difference method, harmonic analysis, probability, and statistics, and so forth. However, both time series analysis and harmonic analysis put too much emphasis on the periodicity of the data; the algorithm of finite difference method for solving nonlinear problems is too complex; probability and statistics cannot solve the issue of data continuity [2–6]. In order to overcome the challenges of nonperiodic and incontinuous tidal level record data, and the influence of multifactors, the neural network method has first been applied by many researchers to predict periodic tidal levels depending on long-term astronomical effects that are mainly affected by moon and sun [7–15]; then it has also been employed to predict tidal levels with short-term meteorological effects generated by severe weather conditions like storm surge [16–21].Latest research has tried to improve the prediction accuracy by employing a mixed approach or improved algorithm. For example, Supharatid [22] optimized the neural network-based tidal level predicting model with the Levenberg-Marquardt algorithm and found that the dry period had stronger influences on tide levels than the flood period. Further, through comparison between harmonic analysis method, BP neural network method, and BP neural network method based on self-adapting particle swarm optimization algorithm, Zhang et al. [23] have revealed that the conventional harmonic method performs with the lowest accuracy in predicting tidal level with meteorological effects. French et al. [24] combined ANN with computational hydrodynamics for predicting short-term tidal levels at estuarine ports and they have found that the ANN-hydrodynamic model can generate realistic flood extents that can inform port resilience planning. Moreover, Rahman et al. [25] proposed a satisfactory vertically integrated shallow model for computing water levels due to the nonlinear interaction of tide and surge associated with some storms that hit the coast of Bangladesh. In order to select data samples with most representing ability and construct appropriate sampling pool, Yin and Wang [26] combined conventional harmonic analysis with the online sequential extreme learning machine based on improved Gath-Geva fuzzy segmentation algorithm, and their simulation results demonstrated the feasibility and effectiveness of the combined method for dynamic tidal level prediction. Further, El-Diasty et al. [27] developed a hybrid harmonic analysis and wavelet network (HA-and-WN) model for accurate sea-level prediction and their validation experiments have revealed that the overall performance of the hybrid HA-and-WN model is superior to the HA-only model by 85% and outperforms the WN-only model by about 20% based on the overall root mean square.Although numerous techniques have been employed to forecast tide levels, there exist large forecasting errors no less than 11 cm [28–30]. In order to achieve an improved forecast accuracy and adapt to severe weather caused by meteorological components, this paper will explore an effective and feasible model for predicting tidal level of storm surge caused by typhoons. On the basis of observation data of long-term tidal levels and typhoons, this study first attempts to develop a BP neural network-based model for predicting tide level. In the early published work of [20], in order to select a most accurate tidal level prediction approach, we compared three methods, linear regression, BP neural network, and RBF neural network using the same testing data and the experimental results have demonstrated that BP model outweighs the other two approaches in forecasting the tidal level of storm surge caused by typhoons.However, the tide levels predicted by BP model are isolated points. Due to the fact that tidal level changes gradually not suddenly, there is probability that the highest tidal level appears between two predicted points. Therefore, the second step of this study is to optimize the BP prediction model using cubic B-spline curve with knot insertion algorithm (KIA) [31, 32], BP-KIA model for short, which will conduct curve simulation and smooth processing of the forecasted data points, thus to accurately predict the highest tide level and its time of occurrence. The proposed BP model and its optimized BP-KIA model are tested with the same historic tidal level data of Luchaogang, China.This paper is organized in the following way. In the second section, the main methods are introduced. In Section3, the details of experiments are delineated. Section 4 presents the major experimental results and related discussion. Section 5 provides a conclusion of this paper.


## 2. Methods

### 2.1. BP Neural Network

ANN is an intelligent system that can simulate the information processing functions of biological neural networks by interconnecting many simple neurons. ANN is an adaptive nonlinear dynamic system which is mutually connected by a large amount of neurons. BP neural network is the most prevalent and effective learning model of ANN. Compared with other conventional models, BP neural network has better durability and timely predictability. BP uses the gradient descent method to correct the weights of the interconnective neurons and it can easily handle the interaction of processing elements by adding hidden layers. In the learning process of BP, the interconnection weights are adjusted using an error convergence technique to obtain a desired output for a given input.A typical BP neural network is composed by three layers: input layer, hidden layer, and output layer. Theoretically, it can approach a continuous function with any precision. A classical three-layer BP network model is shown in Figure1.Figure 1
A classical three-layer BP network model.n is the input layer nodes, l is the hidden layer nodes, m is the output layer nodes, Wij is called input-hidden layer link weight, and Wjk is called hidden-output layer link weight.Then the output value of hidden layer is expressed as follows:(1)Hj=f∑i=1nwijxi-θj,j=1,2,…,lwhere θj is the threshold of the hidden layer nodes and f(.) is a nonlinear transfer function. The Sigmoid function: fx=1/1+e-x is commonly adopted as the nonlinear transfer function.Thus, the actual outputs of BP network can be obtained:(2)Ok=∑j=1lHjwjk-ak,k=1,2,…,mwhere ak is the threshold of the output layer nodes.According to the actual outputO and the desired network outputs Y, the network error e can be obtained through the following:(3)ek=12∑k=1mYk-Ok2,k=1,2,…,mIf the number of learning sample isp, the global error E is defined as(4)E=12p∑q=1p∑k=1mYk-Ok2,k=1,2,…,m,q=1,2,…,pIfE is less than allowed error ε, the learning process terminates; otherwise, there is a need to calculate the output deviation of each layer to conduct error back propagation in order to modify the values of weights and thresholds of BP neural network. Repeat this process until the global error E reaches the allowed error ε, then record all weight values and threshold values, the network training terminates. The prediction values can be obtained if inputting the samples data at this moment.


### 2.2. Cubic B-Spline Curve Based on KIA

The derivation process of cubic B-spline curve based on KIA is depicted as follows.The curve segmentn-k+1 of K-degree B-spline curve in definition domain t∈tk,tn+1 takes the following form:(5)Pt=∑j=i-kipjNj,kt,t∈tk,tn+1K-degree B-spline curvePt is a continuous spline curve composed of multi-segment polynomial in the definition domain. Therefore, conduct simple parameter transformation: t=tx=ti+x, and set r=i-k which represents the curve r, then the equation of K-degree B-spline curve is transformed as follows:(6)Srx=Ptx=xkxk-1…x1Mkprpr+1…pr+kwhere 0≤x≤1, r=0,1,…,n-k.In terms of cubic B-spline curve, it is inferred from (6) that cubic B-spline curve is composed ofn-2 curve segments, the first curve segment takes the following form: (7)
S
x
=
1
6
∗
x
3
x
2
x
1
-
1
3
-
3
1
3
-
6
3
0
-
3
0
3
0
1
4
1
0
p
0
p
1
p
2
p
3
0
≤
x
≤
1Set(8)M3=16∗-13-313-630-30301410,c0c1c2c3T=M3p0p1p2p3T,Equation (7) can be converted into the following form:(9)Sx=x3x2x1c0c1c2c3T0≤x≤1Divide the interval[0,1] into m segments equally, set xi=i/mi=0,1,…,m, and Sxi represents the unknown points of the curve segments after inserting nodes.Inferring from Taylor series of the function, we obtain the following equation:(10)Sx+h=Sx+S′xh+S′′x2h2+S′′′x6h3If we setSi=Sxi, SPi=S′xih, SPP2i=S′′xih2/2, SPPP6i=S′′′xih3/6, the following equation can be drawn from (10):(11)Si+1=Si+SPi+SPP2i+SPPP6iTherefore, as long as we acquire the iterative formulas ofSPi, SPP2i, SPPP6i, the iterative formula of Si can be calculated from (11).After Tailor series of expansion ofS′x+h, we can obtain S′x+h=S′x+S′′xh+S′′′x/2h2. If multiplied by h on its two sides, and set SPPi=S′′xih2, SPPP2i=S′′′xih3/2, the following equation can be achieved:(12)SPi+1=SPi+SPPi+SPPP2iAfter Tailor series of expansion ofS′′x+h, we can obtain S′′x+h=S′′x+S′′′xh. If multiplied by h2 on its two sides, and set SPPPi=S′′′xih3, the following equation can be obtained:(13)SPPi+1=SPPi+SPPPi(14)SPP2i+1=SPP2i+SPPP2iS ( x ) is cubic polynomial curve, SPPPi, SPPP2i, SPPP6i are constants. After S0, SP0, SPP0, SPP20, SPPP20, and SPPP60 are computed, other points Si on the curve can be collectively calculated by (11), (12), (13), and (14).


### 2.3. The Proposed Tidal Level Prediction Model

Based on aforementioned theories, the proposed tidal level prediction model, based on BP neural network and cubic B-spline curve with KIA, BP-KIA model is derived. First, the preliminary predicted data are drawn from BP model, then insert nodes using knot insertion algorithm, and finally the smoothed tidal level prediction curve is gained. The proposed BP-KIA tidal level prediction model is depicted in Figure2.Figure 2
The structure of proposed BP-KIA tidal level prediction model.x 1, x2, x3, x4, x5, and x6 represent the latitude and longitude of the typhoon, distance from the observation point to the typhoon, strength of the typhoon, pressure of the typhoon, and speed of the typhoon. The parameters of y1, y2, y3…, y24 represent the predicted tidal levels from today’s midday 12 until midday 12 the next day.


## 2.1. BP Neural Network

ANN is an intelligent system that can simulate the information processing functions of biological neural networks by interconnecting many simple neurons. ANN is an adaptive nonlinear dynamic system which is mutually connected by a large amount of neurons. BP neural network is the most prevalent and effective learning model of ANN. Compared with other conventional models, BP neural network has better durability and timely predictability. BP uses the gradient descent method to correct the weights of the interconnective neurons and it can easily handle the interaction of processing elements by adding hidden layers. In the learning process of BP, the interconnection weights are adjusted using an error convergence technique to obtain a desired output for a given input.A typical BP neural network is composed by three layers: input layer, hidden layer, and output layer. Theoretically, it can approach a continuous function with any precision. A classical three-layer BP network model is shown in Figure1.Figure 1
A classical three-layer BP network model.n is the input layer nodes, l is the hidden layer nodes, m is the output layer nodes, Wij is called input-hidden layer link weight, and Wjk is called hidden-output layer link weight.Then the output value of hidden layer is expressed as follows:(1)Hj=f∑i=1nwijxi-θj,j=1,2,…,lwhere θj is the threshold of the hidden layer nodes and f(.) is a nonlinear transfer function. The Sigmoid function: fx=1/1+e-x is commonly adopted as the nonlinear transfer function.Thus, the actual outputs of BP network can be obtained:(2)Ok=∑j=1lHjwjk-ak,k=1,2,…,mwhere ak is the threshold of the output layer nodes.According to the actual outputO and the desired network outputs Y, the network error e can be obtained through the following:(3)ek=12∑k=1mYk-Ok2,k=1,2,…,mIf the number of learning sample isp, the global error E is defined as(4)E=12p∑q=1p∑k=1mYk-Ok2,k=1,2,…,m,q=1,2,…,pIfE is less than allowed error ε, the learning process terminates; otherwise, there is a need to calculate the output deviation of each layer to conduct error back propagation in order to modify the values of weights and thresholds of BP neural network. Repeat this process until the global error E reaches the allowed error ε, then record all weight values and threshold values, the network training terminates. The prediction values can be obtained if inputting the samples data at this moment.


## 2.2. Cubic B-Spline Curve Based on KIA

The derivation process of cubic B-spline curve based on KIA is depicted as follows.The curve segmentn-k+1 of K-degree B-spline curve in definition domain t∈tk,tn+1 takes the following form:(5)Pt=∑j=i-kipjNj,kt,t∈tk,tn+1K-degree B-spline curvePt is a continuous spline curve composed of multi-segment polynomial in the definition domain. Therefore, conduct simple parameter transformation: t=tx=ti+x, and set r=i-k which represents the curve r, then the equation of K-degree B-spline curve is transformed as follows:(6)Srx=Ptx=xkxk-1…x1Mkprpr+1…pr+kwhere 0≤x≤1, r=0,1,…,n-k.In terms of cubic B-spline curve, it is inferred from (6) that cubic B-spline curve is composed ofn-2 curve segments, the first curve segment takes the following form: (7)
S
x
=
1
6
∗
x
3
x
2
x
1
-
1
3
-
3
1
3
-
6
3
0
-
3
0
3
0
1
4
1
0
p
0
p
1
p
2
p
3
0
≤
x
≤
1Set(8)M3=16∗-13-313-630-30301410,c0c1c2c3T=M3p0p1p2p3T,Equation (7) can be converted into the following form:(9)Sx=x3x2x1c0c1c2c3T0≤x≤1Divide the interval[0,1] into m segments equally, set xi=i/mi=0,1,…,m, and Sxi represents the unknown points of the curve segments after inserting nodes.Inferring from Taylor series of the function, we obtain the following equation:(10)Sx+h=Sx+S′xh+S′′x2h2+S′′′x6h3If we setSi=Sxi, SPi=S′xih, SPP2i=S′′xih2/2, SPPP6i=S′′′xih3/6, the following equation can be drawn from (10):(11)Si+1=Si+SPi+SPP2i+SPPP6iTherefore, as long as we acquire the iterative formulas ofSPi, SPP2i, SPPP6i, the iterative formula of Si can be calculated from (11).After Tailor series of expansion ofS′x+h, we can obtain S′x+h=S′x+S′′xh+S′′′x/2h2. If multiplied by h on its two sides, and set SPPi=S′′xih2, SPPP2i=S′′′xih3/2, the following equation can be achieved:(12)SPi+1=SPi+SPPi+SPPP2iAfter Tailor series of expansion ofS′′x+h, we can obtain S′′x+h=S′′x+S′′′xh. If multiplied by h2 on its two sides, and set SPPPi=S′′′xih3, the following equation can be obtained:(13)SPPi+1=SPPi+SPPPi(14)SPP2i+1=SPP2i+SPPP2iS ( x ) is cubic polynomial curve, SPPPi, SPPP2i, SPPP6i are constants. After S0, SP0, SPP0, SPP20, SPPP20, and SPPP60 are computed, other points Si on the curve can be collectively calculated by (11), (12), (13), and (14).


## 2.3. The Proposed Tidal Level Prediction Model

Based on aforementioned theories, the proposed tidal level prediction model, based on BP neural network and cubic B-spline curve with KIA, BP-KIA model is derived. First, the preliminary predicted data are drawn from BP model, then insert nodes using knot insertion algorithm, and finally the smoothed tidal level prediction curve is gained. The proposed BP-KIA tidal level prediction model is depicted in Figure2.Figure 2
The structure of proposed BP-KIA tidal level prediction model.x 1, x2, x3, x4, x5, and x6 represent the latitude and longitude of the typhoon, distance from the observation point to the typhoon, strength of the typhoon, pressure of the typhoon, and speed of the typhoon. The parameters of y1, y2, y3…, y24 represent the predicted tidal levels from today’s midday 12 until midday 12 the next day.


## 3. Experiments

### 3.1. Experimental Procedures

In order to develop a tidal level prediction model for Luchaogang, the first step is to normalize the six parameters of typhoon. Next, the normalized data are taken as the inputs of the BP model. After training of the BP model is completed, the predicted tide levels in 24 hours from today’s midday 12 until midday 12 the next day are acquired. Then, cubic B-spline curve with KIA is employed to conduct smooth processing of the predicted data in 24 hours. Finally, the tidal level prediction curve is obtained. The detailed experimental procedures are illustrated in Figure3.Figure 3
The experimental procedures.


### 3.2. Source of Data

The typhoon data and tidal level data in this study are provided by Pudong Hydrological Bureau. There are 137952 groups of tidal level observation data, 360 groups of typhoon data, and 10143 groups of astronomical tide data at Luchaogang, from 2008 to 2012. The first step is to match the tidal level data and typhoon data occur simultaneously, and then 360 groups of typhoon data and correspondingly tidal level data are summarized. Next, tidal level data under the influence of typhoon are acquired by subtraction between the annual tidal level observation data and the corresponding astronomical tide data. The latitude and longitude of the typhoon, distance from the observation point to the typhoon, strength of the typhoon, pressure of the typhoon, and speed of the typhoon are employed as the input parameters; the corresponding tidal level data are adopted as the output parameters.


### 3.3. Data Normalization of Input Parameters

Because the measurement units and formats of the parameters of typhoon are not inconsistent, they cannot be directly used as the input layer of BP model: they must be normalized. For normalization, there is no need for complex calculation of unit conversion. Normalization is a method of turning the absolute value of real data into relative value, which is an effective means to simplify computing and reduce value. Linear function transformation is used in this paper to normalize the parameters of typhoon, which is expressed as follows:(15)y=ymax-ymin×x-xminxmax-xmin+yminwhere x are the parameters of typhoon. In order to make the input parameters of typhoon between [-1,1], based on the requirements of data normalization, ymax and ymin are defined as follows:(16)ymax=1(17)ymin=-1


### 3.4. Design of BP Neural Network

In the proposed BP model, some of the training parameters are set with the Matlab neural network toolbox-MatlabR2014a. For MatlabR2014a, the default transformation function is Sigmoid. After a series of test, it is found that when the number of neurons in the hidden layer is more than 40, the model has better convergence, with a relatively smallMSE. Therefore, the number of nodes in the hidden layer is set as 50. The conjugate gradient method is selected as the training function due to its advantages of avoiding slow convergence and computational complexity. In addition, the learning rate is 0.05; the number of training iterations is 1000. The six normalized parameters of typhoons, latitude, longitude, distance, strength, pressure, and speed, from 2008 to 2011 are used as the input parameters, and the corresponding tidal level data are used as the output parameters. A BP neural network model is obtained by training, as shown in Figure 4.Figure 4
The structure of BP neural network in Matlab.


### 3.5. The BP-KIA Tidal Level Prediction Model

The tide levels predicted by BP neural network model are isolated points. However, the changes of actual tide levels are gradual not sudden. Due to the limitation of observed sample data, there is probability that the highest tidal level occurs between two predicted points. Therefore, this study employs KIA-based cubic B-spline curve to optimize the proposed BP prediction model and conduct smooth processing of the predicted points. Thus the smoothed curve can predict continuous changes of tide levels and the peak of tidal level sequence.Through running the code of cubic B-spline curve based on KIA in MatlabR2014a, the tidal level data predicted by BP model are conducted with smooth processing and the tidal level curve within 24 hours can be obtained as shown in Figure5. In Figure 5, the broken line comprised by discrete points is the results predicted by BP model, and the curve is the results predicted by the BP-KIA model. Thex-axis represents 24 hours from today’s midday 12 until midday 12 the next day, while they-axis represents the height of tide level in the measurement unit of meters.Figure 5
The tidal level prediction curve.


## 3.1. Experimental Procedures

In order to develop a tidal level prediction model for Luchaogang, the first step is to normalize the six parameters of typhoon. Next, the normalized data are taken as the inputs of the BP model. After training of the BP model is completed, the predicted tide levels in 24 hours from today’s midday 12 until midday 12 the next day are acquired. Then, cubic B-spline curve with KIA is employed to conduct smooth processing of the predicted data in 24 hours. Finally, the tidal level prediction curve is obtained. The detailed experimental procedures are illustrated in Figure3.Figure 3
The experimental procedures.


## 3.2. Source of Data

The typhoon data and tidal level data in this study are provided by Pudong Hydrological Bureau. There are 137952 groups of tidal level observation data, 360 groups of typhoon data, and 10143 groups of astronomical tide data at Luchaogang, from 2008 to 2012. The first step is to match the tidal level data and typhoon data occur simultaneously, and then 360 groups of typhoon data and correspondingly tidal level data are summarized. Next, tidal level data under the influence of typhoon are acquired by subtraction between the annual tidal level observation data and the corresponding astronomical tide data. The latitude and longitude of the typhoon, distance from the observation point to the typhoon, strength of the typhoon, pressure of the typhoon, and speed of the typhoon are employed as the input parameters; the corresponding tidal level data are adopted as the output parameters.


## 3.3. Data Normalization of Input Parameters

Because the measurement units and formats of the parameters of typhoon are not inconsistent, they cannot be directly used as the input layer of BP model: they must be normalized. For normalization, there is no need for complex calculation of unit conversion. Normalization is a method of turning the absolute value of real data into relative value, which is an effective means to simplify computing and reduce value. Linear function transformation is used in this paper to normalize the parameters of typhoon, which is expressed as follows:(15)y=ymax-ymin×x-xminxmax-xmin+yminwhere x are the parameters of typhoon. In order to make the input parameters of typhoon between [-1,1], based on the requirements of data normalization, ymax and ymin are defined as follows:(16)ymax=1(17)ymin=-1


## 3.4. Design of BP Neural Network

In the proposed BP model, some of the training parameters are set with the Matlab neural network toolbox-MatlabR2014a. For MatlabR2014a, the default transformation function is Sigmoid. After a series of test, it is found that when the number of neurons in the hidden layer is more than 40, the model has better convergence, with a relatively smallMSE. Therefore, the number of nodes in the hidden layer is set as 50. The conjugate gradient method is selected as the training function due to its advantages of avoiding slow convergence and computational complexity. In addition, the learning rate is 0.05; the number of training iterations is 1000. The six normalized parameters of typhoons, latitude, longitude, distance, strength, pressure, and speed, from 2008 to 2011 are used as the input parameters, and the corresponding tidal level data are used as the output parameters. A BP neural network model is obtained by training, as shown in Figure 4.Figure 4
The structure of BP neural network in Matlab.


## 3.5. The BP-KIA Tidal Level Prediction Model

The tide levels predicted by BP neural network model are isolated points. However, the changes of actual tide levels are gradual not sudden. Due to the limitation of observed sample data, there is probability that the highest tidal level occurs between two predicted points. Therefore, this study employs KIA-based cubic B-spline curve to optimize the proposed BP prediction model and conduct smooth processing of the predicted points. Thus the smoothed curve can predict continuous changes of tide levels and the peak of tidal level sequence.Through running the code of cubic B-spline curve based on KIA in MatlabR2014a, the tidal level data predicted by BP model are conducted with smooth processing and the tidal level curve within 24 hours can be obtained as shown in Figure5. In Figure 5, the broken line comprised by discrete points is the results predicted by BP model, and the curve is the results predicted by the BP-KIA model. Thex-axis represents 24 hours from today’s midday 12 until midday 12 the next day, while they-axis represents the height of tide level in the measurement unit of meters.Figure 5
The tidal level prediction curve.


## 4. Results and Discussion

### 4.1. Analysis of Predicted Highest Tide Levels

The highest predicted tide level is the maximum value of predicted tide levels in 24 hours. All predicted tide levels in one day can be obtained through curve simulation and smoothing. In order to compare the prediction accuracy between BP model and BP-KIA prediction model, we extracted the highest tidal level data in given dates in 2012 from the documents provided by Pudong Hydrological Bureau. Then four typhoons, Damrey, Haikui, Tembin, and Sanba, were, respectively, adopted as testing cases to inspect applicability of the proposed prediction models. Those four typhoons have different impacts on Shanghai’s tide levels (see Table1 for details).Table 1
The degree of influence by “Damrey” “Haikui” “Tembin” and “Sanba”.
Name of typhoon Influence date Influence degree to Shanghai Damrey 2nd Aug. -4th Aug. Strong Haikui 3rd Aug. - 9th Aug. Very Strong Tembin 19th Aug. -28th Aug. Slightly weaker Sanba 11th Sep.-19th Sep. Very weakSubsequently, the prediction models were employed to predict tide levels in selected dates. Table2 lists the real highest tide levels, as well as the corresponding highest tide levels predicted by BP model and BP-KIA model, respectively, with the influence of typhoon Haikui in 2012 (retaining two decimal fractions).Table 2
The comparison of BP model and BP-KIA model with influence of Haikui.
Date Real tide levels [m] Tide levels predicted by BP model [m] Tide levels predicted by BP-KIA model [m] date Real tide levels [m] Tide levels predicted by BP model [m] Tide levels predicted by BP-KIA model [m] 8.1-2 4.28 4.25 4.25 8.24-25 4.13 4.10 4.11 8.2-3 4.50 4.35 4.47 8.25-26 3.99 3.98 3.98 8.3-4 4.92 5.71 5.72 8.26-27 4.05 4.01 4.02 8.4-5 4.83 5.35 5.35 8.27-28 4.73 4.65 4.66 8.5-6 4.64 4.71 4.72 9.11-12 3.67 3.65 3.67 8.6-7 4.51 4.45 4.52 9.12-13 3.99 3.96 3.97 8.7-8 4.81 4.46 4.46 9.13-14 4.21 4.21 4.25 8.19-20 4.51 4.01 4.04 9.14-15 4.48 4.41 4.55 8.20-21 4.47 4.21 4.22 9.15-16 4.76 4.48 4.63 8.21-22 4.32 4.22 4.24 9.16-17 4.98 5.25 5.28 8.22-23 4.35 4.39 4.39 9.17-18 4.82 4.81 4.81 8.23-24 4.16 4.15 4.15 9.18-19 4.55 5.02 5.03Data in Table2 were divided into two groups for further analysis. One group was real tide levels and tide levels predicted by BP model, and the other group was real tide levels and tide levels predicted by BP-KIA model. Matlab was adopted to calculateMSE andRMSE of the two groups, and the results are displayed in Table 3.Table 3
The comparison ofMSE and RMSE for the highest tide levels by BP model and BP-KIA model.
Error type Prediction by BP model[m] Prediction by BP-KIA model[m] MSE 0.074 0.070 RMSE 0.271 0.265It can be inferred from Table3 that the prediction accuracy of the highest tide level has been enhanced by adding KIA. Both BP tidal level prediction model and BP-KIA model have higher prediction accuracy than linear regression model withMSE of 4.9734 m [20], RBF model withMSE of 0.2526 m [20], and conventional harmonic analysis method with the mean error of 0.2-0.3 m [23]. TheMSE of 0.070 m andRMSE of 0.265 m demonstrate that the method of combining BP neural network and cubic B-spline curve with KIA has great significance and applicability in predicting tide levels when typhoons approach.


### 4.2. Analysis of Predicted Time of Tidal Level Peak

When a typhoon occurs, not only is accurate prediction of upcoming highest tide level needed, the precise analysis of the time when the highest tide level appears is also critical.In the proposed BP-KIA tidal level prediction model, the time segments of tide-level prediction data commence from today’s midday 12 until midday 12 the next day. In order to simplify computation, we use 24 integers to represent the time segments; for instance, 0 corresponds to today’s midday 12 and 1 corresponds to 1pm today, and so on. The highest tide level and its time of occurrence can be obtained by calculating the horizontal ordinate and vertical coordinate values of the peak of the tidal level prediction curve. For instance, in Figure6, the highest tide level is 4.719 m and its occurring time is 14.92. Because the predicted time is processed by decimal system, a conversion formula is needed to compute the real time. Therefore, by setting a as the integer bit of the horizontal ordinate and b as its decimal place, the formula to obtain the accurate time t can be summarized as follows:(18)t=12-a:0.6b0≤a<12a-12:0.6b12≤a<23Figure 6
The tidal level prediction curve with time.Through formula (18), it can be calculated that the horizontal ordinate 14.92 represents 2:55 am the next day. The complete 24-hour prediction curve (see Figure 6) can be obtained through running the optimized tidal level prediction model based on BP and cubic B-spline curve with KIA in Matlab.Afterwards, the error between the real time when the highest tidal levels occurred from 1 August to 19 September in 2012 and the corresponding time predicted by the proposed BP-KIA model was analyzed (see details in Table4). It is noted that, in order to conduct effective comparison, the real occurrence time of the highest tide level provided by the documents from Pudong Hydrological Bureau had to be decimalized.Table 4
The corresponding date and time of tidal level peak.
Date Time of the highest tide level Predicted time of the highest tide level Date Time of the highest tide level Predicted time of the highest tide level 8.1-2 11.68 12.56 8.24-25 4.75 4.81 8.2-3 12.08 13.22 8.25-26 5.58 5.92 8.3-4 13.33 13.69 8.26-27 7.17 7.12 8.4-5 14.08 14.12 8.27-28 8.33 8.81 8.5-6 14.58 14.92 9.11-12 8.50 8.69 8.6-7 15.33 15.34 9.12-13 9.75 9.81 8.7-8 15.83 4 9.13-14 10.75 10.69 8.19-20 13.75 1.61 9.14-15 11.33 10.69 8.20-21 14.33 1.82 9.15-16 12.25 10.80 8.21-22 14.83 2.8 9.16-17 12.75 13.92 8.22-23 3.17 14.23 9.17-18 0.25 1.00 8.23-24 3.83 3.92 9.18-19 13.25 14.69Table4 demonstrates that there is a bigger error of the predicted time of tidal level peak when the typhoon comes or leaves (see the bold numbers). According to the rhythm of the tides, there are twice second highest tidal levels per day, which are approaching the highest tidal level, called second highest tide level. It is inferred from sample data that there is no big difference between the second highest tidal level and the highest tidal level, with a maximum error of 0.3 m. Replace the real time of the highest tide level with the real occurring time of the second highest tide level, which can be obtained by the documents provided by Pudong Hydrological Bureau; Table 5 is obtained.Table 5
The second highest tide level.
Date Real time of the second highest tide level Predicted time of the highest tide level 8.7-8 3.75 4 8.19-20 1.58 1.61 8.20-21 2.08 1.82 8.21-22 2.67 2.8 8.22-23 15.50 14.23It is inferred from Table5 that, through the replacement, the accuracy of predicted time of highest tidal level has been significantly enhanced. Therefore, the method of using the proposed model to predict occurrence time of the second highest tidal level has higher accuracy and has more practical significance.Consequently, theMSE andRMSE between the real time when the highest tide level occurs and its occurring time predicted by BP model and theMSE andRMSE between the real occurrence time of the highest tidal level and its occurring time predicted by BP-KIA model are displayed in Table 6.Table 6
The comparison ofMSE and RMSE in the predicted time of tide level peak.
Prediction by BP model[h] Prediction by BP-KIA model[h] MSE 0.8564 0.5084 RMSE 0.9254 0.7130It can be inferred from Table6 that the accuracy of predicting the occurring time of highest tide level has been enhanced by adding KIA. TheMSE of 0.5084 h andRMSE of 0.7130 h have demonstrated that the method of combining BP neural network and cubic B-spline curve with KIA has greater significance and applicability in predicting the occurring time of highest tide level when typhoons approach.


## 4.1. Analysis of Predicted Highest Tide Levels

The highest predicted tide level is the maximum value of predicted tide levels in 24 hours. All predicted tide levels in one day can be obtained through curve simulation and smoothing. In order to compare the prediction accuracy between BP model and BP-KIA prediction model, we extracted the highest tidal level data in given dates in 2012 from the documents provided by Pudong Hydrological Bureau. Then four typhoons, Damrey, Haikui, Tembin, and Sanba, were, respectively, adopted as testing cases to inspect applicability of the proposed prediction models. Those four typhoons have different impacts on Shanghai’s tide levels (see Table1 for details).Table 1
The degree of influence by “Damrey” “Haikui” “Tembin” and “Sanba”.
Name of typhoon Influence date Influence degree to Shanghai Damrey 2nd Aug. -4th Aug. Strong Haikui 3rd Aug. - 9th Aug. Very Strong Tembin 19th Aug. -28th Aug. Slightly weaker Sanba 11th Sep.-19th Sep. Very weakSubsequently, the prediction models were employed to predict tide levels in selected dates. Table2 lists the real highest tide levels, as well as the corresponding highest tide levels predicted by BP model and BP-KIA model, respectively, with the influence of typhoon Haikui in 2012 (retaining two decimal fractions).Table 2
The comparison of BP model and BP-KIA model with influence of Haikui.
Date Real tide levels [m] Tide levels predicted by BP model [m] Tide levels predicted by BP-KIA model [m] date Real tide levels [m] Tide levels predicted by BP model [m] Tide levels predicted by BP-KIA model [m] 8.1-2 4.28 4.25 4.25 8.24-25 4.13 4.10 4.11 8.2-3 4.50 4.35 4.47 8.25-26 3.99 3.98 3.98 8.3-4 4.92 5.71 5.72 8.26-27 4.05 4.01 4.02 8.4-5 4.83 5.35 5.35 8.27-28 4.73 4.65 4.66 8.5-6 4.64 4.71 4.72 9.11-12 3.67 3.65 3.67 8.6-7 4.51 4.45 4.52 9.12-13 3.99 3.96 3.97 8.7-8 4.81 4.46 4.46 9.13-14 4.21 4.21 4.25 8.19-20 4.51 4.01 4.04 9.14-15 4.48 4.41 4.55 8.20-21 4.47 4.21 4.22 9.15-16 4.76 4.48 4.63 8.21-22 4.32 4.22 4.24 9.16-17 4.98 5.25 5.28 8.22-23 4.35 4.39 4.39 9.17-18 4.82 4.81 4.81 8.23-24 4.16 4.15 4.15 9.18-19 4.55 5.02 5.03Data in Table2 were divided into two groups for further analysis. One group was real tide levels and tide levels predicted by BP model, and the other group was real tide levels and tide levels predicted by BP-KIA model. Matlab was adopted to calculateMSE andRMSE of the two groups, and the results are displayed in Table 3.Table 3
The comparison ofMSE and RMSE for the highest tide levels by BP model and BP-KIA model.
Error type Prediction by BP model[m] Prediction by BP-KIA model[m] MSE 0.074 0.070 RMSE 0.271 0.265It can be inferred from Table3 that the prediction accuracy of the highest tide level has been enhanced by adding KIA. Both BP tidal level prediction model and BP-KIA model have higher prediction accuracy than linear regression model withMSE of 4.9734 m [20], RBF model withMSE of 0.2526 m [20], and conventional harmonic analysis method with the mean error of 0.2-0.3 m [23]. TheMSE of 0.070 m andRMSE of 0.265 m demonstrate that the method of combining BP neural network and cubic B-spline curve with KIA has great significance and applicability in predicting tide levels when typhoons approach.


## 4.2. Analysis of Predicted Time of Tidal Level Peak

When a typhoon occurs, not only is accurate prediction of upcoming highest tide level needed, the precise analysis of the time when the highest tide level appears is also critical.In the proposed BP-KIA tidal level prediction model, the time segments of tide-level prediction data commence from today’s midday 12 until midday 12 the next day. In order to simplify computation, we use 24 integers to represent the time segments; for instance, 0 corresponds to today’s midday 12 and 1 corresponds to 1pm today, and so on. The highest tide level and its time of occurrence can be obtained by calculating the horizontal ordinate and vertical coordinate values of the peak of the tidal level prediction curve. For instance, in Figure6, the highest tide level is 4.719 m and its occurring time is 14.92. Because the predicted time is processed by decimal system, a conversion formula is needed to compute the real time. Therefore, by setting a as the integer bit of the horizontal ordinate and b as its decimal place, the formula to obtain the accurate time t can be summarized as follows:(18)t=12-a:0.6b0≤a<12a-12:0.6b12≤a<23Figure 6
The tidal level prediction curve with time.Through formula (18), it can be calculated that the horizontal ordinate 14.92 represents 2:55 am the next day. The complete 24-hour prediction curve (see Figure 6) can be obtained through running the optimized tidal level prediction model based on BP and cubic B-spline curve with KIA in Matlab.Afterwards, the error between the real time when the highest tidal levels occurred from 1 August to 19 September in 2012 and the corresponding time predicted by the proposed BP-KIA model was analyzed (see details in Table4). It is noted that, in order to conduct effective comparison, the real occurrence time of the highest tide level provided by the documents from Pudong Hydrological Bureau had to be decimalized.Table 4
The corresponding date and time of tidal level peak.
Date Time of the highest tide level Predicted time of the highest tide level Date Time of the highest tide level Predicted time of the highest tide level 8.1-2 11.68 12.56 8.24-25 4.75 4.81 8.2-3 12.08 13.22 8.25-26 5.58 5.92 8.3-4 13.33 13.69 8.26-27 7.17 7.12 8.4-5 14.08 14.12 8.27-28 8.33 8.81 8.5-6 14.58 14.92 9.11-12 8.50 8.69 8.6-7 15.33 15.34 9.12-13 9.75 9.81 8.7-8 15.83 4 9.13-14 10.75 10.69 8.19-20 13.75 1.61 9.14-15 11.33 10.69 8.20-21 14.33 1.82 9.15-16 12.25 10.80 8.21-22 14.83 2.8 9.16-17 12.75 13.92 8.22-23 3.17 14.23 9.17-18 0.25 1.00 8.23-24 3.83 3.92 9.18-19 13.25 14.69Table4 demonstrates that there is a bigger error of the predicted time of tidal level peak when the typhoon comes or leaves (see the bold numbers). According to the rhythm of the tides, there are twice second highest tidal levels per day, which are approaching the highest tidal level, called second highest tide level. It is inferred from sample data that there is no big difference between the second highest tidal level and the highest tidal level, with a maximum error of 0.3 m. Replace the real time of the highest tide level with the real occurring time of the second highest tide level, which can be obtained by the documents provided by Pudong Hydrological Bureau; Table 5 is obtained.Table 5
The second highest tide level.
Date Real time of the second highest tide level Predicted time of the highest tide level 8.7-8 3.75 4 8.19-20 1.58 1.61 8.20-21 2.08 1.82 8.21-22 2.67 2.8 8.22-23 15.50 14.23It is inferred from Table5 that, through the replacement, the accuracy of predicted time of highest tidal level has been significantly enhanced. Therefore, the method of using the proposed model to predict occurrence time of the second highest tidal level has higher accuracy and has more practical significance.Consequently, theMSE andRMSE between the real time when the highest tide level occurs and its occurring time predicted by BP model and theMSE andRMSE between the real occurrence time of the highest tidal level and its occurring time predicted by BP-KIA model are displayed in Table 6.Table 6
The comparison ofMSE and RMSE in the predicted time of tide level peak.
Prediction by BP model[h] Prediction by BP-KIA model[h] MSE 0.8564 0.5084 RMSE 0.9254 0.7130It can be inferred from Table6 that the accuracy of predicting the occurring time of highest tide level has been enhanced by adding KIA. TheMSE of 0.5084 h andRMSE of 0.7130 h have demonstrated that the method of combining BP neural network and cubic B-spline curve with KIA has greater significance and applicability in predicting the occurring time of highest tide level when typhoons approach.


## 5. Conclusions

In order to explore an effective method to predict tidal level with a typhoon effect at Luchaogang, two tidal level prediction models, based on unique BP neural network and on a combination of BP neural network and KIA-based cubic B-spline curve, were introduced. Then, using the data from Pudong Hydrological Bureau, experiments on the two models were conducted with six parameters of typhoon as the input parameters and corresponding tidal level data as the output parameters. The comparison results have showed that the BP-KIA model is superior to the unique BP neural network model. This optimized model has not only improved the prediction accuracy of the highest tide level but also has accurate prediction results on time when the tidal level peak occurs. Through the BP-KIA prediction model, the trend of tide levels in 24 hours can be forecasted in real time. Based on the BP-KIA tidal level prediction model developed in this study, protective measures can be taken in advance to effectively reduce the impact of typhoon disasters.However, there are still some weaknesses in the proposed BP-KIA model. The training process, the learning rate, and some other parameters need to be continuously adjusted; there is randomness in the setting of the parameters. How to automatically and scientifically set these parameters is a problem that needs to be addressed in future research. In addition, more real data should be included to examine the validity of curve simulation in order to ensure the reliability of the model. Furthermore, as stated earlier, the four testing cases are experimented separately, and how to accurately predict the tidal level when multiple typhoons occur has not been covered by this study yet and will be explored in future study.



---

*Source: 9835079-2018-07-11.xml*