An Indoor UAV Localization Framework with ESKF Tightly-Coupled Fusion and Multi-Epoch UWB Outlier Rejection
Abstract
1. Introduction
- A tightly coupled fusion framework built upon the ESKF leverages IMU, VIO, UWB, and TFmini observations to achieve accurate and robust localization. This framework fully exploits the complementary advantages of different sensors to achieve high-accuracy and high-robustness localization performance.
- A sliding-window UWB model referenced to short-term VIO poses employs a RANSAC-based multi-epoch consistency check to reject outliers. This method significantly improves the statistical consistency and reliability of UWB observations, mitigates the influence of outliers on measurement updates, and thereby enhances fusion stability and positioning accuracy.
- Extensive field experiments were conducted on a UAV system platform to validate the proposed algorithm in an underground parking garage. The experimental results demonstrate that the proposed method significantly outperforms single-sensor localization approaches in both accuracy and robustness, providing a reliable technical foundation for autonomous indoor navigation of UAV.
2. Methods
2.1. VIO-Constrained Multi-Epoch Outlier Rejection Algorithm
2.1.1. Outlier Rejection Algorithm Model
- Initialization: Provide an initial estimate of the anchor position .
- Iterative update: At the k-th iteration, we seek an increment that minimizes the sum of squared residuals. The LM algorithm approximates the nonlinear least-squares problem by a linear system and introduces a damping factor to control the step size:where is the Jacobian evaluated at the current estimate , with row vectors . is the vector collecting all Q ranging residuals. is the identity matrix. is the damping factor that balances between gradient descent and Gauss–Newton updates.
- Update and convergence check: Solve the linear system above to obtain , then update the anchor position estimate:If the new estimate decreases the objective function F, accept the update and decrease the damping factor ; otherwise, reject the update and increase . This process repeats until a predefined convergence criterion is met (the norm of falls below a threshold, or the maximum number of iterations is reached). Finally, we obtain an optimal estimate of the anchor position.
2.1.2. Outlier Rejection Procedure
| Algorithm 1 VIO-Constrained Multi-epoch Outlier Rejection |
| Input: UWB ranging data set within the sliding window , UAV poses estimated by VIO Input: RANSAC iteration number , minimum sample size P, ranging residual threshold , minimum inlier count L Output: Valid UWB ranging data set identified as inliers
|
2.2. ESKF-Based Multi-Sensor Fusion Localization Algorithm
2.2.1. State Definition and Error Modeling
2.2.2. IMU Motion Model and State Propagation
2.2.3. Multi-Sensor Observation Model
2.2.4. Filter Update and Error Injection
3. Experimental Validation
3.1. Comparative Experiments
3.2. Ablation Study
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Liu, H.; Long, Q.; Yi, B.; Jiang, W. A survey of sensors based autonomous unmanned aerial vehicle (UAV) localization techniques. Complex Intell. Syst. 2025, 11, 371. [Google Scholar] [CrossRef]
- Lin, H.Y.; Zhan, J.R. GNSS-denied UAV indoor navigation with UWB incorporated visual inertial odometry. Measurement 2023, 206, 112256. [Google Scholar] [CrossRef]
- Kramarić, L.; Jelušić, N.; Radišić, T.; Muštra, M. A Comprehensive Survey on Short-Distance Localization of UAVs. Drones 2025, 9, 188. [Google Scholar] [CrossRef]
- Pang, S.; Zhang, B.; Lu, J.; Pan, R.; Wang, H.; Wang, Z.; Xu, S. Application of IMU/GPS Integrated Navigation System Based on Adaptive Unscented Kalman Filter Algorithm in 3D Positioning of Forest Rescue Personnel. Sensors 2024, 24, 5873. [Google Scholar] [CrossRef] [PubMed]
- Sun, Z.; Gao, W.; Tao, X.; Pan, S.; Wu, P.; Huang, H. Semi-tightly coupled robust model for GNSS/UWB/INS integrated positioning in challenging environments. Remote Sens. 2024, 16, 2108. [Google Scholar] [CrossRef]
- Mascaro, R.; Teixeira, L.; Hinzmann, T.; Siegwart, R.; Chli, M. Gomsf: Graph-optimization based multi-sensor fusion for robust uav pose estimation. In Proceedings of the 2018 IEEE International Conference on Robotics and Automation (ICRA), Brisbane, Australia, 21–25 May 2018; pp. 1421–1428. [Google Scholar]
- Wang, Y.; Cheng, H.; Meng, M.Q.H. A Learning-Based Sequence-to-Sequence WiFi Fingerprinting Framework for Accurate Pedestrian Indoor Localization Using Unconstrained RSSI. IEEE Internet Things J. 2025, 12, 36765–36777. [Google Scholar] [CrossRef]
- Li, Z.; Zhang, Y. Constrained ESKF for UAV positioning in indoor corridor environment based on IMU and WiFi. Sensors 2022, 22, 391. [Google Scholar] [CrossRef]
- Ayub, A.; Abidin, Z.Z.; Alhammadi, A.; Soliman, N.F.; Khan, M.A.; Ghazali, N.B. Comparative Analysis of Machine Learning Algorithms for BLE-Based Indoor Localization System. IEEE Access 2025, 13, 167120–167138. [Google Scholar] [CrossRef]
- Bellili, F.; Amor, S.B.; Affes, S.; Ghrayeb, A. Maximum likelihood joint angle and delay estimation from multipath and multicarrier transmissions with application to indoor localization over IEEE 802.11 ac radio. IEEE Trans. Mob. Comput. 2018, 18, 1116–1132. [Google Scholar] [CrossRef]
- Bazzi, A.; Slock, D.T.; Meilhac, L. Efficient maximum likelihood joint estimation of angles and times of arrival of multiple paths. In Proceedings of the 2015 IEEE Globecom Workshops (GC Wkshps), San Diego, CA, USA, 6–10 December 2015; pp. 1–7. [Google Scholar]
- Abdelkhalek, M.; Ben Amor, S.; Affes, S. Data-Aided Maximum Likelihood Joint Angle and Delay Estimator Over Orthogonal Frequency Division Multiplex Single-Input Multiple-Output Channels Based on New Gray Wolf Optimization Embedding Importance Sampling. Sensors 2024, 24, 5821. [Google Scholar] [CrossRef]
- Bazzi, A.; Slock, D.T.; Meilhac, L. Sparse recovery using an iterative variational Bayes algorithm and application to AoA estimation. In Proceedings of the 2016 IEEE International Symposium on Signal Processing and Information Technology (ISSPIT), Washington, DC, USA, 12–14 December 2016; pp. 197–202. [Google Scholar]
- Bazzi, A.; Slock, D.T.; Meilhac, L. JADED-RIP: Joint angle and delay estimator and detector via rotational invariance properties. In Proceedings of the 2016 IEEE International Symposium on Signal Processing and Information Technology (ISSPIT), Washington, DC, USA, 12–14 December 2016; pp. 160–165. [Google Scholar]
- Li, J.; Wang, S.; Hao, J.; Ma, B.; Chu, H.K. UVIO: Adaptive Kalman Filtering UWB-Aided Visual-Inertial SLAM System for Complex Indoor Environments. Remote Sens. 2024, 16, 3245. [Google Scholar] [CrossRef]
- Sun, K.; Mohta, K.; Pfrommer, B.; Watterson, M.; Liu, S.; Mulgaonkar, Y.; Taylor, C.J.; Kumar, V. Robust stereo visual inertial odometry for fast autonomous flight. IEEE Robot. Autom. Lett. 2018, 3, 965–972. [Google Scholar] [CrossRef]
- Su, W.; Deng, Z. Online Temporal Calibration for Relative Transformation Estimation Systems. IEEE Robot. Autom. Lett. 2025, 10, 4444–4451. [Google Scholar] [CrossRef]
- Tian, Q.; Kevin, I.; Wang, K.; Salcic, Z. A low-cost INS and UWB fusion pedestrian tracking system. IEEE Sens. J. 2019, 19, 3733–3740. [Google Scholar] [CrossRef]
- Xu, Y.; Wan, D.; Bi, S.; Guo, H.; Zhuang, Y. A FIR filter assisted with the predictive model and ELM integrated for UWB-based quadrotor aircraft localization. Satell. Navig. 2023, 4, 2. [Google Scholar] [CrossRef]
- Yuan, S.; Lou, B.; Nguyen, T.M.; Yin, P.; Cao, M.; Xu, X.; Li, J.; Xu, J.; Chen, S.; Xie, L. Large-scale uwb anchor calibration and one-shot localization using gaussian process. In Proceedings of the 2025 IEEE International Conference on Robotics and Automation (ICRA), Atlanta, GA, USA, 19–23 May 2025; pp. 3132–3138. [Google Scholar]
- Nguyen, T.M.; Yuan, S.; Cao, M.; Lyu, Y.; Nguyen, T.H.; Xie, L. Ntu viral: A visual-inertial-ranging-lidar dataset, from an aerial vehicle viewpoint. Int. J. Robot. Res. 2022, 41, 270–280. [Google Scholar] [CrossRef]
- Zhang, T.; Yuan, M.; Wei, L.; Wang, Y.; Tang, H.; Niu, X. MR-ULINS: A Tightly-Coupled UWB-LiDAR-Inertial Estimator with Multi-Epoch Outlier Rejection. IEEE Robot. Autom. Lett. 2024, 9, 11786–11793. [Google Scholar] [CrossRef]
- Fan, M.; Li, J.; Wang, W. An IMU/UWB tightly coupled navigation algorithm to improve positioning accuracy under large-scale NLOS conditions. Meas. Sci. Technol. 2025, 36, 045105. [Google Scholar] [CrossRef]
- Li, X.; Wang, Y.; Khoshelham, K. A robust and adaptive complementary Kalman filter based on Mahalanobis distance for ultra wideband/inertial measurement unit fusion positioning. Sensors 2018, 18, 3435. [Google Scholar] [CrossRef]
- Li, M.G.; Zhu, H.; You, S.Z.; Tang, C.Q. UWB-based localization system aided with inertial sensor for underground coal mine applications. IEEE Sens. J. 2020, 20, 6652–6669. [Google Scholar] [CrossRef]
- Wang, L.; Zhang, S.; Qi, J.; Chen, H.; Yuan, R. Research on IMU-assisted UWB-based positioning algorithm in underground coal mines. Micromachines 2023, 14, 1481. [Google Scholar] [CrossRef]
- Stahlke, M.; Kram, S.; Mutschler, C.; Mahr, T. NLOS Detection using UWB Channel Impulse Responses and Convolutional Neural Networks. In Proceedings of the ICL-GNSS, Tampere, Finland, 2–4 June 2020; pp. 1–6. [Google Scholar]
- Pei, Y.; Chen, R.; Li, D.; Xiao, X.; Zheng, X. FCN-Attention: A deep learning UWB NLOS/LOS classification algorithm using fully convolution neural network with self-attention mechanism. Geo-Spat. Inf. Sci. 2024, 27, 1162–1181. [Google Scholar] [CrossRef]
- Wang, K.; Yang, C. Analysis of Machine Learning-Based NLOS Signal Identification Algorithm for UWB Indoor Localization Using CIR Waveform Features. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2024, 48, 705–710. [Google Scholar] [CrossRef]
- Ji, P.; Duan, Z.; Xu, W. A combined UWB/IMU localization method with improved CKF. Sensors 2024, 24, 3165. [Google Scholar] [CrossRef] [PubMed]
- Liu, F.; Li, X.; Wang, J.; Zhang, J. An adaptive UWB/MEMS-IMU complementary kalman filter for indoor location in NLOS environment. Remote Sens. 2019, 11, 2628. [Google Scholar] [CrossRef]
- Liu, J.; Gao, Z.; Li, Y.; Lv, S.; Liu, J.; Yang, C. Ranging Offset Calibration and Moving Average Filter Enhanced Reliable UWB Positioning in Classic User Environments. Remote Sens. 2024, 16, 2511. [Google Scholar] [CrossRef]
- Feng, D.; Wang, C.; He, C.; Zhuang, Y.; Xia, X.G. Kalman-filter-based integration of IMU and UWB for high-accuracy indoor positioning and navigation. IEEE Internet Things J. 2020, 7, 3133–3146. [Google Scholar] [CrossRef]
- You, W.; Li, F.; Liao, L.; Huang, M. Data fusion of UWB and IMU based on unscented Kalman filter for indoor localization of quadrotor UAV. IEEE Access 2020, 8, 64971–64981. [Google Scholar] [CrossRef]
- Marković, L.; Kovač, M.; Milijas, R.; Car, M.; Bogdan, S. Error state extended kalman filter multi-sensor fusion for unmanned aerial vehicle localization in gps and magnetometer denied indoor environments. In Proceedings of the 2022 International Conference on Unmanned Aircraft Systems (ICUAS), Dubrovnik, Croatia, 21–24 June 2022; pp. 184–190. [Google Scholar]
- Zheng, S.; Li, Z.; Liu, Y.; Zhang, H.; Zou, X. An optimization-based UWB-IMU fusion framework for UGV. IEEE Sens. J. 2022, 22, 4369–4377. [Google Scholar] [CrossRef]
- Fang, X.; Wang, C.; Nguyen, T.M.; Xie, L. Graph optimization approach to range-based localization. IEEE Trans. Syst. Man, Cybern. Syst. 2020, 51, 6830–6841. [Google Scholar] [CrossRef]
- Kang, J.; Park, K.; Arjmandi, Z.; Sohn, G.; Shahbazi, M.; Ménard, P. Ultra-wideband aided UAV positioning using incremental smoothing with ranges and multilateration. In Proceedings of the 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Las Vegas, NV, USA, 25–29 October 2020; pp. 4529–4536. [Google Scholar]
- Song, Y.; Hsu, L.T. Tightly coupled integrated navigation system via factor graph for UAV indoor localization. Aerosp. Sci. Technol. 2021, 108, 106370. [Google Scholar] [CrossRef]
- Chen, Z.; Xu, A.; Sui, X.; Hao, Y.; Zhang, C.; Shi, Z. NLOS identification-and correction-focused fusion of UWB and LiDAR-SLAM based on factor graph optimization for high-precision positioning with reduced drift. Remote Sens. 2022, 14, 4258. [Google Scholar] [CrossRef]
- Mercorelli, P. A switching Kalman Filter for sensorless control of a hybrid hydraulic piezo actuator using MPC for camless internal combustion engines. In Proceedings of the 2012 IEEE International Conference on Control Applications, Dubrovnik, Croatia, 3–5 October 2012; pp. 980–985. [Google Scholar]
- Qin, T.; Cao, S.; Pan, J.; Shen, S. A general optimization-based framework for global pose estimation with multiple sensors. arXiv 2019, arXiv:1901.03642. [Google Scholar] [CrossRef]
- Xu, W.; Cai, Y.; He, D.; Lin, J.; Zhang, F. Fast-lio2: Fast direct lidar-inertial odometry. IEEE Trans. Robot. 2022, 38, 2053–2073. [Google Scholar] [CrossRef]
- Mercorelli, P. Recent advances in intelligent algorithms for fault detection and diagnosis. Sensors 2024, 24, 2656. [Google Scholar] [CrossRef] [PubMed]









