Next Article in Journal
Development of a Novel Convolution to Interactive Capture and Recalibration Enhancement Module for Underwater Fish Detection in Sensor Networks
Previous Article in Journal
The Influence of Cold-Working Deformation on the Measurement Accuracy and Stability of Type-K Sheathed Thermocouple Sensors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Physics-Informed Dual-Branch LSTM Network for UAV Position and Attitude Estimation

by
Weizheng Liang
,
Siqi Meng
,
Ruicheng Zhang
* and
Qianda Luo
College of Electrical Engineering, North China University of Science and Technology, Tangshan 063210, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(13), 4287; https://doi.org/10.3390/s26134287
Submission received: 2 May 2026 / Revised: 2 July 2026 / Accepted: 3 July 2026 / Published: 6 July 2026
(This article belongs to the Special Issue Advances in UAV Sensing and Data Analytics for Precision Agriculture)

Abstract

To mitigate error accumulation and long-term drift in unmanned aerial vehicle (UAV) position and attitude estimation using purely inertial measurement unit (IMU) data, this paper presents a dual-branch physics-informed long short-term memory (DPI-LSTM) network incorporating shared temporal encoding, a dual-branch structured regression framework, and physical consistency constraints. The model employs a long short-term memory (LSTM)-based temporal encoder to extract temporal features from IMU time-window sequences. Established inertial kinematic relationships are embedded into the dual-branch LSTM framework as loss constraints, providing physics-based regularisation to guide the network during training. By modelling translational and rotational states separately through the position and attitude branches, the model improves stability and physical interpretability while retaining the advantages of task decoupling. Systematic experiments were conducted on the University of Zurich First-Person View (UZH-FPV) Drone Racing dataset, and comparisons were made with traditional inertial navigation methods and representative deep learning-based inertial odometry approaches. The experimental results indicate that the proposed model demonstrates a measurable reduction in positional root mean square error (RMSE) on the evaluated test sequences, decreasing the RMSE to 0.0654 m, which represents a reduction of more than 20% when compared with inertial odometry network (IONet), convolutional neural network–long short-term memory (CNN–LSTM), and robust neural inertial navigation (RoNIN). Further ablation studies and cross-sequence evaluation indicate that the physical consistency constraints and the dual-branch architecture contribute to improved position estimation stability under the evaluated benchmark sequences. The proposed kinematically constrained framework provides a viable IMU-only position and attitude estimation module, laying the groundwork for future UAV digital twin and precision-agriculture applications where continuous and physically consistent position and attitude information is required.

1. Introduction

1.1. Background

With the continuous advancement of aviation technology and its deep integration with information technology (IT) [1,2,3,4], unmanned aerial vehicles (UAVs) have developed rapidly in recent years. Owing to their low cost and flexible deployment, UAVs have been widely applied worldwide, particularly in fields such as surveying, inspection and patrol, disaster search and rescue, and logistics [5,6,7]. As their application scope continues to expand, UAVs are increasingly influencing modern production and daily life. In agricultural scenarios, UAVs are increasingly used for growth-status assessment, crop monitoring, field mapping, and precision spraying [8,9,10], where stable low-altitude flight and accurate position and attitude estimation are essential for ensuring operational quality and safety.
The concept of the digital twin (DT) can be traced back to the “living model” developed by the National Aeronautics and Space Administration (NASA) during the Apollo missions [11,12], in which high-fidelity models were established on the ground to monitor, update, and predict the state and behaviour of spacecraft in orbit. The modern concept of the digital twin is generally attributed to Michael Grieves. A digital twin refers to a digital representation of a physical entity constructed in a virtual space, one which is continuously updated through real-time data to reflect the entity’s current state and support the prediction of its future evolution [13,14,15]. Structurally, a digital twin typically consists of three components: the physical entity, the digital model, and the data link that connects the two and enables information exchange.
An unmanned aerial vehicle digital twin (UAVDT) is not merely a framework for the visualisation and replay of historical flight data [16]; rather, it places greater emphasis on enabling real-time monitoring, short-term prediction, and risk assessment of the UAV’s position, attitude, and trajectory during flight, particularly under uncertainties such as complex manoeuvres and environmental disturbances. As a core component of a UAVDT, the digital model requires high accuracy and robustness to faithfully represent actual flight conditions and ensure engineering reliability. Precision agriculture refers to an agricultural management approach that uses sensing [17], positioning, data analysis, and automated equipment to support more accurate, efficient, and site-specific field operations. In this context, UAVs are widely used for low-altitude tasks such as crop inspection, field mapping, and precision spraying, where reliable position and attitude estimation is essential for operation monitoring, mission replay, trajectory assessment, and flight safety. Therefore, the development of stable position and attitude estimation algorithms provides a theoretical foundation for potential online monitoring and UAV digital twin applications in future agricultural scenarios.

1.2. Related Work

Currently, UAV position and attitude estimation and localisation methods can be broadly divided into two categories: filtering-based methods [18,19,20,21] and deep learning-based methods [21,22,23,24,25]. Among filtering-based methods, the Kalman filter (KF) and its variants are the most representative. Under reasonable assumptions regarding the system state-space model and the statistical characteristics of noise, these methods can provide minimum mean-square-error state estimation for variables such as position and attitude by combining system dynamics with sensor observations.
In inertial measurement unit (IMU)-based Kalman filtering methods, position and attitude estimation relies on the continuous integration of inertial measurements [21]. In the presence of sensor noise and bias, integration errors accumulate over time, leading to significant drift, particularly in position estimation under IMU-only conditions [18]. To improve robustness under disturbances, several studies have refined filtering strategies. For example, Candan et al. proposed an attitude estimation method based on robust Kalman filtering (RKF) [19], which suppresses the influence of external acceleration by adaptively adjusting the measurement noise covariance. However, such approaches are generally more effective in stabilising attitude estimation than in maintaining long-term position accuracy.
To mitigate the drift caused by pure inertial integration, many studies have fused IMU measurements with external sensors. Among these, global navigation satellite system (GNSS)/inertial measurement unit (IMU) integration is one of the most widely adopted solutions. The IMU provides high-frequency motion information, while GNSS supplies position observations with high absolute accuracy. Fernandes et al. proposed a hybrid positioning method based on lie group theory [20], which jointly estimates position, velocity, attitude, and IMU bias within an extended Kalman filter framework and fuses GNSS observations with IMU measurements through a loosely coupled structure, thereby significantly improving positioning accuracy and long-term navigation stability. However, such methods rely on external observations and are therefore not directly applicable to IMU-only position and attitude estimation scenarios.
In recent years, data-driven methods based on deep learning have emerged as an important research direction for position and attitude estimation and inertial localisation because of their strong nonlinear modelling capability [22]. Zeinali et al. proposed IMUNet [23], a convolutional neural network (CNN)-based localisation architecture incorporating MobileResNet modules that combine deep convolutions with residual connections and are designed to improve localisation accuracy while reducing computational complexity. Chen et al. proposed the inertial odometry network (IONet) [24], which formulates inertial localisation as a sequence learning problem and predicts displacement and heading changes directly from IMU time series using a two-layer bidirectional long short-term memory (LSTM) network. Similarly, robust neural inertial navigation (RoNIN) [25] utilises deep neural networks to learn motion representations from IMU data and directly regress motion states, thereby reducing error accumulation caused by noise and bias. RoNIN has been validated on datasets containing multiple devices and motion modes, demonstrating strong robustness and cross-scenario generalisation capability. Wu et al. proposed a CNN–LSTM-assisted GNSS tracking method [26], in which CNNs extract motion features from IMU data while LSTMs model temporal dependencies to estimate IMU bias and scale-factor errors, thereby suppressing position divergence during GNSS signal outages. In addition, hybrid methods combining neural networks with filtering frameworks have also been explored. For example, Liu et al. proposed a tight learned inertial odometry (TLIO) method [27], which predicts short-term three-dimensional displacements and their uncertainties from IMU sequences using a neural network and incorporates them as observations into an extended Kalman filter, thereby improving the stability of inertial odometry under IMU-only conditions.
More recently, physics-informed extensions of deep learning methods have been introduced to improve physical consistency in inertial localisation. Physics-informed neural networks (PINNs) incorporate system dynamics equations into the training process by embedding physical constraints into the loss function. For example, Sahoo et al. proposed the mobile robot pure inertial navigation-physics-informed neural networks (MoRPI-PINN) framework [28], which integrates two-dimensional inertial navigation equations into the loss function to achieve physically consistent mobile robot localisation using only IMU measurements.
Multi-task learning provides an effective strategy for sharing representations among related tasks [29]. Such architectures have also been successfully applied to pose-estimation problems in other autonomous systems. For instance, Park and D’Amico proposed the Spacecraft Pose Network v2 (SPNv2) for spacecraft pose estimation [30], where a shared feature encoder is coupled with multiple prediction heads for distinct objectives, including direct pose regression, keypoint prediction, and foreground segmentation. Within its pose-regression head, rotation and translation are treated as distinct yet coupled prediction targets—a design that provides a valuable reference for separately modelling rotational and translational components in UAV position and attitude estimation networks.
In summary, existing filtering-based inertial navigation methods are susceptible to noise, sensor bias, and drift accumulation under long-duration, purely inertial conditions, making it difficult to maintain stable position and attitude estimates. While existing deep learning-based inertial odometry methods predominantly focus on capturing temporal mapping relationships from raw IMU sequences, they seldom explicitly incorporate classical kinematic principles into their optimisation objectives. To address this limitation, this study embeds these established relationships as structured regularisation to guide the network’s training process. Furthermore, in complex low-altitude flight scenarios, GNSS sensors often struggle to balance positioning accuracy with signal availability, while the continuous operation of visual odometry imposes considerable computational and power consumption burdens. In precision agriculture, where UAVs often operate at low altitude for crop inspection and precision spraying, these limitations become even more critical, further motivating the need for position and attitude estimation methods with strong physical consistency constraints and stable estimation performance under sequence-level distribution shifts. At the same time, UAV digital twin systems require a continuous supply of stable, accurate, and physically consistent position and attitude information to support online monitoring, state assessment, and short-term trajectory prediction. Consequently, there is a need for a position and attitude estimation method that can simultaneously address temporal feature representation, physical consistency, and rotation–translation coupling.

