Trajectory data and Location vocabulary
收藏资源简介:
轨迹数据存储在`./traj_data`目录中,每行代表一个用户连续三天的轨迹,格式包括用户ID、量化的回转半径和位置熵,以及每个轨迹点的位置ID、星期几、时间槽、等待时间和跳跃距离。位置词汇存储在`./location_feature`目录中,每个`.npy`文件对应一个城市,包含位置的特征向量,如原始POI计数、归一化POI计数、归一化地理坐标和移动热度分数。
Trajectory data is stored in the `./traj_data` directory. Each line represents a user's three consecutive days of trajectories, with the format including user ID, quantified radius of gyration and positional entropy, as well as the position ID, day of the week, time slot, waiting time and jump distance of each trajectory point. Location feature data is stored in the `./location_feature` directory. Each `.npy` file corresponds to a city, containing feature vectors of locations, such as raw POI counts, normalized POI counts, normalized geographic coordinates and mobility heat scores.
数据集概述
数据集基本信息
- 名称:MoveGCL
- 类型:移动轨迹数据
- 用途:用于训练移动基础模型,支持生成式持续学习
数据内容
轨迹数据
- 存储路径:
./traj_data - 数据格式:
- 每行代表一个用户连续三天的轨迹
- 格式示例:
用户ID 量化回转半径 量化位置熵;位置序列
- 位置序列格式:
location_id,day_of_week,time_slot,t_wait,d_jump- 字段说明:
location_id:位置唯一标识符day_of_week:星期几(0=周一,...,6=周日)time_slot:当天时间间隔索引t_wait:位置等待时间d_jump:与前一个位置的距离
位置特征数据
- 存储路径:
./location_feature - 文件格式:
.npy文件(每个城市一个文件) - 特征结构:
- [0-33]:原始POI类别计数
- [34-77]:归一化POI类别计数
- [78-79]:归一化地理坐标(纬度、经度)
- [80]:移动热度分数(位置流行度指标)
数据集使用
基础模型训练
- 脚本路径:
./MoveGCL/train_base_model.py - 主要参数:
n_embd:MoE Transformer隐藏层维度n_layer:Transformer层数num_experts:每层专家数量city:训练城市列表
持续学习流程
-
生成伪轨迹:
- 构建首位置分布:
./GCL_data/get_first_loc_distribute.py - 采样基础轨迹:
./GCL_data/get_sample_data.py - 替换首位置:
./GCL_data/replace_first_loc.py - 生成伪轨迹:
./GCL_data/gen_pseudo_traj.py
- 构建首位置分布:
-
专家选择:
- 脚本:
./get_experts_to_forze.py - 输出:各层最常选择的专家索引
- 脚本:
-
持续学习:
- 脚本:
./MoveGCL/continual_learning.py - 关键参数:
teacher_model:预训练模型路径Increm_root:伪轨迹路径experts_froze:固定专家列表
- 脚本:
相关论文
- arXiv:https://www.arxiv.org/abs/2506.06694
- Hugging Face Papers:https://huggingface.co/papers/2506.06694




