A customized bus route generation method based on trajectory clustering technology

Through the customized bus route generation method based on trajectory clustering technology, using taxi GPS data and DBSCAN clustering method, the reliability and timeliness problems of customized bus route planning in the existing technology are solved, and more accurate and economical routes are achieved. Planning is suitable for providing proactive service capabilities to bus companies.

CN114722312BActive Publication Date: 2024-09-06ZHEJIANG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210464393.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2024-09-06
Estimated Expiration
2042-04-25

AI Technical Summary

Technical Problem

Existing customized bus route planning methods have problems such as low reliability, poor timeliness, cumbersome and expensive problems. In particular, it is difficult to cover the overall commuting needs of residents and make real-time adjustments according to changing travel needs. Moreover, traditional methods tend to ignore the distance between the starting point and the end point. The corresponding relationship leads to inconsistency between the route planning and the actual driving route.

Method used

A method based on trajectory clustering technology is used to construct a trajectory collection through taxi GPS data, calculate the trajectory similarity matrix, use the DBSCAN clustering method to cluster the trajectories, and use the center trajectory of each type of trajectory cluster as the customized bus line generation result , comprehensively considering the multi-dimensional characteristics of the trajectory such as direction, geographical interval and sub-segment.

Benefits of technology

It improves the reliability and timeliness of customized bus lines, saves labor costs, achieves better coverage of residents' travel needs, and can adjust routes according to real-time road network status, making it suitable as a basis for the establishment of customized bus lines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114722312B
    Figure CN114722312B
Patent Text Reader

Abstract

The present invention belongs to the field of intelligent transportation and relates to a method for generating customized bus routes based on trajectory clustering technology. The present invention comprises obtaining taxi GPS trajectory data; calculating trajectory similarity from three dimensions: direction, geographical interval, and trajectory sub-segment, and integrating features by considering domain knowledge and computational complexity to obtain trajectory similarity that can reflect the three features; clustering the trajectory set using the DBSCAN model based on the calculated trajectory similarity, and optimizing the DBSCAN in the multi-objective optimization method VIKOR. Eps , MinPts Parameters; Based on the clustering results, potential routes are extracted for each clustering result. The present invention can be effectively applied to taxi GPS trajectory data, and by extracting the central trajectory of the clustering results, the extraction of the final potential opening route is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of intelligent transportation and relates to a customized bus route generation method based on trajectory clustering technology. Background Art

[0002] In recent years, a new ground bus service model called customized bus has been emerging in many countries. Customized bus is a demand-responsive bus based on the concept of car sharing. Route planning is one of the keys to customized bus research. At present, many regions have opened customized bus routes to meet travel needs. Most of them are opened by combining questionnaire surveys with reservations, while others are opened under the guidance of policies or cooperation with bus companies. However, the online questionnaire survey method has the following problems: (1) Low reliability: It is difficult to cover the overall commuting needs of urban residents (2) Poor timeliness: It is difficult to make real-time adjustments based on changing travel needs. (3) Cumbersome and expensive: Manually designing routes not only consumes a lot of manpower and time costs.

[0003] Some studies extract travel OD from large-scale data sets and combine it with path planning to generate potential routes. Some researchers have proposed a customized bus network planning method that includes travel demand processing, OD community division, OD area pairing and route release, built a network planning model and designed a solution algorithm. However, the study uses survey data, which leads to many disadvantages such as low reliability, poor timeliness, cumbersomeness and uneconomical. Therefore, some researchers cluster and extract trajectories with similar starting points, ending points and departure times based on taxi trajectory data. In addition, some researchers perform cluster analysis on similar OD pairs based on bus card swiping data. Compared with taxi data, customized bus routes extracted from bus card swiping data sets are more suitable for long-distance users (more than 8km). The above studies use taxi data or bus data to extract travel OD data, cluster the starting and ending points of demand, find optional stations, and then plan customized bus routes. This approach easily ignores the correspondence between the starting point and the end point, resulting in deviations from the actual travel demand, and the route selection of residents during travel is affected by environmental conditions and their own experience and knowledge, such as the degree of road congestion and the convenience of getting on and off the bus. Therefore, the intermediate routes generated by path planning are sometimes inconsistent with the actual travel routes of residents. Some studies apply customized buses to transfer subway passenger flow, limit customized bus route planning starting from subway stations, or optimize shuttle bus routes connecting residential areas and subway stations. This type of route needs to be set up near subway stations, which does not meet the door-to-door travel characteristics and advantages of customized buses, and is difficult to use as a general method.

[0004] Trajectory clustering uses data mining methods to mine travel patterns from massive travel data, and has become one of the hot spots for mobile object trajectory data mining. Based on taxi trajectory data, the potential routes extracted from the travel patterns obtained from trajectory clustering contain the historical travel experience knowledge of travelers and real-time road network status information, which can cover the travel needs of residents to a large extent and do not require cumbersome route planning, making it suitable as a basis for the opening of customized bus routes.

[0005] Although some scholars have studied vehicle trajectory clustering and achieved quite good results, there are still some challenges:

[0006] 1. A comprehensive trajectory similarity calculation method considering multiple trajectory features. One of the hot topics in trajectory similarity calculation is how to comprehensively consider different attributes of trajectories, such as the direction and overlapping sub-segments of trajectories. How to reasonably integrate the various features of trajectories is still a difficult point.

[0007] 2. The clustering results are difficult to apply. The clustering results of the general method have relatively discrete starting and ending points. It is difficult for researchers to extract OD lines with concentrated travel from the clustering results as references for potential customized bus routes. Summary of the invention

[0008] In view of the shortcomings of the prior art, the present invention proposes a customized bus route generation method based on trajectory clustering technology.

[0009] The present invention comprises the following steps:

[0010] Step A, using the taxi GPS data information in the road network, construct a trajectory set based on travel behavior, and calculate the similarity matrix M between each trajectory in the trajectory set T.

[0011] Step B: Based on the similarity matrix M obtained in the first step, the trajectories in the trajectory set T are clustered using the DBSCAN clustering method, and the clustering parameters Eps and MinPts are adjusted to obtain the desired clustering result C.

[0012] Step C, based on the clustering result C obtained in the second step, calculate the central trajectory of each type of trajectory cluster as the generation result of the customized bus route.

[0013] Beneficial effects of the present invention: Different from the traditional manual questionnaire survey method, the present invention mines potential routes for customized buses based on a data-driven approach, saves labor costs, improves the reliability of the routes opened, and enables bus companies to provide proactive services. The present invention analyzes the background of the opening of customized buses, comprehensively considers the multi-dimensional characteristics of the trajectory including trajectory direction, geographical intervals and sub-segments, and realizes the effective fusion of the similarities of the three trajectories. Experiments have shown that the present invention can be effectively applied to taxi GPS trajectory data, and by extracting the central trajectory of the clustering results, the extraction of the final potential routes is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0015] Figure 1 It is a schematic diagram of the similarity of the trajectory geographical interval provided by the present invention;

[0016] Figure 2 It is a schematic diagram of the similarity of the common sub-segments of the trajectory provided by the present invention;

[0017] Figure 3 It is a schematic diagram of the experimental data of taxi travel volume provided by the present invention;

[0018] Figure 4 It is a schematic diagram of trajectory clustering results under the experimental data provided by the present invention;

[0019] Figure 5 It is a schematic diagram of the center trajectory extraction result provided by the present invention. DETAILED DESCRIPTION

[0020] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0021] The present invention proposes a method for generating a customized bus route based on trajectory clustering technology, which specifically includes the following steps:

[0022] Step 1: Use the taxi GPS data information in the road network to construct a trajectory set based on travel behavior, and calculate the similarity matrix M between each trajectory in the trajectory set T. The details are as follows:

[0023] Get the vehicle trajectory, T i : in Respectively represent the trajectory T i The longitude and latitude coordinates of the rth point, t r Represents timestamp information and filters trajectory data during commuting hours.

[0024] Calculate the similarity matrix M between trajectories, where S(Ti ,T j ) represents the trajectory T i ,、T j The similarity between them takes into account the three trajectory features of geographical area, trajectory direction and common sub-segments, and is characterized by geographical interval similarity, direction similarity and cumulative common sub-segment similarity, thus achieving an effective fusion of multiple trajectory features. Its similarity S(T i ,T j ) is calculated as follows:

[0025]

[0026] Among them, GRS represents geographic interval similarity, DS represents directional similarity, and CCSS represents cumulative common sub-segment similarity. In the specific calculation process, after obtaining the geographic interval similarity and directional similarity, if either result is 0, there is no need to calculate the cumulative common sub-segment similarity, and the trajectory similarity is directly recorded as 0.

[0027] Step 1.1, calculate the geographic range similarity GRS (Geographic Range Similarity).

[0028] like Figure 1 As shown, for the trajectory T i , whose latitude and longitude ranges are represented by R x (T i )=[min r {x r},max r {x r}],R y (T i )=[min r {y r},max r {y r}](r∈[1,2,…,Υ i ]), where R x Indicates the longitude interval, R y Indicates the latitude range.

[0029] By introducing Jaccard similarity to calculate the overlap between two intervals, any two trajectories T i ,、T j , the geographic area similarity is defined as the average value of the Jaccard similarity over the longitude and latitude intervals, and the calculation formula is as follows:

[0030]

[0031]

[0032] Where J(R x (T i ),R x (T j )) and J(R y (T i ),R y (T j )) respectively represent the trajectory T i , T j Jaccard similarity calculated between longitude intervals and latitude intervals.

[0033] Step 1.2: Calculate the direction similarity DS.

[0034] The starting and ending points of the trajectory are represented as O and D, where O and D both contain longitude and latitude coordinates. i ,、T j , whose starting and ending points are represented by {O i ,D i} and {O j ,D j}, by connecting O and D, we can construct the OD vector O i D i , O j D j . Calculate the two vectors O i D i , O j D j The cosine value of the included angle is calculated as follows:

[0035]

[0036] The cos(T i ,T j ) is normalized from 0 to 1, and the direction similarity DS can be obtained. The calculation formula is as follows:

[0037]

[0038] Step 1.3: Calculate the cumulative common sub-segment similarity CCSS.

[0039] In the traditional trajectory maximum common subsequence (LCSS) algorithm, if one trajectory is completely contained in another trajectory, the maximum common subsequence length between the two trajectories is equal to the length of the shorter trajectory, and their similarity measure is 1. This makes it very difficult to extract relatively clear start and end station coordinates from the clustering results. The present invention improves the LCSS algorithm by using cumulative common sub-fragments instead of the maximum common subsequence to improve the concentration of the travel trajectory OD of the clustering result.

[0040] In LCSS, the longest continuous subsequence of all matching points in a trajectory is defined as the longest common subsequence of the trajectory. However, there may be multiple matching segments between trajectories. From the perspective of overall comparison of trajectories, the situation of multiple matching segments should be considered. Figure 2 As shown, the trajectory T i , T j There are multiple matching fragments L i1 , L i2 , L j1 , L j2 .

