Next Article in Journal
Shipwake-YOLO: Ship Wake Detection and Instance Segmentation for Visual Navigational-State Cue Extraction
Previous Article in Journal
Mantle End-Member Distribution Characteristics of Hotspots in the South Atlantic Based on Dimensionality Reduction and Clustering
Previous Article in Special Issue
MSC-YOLO: An Accurate and Effective Maritime Ship Detection Model Based on Improved YOLOv11n
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

AIS-Based Ship Trajectory Prediction Using a Geometry-Consistent Trajectory Transformer (GCT-Former)

1
School of Automation, Hubei University of Science and Technology, Xianning 437100, China
2
Intelligent Transportation Systems Research Center, Wuhan University of Technology, Wuhan 430063, China
3
State Key Laboratory of Maritime Technology and Safety, Wuhan University of Technology, Wuhan 430063, China
4
School of Transportation and Logistics Engineering, Wuhan University of Technology, Wuhan 430063, China
5
Graduate School of Maritime Sciences, Kobe University, 5-1-1 Fukaeminami-machi, Higashinada-ku, Kobe 658-0022, Japan
6
Department of Systems Innovation, School of Engineering, The University of Tokyo, Tokyo 113-8654, Japan
*
Author to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2026, 14(13), 1218; https://doi.org/10.3390/jmse14131218
Submission received: 29 May 2026 / Revised: 23 June 2026 / Accepted: 30 June 2026 / Published: 30 June 2026

Abstract

Accurate vessel trajectory prediction from Automatic Identification System (AIS) records is important for maritime traffic monitoring, route planning, and intelligent vessel traffic management. However, reliable prediction remains challenging for long forecasting horizons and turning maneuvers. To address this problem, this study proposes the Geometry-Consistent Trajectory Transformer (GCT-Former), a progressive and refinement-based framework for AIS-based vessel trajectory prediction. The proposed model integrates multi-scale historical trajectory encoding, progressive residual future-position generation, and global–local trajectory refinement to improve the stability and continuity of long-horizon trajectory prediction. The predicted trajectories are evaluated as geometric future-position estimates and can provide trajectory-level information for downstream maritime traffic monitoring and decision-support applications. Experiments are conducted on three real-world Danish maritime regions: Aarhus Bay, Great Belt, and Skagen. Compared with representative conventional and deep-learning trajectory prediction models, the proposed model shows its most consistent advantage in long-horizon prediction, particularly in terms of ADE and FDE. In the long-term setting, it achieves average displacement errors of 0.344, 0.546, and 0.218 km and final displacement errors of 0.774, 1.368, and 0.525 km on Aarhus Bay, Great Belt, and Skagen, respectively. The ablation analysis further shows that removing the multi-scale encoding module increases the long-term average displacement error by 7%, 4%, and 3%, while removing the progressive residual decoder leads to larger increases of 15%, 9%, and 8% on the three datasets. The turning-maneuver analysis also shows lower geometric prediction errors under mild-turning and sharp-turning scenarios. These results indicate that GCT-Former improves AIS-based vessel trajectory prediction, especially for long-horizon and maneuvering cases.

1. Introduction

Shipping is a fundamental component of global transportation and international trade, and the continuous growth of maritime traffic has increased the complexity of navigation in ports, straits, coastal waters, and other high-density waterways [1,2]. In such environments, vessel movement patterns are influenced by navigational channel constraints, regional traffic density, speed variations, and local maneuvering behaviors, making reliable maritime traffic monitoring increasingly challenging [3,4]. Accurate AIS-based vessel trajectory prediction is therefore useful for estimating future vessel positions in advance and can provide geometric trajectory information for vessel traffic services, route planning, and downstream maritime decision-support applications [5]. With the widespread use of the Automatic Identification System (AIS), large-scale vessel movement data containing vessel identity, timestamp, position, speed, course, and other navigation-related information have become available for data-driven maritime traffic analysis [6]. However, AIS-based trajectory prediction is not a simple extrapolation task, because raw AIS data often contain noise, missing records, irregular sampling intervals, and abnormal points, while vessel motion patterns may vary substantially across regions, vessel types, and traffic conditions [7,8]. Previous AIS-based studies have also shown that spatial–temporal traffic-pattern analysis and AIS trajectory quality control are important foundations for reliable downstream vessel trajectory prediction [2,8]. Therefore, developing a robust and reliable AIS-based vessel trajectory prediction model remains an important research topic for intelligent maritime transportation systems.
Existing vessel trajectory prediction methods can be broadly divided into statistical methods, conventional machine learning methods, and deep learning-based sequence models. Early studies commonly adopted Kalman filtering, Markov models, Gaussian mixture models, route similarity search, neighbor-search methods, or historical trajectory matching to infer future vessel positions based on motion states or previously observed sailing patterns [9,10,11]. Although these methods are interpretable and effective for short-term prediction under relatively regular navigation patterns, their dependence on predefined assumptions and sufficiently similar historical trajectories limits their ability to represent complex nonlinear vessel movements in dynamic waterways [12]. With the increasing availability of AIS data, recurrent neural networks (RNNs), long short-term memory networks (LSTMs), gated recurrent units (GRUs), bidirectional LSTMs, and sequence-to-sequence models have been widely applied to learn temporal dependencies from historical trajectory sequences [13,14,15,16,17]. These recurrent models have shown promising performance in short-term trajectory prediction because they explicitly process vessel movement records in temporal order. However, recurrent models usually process historical trajectories through a single sequential representation. As a result, short-term local changes and long-term navigational trends may be compressed into the same hidden representation, which can weaken long-horizon prediction stability when the historical window becomes longer. More recently, attention-based and Transformer-based models have been introduced to capture long-range dependencies and global sequence relationships more effectively than purely recurrent structures [6,18,19,20,21,22]. These models have improved the representation of AIS trajectory sequences and have shown strong potential for long-term vessel trajectory prediction. In addition, graph neural networks, graph attention networks, spatio-temporal graph convolutional networks, and generative models have been explored to represent broader maritime-context information, interaction-aware movement patterns, multimodal future trajectories, and prediction uncertainty in complex maritime scenarios [23,24,25,26,27]. These studies have significantly advanced AIS trajectory prediction from different perspectives. Nevertheless, the stability and continuity of future trajectory generation remain insufficiently addressed, especially when the prediction horizon becomes longer or when vessels perform turning maneuvers. In particular, many existing models still generate future trajectory points simultaneously or directly treat the decoder output as the final prediction. Consequently, the dependency among adjacent future steps and the stability of intermediate trajectory points may remain limited, which can lead to accumulated errors and locally fluctuating predicted trajectories in long-horizon forecasting.
Despite the progress of existing deep learning models, AIS-based vessel trajectory prediction still faces several structural limitations. First, many existing models encode historical trajectories using a single sequential representation, which makes it difficult to simultaneously capture short-term local variations and long-term navigational trends [28]. For example, recurrent models tend to compress the whole historical sequence into hidden states through step-by-step updates, while vanilla Transformer models often apply global attention to the full sequence without explicitly distinguishing different temporal scales [29]. Second, many models generate all future trajectory points at once through a decoder, which weakens the dependency among future prediction steps [30]. As the prediction horizon increases, this generation strategy may lead to unstable intermediate positions, even when the final displacement error appears acceptable. In other words, a model may predict the final point relatively well but still produce an inconsistent or fluctuating trajectory between the observed history and the final prediction. Third, the decoder output is usually treated directly as the final prediction, and few models further refine the initially generated trajectory from both global and local perspectives [31]. This lack of post-decoding refinement may result in global trend deviation or local step-wise fluctuation, especially in long-horizon prediction, turning trajectories, and cross-region testing scenarios.
To address these limitations, this study proposes GCT-Former, a Transformer-based framework for AIS-based vessel trajectory prediction. The proposed framework is designed from three complementary perspectives: historical sequence encoding, future trajectory generation, and post-decoding trajectory refinement. First, a trajectory-specific multi-scale sequence encoder is developed to extract historical trajectory representations from multiple temporal scales, enabling the model to capture both recent local changes and longer-term sailing trends. Second, a progressive residual trajectory decoder is introduced to replace the conventional future-coordinate generation strategy. Instead of directly producing the entire future sequence at once, the decoder progressively predicts residual updates and recursively constructs future positions, thereby strengthening the dependency among adjacent prediction steps. Third, a global–local trajectory refinement module is designed to further correct the initially decoded future trajectory. This module uses the encoded historical context to adjust the global trend of the predicted sequence, while local temporal modeling is applied to capture relationships among neighboring prediction steps and learn correction residuals for the entire future trajectory. In the proposed framework, geometry consistency refers to the continuity and shape coherence of the predicted trajectory. The progressive residual decoder maintains dependencies among adjacent future positions, while the global–local refinement module adjusts the overall movement trend and local step-wise variations. This design helps reduce unstable intermediate fluctuations, especially under long-horizon and turning-maneuver prediction.
The main contributions of this study are summarized as follows:
  • A trajectory-specific multi-scale sequence encoder is proposed for AIS-based vessel trajectory prediction. The encoder extracts historical trajectory features from multiple temporal scales, allowing the model to represent both short-term local variations and long-term navigational trends.
  • A progressive residual trajectory decoder is developed to improve the stability of future trajectory generation. Different from decoders that output all future positions simultaneously, the proposed decoder progressively predicts residual updates and recursively constructs the future trajectory.
  • A global–local trajectory refinement module is introduced to correct the initially decoded trajectory. By combining encoded historical context with local information from the predicted sequence, the module learns residual corrections for the whole future trajectory and improves the consistency of the final prediction.