1.3. Contributions

To address the aforementioned issues, this paper proposes a dual-branch physics-informed long short-term memory (DPI-LSTM) model for UAV position and attitude estimation using IMU data. The main contributions are as follows:
  • In addition to the data-fitting loss, this study incorporates constraints derived from established inertial kinematic relationships, including attitude propagation, coordinate transformation, and velocity–position integration consistency. By embedding these constraints into the training objective, the network is guided to learn position-and-attitude representations that align with explicit kinematic laws. This introduces physical interpretability into the otherwise black-box deep learning model by linking its position and attitude predictions to explicit inertial kinematic relationships, while also helping suppress drift and error accumulation.
  • Motivated by multi-task position and attitude estimation architectures that utilise shared feature representations alongside task-specific prediction heads for complementary state components such as rotation and translation, this work proposes a modelling framework comprising shared temporal encoding, dual-branch structured regression, and physical consistency constraints. This framework employs a shared LSTM encoder to generate a unified representation of windowed IMU sequences, from which position and attitude are regressed separately through two distinct output branches. The physical consistency constraints, derived from classical inertial kinematics, are enforced to maintain coherence between the rotational and translational state estimates, thereby enhancing tracking stability while preserving the benefits of task decoupling.
  • A systematic experimental framework was constructed based on the University of Zurich First-Person View (UZH-FPV) dataset, and the proposed model was comprehensively validated through comparisons with traditional inertial navigation approaches and learning-based inertial odometry approaches, as well as through ablation studies and cross-sequence evaluation. The experimental results demonstrate that DPI-LSTM exhibits consistent advantages in terms of position accuracy, estimation stability, and cross-sequence performance, thereby confirming the effectiveness of structured physical constraint modelling.
The remainder of the paper is organised as follows. Section 2 introduces the fundamental mathematical models involved in this work, providing a theoretical foundation for the subsequent sections. Section 3 presents temporal feature modelling based on LSTM. Section 4 formulates the physical consistency constraints adopted in this study. Section 5 describes the proposed dual-branch physics-informed Long Short-Term Memory (DPI-LSTM) model for UAV position and attitude estimation. Section 6 reports the experimental results and analysis, including comparative experiments, ablation studies, and cross-sequence evaluation. Finally, Section 7 summarises the main findings of this work and discusses future research directions.

2. Mathematical Model of UAVs

2.1. Definition of Coordinate Systems and Attitude Representation

In robotics and rigid-body modelling, the motion state of a body relative to a reference frame is commonly described using its translational position and rotational attitude. Following standard treatments in robot modelling and control, this study represents the UAV position in the world frame and its attitude using a unit quaternion [31]. A quadrotor UAV can be approximated as a homogeneous rigid body with an X-shaped configuration [18,32]. The origin of the body coordinate system B is defined at the IMU mounting position, and its axes are aligned with those of the IMU. The world coordinate system W follows a right-handed convention, in which the z W -axis points vertically upward and gravity acts along the negative z W -axis, as shown in Figure 1.
This study adopts a local, gravity-aligned world frame tailored for short-duration and low-altitude UAV position and attitude estimation. Within this local coordinate configuration, the Earth is assumed to be flat and non-rotating; thus, the effects of the Earth’s curvature, rotation, transport rate, and Coriolis acceleration are neglected, while gravity is treated as a constant vector within the world frame. Furthermore, the proposed learning-based estimator bypasses the complete initial alignment procedure typical of classical inertial navigation systems. Instead, the initial reference state is obtained directly from the dataset-provided trajectory, and explicit online gyroscope drift compensation is omitted prior to navigation.
The position and velocity of the UAV in the world frame W are denoted as follows:
p W = x W , y W , z W ,   v W = p ˙ W ,
Because Euler angles may suffer from gimbal lock under highly manoeuvrable conditions, leading to discontinuities in attitude representation, unit quaternions are adopted to represent attitude:
q W B = q w , q x , q y , q z T ,   q W B = 1 ,
the corresponding rotation matrix R W B q S O 3 satisfies the following coordinate transformation:
r W = R W B q r B ,
A common form of R W B q is given by the following:
R W B q = 1 2 q y 2 + q z 2 2 q x q y q w q z 2 q x q y + q w q y 2 q x q y + q w q z 1 2 q x 2 + q z 2 2 q y q z q w q x 2 q x q y q w q y 2 q y q z + q w q x 1 2 q x 2 + q y 2 ,
Furthermore, as the quaternions q and q represent the same rotation, to ensure the continuity and smoothness of the attitude time series, sign continuity is adopted:
if   q k T q k 1 < 0 ,   then   q k = q k ,

2.2. IMU Measurement Model

To establish the physical link between inertial measurements and UAV motion states, the IMU measurements in the body frame B are divided into two parts: gyroscope angular velocity and accelerometer specific force, denoted by ω m B and f m B , respectively. Considering sensor bias and measurement noise, the IMU measurement model can be written as follows:
ω m B = ω B t + b g t + n g t ,
f m B = f B t + b a t + n a t ,
where ω m B denotes the gyroscope measurement, f B denotes the accelerometer measurement of specific force, b g and b a are the gyroscope and accelerometer biases, respectively, and n g and n a are zero-mean white noise terms. The bias terms are often approximated by random-walk processes:
b ˙ g   =   n b g ,   b ˙ a = n b a ,
It should be noted that an accelerometer does not directly measure the linear acceleration in the world frame; instead, it measures the specific force relative to gravity. This relationship can be expressed as follows:
f B t = R B W T q a W t g W ,
Accordingly, the world-frame acceleration can be obtained as follows:
a W t = R W B q f m B t b a t + g W ,
The above IMU measurement model provides the kinematic basis for constructing the physical consistency constraints used in this study. On the one hand, gyroscope angular velocity drives the temporal evolution of the quaternion. On the other hand, the measured specific force, after gravity compensation through attitude-based coordinate transformation, yields the world-frame acceleration a W , which further participates in the integral consistency constraints for velocity and position. These constraints do not directly eliminate raw sensor noise or biases; rather, they enforce kinematic consistency across attitude propagation, coordinate transformation, and velocity–position integration during training, thereby mitigating the cumulative drift errors inherently introduced by inertial integration.

2.3. UAV Kinematic Model

Based on the IMU measurement model, the continuous-time kinematic equations describing the evolution of the UAV state are given as follows [18,33]. The state consists of position p W t , velocity v W t , and attitude quaternion q W B t . For the translational component, the following holds:
p ˙ W t = v W t ,
v ˙ W t = a W t ,
The rotational motion is driven by angular velocity, and the quaternion differential equation can be written as follows:
q ˙ W B t = 1 2 Ω ω B t q W B t ,
where ω ( t ) is the quaternion multiplication matrix constructed from angular velocity:
Ω ω = 0 ω x ω y ω z ω x 0 ω z ω y ω y ω z 0 ω x ω z ω y ω x 0 ,
considering discrete IMU sampling with sampling interval Δ t , the discrete-time index is denoted by k . From the estimated attitude, the rotation matrix R W B ( q k ) is obtained. By transforming the body-frame specific force into the world frame and adding gravity, the world-frame acceleration is written as follows:
a k W t = R W B q k f m , k B b a , k + g W ,
Applying first-order integration yields the velocity recursion:
v k + 1 W = v k W + a k W Δ t ,
And the position update equation becomes the following:
p k + 1 W = p k W + v k W Δ t + 1 2 a k W Δ t ,
In discrete time, the quaternion is updated using a first-order approximation under the small-angle assumption, followed by normalisation to preserve its unit norm. Let
ω k B = ω m , k B b g , k ,
Then we obtain the following:
δ q k 1 1 2 ω K B Δ t , q k + 1 = n o r m q k δ q k ,
where n o r m · denotes the quaternion normalisation operation.
The small-angle assumption applies exclusively to the local rotational increments between consecutive IMU samples and therefore imposes no restriction on the large-angle global attitude or dynamic manoeuvres of the UAV. Based on the above discrete-time inertial kinematic relationships, the IMU-driven state-propagation dependency can be described as follows: the gyroscope angular velocity drives attitude propagation; the updated attitude determines the rotation matrix; the rotation matrix transforms the body-frame specific force into the world frame to obtain the world-frame acceleration; and finally, this acceleration is integrated to update the velocity and position. The mathematical formulations corresponding to this dependency have already been given in Equations (15)–(19).
Leveraging these classical discrete-time inertial kinematic relationships, the devised loss functions incorporate consistency for attitude propagation, acceleration coordinate transformation, and velocity–position integration. These well-established physical principles are integrated into the end-to-end learning framework as differentiable regularisation.

3. Time-Series Feature Modelling Based on Long Short-Term Memory Networks

3.1. Long Short-Term Memory Networks

Long short-term memory (LSTM) networks are a class of recurrent neural network (RNN) architectures for sequence modelling [34,35]. By introducing gating mechanisms into the recurrent structure, LSTMs enable the selective retention and updating of information, allowing them to capture both short-term dynamics and long-term dependencies while alleviating the vanishing-gradient problem encountered by traditional RNNs during long-sequence training.
An LSTM consists of a forget gate, an input gate, and an output gate, which jointly participate in the update of the memory cell and enable the network to selectively preserve and update historical information over time. Let the input at time t be x t , the hidden state be h t , and the cell state be c t . Here, σ · denotes the sigmoid activation function, tanh · denotes the hyperbolic tangent function. The standard LSTM update equations are given as follows:
f t = σ W f h t 1 , x t + b f ,
i t = σ W i h t 1 , x t + b i ,
c ˜ t = tanh W c h t 1 , x t + b c ,
c t = f t c t 1 + i t c ˜ t ,
o t = σ W o h t 1 , x t + b o ,
h t = o t tanh c t ,
where the forget gate f t controls the extent to which the historical memory c t 1 is retained, the input gate i t controls the amount of new information written at the current time step, c t denotes the candidate memory generated from the current input and the previous hidden state, and the output gate o t determines which memory components are exposed as the hidden state. This gating mechanism enables the network to continuously retain and retrieve key dynamic information even in the presence of noise and disturbances. The basic structure of an LSTM is shown in Figure 2.

3.2. Modelling Temporal Features Using Long Short-Term Memory Networks

To establish temporal dependencies within IMU sequences, this paper employs an LSTM-based temporal encoder to model the dynamic information contained within each input time window. Through its gating mechanism, the encoder captures both short-term dynamics and long-term dependencies, thereby improving the representation of complex manoeuvring patterns [35].
For a time window of length T , the input sequence is defined as follows:
U k : k + T 1 = u k , u k + 1 , , u k + T 1 ,
where u k denotes the IMU observation at time step k . In this modelling framework, the hidden state at the end of the window, h T , is treated as a compact representation of the temporal features within the current time window [24]. This terminal hidden state provides the shared feature basis for subsequent structured regression of the position-and-attitude state. If a direct state mapping is considered, the temporal feature can be projected into the position-and-attitude state space through a fully connected transformation:
s T = W h h T + b ,
where s T denotes the position-and-attitude state at the end of the window. In the present study, this temporal representation is further used as the shared encoded feature for the subsequent dual-branch regression framework.
To ensure that the attitude output represents a valid rotation, the predicted quaternion is normalised as follows:
q ^ W B , T t = q ^ W B , T q ^ W B , T ,
After this normalisation, the predicted quaternion satisfies the unit-norm constraint and therefore corresponds to a valid three-dimensional rotation. This normalisation helps avoid invalid attitude outputs caused by numerical deviations. The above temporal feature extraction framework provides a unified representation of flight manoeuvres and serves as the basis for the subsequent dual-branch structured regression model.

4. Physical Consistency Constraints Based on Physics-Informed Learning

4.1. Physics-Informed Neural Networks

Physics-informed neural networks (PINNs) [36] are a class of learning frameworks that explicitly incorporate known physical laws into the training process. Their core idea is to embed physical prior knowledge—such as governing equations, conservation laws, and boundary or initial conditions—into the loss function or network structure in the form of constraints, so that the network output satisfies both data consistency and physical consistency during training and inference [37]. Generally, the training objective of PINNs can be written as a weighted combination of a data-fitting term, a physical residual term, and a boundary-condition term:
= d a t a + λ r r e s + λ b c b c ,
where d a t a measures the discrepancy between the network output and the observed data, r e s denotes the residual loss obtained by substituting the network prediction into the physical governing equations, and b c denotes the boundary-condition loss. PINNs convert physical equations or kinematic constraints into trainable supervisory signals in the optimisation objective, thereby restricting the learned solution to the physically feasible domain and improving interpretability. In addition, physical consistency constraints can suppress non-physical fluctuations and the accumulation of long-term errors, thereby reducing drift in long-term prediction tasks. As physical laws are, to some extent, independent of specific data distributions [38], physics-informed learning methods often provide more stable inductive biases and may improve stability under data-distribution shifts. A schematic diagram of a general PINN framework is shown in Figure 3.

4.2. Physics-Informed Constraint Modelling

To improve model stability under complex manoeuvres and external disturbances, this study draws on the core idea of physics-informed learning and introduces physics-informed consistency constraints during training [28]. By embedding established inertial kinematic relationships into the optimisation objective, the network is encouraged to satisfy fundamental motion constraints while fitting the labelled data.
To this end, several types of physical consistency constraints are incorporated into the loss function, including quaternion consistency, acceleration coordinate transformation consistency, velocity integration consistency, position integration consistency, and vector transformation consistency. These constraints ensure that the model outputs remain physically plausible and reduce the risk of overfitting to the label distribution of specific scenarios. The specific constraint terms are defined as follows:
Quaternion attitude consistency:
L q u a t k = q W B , k + 1 q W B , k δ q k q W B , k δ q k 2 2 ,
Acceleration coordinate transformation consistency:
L a c c k = R W B q W B , k · f m , k B b a , k + g W a k W 2 2 ,
Velocity integration consistency:
L v e l k = v k + 1 W v k W + a k W Δ t 2 2 ,
Position integration consistency:
L p o s k = p k + 1 W p k W + v k W Δ t + 1 2 a k W Δ t 2 2 2 ,
Vector transformation consistency:
L v e c k = R W B q W B , k · v k B v k W 2 2 ,
The above residual terms are selected according to the discrete inertial kinematic chain used in this study. The quaternion consistency term corresponds to angular-velocity-driven attitude propagation, the acceleration transformation term links body-frame specific force to world-frame acceleration through the estimated attitude, and the velocity and position integration terms regularise the translational recursion. The vector transformation term further constrains the geometric consistency between attitude and kinematic quantities. These constraints are derived from the state-propagation relationships formulated in Section 2. The main functions of the above physical consistency constraints are as follows:
  • The quaternion consistency constraint is used to regularise the angular-velocity-driven attitude recursion and suppress non-physical jumps.
  • The kinematic integration consistency constraints, including velocity and position integration, are used to enforce the recursive relationships among acceleration, velocity, and position, thereby reducing cumulative error.
  • The transformation consistency constraint ensures consistency between the body-frame specific force and the world-frame acceleration through attitude-based rotation and gravity compensation.
  • The vector transformation consistency constraint is used to regularise the geometric relationship between attitude and kinematic quantities.
Accordingly, the overall training objective is formulated as the weighted sum of the data supervision term and the physical consistency:
L t o t a l = L d a t a + λ a c c L a c c + λ v e l L v e l + λ p o s L p o s + λ q u a t L q u a t + λ v e c L v e c ,
where λ a c c , λ v e l , λ p o s , λ q u a t and λ v e c are the weighting coefficients of the corresponding physical terms. By embedding these physical consistency constraints into the learning process [37], the proposed framework explicitly incorporates kinematic priors into the end-to-end training objective. Consequently, the network is guided toward physically consistent predictions, effectively mitigating integration-induced drift and enhancing estimation stability.
The weighting coefficients of the physical consistency are fixed during training and selected based on validation-set performance and numerical stability. In this study, the data-fitting loss is kept as the dominant supervision term, while the physical consistency losses are used as auxiliary regularisation. This setting is adopted because different physical residuals have different units, numerical scales, and sensitivities to IMU noise, bias, and integration errors. Acceleration- and integration-related residuals can be strongly affected by inertial measurement noise and numerical differentiation. Relatively small weights are assigned to these terms to prevent them from dominating the optimisation process, while still encouraging the predicted motion states to satisfy the established inertial kinematic relationships.
The proposed physical consistency constraints are derived from classical inertial kinematic relationships, serving as a regularisation mechanism during supervised optimization. In practice, deviations from these mathematical relationships inevitably arise from both network prediction errors and inherent IMU imperfections, such as measurement noise, bias, scale-factor errors, or sensor saturation. Crucially, these constraints do not directly eliminate raw sensor errors; instead, they regularise the predicted motion states by enforcing mathematical coherence across the attitude propagation, acceleration transformation, and velocity–position integration chain. This formulation imparts a layer of physical interpretability to the optimization path of the otherwise black-box deep learning model. By grounding position and attitude predictions within explicit kinematic laws, the estimated states adhere to underlying mechanical principles rather than relying solely on an unconstrained data-driven mapping from IMU inputs. Consequently, the network learns to suppress cumulative tracking errors induced by noisy and biased inertial data while preserving the physical coherence of the estimated trajectories.

5. DPI-LSTM: A Dual-Branch Physics-Informed LSTM Model for UAV Position and Attitude Estimation

5.1. Model Architecture

To unify temporal feature modelling and physical consistency constraints in position and attitude estimation, this paper proposes a dual-branch physics-informed architecture based on shared temporal encoding and physical-link coupling. The architecture first extracts shared temporal features of flight dynamics from IMU sequences through a common temporal encoder and then models translational and rotational states separately through the position branch and the attitude branch. By incorporating physical consistency constraints during training, the model enforces mathematical coherence between translational and rotational state estimates based on classical inertial kinematics, thereby establishing a unified end-to-end learning framework comprising shared temporal encoding, dual-branch structured regression, and explicit kinematic coupling.
Specifically, the network takes IMU time-window sequences as input and uses an LSTM encoder to extract temporal feature representations:
h T = L S T M U k : k + T 1 ,
The hidden state at the end of the window, h T , is regarded as a compact representation of the UAV’s temporal dynamics within the current time window and is used to characterise manoeuvring patterns and sensor variation characteristics over that interval.
Accordingly, the network leverages a dual-branch architecture to regress translational and rotational states via dedicated position and attitude branches, respectively. This design draws inspiration from multi-task state-estimation networks [29,30], where rotation and translation are treated as coupled yet distinct prediction targets branching from a shared feature representation. The position branch takes the shared temporal feature h T as input and maps it through a fully connected layer to obtain the position prediction in the world frame, as follows:
p ^ T W = f p o s h T ,
The attitude branch is responsible for regressing the quaternion at the end of the window. To enforce the unit–quaternion constraint, the predicted quaternion is normalised to obtain the final attitude estimate:
q ^ W B , T = q ^ W B , T q ^ W B , T ,
Once the attitude estimate has been obtained, the corresponding rotation matrix R W B q ^ W B , T is used to transform the body-frame specific force into the world frame, thereby yielding the acceleration required for the subsequent physical consistency constraints:
a ^ T W = R W B q ^ W B , T f B t b a , T + g W ,
The predicted acceleration is further involved in the velocity and position integration constraints:
v ^ T + 1 W = v ^ T W + a ^ T W Δ t ,
p ^ T + 1 W = p ^ T W + v ^ T W Δ t + 1 2 a ^ T W Δ t 2 ,
During training, these established inertial kinematic relationships are used to construct consistency losses linking the attitude output, acceleration transformation, and velocity–position integration [37]. The attitude branch is primarily responsible for learning rotational dynamics, while also influencing the consistency of translational state learning through coordinate transformations and integration relationships. Concurrently, the position branch models translational dynamics based on the shared temporal features, while its cross-branch coherence with the attitude component is regularised through physical consistency constraints, thereby integrating the learning of rotational and translational states into a structured architecture and further enhancing the long-term stability of position estimation.
Compared with a single-branch network with fully shared parameters, the proposed dual-branch physical-link coupling structure has the following advantages:
  • Reduced multi-task gradient interference.
