应用科学学报 ›› 2023, Vol. 41 ›› Issue (1): 10-22.doi: 10.3969/j.issn.0255-8297.2023.01.002

• 计算机应用专辑 • 上一篇    下一篇

一种融合图结构的时空轨迹相似性查询算法

熊伟, 熊淑怡, 曹竞之, 陈浩, 高嘉媛   

  1. 国防科技大学 电子科学学院, 湖南 长沙 410073
  • 收稿日期:2022-06-15 出版日期:2023-01-31 发布日期:2023-02-03
  • 通信作者: 熊伟,副教授,研究方向为空间数据库与地理信息系统。E-mail:xiongwei@nudt.edu.cn E-mail:xiongwei@nudt.edu.cn
  • 基金资助:
    国家自然科学基金(No.41871284,No.U19A2058);湖南省自然科学基金(No.2020JJ4663)资助

A Spatio-Temporal Similarity Query Algorithm for Trajectory Based on Graph Structure

XIONG Wei, XIONG Shuyi, CAO Jingzhi, CHEN Hao, GAO Jiayuan   

  1. College of Electronic Science, National University of Defense Technology, Changsha 410073, Hunan, China
  • Received:2022-06-15 Online:2023-01-31 Published:2023-02-03

摘要: 针对海量时空轨迹数据相似性查询速度慢的问题,提出一种融合图结构的时空轨迹相似性查询算法。从空间维和时间维将轨迹建模为图结构中的一条路径,设计了一种同步匹配空间和时间距离的轨迹相似性度量函数。在此基础上,设计了一种结合时间过滤的基于边的倒排索引结构支持轨迹时空相似性查询,同时利用距离上界的剪枝策略提高查询性能。计算返回的相似轨迹集合中每条轨迹的距离并进行排序,得到相似度最高的前k个轨迹。最后将所提算法与NTrajI算法、SHQ算法、SHQT算法在合成数据集和真实数据集上进行实验对比。结果表明:该算法在索引建立、查询效率和查询质量方面均优于其他对比方法,因此是可行而有效的。

关键词: 时空轨迹, 轨迹相似性度量, 轨迹相似性查询, 倒排索引, 距离上界

Abstract: To address the problem of slow similarity query of massive spatio-temporal trajectory data, a similarity query algorithm based on graph structure is proposed. Firstly, the trajectory is modeled as a path with spatial and temporal dimensions in a graph, and a trajectory similarity metric function is designed to match spatial and temporal distances simultaneously. Secondly, based on the similarity metric function, an edge-based inverted index structure combined with time filtering is designed, which supports spatio-temporal similarity query of trajectories while improving query performance using a pruning strategy with distance upper bound. The query algorithm performs distance calculation for each trajectory in the returned set of similar trajectories and sorts to obtain the top k results with the highest similarity. Finally, synthetic dataset and real dataset are used to compare the proposed algorithm with NTrajI algorithm, SHQ algorithm and SHQT algorithm. Experimental results show that the proposed method outperforms the comparison methods in index building and query processing, and obtains higher quality of query results. Therefore, the proposed algorithm is feasible and effective.

Key words: spatio-temporal trajectory, trajectory similarity measure, trajectory similarity search, inverted index, distance bounds

中图分类号: