Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Next Article in Journal
Pattern of Spatial Distribution and Temporal Variation of Atmospheric Pollutants during 2013 in Shenzhen, China
Previous Article in Journal
Efficient Processing of Continuous Reverse k Nearest Neighbor on Moving Objects in Road Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Detecting Road Intersections from GPS Traces Using Longest Common Subsequence Algorithm

1
imec-IPI-UGent, Ghent University, Sint-Pietersnieuwstraat 41, 9000 Ghent, Belgium
2
Ambient Intelligence Research (AIR) Lab, Department of Electrical Engineering, Stanford University, Stanford, CA 94305, USA
*
Author to whom correspondence should be addressed.
ISPRS Int. J. Geo-Inf. 2017, 6(1), 1; https://doi.org/10.3390/ijgi6010001
Submission received: 17 October 2016 / Revised: 14 December 2016 / Accepted: 19 December 2016 / Published: 22 December 2016

Abstract

:
Intersections are important components of road networks, which are critical to both route planning and path optimization. Most existing methods define the intersections as locations where the road users change their moving directions and identify the intersections from GPS traces through analyzing the road users’ turning behaviors. However, these methods suffer from finding an appropriate threshold for the moving direction change, leading to true intersections being undetected or spurious intersections being falsely detected. In this paper, the intersections are defined as locations that connect three or more road segments in different directions. We propose to detect the intersections under this definition by finding the common sub-tracks of the GPS traces. We first detect the Longest Common Subsequences (LCSS) between each pair of GPS traces using the dynamic programming approach. Second, we partition the longest nonconsecutive subsequences into consecutive sub-tracks. The starting and ending points of the common sub-tracks are collected as connecting points. At last, intersections are detected from the connecting points through Kernel Density Estimation (KDE). Experimental results show that our proposed method outperforms the turning point-based methods in terms of the F-score.

1. Introduction

A road network is a system of interconnecting lines that represent the interconnecting roads in a given area [1,2,3]. Traditionally, the road networks are constructed from geographic surveying through devices, such as telescopes and sextants. These mapping devices are very expensive, and doing such surveys requires a huge amount of time and effort. As a result, such maps cannot be updated frequently [4]. With the development of Global Positioning System (GPS) technology in the last few decades, mobile mapping campaigns with GPS devices have replaced the surveying devices in urban areas and reduced the labor cost for the road map generation. Although, it is still time consuming for the campaigns to cover all streets on the map; thus, the map updates lag behind road construction substantially. Thanks to the ubiquitous use of hand-held GPS units, now we can easily obtain massive GPS trace data from a variety of road users, such as vehicle drivers, cyclists and pedestrians. This has simulated the development of automatic road network inference [5,6,7,8,9,10,11,12].
Road intersections play an important role in road networks. They can provide very useful information, such as connectivity, topology and allowable moving direction, which are not only beneficial to build the topology of the road network, but also helpful to generate the geometric representation of the road segments in the network. Based on the generated road network, we can further analyze the preferences of the travelers on route selection [13], the transition between different transportation modes [14], traffic density on the roads [15,16,17], the delays due to traffic jams [9,14,18,19], etc.
In the literature, some indirect methods have been proposed to detect the intersections by examining the moving direction changes of the road users on their trajectories. Karagiorgou and Pfoser detected turn samples from GPS traces by thresholding the moving speed and moving direction change [10]. The vector from the current point to its next adjacent point was used to describe the moving direction at this point. An agglomerative hierarchical clustering method was applied to cluster the turn samples into intersection nodes Wu et al. first found turning points from coarse-gained GPS traces by thresholding the moving direction changes [20]. To improve the concentration of the turning points, they collected the intersecting points, where the turning points converged. The X-means algorithm was applied in their work to cluster the converging points to intersections [21]. Wang et al. first detected the conflict points, where two or more traces cross, diverge or converge, through thresholding the road users’ moving direction change [22]. They then computed the spatial position and boundary circle of each road intersection from the conflict points. In our earlier work [23], we calculated the moving direction at each GPS point using the point ahead of it with a fixed distance to it, instead of the next point, and clustered the turning points with moving direction changes into intersection candidates. We finally checked the turn patterns to remove misdetected bends.
Although the researchers mentioned above have applied different techniques to detect the intersections, their algorithmic foundation is the same: an intersection is defined as a location or an area where the road users change their moving directions often. A limitation of these approaches is that it is difficult to determine an appropriate threshold for the moving direction change. A low threshold will lead to more spurious intersections being falsely detected, and a high threshold will result in more true intersections being undetected.
Different from the methods above, Fathi and Krumm designed a shape descriptor representing the distribution of GPS traces around a point and trained a classifier over the descriptor so as to distinguish intersection points from non-intersection points [24]. Their results showed that the detected intersections matched their ground-truth closely. However, they need to train a new shape descriptor for each new type of intersection, which is not suitable for automatic road map updating.
In this work, an intersection is defined by its own property as a location connecting three or more road segments in different directions. Based on this definition, a novel method is proposed to detect intersections from GPS traces based on the Longest Common Subsequence (LCSS) algorithm. First, pairwise GPS traces are aligned to find the longest common subsequences between them. The nonconsecutive subsequences are then partitioned into consecutive sub-tracks. Second, the starting and ending points of the common sub-tracks are collected as connecting points, if neither of the GPS traces start or end there. The density of the connecting points are estimated, and the local maximums on the density map are detected as intersections. At last, the pattern of the GPS traces converging or diverging at the connecting points around each intersection is checked to remove the false positive detections.
The initial results were written in a four-page paper and published in the 2016 IEEE International Geo-science and Remote Sensing Symposium [25]. In this paper, we elaborate our algorithm of intersection detection in more depth. Except the common sub-tracks in the same direction, we also find the common sub-tracks in the opposite directions by reversing one of the GPS traces and applying the LCSS algorithm to them. We improve the robustness of our algorithm against GPS errors, by checking patterns of the GPS traces meeting at the intersections and removing the intersections that are detected from one single GPS trace converging or diverging with all other traces. In addition, we evaluate the accuracy of the detected intersections thoroughly using the F-score measure, which considers both precision and recall.
The remainder of this paper is structured as follows. In the next section, we present the problem of intersection detection from GPS traces given the new intersection definition, followed by Section 3, which elaborates how to detect the common sub-tracks between pairwise traces and utilize the starting and ending points of these sub-tracks to identify intersections. Section 4 shows our experimental results. Lastly, the conclusion is drawn in Section 5.

