Abstract
To improve the accuracy of ship track prediction, a fractional-order gradient descent method is adopted into a recurrent neural network (RNN). The convergence of the proposed algorithm is proved. Identification of ship maneuvering behavior, atmospheric information, and oceanographic information is considered in vessel tack prediction. The ship track of Xiamen Port is predicted using the new algorithm. Error analysis is made with different factional orders and traffic busy degrees. Results show that the testing and training error differs with different fractional orders. The predicted track results can not only improve the efficiency of marine traffic management but also prevent and warn the safety accidents, so as to avoid accidents.
1. Introduction
Ship trajectory prediction is to predict the ship's future navigation position by analyzing the history and current trajectory law of the target ship under the premise of considering the external environment around the target ship and the performance of the ship’s own equipment. Ship track prediction uses the current navigation state of the ship, combined with the operation of the pilot, the surrounding environment information and the ship’s maneuverability, and other constraints to predict the future position of the ship. This is a basic technology of marine traffic management and a necessary condition to realize the automation and intelligence of marine traffic management. The predicted track results can not only improve the efficiency of marine traffic management but also prevent and warn the safety accidents, so as to avoid accidents.
A long short-term memory network (LSTM) deep learning model was proposed [1]. Vessel trajectory prediction using historical AIS data was presented [2]. Gaussian process model was studied [3].
The research of ship track prediction adopts a variety of advanced artificial intelligence optimization algorithms, such as neural network. In 1990, the first fully connected recurrent neural network (RNN), namely, Elman network, was proposed [4]. In 1997, a bidirectional RNN with deep structure was proposed [5]. In 1997, LSTM was proposed [6]. However, due to the problems of gradient vanishing and gradient exploding, RNN training is very difficult and its application is very limited. An adaptive optics prediction algorithm based on LSTM was proposed [7]. An adaptive PSO optimized LSTM network was proposed [8]. A modified atom search optimization-based deep RNN was proposed for epileptic seizure prediction [9].
However, gradient descent sometimes has some disadvantages, such as fluctuation. Therefore, its improvement such as the introduction of fractional-order calculus is needed. The variable-order fractional discrete-time neural network was proposed [10]. A fractional-order complex-valued RNN was designed [11]. A fractional-order memristive RNN was proposed [12].
In the intelligent maritime traffic system, some research achievements have been made. A ship trajectory and navigation state prediction method based on AIS data was proposed, with properly designed learning, motion modelling, and knowledge base-assisted particle filtering processes [13]. A density-based clustering and bidirectional long short-term memory- (BLSTM-) based supervised learning were proposed for vessel trajectory reconstruction [14]. Douglas Peucker (DP) and kernel density estimation (KDE) algorithms were used for the compression and visualization of large ship trajectory and the acceleration of GPU [15]. A continuous berth scheduling problem was solved with the objective of minimizing the total operating cost [16].
However, due to the problems of gradient vanishing and gradient exploding, RNN training is sometimes very difficult. This paper adopts fractional order. The influence of fractional order and learning rate on the algorithm performance is analyzed. The main contributions of this paper are as follows:(1)Fractional-order calculus is applied to gradient descent for training recurrent neural network(2)The convergence of fractional gradient recurrent neural network is proved(3)Identification of ship maneuvering behavior, atmospheric information, and oceanographic information is considered in vessel tack prediction
The remainder of this paper can be divided into the following four parts. Section 2 mainly proposes the related work. The vessel track prediction based on fractional gradient recurrent neural network is then presented in Section 3. Extensive experiments are carried out in Section 4. We end this work by summing up the main contributions in Section 5.
2. Related Work
2.1. Identification of Ship Maneuvering Behavior
There are three types of ship maneuvering: keeping current course, changing course, and changing speed. Sample three points. Pi is the i-th trajectory point in the trajectory. The time interval between the adjacent points and is . is the velocity from to . is the vector velocity from to :
represents the course of the ship and is the speed of the ship. is the ship speed change rate and is the course change rate:
Four threshold parameters are set to divide the ship maneuvering behavior mode:where is weak yaw with changing course, is the strong yaw with changing course, is the speed threshold of berthing, and is the variable speed threshold.
The identification model of ship maneuvering mode is set according to different kinematic constraints. The identification rules are as follows:(a)If and , Pi belongs to staying(b)If and , Pi belongs to deceleration navigation behavior(c)If and , Pi is considered to be accelerated(d)When , , , and , Pi belongs to keeping direction and speed(e)If and , Pi belongs to weak yaw with left rudder(f)If and , Pi belongs to weak yaw with right rudder(g)If and , Pi belongs to strong yaw with left rudder(h)If and , Pi belongs to strong yaw with right rudder
2.2. Recurrent Neural Network
RNN establishes weighted connections between neurons in layers. With the continuous progress of the sequence, the former hidden layer will affect the later hidden layer. o represents the output. y represents the value given by the neurons, and L represents the loss function. is the input vector. denotes the weight of the neural network. The loss function is accumulated with sequence. Since the weights are shared in RNN, weights in RNN are the same.
The error is defined as follows:
The loss function is defined as follows:
Denote
2.3. Fractional-Order Calculus
The Riemann–Liouville definition of fractional calculus is as follows.
Definition 1. For the absolute integrable function in the interval , its Riemann–Liouville integral is as follows:where is the fractional order, whose real part is positive. is the gamma function defined as follows:
Definition 2. For the absolute integrable function in the interval , its Riemann–Liouville differential is defined as follows:where . is a positive integer.
Definition 3. For , the following formula holds:
2.4. Vessel Track Prediction Based on Neural Network
The neural network model is used to learn the current navigation conditions and the driving habits of the ship drivers. The navigation state of the next moment is predicted by the historical speed, course, and meteorological and hydrological information. Thus, the navigation state of the ship in the future is predicted by recursive iteration.
The position of the ship at the next moment is predicted by the longitude and latitude, speed, course of the ship, and the interference of the current marine environment at the last moment. Take the historical dynamic navigation data and the historical sea wind and current data as the input of the neural network. Take the expected ship position as output, and the neural network is trained by comparing the difference between the real position and output position. The trained neural network can predict the position change of the ship through the dynamic data of the ship's current navigation and the interference of sea wind and current. Fractional-order training is adopted to further improve the prediction accuracy of the model.
The dynamic data of ship navigation, sea wind, and current interference are as follows:where is the speed of the ship, is the course of the ship, is the speed of sea wind around the ship, is the direction of the wind around the ship, is the height of the wave around the ship, and is the height of the tidal around the ship. The number of input layer nodes is 6, and the number of output layer nodes is 2. The hidden layer is defined as one layer. Figure 1 shows the track prediction method by neural network.

