基于离线关键站点和路径阻抗的地铁路线推荐方法
Offline Key Station and Path Impedance Based Subway Route Recommendation Method
DOI: 10.12677/HJDM.2022.123025, PDF,    国家自然科学基金支持
作者: 戴政君:北京信息科技大学,数字文化重点实验室,北京;宋 莹:北京信息科技大学,数字文化重点实验室,北京;计算机体系结构国家重点实验室,中国科学院计算技术研究所,北京
关键词: 地铁刷卡数据寻径算法路线推荐Metro Smart Card Data Path Finding Algorithm Route Recommendation
摘要: 目前主流的路线推荐方法先通过寻径算法在满足各种约数条件下寻找K条可行路线,然后根据乘客的出行偏好从K条可行路线中选择一条路线推荐给乘客。然而,由于寻径算法的约束条件只能通过实时计算得到K条可行路线,当同时进行大量乘客的路线推荐时,由于无法快速获得推荐路线从而影响乘客的用户体验。因此本文提出基于离线关键站点的K最短时间算法,通过构造关键站点图和哈希表离线辅助查找K条最短路径,从而降低算法的时间复杂度。此外,通过分析发现,乘客对出行的负面感受与地铁换乘次数及拥挤度间并不是简单的线性关系,随着换乘次数和拥挤度的增加,乘客对出行的满意度会迅速衰减,所以,目前通过最大最小值方法计算出的乘客偏好路线并不一定是最佳路线。因此,本文设计了基于路径阻抗的地铁路线推荐方法,其中路径阻抗由不同权重的地铁时间成本和拥挤成本组成,通过计算K条最短时间路径的路径阻抗,从中选出符合乘客偏好的出行线路推荐给乘客。通过理论分析,随着查询次数的增多,本文提出的基于离线关键站点的K最短时间算法时间复杂度要远小于其他约数条件下的寻径算法。最后通过具体的实验示例验证本方法完全可以满足不同乘客的路线推荐需求。
Abstract: The current mainstream route recommendation method first finds K feasible routes by path finding algorithm under various approximate conditions, and then selects a route from K feasible routes to recommend to passengers according to their travel preferences. When a large number of passengers’ routes are recommended at the same time, the recommended routes are not available quickly and thus affect the passengers’ user experience. Therefore, this paper proposes the K shortest time algorithm based on offline key sites, which can reduce the time complexity of the algorithm by constructing a key site graph and hash table to assist in finding K shortest routes offline. In addition, it is found through analysis that there is not a simple linear relationship between passengers’ negative feelings about the trip and the number of interchanges and crowding, and passengers’ satisfaction with the trip will decay rapidly as the number of interchanges and crowding increase. There-fore, the current passenger preference route calculated by the maximum-minimum method is not necessarily the best route. Therefore, this paper designs a subway route recommendation method based on path impedance, where the path impedance consists of different weights of subway time cost and congestion cost, and by calculating the path impedance of the K shortest routes, the travel routes that meet passenger preferences are selected from them and recommended to passengers. Through theoretical analysis, with the increase of the number of queries, the time complexity of the K shortest time algorithm based on offline key stations proposed in this paper is much smaller than that of the path finding algorithm under other approximate conditions. Finally, it is verified through specific experimental examples that this method can fully meet the route recommendation needs of different passengers.
文章引用:戴政君, 宋莹. 基于离线关键站点和路径阻抗的地铁路线推荐方法[J]. 数据挖掘, 2022, 12(3): 246-258. https://doi.org/10.12677/HJDM.2022.123025

参考文献