2. Problem Statement

In this work, we define a road segment as a sequence of non-intersection geographical locations that connect two intersections. The road users often traverse a sequence of road segments, instead of a single road segment, to arrive at their destinations. On their journeys, they may traverse the same road segment and then split to different road segments; or they may traverse from different road segments to the same road segment. As a result, the generated GPS traces may converge from different road segments to the shared road segment or diverge from the shared road segment to different road segments. The converging and diverging points on the GPS traces are located at the intersections. Therefore, the intersections can be detected through finding the common sub-tracks of the GPS traces recorded on the same road segments. A common sub-track is a sequence of points that appears in the same relative order and occupies consecutive positions in both GPS traces. Each common sub-track corresponds to a shared road segment.
Figure 1 shows an example of two GPS traces diverging at one intersection and then converging at another intersection. The first GPS trace, which contains 16 points, is shown using blue lines with blue dots, indicating the point locations. There are 12 points in the second trace, shown in red lines with dots. The arrows show that the road users move from a higher latitude area to a lower latitude area in both traces. Both of the road users start their journeys on the same road segment, split to different road segments at the first intersection indicated using a black star, come together to another road segment at the second intersection indicated using a black triangle and end their journeys on this road segment. The generated GPS traces diverge at the first intersection and converge at the second intersection. We aim to find the common sub-tracks of the GPS traces, which correspond to the shared road segments both road users traverse, and identify the intersections from the starting and ending points of these sub-tracks.

3. Proposed Method

In this section, we first find the longest common subsequences between pairwise GPS traces, then segment them into common sub-tracks. The starting and ending points of the common sub-tracks, i.e., the converging and diverging points of the traces, are collected as connecting points. We then identify the intersections from the connecting points through KDE. Lastly, we examine the patterns of the GPS traces meeting at the intersections, so as to remove the false-positive intersections detected from one single trace converging or diverging with all other traces.

3.1. Longest Common Subsequence

