An inertial navigation method based on multi-head attention mechanism

By introducing the Transformer model and multi-head attention mechanism into inertial navigation, combined with the residual neural network and speed prediction model, the problem of unused global dependencies in IMU feature extraction is solved, and high-precision inertial navigation positioning is achieved, which is suitable for various applications. movement conditions.

CN114719860BActive Publication Date: 2024-10-15TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210438885.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2024-10-15
Estimated Expiration
2042-04-25

AI Technical Summary

Technical Problem

Existing neural network models fail to make full use of the global dependencies between data when extracting IMU features, resulting in insufficient inertial navigation accuracy, especially in the presence of noise and errors. It is difficult to provide reliable position information.

Method used

Using a multi-head attention mechanism based on the Transformer model, combined with the residual neural network and speed prediction model, through spatial feature extraction and temporal dimension fusion, it captures the advanced semantic features of IMU data and achieves the fusion of spatio-temporal features, thereby improving the positioning accuracy of inertial navigation. .

Benefits of technology

It effectively improves the positioning accuracy of inertial navigation, reduces the dependence on subject constraints, can extract valuable features in noisy environments, and supports the completion of high-precision positioning tasks under various motion conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114719860B_ABST
    Figure CN114719860B_ABST
Patent Text Reader

Abstract

The present invention discloses an inertial navigation method based on a multi-head attention mechanism, which mainly includes: using an intelligent device containing an inertial measurement unit (IMU) and a visual position marking device to collect IMU data; data preprocessing, using a residual-based neural network model to extract spatial features from the preprocessed IMU data to obtain the spatial feature distribution relationship between the axes; position encoding the IMU features that have completed the spatial feature extraction, using a Transformer model to train the encoded IMU features to obtain data features after spatiotemporal fusion; inputting the spatiotemporal fusion data features into a speed prediction model, performing interpolation and integration operations after a two-dimensional speed vector regression task, obtaining the position information of the entire trajectory sequence, and realizing inertial navigation. The present invention effectively captures the high-level semantic features of IMU data by fusing spatial features with temporal features, thereby improving the accuracy of the inertial navigation task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an inertial navigation method, in particular to an inertial navigation method based on a neural network model. Background Art

[0002] With the development of information technology, mobile smart devices equipped with many types of sensors have occupied people's lives. Among them, location-based services (LBS) play a very important role in daily life. Whether it is leisure and entertainment or emergency rescue, it is necessary to obtain the user's location information.

[0003] Currently, LBS is divided into outdoor positioning and indoor positioning. Among them, outdoor positioning has been developed very maturely. It obtains the user's location information through the operator's wireless communication network or global navigation satellite systems (GNSS) such as the Beidou Positioning System (BDS). These positioning systems provide reliable location information for military activities, aerospace, and people's daily lives. However, due to the obstruction of buildings and the interference of the magnetic field of electronic equipment, a large amount of refraction and diffraction phenomena occur in the process of indoor propagation of signals, which makes the outdoor navigation system unable to provide accurate indoor navigation services. Especially in scenarios without infrastructure, how to use a single device to obtain high-precision location information to achieve autonomous navigation has always been a hot issue in academia and industry.

[0004] At present, indoor positioning methods can be roughly divided into three categories: positioning based on wireless signals, positioning based on computer vision, and inertial positioning based on sensor devices. In positioning based on wireless signals, the fine-grained perception characteristics of Wi-Fi, Bluetooth, RFID, UWB, and ZigBee can achieve high positioning accuracy, but the transmission distance of wireless signals is short and easily affected by the environment, making it difficult to ensure positioning accuracy in complex indoor scenes. In addition, such methods require the deployment of a large number of hardware devices in the early stage, and the positioning cost is high. Positioning methods based on computer vision are effective in conditions with sufficient light, but require the collection of a large number of images to train the network model, and have the defects of high energy consumption and weak privacy. Inertial positioning solutions based on sensor devices can ignore the limitations caused by the environment. The inertial measurement unit (IMU) is used to measure the three-axis attitude angle (or angular rate) and acceleration of an object. It has attracted widespread attention for its advantages of low power consumption, small size, low price, high flexibility, and no need for pre-deployment. At the same time, most mobile terminals have built-in sensor devices, making research work on indoor positioning based on mobile terminals more practical. However, IMU is a precision device. Low-precision civilian IMUs will have bias noise and measurement errors when collecting data. When performing attitude calculation through integration, if no external constraints are imposed, the system will quickly generate cumulative errors over time, making it impossible to provide effective and reliable position information.

