Accurate pedestrian localization in global navigation satellite system (GNSS)-denied environments remains a critical challenge. This paper proposes an IMU-based fusion method to address the limitations of current pedestrian dead reckoning (PDR) systems in gait detection and heading drift. The method integrates an Adaptive Time Thresholding algorithm based on Estimated Gait Period (ATT-EGP), a dynamic gyroscope error model with zero-bias compensation for drift reduction and a robust heuristic drift elimination (HDE) algorithm for heading correction. The ATT-EGP algorithm dynamically adjusts thresholds based on real-time gait period estimation, demonstrating consistent performance across three participants. Experimental results show gait detection errors in the range of 0.8%-1.4% for running, 0.6%-2.0% for normal walking, and 0.2%-1.2% for fast walking, achieving improvements of 51.8%-98.3% compared to conventional dual-threshold methods. Combined with the robust HDE algorithm, the system significantly reduces endpoint errors in pedestrian trajectories. Experimental results demonstrate average endpoint error reductions of 54.4% in walking mode, 63.3% in running mode, and 93.1% in multi-motion mode compared to traditional peak detection methods.
In environments where global navigation satellite system (GNSS) signals are unavailable or unreliable, inertial measurement unit (IMU)-based pedestrian dead reckoning (PDR) offers considerable potential because it operates independently of external infrastructure. However, maintaining stable and accurate positioning across varying conditions remains challenging. To address this issue, this paper proposes a large language model (LLM)-guided IMU-PDR framework for detection and error correction. The proposed method transforms IMU time-series data into a structured representation tailored to PDR tasks and incorporates domain-specific prior knowledge into prompts to guide the LLM in step-count detection, step-length estimation, heading correction, and subsequent trajectory reconstruction. Experimental results demonstrate that the proposed framework improves step-count detection accuracy, achieves competitive step-length estimation performance, effectively suppresses heading drift, and enhances the overall consistency of reconstructed trajectories. These results suggest that, when guided by domain-specific prior knowledge, LLMs have the potential to interpret and reason effectively over IMU signals, providing a new approach to intelligent detection and error correction in IMU-PDR.