A trace subsequence is a sequence of data points that appears in the same relative order within the original trace as a sub-track does, but does not necessarily occupy consecutive positions as a sub-track does. A common subsequence of two GPS traces is a subsequence present in both of them. A longest common subsequence is a common subsequence of maximal length. The most naive approach to find the longest subsequence would be to enumerate all subsequences common to both GPS traces and select the one of maximal length. However, it is very time consuming to apply this approach. To overcome this challenge, dynamic programming is employed to find the longest subsequence efficiently [26].
Dynamic programming is an algorithm for breaking a complex problem into a collection of simpler subproblems, solving each of those subproblems firstly and then using them to find the solution to the complex problem [27,28,29]. In our case, rather than finding the LCSS between two whole traces, we first find the LCSS between smaller prefixes of the traces and use them to find the LCSS between larger prefixes, until we find the LCSS between the whole traces.
We adopt the following notations. Suppose we have two GPS traces r ( 1 ) and r ( 2 ) . Let r ( 1 ) ( t 1 ) , t 1 = 1 , , T 1 and r ( 2 ) ( t 2 ) , t 2 = 1 , , T 2 be points of r ( 1 ) and r ( 2 ) , where T 1 and T 2 are the numbers of points in each trace, respectively. The first stage of implementing dynamic programming is to create a two-dimensional (2D) T 1 × T 2 length matrix L. The value at each cell, L ( t 1 , t 2 ) , represents the length of the longest common subsequences between the prefixes of the given traces, r ( 1 ) ( i ) , i = 1 , , t 1 and r ( 2 ) ( j ) , j = 1 , , t 2 . It depends on the similarity of the points r ( 1 ) ( t 1 ) and r ( 2 ) ( t 2 ) and the values of its adjacent cells { L ( t 1 , t 2 1 ) , L ( t 1 1 , t 2 ) , L ( t 1 1 , t 2 1 ) } . We also create a 2D T 1 × T 2 arrow matrix B. The arrow at each cell, B ( t 1 , t 2 ) , indicates which of the adjacent cells L ( t 1 , t 2 ) is calculated from, as shown Equation (2).
L ( t 1 , t 2 ) = { 0 , if t 1 = 0 or t 2 = 0 L ( t 1 1 , t 2 1 ) + 1 , if t 1 , t 2 > 0 and d ( r 1 ( t 1 ) , r 2 ( t 2 ) ) d t h r e m a x ( L ( t 1 , t 2 1 ) , L ( t 1 1 , t 2 ) ) , if t 1 , t 2 > 0 and d ( r 1 ( t 1 ) , r 2 ( t 2 ) ) > d t h r e
where t 1 [ 0 , T 1 ] and t 2 [ 0 , T 2 ] . The geographical distance between two points, d ( r ( 1 ) ( t 1 ) , r ( 2 ) ( t 2 ) ) , is used to measure their local dissimilarity. The distance threshold d t h r e should be chosen based on the road width and the expected GPS error.
B ( t 1 , t 2 ) = { , if L ( t 1 , t 2 ) = L ( t 1 1 , t 2 ) and L ( t 1 1 , t 2 ) L ( t 1 , t 2 1 ) , if L ( t 1 , t 2 ) = L ( t 1 , t 2 1 ) and L ( t 1 1 , t 2 ) < L ( t 1 , t 2 1 ) , if L ( t 1 , t 2 ) = L ( t 1 1 , t 2 1 ) + 1 ,
where t 1 [ 1 , T 1 ] and t 2 [ 1 , T 2 ] .
Algorithm 1 FindPath.
Input: L, B
Output: g 1 ( k ) , g 2 ( k ) , w 2 ( k ) , w 2 ( k ) , k = 1 K
   Initialization t 1 T 1 , t 2 T 2 , k 1
 2:  while t 1 + t 2 > 2 do
   if t 1 = 1 then
 4:      t 2 t 2 1
   else if t 2 = 1 then
 6:      t 1 t 1 1
   else
 8:     switch B ( t 1 , t 2 ) do
      case
10:         g 1 ( k ) = r ( 1 ) ( t 1 ) , g 2 ( k ) = r ( 2 ) ( t 2 )
           w 1 ( k ) = t 1 , w 2 ( k ) = t 2
12:         k k + 1
           t 1 t 2 1 , t 2 t 2 1
14:     case
           t 1 t 1 1
16:     case
           t 2 t 2 1
18:    end if
20:  end while
    if L ( 1 , 1 ) = L ( t 1 , t 2 ) 1 then
22:     g 1 ( k ) = r ( 1 ) ( 1 ) , g 2 ( k ) = r ( 2 ) ( 1 )
    w 1 ( k ) = 1 , w 2 ( k ) = 1
24:  end if
   g 1 reverse ( g 1 ) , g 2 reverse ( g 2 )
26:   w 1 reverse ( w 1 ) , w 2 reverse ( w 2 )
Once the length matrix L and direction matrix B are built, the longest common subsequences are deduced by following the arrows backwards through matrix B. It starts from the last cell ( T 1 , T 2 ) and ends at the first cell ( 1 , 1 ) . If the length decreases, the traces must have had similar data points. These two data points are added to the longest subsequences, g 1 and g 2 , for each trace, respectively, and their time indexes in the original traces are added to w 1 and w 2 , i.e., g 1 ( k ) = r ( 1 ) ( w 1 ( k ) ) and g 2 ( k ) = r ( 2 ) ( w 2 ( k ) ) . Algorithm 1 elaborates the procedure.
Figure 2 illustrates the procedure of finding the LCSSs between two GPS traces. Figure 2a shows the LCSS for each GPS trace using blue lines with black dots and red lines with black dots, respectively. In total, there are nine points in the LCSS for each trace. The LCSS for the first trace is expressed as r ( 1 ) ( t 1 ) , t 1 = 1 , 2 , 3 , 4 , 5 , 13 , 14 , 15 , 16 , and r ( 2 ) ( t 2 ) , t 2 = 1 , 2 , 3 , 4 , 5 , 9 , 10 , 11 , 12 is for the second one.
Figure 2b shows the length matrix L and arrow matrix B in grids. The “backtrack” procedure starts at cell ( 16 , 12 ) and follows the direction of the arrows to the first cell at ( 1 , 1 ) . The path through the matrix is indicated using cells with a gray background. Only the corresponding points to the cells with decreasing length are saved for the LCSS. The lengths of these cells are shown in green numbers.

3.2. Connecting Point Collection

A subsequence is a sequence of points that appear in the same relative order and do not have to occupy consecutive positions in the original trace. The longest common subsequence may correspond to more than one road segment. However, we are more interested in the common sub-tracks to both GPS traces, whose points do occupy consecutive positions in the original traces. Each common sub-track corresponds to one road segment that the road users traverse in both traces. Therefore, the starting and ending points of the sub-track correspond to the two ends of the road segment, i.e., intersections. The common sub-tracks between two GPS traces can be obtained by partitioning the longest common subsequences.
We first check the consecutiveness of the points of the longest common subsequences. Given the k-th points of the LCSSs for both traces, g 1 ( k ) and g 2 ( k ) , and their time indexes in the original traces w 1 ( k ) and w 2 ( k ) , they are nonconsecutive points if the next points g 1 ( k + 1 ) and g 2 ( k + 1 ) occupy positions far ahead of them in the original traces, i.e., w 1 ( k + 1 ) w 1 ( k ) > ξ and w 2 ( k + 1 ) w 2 ( k ) > ξ , where ξ is a predefined threshold. In this work, we set ξ larger than one to avoid the deviating points on the trace, which are caused by GPS errors, being falsely detected as nonconsecutive points.
The longest common subsequence is segmented by these nonconsecutive points into common sub-tracks. If all points of the LCSSs are consecutive, we directly take the starting and ending points of the LCSSs as connecting points if they are not the starting and ending points of these two GPS traces.
As shown in Figure 2, the fifth points of the LCSSs are not consecutive in the original traces. For trace r ( 1 ) , the sixth point of its LCSS occupies the thirteenth position in r ( 1 ) . The fifth and sixth points of the LCSS are separated by seven blue dots. For trace r ( 2 ) , the sixth point of its LCSS occupies the eighth position in r ( 2 ) . The fifth and sixth points of the LCSS are separated by two red dots. Therefore, each LCSS is partitioned into two sub-tracks by the fifth point: the first sub-track containing five points and the second one containing four points. For the first trace, the detected common sub-tracks are r ( 1 ) ( t 1 ) , t 1 = 1 , 2 , 3 , 4 , 5 and r ( 1 ) ( t 1 ) , t 1 = 13 , 14 , 15 , 16 . The common sub-tracks for the second trace are r ( 2 ) ( t 2 ) , t 2 = 1 , 2 , 3 , 4 , 5 and r ( 2 ) ( t 2 ) , t 2 = 8 , 9 , 10 , 11 . The ending points of the first common sub-track for each trace, r ( 1 ) ( 5 ) and r ( 2 ) ( 5 ) , are connecting points, and the starting points of the second sub-track for each trace, r ( 1 ) ( 13 ) and r ( 2 ) ( 8 ) , are also connecting points. The starting points of the first common sub-track for each trace, r ( 1 ) ( 1 ) and r ( 2 ) ( 1 ) , are not connecting points because they are also the starting points of the GPS traces. The ending points of the second sub-track for each trace, r ( 1 ) ( 16 ) and r ( 2 ) ( 11 ) , are not connecting points because r ( 1 ) ( 16 ) is the ending point of trace r ( 1 ) .
The procedure of detecting the LCSSs processes two GPS traces directionally, which start from the beginning of both traces and end at the ending of both traces. Therefore, only the common sub-tracks in the same direction can be detected. If the road users traverse the same road segment, producing two traces, but in the opposite directions, no common sub-tracks will be found between them. As shown in Figure 3, all of the GPS traces share the same road segment between two intersections, which are indicated by red circles. On this road segment, the road users travel from left to right in the blue traces, but from right to left in the black traces. No common sub-tracks will be found between the blue and black traces, although they do share the same road segment. Therefore, the connecting points at the ends of the common sub-tracks in the opposite directions will not be detected, leading to intersection detection being inaccurate. This can be solved by reversing the data points of the black traces.
Given a dataset of N GPS traces, we first find the common sub-tracks between each pair of GPS traces as elaborated above and collect the starting and ending points of the common sub-tracks as connecting points, if they are not the starting and ending points of these two GPS traces. We then reverse one trace in the each pair of the GPS traces and repeat the procedure again to find more connecting points.

3.3. Intersection Extraction from Connecting Points

In this section, intersections are detected using the connecting points by estimating their density over the area covered by the GPS traces. We first discretize the geographical area into a two-dimensional (2D) grid of cells and count the number of the connecting points in each cell, producing a 2D histogram [5,30]. We then convolve this 2D histogram with a Gaussian smoothing function N ( 0 , σ 2 ) , resulting in an approximation of the Kernel Density Estimation (KDE). The parameter σ exhibits a strong influence on the resulting estimate. A small σ can cause the 2D histogram to be undersmoothed, resulting in more than one intersection detected at the location of one true intersection. A big σ may lead to oversmoothing, then two adjacent intersections merge together on the density map. Therefore, the choice of σ should be made depending on the intersection size and the minimum distance between adjacent intersections.
The local maximums on the density map, i.e., the cells that have greater values than their neighbors, are detected as intersections. The outputs of this step are the geographical locations of the detected intersections and the connecting points that belong to each intersection.
The connecting points are detected from GPS trace alignment using the LCSS algorithm. One single trace meeting with many other similar GPS traces at the same location can produce a large number of connecting points, resulting in a local maximum on the density map. However, this GPS trace can be an abnormal trace that deviates from the road because of GPS errors. An example is shown in Figure 4. This will lead to an intersection being falsely detected. Therefore, we need to check the patterns of the GPS traces meeting at one intersection and remove this kind of misdetected intersection, so as to make our algorithm more robust to GPS errors.
Given an intersection candidate q , there are M connecting points belonging to this intersection r ( i ( m ) ) ( t i ( m ) ) and r ( j ( m ) ) ( t j ( m ) ) , i ( m ) [ 1 , N ] , j ( m ) [ 1 , N ] , t i ( m ) [ 1 , T i ( m ) ] , t j ( m ) [ 1 , T j ( m ) ] , m = 1 , , M , where N is the number of the GPS traces in the dataset and i ( m ) and j ( m ) are the indexes of the traces producing the connecting points r ( i ( m ) ) ( t i ( m ) ) and r ( j ( m ) ) ( t j ( m ) ) . Let p n be the number of connecting points that are detected by aligning trace r ( n ) ( t n ) with other traces using LCSS, p n = m = 1 M 1 { i ( m ) = n } + m = 1 M 1 { j ( m ) = n } . The connecting points are detected in pairs, one from r ( n ) ( t n ) and the other one from the other trace. Every connecting point is detected by aligning two traces; therefore n = 1 N p n = 2 M , where p n M . If all connecting points are detected from aligning trace r ( n ) ( t n ) with every other trace, p n = M . In this case, an intersection will be falsely detected from these connecting points if trace r ( n ) ( t n ) is an abnormal trace. For each GPS trace, we calculate p n , n = 1 , , N , and remove this intersection candidate if any of p n equals M.
As shown in Figure 4, the intersection candidate shown in the red circle is removed from the true intersections because all of its connecting points shown in green dots are detected from aligning the GPS trace, indicated using blue lines with dots, with every of the other 152 GPS traces shown in black lines with dots. We admit that we will also remove true intersections connecting three road segments, in which the road users traverse two of the road segments very frequently, but through the third road segment only once. This detected intersection candidate will be removed until we have more GPS traces to confirm the existence of this third road segment.

3.4. Accuracy Measure

Because of the limited accuracy of the GPS traces, we may detect “spurious” intersections that are not matched to any intersection on the ground-truth map. Due to the low coverage of the GPS traces in some area, we may not detect all of the ground-truth intersections. An efficient intersection detection method is supposed to identify as many ground-truth intersections as possible and as few “spurious” and “missing” intersections as possible. Therefore, we measure recall, precision and the F-score of the intersection detection methods. The recall represents the proportion of the “matched” intersections among the “matched” intersections and the “missing” intersections, i.e., recall = I c / ( I m + I c ) , where I m and I c are the number of “missing” intersections and the number of “matched” intersections, respectively. The precision specifies the proportion of the “matched” intersections among all detected intersections, i.e., precision = I c / ( I s + I c ) , where I s is the number of “spurious” intersections. We use the well-known F-score [31,32], calculated using both precision and recall, as an overall accuracy measure:
F - score = 2 × recall × precision recall + precision

4. Experimental Results

To evaluate the performance of our proposed method, we have applied it on a dataset of 889 GPS traces from the University of Illinois campus shuttles [33]. This dataset consists of 889 GPS traces and covers an area of 7 × 4 . 5 km 2 . The traces are recorded at a sampling rate of 1 s to 29 s (average: 3.61 s). Figure 5 shows the GPS traces using black lines with dots indicating the point locations. OpenStreetMap is used as the ground-truth to measure the accuracy of the detected intersections. On the streets that were traversed by the shuttles, there are 33 ground-truth intersections, as indicated using blue circles in Figure 5.

4.1. Results of the Proposed Method

Because of GPS errors, some points deviate from the main trace. These points will break the common sub-sequences into more sub-tracks with a small d t h r e in Equation (1), leading to false connecting points detected on the road. With a big d t h r e , the connecting points for adjacent intersections may be overlapped, resulting in these adjacent intersections being indistinguishable. Considering the maximum road width of 20 m and the GPS errors, we chose d t h r e as 40 m for this dataset.
Figure 6 shows the connecting points in green dots. Most of the connecting points are gathered at the intersections. At the top-right corner of the map, only a few connecting points are detected because of insufficient coverage from the shuttle. Some of connecting points are found on the road segments instead of at the intersections because of GPS errors. An example is shown in the red rectangle. One GPS trace deviates from the main road. Common sub-tracks between this GPS trace and other traces start in the middle of the road segment, rather than at one end of the road segment, resulting in false positive connecting points.
Figure 7 shows the kernel density estimation of the connecting points. The map is discretized into 1 × 1 square meters cells. A 2D histogram is produced from the connecting points, and convolved with a normal distribution function N ( 0 , σ 2 ) . We chose σ = 15 meters depending on the size of the intersections and the minimum distance between two adjacent intersections. The density estimate shows clear peaks at the intersections on the map.
Figure 8 shows 41 intersection candidates in red circles, which are local maximums on the density map. Figure 9 shows the true intersections after checking the patterns of traces meeting at the intersection candidates. If all of the connecting points around one intersection candidate are obtained by one GPS trace intersecting with a number of other traces, it is removed because the existence of a road segment should be confirmed by more traces. In total, 13 candidates are removed, and 28 intersections are kept, including 27 true intersections shown in red circles and one spurious intersection q 25 ( 2 ) shown in a red cross. q 25 ( 2 ) is not matched to any intersection on the ground-truth map. The blue circles indicate the intersections we failed to detect.
Although no intersection is found at the location of q 25 ( 2 ) on the ground-truth map, the shuttles do pass by this location from three road segments in different directions. Because OpenStreetMap was downloaded as ground-truth map in August 2014, but this dataset was recorded in April 2011, the missing intersection q 25 ( 2 ) on the ground truth map could be caused by temporary traffic control or road construction. To confirm this, we checked the Google street view of this location on dates closest to the access dates and found that the road segment between the intersection q 20 ( 2 ) and q 25 ( 2 ) was under construction and impassable in October 2014. Therefore, there is a bend connecting two road segments existing at the location of q 25 ( 2 ) on the ground truth map, but an intersection of three road segments interconnecting is detected using our method.

4.2. Comparisons

In this section, we compare our proposed method with the turning point-based method in our earlier work directly [23]. Figure 10 shows the turning points in green dots and the intersections detected from turning points in red markers. The bends, which connect two road segments only, are removed through checking the shuttles’ turning patterns at these locations. In total, 36 intersections are detected after the bend removal, including 29 true intersections shown in red circles and seven spurious intersections shown in red crosses. Five of the ground-truth intersections, which are indicated using blue circles, are undetected using the turning point-based method.
Figure 11a,b shows the accuracy of the intersections detected from two different methods separately: Figure 11a is for the turning point-based method and Figure 11b for the proposed method. The matching threshold is defined as the allowable distance between the detected intersections and their positions on the ground-truth map. An intersection is considered as spurious if there is no ground-truth intersection within the allowable distance. With the lowest matching threshold of five meters, there are no true intersections on the ground-truth map matched to the intersections detected using the turning point-based method, neither using the proposed method. More intersections are correctly detected, as the matching threshold gets bigger. Therefore, the proportion of missing intersections gets lower, and the proportion of spurious intersections drops, as well, resulting in higher F-scores F i ( 1 ) and F i ( 2 ) .
The turning point-based method detects more spurious intersections than our proposed method, resulting in higher i s ( 1 ) , but lower F i ( 1 ) in Figure 11a, compared to i s ( 2 ) and F i ( 2 ) in Figure 11b. Figure 11a shows that the turning point-based method reaches an F-score of around 0 . 8 with a matching threshold of 40 m. However, the F-score value of our proposed method reaches 0 . 85 with a threshold of 30 m. It demonstrates that our proposed method has higher detection accuracy compared to the methods based on moving direction change. The average distance between the detected intersections and their ground-truth positions is 14 . 90 m for our proposed method and 22 . 69 m for the turning point-based method. This also confirms that the proposed method outperforms the other method.

5. Conclusions

We have presented a novel approach to identify intersections from GPS traces by detecting the common sub-tracks between pairwise traces using LCSS. The starting and ending points of these consecutive sub-tracks are collected as connecting points and used to find the intersections through KDE. The patterns of the GPS traces meeting at the intersections are checked so as to remove the false positive detections. Experimental results show that our proposed method achieves higher accuracy than the turning point-based method. Especially, we successfully differentiate true intersections from bends.
A drawback of our proposed method is the computational cost. Given N GPS traces, ( N 1 ) N 2 pairwise traces are processed to detect the common sub-tracks using our method, while N traces are processed separately to find the turning points using the turning point-based method. Therefore, our computational cost is more expensive. In the future, we will pre-process the GPS traces to reduce the computational cost. For instance, the pairwise GPS traces will not go to the LCSS procedure if there are no overlapping points found between them. Additionally, we will work on inferring the existence and coverage of intersections statistically using a probabilistic method, instead of the two-valued logic in our current method. We will also test our algorithm in road networks with non-orthogonal road segments.

Acknowledgments

The authors would like to thank BITSlaboratory for providing the Chicago dataset.

Author Contributions

The research was conducted by the main author, Xingzhe Xie, under the supervision of the co-authors Hamid Aghajan, Peter Veelaert and Wilfried Philips. Wenzhi Liao reviewed the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Shi, W.; Shen, S.; Liu, Y. Automatic generation of road network map from massive GPS, vehicle trajectories. In Proceedings of the 12th International IEEE Conference on Intelligent Transportation Systems, St. Louis, MO, USA, 4–7 October 2009.
  2. Ahmed, M.; Karagiorgou, S.; Pfoser, D.; Wenk, C. A comparison and evaluation of map construction algorithms using vehicle tracking data. GeoInformatica 2014, 19, 601–632. [Google Scholar] [CrossRef]
  3. Agamennoni, G.; Nieto, J.I.; Nebot, E.M. Robust inference of principal road paths for intelligent transportation systems. IEEE Trans. Intell. Transp. Syst. 2011, 12, 298–308. [Google Scholar] [CrossRef]
  4. Schroedl, S.; Wagstaff, K.; Rogers, S.; Langley, P.; Wilson, C. Mining GPS traces for map refinement. Data Min. Knowl. Discov. 2004, 9, 59–87. [Google Scholar] [CrossRef]
  5. Biagioni, J.; Eriksson, J. Inferring road maps from global positioning system traces. Transp. Res. Rec. 2012, 2291, 61–71. [Google Scholar] [CrossRef]
  6. Edelkamp, S.; Schrödl, S. Route planning and map inference with global positioning traces. In Computer Science in Perspective; Springer: Berlin/Heidelberg, Germany, 2003; pp. 128–151. [Google Scholar]
  7. Cao, L.; Krumm, J. From GPS traces to a routable road map. In Proceedings of the 17th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, Washington, DC, USA, 4–6 November 2009.
  8. Worrall, S.; Nebot, E. Automated process for generating digitised maps through GPS data compression. In Proceedings of the Australasian Conference on Robotics and Automation, Brisbane, Australia, 10–12 December 2007.
  9. Niehoefer, B.; Burda, R.; Wietfeld, C.; Bauer, F.; Lueert, O. GPS community map generation for enhanced routing methods based on trace-collection by mobile phones. In Proceedings of the 1st International Conference on Advances in Satellite and Space Communications, Colmar, France, 20–25 July 2009.
  10. Karagiorgou, S.; Pfoser, D. On vehicle tracking data-based road network generation. In Proceedings of the 20th International Conference on Advances in Geographic Information Systems, Redondo Beach, CA, USA, 7–9 November 2012.
  11. Davics, J.; Beresford, A.R.; Hopper, A. Scalable, distributed, real-time map generation. IEEE Pervasive Comput. 2006, 5, 47–54. [Google Scholar]
  12. Xie, X.; Philips, W.; Veelaert, P.; Aghajan, H. Road network inference from GPS traces using DTW algorithm. In Proceedings of the 17th IEEE International Conference on Intelligent Transportation Systems, Qingdao, China, 8–11 October 2014.
  13. Zheng, Y.; Zhang, L.; Xie, X.; Ma, W.Y. Mining interesting locations and travel sequences from GPS trajectories. In Proceedings of the 18th International Conference on World Wide Web, Madrid, Spain, 20–24 April 2009.
  14. You, Q.; Krumm, J. Transit tomography using probabilistic time geography: Planning routes without a road map. J. Locat. Based Serv. 2014, 8, 211–228. [Google Scholar] [CrossRef]
  15. Vlahogianni, E.I.; Karlaftis, M.G.; Golias, J.C. Optimized and meta-optimized neural networks for short-term traffic flow prediction: A genetic approach. Transp. Res. Part C 2005, 13, 211–234. [Google Scholar] [CrossRef]
  16. Herrera, J.C.; Work, D.B.; Herring, R.; Ban, X.J.; Jacobson, Q.; Bayen, A.M. Evaluation of traffic data obtained via GPS-enabled mobile phones: The Mobile Century field experiment. Transp. Res. Part C 2010, 18, 568–583. [Google Scholar] [CrossRef]
  17. Xie, X.; Wong, K.; Aghajan, H.; Philips, W. Analyzing cyclists’ behaviors and exploring the environments from cycling tracks. In Proceedings of the Cycling Data Challenge 2013 Workshop, Leuven, Belgium, 14 May 2013.
  18. Syberfeldt, A.; Persson, L. Using heuristic search for initiating the genetic population in simulation-based optimization of vehicle routing problems. In Proceedings of the Industrial Simulation Conference 2009, Loughborough, UK, 1–3 June 2009.
  19. Xie, X.; Wong, K.; Aghajan, H.; Philips, W. Smart route recommendations based on historical GPS trajectories and weather information. In Proceedings of the Mobile Ghent, 2013, Ghent, Belgium, 23–25 October 2013.
  20. Wu, J.; Zhu, Y.; Ku, T.; Wang, L. Detecting road intersections from coarse-gained GPS traces based on clustering. J. Comput. 2013, 8, 2959–2965. [Google Scholar] [CrossRef]
  21. Pelleg, D.; Moore, A.W. X-means: Extending K-means with efficient estimation of the number of clusters. In Proceedings of the Seventeenth International Conference on Machine Learning (ICML ’00), Stanford, CA, USA, 29 June–2 July 2000.
  22. Wang, J.; Rui, X.; Song, X.; Tan, X.; Wang, C.; Raghavan, V. A novel approach for generating routable road maps from vehicle GPS traces. Int. J. Geogr. Inf. Sci. 2015, 29, 69–91. [Google Scholar] [CrossRef]
  23. Xie, X.; Wong, K.; Aghajan, H.; Veelaert, P.; Philips, W. Inferring directed road networks from GPS traces by Track Alignment. Int. J. Geo-Inf. 2015, 4, 2446–2471. [Google Scholar] [CrossRef] [Green Version]
  24. Fathi, A.; Krumm, J. Detecting road intersections from GPS traces. In Proceedings of the Geographic Information Science, Zurich, Switzerland, 14–17 September 2010.
  25. Xie, X.; Liao, W.; Aghajan, H.; Veelaert, P.; Philips, W. A novel approach for inferring intersections from GPS traces. In Proceedings of the 2016 IEEE International Symposium on Geoscience and Remote Sensing, Beijing, China, 10–15 July 2016.
  26. Hirschberg, D.S. Algorithms for the longest common subsequence problem. J. ACM 1977, 24, 664–675. [Google Scholar] [CrossRef]
  27. Denardo, E.V. Dynamic Programming: Models and Applications; Courier Corporation: North Chelmsford, MA, USA, 2012. [Google Scholar]
  28. Sniedovich, M. Dynamic Programming: Foundations and Principles; CRC Press: Boca Raton, FL, USA, 2010. [Google Scholar]
  29. Keogh, E.J.; Pazzani, M.J. Derivative dynamic time warping. In Proceedings of the First SIAM International Conference on Data Mining (SDM’2001), Chicago, IL, USA, 5–7 April 2001.
  30. Scott, D.W. Multivariate Density Estimation: Theory, Practice, and Visualization; John Wiley & Sons: Hoboken, NJ, USA, 2015. [Google Scholar]
  31. Yang, Y. An evaluation of statistical approaches to text categorization. Inf. Retr. 1999, 1, 69–90. [Google Scholar] [CrossRef]
  32. Liu, B. Web Data Mining; Springer: Berlin/Heidelberg, Germany, 2007. [Google Scholar]
  33. Laboratory, B.N.S. Available online: http://bits.cs.uic.edu/ (accessed on 21 December 2016).
Figure 1. An example of two GPS traces sharing roads. Two GPS traces diverge from one common road segment to different road segments at the first intersection, which is indicated using a black star, and then converge to another common road segment at the second intersection indicated using a black triangle.
Figure 1. An example of two GPS traces sharing roads. Two GPS traces diverge from one common road segment to different road segments at the first intersection, which is indicated using a black star, and then converge to another common road segment at the second intersection indicated using a black triangle.
Ijgi 06 00001 g001
Figure 2. LCSS problem of two GPS traces. (a) The longest common subsequences between trace r 1 and r 2 using black markers. There are nine points in the longest common subsequence for each trace. (b) The “backtrack” procedure of finding the optimal warp path of these two traces by following the arrows. The longest common subsequences are indicated using cells with green numbers.
Figure 2. LCSS problem of two GPS traces. (a) The longest common subsequences between trace r 1 and r 2 using black markers. There are nine points in the longest common subsequence for each trace. (b) The “backtrack” procedure of finding the optimal warp path of these two traces by following the arrows. The longest common subsequences are indicated using cells with green numbers.
Ijgi 06 00001 g002
Figure 3. GPS traces in opposite directions. On the road segment between two intersections indicated by red circles, no common sub-tracks can be found between the blue and black traces, because the road users traverse from left to right in the blue traces, whereas from right to left in the black traces.
Figure 3. GPS traces in opposite directions. On the road segment between two intersections indicated by red circles, no common sub-tracks can be found between the blue and black traces, because the road users traverse from left to right in the blue traces, whereas from right to left in the black traces.
Ijgi 06 00001 g003
Figure 4. A false positive intersection. One intersection candidate in the red circle is detected from the connecting points in green dots. It is a false positive because all of the connecting points are produced from 152 traces interconnecting with one single trace.
Figure 4. A false positive intersection. One intersection candidate in the red circle is detected from the connecting points in green dots. It is a false positive because all of the connecting points are produced from 152 traces interconnecting with one single trace.
Ijgi 06 00001 g004
Figure 5. Chicago GPS traces and the ground-truth intersections. Eight hundred eighty nine GPS traces over 118 h are shown in black lines with dots that indicate the positions of GPS recordings. Thirty three ground-truth intersections are indicated using blue circles.
Figure 5. Chicago GPS traces and the ground-truth intersections. Eight hundred eighty nine GPS traces over 118 h are shown in black lines with dots that indicate the positions of GPS recordings. Thirty three ground-truth intersections are indicated using blue circles.
Ijgi 06 00001 g005
Figure 6. Connecting points. The connecting points are shown in green dots.
Figure 6. Connecting points. The connecting points are shown in green dots.
Ijgi 06 00001 g006
Figure 7. KDE of the connecting points. Peaks of the KDE are located at the intersections.
Figure 7. KDE of the connecting points. Peaks of the KDE are located at the intersections.
Ijgi 06 00001 g007
Figure 8. Intersection candidates. The intersection candidates are extracted from the connecting points by finding local maximums on the density map. In total, 41 candidates are detected.
Figure 8. Intersection candidates. The intersection candidates are extracted from the connecting points by finding local maximums on the density map. In total, 41 candidates are detected.
Ijgi 06 00001 g008
Figure 9. Intersections detected from connecting points. By checking the patterns of the traces meeting at the intersections, 13 intersection candidates are removed, resulting in 28 true intersections shown in red circles.
Figure 9. Intersections detected from connecting points. By checking the patterns of the traces meeting at the intersections, 13 intersection candidates are removed, resulting in 28 true intersections shown in red circles.
Ijgi 06 00001 g009
Figure 10. Intersections detected from turning points. Thirty six intersection are identified, including 29 true intersections in red circles and seven spurious intersections in red crosses. Five intersections on the ground-truth map are undetected, which are indicated using blue circles.
Figure 10. Intersections detected from turning points. Thirty six intersection are identified, including 29 true intersections in red circles and seven spurious intersections in red crosses. Five intersections on the ground-truth map are undetected, which are indicated using blue circles.
Ijgi 06 00001 g010
Figure 11. Intersections’ accuracy analysis. (a) The accuracy of the intersections detected from turning points; (b) the proposed method based on connecting point detection.
Figure 11. Intersections’ accuracy analysis. (a) The accuracy of the intersections detected from turning points; (b) the proposed method based on connecting point detection.
Ijgi 06 00001 g011

Share and Cite

MDPI and ACS Style

Xie, X.; Liao, W.; Aghajan, H.; Veelaert, P.; Philips, W. Detecting Road Intersections from GPS Traces Using Longest Common Subsequence Algorithm. ISPRS Int. J. Geo-Inf. 2017, 6, 1. https://doi.org/10.3390/ijgi6010001

AMA Style

Xie X, Liao W, Aghajan H, Veelaert P, Philips W. Detecting Road Intersections from GPS Traces Using Longest Common Subsequence Algorithm. ISPRS International Journal of Geo-Information. 2017; 6(1):1. https://doi.org/10.3390/ijgi6010001

Chicago/Turabian Style

Xie, Xingzhe, Wenzhi Liao, Hamid Aghajan, Peter Veelaert, and Wilfried Philips. 2017. "Detecting Road Intersections from GPS Traces Using Longest Common Subsequence Algorithm" ISPRS International Journal of Geo-Information 6, no. 1: 1. https://doi.org/10.3390/ijgi6010001

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop