Diffusion-Driven Inertial Generated Data for Smartphone Location Classification

Noa Cohen, Rotem Dror, Itzik Klein · DOI

Abstract

Training robust models for Smartphone Location Recognition (SLR) is often hindered by the resource-intensive nature of collecting diverse, labeled inertial sensor data. This paper proposes a novel framework that leverages the generative power of Diffusion Models to synthesize high-quality accelerometer data. By transforming 1D signals into 2D images via delay embedding, the framework utilizes state-of-the-art vision-based architectures to produce synthetic data that is statistically and functionally similar to real-world measurements. Experimental results on the RIDI dataset demonstrate that synthetic data achieves classification accuracies within 1% of real data, offering a scalable solution to the data scarcity problem in mobile sensing.

Introduction

Smartphone Location Recognition (SLR)—the ability of a device to determine whether it is in a user’s hand, pocket, bag, or mounted on the body—is a foundational component for context-aware mobile applications. However, developing deep learning models for SLR requires massive, high-variance datasets. Traditional data collection is a "resource-intensive nightmare," requiring numerous participants to perform various activities while carrying devices in multiple positions.

While Generative Adversarial Networks (GANs) have previously been explored to augment these datasets, they often struggle with the temporal complexity and noise inherent in inertial signals. This research introduces a diffusion-based pipeline that bridges the gap between 1D sensor time-series and 2D generative models, producing synthetic data that is virtually indistinguishable from real-world recordings.

Methodology

The proposed framework employs a three-stage pipeline designed to leverage advancements in computer vision for time-series generation.

1. Signal-to-Image Transformation (AccSignal2Image)

To utilize powerful image-based generative models, 1D accelerometer signals are first converted into 2D representations using delay embedding. This technique arranges signal segments into a matrix, effectively encoding temporal dynamics into spatial relationships. This "image trick" allows the model to capture complex motion patterns that are often lost in raw 1D processing.

2. Conditional Diffusion Model

The core of the framework is the Elucidated Diffusion Model (EDM) architecture, utilizing a Song-UNet backbone. The model is trained to reverse a diffusion process, gradually removing noise to generate structured data. Crucially, the model is conditioned on location labels (e.g., "handheld" or "pocket"), allowing for the targeted generation of specific motion classes on demand.

3. Image-to-Signal Reconstruction

Because the delay embedding process is mathematically invertible, the generated 2D images can be precisely reconstructed back into 1D accelerometer time-series. This ensures that the final output remains compatible with existing signal-processing pipelines and classifiers.

Experimental Setup and Datasets

The framework was evaluated using the RIDI (Robust IMU Double Integration) dataset, which contains over 100 minutes of motion data recorded at 200Hz from six subjects. The data covers four distinct smartphone placements:

  • Leg pocket
  • Bag
  • Handheld
  • Body-mounted

Signals were segmented into windows of 1024 samples with a 50% overlap and normalized channel-wise before being processed by the diffusion pipeline.

Key Insights and Results

High Fidelity and Statistical Alignment

The researchers utilized the Fréchet Inception Distance (FID) to quantify the quality of the generated data. The framework achieved an FID score of 1.22, an exceptionally low value for time-series data, indicating that the synthetic distribution closely mirrors the real-world data distribution. Furthermore, Probability Density Function (PDF) comparisons confirmed that synthetic signals accurately reproduced the characteristic peaks and spreads of real accelerometer data.

Classification Performance

To test the utility of the synthetic data, two different CNN classifiers were trained on real data and tested on synthetic data:

  • Image-based CNN: Achieved 97.4% accuracy on synthetic data (vs. 97.9% on real data).
  • Signal-based CNN: Achieved 97.2% accuracy on synthetic data (vs. 98.13% on real data).

The marginal performance gap (less than 1%) suggests that the diffusion model successfully captured the distinctive motion patterns associated with different carrying positions.

Preserving Class Boundaries

Visual analysis via t-SNE dimensionality reduction showed that the synthetic data formed distinct clusters for different locations. These clusters overlapped almost perfectly with real-world data clusters, proving that the generative process preserves the underlying semantic boundaries between classes like "bag" and "pocket."

Discussion and Future Work

This study demonstrates that diffusion models, when combined with spatial embedding techniques, provide a powerful tool for augmenting inertial sensor datasets. By "piggybacking" on vision-based architectures, researchers can generate high-fidelity data that reduces the need for manual collection.

However, some limitations remain. This work focused exclusively on accelerometer (specific force) data; a comprehensive inertial solution would also require the generation of gyroscope (angular velocity) data. Future research will focus on cross-dataset evaluation to test the model's generalizability and explore applications in broader fields such as human activity recognition (HAR), robotics, and healthcare monitoring.

Summary updated

BibTeX
@inproceedings{cohen2025diffusion,
  author = {Noa Cohen and Rotem Dror and Itzik Klein},
  title = {{Diffusion-Driven Inertial Generated Data for Smartphone Location Classification}},
  booktitle = {IPIN},
  year = {2025},
  doi = {10.1109/ipin66788.2025.11213024},
}
Figure