3. Main Results
3.1. FRNN Algorithm
The weight is updated using the gradient:
The fractional-order derivative of is as follows:
The derivative of is as follows:
Substituting (16) into the first item of (15) yields
Substituting (18) into the first item of (8) yields
Substituting (19) into the first item of (17) yields
3.2. Convergence of FRNN
Lemma 1. The loss function L is monotonically decreasing,
Proof. Based on the Taylor mean value theorem,Applying (20) to (22), we havewhere . From (23), one can obtain that (21) will hold if the following is satisfied:
Lemma 2. The set {L(t)} is convergent,
Proof. From (7), we have .
From Lemma 1, . Therefore, there exits satisfying
Theorem 1. Assume (24) is valid. Then, the set converges to zero,
Proof. DenoteFrom (23), one can obtainSince , we haveWhen ,Thus, we haveSubstituting (15) into (8) yieldsSubstituting (33) into (32) yieldsThus, we haveFrom Theorem 1, we conclude that FRNN converges.
3.3. Trajectory Prediction Based on FRNN
The process of the FRNN algorithm for ship track prediction is shown as follows: Step 1: initialize the neural network model Step 2: input training samples Step 3: calculate the hidden layer Step 4: calculate the output layer Step 5: calculate the output error Step 6: if the learning requirement is satisfied, turn to step 2 until the training results meet the requirements Step 7: initialize the neural network with the optimal weights Step 8: input data needed for prediction into the trained neural network and output prediction results
4. Results and Discussion
4.1. Datasets
The AIS data used for prediction are the ship track data of Xiamen port. The original data should remove the wrong AIS data in the pretreatment. The records of obvious errors in AIS data include the following three types:(1)The length of the ship’s code is not 9 digits or unreasonable record(2)The longitude and latitude of the ship exceed the reasonable range, for example, longitude >180 or latitude >90 or negative longitude and latitude(3)The ship’s speed and course exceed the reasonable range, for example, course >360 or speed <0
4.2. Maneuvering Behavior Identification
4.2.1. Constant Speed Mode
Table 1 lists information of MSC Bilbao ship, which belongs to constant speed mode.
The trajectory is plotted in Figure 2.