| Methods | Square Trajectory | Circular Trajectory | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RMSE | Mean | Sth | Min | Max | Median | RMSE | Mean | Sth | Min | Max | Median | |
| LS-Raw | 0.1736 | 0.1469 | 0.0926 | 0.0127 | 0.6076 | 0.1209 | 0.1709 | 0.1467 | 0.0878 | 0.0097 | 0.5756 | 0.1290 |
| LS-OJ | 0.1617 | 0.1357 | 0.0880 | 0.0103 | 0.6019 | 0.1142 | 0.1434 | 0.1246 | 0.0710 | 0.0147 | 0.3764 | 0.1144 |
| NLS-Raw | 0.2584 | 0.2228 | 0.1309 | 0.0259 | 0.7701 | 0.1856 | 0.2268 | 0.1576 | 0.1631 | 0.0114 | 1.1560 | 0.1068 |
| NLS-OJ | 0.2468 | 0.2163 | 0.1188 | 0.0201 | 0.6720 | 0.1851 | 0.1915 | 0.1392 | 0.1315 | 0.0125 | 0.7675 | 0.1016 |
| PF-OJ | 0.2967 | 0.2774 | 0.1053 | 0.0615 | 0.5569 | 0.2604 | 0.1547 | 0.1149 | 0.1036 | 0.0080 | 0.7522 | 0.0786 |
| VIO | 0.1692 | 0.1519 | 0.0746 | 0.0058 | 0.3174 | 0.1335 | 0.2452 | 0.2239 | 0.0999 | 0.0396 | 0.4108 | 0.2270 |
| EKF-LC-Raw | 0.3042 | 0.2744 | 0.1313 | 0.0627 | 0.8757 | 0.2397 | 0.2097 | 0.1453 | 0.1512 | 0.0117 | 1.0306 | 0.0991 |
| ESKF-LC-Raw | 0.1402 | 0.1212 | 0.0704 | 0.0078 | 0.3823 | 0.1132 | 0.1585 | 0.1457 | 0.0624 | 0.0035 | 0.5564 | 0.1595 |
| OURS | 0.0972 | 0.0864 | 0.0446 | 0.0056 | 0.3207 | 0.0779 | 0.0944 | 0.0863 | 0.0382 | 0.0041 | 0.3588 | 0.0871 |
| Methods | Square Trajectory | Circular Trajectory | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RMSE | Mean | Std | Min | Max | Median | RMSE | Mean | Std | Min | Max | Median | |
| TC Both-RAW | 0.1013 | 0.0910 | 0.0445 | 0.0086 | 0.2560 | 0.0849 | 0.0955 | 0.0869 | 0.0397 | 0.0095 | 0.2019 | 0.0880 |
| TC TFmini-OJ | 0.1082 | 0.0995 | 0.0425 | 0.0039 | 0.2713 | 0.0968 | 0.0990 | 0.0907 | 0.0396 | 0.0061 | 0.2304 | 0.0878 |
| TC VIO-OJ | 0.1269 | 0.1201 | 0.0411 | 0.0246 | 0.2973 | 0.1148 | 0.1063 | 0.1000 | 0.0362 | 0.0099 | 0.3081 | 0.1006 |
| TC UWB-OJ | 0.3884 | 0.3063 | 0.2388 | 0.0191 | 0.9226 | 0.1878 | 0.1460 | 0.1252 | 0.0752 | 0.0078 | 0.4397 | 0.1017 |
| OURS | 0.0972 | 0.0864 | 0.0446 | 0.0056 | 0.3207 | 0.0779 | 0.0944 | 0.0863 | 0.0382 | 0.0041 | 0.3588 | 0.0871 |
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zhao, J.; Deng, Z.; Hu, E.; Su, W.; Lou, B.; Liu, Y. An Indoor UAV Localization Framework with ESKF Tightly-Coupled Fusion and Multi-Epoch UWB Outlier Rejection. Sensors 2025, 25, 7673. https://doi.org/10.3390/s25247673
Zhao J, Deng Z, Hu E, Su W, Lou B, Liu Y. An Indoor UAV Localization Framework with ESKF Tightly-Coupled Fusion and Multi-Epoch UWB Outlier Rejection. Sensors. 2025; 25(24):7673. https://doi.org/10.3390/s25247673
Chicago/Turabian StyleZhao, Jianmin, Zhongliang Deng, Enwen Hu, Wenju Su, Boyang Lou, and Yanxu Liu. 2025. "An Indoor UAV Localization Framework with ESKF Tightly-Coupled Fusion and Multi-Epoch UWB Outlier Rejection" Sensors 25, no. 24: 7673. https://doi.org/10.3390/s25247673
APA StyleZhao, J., Deng, Z., Hu, E., Su, W., Lou, B., & Liu, Y. (2025). An Indoor UAV Localization Framework with ESKF Tightly-Coupled Fusion and Multi-Epoch UWB Outlier Rejection. Sensors, 25(24), 7673. https://doi.org/10.3390/s25247673

