A Novel Arithmetic Optimization PDR Algorithm for Smartphones
Abstract
1. Introduction
2. The Smartphone-Based PDR System
2.1. Step Detection and Step-Length Estimation
2.2. Heading Correction
3. The Smartphone-Based AO-PDR System
| Algorithm 1: Smartphone-based AO-PDR system |
| Inputs: , , , , , , , , , |
| AOA system |
| While < do |
| Calculate , , and by Equations (19)–(24) |
| Exploration phase |
| If then |
| Else |
| End if |
| Exploitation phase |
| If then |
| Else |
| End if |
| PDR system |
| Update , , , , , |
| Calculate , , by Equations (2)–(10) |
| For := 3 To num do |
| Calculate , by Equations (11) and (14) |
| If = 1 || = 1 do |
| else |
| End if |
| End for |
| Update , by Equation (1) |
| Output: , , , |
4. Experimental Verification and Analysis
4.1. Parameter Optimization Experiment
4.2. Pedestrian Positioning Experiment
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Shu, Y.; Xu, P.; Niu, X.; Chen, Q.; Qiao, L.; Liu, J. High-rate attitude determination of moving vehicles with GNSS: GPS, BDS, GLONASS, and Galileo. IEEE Trans. Instrum. Meas. 2022, 71, 1–13. [Google Scholar] [CrossRef]
- Cheng, S.; Wang, F.; Li, G.; Geng, J. Single-frequency multi-GNSS PPP-RTK for smartphone rapid centimeter-level positioning. IEEE Sens. J. 2023, 23, 21553–21561. [Google Scholar] [CrossRef]
- Niu, X.; Liu, T.; Kuang, J.; Li, Y. A novel position and orientation system for pedestrian indoor mobile mapping system. IEEE Sens. J. 2020, 21, 2104–2114. [Google Scholar] [CrossRef]
- Zhou, Z.; Feng, W.; Li, P.; Liu, Z.; Xu, X.; Yao, Y. A fusion method of pedestrian dead reckoning and pseudo indoor plan based on conditional random field. Measurement 2023, 207, 112417. [Google Scholar] [CrossRef]
- Zhang, L.; Jiao, K.; He, W.; Wang, X. Anchor deployment optimization for range-based indoor positioning systems in non-line-of-sight environment. IEEE Sens. J. 2024, 24, 24405–24420. [Google Scholar] [CrossRef]
- You, Y.; Wu, C. Hybrid indoor positioning system for pedestrians with swinging arms based on smartphone IMU and RSSI of BLE. IEEE Trans. Instrum. Meas. 2021, 70, 1–15. [Google Scholar] [CrossRef]
- Dinh, T.-M.T.; Duong, N.-S.; Sandrasegaran, K. Smartphone-based indoor positioning using BLE iBeacon and reliable lightweight fingerprint map. IEEE Sens. J. 2020, 20, 10283–10294. [Google Scholar] [CrossRef]
- Zhang, Y.; Wang, N.; Weng, S.; Li, M.; Mou, D.; Han, Y. Emergency Positioning Method of Indoor Pedestrian in Non-Cooperative Navigation Environment Based on Virtual Reference Node Array/INS. IEEE Sens. J. 2020, 20, 10913–10923. [Google Scholar] [CrossRef]
- Zhu, X.; Yi, J.; Cheng, J.; He, L. Adapted error map based mobile robot UWB indoor positioning. IEEE Trans. Instrum. Meas. 2020, 69, 6336–6350. [Google Scholar] [CrossRef]
- Yang, Y.; Wang, X.; Li, D.; Chen, D.; Zhang, Q. An improved indoor 3-D ultrawideband positioning method by particle swarm optimization algorithm. IEEE Trans. Instrum. Meas. 2022, 71, 1–11. [Google Scholar] [CrossRef]
- Tao, Y.; Zhao, L. A novel system for WiFi radio map automatic adaptation and indoor positioning. IEEE Trans. Veh. Technol. 2018, 67, 10683–10692. [Google Scholar] [CrossRef]
- Feng, X.; Nguyen, K.A.; Luo, Z. A wi-fi rss-rtt indoor positioning model based on dynamic model switching algorithm. IEEE J. Indoor Seamless Position Navig. 2024, 2, 151–165. [Google Scholar] [CrossRef]
- Sun, M.; Wang, Y.; Zheng, N.; Chen, G.; Li, Z.; Bi, J. Smartphone based indoor localization system using Wi-Fi RTT/Magnetic/PDR based on an improved particle filter. IEEE Trans. Instrum. Meas. 2025, 74, 1–16. [Google Scholar] [CrossRef]
- Tang, C.; Sun, W.; Zhang, X.; Zheng, J.; Wu, W.; Sun, J. A novel fingerprint positioning method applying vision-based definition for wifi-based localization. IEEE Sens. J. 2023, 23, 16092–16106. [Google Scholar] [CrossRef]
- Yan, J.; He, G.; Basiri, A.; Hancock, C. 3-D passive-vision-aided pedestrian dead reckoning for indoor positioning. IEEE Trans. Instrum. Meas. 2019, 69, 1370–1386. [Google Scholar] [CrossRef]
- Jia, S.; Ma, L.; Yang, S.; Qin, D. A novel visual indoor positioning method with efficient image deblurring. IEEE Trans. Mob. Comput. 2022, 22, 3757–3773. [Google Scholar] [CrossRef]
- De Angelis, G.; Pasku, V.; De Angelis, A.; Dionigi, M.; Mongiardo, M.; Moschitta, A.; Carbone, P. An indoor AC magnetic positioning system. IEEE Trans. Instrum. Meas. 2014, 64, 1267–1275. [Google Scholar] [CrossRef]
- Yeh, S.-C.; Hsu, W.-H.; Lin, W.-Y.; Wu, Y.-F. Study on an indoor positioning system using Earth’s magnetic field. IEEE Trans. Instrum. Meas. 2019, 69, 865–872. [Google Scholar] [CrossRef]
- Kusche, R.; Schmidt, S.O.; Hellbrück, H. Indoor positioning via artificial magnetic fields. IEEE Trans. Instrum. Meas. 2021, 70, 1–9. [Google Scholar] [CrossRef]
- Lin, F.; Cai, Q.; Liu, Y.; Chen, Y.; Huang, J.; Peng, H. Pedestrian dead reckoning method based on array imu. IEEE Sens. J. 2024, 24, 37753–37763. [Google Scholar] [CrossRef]
- Shi, L.-F.; Zhao, Y.-L.; Liu, G.-X.; Chen, S.; Wang, Y.; Shi, Y.-F. A robust pedestrian dead reckoning system using low-cost magnetic and inertial sensors. IEEE Trans. Instrum. Meas. 2018, 68, 2996–3003. [Google Scholar] [CrossRef]
- Jiang, C.; Chen, Y.; Chen, C.; Jia, J.; Sun, H.; Wang, T.; Hyyppä, J. Smartphone PDR/GNSS integration via factor graph optimization for pedestrian navigation. IEEE Trans. Instrum. Meas. 2022, 71, 1–12. [Google Scholar] [CrossRef]
- Xia, H.; Zuo, J.; Liu, S.; Qiao, Y. Indoor localization on smartphones using built-in sensors and map constraints. IEEE Trans. Instrum. Meas. 2018, 68, 1189–1198. [Google Scholar] [CrossRef]
- Wang, Q.; Fu, M.; Wang, J.; Luo, H.; Sun, L.; Ma, Z.; Li, W.; Zhang, C.; Huang, R.; Li, X. Recent advances in pedestrian inertial navigation based on smartphone: A review. IEEE Sens. J. 2022, 22, 22319–22343. [Google Scholar] [CrossRef]
- Jin, Z.; Zhang, X.; Liu, G.; Guo, M.; Su, Y.; Lu, M. Flexible gaits adaptive pedestrian dead reckoning system: Precision positioning across diverse gaits. IEEE Sens. J. 2025, 25, 15431–15441. [Google Scholar] [CrossRef]
- Wu, L.; Guo, S.; Han, L.; Baris, C.A. Indoor positioning method for pedestrian dead reckoning based on multi-source sensors. Measurement 2024, 229, 114416. [Google Scholar] [CrossRef]
- Yao, Y.; Pan, L.; Fen, W.; Xu, X.; Liang, X.; Xu, X. A robust step detection and stride length estimation for pedestrian dead reckoning using a smartphone. IEEE Sens. J. 2020, 20, 9685–9697. [Google Scholar] [CrossRef]
- Li, W.; Chen, R.; Yu, Y.; Wu, Y.; Zhou, H. Pedestrian dead reckoning with novel heading estimation under magnetic interference and multiple smartphone postures. Measurement 2021, 182, 109610. [Google Scholar] [CrossRef]
- Harindranath, A.; Arora, M. A systematic review of user-conducted calibration methods for MEMS-based IMUs. Measurement 2024, 225, 114001. [Google Scholar] [CrossRef]
- Zhao, G.; Wang, X.; Zhao, H.; Jiang, Z. An improved pedestrian dead reckoning algorithm based on smartphone built-in MEMS sensors. AEU-Int. J. Electron. Commun. 2023, 168, 154674. [Google Scholar] [CrossRef]
- Bi, J.; Zhen, J.; Yao, G.; Sang, W.; Ning, Y.; Guo, Q. Improved Finite State Machine Step Detection Algorithm for Smartphone. Geomat. Inf. Sci. Wuhan Univ. 2023, 48, 232–238. [Google Scholar]
- Dirican, A.C.; Aksoy, S. Step counting using smartphone accelerometer and fast Fourier transform. Sigma J. Eng. Nat. Sci. 2017, 8, 175–182. [Google Scholar]
- Kochka, K.V.; Evseev, A.D.; Chugunov, A.A. Synthesis of the step detection and step length estimation algorithms based on imu measurements. In Proceedings of the 2023 International Russian Automation Conference (RusAutoCon), Sochi, Russia, 10–16 September 2023; pp. 763–768. [Google Scholar]
- Wu, Q.; Li, Z.; Shao, K. Location accuracy indicator enhanced method based on MFM/PDR integration using Kalman filter for indoor positioning. IEEE Sens. J. 2023, 24, 4831–4840. [Google Scholar] [CrossRef]
- Yamagishi, S.; Jing, L. The Extended Kalman Filter with Reduced Computation Time for Pedestrian Dead Reckoning. IEEE Sens. Lett. 2023, 7, 1–4. [Google Scholar] [CrossRef]
- Tong, X.; Su, Y.; Li, Z.; Si, C.; Han, G.; Ning, J.; Yang, F. A double-step unscented Kalman filter and HMM-based zero-velocity update for pedestrian dead reckoning using MEMS sensors. IEEE Trans. Ind. Electron. 2019, 67, 581–591. [Google Scholar] [CrossRef]
- Pei, L.; Liu, D.; Zou, D.; Choy, R.L.F.; Chen, Y.; He, Z. Optimal heading estimation based multidimensional particle filter for pedestrian indoor positioning. IEEE Access 2018, 6, 49705–49720. [Google Scholar] [CrossRef]
- Zhang, W.; Wei, D.; Yuan, H. The improved constraint methods for foot-mounted PDR system. IEEE Access 2020, 8, 31764–31779. [Google Scholar] [CrossRef]
- Faramarzi, A.; Heidarinejad, M.; Stephens, B.; Mirjalili, S. Equilibrium optimizer: A novel optimization algorithm. Knowl.-Based Syst. 2020, 191, 105190. [Google Scholar] [CrossRef]
- Victoria, A.H.; Maragatham, G. Automatic tuning of hyperparameters using Bayesian optimization. Evol. Syst. 2021, 12, 217–223. [Google Scholar] [CrossRef]
- Alsattar, H.A.; Zaidan, A.A.; Zaidan, B. Novel meta-heuristic bald eagle search optimization algorithm. Artif. Intell. Rev. 2020, 53, 2237–2264. [Google Scholar] [CrossRef]





















