Source-linked AI summary

Smartphone Indoor Localization Enhanced by Hierarchical Multi-Sensor Context Recognition

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

arXiv:2610.39691v1cs.LGcs.RO

TL;DR

Indoor PDR is low-cost and infrastructure-free, but contextual cues are often combined despite addressing different localization errors. The paper uses hierarchical multi-sensor recognition to route scene and activity cues to PDR and RoNIN compensation. Ablations report that removing gate attraction most degrades Route A, while removing the holding cue most degrades Route B.

  • Problem

    Existing methods often compress structural scene cues and phone-use modes into one event stream or local correction, despite their relevance to different localization errors.

    Source: §1 · p. 1
  • Method

    The framework predicts environment, scene, and activity probabilities and converts them into scene-event segments for constrained PDR and action-context segments for RoNIN compensation.

    Source: §1 · p. 2
  • Results

    Ablations report that removing gate attraction most degrades Route A, while removing the holding cue most degrades Route B.

    Source: §5.4 · p. 12
  • Takeaways & Limitations

    The results highlight hierarchical context as a semantic interface linking scene structure to PDR constraints and phone-use changes to learned drift compensation.

    Source: §6 · p. 12

    The scene-constrained PDR branch relies on prior map information, and evaluation covers only two route types, two indoor environments, and one smartphone model.

    Source: §6 · p. 13

Abstract

from arXiv · show

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.

1 INTRODUCTION

Smartphone PDR offers low-cost, infrastructure-free indoor localization, but structural transitions and changing phone-use modes contribute to accumulating errors. This paper maps hierarchical context recognition to distinct localization corrections: scene events guide PDR, while activity context guides learned compensation.

1 INTRODUCTION

  • Indoor localization remains important because satellite signals are obstructed indoors and underground, making high-precision GNSS difficult to extend to those settings,.The target is reliable, low-cost, robust smartphone positioning.Source: §1 · p. 1
  • PDR is self-contained and independent of external signal coverage, but step-length error, heading drift, and mishandled scene or floor transitions accumulate localization error –.Wi-Fi and Bluetooth are affected by blockage, environmental change, and device heterogeneity, while infrastructure-assisted alternatives bring deployment and maintenance costs.Source: §1 · p. 1
  • Existing semantic-aided methods often collapse structural scene cues and phone-use cues into one event stream or local corrections, limiting robustness across transitions and action changes.Corridors, stairs, elevators, gates, and semi-open areas impose different trajectory constraints, while holding, calling, arm-swinging, and pocket modes change inertial observations.Source: §1 · p. 1
  • Environment, scene, and activity semantics target different error sources, from transition handling and structural constraints to carrying-mode-dependent inertial drift.Scene cues can trigger heading constraints, landmark attraction, vertical-transition handling, and backtracking smoothing; activity cues can identify phone-use modes for drift compensation.Source: §1 · p. 1
  • The framework predicts environment, scene, and activity probabilities, then converts them into scene-event and action-context segments for separate localization branches.Scene events guide scene-constrained PDR correction, while action context guides action-aware RoNIN compensation.Source: §1 · p. 2
  • The paper combines multi-sensor hierarchical recognition with localization-oriented semantic processing and trajectory correction, including vertical-transition handling and backtracking smoothing.The stated contributions include multi-route experimental verification.Source: §1 · p. 2

2 RELATED WORK

Prior indoor localization work spans PDR, semantic-aided methods, and learned inertial odometry, but contextual cues are often tied to a single dead-reckoning chain or compressed into one event sequence. This work instead provides a hierarchical semantic interface that routes scene and activity cues to different localization backends.

2 RELATED WORK

  • Context-aware PDR adds motion-state adaptation, floor-transition handling, or map structure, but its correction rules are usually tied to a single dead-reckoning chain –,,,.That design makes contextual cues difficult to reuse in learned inertial odometry or other localization schemes.Source: §2 · pp. 2–3
  • Semantic-aided localization uses recognized labels as landmarks, sequence constraints, topology cues, or graph factors, yet many methods merge distinct semantic labels into one time-ordered event sequence [9],,,,.This can make structural scene cues difficult to distinguish from action and carrying-mode cues.Source: §2 · p. 3
  • Learned inertial odometry methods provide complementary trajectory baselines, but generally lack an explicit interface for external scene-structure or phone-use correction cues, –, –.The proposed interface converts environment and scene outputs to scene-event segments for PDR, and activity outputs to action-context segments for RoNIN compensation.Source: §2 · p. 3

3.1 Hierarchical Context Semantics

The hierarchical context model separates environment, scene, and activity semantics so downstream localization modules can use distinct context cues. Its multi-sensor architecture extracts sensor-level features, aggregates cross-sensor relations, and decodes probabilities under top-down semantic constraints.

3.1 Hierarchical Context Semantics

  • The recognition model preserves three context layers: environment, navigation scene, and phone-use or carrying activity.The stated categories include indoor, semi-open, and outdoor environments; scenes such as corridors, stairs, and elevators; and activities such as holding, calling, arm-swinging, and pocket use.Source: §3.1 · pp. 3–4
  • The model extracts temporal and mask-aware statistics for each sensor, aggregates cross-sensor relations with graph attention, and decodes probabilities under top-down semantic constraints.The caption describes a fully connected graph-attention module.Source: Figure 2 · p. 4
  • The semantic layers retain the cues needed by downstream correction: scene predictions trigger structural PDR constraints, while activity predictions condition RoNIN compensation.The section distinguishes the localization roles of scene and activity predictions.Source: §3.1 · pp. 3–4

3.2 Data-Model Jointly Driven Multi-Sensor Context Recognition Model

The model turns heterogeneous smartphone sensing into environment, scene, and activity probabilities through temporal and statistical encoding, adaptive fusion, cross-sensor aggregation, and hierarchical decoding. Its outputs retain context at each level for downstream localization correction.

3.2 Data-Model Jointly Driven Multi-Sensor Context Recognition Model

  • The recognition front end connects heterogeneous smartphone sensing to localization correction through sensor-wise encoding, cross-sensor aggregation, and hierarchical semantic decoding.It produces context probabilities, labels, and confidence scores for downstream modules.Source: §3.2 · p. 4

3.2.1 Sensor-Wise Temporal Encoding

  • Temporal encoding uses masked Transformer processing and pooling to capture step rhythm, local transitions, and longer-range dependencies in sensor signals.When a sensor-window has no valid sample, its temporal embedding is set to zero.Source: §3.2.1 · p. 4

3.2.2 Mask-Aware Statistical Encoding

  • Mask-aware statistics summarize valid samples per feature channel using root mean square, mean absolute deviation, and mean absolute change.Empty valid sets yield zero statistics; this branch supplies distributional evidence while reducing padding, missing-sample, and short-term-fluctuation effects.Source: §3.2.2 · p. 5

3.2.3 Adaptive Dual-View Fusion

  • Adaptive gating balances temporal and statistical views, favoring temporal evidence for distinctive motion and stable statistics for noisy or weakly structured signals.The fused sensor-wise embedding combines the two views.Source: §3.2.3 · p. 5

3.2.4 Cross-Sensor Relational Aggregation

  • Stacked graph-attention layers model relations among sensor embeddings, then global mean pooling forms a window-level representation of cross-modal cues.The aggregated cues include inertial, orientation, pressure, light, and wireless signals.Source: §3.2.4 · p. 5

3.2.5 Hierarchical Semantic Decoding

  • Hierarchical decoding predicts environment first, conditions scene on environment, and conditions activity on both upper-level outputs to preserve coarse-to-fine semantics.Outdoor or unavailable scene labels are excluded from scene loss while environment and activity remain supervised; a hard admissibility filter is reserved for low-confidence consistency postprocessing.Source: §3.2.5 · p. 5

3.3 Recognition-to-Localization Interface

The interface converts window-level hierarchical predictions into temporally aligned scene-event and action-context segments. These segments supply distinct inputs to scene-constrained PDR correction and action-aware position compensation.

3.3 Recognition-to-Localization Interface

  • Semantic outputs are organized into continuous, temporally aligned cues that serve as inputs to downstream localization refinement.The two segment types feed separate localization branches.Source: §3.3 · pp. 5–6
  • Window records carry dominant labels and confidence by semantic level; overlaps go to the higher-confidence record, and adjacent same-label records merge across gaps no larger than τg.Records are sorted by timestamp before overlap resolution and merging.Source: §3.3 · pp. 5–6
  • Scene-event segments use environment and scene labels to identify indoor-outdoor transitions and activate corridor constraints, entrance constraints, and vertical-transition handling.Outdoor-transition segment confidence uses environment confidence because scene labels are unavailable.Source: §3.3 · p. 6
  • Action-context segments guide action-aware compensation, modulating correction strength according to carrying mode and motion pattern.The scene-event and action-context segments form the inputs to the localization branches.Source: §3.3 · p. 6

4 AUXILIARY LOCALIZATION METHODS

The framework uses scene-event segments to correct map-guided PDR and action-context segments to compensate for carrying-mode-dependent drift in RoNIN. The two branches target distinct localization errors with context-specific corrections.

4 AUXILIARY LOCALIZATION METHODS

  • The auxiliary framework pairs scene-constrained PDR correction with action-aware RoNIN position compensation to address structural errors and carrying-mode-dependent drift.The two branches are summarized in Fig. 3.Source: §4 · p. 6

4.1 Scene-Constrained Auxiliary Localization for PDR

  • Reliable scene segments activate corridor-heading constraints and landmark attraction, with landmark triggers gated by temporal and spatial conditions.Stair, elevator, and outdoor-transition events must persist for at least two consecutive windows; corridor directions and correction parameters are selected for the deployment floor plan.Source: §4.1 · pp. 6–7
  • Map-guided PDR detects steps from acceleration peaks, estimates step length with the Weinberg model, shortens strides on validated stairs, and integrates steps using corrected headings.The start point, yaw offset, corridor directions, and landmarks share a floor-plan coordinate frame.Source: §4.1 · p. 7
  • Landmark corrections backtrack over the current buffered segment, distributing endpoint drift gradually; the fixed-lag buffer modifies only the uncommitted trajectory.Elevator handling retrospectively corrects the trajectory toward waiting and elevator positions, then locks it to the elevator state until the validated interval ends.Source: §4.1 · p. 7

4.2 Action-Aware RoNIN-Based Learned Position Compensation

  • The RoNIN branch predicts position corrections from frozen-backbone features and carrying-mode context, using a correction head with a confidence gate.The five context modes are holding, calling, arm-down, arm-swinging, and pocket; the gate permits larger corrections when motion mode implies stronger pose-induced drift.Source: §4.2 · pp. 7–8
  • The RoNIN correction head is trained while its backbone remains frozen, and its window-center corrections are smoothed and interpolated into a continuous trajectory.Conditioning on the full action-probability vector lets correction magnitude and gating adapt across carrying modes while preserving a complete output trajectory.Source: §4.2 · p. 8

5 EXPERIMENTS AND RESULTS

Experiments test scene-constrained PDR on a cross-floor route and action-aware RoNIN compensation on a route with phone-use switches, against LiDAR-SLAM references. Both branches reduce localization errors; localized analyses and ablations show that gains vary by transition and correction component.

5.1 Experimental Setup

  • Tests used LiDAR-SLAM references for multi-volunteer trajectories in two indoor environments over 400 m2, with Route A cross-floor and Route B spanning phone-use switches.Trajectories were synchronized and rigidly aligned in SE(2), without scale, before metric computation.Source: §5.1 · pp. 8–9

5.2 Comparative Experiments and Error Analysis

  • Route A scene-constrained PDR reduces ATE from 17.705 to 2.699 m, RTE@10m from 12.298 to 3.765 m, and APEmedian from 7.974 to 1.524 m versus PDR, also outperforming learned baselines.The comparison evaluates a multi-scene route with floor transitions.Source: §5.2 · p. 9, Table 6 · p. 10
  • Route B action-aware compensation reduces ATE from 6.902 to 3.411 m, RTE@10m from 2.211 to 1.707 m, and APEmedian from 6.457 to 3.851 m versus RoNIN.The route includes multiple phone-use switches.Source: §5.2 · p. 9, Table 6 · p. 10
  • Across both routes, displacement-error CDFs and APE time series show lower typical and long-tail errors, with lower error over most of each route.Route A has a brief fluctuation near a transition; Route B's advantage is clearer after carrying-mode changes.Source: §5.2 · p. 10, Figure 6 · p. 11

5.3 Gain Around Key Points

  • Route A gains are stronger around elevator and stair anchors than the gate, while Route B gains are clearer at calling-to-arm-swinging and arm-swinging-to-pocket switches than holding-to-calling.The holding-to-calling transition shows only moderate gain because the RoNIN baseline is already stable there.Source: §5.3 · p. 10, Figure 7 · p. 11

5.4 Ablation Study

  • On Route A, removing gate attraction causes the largest degradation, while backtracking smoothing also worsens all three metrics and corridor heading removal causes only a mild increase.Removing vertical-transition handling raises ATE and APEmedian, although local RTE@10m decreases.Source: §5.4 · p. 12, Table 7 · p. 12
  • On Route B, all four action cues contribute to route-level consistency, with holding-cue removal causing the largest degradation; median APE does not rise monotonically for every ablation.The ablations show clearer deviations after action-switch regions.Source: §5.4 · p. 12, Table 7 · p. 12

6 CONCLUSION

The conclusion presents hierarchical context as a semantic interface linking scene cues to PDR constraints and activity cues to learned drift compensation. Its effectiveness depends on cue quality, and the evaluation and map reliance limit the scope of the findings.

6 CONCLUSION

  • The framework links scene cues to PDR constraints and activity cues to learned drift compensation, making hierarchical context an interface between recognition and trajectory correction.Scene cues express structural opportunities for constraining trajectories, while activity cues identify phone-use changes relevant to learned compensation.Source: §6 · p. 12
  • Semantic enhancement depends on cues being reliable, temporally stable, and aligned with the localization errors to be corrected.Source: §6 · p. 13
  • Scene-constrained PDR relies on map priors, and incomplete or outdated maps may weaken corrections, especially in changing indoor spaces.Evaluation covered two route types in two indoor environments with one smartphone model; broader generalization requires validation.Source: §6 · p. 13
  • Future work proposes online map adaptation, landmark discovery, broader evaluation, and more adaptive semantic triggering.The paper identifies multi-floor public buildings, transportation hubs, construction sites, and emergency-response environments as potential application settings.Source: §6 · p. 13
Loading 2610.39691v1…