By regressing attitude and position through separate task-specific branches, the architecture effectively mitigates cross-task interference between distinct regression objectives, while the shared LSTM encoder captures underlying temporal motion characteristics. This design closely aligns with the fundamental paradigm of multi-task learning, which utilises shared feature representations coupled with task-specific prediction heads.
2.
Improved modelling of dynamical consistency.
By strengthening physical consistency constraints derived from classical inertial kinematics, the model promotes mathematical coherence between rotational and translational state estimates, thereby enhancing the stability of attitude and position tracking under highly manoeuvrable flight conditions.
Consequently, this paper establishes a unified modelling framework that integrates shared temporal encoding, dual-branch state regression, and physical consistency constraints, with the overall structure shown in Figure 4.

5.2. Evaluation Metrics

To comprehensively characterise the performance of the proposed model in UAV position and attitude estimation, this paper adopts the mean squared error (MSE), root mean square error (RMSE), mean absolute error (MAE), and coefficient of determination (R2) as evaluation metrics. Among them, MSE is more sensitive to large deviations and can reflect abnormal errors such as abrupt trajectory changes or drift. RMSE has the same physical dimension as the original quantity and therefore provides good engineering interpretability. MAE is relatively more robust to outliers and can more stably reflect the average deviation level of the predictions. The R2 is used to measure the degree to which the model fits the variation trend of the ground-truth data.
Since the UAV state includes both position and attitude, model performance is evaluated from three perspectives: position error, attitude error, and error distribution. The position metrics are used to measure the accuracy of estimating the UAV trajectory in the world frame and reflect the model’s capability in translational motion estimation. The attitude metrics are used to assess the prediction accuracy of rotational motion. During training, attitude is represented using quaternions to avoid the singularity problem associated with Euler angles and to improve numerical stability; during evaluation, the predicted quaternions are converted into Euler angles to obtain attitude error metrics with more explicit physical meaning. In addition, a combined error distribution analysis is introduced to provide a statistical description of the overall distribution characteristics of both position and attitude errors, thereby offering a more comprehensive reflection of the model’s practical performance in digital twin state mapping tasks.
Assume that there are N time samples. The predicted and ground-truth position and attitude are denoted by p ^ W t i , p W t i , q ^ W B t i and q W B t i , respectively. The quaternion outputs are first converted into Euler angles. The roll, pitch, and yaw angles are computed as follows:
ϕ = a tan 2 2 q w q x + q y q z , 1 2 q x 2 + q y 2 ,
θ = arcsin 2 q w q y q z q x ,
ψ = a tan 2 2 q w q z + q x q y , 1 2 q y 2 + q z 2 ,
Accordingly, the Euler-angle attitude vector is defined as follows:
e t i = ϕ t i , θ t i , ψ t i T ,
The position evaluation metrics are defined as follows:
M S E p o s = 1 N i = 1 N p ^ W t i p W t i 2 2 ,
R M S E p o s = M S E p o s ,
M A E p o s = 1 N i = 1 N p ^ W t i p W t i 2 ,
R 2 p o s = 1 i = 1 N p ^ W t i p W t i 2 2 i = 1 N p W t i p ¯ W t i 2 2 ,   p ¯ W t i = 1 N i = 1 N p W t i ,
Attitude evaluation metrics include the following:
M S E a t t = 1 N i = 1 N e ^ t i e t i 2 2 ,
R M S E a t t = M S E a t t ,
M A E a t t = 1 N i = 1 N e ^ t i e t i 2 ,
R 2 a t t = 1 i = 1 N e ^ t i e t i 2 2 i = 1 N e t i e ¯ t i 2 2 ,   e ¯ W t i = 1 N i = 1 N p W t i ,
Furthermore, to better reflect the overall error characteristics of the model in joint position and attitude estimation, the position error, the attitude error, and the combined error derived from both are defined as follows:
e p o s t i = p ^ W t i p W t i 2 ,
e a t t t i = 2 arccos q ^ W B t i q W B t i × 180 π ,
e c o m p t i = e p o s t i c p o s + e a t t t i c a t t ,
where c p o s and c a t t are the normalisation constants for position error and attitude error, respectively. The cumulative distribution functions (CDFs) of these three errors are analysed to characterise the proportion of samples falling within different error thresholds. A higher cumulative probability at a smaller error threshold indicates that the model has a more concentrated error distribution and better estimation stability, thereby reflecting its robustness in joint position and attitude estimation.

6. Experimental Results and Analysis

6.1. Dataset and Experimental Setup

This study uses the UZH-FPV Drone Racing dataset [39] released by the Robotics and Perception Group of the University of Zurich (UZH). The dataset contains more than 27 flight sequences, covering a total flight distance of over 10 km and including both indoor and outdoor racing environments. It provides synchronised IMU and camera data, as well as high-precision six degrees of freedom (6-DoF) ground-truth annotations, including position and attitude; however, only the IMU data and the corresponding position and attitude annotations are used in this study. The flight sequences are characterised by high manoeuvrability and rapid variations in acceleration and angular velocity, which pose significant challenges for state estimation and model learning. Ground-truth position and attitude annotations were obtained from external measurements using an MS60 laser tracker (Leica Geosystems AG, Heerbrugg, Switzerland).
For a fair comparison, all learning-based methods were evaluated under the same sequence-level data split and the same evaluation metrics. The models were trained and tested using the same IMU inputs and position and attitude labels, and no test sequence was used during training or validation. The hyperparameters of the compared learning-based methods were selected based on validation-set performance under the same experimental protocol. The traditional inertial-navigation baselines were evaluated using the same IMU measurements and initial reference state.
In this study, the Snapdragon Flight IMU stream from the UZH-FPV Drone Racing dataset is used. The IMU data were recorded from the Snapdragon Flight board (Qualcomm Technologies, Inc., San Diego, CA, USA). The IMU measurements are sampled at 500 Hz, corresponding to a sampling interval of 0.002 s, and only the three-axis gyroscope and three-axis accelerometer data are used as model inputs. The dataset-provided reference trajectory is generated using external Leica MS60 position measurements together with batch optimisation. The main specifications of the Snapdragon Flight IMU used in this study are summarised in Table 1.
To clarify the main architectural settings and physical-loss configuration of the proposed DPI-LSTM, the key implementation details are summarised in Table 2. The physical consistency losses are used as auxiliary regularisation losses, and their weights are fixed during training to encourage kinematic consistency while avoiding domination of the optimisation process by scale-sensitive residuals.
In the experiments, IMU data are used as input and ground-truth position and attitude as supervision to train an end-to-end IMU-to-position-and-attitude regression model. During inference, the trained model estimates the UAV position and attitude directly from IMU time-window sequences. To avoid data leakage, all samples are split on a sequence basis into training, validation, testing, and cross-sequence evaluation sets. Specifically, four indoor sequences are used for training, while two additional indoor sequences are used for validation and testing, respectively. One outdoor sequence is further reserved for cross-sequence evaluation. After sequence-wise splitting and preprocessing, the numbers of samples in the training, validation, and test sets are approximately in the ratio of 8:1:1. The outdoor sequence is used for cross-sequence evaluation within the UZH-FPV dataset, while all sets remain strictly non-overlapping in both time and sequence. For illustration, Table 3 presents sample data from one flight sequence in the UZH-FPV dataset.
Each row corresponds to one observation sample at a specific time and contains two groups of information: the reference position and attitude labels, namely the position p W t and attitude quaternion q W B t in the world frame, and the IMU inputs, namely the angular velocity vector ω B t and the specific force vector f B t in the body frame. Furthermore, the timestamps have been converted to relative time for convenience in processing. This conversion does not affect the sampling interval or the underlying motion dynamics. Figure 5 provides an illustrative example of the position and attitude variations within a flight sequence segment.

6.2. Comparative Methods

To comprehensively evaluate the effectiveness of the proposed method, this study compares it with traditional inertial navigation methods and representative deep learning methods under identical data splits and evaluation metrics. The traditional methods include a direct inertial navigation system (Direct INS), a bias-calibrated inertial navigation system (Bias INS) [18], and a Mahony-filter-based inertial navigation system (Mahony INS) [40]. These methods mainly rely on integration or filtering of IMU measurements for state estimation. Although they have clear physical structures, they are highly susceptible to noise and sensor bias in the absence of external observations, leading to cumulative errors and significant drift over time.
The deep learning methods include IONet [24], CNN–LSTM [26], and RoNIN [25]. These methods learn the mapping from IMU sequences to motion states in a data-driven manner and can mitigate inertial drift to some extent. However, because they lack explicit physical constraints, their outputs may still exhibit insufficient physical consistency in long-duration sequences and highly dynamic scenarios. DPI-LSTM incorporates established inertial kinematic relationships as physical consistency loss terms within an end-to-end learning framework, thereby regularising the consistency between translational and rotational state estimates.
Figure 6, Figure 7 and Figure 8 present a qualitative comparison of the estimated position and attitude states, as well as the error evolution, of different methods. The results reveal clear differences among the compared methods in terms of trajectory reconstruction and error evolution. For the traditional inertial navigation methods, namely Direct INS, Bias INS, and Mahony INS, significant discrepancies can be observed in the position–component curves, as shown in Figure 6a–c, and in the three-dimensional (3D) trajectory plots, as shown in Figure 6h–j. As time progresses, the predicted trajectories gradually deviate from the ground-truth trajectories, indicating the characteristic drift of pure inertial integration.
Deep learning methods generally reconstruct the ground-truth trajectories more accurately, indicating that data-driven models can learn more effective motion representations from historical IMU sequences. IONet, CNN–LSTM, and RoNIN clearly outperform the traditional methods in both the position–component curves, as shown in Figure 7a–c, and the 3D trajectories, as shown in Figure 7h–j. However, noticeable lag or local deviations still occur in segments involving rapid state changes or frequent motion transitions.
In comparison, the predicted trajectory of DPI-LSTM shows the highest degree of alignment with the ground-truth trajectory, and its position component curves more closely follow the ground-truth values in both global trends and local details. This indicates that the introduced physical consistency constraints and dual-branch coupling mechanism can more effectively suppress cumulative drift, thereby improving the stability and accuracy of position estimation. In the quaternion comparison plots, namely Figure 6d–g, Figure 7d–g and Figure 8d–g, the attitude outputs of the compared methods are generally close to the ground truth, while DPI-LSTM maintains better smoothness and consistency in attitude estimation. In addition, the position–error curve of DPI-LSTM, shown in Figure 8i, remains at a relatively low level compared with the error curves of the other methods shown in Figure 6k and Figure 7k.
Figure 9 shows that the error distribution of DPI-LSTM is generally more concentrated, with its CDF reaching higher cumulative probabilities at smaller error thresholds across most intervals. This indicates that a larger proportion of its estimation errors are controlled within a smaller range, further demonstrating the superiority of the proposed method in terms of stability and robustness.
Table 4 summarises the quantitative test results of all compared methods. The traditional methods perform substantially worse in terms of position accuracy. In particular, the position RMSE values of Bias INS and Mahony INS reach 9.60 m and 9.91 m, respectively, indicating that, in the absence of external observations, traditional methods struggle to suppress the accumulation of position errors. In contrast, deep learning methods substantially reduce position error, with IONet, CNN–LSTM, and RoNIN achieving position RMSE values of 0.0831 m, 0.0869 m, and 0.0980 m, respectively, demonstrating the effectiveness of data-driven modelling for inertial position and attitude estimation.
Building on this, DPI-LSTM achieves the best performance in position estimation, with MSEpos = 0.00428 m2, RMSEpos = 0.0654 m, and MAEpos = 0.0484 m, while R2pos reaches 0.998. These results outperform all competing methods on the position metrics, indicating that the proposed method provides the strongest performance in position estimation. Regarding the attitude metrics, DPI-LSTM achieves MSEatt = 5.62 × 10−5, RMSEatt = 0.00749, and MAEatt = 0.00577. While attitude estimation remains highly accurate, the main performance gains are concentrated in position accuracy and in the suppression of long-term drift.
Overall, DPI-LSTM improves position-estimation accuracy while maintaining stable and accurate attitude estimation, thereby validating the effectiveness of the proposed physical consistency constraints and dual-branch architecture under complex motion conditions.