[1] Du, B., Cui, Y., Fu, Y., Zhong, R. and Xiong, H. (2018) Smart Transfer: Modeling the Spatiotemporal Dynamics of Passenger Transfers for Crowdedness-Aware Route Recommendations. ACM Transactions on Intelligent Systems and Technology, 8, Article No. 70. [Google Scholar] [CrossRef
[2] Dijkstra, E.W. (1959) A Note on Two Prob-lems in Connexion with Graphs. Numerische Mathematik, 1, 269-271. [Google Scholar] [CrossRef
[3] Hart, P.E., Nilsson, N.J. and Raphael, B. (1968) A Formal Basis for the Heuristic Determination of Minimum Cost Paths. IEEE Transactions on Systems Science and Cybernetics, 4, 100-107. [Google Scholar] [CrossRef
[4] Yen, J.Y. (1971) Finding the K Shortest Loopless Paths in a Network. Management Science, 17, 712-716. [Google Scholar] [CrossRef
[5] Xu, W., He, S., Song, R. and Chaudhry, S.S. (2012) Finding the K Shortest Paths in a Schedule-Based Transit Network. Computers & Operations Research, 39, 812-1826. [Google Scholar] [CrossRef
[6] Zhou, F. and Xu, R. (2012) Model of Passenger Flow Assignment for Urban Rail Transit Based on Entry and Exit Time Constraints. Transportation Research Record, 2284, 57-61. [Google Scholar] [CrossRef
[7] Guo, J. and Jia, L. (2017) A New Algorithm for Finding the K Shortest Paths in a Time-Schedule Network with Constraints on Arcs. Journal of Algorithms & Computational Technology, 11, 170-177. [Google Scholar] [CrossRef
[8] Jariyasunant, J., Mai, E. and Sengupta, R. (2011) Algorithm for Finding Optimal Paths in a Public Transit Network with Real-Time Data. Transportation Research Record, 2256, 34-42. [Google Scholar] [CrossRef
[9] Yang, Y., Wang, S., Hu, X., Li, J. and Xu, B. (2012) A Modified K-Shortest Paths Algorithm for Solving the Earliest Arrival Problem on the Time-Dependent Model of Transportation Systems. Lecture Notes in Engineering & Computer Science, 2196, 1562-1567.
[10] Wang, S., Yang, Y., Hu, X., Li, J. and Xu, B. (2016) Solving the K-Shortest Paths Problem in Timetable-Based Public Transportation Systems. Journal of Intelli-gent Transportation Systems, 20, 413-427. [Google Scholar] [CrossRef
[11] Jeon, I., Nam, H. and Jun, C. (2018) A Schedule-Based Public Transit Routing Algorithm for Finding K-Shortest Paths Considering Transfer Penalties. The Journal of the Korea Institute of Intelligent Transport Systems, 17, 72-86. [Google Scholar] [CrossRef
[12] Delling, D., Goldberg, A.V., Pajor, T. and Werneck, R.F. (2017) Customizable Route Planning in Road Networks. Transportation Science, 51, 566-591. [Google Scholar] [CrossRef
[13] Kim, K.M., Hong, S.P., Ko, S.J. and Kim, D. (2015) Does Crowding Affect the Path Choice of Metro Passengers? Transportation Research Part A: Policy and Practice, 77, 292-304. [Google Scholar] [CrossRef
[14] Li, W., Luo, Q., Ca, I.Q. and Zhang, X. (2018) Using Smart Card Data Trimmed by Train Schedule to Analyze Metro Passenger Route Choice with Synchronous Clustering. Journal of Advanced Transportation, 2018, Article ID: 2710608. [Google Scholar] [CrossRef
[15] Li, W., Luo, Q. and Cai, Q. (2020) A Smart Path Recommendation Method for Metro Systems with Passenger Preferences. IEEE Access, 8, 20646-20657. [Google Scholar] [CrossRef
[16] Fredman, M.L. and Tarjan, R.E. (1987) Fibonacci Heaps and Their Uses in Improved Network Optimization Algorithms. Journal of the ACM, 34, 596-615. [Google Scholar] [CrossRef
[17] SODA大赛一卡通乘客刷卡数据[EB/OL]. https://shanghai.sodachallenges.com/, 2021-03-24.
[18] 上海地铁8号线首末班车时刻表[EB/OL]. http://service.shmetro.com/hcskb/250.htm, 2015-03-14.