anonymize_trajectory_data

Anonymize spatiotemporal trajectory data with SHA256 hashing, Laplace noise, and k-anonymity.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/bettercallfan/deerflow --skill anonymize-trajectory-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anonymize_trajectory_data
Source: https://github.com/bettercallfan/deerflow/tree/main/skills/custom/spatiotemporal_trajectory/anonymize_trajectory_data
Command: npx skills add https://github.com/bettercallfan/deerflow --skill anonymize-trajectory-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill securely anonymizes sensitive user GPS/check-in data, ensuring privacy compliance and reducing risks before analysis.

Core Features & Use Cases

  • Data Anonymization: Anonymizes user IDs and coordinates through hashing, noise addition, and grid generalization.
  • Privacy Protection: Implements K-anonymity to protect individual user identities.
  • Use Case: Prior to exposing sensitive location data, this Skill can be used to anonymize trajectories to prevent data breaches and ensure compliance with privacy regulations.

Quick Start

Anonymize the trajectory data in 'raw_trajectory.csv' and output to 'output_dir'.

Frequently Asked Questions about anonymize_trajectory_data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I anonymize GPS trajectory data before analysis?

To anonymize GPS trajectory data, this Skill applies SHA256 hashing to user IDs and adds Laplace noise to coordinates. It uses grid generalization and k-anonymity to protect sensitive spatiotemporal check-in data before compliance analysis.

What is differential privacy for spatiotemporal data?

Differential privacy for spatiotemporal data involves adding controlled Laplace noise to coordinates. This mechanism ensures that individual GPS trajectories cannot be distinguished, protecting sensitive user check-in data from identification during analysis.

How does k-anonymity protect location check-in data?

K-anonymity protects location check-in data by generalizing trajectory coordinates into grid areas. This ensures that each GPS record is indistinguishable from at least k-1 other records, preventing individual user identification from spatiotemporal datasets.

Can I use this Skill to hash user IDs in raw trajectory CSV files?

Yes, you can use this Skill to hash user IDs in raw trajectory CSV files. It applies SHA256 hashing to anonymize user identifiers and processes the spatiotemporal coordinates directly from the input CSV file.

What are the limitations of adding Laplace noise to GPS coordinates?

Adding Laplace noise to GPS coordinates reduces spatial precision, which may impact downstream location analysis accuracy. This trade-off between differential privacy and data utility is necessary to prevent re-identification of sensitive spatiotemporal trajectories.

Does this Skill support anonymizing check-in data for privacy compliance?

Yes, this Skill supports anonymizing check-in data for privacy compliance. It securely processes sensitive spatiotemporal data using hashing, noise addition, and k-anonymity to reduce data breach risks before exposure.