The remainder of this paper is organized as follows. Section 2 presents the proposed GCT-Former framework in detail, including the trajectory-specific multi-scale sequence encoder, the progressive residual trajectory decoder, and the global–local trajectory refinement module. Section 3 describes the AIS datasets, experimental design, baseline models, and evaluation metrics. Section 4 reports the experimental results, including overall prediction performance, ablation analysis, step-wise prediction error, maneuvering scenario analysis, and qualitative trajectory visualization. Section 5 discusses the main findings, model behavior, limitations, and implications for future improvement. Finally, Section 6 concludes this study and outlines future research directions.

2. Methodology

This section presents the proposed GCT-Former framework for AIS-based vessel trajectory prediction. The purpose of the model is to predict a future vessel trajectory from a sequence of historical AIS positions. Different from conventional prediction models that directly output all future positions at once, GCT-Former follows a progressive and refinement-based prediction strategy. Specifically, the model first encodes the historical trajectory through a trajectory-specific multi-scale sequence encoder, then generates an initial future trajectory using a progressive residual decoder, and finally refines the initial prediction through a global–local trajectory refinement module. This design allows the model to capture historical movement information from different temporal scales, preserve dependency among future prediction steps, and further correct the predicted trajectory from both global and local perspectives. The following subsections describe the prediction formulation, multi-scale sequence encoding, progressive residual decoding, and global–local trajectory refinement in detail.

2.1. Problem Formulation

This subsection defines the input and output of the AIS trajectory prediction task and introduces the coordinate representation used in the model. Let x t R 2 denote the observed vessel position at time step t, where x t = [ u t , v t ] represents the two-dimensional planar coordinates transformed from the original AIS longitude–latitude records. Let ( λ t , ϕ t ) be the longitude and latitude of a vessel position in radians and let ( λ 0 , ϕ 0 ) be the longitude and latitude of the last observed position in the same window. The local coordinates are obtained using an equirectangular local tangent approximation,
u t = R ( λ t λ 0 ) cos ϕ 0 , v t = R ( ϕ t ϕ 0 ) ,
where R = 6 , 371 , 000 m is the Earth radius. Therefore, u t and v t are measured in meters. The future ground-truth positions and predicted positions are represented in the same local coordinate system for each sample. Given a historical trajectory with length T, the input matrix is defined as
X = x 1 x 2 x T R T × 2 .
The corresponding future trajectory with prediction horizon K is denoted as
Y = y 1 y 2 y K R K × 2 ,
where y k R 2 represents the ground-truth vessel position at the k-th future step, corresponding to time step T + k . The objective of vessel trajectory prediction is to learn a mapping function f Θ ( · ) :
Y ^ = f Θ ( X ) ,
where Θ denotes all learnable parameters of GCT-Former and Y ^ R K × 2 is the predicted future trajectory.
The input trajectory X is first projected into a d-dimensional latent space:
E = X W e + 1 T b e + A ,
where E R T × d is the embedded historical sequence, W e R 2 × d is the input projection matrix, b e R d is the bias vector, 1 T R T is an all-one column vector, and A R T × d is the positional encoding matrix. The input projection maps the two-dimensional trajectory coordinates into a latent feature space, and the positional encoding preserves the temporal order of the historical AIS sequence. The embedded sequence is then encoded as
H = Φ enc ( E ) , H R T × d ,
where Φ enc ( · ) denotes the proposed multi-scale sequence encoder and H is the encoded historical representation. Based on H and the last observed position x T , the progressive residual decoder generates an initial future trajectory:
Y ˜ = Φ dec ( H , x T ) , Y ˜ R K × 2 .
The global–local refinement module then predicts a correction residual and a gate matrix:
( Δ Y , G ) = Φ ref ( Y ˜ , H ) , Δ Y , G R K × 2 .
Finally, the predicted trajectory is obtained by gated residual refinement:
Y ^ = Y ˜ + G Δ Y ,
where ⊙ denotes element-wise multiplication.

2.2. Multi-Scale Sequence Encoding

Historical vessel trajectories contain temporal patterns at different scales. Recent observations mainly reflect local movement changes, whereas longer historical windows provide information about the overall sailing trend. To capture these patterns simultaneously, GCT-Former employs a trajectory-specific multi-scale sequence encoder. The multi-scale encoder extracts and fuses historical trajectory features from different temporal receptive fields before the Transformer encoding block is applied.
Given the embedded historical sequence E R T × d , the encoder contains M temporal branches with different receptive fields. For the m-th temporal scale, the scale-specific representation is computed as
Z ( m ) = Φ temp ( m ) ( E ) , m = 1 , 2 , , M ,
where Z ( m ) R T × d denotes the encoded representation at scale m, and Φ temp ( m ) ( · ) is a temporal encoding block. In implementation, different branches can be realized using temporal convolution, dilated convolution, or local self-attention with different window sizes.
To adaptively fuse information from different temporal scales, each representation is first summarized by temporal average pooling:
z ¯ ( m ) = 1 T t = 1 T z t ( m ) , z ¯ ( m ) R d ,
where z t ( m ) R d is the t-th row vector of Z ( m ) . The importance score of the m-th temporal scale is calculated as
e m = w s tanh W s z ¯ ( m ) + b s ,
where W s R d × d , b s R d , and w s R d are learnable parameters. The normalized scale weight is obtained as
α m = exp ( e m ) j = 1 M exp ( e j ) .
The fused multi-scale representation is then computed by
H ms = m = 1 M α m Z ( m ) , H ms R T × d .
The learned weight α m determines the contribution of each temporal scale to the fused representation, enabling the model to adaptively combine short-term and long-term trajectory information.
To further model long-range temporal dependencies, a Transformer encoding block is applied to H ms . The query, key, and value matrices are defined as
Q = H ms W Q , K = H ms W K , V = H ms W V ,
where W Q , W K , W V R d × d are learnable projection matrices. The self-attention operation is formulated as
Attn ( Q , K , V ) = softmax Q K d V .
The attention output is first combined with the multi-scale representation through a residual connection:
H a = LN H ms + Attn ( Q , K , V ) .
Then, a feed-forward network is applied with another residual connection:
H = LN H a + FFN ( H a ) .
Through this design, the encoder captures both short-term local variations and long-term navigational trends from the historical trajectory.