6.3. Ablation Experiments

To further analyse the contribution of each key design element to performance improvement, ablation experiments are conducted under a unified experimental setup. By progressively introducing or removing the dual-branch structure and the physical consistency constraints, the study systematically evaluates the effect of different modules on position and attitude estimation performance.
The ablation variants include the baseline LSTM, physics-informed long short-term memory (PI-LSTM), dual-branch long short-term memory (D-LSTM), and the complete DPI-LSTM.
Figure 10 shows that different architectures exhibit clear differences in trajectory reconstruction, position error evolution, and attitude variation. All four models are able to reconstruct the ground-truth trajectory to a reasonable extent. Although the baseline LSTM performs reasonably well in overall trajectory fitting, as reflected by the position–component curves and the 3D trajectory plots, its predictions in some regions rely more strongly on empirical data fitting and lack sufficient physical regularisation. This can also be observed from the locally enlarged position components in Figure 10d–f.
In contrast, the D-LSTM, which uses only the dual-branch structure, can alleviate task interference to some extent during the joint modelling of position and attitude. However, its improvements remain limited because it does not include explicit physical consistency constraints. The complete DPI-LSTM combines physical consistency constraints with a dual-branch decoupling mechanism, thereby establishing a clearer functional division between the attitude branch and the position branch.
Figure 11 shows that the error distribution of DPI-LSTM is generally more concentrated, with its cumulative probability curve reaching higher probabilities at smaller error thresholds across most intervals. This suggests that its position and attitude estimation results exhibit better overall consistency and robustness. In the CDF comparison plots, the cumulative probability curves of all models show relatively similar trends for attitude error, with differences being less pronounced than those observed in the position error distribution. However, after introducing physical consistency constraints, the predicted attitude evolution becomes smoother and more consistent with the continuous characteristics of real motion.
The quantitative results of the ablation experiments further reveal the specific roles of the physical consistency constraints and the dual-branch design. As shown in Table 5, the complete DPI-LSTM achieves the best position estimation performance among the four architectures, with MSEpos = 0.00428 m2, RMSEpos = 0.0654 m, and MAEpos = 0.0484 m. This indicates that the joint introduction of the dual-branch structure and the physical consistency constraints contributes to improved position estimation accuracy under the tested conditions. In contrast, the baseline LSTM yields MSEpos = 0.00697 m2, RMSEpos = 0.0835 m, and MAEpos = 0.0605 m. While it still demonstrates good data-fitting capability, its overall performance remains inferior to that of DPI-LSTM.
Further comparison among the ablation variants shows that PI-LSTM improves the position metrics relative to the baseline LSTM: its RMSEpos decreases from 0.0835 to 0.0799, and its MAEpos decreases from 0.0605 to 0.0575. This indicates that explicitly introducing physical consistency constraints provides useful structured regularisation, helping the model learn predictions that are more consistent with classical inertial kinematic relationships and thereby improving position estimation performance. By contrast, the D-LSTM, which uses only the dual-branch structure, shows limited improvement in this set of experiments, with RMSEpos = 0.0843 m, which is comparable to that of the baseline LSTM. This indicates that, without the support of physical consistency constraints, structural decoupling alone is insufficient to consistently improve position estimation accuracy.
In terms of the attitude metrics, the differences among the four models are relatively small. DPI-LSTM achieves MSEatt = 5.62 × 10−5, RMSEatt = 0.00749, and MAEatt = 0.00577, maintaining high overall accuracy and demonstrating good stability.
Overall, the ablation experiments indicate that the physical consistency constraints play an important role in improving position estimation accuracy, while the dual-branch architecture provides structural support for separately modelling position and attitude. The complete DPI-LSTM combines the dual-branch decoupling structure with physics-informed consistency constraints. The former separately models position and attitude through task-specific branches, whereas the latter establishes physical coupling between translational and rotational motion along the attitude–acceleration–velocity–position chain.

6.4. Cross-Sequence Evaluation

To further evaluate the model’s performance on non-overlapping sequences, this paper conducts a cross-sequence evaluation using an outdoor UZH-FPV sequence that is not used during training.
Figure 12 shows clear differences in position-and-attitude reconstruction performance among the compared models on the unseen UZH-FPV outdoor sequence. In the position–component curves, especially the locally enlarged views shown in Figure 12d–f, and in the attitude reconstruction curves shown in Figure 12h–o, the compared models exhibit different degrees of tracking deviation. Although the baseline LSTM, PI-LSTM, and D-LSTM are generally able to reconstruct the overall motion trend in their 3D trajectories, as shown in Figure 12q–s, they still exhibit noticeable deviations and error fluctuations during segments involving rapid local manoeuvres. Specifically, the baseline LSTM shows pronounced drift in both the position curves and the 3D trajectory.
The PI-LSTM shows improved overall trajectory fitting after the introduction of physical consistency constraints, indicating that these constraints can, to some extent, help regularise the learned motion patterns on the unseen sequence.
Meanwhile, the D-LSTM mitigates task interference in the joint learning of position and attitude through its dual-branch structure, but stability on the unseen sequence remains limited in the absence of explicit physical consistency constraints.
In contrast, DPI-LSTM achieves better agreement with the ground-truth values in terms of position components, attitude variations, and 3D trajectory reconstruction, as shown in Figure 12p. It also exhibits smoother position error evolution, as shown in Figure 12g. This indicates that the joint introduction of the dual-branch structure and physical consistency constraints improves the model’s estimation stability on the unseen sequence.
Figure 13 presents the CDF comparison of the position, attitude, and combined errors in the cross-sequence evaluation. DPI-LSTM reaches higher cumulative probabilities at smaller error thresholds over most intervals, indicating that its estimation errors are more concentrated than those of the other evaluated variants. This indicates that the joint introduction of the dual-branch structure and physical consistency constraints improves the model’s estimation stability on the unseen sequence.
Table 6 summarises the quantitative results on the unseen outdoor sequence. In terms of the position metrics, DPI-LSTM achieves the best performance among the four architectures, with MSEpos = 0.117 m2, RMSEpos = 0.342 m, MAEpos = 0.256 m, and R2pos = 0.995. Compared with LSTM, PI-LSTM, and D-LSTM, the RMSEpos of DPI-LSTM is reduced by approximately 33.2%, 26.8%, and 35.3%, respectively. This indicates that, under the sequence-level distribution shift within the UZH-FPV dataset, the combination of physical consistency constraints and the dual-branch structure improves the modelling of translational motion.
In terms of the attitude metrics, DPI-LSTM also achieved the best results, with MSEatt = 0.00213, RMSEatt = 0.0461, MAEatt = 0.0353, and R2att = 0.953. Compared with LSTM, PI-LSTM, and D-LSTM, the RMSEatt of DPI-LSTM is reduced by approximately 36.1%, 25.2%, and 24.5%, respectively. This indicates that, on the unseen outdoor sequence, the proposed method improves position estimation accuracy while maintaining stable attitude-estimation performance.
When the test sequence differs from the training sequences in scene and motion patterns, models that rely solely on data fitting are more prone to performance degradation. However, by introducing physical consistency constraints and a dual-branch structured modelling strategy, DPI-LSTM maintains more stable and accurate position and attitude estimation performance on the unseen sequence. Together with the same-distribution test results in Section 6.2, these cross-sequence results indicate that the proposed method maintains stable position and attitude estimation performance under both standard test conditions and moderate sequence-level distribution shifts.
To provide a preliminary evaluation of the computational efficiency of the proposed method, the structural complexity of DPI-LSTM was analysed. As the physical consistency losses are used only as regularisation losses during training, they do not introduce additional computational overhead during inference. Therefore, the inference complexity is mainly determined by the shared LSTM encoder and the two task-specific prediction branches. Table 7 summarises the number of trainable parameters, approximate model size, estimated computational cost, and inference latency for a single input window of 40 IMU samples.

6.5. Evaluation on the EuRoC Dataset

