Motion-State-Aware Adaptive Step-Length Smartphone PDR for GPS-Denied Pedestrian Localization
Huabang Liu, Wanfeng Dou, Hexing WangSmartphone-based pedestrian dead reckoning (PDR) provides an infrastructure-free solution for two-dimensional (2D) planar localization in GPS-denied environments, but its open-loop nature makes it sensitive to accumulated step-length and heading errors. These errors grow when pedestrian actions and phone carrying modes change, because conventional methods use a fixed step-length model with a constant Weinberg coefficient. This paper proposes a motion-state-aware PDR method with two key designs. First, a joint motion state defined by action type and carrying mode is recognized from smartphone sensor data using a random-forest classifier. Second, the Weinberg coefficient is modeled through two adaptive variants: a state-wise linear model as the main lightweight adaptation mechanism, and a Transformer-enhanced extension that uses historical step-feature sequences to provide additional temporal smoothing for the per-step coefficient K. Both variants keep the predicted coefficient inside the Weinberg equation to preserve the physical structure of step-length estimation, with offline training minimizing the distance error over each calibrated segment. Heading is estimated by fusing gyroscope increments and magnetometer observations to improve continuity under magnetic disturbance. Experiments on routes with frequent motion-state transitions, including a representative indoor corridor with magnetic disturbance and turns, compare a fixed-parameter baseline and two established adaptive step-length baselines against the proposed variants using coefficient-modeling diagnostics and trajectory-level metrics. More challenging deployments such as underground or multi-floor environments are left for future work.