2.3. Decoding with Trajectory Refinement

After obtaining the historical representation H , GCT-Former generates the future trajectory in two steps. First, a progressive residual decoder recursively constructs an initial future trajectory. Second, a global–local refinement module corrects the initial trajectory using both historical context and the local structure of the predicted sequence. The progressive decoder is designed to maintain dependency among adjacent future positions, while the refinement module further adjusts the decoded trajectory through residual correction.
A global context vector is extracted from H :
c = t = 1 T β t h t , c R d ,
where h t R d denotes the t-th row vector of H . The attention weight β t is computed as
β t = exp ( w c tanh ( W c h t + b c ) ) τ = 1 T exp ( w c tanh ( W c h τ + b c ) ) ,
where W c R d × d , b c R d , and w c R d are learnable parameters. The context vector c summarizes the encoded historical trajectory and provides global historical information for the following decoding process.
The decoder starts from the last observed position x T . The initial decoder state is defined as
s 0 = tanh W 0 c ; x T + b 0 , s 0 R d .
Let y ˜ 0 = x T , which ensures that the predicted sequence starts from the last observed vessel position. For the k-th prediction step, the decoder state is updated by
s k = GRU y ˜ k 1 ; c , s k 1 , k = 1 , 2 , , K .
Instead of directly predicting the absolute future position, the decoder predicts a residual update:
Δ y ˜ k = W r s k + b r , Δ y ˜ k R 2 ,
where W r R 2 × d and b r R 2 . The initial future position is recursively generated as
y ˜ k = y ˜ k 1 + Δ y ˜ k .
After K steps, the initial future trajectory is
Y ˜ = y ˜ 1 y ˜ 2 y ˜ K R K × 2 .
The residual formulation connects each future position with the previously generated position, which strengthens the temporal dependency among future prediction steps.
Although progressive decoding strengthens the dependency among future steps, the initial trajectory may still contain global trend deviation or local fluctuation. Therefore, the refinement module learns a correction residual from both global and local information. The global context matrix is obtained by repeating c along the prediction horizon:
C = 1 K c R K × d .
The initial trajectory is embedded as
U = Y ˜ W u + 1 K b u , U R K × d ,
where W u R 2 × d and b u R d . A local temporal modeling block is applied to obtain
L = Φ local ( U ) , L R K × d .
Then, the global and local representations are concatenated along the feature dimension:
R = [ L C ] R K × 2 d ,
where ∥ denotes feature-dimensional concatenation. Here, C represents the global historical context, while L represents the local structure of the initially decoded trajectory. Their concatenation provides the basis for predicting the refinement residual.
The correction residual is predicted as
Δ Y = R W Δ + 1 K b Δ , Δ Y R K × 2 ,
where W Δ R 2 d × 2 and b Δ R 2 . To prevent excessive correction, a gate matrix is computed by
G = σ R W g + 1 K b g , G R K × 2 ,
where W g R 2 d × 2 , b g R 2 , and σ ( · ) denotes the sigmoid function. The final predicted future trajectory is obtained as
Y ^ = Y ˜ + G Δ Y ,
where ⊙ denotes element-wise multiplication. The gate matrix controls the contribution of the correction residual and helps stabilize the refinement process.
During training, the parameters of GCT-Former are optimized by minimizing the discrepancy between the predicted future trajectory and the ground-truth future trajectory. The prediction loss is defined as
L pred = 1 K k = 1 K y ^ k y k 2 2 .
To supervise the progressive decoder before refinement, an auxiliary loss is applied to the initial prediction:
L init = 1 K k = 1 K y ˜ k y k 2 2 .
The total training objective is formulated as
L = L pred + λ init L init ,
where λ init is a hyperparameter controlling the contribution of the auxiliary initial prediction loss.

2.4. Prediction Procedure of GCT-Former

The proposed GCT-Former algorithm is developed for AIS-based vessel trajectory prediction. Given the input trajectory X , the prediction horizon K, and the trained model parameters Θ , the algorithm aims to generate the future trajectory Y ^ . The proposed algorithm contains three phases. First, the input trajectory X is embedded and encoded into the historical representation H by the multi-scale sequence encoder. Second, the progressive residual decoder starts from the last observed position x T and recursively predicts future residual updates to obtain the initial future trajectory Y ˜ . Third, the global–local refinement module uses the historical context and the local structure of Y ˜ to learn a correction residual and outputs the final prediction Y ^ . The detailed procedure is shown in Algorithm 1.
Algorithm 1 The GCT-Former Algorithm
Input: 
Input trajectory X ; prediction horizon K; number of temporal scales M; trained model parameters Θ .
Output: 
Predicted future trajectory Y ^ .
1:
Embed the input trajectory X using Equation (5) to obtain E .
2:
for  m = 1 to M do
3:
   Compute the scale-specific representation Z ( m ) using Equation (10).
4:
   Compute the pooled scale vector z ¯ ( m ) using Equation (11).
5:
   Compute the scale importance score e m using Equation (12).
6:
end for
7:
Compute the normalized scale weights { α m } m = 1 M using Equation (13).
8:
Fuse multi-scale representations using Equation (14) to obtain H ms .
9:
Apply the Transformer encoding block using Equations (15)–(18) to obtain H .
10:
Compute the global context vector c using Equations (19) and (20).
11:
Initialize the decoder state s 0 using Equation (21).
12:
Set the initial decoding position as y ˜ 0 = x T .
13:
for  k = 1 to K do
14:
   Update the decoder state s k using Equation (22).
15:
   Predict the residual update Δ y ˜ k using Equation (23).
16:
   Generate the initial future position y ˜ k using Equation (24).
17:
end for
18:
Stack { y ˜ 1 , y ˜ 2 , , y ˜ K } to obtain the initial future trajectory Y ˜ using Equation (25).
19:
Construct the global context matrix C using Equation (26).
20:
Embed the initial prediction Y ˜ using Equation (27).
21:
Extract the local representation L using Equation (28).
22:
Concatenate the local representation L and the global context matrix C to obtain R using Equation (29).
23:
Predict the correction residual Δ Y using Equation (30).
24:
Compute the gate matrix G using Equation (31).
25:
Obtain the final predicted future trajectory Y ^ using Equation (32).
26:
return  Y ^ .

3. Experimental Settings

This section presents the experimental settings used to evaluate the proposed GCT-Former. Following the experimental structure commonly used in trajectory prediction studies, this section first describes the AIS datasets and study areas, then introduces the experimental design and comparison baselines, and finally defines the evaluation metrics used in this study.

3.1. Data Description

The experiments are conducted using AIS trajectory data collected from three Danish maritime regions: Skagen, Great Belt, and Aarhus Bay. These three regions are selected to represent different maritime traffic conditions and navigational characteristics. Skagen is located near the Kattegat–Skagerrak traffic junction between the North Sea and the Baltic Sea, where vessel routes are dense and highly interactive. Great Belt represents a constrained waterway with clear channel effects and narrow navigation passages. Aarhus Bay contains coastal and regional vessel movements around a bay area. Therefore, these datasets allow the proposed model to be evaluated under different spatial patterns, traffic densities, and navigation environments rather than relying on a single waterway case.
Figure 1 shows the spatial distribution and AIS position density of the three study areas. The density patterns indicate that the three datasets contain both regular sailing routes and locally concentrated vessel movements, making them suitable for evaluating AIS trajectory prediction under different maritime scenarios. Table 1 summarizes the data scale and spatial coverage of the three AIS datasets. The raw AIS records include timestamp, vessel identifier, longitude, and latitude. The timestamp is used to order vessel movement records, while the vessel identifier is used to separate vessel trajectories and construct leakage-free data splits. For trajectory prediction, vessel positions are represented using local meter-scale two-dimensional coordinates derived from the original longitude and latitude records using the transformation defined in Equation (1).
In addition to the raw AIS data scale, Table 2 reports the movement characteristics of the trajectory samples used for model training and evaluation under the long-term prediction setting. Step distance, vessel speed, and heading change are reported using mean and standard deviation to describe the movement scale, speed variation, and turning intensity of the trajectory samples. These statistics provide a more detailed description of the experimental data distribution and help explain the differences in prediction difficulty among the three regions.