To further evaluate the effectiveness of the proposed dual-branch physics-informed structure under a different dataset distribution, an additional retraining experiment was conducted on the EuRoC Micro Aerial Vehicle (MAV) dataset [41]. The purpose of this experiment is to examine whether the proposed DPI-LSTM architecture remains effective when it is trained and evaluated on a different public UAV dataset with similar IMU-based position and attitude estimation data.
In this experiment, the easy sequences were used for training, the medium sequences were used for validation, and the difficult sequences were held out for testing. All four model variants, namely LSTM, PI-LSTM, D-LSTM, and DPI-LSTM, were trained under the same experimental setting. Importantly, no additional hyperparameter tuning was performed specifically for the EuRoC dataset. The same network configuration and training parameters were retained, including the input sequence length, LSTM hidden dimension, learning rate, and physical-loss weights. Therefore, the comparison focuses on whether the dual-branch architecture and physical consistency constraints remain beneficial in the target domain retraining setting. The retraining results are shown in Table 8.
As shown in Table 8, DPI-LSTM achieves the best overall performance among the four model variants after retraining on the EuRoC MAV dataset. For position estimation, DPI-LSTM obtains the lowest MSE, RMSE, and MAE, as well as the highest R2. For attitude estimation, DPI-LSTM also achieves the lowest MSE, RMSE, and MAE, together with the highest R2. Compared with PI-LSTM, which introduces physical consistency constraints without the dual-branch structure, DPI-LSTM reduces the RMSEpos from 0.111 to 0.108 and the RMSEatt from 0.0856 to 0.0842.
These results indicate that the dual-branch structure and the physics-informed constraints provide structural benefits. Although the performance improvement is moderate, it is consistent across position, attitude, and overall position and attitude estimation metrics. As no EuRoC-specific hyperparameter adjustment was performed, the observed improvement suggests that the performance gain is more likely associated with the proposed dual-branch physics-informed structure rather than dataset-specific parameter tuning. This additional experiment further verifies that the proposed DPI-LSTM architecture remains effective after retraining on a different public UAV dataset.

7. Conclusions

This paper investigates an IMU-driven position and attitude estimation for quadrotor UAVs and conducts systematic experimental validation based on the UZH-FPV Drone Racing dataset. To address the susceptibility of traditional navigation methods under purely inertial conditions to noise, bias, and cumulative integration errors, a dual-branch physics-informed long short-term memory (DPI-LSTM) model is proposed. Experimental results demonstrate that the proposed method can effectively improve the stability and overall performance of position and attitude estimation under complex manoeuvring conditions.
The main conclusions are as follows:
  • To address the problem of error accumulation under purely inertial conditions, the proposed DPI-LSTM effectively suppresses the long-term drift associated with traditional inertial integration methods, achieving more stable and accurate position and attitude estimation, particularly in terms of suppressing long-term drift in position estimation under complex manoeuvres. These results indicate that the proposed method can reduce drift-like position estimation errors under the tested benchmark conditions.
  • In the joint regression task for position and attitude, the constructed dual-branch architecture achieves more stable overall estimation performance, indicating that this structure can mitigate task interference between position and attitude regression within the shared feature space and enhance representation capability across different motion modes.
  • Further ablation experiments demonstrate that introducing physical consistency constraints into a data-driven learning framework improves estimation stability and enhances cross-sequence performance within the UZH-FPV dataset. The additional EuRoC retraining results further confirm the structural effectiveness of the proposed DPI-LSTM, showing that the dual-branch physics-informed design can provide consistent improvements in position, attitude estimation under a new dataset setting.
Although the proposed DPI-LSTM achieves improved position and attitude estimation stability under the evaluated benchmark settings, several limitations should be acknowledged. The current framework remains a supervised learning method and relies on dataset-provided reference position and attitude annotations during training. The cross-sequence evaluation within the UZH-FPV dataset reflects sequence-level distribution shifts rather than full cross-domain generalisation, while the EuRoC experiment provides only preliminary external-dataset retraining validation. In addition, under IMU-only conditions, position and attitude estimation is still affected by sensor noise, bias, observability limitations, and long-duration drift accumulation. The physical consistency constraints serve as auxiliary regularisation and cannot completely eliminate these inherent limitations of inertial-only navigation. Although model complexity and inference latency have been analysed, embedded deployment, onboard energy consumption, and closed-loop UAV feedback validation remain to be investigated in future work.
From an engineering application perspective, the proposed method provides an effective data-driven implementation pathway for state mapping and dynamic modelling within UAV digital twin systems. Within the digital twin framework, continuous, stable, and accurate position and attitude estimation serves as a crucial foundation for realising core functions such as flight-status monitoring, trajectory prediction, and risk assessment. In addition, this capability is also valuable for precision agriculture, where reliable UAV position and attitude estimation can support the safety of low-altitude operations, improve the stability of crop monitoring and precision spraying tasks, and support reliable state mapping for agricultural UAV operations. By incorporating established inertial kinematic relationships into the deep temporal modelling process as loss constraints, DPI-LSTM improves position estimation stability under the evaluated benchmark conditions. This may reduce the dependence on external positioning devices under constrained sensing conditions and may improve the deployment flexibility of UAV digital twin systems in complex environments.
Future research will further explore online learning and multi-sensor fusion mechanisms and combine them with real-time communication and virtual–physical interaction technologies to advance the construction of UAV digital twin models oriented towards closed-loop updating and real-time feedback, thereby further enhancing the engineering value of the system in complex flight missions. In this future framework, the digital twin is expected to serve not only as a state-monitoring and prediction module but also as a supervisory layer for supporting closed-loop UAV control. At the same time, future work will investigate the deployment of the proposed framework in application-oriented scenarios such as precision agriculture, with the aim of supporting safer autonomous field operations and more reliable precision agriculture applications.

Author Contributions

Conceptualization, W.L. and S.M.; methodology, S.M. and R.Z.; software, S.M.; validation, S.M.; investigation, S.M.; data curation, S.M. and Q.L.; writing—original draft preparation, S.M.; writing—review and editing, W.L. and R.Z.; visualization, S.M.; supervision, W.L. and R.Z.; project administration, R.Z.; funding acquisition, R.Z. and Q.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Natural Science Fund under the Higher Education Science and Technology Programme of the Hebei Provincial Department of Education, grant number QN2026310; the Yanzhao Iron and Steel Laboratory Regional Innovation Capacity Enhancement Project, grant number YZISL2024014; and the 2023 Key Research Project of North China University of Science and Technology, grant number ZD-ST-202302-23.

Data Availability Statement

The data analyzed in this study were derived from publicly available datasets. The UZH-FPV Drone Racing Dataset is available at https://fpv.ifi.uzh.ch/ (accessed on 13 November 2025) and https://fpv.ifi.uzh.ch/datasets/ (accessed on 13 November 2025); its accompanying publication is available with DOI: 10.1109/ICRA.2019.8793887. The EuRoC MAV Dataset is available at https://projects.asl.ethz.ch/datasets/euroc-mav/ (accessed on 7 June 2026) with DOI: 10.3929/ethz-b-000690084. No new datasets were generated in this study.

Acknowledgments

The authors would like to acknowledge the use of DeepL translation AI, version 26.5.1.20133, for linguistic assistance in the preparation of this manuscript, as English is not the authors’ native language. The authors carefully reviewed and revised the translated text and take full responsibility for the final content of the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
UAVUnmanned aerial vehicle
DTDigital twin
UAVDTUnmanned aerial vehicle digital twin
IMUInertial measurement unit
INSInertial navigation system
EKFExtended Kalman filter
GNSSGlobal navigation satellite system
LSTMLong short-term memory
RNNRecurrent neural network
CNNConvolutional neural network
PINNPhysics-informed neural network
DPI-LSTMDual-branch physics-informed long short-term memory
PI-LSTMPhysics-informed long short-term memory
D-LSTMDual-branch long short-term memory
MSEMean squared error
RMSERoot mean squared error
MAEMean absolute error
R2Coefficient of determination

