Mobile Sensor Data Anonymization

Mohammad Malekzadeh, Richard G. Clegg, Andrea Cavallaro, Hamed Haddadi · DOI

Introduction

Modern smartphones are equipped with sophisticated motion sensors, such as accelerometers and gyroscopes, which are essential for fitness tracking, navigation, and gaming. However, these sensors capture more than just physical activity; they record high-frequency biometric signatures that can reveal a user's identity, gender, and even health status. Research has demonstrated that unique gait patterns can re-identify users with high accuracy, making motion data a significant privacy risk.

High-level overview of the on-device anonymization system filtering private information while preserving application-specific utility.

Standard privacy-preserving techniques, such as Differential Privacy (DP), often struggle with continuous time-series data. Adding enough noise to guarantee privacy frequently renders the data useless for its intended application. This paper introduces the Anonymizing AutoEncoder (AAE), a lightweight, on-device framework designed to scrub private identifiers from raw sensor streams while maintaining the "utility" required for apps to accurately recognize activities like walking or jogging.

The Anonymizing AutoEncoder (AAE) Framework

The AAE architecture utilizes a deep learning approach trained through an adversarial process. The system is composed of an Encoder, which compresses raw sensor data $X$ into a latent representation $Y$, and a Decoder, which reconstructs this representation into an anonymized version $X'$.

Adversarial Training and Regularizers

To ensure the model effectively separates identity from activity, the authors employ three adversarial "regularizers" during training:

  1. Encoder Regularizer (EncReg): Attempts to identify the user from the compressed latent space $Y$.
  2. Decoder Regularizer (DecReg): Attempts to identify the user from the final reconstructed output $X'$.
  3. Activity Regularizer (ActReg): Ensures that the reconstructed data $X'$ retains enough information to classify the physical activity being performed.
The AAE training architecture, showing the interaction between the autoencoder, the three adversarial regularizers, and the multi-objective loss function.

Multi-Objective Loss Function

The training process is guided by a novel loss function that balances three competing objectives:

  • Identity Loss ($L_i$): Forces the model to maximize the uncertainty (entropy) of the identity classifiers, effectively "confusing" any potential adversary.
  • Activity Loss ($L_a$): Minimizes classification error for the intended physical activities.
  • Distortion Loss ($L_d$): Ensures the anonymized data $X'$ remains structurally similar to the raw data $X$, preventing the output from becoming unintelligible.

Experimental Evaluation

The study evaluated the AAE using the MotionSense dataset, which contains accelerometer and gyroscope data from 24 participants performing six distinct activities (e.g., walking, jogging, climbing stairs). The researchers tested the model on both unseen sessions of known users and entirely unseen subjects to ensure robust generalization.

Key Results

The AAE demonstrates a superior privacy-utility trade-off compared to traditional methods like resampling or Singular Spectrum Analysis (SSA):

  • High Utility Preservation: Activity recognition accuracy remained above 92%, nearly matching the performance achieved on raw, unprotected data.
  • Robust Privacy Protection: User identification accuracy dropped from 96% on raw data to below 7% on anonymized data.
  • On-Device Feasibility: The lightweight design allows the AAE to run locally on mobile devices, ensuring that raw, sensitive data never leaves the user's secure environment.

Conclusion

The Anonymizing AutoEncoder provides a viable path for privacy-preserving mobile sensing. By specifically targeting and obscuring the periodic components of motion data that correlate with individual gait, the AAE protects user identity without sacrificing the functionality of mobile health and fitness applications. Future work will focus on extending this protection to other sensitive attributes, such as age and health conditions, and optimizing the model for real-time execution on battery-constrained wearable devices.

Summary updated

BibTeX
@inproceedings{malekzadeh2018mobile,
  author = {Mohammad Malekzadeh and Richard G. Clegg and Andrea Cavallaro and Hamed Haddadi},
  title = {{Mobile Sensor Data Anonymization}},
  booktitle = {IoTDI},
  year = {2018},
  doi = {10.1145/3302505.3310068},
}
Figure