[0005] Traditional inertial navigation algorithms mainly solve position information through double integration of sensor data, but the existence of errors in the data causes serious trajectory drift during positioning. To solve this problem, many researchers have proposed inertial navigation algorithms based on prior knowledge, which to a certain extent solve the problem of cumulative errors, but the system cannot be promoted due to the existence of constraints. With the development of artificial intelligence technology, data-driven neural network models provide research ideas for breaking through this limitation. RIDI integrates machine learning technology into the field of inertial navigation for the first time, aiming to correct sensor errors through a cascaded velocity regression model. In addition, neural network models such as IONeT, RoNIN, IDOL, and TLIO have improved positioning accuracy and reduced constraints on subjects to varying degrees.

[0006] The existing neural network models do not fully extract the global dependencies between tokens of IMU data when performing IMU feature extraction. Even the RoNIN model with the best performance currently only uses local features extracted by the residual neural network to complete trajectory prediction. Summary of the invention

[0007] In view of the problem that the current neural network model is insufficient in extracting IMU features, the present invention provides an inertial navigation method based on deep learning, which uses an advanced neural network model to fully extract the IMU_6-axis data features to improve positioning accuracy. In the present invention, the Transformer model is used to learn the correlation between long-distance tokens in the time dimension of IMU data. By fusing spatial features with temporal features, the high-level semantic features of IMU data are effectively captured, further improving the accuracy of inertial navigation tasks.

[0008] In order to solve the above technical problems, the present invention proposes an inertial navigation method based on a multi-head attention mechanism, which mainly includes the following steps:

[0009] Step 1: Use a smart device with an inertial measurement unit (IMU) and a visual position marking device to collect IMU data;

[0010] Step 2: Preprocess the inertial measurement unit (IMU) data, including coordinate system conversion, data normalization, window division, and label assignment, so as to prepare data for the deep learning model; the deep learning model includes a residual-based neural network model, a Transformer model, and a velocity prediction model;

[0011] Step 3: Use a residual-based neural network model to extract spatial features from the preprocessed inertial measurement unit IMU data to obtain the spatial feature distribution relationship between the axes; the residual-based neural network model includes an inertial measurement unit IMU feature pre-extraction module and a deep residual network module; the inertial measurement unit IMU feature pre-extraction module is composed of a convolution layer, a pooling layer and a batch normalization layer, and the convolution layer is a one-dimensional convolution unit with a convolution kernel of 7, a step size of 2, and a padding number of 3; the deep residual neural network module is composed of three convolution network units based on skip connections that have the same structure but do not share parameters, and the convolution network unit based on skip connections is composed of a convolution layer, batch normalization, an activation function, and a skip connection structure;

[0012] Step 4: Position encode the IMU features of the inertial measurement unit that have completed spatial feature extraction; then use the Transformer model to train the encoded IMU features; and finally obtain the data features after spatiotemporal fusion;

[0013] Step 5: Input the spatiotemporal fused data features obtained in step 4 into the velocity prediction model to perform a two-dimensional velocity vector regression task;

[0014] Step 6: Perform interpolation and integration operations on the two-dimensional velocity vector to obtain the position information of the entire trajectory sequence and realize inertial navigation.

[0015] Furthermore, the inertial navigation method of the present invention, wherein:

[0016] In step 2, the coordinate system conversion adopts a coordinate system conversion method based on quaternion;

[0017] The data normalization is to use formula (1) to normalize the acceleration data after the coordinate system conversion.

[0018]

[0019] In formula (1), acc i It refers to the acceleration data of the i-th frame, s is the time unit in seconds, and m is the displacement unit in meters;

[0020] The window division is to divide the normalized data into windows according to the parameters of window size of 200 and step length of 20, and finally each window is 200 frames of raw data of the inertial measurement unit IMU and the corresponding speed value;

[0021] The label allocation is to calculate the mean of the speed data in each window after the window division to obtain the speed label of each window.

[0022] The specific process of step 4 is as follows:

[0023] 4-1) Using the trigonometric function position encoding strategy to perform relative position encoding on the IMU features of the inertial measurement unit that completes the spatial feature extraction;