References

  1. Saeed, R.A.; Omri, M.; Abdel-Khalek, S.; Ali, E.S.; Alotaibi, M.F. Optimal path planning for drones based on swarm intelligence algorithm. Neural Comput. Appl. 2022, 34, 10133–10155. [Google Scholar] [CrossRef]
  2. Dai, X.; Duo, B.; Yuan, X.; Di Renzo, M. Energy-efficient UAV communications in the presence of wind: 3D modeling and trajectory design. IEEE Trans. Wirel. Commun. 2023, 23, 1840–1854. [Google Scholar] [CrossRef]
  3. Alkouz, B.; Abusafia, A.; Lakhdari, A.; Bouguettaya, A. In-Flight Energy-Driven Composition of Drone Swarm Services. IEEE Trans. Serv. Comput. 2023, 16, 1919–1933. [Google Scholar] [CrossRef]
  4. Gao, H.; Li, W.; Cai, H. Fully Distributed Robust Formation Flying Control of Drones Swarm Based on Minimal Virtual Leader Information. Drones 2022, 6, 266. [Google Scholar] [CrossRef]
  5. Oubbati, O.S.; Alotaibi, J.; Alromithy, F.; Atiquzzaman, M.; Altimania, M.R. A UAV-UGV cooperative system: Patrolling and energy management for urban monitoring. IEEE Trans. Veh. Technol. 2025, 74, 13521–13536. [Google Scholar] [CrossRef]
  6. Dudek, T.; Kaśkosz, K. Optimizing drone logistics in complex urban industrial infrastructure. Transp. Res. Part D Transp. Environ. 2025, 140, 104610. [Google Scholar] [CrossRef]
  7. Nguyen, H.; Van Thieu, N. Measurement and Prediction of Blast-Induced Flyrock Distance Using Unmanned Aerial Vehicles and Metaheuristic-Optimized ANFIS Neural Networks: Nguyen and Thieu. Nat. Resour. Res. 2025, 34, 1169–1198. [Google Scholar] [CrossRef]
  8. Adeluyi, O.; Harris, A.; Foster, T.; Clay, G.D. Exploiting centimetre resolution of drone-mounted sensors for estimating mid-late season above ground biomass in rice. Eur. J. Agron. 2022, 132, 126411. [Google Scholar] [CrossRef]
  9. Gokool, S.; Mahomed, M.; Kunz, R.; Clulow, A.; Sibanda, M.; Naiken, V.; Chetty, K.; Mabhaudhi, T. Crop monitoring in smallholder farms using unmanned aerial vehicles to facilitate precision agriculture practices: A scoping review and bibliometric analysis. Sustainability 2023, 15, 3557. [Google Scholar] [CrossRef]
  10. Li, W.; Luo, Y.; Jiang, P.; Dong, X.; Tang, K.; Liang, Z.; Shi, Y. A sustainable crop protection through integrated technologies: UAV-based detection, real-time pesticide mixing, and adaptive spraying. Sci. Rep. 2025, 15, 35748. [Google Scholar] [CrossRef] [PubMed]
  11. Allen, B.D. Digital twins and living models at NASA. In Proceedings of the Digital Twin Summit, Virtual, 3–4 November 2021. [Google Scholar]
  12. Singh, M.; Fuenmayor, E.; Hinchy, E.P.; Qiao, Y.; Murray, N.; Devine, D. Digital twin: Origin to future. Appl. Syst. Innov. 2021, 4, 36. [Google Scholar] [CrossRef]
  13. Grieves, M.W. PLM—beyond lean manufacturing. Manuf. Eng. 2003, 130, 23. [Google Scholar]
  14. Grieves, M.W. Product lifecycle management: The new paradigm for enterprises. Int. J. Prod. Dev. 2005, 2, 71–84. [Google Scholar] [CrossRef]
  15. Grieves, M.; Vickers, J. Digital Twin: Mitigating Unpredictable, Undesirable Emergent Behavior in Complex Systems. In Transdisciplinary Perspectives on Complex Systems: New Findings and Approaches; Kahlen, F.-J., Flumerfelt, S., Alves, A., Eds.; Springer International Publishing: Cham, Switzerland, 2017; pp. 85–113. [Google Scholar]
  16. Abro, G.E.M.; Abdallah, A.M. Digital twins and control theory: A critical review on revolutionizing quadrotor UAVs. IEEE Access 2024, 12, 43291–43307. [Google Scholar] [CrossRef]
  17. Rejeb, A.; Abdollahi, A.; Rejeb, K.; Treiblmaier, H. Drones in agriculture: A review and bibliometric analysis. Comput. Electron. Agric. 2022, 198, 107017. [Google Scholar] [CrossRef]
  18. Titterton, D.; Weston, J.L. Strapdown Inertial Navigation Technology; IET: Stevenage, UK, 2004; Volume 17. [Google Scholar]
  19. Candan, B.; Soken, H.E. Robust attitude estimation using IMU-only measurements. IEEE Trans. Instrum. Meas. 2021, 70, 9512309. [Google Scholar] [CrossRef]
  20. Fernandes, M.R.; Magalhães, G.M.; Zúñiga, Y.R.C.; do Val, J.B. GNSS/MEMS-INS integration for drone navigation using EKF on lie groups. IEEE Trans. Aerosp. Electron. Syst. 2023, 59, 7395–7408. [Google Scholar] [CrossRef]
  21. Kok, M.; Hol, J.D.; Schön, T.B. Using inertial sensors for position and orientation estimation. Found. Trends Signal Process. 2017, 11, 1–153. [Google Scholar] [CrossRef]
  22. Chen, C.; Pan, X. Deep learning for inertial positioning: A survey. IEEE Trans. Intell. Transp. Syst. 2024, 25, 10506–10523. [Google Scholar] [CrossRef]
  23. Zeinali, B.; Zanddizari, H.; Chang, M.J. IMUNet: Efficient Regression Architecture for Inertial IMU Navigation and Positioning. IEEE Trans. Instrum. Meas. 2024, 73, 2516213. [Google Scholar] [CrossRef]
  24. Chen, C.; Lu, X.; Markham, A.; Trigoni, N. Ionet: Learning to cure the curse of drift in inertial odometry. In Proceedings of the AAAI Conference on Artificial Intelligence, New Orleans, LA, USA, 2–7 February 2018. [Google Scholar]
  25. Herath, S.; Yan, H.; Furukawa, Y. Ronin: Robust neural inertial navigation in the wild: Benchmark, evaluations, & new methods. In Proceedings of the 2020 IEEE International Conference on Robotics and Automation (ICRA), Paris, France, 31 May–31 August 2020; pp. 3146–3152. [Google Scholar]
  26. Wu, J.; Jiang, W.; Wang, J.; Cai, B.; Yang, Y.; Ba, X.; Liu, J. A Consistent Navigation System Using CNN-LSTM Assisted by IMU Recomputed Method. IEEE Trans. Intell. Transp. Syst. 2025, 26, 13331–13347. [Google Scholar] [CrossRef]
  27. Liu, W.; Caruso, D.; Ilg, E.; Dong, J.; Mourikis, A.I.; Daniilidis, K.; Kumar, V.; Engel, J. Tlio: Tight learned inertial odometry. IEEE Robot. Autom. Lett. 2020, 5, 5653–5660. [Google Scholar] [CrossRef]
  28. Sahoo, A.K.; Klein, I. Morpi-pinn: A physics-informed framework for mobile robot pure inertial navigation. arXiv 2025, arXiv:2507.18206. [Google Scholar]
  29. Caruana, R. Multitask learning. Mach. Learn. 1997, 28, 41–75. [Google Scholar] [CrossRef]
  30. Park, T.H.; D’Amico, S. Robust multi-task learning and online refinement for spacecraft pose estimation across domain gap. Adv. Space Res. 2024, 73, 5726–5740. [Google Scholar] [CrossRef]
  31. Spong, M.W.; Hutchinson, S.; Vidyasagar, M. Robot Modeling and Control; Wiley: New York, NY, USA, 2020; Volume 2. [Google Scholar]
  32. Groves, P.D. Navigation using inertial sensors [Tutorial]. IEEE Aerosp. Electron. Syst. Mag. 2015, 30, 42–69. [Google Scholar] [CrossRef]
  33. Forster, C.; Carlone, L.; Dellaert, F.; Scaramuzza, D. IMU preintegration on manifold for efficient visual-inertial maximum-a-posteriori estimation. In Proceedings of the Robotics: Science and Systems XI, Rome, Italy, 13–17 July 2015 . [Google Scholar]
  34. Schmidhuber, J.; Hochreiter, S. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  35. Graves, A. Long short-term memory. In Supervised Sequence Labelling with Recurrent Neural Networks; Springer: Berlin/Heidelberg, Germany, 2012; pp. 37–45. [Google Scholar]
  36. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
  37. Bianchi, D.; Epicoco, N.; Di Ferdinando, M.; Di Gennaro, S.; Pepe, P. Physics-Informed Neural Networks for Unmanned Aerial Vehicle System Estimation. Drones 2024, 8, 716. [Google Scholar] [CrossRef]
  38. Karniadakis, G.E.; Kevrekidis, I.G.; Lu, L.; Perdikaris, P.; Wang, S.; Yang, L. Physics-informed machine learning. Nat. Rev. Phys. 2021, 3, 422–440. [Google Scholar] [CrossRef]
  39. Delmerico, J.; Cieslewski, T.; Rebecq, H.; Faessler, M.; Scaramuzza, D. Are we ready for autonomous drone racing? the UZH-FPV drone racing dataset. In Proceedings of the 2019 International Conference on Robotics and Automation (ICRA), Montreal, QC, Canada, 20–24 May 2019; pp. 6713–6719. [Google Scholar]
  40. Mahony, R.; Hamel, T.; Pflimlin, J.-M. Nonlinear complementary filters on the special orthogonal group. IEEE Trans. Autom. Control 2008, 53, 1203–1218. [Google Scholar] [CrossRef]
  41. Burri, M.; Nikolic, J.; Gohl, P.; Schneider, T.; Rehder, J.; Omari, S.; Achtelik, M.W.; Siegwart, R. The EuRoC micro aerial vehicle datasets. Int. J. Robot. Res. 2016, 35, 1157–1163. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of the coordinate systems.