4.2.2. Acceleration Mode
Table 2 lists information of HAIYANG989 ship, which belongs to acceleration mode.
The trajectory is plotted in Figure 3.

4.2.3. Deceleration Mode
Table 3 lists information of SANTA LAURA ship, which belongs to deceleration mode.
The trajectory is plotted in Figure 4.

4.2.4. Turn Slightly to the Left
Table 4 lists information of SOFIE MAERSK ship, which belongs to turning slightly to the left mode.
The trajectory is plotted in Figure 5.

4.2.5. Turn Slightly to the Right
Table 5 lists information of HAIYANG989 ship, which belongs to turning slightly to the right mode.
The trajectory is plotted in Figure 6.

4.2.6. Turn Sharply to the Left
Table 6 lists information of KAPITAN AFANASYEV ship, which belongs to turning sharply to the left mode.
The trajectory is plotted in Figure 7.

4.2.7. Turn Sharply to the Right
Table 7 lists information of KAPITAN AFANASYEV ship, which belongs to turning sharply to the right mode.
The trajectory is plotted in Figure 8.

4.3. Prediction Results
4.3.1. Results with Different Traffic Busy Degrees
Figure 9 shows the ship track prediction with MMSI 413705970.

Figure 10 shows the longitude prediction error of the ship with MMSI 413705970 on December 30, 2019.

Figure 11 shows its prediction error of latitude with MMSI 413705970.

Figure 12 shows the ship track prediction with MMSI 412600383.

Figure 13 shows its prediction error of longitude.

Figure 14 shows the prediction error of latitude with MMSI 412600383.

The above figures show that the new algorithm can accurately predict the ship track.
4.3.2. Results with Different Fractional Orders
The test and training accuracy with different fractional orders and batch sizes are listed in Table 8. The maximal iteration is 100.
Table 8 shows that the testing and training error differs with different fractional orders. The maximum training accuracy is obtained when the fractional order is 0.3. When the fractional order is 0.3, the test accuracy is the highest.
The test accuracy with different fractional orders and batch sizes is shown in Figure 15.

The train accuracy with different fractional orders and batch sizes is shown in Figure 16.

Figure 17 shows the loss function curve.

Figure 18 shows the accuracy curve.

Figure 19 shows the neural network weight curve.

4.3.3. Comparison
The proposed algorithm is compared with RNN and FRNN without maneuvering behavior identification (MBI). The errors of longitude of the ship with MMSI 413705970 are shown in Figure 20.

The errors of latitude are shown in Figure 21.

Figures 20 and 21 show that the performance of the proposed algorithms is better than that of RNN and FRNN without maneuvering behavior identification.
5. Conclusion
This paper utilizes fractional gradient descent to improve RNN. The proposed algorithm can adaptively learn the optimal weights. It complies with the literature review compared with RNN and FRNN without maneuvering behavior identification, which can improve prediction accuracy.
The academic implications are applying fractional-order calculus to gradient descent for training recurrent neural network. The convergence of fractional gradient recurrent neural network is proved.
The limitations of the paper are not able to predict long time track. In future studies, the input data of the track prediction model will include the dynamic information of the surrounding ships and the constraint information of the geographical environment, so as to achieve the long-term prediction of the ship's track or under some sudden or extreme conditions. The kinematic model of the ship will be considered. The influence of different time intervals on the ship's trajectory will be measured.
Data Availability
The data used to support the findings of this study are included within the article.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
This work was supported in part by the Natural Science Foundation of Fujian Province (2018J05085), High level research and cultivation fund of transportation engineering discipline of Jimei University (HHXY2020003), and National Natural Science Foundation Cultivation Project of Jimei University (ZP2020005).