3.2. Experimental Design and Settings

To evaluate the performance of GCT-Former in AIS-based vessel trajectory prediction, all experiments are conducted on the three datasets described above. The use of Skagen, Great Belt, and Aarhus Bay allows the model to be tested under different maritime traffic conditions, including dense route interactions, constrained waterway navigation, and coastal vessel movements. This setting is intended to examine whether the proposed model can maintain stable prediction performance across different spatial patterns and navigation environments.
For each dataset, three prediction horizons are considered to evaluate short-term, medium-term, and long-term forecasting performance. The short-term setting uses 20 historical AIS observations and predicts 20 future positions. The medium-term setting uses the same 20 historical observations but extends the prediction horizon to 40 future positions. The long-term setting uses 40 historical observations to predict 80 future positions. All AIS trajectories are organized at a 20-s temporal interval, so these settings correspond to progressively longer forecasting durations. This design enables the evaluation of both short-range prediction accuracy and long-horizon trajectory stability.
To ensure a fair comparison, all models are trained and evaluated using the same input features, data split, and evaluation metrics. The input of each model consists of local two-dimensional coordinates transformed from the original longitude and latitude records. Before training, the local x / y coordinates are standardized using the mean and standard deviation fitted on the training windows only. The coordinate standardization is formulated as
x t std = x t μ train σ train ,
where x t = [ u t , v t ] denotes the meter-scale local coordinate at time step t, and μ train and σ train are the coordinate-wise mean and standard deviation computed from the training windows. The same normalization parameters are then applied to the validation and test sets. During evaluation, both predicted and ground-truth trajectories are transformed back to the meter-scale local coordinate system by
x t = x t std σ train + μ train ,
where ⊙ denotes element-wise multiplication. ADE, FDE, RMSE, and MAE are then computed using the inverse-transformed meter-scale coordinates. The datasets are divided into training, validation, and test sets with a ratio of 70%, 10%, and 20%, respectively. The validation set is used for model selection, and the final performance is reported on the test set. Eight representative baseline models are selected for comparison, including MLP [32], Seq2Seq [33], Transformer [34], GRU [35], LSTM [36], BiLSTM [37], PatchTST [38], and DiffTraj [39]. These models cover different trajectory prediction structures, including feed-forward mapping, encoder–decoder prediction, attention-based sequence modeling, recurrent temporal modeling, patch-based time-series Transformer modeling, and diffusion-based trajectory generation. To ensure a fair comparison, all baseline models are implemented and evaluated under the same experimental protocol as GCT-Former, including the same input representation, data split, prediction horizons, and evaluation metrics. Therefore, the performance differences can be primarily attributed to the model architecture rather than differences in data processing or evaluation settings.

3.3. Evaluation Metrics

Let y i , k R 2 denote the ground-truth future position of the i-th sample at the k-th future step, and let y ^ i , k R 2 denote the corresponding predicted position. Here, N is the number of test samples and K is the prediction horizon. All distance-based evaluation metrics are computed using the inverse-normalized local coordinates in meters. For reporting, the resulting meter-scale errors are divided by 1000, so the ADE, FDE, RMSE, and MAE values in the result tables are expressed in kilometers. The average displacement error (ADE) is defined as
ADE = 1 N K i = 1 N k = 1 K y ^ i , k y i , k 2 .
ADE measures the average spatial deviation between the predicted and ground-truth trajectories over all future steps.
The final displacement error (FDE) is defined as
FDE = 1 N i = 1 N y ^ i , K y i , K 2 .
FDE measures the prediction error at the final future step and is especially important for evaluating long-horizon trajectory forecasting.
The root mean squared error (RMSE) is calculated as
RMSE = 1 N K i = 1 N k = 1 K y ^ i , k y i , k 2 2 .
RMSE gives larger penalties to relatively large prediction errors.
The mean absolute error (MAE) is defined as
MAE = 1 N K i = 1 N k = 1 K u ^ i , k u i , k + v ^ i , k v i , k 2 ,
where y ^ i , k = [ u ^ i , k , v ^ i , k ] and y i , k = [ u i , k , v i , k ] . MAE evaluates the average absolute coordinate-wise prediction error. For all metrics, lower values indicate better prediction performance.

4. Results

This section presents the experimental results of GCT-Former on the three AIS trajectory datasets. The results are organized according to the main evaluation objectives of this study. First, the overall prediction performance is compared across different datasets and prediction horizons using ADE, FDE, RMSE, and MAE. Second, an ablation analysis is conducted to examine the contribution of the main architectural components of GCT-Former. Third, the step-wise prediction error is analyzed to show how prediction errors evolve along the forecasting horizon. Finally, the model is evaluated under different maneuvering scenarios, including straight sailing, mild turning, and sharp turning, through both quantitative comparisons and qualitative trajectory examples.

4.1. Overall Prediction Performance

Table 3 presents the ADE and FDE results across the three datasets and three prediction horizons. ADE and FDE are first reported because they directly describe trajectory-level prediction quality. ADE measures the average spatial deviation over the whole predicted trajectory, while FDE measures the error at the final prediction step, which is particularly important for long-horizon forecasting. Overall, GCT-Former shows strong performance on these core geometric trajectory prediction metrics, especially in the short-term and long-term settings. Starting with the Aarhus dataset, GCT-Former achieves the lowest ADE and FDE under all three prediction horizons. In the short-term setting, it obtains an ADE of 0.062 and an FDE of 0.141. When the prediction horizon is extended to the medium-term setting, GCT-Former maintains the best performance, with an ADE of 0.117 and an FDE of 0.272. In the long-term setting, GCT-Former obtains an ADE of 0.344 and an FDE of 0.774, both of which remain the lowest among all compared models.
A similar trend can be found for Great Belt in the short-term and long-term settings. In the short-term setting, GCT-Former achieves the lowest ADE of 0.041 and the lowest FDE of 0.094. In the long-term setting, it again obtains the best performance, with an ADE of 0.546 and an FDE of 1.368. Nevertheless, the medium-term results show a different pattern. In this setting, MLP and GRU achieve the joint-lowest ADE of 0.198, while MLP obtains the lowest FDE of 0.475. GCT-Former records an ADE of 0.217 and an FDE of 0.526, indicating that the proposed model is not uniformly superior in all medium-term cases. For Skagen, GCT-Former achieves the best or joint-best ADE and FDE across the short-term, medium-term, and long-term settings. In the short-term setting, it obtains an ADE of 0.023 and an FDE of 0.046. In the medium-term setting, it obtains the joint-lowest ADE of 0.057 and the joint-lowest FDE of 0.130. In the long-term setting, GCT-Former achieves an ADE of 0.218 and an FDE of 0.525. Taken together, the ADE and FDE results show that the clearest and most consistent advantage of GCT-Former appears in the long-term setting. Across Aarhus, Great Belt, and Skagen, GCT-Former achieves the best ADE and FDE in all long-term cases.
To further complement the ADE and FDE comparison, Table 4 reports RMSE and MAE across the same datasets and prediction horizons. RMSE emphasizes relatively large deviations, while MAE reflects the average coordinate-wise absolute error. These two metrics provide an additional perspective on the numerical stability of the predicted trajectories. For Aarhus, GCT-Former achieves the lowest RMSE and MAE in both the short-term and medium-term settings. In the short-term setting, the RMSE is 0.143 and the MAE is 0.040. In the medium-term setting, the RMSE is 0.219 and the MAE is 0.075, both of which are the best results among all models. In the long-term setting, GCT-Former obtains the lowest MAE of 0.224 and remains competitive in RMSE with 0.606, while GRU achieves the lowest RMSE of 0.596. The RMSE and MAE results for Great Belt are generally consistent with the ADE and FDE findings. GCT-Former achieves the best RMSE and MAE in the short-term setting, with values of 0.100 and 0.026. In the long-term setting, GCT-Former achieves the lowest MAE of 0.351, while DiffTraj obtains the lowest RMSE of 1.206. However, the medium-term setting again shows weaker performance. In this case, DiffTraj obtains the lowest RMSE of 0.446, while GRU obtains the lowest MAE of 0.128. GCT-Former records an RMSE of 0.565 and an MAE of 0.139. For Skagen, the RMSE and MAE results are more mixed in the short-term and medium-term settings. In short-term prediction, LSTM achieves the lowest RMSE, whereas GCT-Former achieves the lowest MAE. In medium-term prediction, GRU achieves the lowest RMSE, while GCT-Former and MLP obtain the joint-lowest MAE of 0.036. In the long-term setting, however, GCT-Former achieves the best performance on both RMSE and MAE, with values of 0.615 and 0.137. Overall, the combined ADE/FDE and RMSE/MAE results indicate that GCT-Former provides the most consistent advantage in long-term geometric trajectory prediction, particularly in terms of ADE, FDE, and MAE, while some baseline models remain competitive for RMSE and under specific short-term or medium-term metrics.