[0041] Similar to the calculation of LCSS between trajectories, the calculation of CCSS requires the determination of the matching criteria between trajectory points, which is represented by a distance parameter δ (if the spatial distance between two points is less than δ, they will be matched). In fact, for any trajectory T i A point p on i , trajectory T j There may be multiple points that match it (such as Figure 2 As shown, the trajectory T i Point P on i2 Can be compared with the trajectory T j Point P on j2 , P j3 Here it is stipulated that for T i Point p on i , as long as there is a matching point on the trajectory to be compared, p i is a matching point.

[0042] Traverse the two trajectories and find all the matching points on the two trajectories. These continuous matching points constitute the matching segments on the trajectories. For the θth matching segment on the trajectory χ If it contains matching points, the length of the matching segment is calculated as follows:

[0043]

[0044] ||·||2 represents the Euclidean distance, represents the mth matching point of the θth matching segment on trajectory χ.

[0045] For the trajectory T i ,T j , according to the length of all matching segments obtained in the previous step, the calculation formula for the cumulative common sub-segment similarity is as follows:

[0046]

[0047] Among them, Θ is the number of matching fragments, Represents the trajectory Tχ The length of the θth matching fragment, l(T χ ) represents the trajectory T χ The total length of , where χ=i,j.

[0048] Step 2: Based on the similarity matrix M obtained in the first step, the DBSCAN clustering method is used to cluster the trajectories in the trajectory set T, and the clustering parameters Eps and MinPts are adjusted to obtain the desired clustering result C.

[0049] Step 3: Based on the clustering result C obtained in the second step, the center trajectory of each trajectory cluster is calculated as the generated result of the customized bus route. If K trajectory clusters are obtained after DBSCAN clustering, they are recorded as C1, C2, ..., C k ,…,C K , then the center trajectory of the Kth cluster The calculation formula is as follows:

[0050]

[0051] Among them, N k Represents cluster C k The number of trajectories in S(T i ,T j ) represents the trajectory T i ,T j Finally, the center trajectory As a result of generating customized bus routes.

[0052] Implementation analysis

[0053] By analyzing the hourly changes in the travel volume in the data set, such as Figure 3 As shown in Table 1, we can see that the travel volume reaches the highest value at 8 o'clock, and the time interval of 1 hour before and after 8 o'clock is taken as the morning peak commuting period, and finally the morning peak commuting period is determined to be 7:00-9:00. The data description is shown in Table 1. Among the 4092 taxi travel trajectories, 10,000 trajectories were randomly selected.

[0054] Table 1 Data Field Description

[0055]

[0056] When calculating CCSS, it is necessary to determine the distance threshold δ. Two points with a distance less than δ will be matched. Considering the road network structure, δ is set to 20m.

[0057] Calculate GRS, DS and CCSS, and calculate the trajectory similarity of the three features based on the fusion method;

[0058] A distance matrix for clustering is constructed based on trajectory similarity, where the value in the distance matrix is ​​1 minus the corresponding trajectory similarity;

[0059] DBSCAN trajectory clustering, through comprehensive analysis of clustering results, EPS is set to 0.26 and MinPts to 3;

[0060] The central trajectory of each trajectory cluster is calculated as the potential route extraction result of customized bus. The clustering result is as follows: Figure 4 As shown, the results show that the present invention can effectively extract a set of trajectories with common travel trends from massive taxi GPS trajectory data. Figure 4 The upper right side shows the separate display results of two clusters in the clustering results. It can be seen that the trajectories in the same cluster have concentrated travel start and end points.

[0061] The center trajectory extraction of the four clustering results is as follows Figure 5 As shown, the central trajectory is represented by a dotted line. It can be seen that the central trajectory can effectively represent the travel trend of the trajectory cluster, so the central trajectory is used as the final generated result of the customized bus route.

Claims

1. A method for generating customized bus routes based on trajectory clustering technology, characterized in that The following steps are involved: The first step is to use the taxi GPS data information in the road network to construct a trajectory set based on travel behavior, and calculate the similarity matrix M between each trajectory in the trajectory set T; In the second step, based on the similarity matrix M obtained in the first step, the trajectories in the trajectory set T are clustered using the DBSCAN clustering method, and the clustering parameters Eps and MinPts are adjusted to obtain the desired clustering result C; The third step is to calculate the central trajectory of each trajectory cluster based on the clustering result C obtained in the second step as the generation result of the customized bus route; The similarity matrix M between the calculation trajectories is specifically: Let S(T i ,T j ) is the element in the i-th row and j-th column of the similarity matrix M, and M is a symmetric matrix, that is, S(T i ,T j )=S(T j ,T i ); S(T i ,T j ) represents the trajectory T i ,、T j The similarity between them takes into account the three trajectory features of geographical area, trajectory direction and common sub-segments, and is characterized by geographical interval similarity, direction similarity and cumulative common sub-segment similarity. i ,T j )The calculation formula is as follows Among them, GRS represents geographical interval similarity, DS represents directional similarity, and CCSS represents cumulative common sub-segment similarity; The calculation of geographical interval similarity specifically includes the following steps: a) For any vehicle trajectory T i , T i Expressed as in Respectively represent the trajectory T i The longitude and latitude coordinates of the rth point, t r Indicates timestamp information; For the trajectory T i , whose latitude and longitude ranges are represented by R x (T i )=[min r {x r },max r {x r }],R y (T i )=[min r {y r },max r {y r }], where R x Indicates the longitude interval, R y represents the latitude interval, r∈[1,2,…,γ i ]; b) Introduce Jaccard similarity to calculate the overlap between two intervals. For any two trajectories T i ,、T j , the geographic area similarity is defined as the average value of the Jaccard similarity over the longitude and latitude intervals, and the calculation formula is as follows: Where J(R x (T i ),R x (T j )) and J(R y (T i ),R y (T j )) respectively represent the trajectory T i , T j Jaccard similarity calculated between longitude interval and latitude interval; The calculation of directional similarity specifically includes the following steps: a) The starting and ending points of the trajectory are represented as O and D, where O and D both contain longitude and latitude coordinates; b) For any two trajectories T i ,、T j , whose starting and ending points are represented by {O i ,D i } and {O j ,D j }, by connecting O and D, construct the OD vector O i D i , O j D j ; c) Calculate two vectors O i D i , O j D j The cosine value of the angle cos(T i ,T j ); d) The cos(T i ,T j ) Normalize from 0 to 1 to get the direction similarity DS; The calculation of the cumulative common sub-segment similarity specifically includes the following steps: a) Set a distance threshold δ, and mark the trajectory points on the two trajectories whose distance is less than δ as matching points; b) Traverse the two trajectories and find all matching points on the two trajectories. These continuous and uninterrupted matching points constitute the matching segments on the trajectories; c) For the θth matching segment on trajectory χ If it contains matching points, the length of the matching segment is calculated as follows: Where ||·||2 represents the Euclidean distance, represents the mth matching point of the θth matching segment on trajectory χ; d) For trajectory T i ,T j , according to the length of all matching segments obtained in the previous step, the calculation formula for the cumulative common sub-segment similarity is as follows: Among them, Θ is the number of matching fragments, Represents the trajectory T χ The length of the θth matching fragment, l(T χ ) represents the trajectory T χ The total length of , where χ=i,j.

2. The method for generating customized bus routes based on trajectory clustering technology according to claim 1, characterized in that: The specific calculation of the central trajectory of each type of trajectory cluster is: After DBSCAN clustering, we get K trajectory clusters, denoted as C1, C2, …, C k ,…,C K , then the center trajectory of the Kth cluster The calculation formula is as follows: Among them, N k Represents cluster C k The number of trajectories in S(T i ,T j ) represents the trajectory T i ,T j The similarity between The center trajectory As a result of generating customized bus routes.