[0024] 4-2) The Transformer model with 6 stacked Transformer modules uses dynamic weighting to learn the relationship between tokens to obtain the characteristics of the time dimension; the process is as follows:

[0025] During the Transformer training process, the attention function is calculated as shown in formula (2):

[0026]

[0027] In formula (2), Attention(Q, K, V) is the result of executing the attention function, Q is the query vector, K is the key vector, V is the value vector, d is the dimension of the vector, and softmax is the normalized exponential function;

[0028] The multi-head attention mechanism is introduced to divide the inertial measurement unit (IMU) data into multiple subspaces. The feature extraction process in each subspace is shown in formula (3):

[0029] head i =Attention(QW iQ ,KW i K ,VW i V ) (3)

[0030] In formula (3), head i is the result of the attention function executed in the ith subspace. Q, K, and V are query vectors, key vectors, and value vectors respectively. W i is the transformation matrix of the ith subspace,

[0031] The calculation result of multi-head attention is shown in formula (4).

[0032] MultiHead(Q,K,V)=[head i ,……,head h ] (4)

[0033] In formula (4), MultiHead(Q,K,V) is the calculated value head of each subspace i The result after splicing;

[0034] In order to build a deep model, Transformer introduces residual connection, layer normalization, and feedforward neural network FFN after multi-head attention. The feedforward neural network FFN is a two-layer perceptron consisting of a fully connected layer plus a nonlinear activation function. The operation is shown in formula (5).

[0035] FFN(Z)=ReLU(ZW1+b1)W2+b2 (5)

[0036] In formula (5), ReLU is the activation function, W1, W2 are the feedforward neural network parameters, b1, b2 are the bias parameters;

[0037] The Transformer model is written as shown in equation (6) and equation (7).

[0038] Z=LayerNorm(MultiheadSelfAttention(P)+P) (6)

[0039] T * =LayerNorm(FFN(Z)+Z) (7)

[0040] In equations (6) and (7), P is the feature vector after position encoding; T* is the output vector of the current Transformer. In the stacked Transformer architecture, T* is also the input vector of the next Transformer; MultiheadSelfAttention is the influence of the multi-head attention unit on the vector, LayerNorm is the layer normalization unit, and FFN is the feedforward neural network shown in equation (5);

[0041] 4-3) Based on the spatial features of the inertial measurement unit IMU data, the global dependency on the time dimension is fused based on the time dimension features extracted in step 3, so as to obtain the data features after spatiotemporal fusion.

[0042] In step 5, the speed prediction model is composed of a one-dimensional convolutional layer, an activation function layer, three fully connected layers, and a Dropout layer. The spatiotemporal fused data features obtained in step 4 are input into the speed prediction model to complete the speed prediction task, and finally a two-dimensional speed vector is obtained.

[0043] In step 6, one-dimensional linear interpolation is performed on the two-dimensional velocity vector obtained in step 5, and the velocity information on the entire time axis is integrated once to obtain the displacement, thereby obtaining the position information of the entire motion trajectory.

[0044] Compared with the prior art, the present invention has the following beneficial effects:

[0045] The present invention proposes an inertial navigation method based on deep learning, which improves the limitation of traditional methods that impose strong constraints on subjects. At the same time, deep learning technology can extract valuable features from noisy IMU data to complete positioning tasks. The relationship between IMU data and position can be established without accurately knowing the details of the model parameters. The navigation framework proposed in the present invention supports subjects to complete high-precision positioning tasks under various motion conditions.

[0046] In the present invention, the Transformer model is introduced to learn the relationship between each token in a dynamic weighted manner, so that the model can focus on features that are more beneficial to the task during training, which helps to further integrate the global dependencies in the time dimension based on the spatial features of IMU data, thereby achieving the purpose of improving the positioning accuracy of inertial navigation. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is the number of sensors before and after normalization;

[0048] Figure 2 Schematic diagram of window division;

[0049] Figure 3This is the architecture diagram of the residual-based neural network model;

[0050] Figure 4 The internal structure of the convolutional network unit based on skip connection;

[0051] Figure 5 It is the structure diagram of the speed regression model;

[0052] Figure 6 This is the Transformer module architecture diagram;

[0053] Figure 7 Visualization of trajectory prediction. DETAILED DESCRIPTION

[0054] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but the following embodiments are by no means intended to limit the present invention in any way.

[0055] The present invention proposes an inertial navigation method based on a multi-head attention mechanism, comprising the following steps:

[0056] Step 1: Use a smart device with an inertial measurement unit (IMU) and a visual position marker device to collect IMU data. In the experiment, the smart device is a Galaxy S9 and the visual position marker device is an Asus Zenfone AR with Tango.

[0057] Step 2: Preprocess the inertial measurement unit (IMU) data, including coordinate system conversion, data normalization, window division, and label assignment, so as to prepare data for the deep learning model; the deep learning model includes a residual-based neural network model, a Transformer model, and a velocity prediction model.

[0058] In the present invention, the coordinate system conversion is completed based on a quaternion coordinate system conversion method.

[0059] The acceleration data after the coordinate system conversion is normalized. In order to ensure that the spatial structure information does not change and the data are in the same order of magnitude, the present invention uses formula (1) to perform feature normalization: Figure 1 This is a comparison chart of IMU data before and after normalization.

[0060]

[0061] In formula (1), acc i It refers to the acceleration data of the i-th frame, s is the time unit in seconds, and m is the displacement unit in meters.

[0062] The window division is to divide the normalized data into windows according to the parameters of window size of 200 and step length of 20, and finally each window is 200 frames of raw data of the inertial measurement unit IMU and the corresponding speed value; Figure 2 It shows the data division of three windows.

[0063] The label allocation is to calculate the mean of the speed data in each window after the window division to obtain the speed label of each window.

[0064] Step 3: Use the residual-based neural network model to extract spatial features from the preprocessed inertial measurement unit (IMU) data to obtain the spatial feature distribution relationship between the axes. Figure 3 The figure is the architecture diagram of the residual-based neural network model. The model is divided into two parts: the IMU feature pre-extraction module and the deep residual network module. The feature pre-extraction module is composed of convolutional layers, pooling layers, and batch normalization layers. The convolutional layer is a one-dimensional convolution unit with a convolution kernel of 7, a step size of 2, and a padding number of 3. The deep residual neural network module is composed of three modules with the same structure but no shared parameters, such as Figure 4 The convolutional network unit based on skip connection shown is composed of a convolutional layer, batch normalization, activation function, and skip connection structure. The purpose of the IMU feature pre-extraction module is to complete multi-sensor data fusion and expand feature dimensions. Specifically, it maps the normalized sensor data from 6 dimensions to a higher 256-dimensional space. Finally, the sensor data at the same time is effectively fused together and has a stronger feature representation capability. The deep residual network module increases the depth of the network model through a skip connection structure. The present invention extracts the spatial feature distribution between the IMU_6 axes through a residual-based neural network model.

[0065] Step 4: Based on step 3, the time series model is used to learn the global dependency of the IMU data in the time dimension. Specifically, the trigonometric position encoding strategy is used to encode the relative position of the IMU features that complete the spatial feature extraction. Next, by stacking 6 Figure 6The Transformer model of the Transformer module shown uses a dynamic weighting method to learn the relationship between each token to obtain the characteristics of the time dimension. The attention function calculation of the neural network in the Transformer training process is shown in formula (2). In order to extract more fine-grained features, the present invention introduces a multi-head attention mechanism to divide the IMU data into multiple subspaces. The feature extraction process in each subspace is shown in formula (3), and the multi-head attention calculation result is shown in formula (4). In order to build a deep model, the Transformer introduces residual connection, layer normalization, and feedforward neural network FFN after multi-head attention. Among them, FFN is essentially a two-layer multi-layer perceptron, that is, it is composed of a fully connected layer plus a nonlinear activation function. Its purpose is to improve the model feature extraction capability. The specific operation is shown in formula (5). The entire Transformer model can be written as shown in formulas (6) and (7). Based on the spatial features of the inertial measurement unit IMU data, the global dependency on the time dimension is fused based on the time dimension features extracted according to step 3, that is, the data features after spatiotemporal fusion are obtained.

[0066] In the present invention, the relationship between tokens can be learned by dynamic weighting, so that the model can focus on features that are more beneficial to the task during training, which helps to further integrate the global dependencies in the time dimension based on the spatial features of IMU data.

[0067]

[0068] In formula (2), Attention(q t ,K,V) is the result of executing the attention function on the token at time t and the tokens at other times, K is the key vector, V is the value vector, and d is the dimension of the vector.

[0069] head i =Attention(QW i Q ,KW i K ,VW i V ) (3)

[0070] In formula (3), head i is the result of the attention function executed in the ith subspace. Q, K, and V refer to the query vector, key vector, and value vector, respectively. W i is the transformation matrix of the i-th subspace.

[0071] MultiHead(Q,K,V)=[head i ,……,headh ] (4)

[0072] In formula (4), MultiHead(Q,K,V) is the calculated value head of each subspace i The result after splicing.

[0073] FFN(Z)=ReLU(ZW1+b1)W2+b2 (5)

[0074] In formula (5), ReLU is the activation function, W1, W2 are the feedforward neural network parameters, and b1, b2 are the bias parameters.

[0075] Z=LayerNorm(MultiheadSelfAttention(P)+P) (6)

[0076] T * =LayerNorm(FFN(Z)+Z) (7)

[0077] In equations (6) and (7), P is the feature vector after position encoding; T* is the output vector of the current Transformer. In the stacked Transformer architecture, T* is also the input vector of the next Transformer; MultiheadSelfAttention is the influence of the multi-head attention unit on the vector, LayerNorm is the layer normalization unit, and FFN is the feedforward neural network shown in equation (5).

[0078] Step 5: Input the spatiotemporal fused data features obtained in step 4 into the speed prediction model to perform a two-dimensional speed vector regression task; the speed prediction model is composed of a one-dimensional convolutional layer, an activation function layer, three fully connected layers, and a Dropout layer. The spatiotemporal fused data features E∈R obtained in step 4 128×256×13 First, after passing through a 1×1 convolution unit Layer1, the depth is adjusted from 256 to 128, and the dimension of the feature vector is temp1∈R 128×128×13 ; Then after a 1024-bit fully connected layer Layer2, the feature vector is converted from temp1 to temp2∈R 128×1024 In order to improve the performance of the model, a nonlinear layer and a Dropout layer are set, where the Dropout discard rate is 0.5. The main purpose is to solve the problems of long training time and model overfitting by randomly discarding some neural network units in each batch. Finally, the features are fully connected to the two-dimensional speed vector through Layer3, and the speed regression model finally outputs output∈R 128×2 , and finally obtain a two-dimensional velocity vector.

[0079] Step 6: Interpolate and integrate the two-dimensional velocity vector to obtain the position information of the entire trajectory sequence and realize inertial navigation. Specifically, perform one-dimensional linear interpolation on the two-dimensional velocity vector obtained in step 5, integrate the velocity information on the entire time axis once to obtain the displacement, and then obtain the position information of the entire motion trajectory.

[0080] In order to verify the positioning accuracy of the final navigation trajectory of the inertial navigation method of the present invention, the inertial navigation method of the present invention was tested on the RoNIN data set. Figure 7 The error of the prediction result of the present invention for a trajectory with a length of 331 meters is 1.49 meters.

[0081] Although the present invention has been described above in conjunction with the accompanying drawings, the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can make many modifications without departing from the purpose of the present invention, all of which are within the protection of the present invention.

Claims

1. An inertial navigation method based on a multi-head attention mechanism, characterized in that: The following steps are involved: Step 1: Use a smart device with an inertial measurement unit (IMU) and a visual position marking device to collect IMU data; Step 2: Preprocess the inertial measurement unit (IMU) data, including coordinate system conversion, data normalization, window division, and label assignment, so as to prepare data for the deep learning model; the deep learning model includes a residual-based neural network model, a Transformer model, and a velocity prediction model; Step 3: Use a residual-based neural network model to extract spatial features from the preprocessed inertial measurement unit IMU data to obtain the spatial feature distribution relationship between the axes; the residual-based neural network model includes an inertial measurement unit IMU feature pre-extraction module and a deep residual network module; the inertial measurement unit IMU feature pre-extraction module is composed of a convolution layer, a pooling layer and a batch normalization layer, and the convolution layer is a one-dimensional convolution unit with a convolution kernel of 7, a step size of 2, and a padding number of 3; the deep residual neural network module is composed of three convolution network units based on skip connections that have the same structure but do not share parameters, and the convolution network unit based on skip connections is composed of a convolution layer, batch normalization, an activation function, and a skip connection structure; Step 4: Position encode the IMU features of the inertial measurement unit that have completed spatial feature extraction; then use the Transformer model to train the encoded IMU features; and finally obtain the data features after spatiotemporal fusion; Step 5: Input the spatiotemporal fused data features obtained in step 4 into the velocity prediction model to perform a two-dimensional velocity vector regression task; Step 6: Perform interpolation and integration operations on the two-dimensional velocity vector to obtain the position information of the entire trajectory sequence and realize inertial navigation.

2. The inertial navigation method according to claim 1, characterized in that: In step 2, The coordinate system conversion adopts a coordinate system conversion method based on quaternion; The data normalization is to use formula (1) to normalize the acceleration data after the coordinate system conversion. In formula (1), acc i It refers to the acceleration data of the i-th frame, s is the time unit in seconds, and m is the displacement unit in meters; The window division is to divide the normalized data into windows according to the parameters of window size of 200 and step length of 20, and finally each window is 200 frames of raw data of the inertial measurement unit IMU and the corresponding speed value; The label allocation is to calculate the mean of the speed data in each window after the window division to obtain the speed label of each window.

3. The inertial navigation method according to claim 2, characterized in that: The specific process of step 4 is as follows: 4-1) Using the trigonometric function position encoding strategy to perform relative position encoding on the IMU features of the inertial measurement unit that completes the spatial feature extraction; 4-2) The Transformer model with 6 stacked Transformer modules uses dynamic weighting to learn the relationship between tokens to obtain the characteristics of the time dimension; the process is as follows: During the Transformer training process, the attention function is calculated as shown in formula (2): In formula (2), Attention(Q, K, V) is the result of executing the attention function, Q is the query vector, K is the key vector, V is the value vector, d is the dimension of the vector, and softmax is the normalized exponential function; The multi-head attention mechanism is introduced to divide the inertial measurement unit (IMU) data into multiple subspaces. The feature extraction process in each subspace is shown in formula (3): head i =Attention(QW i Q ,KW i K ,VW i V ) (3) In formula (3), head i is the result of the attention function executed in the ith subspace. Q, K, and V are query vectors, key vectors, and value vectors respectively. W i is the transformation matrix of the ith subspace, The calculation result of multi-head attention is shown in formula (4). MultiHead(Q,K,V)=[head i ,……,head h ] (4) In formula (4), MultiHead(Q,K,V) is the calculated value head of each subspace i The result after splicing; In order to build a deep model, Transformer introduces residual connection, layer normalization, and feedforward neural network FFN after multi-head attention. The feedforward neural network FFN is a two-layer perceptron consisting of a fully connected layer plus a nonlinear activation function. The operation is shown in formula (5). FFN(Z)=ReLU(ZW1+b1)W2+b2 (5) In formula (5), ReLU is the activation function, W1, W2 are the feedforward neural network parameters, b1, b2 are the bias parameters; The Transformer model is written as shown in equation (6) and equation (7). Z=LayerNorm(MultiheadSelfAttention(P)+P) (6) T * =LayerNorm(FFN(Z)+Z) (7) In equations (6) and (7), P is the feature vector after position encoding; T* is the output vector of the current Transformer. In the stacked Transformer architecture, T* is also the input vector of the next Transformer; MultiheadSelfAttention is the influence of the multi-head attention unit on the vector, LayerNorm is the layer normalization unit, and FFN is the feedforward neural network shown in equation (5); 4-3) Based on the spatial features of the inertial measurement unit IMU data, the global dependency on the time dimension is fused based on the time dimension features extracted in step 3, so as to obtain the data features after spatiotemporal fusion.

4. The inertial navigation method according to claim 1, characterized in that: In step 5, the speed prediction model is composed of a one-dimensional convolutional layer, an activation function layer, three fully connected layers, and a Dropout layer. The spatiotemporal fused data features obtained in step 4 are input into the speed prediction model to complete the speed prediction task, and finally a two-dimensional speed vector is obtained.

5. The inertial navigation method according to claim 1, characterized in that: In step 6, one-dimensional linear interpolation is performed on the two-dimensional velocity vector obtained in step 5, and the velocity information on the entire time axis is integrated once to obtain the displacement, thereby obtaining the position information of the entire motion trajectory.