4.2. Ablation Analysis

To examine whether the main architectural components of GCT-Former contribute to the final prediction performance, an ablation analysis is conducted under the long-term prediction setting. Figure 2 reports the effect of removing the main components of GCT-Former. The full GCT-Former obtains the lowest ADE on all three datasets. Removing the multi-scale encoding module increases ADE by 7% on Aarhus, 4% on Great Belt, and 3% on Skagen. Removing the progressive residual decoding module leads to a larger degradation, with ADE increasing by 15%, 9%, and 8% on the three datasets, respectively. Removing the global–local refinement module causes a smaller but still observable increase in ADE. These results indicate that all three components contribute to the final performance, with progressive residual decoding showing the most evident contribution to long-horizon prediction.

4.3. Step-Wise Prediction Analysis

To evaluate how prediction errors accumulate along the forecasting horizon, the step-wise displacement error is analyzed under the long-term prediction setting. Figure 3 shows how the mean displacement error changes as the prediction step increases. Across the three datasets, the error generally increases with the prediction horizon for all models. Compared with the selected baselines, GCT-Former shows a lower and smoother error-growth trend, especially in the later prediction steps. This result is consistent with the ADE and FDE comparisons and suggests that the progressive residual decoding strategy helps reduce error accumulation during long-horizon trajectory generation.

4.4. Maneuvering Scenario Analysis

To evaluate the robustness of GCT-Former under nonlinear vessel movements, the prediction performance is further analyzed under different maneuvering scenarios. Table 5 reports the long-term prediction performance under mild-turning and sharp-turning cases. Beginning with Aarhus, GCT-Former outperforms the best baseline under both mild-turning and sharp-turning cases. For mild turning, GCT-Former obtains an ADE of 0.390 and an FDE of 0.765. For sharp turning, it achieves an ADE of 0.506 and an FDE of 1.146. Both results are lower than the corresponding best baseline values. The improvement is also observed on Great Belt. For mild turning, GCT-Former achieves an ADE of 0.311 and an FDE of 0.807. For sharp turning, it obtains an ADE of 1.216 and an FDE of 3.060. Both turning scenarios show lower errors than the corresponding best baselines. Furthermore, Skagen shows the same tendency. Under mild turning, GCT-Former obtains an ADE of 0.218 and an FDE of 0.433. Under sharp turning, it achieves an ADE of 0.556 and an FDE of 1.375.
Figure 4 visualizes the ADE comparison under straight-sailing, mild-turning, and sharp-turning scenarios. In the straight-sailing cases, the gap between GCT-Former and the best baseline is relatively small, and GCT-Former is not always the best model. However, under mild-turning and sharp-turning scenarios, GCT-Former consistently shows lower ADE than the corresponding best baseline. This pattern indicates that the advantage of GCT-Former becomes more evident when the maneuvering behavior is more nonlinear.
To provide a visual interpretation of the maneuvering results, representative trajectory examples are further presented in Figure 5. The figure shows long-term trajectory prediction under straight sailing, mild turning, and sharp turning scenarios across the three datasets. It complements the quantitative comparison in Table 5 and Figure 4 by showing how different models behave in terms of trajectory shape, direction, and final-position deviation.

5. Discussion

The experimental results show that GCT-Former is particularly effective for long-horizon AIS trajectory prediction. Combining Table 3 and Table 4, and Figure 3, the proposed model achieves its most consistent advantage in the long-term setting, particularly in terms of ADE, FDE, and MAE, while remaining competitive in RMSE. The step-wise error curves further indicate that GCT-Former can better control error accumulation as the forecasting horizon increases. This result is consistent with the model design: the multi-scale encoder captures historical movement patterns from different temporal ranges, the progressive residual decoder strengthens dependency among future steps, and the global–local refinement module further adjusts the initially decoded trajectory. The ablation results in Figure 2 also support this interpretation, as removing any of the three components increases ADE, with the largest degradation observed when the progressive residual decoding module is removed.
The turning-maneuver results further demonstrate the value of GCT-Former under nonlinear vessel movements. Table 5 and Figure 4 show that GCT-Former achieves lower errors than the corresponding best baseline under mild-turning and sharp-turning scenarios, indicating that the proposed progressive and refinement-based prediction strategy is useful for preserving future trajectory trends when vessel motion becomes nonlinear. The qualitative examples provide similar evidence. In straight-sailing cases, GCT-Former generally follows the ground-truth movement direction with relatively small endpoint deviation. In mild-turning cases, it better captures gradual direction changes, whereas several baselines tend to extend the historical motion trend too linearly. In sharp-turning cases, GCT-Former remains competitive, although extremely high-curvature or loop-like maneuvers are still difficult to reproduce accurately. Despite these advantages, several limitations remain. First, GCT-Former contains multiple components, including the multi-scale encoder, progressive residual decoder, and global–local refinement module. This design improves long-horizon prediction performance but also increases model complexity and may require additional parameter tuning and efficiency analysis before real-time deployment. Second, the current model is a data-driven geometric trajectory prediction framework and does not explicitly incorporate waterway boundaries, navigation rules, environmental conditions, vessel-specific maneuvering constraints, or neighboring-vessel interactions. Third, the prediction performance may be affected by missing AIS records, irregular reporting intervals, position noise, sudden speed changes, and highly irregular maneuvers. These limitations suggest that future work should further investigate model efficiency, data robustness, and the integration of richer maritime-context and risk-assessment information.

6. Conclusions

