A Framework For Adaptive Best Path Determination in Real World Traffic
A Framework For Adaptive Best Path Determination in Real World Traffic
(ISSN 1992-8424)
A Framework for Adaptive Best Path
Determination in Real World Traffic
Mohammad A. M. Asmaran, Sulieman Bani-Ahmed
IT Department, A-Balqa Applied University
Prince Abdullah Bin Ghazi Faculty Of Science and IT, Al-Balqa Applied University, Al-Salt 19117, Jordan
[email protected], [email protected]
Abstract Route planners that identify the best step-by-step driving directions between two locations have rapidly become a part of
our everyday life. However, the output quality of route planners depends critically on the current status of roads in order to calculate
the best (shortest, fastest, or cheapest) route from a starting point to a destination. Maintaining accurate and updated statistics about
the status of roads has been made possible due to the integration of navigational technologies. These technologies are the global
positioning system (GPS), database technologies such as geographic information system (GIS) and communication technology. This
paper is to propose an efficient self learning mechanism or framework to help route planners find out best routes based on the current
status of roads in addition to the static road lengths. This helps customizable best route identification. With the proposed framework,
it is possible, for instance, to choose the best route that the minimal time in addition to minimal fuel consumption, which is a very
critical factor due to the significant increase in fuel prices in the last few years. An advantage of the proposed framework is that is
does not require any extra streets equipments. Further, the proposed framework promises a system that requires minimal
administration.
Keywords Route planners; Best path algorithms; GPS; Traffic tracking; Shortest Path.
I. INTRODUCTION
Many real life applications relying on finding the best way
to reach specific destination point in a GIS map. This implies
using a best path algorithm that can find out a best path
according to certain measures [1]. Visualizing the GIS map
as a graph, these measures are usually referred to as weights
of the edges of the path, where an edge is the link between
two linked points in the GIS map. These weights actually
control guide the way that best path algorithm can run and
identify the best route. The weights represent the lengths of
the edges and, thus, the best route can be thought of as the
shortest path [2].
Depending on the criteria represented by the weights of
the edges, the best path can be viewed as the one with the
shortest overall travelling time or the one with shortest path
length. Other optimization aspects are also possible, such as
the total fuel cost. The best route identified may vary
depending on the obstacles that vehicle could face in its way
to the destination. These obstacles could be jams, accidents,
traffic lights, or maintenance operations in streets. In some
cases, these obstacles would make the shortest path in terms
of length to consume a lot of time and/or more fuel cost
when compared to following a longer alternative route [3].
Consequently, the weight of the path or the edge should be
computed according to more factors such as jams that are
one of the most affecting factors in term of time. Another
factor is the number of traffic lights in roads and the stopping
times of traffic lights. In practice, traffic lights are
814
815
816
D. Algorithm Steps:
Step 1: Each vehicle should attach a processing unit that
communicates with server in order to send information such
as speed and GPS position. All map information, mainly
edges information are stored on the server as shown in Table
I.
Highway Level
Highway
Semi Highway None Highway
Stopping
Fuel
Fuel
Fuel
Fuel
Consumption Consumption Consumption Consumption
Rate
Rate
Rate
Rate
Vehicle
ID
Stop
Time
Average
Speed
Time
No Of
Familiar
Vehicles
Average
Stop
Time
STATISTICS TABLE
Average
Walking
Time
Average
Speed
Calculation
Time
TABLE V.
Edge
ID
1
1
1
1
Vehicle
ID
1
2
3
4
Stop
Time
20
18
23
200
Walking
Time
100
98
105
300
Average
Speed
43
45
40
15
817
Edge
ID
Vehicle
ID
Stop
Time
Walking
Time
Average
Speed
20
100
43
TABLE VII.
Edge
ID
Vehicle
ID
Stop
Time
Walking
Time
Average
Speed
20
(diff.
is 2)
100
(diff.. is
2)
43
(diff. is 2)
18
98
45
TABLE VIII.
Edge
ID
Vehicle
ID
No Of
Familiar
Vehicles
2
TABLE IX.
No Of
Familiar
Vehicles
1
Walking
Time
Average
Speed
100
(diff. is
5)
98
(diff. is
7)
105
43
(diff. is
3)
45
(diff. is
5)
40
No Of
Familiar
Vehicles
3
Edge
ID
Vehicle
ID
Stop
Time
Walking
Time
Average
Speed
100
(diff. is
200)
43
(diff. is
28)
20
(diff.
is
180)
18
(diff.
is
182)
23
(diff.
is
177)
200
98
(diff. is
202)
45
(diff. is
30)
105
(diff. is
195)
40
(diff. is
25)
300
15
No Of
Familiar
Vehicles
3
TABLE X.
Edge
ID
Average Stop
Time
(20+18+23)/3
= 20.3
Average Speed
(43+45+40)/3=42.7
F. Complexity
Average calculation process complexity is O(n) where n is
the number of values read during interval.
Insertion process complexity is O(m) where m is the
number of previously inserted values from the beginning of
the interval. [17]
G. Determining "Highway Level" column
"Highway Level" column varies according to interval
average speed so that if it is more than 80 km/h, then
Highway Level is 3. If the interval Average Speed is between
50 km/h and 80km/h, then Highway Level is 2. Otherwise
Highway Level is 1.
Speed ranges depend on the nature of traffic system in the
city or country.
H. Multithreading problems
This algorithm involves multi access operations and
updates at the same time on the same vehicle values. So,
average calculation and insertion process is defined as
atomic functions. Or, it is left to be handled by database
management system locking mechanism if the system is
implemented using database.
I. Measure Enhancements
In order to get more accurate results edges shouldn't
contain any cross or sub turn with another street regardless of
crossing street size.
J. Implementation
Implementation of the proposed algorithm is done using
object oriented to encapsulate vehicle data and functions. A
special function is defined to add records and increase time
index every interval end to initiate next time interval and
other weights calculation functions. As another
implementation, database is used to utilize database
management systems fast access algorithms.
To demonstrate the superiority of the proposed
framework consider figure 1 as an example. Figure 1 shows
two different routes between two points in Salt area in Jordan.
Few statistics will be presented next. Those statistics are
based on real observations. One of the routes is via a street
with a possible average speed of 96 km/h (red colored in
figure 1). This route is longer than another possible route by
6 kilometers with a total length of 11 kilometers (blue
colored in figure 1). The average travel time for the longer
route was 430 seconds. This is because that this route
818
Figure 1.
REFERENCES
[1] Dijkstra, E. W. (1959). "A note on two problems in
connexion with graphs", Numerische Mathematlk, vol.
1, pp. 269271, Nov. 1959.
[2] Stuart Russell and Peter Norvig, Artificial Intelligence:
A Modern Approach, 3rd Ed, Prentice Hall, 2009
[3] (2010) FHWA Arterial Management Website, latest
information on traffic signal operations [Online].
Available: http://ops.fhwa.dot.gov/arterial_mgmt/
[4] Wikipedia (2011) Traffic light page on Wikipedia
[Online].
Available:
http://en.wikipedia.org/wiki/Traffic_light
[5] Wikipedia (2011) Congestion pricing page on
Wikipedia
[Online].
Available:
http://en.wikipedia.org/wiki/Congestion_pricing
819
820