The invention provides an AUV (Autonomous
Underwater Vehicle) drift trajectory prediction method based on a DBASform model. The prediction accuracy is improved by utilizing a complex dependency relationship between an AUV drift trajectory and
ocean current. Drift trajectory prediction is essentially a
time sequence prediction problem, a future trajectory is predicted mainly through the trend of a drift trajectory sequence changing along with time, and meanwhile, the change speed of the trajectory sequence is determined to a certain extent by the
ocean current flow velocity. Firstly, aiming at the problem that a
static model cannot capture dynamic characteristics in the prior art, the invention provides an attention
mechanism based on a self-adaptive span, and the attention span is defined as a learnable parameter of the model, so that accurate attention weights can be distributed more flexibly. Secondly, a novel double-
branch attention structure is provided, and the double-
branch attention structure comprises a time attention module and a dimension attention module. The two modules respectively calculate attention scores, and the weighted attention weight is used as the basis of the correlation between the trajectory data. According to the method, the cross-
time dependency and the cross-dimension dependency in the sequence can be captured at the same time, so that the multi-dimensional
feature extraction capability of the model is improved. Finally, the invention provides a drift trajectory prediction model DBASform based on Transform, the model follows an
encoder and
decoder architecture, and global attention is replaced by the proposed double-
branch adaptive attention to capture a complex dependency relationship between historical drift trajectory sequences, so that the drift trajectory within a period of time in the future is accurately predicted.