Accurate vessel trajectory prediction is important for maritime traffic monitoring, navigation safety, route planning, and intelligent vessel traffic management. However, AIS-based trajectory prediction remains challenging because vessel movements are affected by heterogeneous maritime environments, traffic density, channel constraints, and maneuvering behaviors. To address these challenges, this study proposed GCT-Former, a progressive and refinement-based framework for AIS-based vessel trajectory prediction. The proposed model integrates a trajectory-specific multi-scale sequence encoder, a progressive residual decoder, and a global–local trajectory refinement module, enabling it to capture historical movement information from different temporal scales, strengthen the dependency among future prediction steps, and further correct the initially decoded trajectory. Experiments on three Danish AIS datasets, namely Aarhus Bay, Great Belt, and Skagen, show that GCT-Former achieves its most consistent advantage in the long-term prediction setting. In terms of long-term ADE, GCT-Former obtains 0.344, 0.546, and 0.218 on Aarhus Bay, Great Belt, and Skagen, respectively. In terms of long-term FDE, it achieves 0.774, 1.368, and 0.525 on the three datasets, respectively. These results demonstrate that the proposed progressive and refinement-based design is particularly effective for long-horizon AIS trajectory prediction.
The ablation analysis further confirms the contribution of the main model components. Removing the multi-scale encoding module increases long-term ADE by 7%, 4%, and 3% on Aarhus Bay, Great Belt, and Skagen, respectively, while removing the progressive residual decoder causes larger increases of 15%, 9%, and 8%. These results indicate that the progressive residual decoder plays the most important role among the tested components, while the multi-scale encoder and global–local refinement module also contribute to the final prediction performance. The maneuvering-scenario analysis also shows the advantage of GCT-Former under nonlinear vessel movements. Under mild-turning cases, GCT-Former achieves ADE/FDE values of 0.390/0.765, 0.311/0.807, and 0.218/0.433 on Aarhus Bay, Great Belt, and Skagen, respectively. Under sharp-turning cases, it achieves ADE/FDE values of 0.506/1.146, 1.216/3.060, and 0.556/1.375 on the three datasets, respectively. These findings show that GCT-Former can better preserve future trajectory trends when vessel motion becomes nonlinear.
Despite these promising results, several limitations remain. The model contains multiple components, which may increase computational cost and require further efficiency analysis before real-time deployment. Overall, the results show that GCT-Former improves AIS-based geometric trajectory prediction by producing more stable long-horizon future-position estimates and more coherent trajectory shapes under maneuvering scenarios. These predicted trajectories can serve as useful trajectory-level information for downstream maritime traffic monitoring, route planning, and decision-support applications. Future work will further improve the framework from both methodological and application-oriented perspectives. On the methodological side, model efficiency, parameter sensitivity, and robustness to missing or noisy AIS records should be further investigated. On the application side, richer maritime-context information, such as waterway constraints, traffic-flow conditions, vessel-interaction patterns, and navigation-risk indicators, can be incorporated to support closer integration with practical maritime traffic management and decision support.

Author Contributions

Conceptualization, Y.W. and W.Z.; methodology, Y.W., Y.L., Q.Z., X.J. and W.Z.; software, Y.L., Q.Z., X.J. and W.Z.; validation, Y.W., Y.L., Q.Z., X.J. and W.Z.; formal analysis, Y.L., Q.Z., X.J. and W.Z.; investigation, Y.W., X.J. and W.Z.; resources, Y.W.; data curation, Y.W., X.J. and W.Z.; writing—original draft preparation, Y.W. and W.Z.; writing—review and editing, Y.W., Y.L., Q.Z., X.J. and W.Z.; visualization, X.J. and W.Z.; supervision, W.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Hubei Provincial Natural Science Foundation of China, grant number 2025AFB422, and the Doctoral Research Foundation of Hubei University of Science and Technology, grant number BK202432.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Abbreviations

The following abbreviations are used in this manuscript:
ADEAverage Displacement Error
AISAutomatic Identification System
BiLSTMBidirectional Long Short-Term Memory
COGCourse Over Ground
FDEFinal Displacement Error
FFNFeed-Forward Network
GANGenerative Adversarial Network
GATGraph Attention Network
GNNGraph Neural Network
GRUGated Recurrent Unit
LNLayer Normalization
LSTMLong Short-Term Memory
MAEMean Absolute Error
MHAMulti-Head Attention
MLPMultilayer Perceptron
MMSIMaritime Mobile Service Identity
MSEMean Squared Error
PCAPrincipal Component Analysis
RMSERoot Mean Squared Error
RNNRecurrent Neural Network
Seq2SeqSequence-to-Sequence
SOGSpeed Over Ground
SocialVAESocial Variational Autoencoder
ST-Seq2SeqSpatio-Temporal Sequence-to-Sequence
STGCNNSpatio-Temporal Graph Convolutional Neural Network
TPTransTrajectory Prediction Transformer
TrAISformerTransformer for AIS-based vessel trajectory prediction
VAEVariational Autoencoder
VTSVessel Traffic Service

