<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Public transport route planning in the stochastic network based on the user individual preferences</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>A A Borodinov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A S Yumaganov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A A Agafonov</string-name>
          <email>ant.agafonov@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Samara National Research University</institution>
          ,
          <addr-line>Moskovskoe Shosse 34А, Samara, Russia, 443086</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <fpage>66</fpage>
      <lpage>71</lpage>
      <abstract>
        <p>Nowadays transport systems becomes more and more complex. Therefore, passengers have di culty with route planning due to the variety of possible ways to get from the starting point to the destination one. Since the travel time often not considered as single and main criteria by passengers, it is important to take into account their own preferences which may be very di erent. In this paper, we proposed a stochastic route planning algorithm, which considers the user individual preferences. This method is based on the modi ed Dijkstra's algorithm. The proposed algorithm is tested using real public transport dataset obtained from the transportation network of Samara, Russia.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Congestion of transport networks is growing everywhere. It is caused both by an increase
in the number of the vehicle in large metropolitan areas and by the a prior unpreparedness
of the road infrastructure created in the past to modern ows. This makes it increasingly
important to solve navigation problems associated with the problems of choosing the optimal
route on personal and public transport. There are many systems and applications for navigation
(Yandex.Navigator and others). However, they work with a simpli ed static transport network
graph (instead of a stochastic time-dependent graph), do not take into account predictive
information about the public transport movement when building tra c routes, and do not
consider user preferences for solving navigation problems. All this leads to the fact that
decisionmaking by the user (especially on the usual tra c routes) is carried out according to subjective
criteria and, often, di ers from the optimal one. The solution of these problems will reduce
the total time of transport correspondence in the network, increase user satisfaction and the
transport infrastructure e ciency as a whole.</p>
      <p>The article is structured as follows. The rst section brie y provides a literature overview on
nding the optimal route for public transport in time-dependent deterministic and stochastic
transport networks. The second section describes the transport network model. The third
section provides the proposed algorithm for calculating the optimal way for public transport
in the stochastic network, taking into account the predictive information about the vehicles
arrival time and using the individual participant preferences. The fourth section presents the
formulation and results of experimental studies. In conclusion, presents the conclusion and
possible directions for further research.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Literature review</title>
      <p>Existing navigation systems mainly work with static transport networks, i.e. suggest that the
travel time of the road segments is constant and does not depend on the time of day, weather
conditions and other factors. Because the road situation is not static, to improve the movement
time estimation accuracy, it is necessary to take into account the dynamic and stochastic tra c
ows characteristics.</p>
      <p>
        A routing methods overview in time-dependent transport networks is provided in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
Hierarchical routing [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and bidirectional algorithm A* [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] were used to speed up routing
algorithms.
      </p>
      <p>
        The multicriterial algorithm for nding the shortest path in the stochastic network A* was
presented in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. It was assumed in the paper that the transit time values of adjacent road
segments are correlated.
      </p>
      <p>
        Modern methods for solving the navigation problem in stochastic time-dependent transport
networks simulate the road segments transit time as a random variable with a time-dependent
distribution function [
        <xref ref-type="bibr" rid="ref5 ref6 ref7">5, 6, 7</xref>
        ].
      </p>
      <p>
        A separate task is to combine the routeing reliability and the expected time of movement.
Most works use the average risk model [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ], which takes into account the average and variance
of the road segments travel time within a linear objective function that needs to be optimized.
The objective function coe cients are often chosen heuristically based on experimental studies.
      </p>
      <p>
        The main problem in multimodal transport systems is a uniform information combination
about the various movement modes [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. The most common approach is to build a transport
network graph, in which various tra c routes are connected by edges, meaning transplants at
stopping points.
      </p>
      <p>
        Moreover, it is necessary to take into account the importance of user individual preferences,
when routing in multimodal transport systems. Often travel time is not the only criterion for
choosing a route. The transfers number, fare, vehicles waiting time, etc. should be taken into
account. [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Therefore, multi-criteria optimization algorithms should be used to improve
accuracy.
      </p>
      <p>
        A research separate area is nding the optimal navigation strategy, which is a hierarchical
rule for deciding the further route choice based on actual passenger transport movement data.
The spatial and temporal stochastic transit time dependencies of road segments are investigated
in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. In the article [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] the authors included actual information on the movement of the
vehicle in the navigation strategy.
      </p>
      <p>
        In the article [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] presented an algorithm for nding the shortest path on public transport,
taking into account dynamic and stochastic information about the movement of the vehicle.
Emphasis is placed on the practical implementation of the algorithm. The article [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] presents a
routing algorithm that simultaneously takes into account the stochastic transit time of the road
segments and the vehicles waiting time and optimizes both the routes speed and reliability.
      </p>
      <p>
        This paper presents an algorithm for calculating the optimal way for public transport in a
stochastic network. In contrast to [
        <xref ref-type="bibr" rid="ref14 ref15">14, 15</xref>
        ], the arrival time is used to take into account waiting
times based on current and predicted information on the movement of the vehicle, instead of
the vehicles movement frequency. In addition, the algorithm takes into account user preferences
when choosing the parameters of the target optimization function.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Transport Network Model</title>
      <p>The transport network will be considered as a directed graph G = (N; E), vertices ni 2 N of
which correspond to stops, edges eij 2 E; i 2 V; j 2 V - to segments of the transport network
with length jeij j, each stop being represented by at least three vertices of the graph.</p>
      <p>We introduce the following notation: Sk - stop from set S; Ri - passenger transport route
from the set R.</p>
      <p>The part of the graph representing the two routes R1 and R2, containing the common stop
Sk, is shown in gure 1.</p>
      <p>R</p>
      <p>1
R
2
e</p>
      <p>move
e
move
e</p>
      <p>out
e
out
e</p>
      <p>wait
e
wait</p>
      <p>S
k
e</p>
      <p>arr
e
arr
e</p>
      <p>move
e</p>
      <p>move</p>
      <p>The graph contains edges of several types:
emove - represents the segment of the route between stops, characterized by the average time
ij and the dispersion ij ;
ewait - waiting for passengers boarding/alighting at the bus stop, in the work, constant
waiting time is used as the edge weight;
eout - alighting edge, in the work as the edge weight is used constant alighting time;
earr - boarding edge (vehicle waiting) is determined by the vehicle arrival time of the
corresponding route to stop;
ewalk (not shown in the gure) - walk from stops to the points of departure/arrival, the edge
weight depends on the transition distance;</p>
      <p>
        The route nding task is reduced to the task of nding the shortest path in the graph. The
algorithm for solving the problem in a time-dependent stochastic transport network, taking into
account the road users individual preferences, is presented in the next section.
4. Algorithm for nding the shortest path
Dijkstra's modi ed algorithm is used to nd the shortest path in a time-dependent stochastic
transport network [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] (algorithm 1).
      </p>
      <p>The algorithm uses the pair (ni; costi) as the vertex label li, containing the vertex ni and
the multidimensional route price costi, which must be spent to reach the vertex ni from the
departure vertex ns. The route price is represented as a pair costi = (ci; ti), where ci - the
generalized price, ti - the trip time.</p>
      <p>The queue with priority pq determines the next vertex to be viewed based on the generalized
price ci. Associative arrays predM ap and costsM ap respectively are used to store the previous
vertex for the given and the trip price to the speci ed vertex.</p>
      <p>In the algorithm, the getCost() and getTime() functions - getting the generalized price ci and
time ti from the price of reaching the vertex costi.</p>
      <p>The main interest is the estimation obtaining function of the passing the graph edge price
calculateCost(). The proposed method for determining the cost of an edge depending on its
type is described in Algorithm 2. In algorithm 2, the following notation is used:
twait = 30 (seconds) - alighting/boarding time;
tout = 10 (seconds) - alighting time;</p>
      <p>Algorithm 1: Algorithm for nding the shortest path</p>
      <p>Input data: departure vertex ns, arrival vertex nd,
departure time t
Output data: shortest path
// Initialization
PriorityQueue pq = ;
Map predM ap = ;
Map costsM ap = ;
Label ls = Label(ns; costs)
pq.insert(ls)
while !pq = ; do</p>
      <p>Label li = pq:pop()
ni = li:getNode()
foreach eij 2 E do
costj = calculateCost(eij ; t + li:getCost().getTime())
if costj :getCost() &gt; costsM ap:get(ni).getCost() then</p>
      <p>continue;
end
costsM ap:put(nj ; costj )
predM ap:put(nj ; ni)
Label lj = Label(nj ; costj )
pq.insert(lj )
end
end
tarr - the vehicle arrival estimated time at the stop;
swalk = 1 (m/s) - walking speed;</p>
      <p>0; 1; 2 -individual preferences parameters that a ect the reliable path choice, the
transfers number and walking distance.</p>
    </sec>
    <sec id="sec-4">
      <title>5. Experiment</title>
      <p>Experimental studies of the developed method were carried out for the Samara street-road
network. The road network consists of 48139 segments. The data on the passenger transport
bus routes movement were used to predict the time of arrival.</p>
      <p>Six pairs of di erent departure and arrival vertices on the transport network graph were
chosen to study the algorithm quality, after which for each pair they solved the problem of
nding a way on public transport, varying the departure time.</p>
      <p>Two standard metrics were used to compare the prediction quality: Mean Absolute
Percentage Error (MAPE) and Mean Absolute Error (MAE).</p>
      <p>MAPE =</p>
      <p>100%
1 XN jti
N i=1
ti
^
tij
MAE =
1 XN jti
N i=1
^
tij
where ti - is the actual route time value, t^i - the predicted value, N - number of experiments.</p>
      <p>Algorithm 2: calculateCost</p>
      <p>Input data: graph edge eij, arrival time t to the vertex i
Output data: cost costj = (cj ; tj )
if eij is emove then
// route segment between stops
return ( ij + 0p ij ; ij );
end
else if eij is ewait then
// alighting/boarding
return (twait; twait);
end
else if eij is eout then
// alighting
return (tout; tout);
end
else if eij is earr then
// waiting for transport
return ( 1(tarr t); tarr t);
end
else if eij is ewalk then</p>
      <p>// foot transition
end</p>
      <p>return ( 2jeij j=swalk; jeij j=swalk);</p>
      <p>The average trip time was tavg = 2645 seconds. The following values were obtained from the
experimental analysis results: M AP E = 6:62%, M AE = 179:8 seconds. The obtained values
allow us to conclude about the good quality of the proposed algorithm..</p>
    </sec>
    <sec id="sec-5">
      <title>6. Conclusion</title>
      <p>The paper presents an algorithm for calculating the shortest path on public transport in a
stochastic time-dependent transport network that takes into account the average time and
variance of the road segment travel time when building a route. The proposed algorithm uses
real-time data and forecast data on the movement of vehicles to estimate the waiting time for
public transport at bus stops. Algorithm parameters are selected according to individual user
preferences.</p>
      <p>Experimental analysis of the proposed algorithm showed high accuracy in estimating the time
of movement, which is close to real time along the selected route.</p>
      <p>A further work direction includes comparing the proposed algorithm with other algorithms
for solving the navigation problem, as well as modifying the edge weight estimating function to
increase the found route reliability of motion.
Acknowledgments
The reported study was funded by the Ministry of Science and Higher Education of the Russian
Federation (unique project identifier RFMEFI57518X0177).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Delling</surname>
            <given-names>D</given-names>
          </string-name>
          and
          <string-name>
            <surname>Wagner D 2009</surname>
          </string-name>
          Time-dependent
          <source>route planning Lecture Notes in Computer Science (including subseries Lecture Notes in Arti cial Intelligence and Lecture Notes in Bioinformatics)</source>
          5868
          <fpage>207</fpage>
          -
          <lpage>230</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Delling</surname>
            <given-names>D</given-names>
          </string-name>
          and
          <string-name>
            <surname>Nannicini</surname>
            <given-names>G 2012</given-names>
          </string-name>
          <article-title>Core routing on dynamic time-dependent road networks</article-title>
          <source>INFORMS Journal on Computing</source>
          <volume>24</volume>
          <fpage>187</fpage>
          -
          <lpage>201</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Nannicini</surname>
            <given-names>G</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Delling</surname>
            <given-names>D</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schultes</surname>
            <given-names>D</given-names>
          </string-name>
          and
          <string-name>
            <surname>Liberti L 2012 Bidirectional A</surname>
          </string-name>
          <article-title>* search on time-dependent road networks</article-title>
          <source>Networks</source>
          <volume>59</volume>
          <fpage>240</fpage>
          -
          <lpage>251</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Chen</surname>
            <given-names>B Y</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lam W H K</surname>
            , Sumalee
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Li Z -l</surname>
          </string-name>
          .
          <year>2012</year>
          <article-title>Reliable shortest path nding in stochastic networks with spatial correlated link travel times</article-title>
          <source>International Journal of Geographical Information Science</source>
          <volume>26</volume>
          <fpage>365</fpage>
          -
          <lpage>386</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Miller-Hooks E D and Mahmassani H S 2000</surname>
          </string-name>
          <article-title>Least expected time paths in stochastic, time-varying transportation networks</article-title>
          <source>Transportation Science</source>
          <volume>34</volume>
          <fpage>198</fpage>
          -
          <lpage>215</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Sun</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Duan</surname>
            <given-names>Z</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sun</surname>
            <given-names>S</given-names>
          </string-name>
          and
          <string-name>
            <surname>Yang</surname>
            <given-names>D 2014</given-names>
          </string-name>
          <article-title>How to nd the optimal paths in stochastic timedependent transportation networks?</article-title>
          <source>17th IEEE International Conference on Intelligent Transportation Systems, ITSC 2348-2353</source>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Agafonov</surname>
            <given-names>A A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Myasnikov</surname>
            <given-names>V V</given-names>
          </string-name>
          <year>2016</year>
          <article-title>Method for the reliable shortest path search in time-dependent stochastic networks and its application to GIS-based tra c</article-title>
          control
          <source>Computer Optics</source>
          <volume>40</volume>
          (
          <issue>2</issue>
          )
          <fpage>275</fpage>
          -
          <lpage>283</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2016-40-2-
          <fpage>275</fpage>
          -283
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Lim</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sommer</surname>
            <given-names>C</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nikolova</surname>
            <given-names>E</given-names>
          </string-name>
          and
          <string-name>
            <surname>Rus</surname>
            <given-names>D 2013</given-names>
          </string-name>
          <article-title>Practical route planning under delay uncertainty: Stochastic shortest path queries</article-title>
          <source>Robotics: Science and Systems</source>
          <volume>8</volume>
          <fpage>249</fpage>
          -
          <lpage>256</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Nikolova</surname>
            <given-names>E 2010</given-names>
          </string-name>
          <article-title>Approximation algorithms</article-title>
          for reliable stochastic
          <source>combinatorial optimization Lecture Notes in Computer Science (including subseries Lecture Notes in Arti cial Intelligence and Lecture Notes inBioinformatics)</source>
          6302
          <fpage>338</fpage>
          -
          <lpage>351</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Grasman</surname>
            <given-names>S E</given-names>
          </string-name>
          <year>2006</year>
          <article-title>Dynamic approach to strategic and operational multimodal routing decisions</article-title>
          <source>International Journal of Logistics Systems and Management</source>
          <volume>2</volume>
          <fpage>96</fpage>
          -
          <lpage>106</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Grbener</surname>
            <given-names>T</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Berro</surname>
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Duthen</surname>
            <given-names>Y 2010</given-names>
          </string-name>
          <article-title>Time dependent multiobjective best path for multimodal urban routing</article-title>
          <source>Electronic Notes in Discrete Mathematics</source>
          <volume>36</volume>
          <fpage>487</fpage>
          -
          <lpage>494</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Gao</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frejinger</surname>
            <given-names>E</given-names>
          </string-name>
          and
          <string-name>
            <surname>Ben-Akiva M 2010</surname>
          </string-name>
          <article-title>Adaptive route choices in risky tra c networks: A prospect theory</article-title>
          approach Transportation Research Part C: Emerging Technologies 18
          <fpage>727</fpage>
          -
          <lpage>740</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Wu</surname>
            <given-names>C</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            <given-names>X</given-names>
          </string-name>
          and
          <string-name>
            <surname>Dong</surname>
            <given-names>Y 2014</given-names>
          </string-name>
          <article-title>Adaptive route guidance based on real-time information in stochastic time-dependent transportation networks</article-title>
          17th
          <source>IEEE International Conference on Intelligent Transportation Systems, ITSC 2392-2397</source>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Demeyer</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Audenaert</surname>
            <given-names>P</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pickavet</surname>
            <given-names>M</given-names>
          </string-name>
          and
          <article-title>Demeester P 2014 Dynamic and stochastic routing for multimodal transportation systems</article-title>
          <source>IET Intelligent Transport Systems 8 11223</source>
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Ni</surname>
            <given-names>P</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vo</surname>
            <given-names>H T</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dahlmeier</surname>
            <given-names>D</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cai</surname>
            <given-names>W</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ivanchev</surname>
            <given-names>J</given-names>
          </string-name>
          and
          <string-name>
            <surname>Aydt H 2015 DEPART:</surname>
          </string-name>
          <article-title>Dynamic Route Planning in Stochastic Time-</article-title>
          <source>Dependent Public Transit Networks IEEE Conference on Intelligent Transportation Systems, Proceedings, ITSC 16727</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>