| Parameters | Stages | Values | Meanings |
|---|---|---|---|
| Step Detection | ∈[9.6, 10.4] | Binary threshold | |
| ∈[40, 60] | Sliding window size | ||
| Step Length Estimation | ∈[0.3, 0.8] | Step length estimation coefficient | |
| Heading Correction | ∈[13, 17] | Straight judgment threshold 1 | |
| ∈[8, 12] | Straight judgment threshold 2 | ||
| ∈[8, 12] | Main heading judgment threshold |
| Information | Experimenter1 | Experimenter2 | Experimenter3 | Experimenter4 |
|---|---|---|---|---|
| Gender | Male | Male | Female | Female |
| Height (cm) | 168 | 180 | 170 | 176 |
| Weight (kg) | 56 | 80 | 69 | 58 |
| Information | Xiaomi 10s | Huawei Mate 60 Pro | iPhone 14 Plus |
|---|---|---|---|
| Systems | MIUI 13.0.10 | HarmonyOS Next 5.1.0 | iOS 18.6.2 |
| Internal storage | 8G + 256G | 12G + 512G | 8G + 256G |
| Battery capacity | 4780 mAh | 5000 mAh | 4323 mAh |
| Processors | Qualcomm Snapdragon 870 | HiSilicon Kirin 9000S | Apple A15 Bionic |
| Accelerometers | lsm6dso Accelerometer Non-wakeup | rgm 3-axis Accelerometer | An accelerometer from Bosch Sensortec |
| Gyroscopes | lsm6dso Gyroscope Non-wakeup | rgm 3-axis Gyroscope | A gyroscope from Bosch Sensortec |
| Technical Indexes | Optimal Fitness | Running Time (s) | ||||||
|---|---|---|---|---|---|---|---|---|
| BO | BES | EO | AOA | BO | BES | EO | AOA | |
| Mean | 0.4418 | 0.6142 | 0.5378 | 0.2354 | 250.25 | 353.56 | 132.37 | 118.61 |
| Std | 0.3182 | 0.1213 | 0.1240 | 0.0858 | 19.88 | 27.70 | 33.19 | 9.28 |
| Min | 0.3510 | 0.4309 | 0.3766 | 0.1122 | 204.01 | 315.87 | 112.87 | 104.95 |
| Max | 1.8115 | 0.8257 | 0.8980 | 0.3905 | 292.75 | 464.22 | 348.91 | 151.68 |
| Technical Indexes | Optimal Fitness | Running Time (s) | ||||||
|---|---|---|---|---|---|---|---|---|
| BO | BES | EO | AOA | BO | BES | EO | AOA | |
| Mean | 2.8732 | 2.8486 | 2.9719 | 2.4685 | 271.18 | 625.99 | 220.65 | 211.09 |
| Std | 1.9691 | 2.0288 | 2.3137 | 2.3277 | 40.47 | 245.73 | 87.90 | 83.58 |
| Min | 0.2851 | 0.4074 | 0.4194 | 0.1071 | 200.31 | 333.31 | 115.73 | 117.69 |
| Max | 6.4583 | 6.6778 | 9.3628 | 6.4303 | 366.12 | 1011.28 | 356.67 | 343.61 |
| Algorithms | Step Detection | Step Length Estimation | Heading Correction | Parameters |
|---|---|---|---|---|
| FC-PDR | Binary detection with fixed parameters | Weinberg model with fixed parameter | The heading is solved by quaternion and corrected according to the correction. | [9.88, 50, 0.55, null, null, null] |
| FP-PDR | Binary detection with fixed parameters | Weinberg model with fixed parameter | Based on FC-PDR, the heading correction is adjusted according to the pedestrian motion state. | [9.88, 50, 0.55, 15, 10, 10] |
| AO-PDR | Binary detection with optimal parameters | Weinberg model with optimal parameter | Based on FP-PDR, the heading correction mechanism is established according to the motion state. | Obtained by the AOA |
| Technical Indexes | FC-PDR | FP-PDR | AO-PDR |
|---|---|---|---|
| Mean (m) | 5.3275 | 2.8403 | 0.3864 |
| Std (m) | 2.9086 | 2.4265 | 0.3410 |
| Min (m) | 1.0683 | 0.1434 | 0.0821 |
| Max (m) | 12.3194 | 9.6978 | 1.4416 |
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
Zhang, M.; Xu, A. A Novel Arithmetic Optimization PDR Algorithm for Smartphones. Sensors 2025, 25, 7129. https://doi.org/10.3390/s25237129
Zhang M, Xu A. A Novel Arithmetic Optimization PDR Algorithm for Smartphones. Sensors. 2025; 25(23):7129. https://doi.org/10.3390/s25237129
Chicago/Turabian StyleZhang, Mingze, and Aigong Xu. 2025. "A Novel Arithmetic Optimization PDR Algorithm for Smartphones" Sensors 25, no. 23: 7129. https://doi.org/10.3390/s25237129
APA StyleZhang, M., & Xu, A. (2025). A Novel Arithmetic Optimization PDR Algorithm for Smartphones. Sensors, 25(23), 7129. https://doi.org/10.3390/s25237129

