# An Improved Step Detection Algorithm for Indoor Navigation Problems with Pre-Determined Types of Activity

**Authors:** Michał Zieliński, Andrzej Chybicki, Aleksandra Borsuk

PMC · DOI: 10.3390/s25206358 · Sensors (Basel, Switzerland) · 2025-10-14

## TL;DR

This paper presents an improved step detection algorithm using LSTM networks to enhance indoor navigation accuracy with smartphones.

## Contribution

The novelty lies in using scenario-specific LSTM models to boost step detection accuracy in complex indoor movement conditions.

## Key findings

- A generalized LSTM model achieved 93% step detection accuracy across various indoor scenarios.
- Scenario-specific models reached up to 96% accuracy for activities like turning and stair use.
- Model specialization reduced false positives from non-walking activities and abrupt stops.

## Abstract

Indoor navigation (IN) systems are increasingly essential in environments where GPS signals are unreliable, such as hospitals, airports, and large public buildings. This study explores a smartphone-based approach to indoor positioning that leverages inertial sensor data for accurate step detection and counting, which are fundamental components of pedestrian dead reckoning. A long short-term memory (LSTM) network was trained to recognize step patterns across a variety of indoor movement scenarios. The generalized model achieved an average step detection accuracy of 93%, while scenario-specific models tailored to particular movement types such as turning, stair use, or interrupted walking achieved up to 96% accuracy. The results demonstrate that incorporating activity-specific training improves performance, particularly under complex motion conditions. Challenges such as false positives from abrupt stops and non-walking activities were reduced through model specialization. Although the system performed well offline, real-time deployment on mobile devices requires further optimization to address latency constraints. The proposed approach contributes to the development of accessible and cost-effective indoor navigation systems using widely available smartphone hardware and offers a foundation for future improvements in real-time pedestrian tracking and localization.

## Full-text entities

- **Diseases:** LSTM (MESH:D000088562), injury to (MESH:D014947)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12568306/full.md

## Figures

23 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12568306/full.md

## References

41 references — full list in the complete paper: https://tomesphere.com/paper/PMC12568306/full.md

---
Source: https://tomesphere.com/paper/PMC12568306