References

  1. Rodrigue, J.P. The geography of maritime ranges: Interfacing global maritime shipping networks with Hinterlands. GeoJournal 2022, 87, 1231–1244. [Google Scholar]
  2. Kim, Y.J.; Lee, J.S.; Pititto, A.; Falco, L.; Lee, M.S.; Yoon, K.K.; Cho, I.S. Maritime traffic evaluation using spatial-temporal density analysis based on big AIS data. Appl. Sci. 2022, 12, 11246. [Google Scholar] [CrossRef] [Scilit]
  3. Huang, J.C.; Ung, S.T. Risk assessment and traffic behaviour evaluation of ships. J. Mar. Sci. Eng. 2023, 11, 2297. [Google Scholar] [CrossRef] [Scilit]
  4. Lv, Z.; Wang, X.; Wang, G.; Xing, X.; Lv, C.; Yu, F. Unmanned surface vessels in marine surveillance and management: Advances in communication, navigation, control, and data-driven research. J. Mar. Sci. Eng. 2025, 13, 969. [Google Scholar] [CrossRef] [Scilit]
  5. Troupiotis-Kapeliaris, A.; Kastrisios, C.; Zissis, D. Vessel trajectory data mining: A review. IEEE Access 2025, 13, 4827–4856. [Google Scholar] [CrossRef] [Scilit]
  6. Yu, Q.; Yin, X.; Geng, X.; Chen, S.; Yang, J. AISFormer for long-term vessel trajectory prediction. Ocean Eng. 2025, 340, 122098. [Google Scholar] [CrossRef] [Scilit]
  7. Han, X.; Zhou, Y.; Weng, J.; Chen, L.; Liu, K. Research on fishing vessel recognition based on vessel behavior characteristics from AIS data. Front. Mar. Sci. 2025, 12, 1547658. [Google Scholar] [CrossRef] [Scilit]
  8. Chen, Y.; Chen, Y.; Cui, Y.; Cai, X.; Yin, C.; Cheng, Y. Optimizing vessel trajectories: Advanced denoising and interpolation techniques for AIS data. Ocean Eng. 2025, 327, 120988. [Google Scholar] [CrossRef] [Scilit]
  9. Zhang, R.; Fan, Y.; Zhang, D. Research on vessel trajectory fusion method based on extended Kalman filter. In Proceedings of the International Conference on Smart Transportation and City Engineering (STCE 2024); SPIE: Bellingham, WA, USA, 2025; Volume 13575, pp. 48–58. [Google Scholar]
  10. Dalsnes, B.R.; Hexeberg, S.; Flåten, A.L.; Eriksen, B.O.H.; Brekke, E.F. The neighbor course distribution method with Gaussian mixture models for AIS-based vessel trajectory prediction. In Proceedings of the 2018 21st International Conference on Information Fusion (FUSION); IEEE: Piscataway, NJ, USA, 2018; pp. 580–587. [Google Scholar]
  11. Alizadeh, D.; Alesheikh, A.A.; Sharif, M. Prediction of vessels locations and maritime traffic using similarity measurement of trajectory. Ann. GIS 2021, 27, 151–162. [Google Scholar]
  12. Raj, N.; Kumar, P. Navigating the Future: A Comprehensive Review of Vessel Trajectory Prediction Techniques. Def. Sci. J. 2025, 75, 129–138. [Google Scholar] [CrossRef] [Scilit]
  13. Li, J.; Wang, X.; Chen, J.; Zhu, D.; Zhang, C.; Chen, Z.; Huang, Y. Ship Trajectory Prediction Method Based on Multi-Layer Recurrent Neural Network Structure and AIS Data Driven. Comput. Intell. 2025, 41, e70079. [Google Scholar]
  14. Yin, J.; Yu, Z.; Wu, H. Ship trajectory prediction based on LSTM model with multi-scale convolution and attention mechanism. Ocean Eng. 2025, 338, 122055. [Google Scholar] [CrossRef] [Scilit]
  15. Wang, C.; Ren, H.; Li, H. Vessel trajectory prediction based on AIS data and bidirectional GRU. In Proceedings of the 2020 International Conference on Computer Vision, Image and Deep Learning (CVIDL); IEEE: Piscataway, NJ, USA, 2020; pp. 260–264. [Google Scholar]
  16. You, L.; Xiao, S.; Peng, Q.; Claramunt, C.; Han, X.; Guan, Z.; Zhang, J. St-seq2seq: A spatio-temporal feature-optimized seq2seq model for short-term vessel trajectory prediction. IEEE Access 2020, 8, 218565–218574. [Google Scholar]
  17. Sinni, M.; Kyriazanos, D.M. Vessel Trajectory Prediction Using Robust AIS Preprocessing and Dual-Self-Attention GRU. In Proceedings of the Workshop on AI-Driven Data Engineering and Reusability for Earth and Space Sciences (DARES’25), Co-Located with the 28th European Conference on Artificial Intelligence (ECAI 2025), Bologna, Italy, 25–30 October 2025; pp. 1–10. [Google Scholar]
  18. Kim, D.K.; Kim, K. A convolutional transformer model for multivariate time series prediction. IEEE Access 2022, 10, 101319–101329. [Google Scholar] [CrossRef] [Scilit]
  19. Nguyen, D.; Fablet, R. A transformer network with sparse augmented data representation and cross entropy loss for ais-based vessel trajectory prediction. IEEE Access 2024, 12, 21596–21609. [Google Scholar] [CrossRef] [Scilit]
  20. Wang, W.; Xiong, W.; Ouyang, X.; Chen, L. TPTrans: Vessel trajectory prediction model based on transformer using AIS data. ISPRS Int. J. Geo-Inf. 2024, 13, 400. [Google Scholar] [CrossRef] [Scilit]
  21. Chen, X.; Wu, P.; Wu, Y.; Aboud, L.; Postolache, O.; Wang, Z. Ship trajectory prediction via a transformer-based model by considering spatial-temporal dependency. Intell. Robot. 2025, 5, 562–578. [Google Scholar]
  22. Er, F.; Yalman, Y. Navigating the Future: A novel PCA-driven layered attention approach for vessel trajectory prediction with encoder–decoder models. Appl. Sci. 2025, 15, 8953. [Google Scholar]
  23. Zhao, J.; Yan, Z.; Zhou, Z.; Chen, X.; Wu, B.; Wang, S. A ship trajectory prediction method based on GAT and LSTM. Ocean Eng. 2023, 289, 116159. [Google Scholar] [CrossRef] [Scilit]
  24. Feng, H.; Cao, G.; Xu, H.; Ge, S.S. IS-STGCNN: An Improved Social spatial-temporal graph convolutional neural network for ship trajectory prediction. Ocean Eng. 2022, 266, 112960. [Google Scholar]
  25. Xiao, Y.; Luo, X.; Wang, T.; Zhang, Z. Spatio-Temporal Transformer Networks for Inland Ship Trajectory Prediction with Practical Deficient Automatic Identification System Data. Appl. Sci. 2024, 14, 10494. [Google Scholar] [CrossRef] [Scilit]
  26. Wang, P.; Pan, M.; Liu, Z.; Li, S.; Chen, Y.; Wei, Y. Ship Trajectory Prediction in Complex Waterways Based on Transformer and Social Variational Autoencoder (SocialVAE). J. Mar. Sci. Eng. 2024, 12, 2233. [Google Scholar] [CrossRef] [Scilit]
  27. Wu, W.; Yan, D.; Yan, J.; Wang, X. Ship behavior prediction and anomaly detection using LSTM-DCross model based on AIS and remote sensing data. Int. J. Digit. Earth 2025, 18, 2515251. [Google Scholar] [CrossRef] [Scilit]
  28. Sanford, C.; Hsu, D.J.; Telgarsky, M. Representational strengths and limitations of transformers. Adv. Neural Inf. Process. Syst. 2023, 36, 36677–36707. [Google Scholar] [CrossRef] [Scilit]
  29. Pang, B.; Zha, K.; Cao, H.; Shi, C.; Lu, C. Deep rnn framework for visual sequential applications. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2019; pp. 423–432. [Google Scholar]
  30. Chevillon, G. Direct multi-step estimation and forecasting. J. Econ. Surv. 2007, 21, 746–785. [Google Scholar] [CrossRef] [Scilit]
  31. Zhou, Y.; Shao, H.; Wang, L.; Waslander, S.L.; Li, H.; Liu, Y. Smartrefine: A scenario-adaptive refinement framework for efficient motion prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2024; pp. 15281–15290. [Google Scholar]
  32. Rumelhart, D.E.; Hinton, G.E.; Williams, R.J. Learning representations by back-propagating errors. Nature 1986, 323, 533–536. [Google Scholar] [CrossRef] [Scilit]
  33. Sutskever, I.; Vinyals, O.; Le, Q.V. Sequence to Sequence Learning with Neural Networks. In Proceedings of the Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2014; Volume 27. [Google Scholar]
  34. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention Is All You Need. In Proceedings of the Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30. [Google Scholar]
  35. Cho, K.; van Merriënboer, B.; Gulcehre, C.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing; ACL: Stroudsburg, PA, USA, 2014; pp. 1724–1734. [Google Scholar]
  36. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Schuster, M.; Paliwal, K.K. Bidirectional Recurrent Neural Networks. IEEE Trans. Signal Process. 1997, 45, 2673–2681. [Google Scholar] [CrossRef] [Scilit]
  38. Huang, X.; Tang, J.; Shen, Y. Long time series of ocean wave prediction based on PatchTST model. Ocean Eng. 2024, 301, 117572. [Google Scholar] [CrossRef] [Scilit]
  39. Zhu, Y.; Ye, Y.; Zhang, S.; Zhao, X.; Yu, J. Difftraj: Generating gps trajectory with diffusion probabilistic model. Adv. Neural Inf. Process. Syst. 2023, 36, 65168–65188. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Spatial distribution and AIS position density of the three study areas: (a) Skagen, (b) Great Belt, and (c) Aarhus Bay.