Figure 1. Schematic diagram of the coordinate systems.
Sensors 26 04287 g001
Figure 2. Schematic diagram of the LSTM structure.
Figure 2. Schematic diagram of the LSTM structure.
Sensors 26 04287 g002
Figure 3. Schematic diagram of the PINN framework.
Figure 3. Schematic diagram of the PINN framework.
Sensors 26 04287 g003
Figure 4. Overall architecture of the proposed DPI-LSTM model.
Figure 4. Overall architecture of the proposed DPI-LSTM model.
Sensors 26 04287 g004
Figure 5. Time–series curves of position and quaternion components in an example sequence segment.
Figure 5. Time–series curves of position and quaternion components in an example sequence segment.
Sensors 26 04287 g005
Figure 6. Qualitative comparison of position and attitude reconstruction and error evolution for traditional inertial navigation methods: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (dg) quaternion estimates qw, qx, qy, and qz versus the ground truth; (hj) 3D trajectory comparisons of Direct INS, Bias INS, and Mahony INS with the ground truth; (k) position error curves of different methods.
Figure 6. Qualitative comparison of position and attitude reconstruction and error evolution for traditional inertial navigation methods: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (dg) quaternion estimates qw, qx, qy, and qz versus the ground truth; (hj) 3D trajectory comparisons of Direct INS, Bias INS, and Mahony INS with the ground truth; (k) position error curves of different methods.
Sensors 26 04287 g006
Figure 7. Qualitative comparison of position and attitude reconstruction and error evolution for deep learning-based methods: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (dg) quaternion estimates qw, qx, qy, and qz versus the ground truth; (hj) 3D trajectory comparisons of CNN-LSTM, IONet, and RoNIN with the ground truth; (k) position error curves of different methods.
Figure 7. Qualitative comparison of position and attitude reconstruction and error evolution for deep learning-based methods: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (dg) quaternion estimates qw, qx, qy, and qz versus the ground truth; (hj) 3D trajectory comparisons of CNN-LSTM, IONet, and RoNIN with the ground truth; (k) position error curves of different methods.
Sensors 26 04287 g007
Figure 8. Qualitative comparison of position and attitude reconstruction and error evolution for the proposed DPI-LSTM method: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (dg) quaternion estimates qw, qx, qy, and qz versus the ground truth; (h) 3D trajectory comparison of DPI-LSTM with the ground truth; (i) position error curve of the proposed method.
Figure 8. Qualitative comparison of position and attitude reconstruction and error evolution for the proposed DPI-LSTM method: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (dg) quaternion estimates qw, qx, qy, and qz versus the ground truth; (h) 3D trajectory comparison of DPI-LSTM with the ground truth; (i) position error curve of the proposed method.
Sensors 26 04287 g008
Figure 9. CDF comparison of position, attitude, and combined errors among deep learning methods and DPI-LSTM.
Figure 9. CDF comparison of position, attitude, and combined errors among deep learning methods and DPI-LSTM.
Sensors 26 04287 g009
Figure 10. Qualitative comparison of position and attitude estimation results and errors in the ablation experiments: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (df) enlarged views of the x-, y-, and z-position estimates; (g) position error curves of different methods; (hk) quaternion estimates qw, qx, qy, and qz versus the ground truth; (lo) enlarged views of the quaternion estimates qw, qx, qy, and qz; (ps) 3D trajectory comparisons of DPI-LSTM, PI-LSTM, D-LSTM, and LSTM with the ground truth.
Figure 10. Qualitative comparison of position and attitude estimation results and errors in the ablation experiments: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (df) enlarged views of the x-, y-, and z-position estimates; (g) position error curves of different methods; (hk) quaternion estimates qw, qx, qy, and qz versus the ground truth; (lo) enlarged views of the quaternion estimates qw, qx, qy, and qz; (ps) 3D trajectory comparisons of DPI-LSTM, PI-LSTM, D-LSTM, and LSTM with the ground truth.
Sensors 26 04287 g010
Figure 11. CDF comparison of position, attitude, and combined errors in the ablation experiments.
Figure 11. CDF comparison of position, attitude, and combined errors in the ablation experiments.
Sensors 26 04287 g011
Figure 12. Comparison of position and attitude reconstruction and error curves in the cross-sequence evaluation: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (df) enlarged views of the x-, y-, and z-position estimates; (g) position error curves of different methods; (hk) quaternion estimates qw, qx, qy, and qz versus the ground truth; (lo) enlarged views of the quaternion estimates qw, qx, qy, and qz; (ps) 3D trajectory comparisons of DPI-LSTM, PI-LSTM, D-LSTM, and LSTM with the ground truth.
Figure 12. Comparison of position and attitude reconstruction and error curves in the cross-sequence evaluation: (ac) position estimates along the x-, y-, and z-axes versus the ground truth; (df) enlarged views of the x-, y-, and z-position estimates; (g) position error curves of different methods; (hk) quaternion estimates qw, qx, qy, and qz versus the ground truth; (lo) enlarged views of the quaternion estimates qw, qx, qy, and qz; (ps) 3D trajectory comparisons of DPI-LSTM, PI-LSTM, D-LSTM, and LSTM with the ground truth.
Sensors 26 04287 g012
Figure 13. CDF comparison of position, attitude, and combined errors in the cross-sequence evaluation.
Figure 13. CDF comparison of position, attitude, and combined errors in the cross-sequence evaluation.
Sensors 26 04287 g013
Table 1. Main characteristics of the Snapdragon Flight IMU used in this study.
Table 1. Main characteristics of the Snapdragon Flight IMU used in this study.
ItemValue/Description
IMU data sourceSnapdragon Flight IMU stream
IMU sensorInvenSense MPU-9250
Sampling frequency500 Hz
Gyroscope noise0.01°/s/√Hz; 0.1°/s-rms at 92 Hz DLPF
Gyroscope bias specificationZero-rate tolerance: ±5°/s at 25 °C;
temperature variation: ±30°/s
Accelerometer noise300 μg/√Hz; 8 mg-rms at 94 Hz DLPF
Accelerometer bias specificationZero-g tolerance: ±60 mg for X/Y axes;
±80 mg for Z axis
Table 2. Main implementation settings of DPI-LSTM.
Table 2. Main implementation settings of DPI-LSTM.
ItemValue/Setting
Input window length40 IMU samples
Temporal encoderTwo-layer LSTM
LSTM hidden dimension128
Branch hidden dimension64
Training stabilisationGradient clipping with maximum norm 0.5
Physical-loss weights λ q u a t = 0.1 ,   λ v e c = 0.02 ,   λ a c c = 5 × 10 3 ,   λ v e l = 0.1 ,   λ p o s = 0.1
Table 3. Sample data from the UZH-FPV dataset.
Table 3. Sample data from the UZH-FPV dataset.
Timestamptxtytzqwqxqyqzang_vel_xang_vel_yang_vel_zlin_acc_xlin_acc_ylin_acc_z
10.48286.9521713.4244330.947150.45490.0071250.0060.8904960.157660.108660.020242.3654591.637634.989491
20.48486.952163.424380.947160.454850.0071460.005960.8905170.298270.080960.0074573.083724.56332513.12495
30.48686.9521463.4243290.947180.454820.0071650.005930.8905350.0127830.1288970.1533982.5378410.2777311.15213
40.48886.9521313.4242790.947190.454790.0071840.00590.890550.1331580.0351540.038350.0191540.287312.03798
50.49086.9521153.4242310.947210.454760.0072020.005880.8905630.1320930.086290.074570.1053444.726139.03567
60.49286.9520963.4241840.947220.454740.007220.005870.8905730.042610.108660.107591.086961.7669127.872095
70.49486.9520773.4241380.947230.454730.0072360.005860.8905820.171510.017040.028760.5410870.0095778.834558
……
930.66486.9505933.4209430.948490.454440.0077710.006020.8907210.0213050.013850.020240.459681.2401911.14256
940.66686.9505853.4209120.94850.454450.0077760.006020.8907180.0223710.0756340.0372842.2505383.38069.840118
950.66886.9505783.420880.94850.454460.0077820.006030.8907150.087350.0223700.4501081.42693712.38275
960.67086.9505713.4208490.948510.454460.0077890.006040.8907120.060720.206660.0138480.579391.02959.634218
970.67286.9505653.4208170.948520.454470.0077950.006040.890710.015980.180030.0170441.685512.834727.790692
980.67486.9505583.4207860.948530.454470.0078010.006050.8907070.038350.0458060.0149140.1580172.647977.359738
990.67686.9505523.4207550.948540.454480.0078080.006050.8907050.0245010.1331580.00320.8092360.225059.198476
1000.67886.9505463.4207230.948550.454480.0078140.006060.8907020.021310.0031960.046870.3351871.3982110.19446
……
The ellipses indicate omitted entries, and the complete dataset was used in the actual experiments rather than only the displayed rows.
Table 4. Quantitative comparison of different methods.
Table 4. Quantitative comparison of different methods.
MethodMSEposRMSEposMAEposR2posMSEattRMSEattMAEattR2att
Direct INS51922.712.9−32.60.05920.2430.03040.964
Bias INS92.29.606.60−2740.01940.1390.009600.992
Mahony INS98.29.916.92−2730.01940.1390.009910.992
RoNIN0.009600.09800.07080.9966.94 × 10−50.008330.006420.999
CNN–LSTM0.007540.08690.06140.9987.27 × 10−50.008520.006230.999
IONet0.006910.08310.06000.9974.98 × 10−50.007060.005550.999
DPI-LSTM0.004280.06540.04840.9985.62 × 10−50.007490.005770.998
Table 5. Quantitative results of the ablation experiments.
Table 5. Quantitative results of the ablation experiments.
MethodMSEposRMSEposMAEposR2posMSEattRMSEattMAEattR2att
LSTM0.006970.08350.06050.9976.03 × 10−50.007770.005700.998
PI-LSTM0.006380.07990.05750.9986.17 × 10−50.007860.006100.999
D-LSTM0.007110.08430.06200.9986.51 × 10−50.008070.005890.998
DPI-LSTM0.004280.06540.04840.9985.62 × 10−50.007490.005770.998
Table 6. Quantitative results of the cross-sequence evaluation.
Table 6. Quantitative results of the cross-sequence evaluation.
MethodMSEposRMSEposMAEposR2posMSEattRMSEattMAEattR2att
LSTM0.2630.5120.3490.9950.005200.07210.05550.872
PI-LSTM0.2180.4670.3430.9930.003800.06160.04910.914
D-LSTM0.2790.5290.4000.9880.003730.06110.04950.926
DPI-LSTM0.1170.3420.2560.9950.002130.04610.03530.953
Table 7. Computational complexity and inference latency of the evaluated model variants.
Table 7. Computational complexity and inference latency of the evaluated model variants.
MethodTrainable
Parameters
Model Size (FP32)MACs/
Window
FLOPs/
Window
Latency (Batch = 1)Latency (Batch = 256)
LSTM/PI-LSTM256,4550.978 MB8.181 M16.362 M0.655 ± 0.060 ms35.765 ± 1.136 ms
D-LSTM/DPI-LSTM256,7110.979 MB8.181 M16.363 M0.608 ± 0.032 ms35.756 ± 1.052 ms
Table 8. Target domain retraining results on EuRoC.
Table 8. Target domain retraining results on EuRoC.
MethodMSEposRMSEposMAEposR2posMSEattRMSEattMAEattR2att
LSTM0.01230.1110.08170.9857.33 × 10−30.08560.05400.652
PI-LSTM0.01230.1110.08120.9857.33 × 10−30.08560.05410.640
D-LSTM0.01320.1150.08190.9847.47 × 10−30.08630.05480.649
DPI-LSTM0.01160.1080.07940.9867.01 × 10−30.08420.05270.657
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

Liang, W.; Meng, S.; Zhang, R.; Luo, Q. A Physics-Informed Dual-Branch LSTM Network for UAV Position and Attitude Estimation. Sensors 2026, 26, 4287. https://doi.org/10.3390/s26134287

AMA Style

Liang W, Meng S, Zhang R, Luo Q. A Physics-Informed Dual-Branch LSTM Network for UAV Position and Attitude Estimation. Sensors. 2026; 26(13):4287. https://doi.org/10.3390/s26134287

Chicago/Turabian Style

Liang, Weizheng, Siqi Meng, Ruicheng Zhang, and Qianda Luo. 2026. "A Physics-Informed Dual-Branch LSTM Network for UAV Position and Attitude Estimation" Sensors 26, no. 13: 4287. https://doi.org/10.3390/s26134287

APA Style

Liang, W., Meng, S., Zhang, R., & Luo, Q. (2026). A Physics-Informed Dual-Branch LSTM Network for UAV Position and Attitude Estimation. Sensors, 26(13), 4287. https://doi.org/10.3390/s26134287

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