arXiv:2610.39691cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39691

Smartphone Indoor Localization Enhanced by Hierarchical Multi-Sensor Context Recognition

Wenhui Feng, Muhan Weng, Jianyu Liu, Xiansheng Yang, Hao Zhang, Liang Wang, Yuan Zhuang

Wenhui Feng¹, Muhan Weng¹, Jianyu Liu, Xiansheng Yang*, Hao Zhang, Liang Wang, and Yuan Zhuang, Senior Member, IEEE

Abstract—Smartphone indoor localization requires low-cost, robust positioning across scene transitions and phone-use variations. Pedestrian dead reckoning (PDR) enables infrastructure-free deployment but accumulates errors from heading drift, structural transitions, and carrying-mode changes. Existing methods often treat contextual cues as a single event stream or local correction signal, limiting their ability to address distinct localization errors. This paper presents a framework enhanced by hierarchical multi-sensor context recognition. A jointly data- and model-driven recognition model predicts environment, scene, and activity probabilities, which are converted into scene-event and action-context segments. Scene-event segments guide scene-constrained PDR correction through corridor heading constraints, landmark attraction, fixed-lag backtracking, and vertical-transition handling. Action-context segments drive action-aware RoNIN-based position compensation for carrying-mode-dependent drift. Experiments on cross-floor and multi-action trajectories against LiDAR-SLAM references show that the proposed framework outperforms PDR and representative learned inertial odometry baselines, demonstrating that hierarchical semantics provide reliable, localization-specific correction cues.

Index Terms—Smartphone indoor localization, Infrastructure-free positioning, Context recognition, Pedestrian dead reckoning, Inertial odometry, Trajectory correction

1. INTRODUCTION

Pedestrian indoor localization and navigation are key enabling technologies for smart buildings and smart communities, supporting location-aware services such as indoor autonomous systems, personal guidance, emergency response, and facility management. Outdoor positioning is widely supported by global navigation satellite systems (GNSS), such as GPS and BeiDou. In indoor and underground spaces, however, satellite signals are easily blocked by physical obstructions, leading to severe attenuation. As a result, high-precision GNSS services are difficult to extend to indoor and underground scenes. Reliable, low-cost, and robust smartphone indoor localization remains an important research problem [1], [2].

Various indoor localization techniques have been studied for this problem. Wi-Fi and Bluetooth solutions are relatively easy to deploy. Their accuracy and stability are affected by signal blockage, environmental change, and device heterogeneity. Ultra-wideband, acoustic, and other infrastructure-assisted methods can provide higher accuracy in controlled settings, but they introduce deployment costs and maintenance burdens. Smartphone-based multimodal tracking systems have fused radio, inertial, and

magnetic-field observations to improve indoor tracking robustness without dedicated user-side hardware [3], [4], [12]. Inertial localization based on smartphone sensors, especially pedestrian dead reckoning (PDR), is attractive because it is self-contained, low-cost, and independent of external signal coverage. However, PDR still suffers from step-length error, heading drift, and incorrect handling of scene or floor transitions, causing the localization error to accumulate over time [5]–[8].

Existing PDR and learned inertial localization methods usually rely on inertial measurements, gait models, map constraints, structural priors, or data-driven motion estimation [9], [10], [14]–[18]. Although these designs address important aspects of localization, they underuse hierarchical recognition of user context. Indoor space is not homogeneous: corridors, stairs, elevators, gates, and semi-open areas impose different trajectory constraints. At the same time, phone-use modes such as holding, calling, arm-swinging, and pocket placement change the observed inertial signals. Existing semantic-aided methods often compress these cues into one event stream or use them only for local correction, which limits robustness under complex scene transitions and action changes.

The key issue is that different semantic layers can address different localization error sources. Environment recognition can indicate indoor, semi-open, and outdoor states for confidence filtering and transition handling. Scene recognition can identify corridor, stair, elevator, gate, and related structural events to trigger heading constraints, landmark attraction, vertical-transition handling, and backtracking smoothing. Activity recognition can identify phone holding, calling, arm-swinging, and pocket modes to compensate carrying-mode-dependent inertial drift. In this way,

Wenhui Feng, Muhan Weng, and Jianyu Liu are with the Electronic Information School, Wuhan University, Wuhan, Hubei 430072, China (e-mail: {wenhuifeng, wengmuhan, jianyuliu}@whu.edu.cn).

Xiansheng Yang, Hao Zhang, and Yuan Zhuang are with the State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing (LIESMARS), Wuhan University, Wuhan, Hubei 430072, China (e-mail: {xiansheng.yang, 2021302191301, yuan.zhuang}@whu.edu.cn).

Liang Wang is with the Aerospace Information Research Institute, Chinese Academy of Sciences, Beijing 100094, China (e-mail: wangliang@aircas.ac.cn).

*Corresponding author: Xiansheng Yang.

¹Wenhui Feng and Muhan Weng contributed equally to this work.

Figure

Fig. 1. Overview of the key challenges and the proposed smartphone localization framework enhanced by hierarchical multi-sensor context recognition.

context recognition can convert classification outputs into correction cues that directly enhance trajectory estimation.

This paper presents a smartphone indoor localization framework enhanced by hierarchical multi-sensor context recognition. Multi-sensor temporal windows are first processed by a data-model jointly driven context recognition model to obtain environment-, scene-, and activity-level probabilities. The predicted semantic outputs are then converted into scene-event and action-context segments through a localization-oriented postprocessing interface. Scene events guide a scene-constrained PDR branch, while action context guides an action-aware RoNIN compensation branch.

The main contributions of this paper are summarized as follows:

  1. A smartphone localization framework enhanced by hierarchical multi-sensor context recognition that maps environment, scene, and activity recognition outputs to localization enhancement modules, enabling unified modeling from recognition results to trajectory correction.

  2. A data-model jointly driven multi-sensor context recog-

nition model that fuses temporal, statistical, and cross-sensor representations to predict hierarchical semantic probabilities for localization enhancement.

  1. A localization-oriented semantic postprocessing and trajectory correction mechanism, including scene-event extraction, confidence filtering, structural constraint triggering, vertical-transition handling, action-context compensation, and backtracking smoothing, with its effectiveness verified through multi-route experiments.

References (39)