Figure 1. Spatial distribution and AIS position density of the three study areas: (a) Skagen, (b) Great Belt, and (c) Aarhus Bay.
Jmse 14 01218 g001
Figure 2. Ablation study of GCT-Former components under the long-term prediction setting. The figure reports ADE on Aarhus, Great Belt, and Skagen.
Figure 2. Ablation study of GCT-Former components under the long-term prediction setting. The figure reports ADE on Aarhus, Great Belt, and Skagen.
Jmse 14 01218 g002
Figure 3. Step-wise prediction error under the long-term forecasting setting. The figure compares GCT-Former with selected baseline models on Aarhus, Great Belt, and Skagen.
Figure 3. Step-wise prediction error under the long-term forecasting setting. The figure compares GCT-Former with selected baseline models on Aarhus, Great Belt, and Skagen.
Jmse 14 01218 g003
Figure 4. ADE comparison under different maneuvering scenarios. Each panel compares GCT-Former with the best baseline for straight sailing, mild turning, and sharp turning. The model name above each gray bar indicates the corresponding best baseline.
Figure 4. ADE comparison under different maneuvering scenarios. Each panel compares GCT-Former with the best baseline for straight sailing, mild turning, and sharp turning. The model name above each gray bar indicates the corresponding best baseline.
Jmse 14 01218 g004
Figure 5. Qualitative comparison of long-term trajectory prediction under different maneuvering scenarios.
Figure 5. Qualitative comparison of long-term trajectory prediction under different maneuvering scenarios.
Jmse 14 01218 g005
Table 1. Summary of the AIS datasets used in this study.
Table 1. Summary of the AIS datasets used in this study.
DatasetAIS PointsVesselsSpatial CoverageNavigational Characteristics
Skagen261.9 million9.0k8.5– 11 . 3 E, 57.2– 58 . 3 NDense traffic junction and route interactions
Great Belt182.2 million8.4k10.2– 11 . 8 E, 54.5– 56 . 4 NConstrained waterway and channel effects
Aarhus Bay78.6 million5.7k9.8– 11 . 2 E, 55.7– 56 . 6 NCoastal and bay-area vessel movements
Table 2. Movement characteristics of trajectory samples under the long-term prediction setting.
Table 2. Movement characteristics of trajectory samples under the long-term prediction setting.
DatasetInter-Step Distance (km)Speed (kn)Heading Change ( ° )
Aarhus Bay0.073 ± 0.0637.11 ± 6.161.40 ± 6.42
Great Belt0.047 ± 0.0624.56 ± 6.071.79 ± 8.86
Skagen0.033 ± 0.0793.21 ± 7.652.65 ± 9.10
Table 3. Prediction performance comparison in terms of ADE and FDE across different datasets and prediction horizons.
Table 3. Prediction performance comparison in terms of ADE and FDE across different datasets and prediction horizons.
DatasetModelShort-TermMedium-TermLong-Term
ADE (km)FDE (km)ADE (km)FDE (km)ADE (km)FDE (km)
AarhusMLP0.0720.1560.1290.2980.3720.858
Seq2Seq0.0790.1730.3210.6230.6861.349
Transformer0.0830.1610.1530.2980.4790.831
GRU0.0700.1560.1290.3090.3600.837
LSTM0.0750.1640.1240.2930.4990.887
BiLSTM0.0750.1620.1300.3030.5040.873
PatchTST0.1090.2170.1810.3300.5330.997
DiffTraj0.0850.1690.1540.3100.3820.812
GCT-Former0.0620.1410.1170.2720.3440.774
Great BeltMLP0.0450.1000.1980.4750.6021.457
Seq2Seq0.0500.1190.2220.5300.6201.495
Transformer0.0570.1060.2490.5300.7161.521
GRU0.0440.1000.1980.4780.5871.461
LSTM0.0450.1010.2020.4930.6011.486
BiLSTM0.0480.1030.2180.5101.4282.459
PatchTST0.0690.1100.2640.5410.7571.624
DiffTraj0.0610.1120.2280.5320.5731.414
GCT-Former0.0410.0940.2170.5260.5461.368
SkagenMLP0.0250.0500.0570.1470.2280.531
Seq2Seq0.0330.0670.0770.1640.2750.630
Transformer0.0390.0530.0860.1340.3100.569
GRU0.0250.0500.0630.1470.2610.595
LSTM0.0250.0520.0580.1300.2370.554
BiLSTM0.0280.0610.0580.1310.2650.595
PatchTST0.0510.0670.1070.1600.3300.628
DiffTraj0.0430.0670.0920.1530.2570.560
GCT-Former0.0230.0460.0570.1300.2180.525
Note: Bold values indicate the best, i.e., lowest, result for each metric under each dataset and prediction horizon. Tied best values after rounding are also shown in bold.
Table 4. Prediction performance comparison in terms of RMSE and MAE across different datasets and prediction horizons.
Table 4. Prediction performance comparison in terms of RMSE and MAE across different datasets and prediction horizons.
DatasetModelShort-TermMedium-TermLong-Term
RMSE (km)MAE (km)RMSE (km)MAE (km)RMSE (km)MAE (km)
AarhusMLP0.1510.0460.2340.0840.5990.243
Seq2Seq0.1730.0510.4800.2180.8710.456
Transformer0.1540.0530.2340.0990.6210.308
GRU0.1500.0450.2380.0840.5960.235
LSTM0.1630.0480.2340.0800.6930.334
BiLSTM0.1610.0480.2390.0850.6960.334
PatchTST0.1780.0710.2540.1180.6820.349
DiffTraj0.1490.0550.2410.0990.6160.247
GCT-Former0.1430.0400.2190.0750.6060.224
Great BeltMLP0.1070.0290.4640.1291.2970.391
Seq2Seq0.1050.0320.5050.1431.2680.401
Transformer0.1100.0370.5470.1601.4180.464
GRU0.1080.0280.4670.1281.2950.382
LSTM0.1090.0290.4680.1311.2610.391
BiLSTM0.1100.0310.4950.1401.9920.926
PatchTST0.1110.0460.5390.1691.3290.494
DiffTraj0.1100.0380.4460.1371.2060.370
GCT-Former0.1000.0260.5650.1391.2280.351
SkagenMLP0.0710.0160.1850.0360.6300.144
Seq2Seq0.0750.0210.1860.0480.6520.176
Transformer0.0750.0240.1880.0560.6560.196
GRU0.0700.0160.1830.0400.6360.165
LSTM0.0690.0160.1850.0370.6430.149
BiLSTM0.0890.0180.1900.0370.6740.168
PatchTST0.0840.0340.2050.0710.6570.213
DiffTraj0.0890.0270.2010.0590.6240.164
GCT-Former0.0800.0140.1870.0360.6150.137
Note: Bold values indicate the best, i.e., lowest, result for each metric under each dataset and prediction horizon. Tied best values after rounding are also shown in bold.
Table 5. Long-term prediction performance under turning maneuvers in terms of ADE and FDE.
Table 5. Long-term prediction performance under turning maneuvers in terms of ADE and FDE.
DatasetModelMild TurningSharp Turning
ADE (km)FDE (km)ADE (km)FDE (km)
AarhusBest baseline0.449 (MLP)0.990 (Transformer)0.526 (GRU)1.224 (Transformer)
GCT-Former0.3900.7650.5061.146
Great BeltBest baseline0.338 (GRU)0.833 (MLP)1.303 (GRU)3.190 (Seq2Seq)
GCT-Former0.3110.8071.2163.060
SkagenBest baseline0.230 (MLP)0.447 (Transformer)0.583 (MLP)1.400 (MLP)
GCT-Former0.2180.4330.5561.375
Note: Bold values indicate the lower error between GCT-Former and the best baseline for each metric and maneuvering scenario.
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

Wang, Y.; Liu, Y.; Zhang, Q.; Ji, X.; Zhang, W. AIS-Based Ship Trajectory Prediction Using a Geometry-Consistent Trajectory Transformer (GCT-Former). J. Mar. Sci. Eng. 2026, 14, 1218. https://doi.org/10.3390/jmse14131218

AMA Style

Wang Y, Liu Y, Zhang Q, Ji X, Zhang W. AIS-Based Ship Trajectory Prediction Using a Geometry-Consistent Trajectory Transformer (GCT-Former). Journal of Marine Science and Engineering. 2026; 14(13):1218. https://doi.org/10.3390/jmse14131218

Chicago/Turabian Style

Wang, Yingying, Yihao Liu, Qi Zhang, Xingchen Ji, and Wenru Zhang. 2026. "AIS-Based Ship Trajectory Prediction Using a Geometry-Consistent Trajectory Transformer (GCT-Former)" Journal of Marine Science and Engineering 14, no. 13: 1218. https://doi.org/10.3390/jmse14131218

APA Style

Wang, Y., Liu, Y., Zhang, Q., Ji, X., & Zhang, W. (2026). AIS-Based Ship Trajectory Prediction Using a Geometry-Consistent Trajectory Transformer (GCT-Former). Journal of Marine Science and Engineering, 14(13), 1218. https://doi.org/10.3390/jmse14131218

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop