Smartphone Motion Mode Recognition

Itzik Klein, Yuval Solaz, Guy Ohayon2017 · DOI

TL;DR

This paper tackles the challenge of improving indoor localization using smartphone sensors by recognizing the user's motion mode and how they're holding their phone. They developed a machine learning approach that, after training on a single user's data, can accurately classify various smartphone modes (pocket, swing, texting, talking) across multiple users and devices, paving the way for more robust Pedestrian Dead Reckoning (PDR) systems.

What Problem Does This Paper Address?

Indoor localization is crucial for applications like health monitoring and emergency services, but it's difficult because GPS signals are unreliable indoors. Pedestrian Dead Reckoning (PDR) is a promising alternative that uses smartphone inertial sensors (accelerometers, gyroscopes) to track a person's movement. However, the accuracy of PDR heavily depends on correctly estimating step length and heading, which are significantly influenced by how the user is holding their phone (e.g., in a pocket, hand) and their current activity (e.g., walking, running). This variability makes it hard for PDR algorithms to maintain accuracy. This paper aims to solve this by developing a system that can automatically recognize and classify these different "smartphone modes" and "pedestrian modes" to adapt PDR parameters accordingly.

Methods

The core of this research is a machine learning pipeline for smartphone mode recognition. The process involves:

  1. Data Acquisition: Collecting raw data from smartphone accelerometers and gyroscopes.
  2. Preprocessing: Applying noise reduction and outlier rejection (samples beyond 3 standard deviations).
  3. Feature Extraction: This is a key part. They focus on the magnitudes of the specific force (from accelerometers) and angular rate (from gyroscopes) vectors, as these are less sensitive to phone orientation. They extract two types of features:
  4. Statistical Features: Mean, median, standard deviation, average absolute difference, interquartile range, skewness, kurtosis, signal energy, signal magnitude area, max, min, and amplitude.
  5. Time-Domain Features: Number of peaks.
  6. Cross-Sensor Features: Gyro-Accelerometer Correlation, Gyro-Accelerometer Maximum, and Gyro-Accelerometer Standard Deviation.
  7. Classification: They train and evaluate four different machine learning classifiers: Support Vector Machine (SVM), Random Forest (RF), K-nearest neighbor (KNN), and Multi-layer Perceptron (MLP). The strategy involves training the model on data from a single user and a single phone, and then testing its performance on data from multiple users and multiple phones.

Datasets

The paper describes a dataset collected from a single user on a single smartphone during four modes: pocket, swing, texting, and talking while walking at normal or fast speeds. This data was split into training and testing sets. The test dataset was further collected from six individuals (five men, one woman) using different smartphones. The paper provides a table (Table 1) detailing the number of "windows" (data segments) used for training and testing across these modes. No new benchmark dataset was introduced; rather, they utilized their collected data for evaluation.

Key Insights and Ideas

  • Magnitude Matters: Focusing on the magnitude of sensor readings (specific force and angular rate) rather than raw vector components is crucial for robust mode recognition, as it mitigates the impact of phone orientation.
  • Single-User Training, Multi-User Testing: The proposed methodology of training a classifier on data from just one user and one phone, then testing it on a diverse set of users and phones, is a significant practical advantage. It suggests that a model can generalize well without needing extensive data from every possible user or device.
  • Feature Importance: The research identified key features that are most indicative of the smartphone mode. The gyro amplitude was found to be the most dominant feature, followed by accelerometer amplitude and their multiplication. This highlights the critical role of rotational and translational motion in distinguishing modes.
  • Random Forest's Strength: Among the tested classifiers, Random Forest (RF) emerged as the top performer, achieving the highest accuracy. This ensemble method's ability to handle complex interactions between features likely contributed to its success.

Key Results

The study achieved promising results in smartphone mode recognition:

  • High Accuracy: All tested classifiers achieved an accuracy above 82.5% on the test dataset.
  • Best Performer: The Random Forest (RF) classifier achieved the highest accuracy of 86.7%.
  • Confusion Matrix Insights: The confusion matrix revealed that the "talking" mode was recognized with the highest accuracy (96%), while the "swing" mode was the most challenging to distinguish from "texting" and "pocket" modes (79% accuracy).

Limitations and Future Work

  • Limitations: The paper acknowledges that collecting data from multiple users and phones during the training phase would likely make the classifier more robust. Their current methodology relies on single-user training.
  • Future Work: The authors suggest that this mode recognition approach can significantly improve the performance of PDR algorithms by allowing them to adapt their parameters based on the recognized mode. Further research could explore incorporating more sensor data (e.g., magnetometer, barometer) or developing more sophisticated feature extraction techniques.

Summary updated

Abstract

The possibility of using mobile devices, such as smartphones, for locating a person indoor is becoming more attractive for many applications. Among them are health care and safety services, commercial and emergency applications. One of the approaches to find the smartphone position is known as Pedestrian Dead Reckoning (PDR). PDR relies on the smartphone low-cost sensors, such as accelerometers, gyroscopes, barometer and magnetometers. An appropriate calibration phase to find the step length algorithm gains is required before PDR can be applied. These gains are very sensitive to the user and smartphone mode. In this research, we employ machine learning classifications algorithms in order to recognize and classify the pedestrian and smartphone modes. A methodology of training on a single user and testing on multiple users is proposed and experimentally evaluated Results show successes in classifying the user and smart phone modes.
BibTeX
@misc{klein2017smartphone,
  author = {Itzik Klein and Yuval Solaz and Guy Ohayon},
  title = {{Smartphone Motion Mode Recognition}},
  year = {2017},
  doi = {10.3390/ecsa-4-04929},
}
Figure