<!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>On Recommending Urban Hotspots to Find Our Next Passenger</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Luis Moreira-Matias</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
          <xref ref-type="aff" rid="aff5">5</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ricardo Fernandes</string-name>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Joa˜ o Gama</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff5">5</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Michel Ferreira</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Joa˜ o Mendes-Moreira</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff5">5</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Luis Damas</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Sciences, Faculty of Sciences, University of Porto</institution>
          ,
          <country country="PT">Portugal</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Informatics Engineering, Faculty of Engineering, University of Porto</institution>
          ,
          <country country="PT">Portugal</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Faculty of Economics, University of Porto</institution>
          ,
          <country country="PT">Portugal</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>GEOLINK</institution>
          ,
          <addr-line>Porto</addr-line>
          ,
          <country country="PT">Portugal</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Instituto de Telecomunicac ̧o ̃es, University of Porto</institution>
          ,
          <country country="PT">Portugal</country>
        </aff>
        <aff id="aff5">
          <label>5</label>
          <institution>LIAAD/INESC TEC</institution>
          ,
          <addr-line>Porto</addr-line>
          ,
          <country country="PT">Portugal</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The rising fuel costs is disallowing random cruising strategies for passenger finding. Hereby, a recommendation model to suggest the most passengerprofitable urban area/stand is presented. This framework is able to combine the 1) underlying historical patterns on passenger demand and the 2) current network status to decide which is the best zone to head to in each moment. The major contribution of this work is on how to combine well-known methods for learning from data streams (such as the historical GPS traces) as an approach to solve this particular problem. The results were promising: 395.361/506.873 of the services dispatched were correctly predicted. The experiments also highlighted that a fleet equipped with such framework surpassed a fleet that is not: they experienced an average waiting time to pick-up a passenger 5% lower than its competitor.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>The taxis became crucial for human mobility in
medium/large-sized urban areas. They provide a direct,
comfortable and speedy way to move in and out of big town
centers - as complement to other transportation means or as
a main solution. In the past years, the city councils tried to
guarantee that the running vacant taxis will always meet the
demand in their urban areas by emitting more taxi licenses
than the necessary. As result, the cities’ cores are commonly
crowded by a huge number of vacant taxis - which take
desperate measures to find new passengers such as random
cruise’ strategies. These strategies have undesirable side
effects like large wastes of fuel, an inefficient traffic handling,
an increase of the air pollution.</p>
      <p>The taxi driver mobility intelligence is one of the keys to
mitigate this problems. The knowledge about where the
services (i.e. the transport of a passenger from a pick-up to a
drop-off location) will actually emerge can truly be useful to
the driver – especially where there are more than one
competitor operating. Recently, the major taxi fleets are equipped
with GPS sensors and wireless communication devices.
Typically, these vehicles will transmit information to a data
center about their location and the events undergoing like the
passenger pick-up and drop-off. These historical traces can
reveal the underlying running mobility patterns. Multiple
works in the literature have already explored this kind of
data successfully with distinct applications like smart
driving [Yuan et al., 2010], modeling the spatiotemporal
structure of taxi services [Deng and Ji, 2011; Liu et al., 2009;
Yue et al., 2009], building passenger-finding strategies [Li et
al., 2011; Lee et al., 2008] or even predicting the taxi location
in a passenger-perspective [Phithakkitnukoon et al., 2010].
Despite their useful insights, the majority of the techniques
reported are offline, discarding the main advantages of this
signal (i.e. a streaming one).</p>
      <p>In our work, we focus on the online choice problem about
which is the best taxi stand to go to after a passenger
dropoff (i.e. the stand where we will pick-up another passenger
quicker). Our goal is to use the vehicular network
communicational framework to improve their reliability by combining
all drivers’ experience. In other words, the idea is to
forecast how many services will arise in each taxi stand based on
the network past behavior to feed a recommendation model to
calculate the best stand to head to. An illustration about our
problem is presented in Fig. 1 (the five blue dots represent
possible stands to head to after a passenger drop-off; our
recommendation system outputs one of them as the best choice
at the moment).</p>
      <p>Such recommendation model can present a true advantage
for a fleet when facing other competitors, which will work
with less information than you do. This tool can improve
the informed driving experience by transmitting to the driver
which is the stand where 1) he will wait less time to get a
passenger in; or where 2) he will get the service with the greatest
revenue.</p>
      <p>The smart stand-choice problem is based on four key
decision variables: the expected price for a service over time,
the distance/cost relation with each stand, how many taxis are
already waiting at each stand and the passenger demand for
each stand over time. The taxi vehicular network can be a
ubiquitous sensor of taxi-passenger demand from where we
can continuously mine the reported variables. However, the
work described here will just address the decision process
based on the last three variables.</p>
      <p>In our previous work [Moreira-Matias et al., 2012], we
already proposed a model to predict the spatiotemporal
distribution of the taxi passenger demand (i.e. the number of
services that will emerge along the taxi stand network). This
study departed from this initial work to extend it along three
different dimensions:
1. The Recommendation System: we use these
predictions as input to a Recommendation System that also
accounts the number of taxis already in a stand and the
distance to it. Such framework will improve the taxi
driver mobility intelligence in real time, helping him to
decide which is the most profitable stand in each
moment. It will be based not only in his own past decisions
and outcomes, but on a combination of everyone
experience, taking full advantage of the ubiquitous
characteristics of the vehicular communicational networks.
2. Test-bed: Our experiments took advantage of the
vehicular network online information to feed the
predictive framework. Moreover, the recommendation
performance was evaluated in real-time, demonstrating its
robustness and its ability to learn, decide and evolve
without a high computational effort;
3. Dataset: 506.873 services were dispatched to our 441
vehicle fleet during our experiments. This large scale
test was carried out along 9 months.</p>
      <p>There are some works in the literature related with this
problem, namely: 1) mining the best passenger-finding
strategies [Li et al., 2011; Lee et al., 2008], 2) dividing the
urban area into attractive clusters based on the historical
passenger demand (i.e.: city zones with distinct demand
patterns) [Deng and Ji, 2011; Liu et al., 2009; Yue et al., 2009]
and even 3) predicting the passenger demand at certain
urban hotspots [Li et al., 2012; Kaltenbrunner et al., 2010;
Chang et al., 2010]. The major contribution of this work
facing this state-of-the-art is to build smart
recommendations about the taxi stand to head to in an online streaming
environment (i.e. real-time; while the taxis are operating)
based not only on their historical trace but also on the current
network status. In fact, the reported works present offline
frameworks and/or test-beds or just account a low number of
decision variables.</p>
      <p>The results were obtained using two distinct test-beds:
firstly, (1) we let the stream run continuously between
August 2011 and April 2012. The predictive model was trained
during the first five months and it was stream-tested in the
last four. Secondly, (2) we used a traffic simulator to test
(1)
(2)
if our Recommendation System could beat the drivers’
expected behavior. We simulated a competitive scenario – with
two fleets - using the services historical log and on the
existing road network system. The obtained results validated that
our method can effectively help the drivers to decide where
they can achieve more profit.</p>
      <p>The remainder of the paper is structured as follows.
Section 2 formally presents our predictive model while Section
3 details our recommendation one. The fourth section
describes our case study, how we acquired and preprocessed the
data used as well as some statistics about it. The fifth section
describes how we tested the methodology in a concrete
scenario: firstly, we introduce the two experimental setups and
the metrics used to evaluate both models. Then, the obtained
results are detailed, followed by some important remarks.
Finally, conclusions are drawn.
2</p>
    </sec>
    <sec id="sec-2">
      <title>The Predictive Model</title>
      <p>In this section we present some relevant definitions and a brief
description of the predictive model on taxi passenger demand.
The reader should consult the section II in [Moreira-Matias et
al., 2012] for further details. Let S = fs1; s2; :::; sN g be the
set of N taxi stands of interest and D = fd1; d2; :::; dj g a
set of j possible passenger destinations. Our problem is to
choose the best taxi stand at the instant t according with our
forecast about passenger demand distribution over the time
stands for the period [t; t + P ].</p>
      <p>Consider Xk = fXk;0; Xk;1; :::; Xk;tg to be a discrete
time series (aggregation period of P-minutes) for the number
of demanded services at a taxi stand k. The goal is to build
a model which determines the set of service counts Xk;t+1
for instant t + 1 and per taxi stand k 2 f1; :::; N g. To do
so, three distinct short-term prediction models are proposed,
as well as a well-known data stream ensemble framework to
use all models. We briefly describe these models along this
section.
2.1</p>
      <sec id="sec-2-1">
        <title>Time Varying Poisson Model</title>
        <p>Consider the probability for n taxi assignments to emerge in
a certain time period - P (n) - following a Poisson
Distribution.It is possible to define it using the following equation
P (n; ) =
e</p>
        <p>n
n!
where represents the rate (average demand for taxi services)
in a fixed time interval. However, in this specific problem,
the rate is not constant but time-variant. Therefore, it was
adapted as a function of time, i.e. (t), transforming the
Poisson distribution into a non homogeneous one. Let 0 be the
average (i.e. expected) rate of the Poisson process over a full
week. Consider (t) to be defined as follows
(t) =</p>
        <p>0 d(t) d(t);h(t)
where d(t) is the relative change for the weekday d(t) (e.g.:
Saturdays have lower day rates than Tuesdays); d(t);h(t) is
the relative change for the period h(t) in the day d(t) (e.g. the
peak hours); d(t) represents the weekday 1=Sunday,
2=Monday, ...; and h(t) represents the period when time t falls (e.g.
the time 00:31 is contained in period 2 if we consider
30minutes periods).
The model previously presented can be faced as a
timedependent average which produces predictions based on the
long-term historical data. However, it is not guaranteed that
every taxi stand will have a highly regular passenger demand:
actually, the demand in many stands can often be seasonal.
The sunny beaches are a good example on the demand
seasonality: the taxi demand around them will be higher on
summer weekends rather than other seasons along the year.</p>
        <p>To face this specific issue, a weighted average model is
proposed based on the one presented before: the goal is to
increase the relevance of the demand pattern observed in the
recent week (e.g. what happened on the previous Tuesday
is more relevant than what happened two or three Tuesdays
ago). The weight set ! is calculated using a well-known time
series approach to these type of problems: the Exponential
Smoothing [Holt, 2004]. This model will enhance the
importance of the mid-term historical data rather than the long-term
one already proposed in the above section.
The two previous models assume the existence of a regular
(seasonal or not) periodicity in taxi service passenger demand
(i.e. the demand at one taxi stand on a regular Tuesday during
a certain period will be highly similar to the demand verified
during the same period on other Tuesdays). However, the
demand can present distinct periodicities for different stands.
The ubiquitous features of this network force us to rapidly
decide if and how the model is evolving so that it is possible
to adapt to these changes instantly.</p>
        <p>The AutoRegressive Integrated Moving Average Model
(ARIMA) [Box et al., 1976] is a well-known methodology
to both model and forecast univariate time series data such
as traffic flow data [Min and Wynter, 2011], electricity price
[Contreras et al., 2003] and other short-term prediction
problems such as the one presented here. There are two main
advantages to using ARIMA when compared to other
algorithms. Firstly, 1) it is versatile to represent very
different types of time series: the autoregressive (AR) ones, the
moving average ones (MA) and a combination of those two
(ARMA); Secondly, 2) it combines the most recent samples
from the series to produce a forecast and to update itself to
changes in the model. A brief presentation of one of the
simplest ARIMA models (for non-seasonal stationary time
series) is presented below following the existing description in
[Zhang, 2003] (however, our framework can also detect both
seasonal and non-stationary series). For a more detailed
discussion, the reader should consult a comprehensive time
series forecasting text such as the one presented in Chapters 4
and 5 in [Cryer and Chan, 2008].
2.4</p>
      </sec>
      <sec id="sec-2-2">
        <title>Sliding Window Ensemble Framework</title>
        <p>Three distinct predictive models have been proposed which
focus on learning from the long, medium and short-term
historical data. However, a question remains open: Is it
posRSk = Uk</p>
        <p>SDk;t+w
Then, we calculate the Recommendation Score of every
stands and we recommend to the driver the stand with the
highest one.
4</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Data Acquisition and Preprocessing</title>
      <p>The stream events data of a taxi company operating in the city
of Porto, Portugal, was used as case study. This city is the
center of a medium-sized urban area (consisting of 1.3
million inhabitants) where the passenger demand is lower than
sible to combine them all to improve our prediction? Over
the last decade, regression and classification tasks on streams
attracted the community attention due to their drifting
characteristics. The ensembles of such models were specifically
addressed due to the challenge related to this type of data.
One of the most popular models is the weighted ensemble
[Wang et al., 2003]. This error-based model was employed in
this framework. The Averaged Weighted Error(AVE) metric
was used to measure such error.
3</p>
    </sec>
    <sec id="sec-4">
      <title>Recommendation Model</title>
      <p>Let Xk;t+1 be the number of services to be demanded in the
taxi stand k during the 30-minutes period next to the time
instant t. Then, a passenger is dropped-off somewhere by
a vehicle of interest w minutes after the last forecast on the
instantt. The problem is to choice one of the possible taxi
stands to head to. This choice is related with four key
variables: the expected price for a service over time, the distance
to each stand, how many taxis are already waiting at each
stand and the predicted passenger demand. However, here we
solve this issue like a minimization problem: we want to rank
the stands according the minimum waiting time (target
variable) to pick-up a passenger, whenever it is directly picked-up
or dispatched by the central.</p>
      <p>Let Ck;t+1 be the number of taxis already parked in the
stand k in the drop-off moment and Lk;w be the number of
services departed from the same stand between this moment
and the moment of the last forecast (i.e.: t).We can define the
service deficit - SDk;t+w on the taxi stand k i.e.: a prediction
on the number of services that still will be demanded in the
stand discounting the vehicles already waiting in the line) as
SDk;t+w = (Xk;t+1</p>
      <p>Ck;t+1</p>
      <p>Lk;w)</p>
      <p>H
(3)
where H is the similarity (i.e.: 1 – error) obtained by our
forecasting model in this specific stand during the sliding
training window H. In fact, H works as a certainty about
our prediction (i.e.: if two stands have the same SD but our
model is experiencing a bigger error in one of them, the other
stand should be picked instead).</p>
      <p>Let k be the distance (in kilometres) between the drop-off
location and the taxi stand k. We can define the normalized
distance to the stand - Uk - as follows</p>
      <p>Uk = 1
k
where is the distance to the farthest stand. We can calculate
the Recommendation Score of the taxi stand k as
(4)
(5)
the number of running vacant taxis, resulting in a huge
competition between both companies and drivers. The data was
continuously acquired using the telematics installed in each
one of the 441 running vehicles of the company fleet
throughout a non-stop period of nine months. This study just uses
as input/output the services obtained directly at the stands or
those automatically dispatched to the parked vehicles (more
details in the section below). This was done because the
passenger demand at each taxi stand is the main feature to aid the
taxi drivers’ decision.</p>
      <p>Statistics about the period studied are presented. Table 1
details the number of taxi services demanded per daily shift
and day type. Table 2 contains information about all
services per taxi/driver and cruise time. The service column in
Table 2 represents the number of services taken by the taxi
drivers, while the second represents the total cruise time of
every service. Additionally, it is possible to state that the
central service assignment is 24% of the total service (versus the
76% of the service requested directly on the street) while 77%
of the service is demanded directly to taxis parked in a taxi
stand (and 23% is assigned while they are cruising). The
average waiting time (to pick-up passengers) of a taxi parked at
a taxi stand is 42 minutes while the average time for a
service is only 11 minutes and 12 seconds. Such low ratio of
busy/vacant time reflects the current economic crisis in
Portugal and the regulators’ inability to reduce the number of taxis
in the city. It also highlights the importance of the predictive
system presented here, where the shortness of services could
be mitigated by obtaining services from the competitors.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Experimental Results</title>
      <p>In this section, we firstly describe the experimental setup
developed to test our predictive model on the available data.
Secondly, we introduce our simulation model and the
experiments associated with. Thirdly, we present our
Recommendation System and the metrics used to evaluate our methods.
Finally, we present the results.
5.1</p>
      <sec id="sec-5-1">
        <title>Experimental Setup for the Predictive Model</title>
        <p>Our model produces an online forecast for the taxi-passenger
demand at all taxi stands at each P-minutes period. Our
testbed was based on prequential evaluation: data about the
network events was continuously acquired.</p>
        <p>Each data chunk was transmitted and received through a
socket. The model was programmed using the R language.
The prediction effort was divided into three distinct processes
running on a multicore CPU (the time series for each stand
is independent from the remaining ones) which reduced the
computational time of each forecast. The pre-defined
functions used and the values set for the models parameters are
detailed along this section.</p>
        <p>An aggregation period of 30 minutes was set (i.e. a new
forecast is produced each 30 minutes; P=30) and a radius of
100 m (W = 100 ¿ 50 defined by the existing regulations). It
was set based on the average waiting time at a taxi stand, i.e.
a forecast horizon lower than 42 minutes.</p>
        <p>The ARIMA model (p,d,q values and seasonality) was
firstly set (and updated each 24h) by learning/detecting the
underlying model (i.e. autocorrelation and partial
autocorrelation analysis) running on the historical time series curve
for each considered taxi stand. To do so, we used an
automatic time series function in the [forecast] R package
[Yeasmin and Rob, 1999] - auto-arima – with the default
parameters. The weights/parameters for each model are specifically
fit for each period/prediction using the function arima from
the built-in R package [stats].</p>
        <p>The time-varying Poisson averaged models (both weighted
and non-weighted) were also updated every 24 hours. A
sliding window of 4 hours (H=8) was considered in the ensemble.
The DIVERT [Conceicao et al., 2008] is a high-performance
traffic simulator framework which uses a realistic
microscopic mobility model. The main advantage of this
framework when facing others is the easiness to create new
simulation modules efficiently. Hence, we have created a new
model that simulates the real behavior of a taxi fleet. Upon
a request, a central entity elects one taxi to do the requested
service. Once the service is finished, the same entity
recommends a new taxi-stand for the taxi to go to and wait for a
new service.</p>
        <p>This framework was employed as an online test-bed for our
Recommendation System. Firstly, the realistic map of the city
of Porto - containing the real road network topology and the
exact location of the 63 taxi stands in the city – was loaded.
). Secondly, we fed the framework with a service log (i.e.
a time-dependent origin-destination matrix) correspondent to
the studied period. However, we just accessed the log of one
out of the two running fleets in Porto (the largest one, with
441 vehicles). To simulate a scenario similar to our own, we
divided this fleet into two using a ratio close to real one (60%
for the fleet A1 and 40% to the fleet B1). The services
dispatched from the central were also divided in the same
proportion while the services demanded in each taxi stand will
be the same. The fleet B1 will use the most common and
traditional way to choose the best taxi-stand: it will go to the
nearest taxi stand of each drop-off location (i.e. after a
dropoff, each driver has to head to a specific taxi stand of its own
choice). However, the fleet A1 will use our Recommendation
System to do an informed driving, which considers multiple
variables – like the number of taxis in each stand or the
demand prediction on them - to support this important decision.
Finally, we ran the simulation and we extract the metrics for
each fleet. The framework is used to calculate the optimal
paths between the taxi stand and the passenger location and
the dependent behavior of the fleets (the location of each
vehicle will affect the way they get the services). Our main
goal is to simulate a real scenario behavior and its
competitive characteristics while we are testing the Recommendation
System. It is important to notice that both fleets would get
similar results if they did not use any Recommendation
System. We also highlight that the vehicles will remain parked in
the stand waiting for a service whenever the time it takes to
appear. In this case, we consider the maximum threshold of
120 minutes that is deeply detailed in the following section,
along with the remaining evaluation metrics.
5.3</p>
      </sec>
      <sec id="sec-5-2">
        <title>Evaluation Methods</title>
        <p>We used the data obtained from the last four months to
evaluate our both experimental setups (where 506873 services
emerged). Firstly, we present two error measurements which
were employed to evaluate our output: one from the literature
and another from our own specifically adapted to our current
problem. Secondly, we detail the two performance metrics
used to evaluate our recommendation models.</p>
        <p>Consider Rk = fRk;0; Rk;1; :::; Rk;tg to be a discrete time
series (aggregation period of P -minutes) with the number of
services predicted for a taxi stand of interest k in the
period f1; tg and Xk = fXk;0; Xk;1; :::; Xk;tg the number of
services actually emerged in the same conditions. The (1)
Symmetric Mean Percentage Error (sMAPE) is a well-known
metric to evaluate the success of time series forecast models.
However, this metric can be too intolerant with small
magnitude errors (e.g. if two services are predicted on a given
period for a taxi stand of interest but no one actually emerges,
the error within that period would be 1). Then, we propose
to also use an adapted version of Normalized Mean Absolute
Error (NMAE).</p>
        <p>The (2) Average Weighted Error (AVE) is a metric of our
own based on the NMAE. We defined it as</p>
        <p>t
AV E0 = X
i=1
k;i
k;i</p>
        <p>Xk;i</p>
        <p>k
k;i =</p>
        <p>Xk;i if Xk;i &gt; 0
1 if Xk;i = 0
k;i =
jRk;i
0</p>
        <p>Xk;ij if Xk;i &gt; th
if Xk;i th
k =</p>
        <p>t
X Xk;i; AV E =
i=1</p>
        <p>AV E0 if AVE’ 1
1 if AVE’ &gt; 1
(6)
(7)
(8)
(9)
where k is the total of services emerged at the taxi stand
k during the time period f1; tg. The main feature about this
metric is to weight the error in each period by the number of
real events actually emerged (i.e. the errors on periods where
more services were actually demanded are more relevant than
the remaining ones).</p>
        <p>Both metrics are focused just on one time series for a given
taxi stand. However, the results presented below use an
averaged error measured based on all stands series – GA. Consider
to be an error metric of interest. AG is an aggregated
metric given by a weighted average of the error in all stands. It is
formally presented in the following equation.</p>
        <p>AG</p>
        <p>N
= X GA ;k
k=1</p>
        <p>N
k ; = X</p>
        <p>k
k=1
(10)
We considered three performance metrics in the evaluation of
our recommendation models: (1) the Waiting Time (WT) and
(2) the Vacant Running Distance (VRD) and the number of
No Services (NS). The Waiting Time is the total time that a
driver takes between a drop-off and a pick-up (i.e. to leave
a stand with a passenger or to get one in his/her current
location). The Vacant Running Distance is the distance that a
driver does to get into a stand after a drop-off (i.e.: without
any passenger inside). Independently on the time measured
on the simulation, we always consider a maximum threshold
of 120 minutes to the Waiting Time. The No Service metric
is a ratio between the number of times that a taxi parked on a
stand had a waiting time greater than the 120 minutes
threshold and the number of services effectively dispatched by the
respective fleet.
5.4</p>
      </sec>
      <sec id="sec-5-3">
        <title>Results</title>
        <p>Firstly, we present the results obtained by the online
experiments done with the predictive models. The error measured
for each model is highlighted in Table 3 and Table 4. The
results are firstly presented per shift and then globally. These
error values were aggregated using the AG previously
defined.</p>
        <p>Secondly, the values calculated for our performance
metrics using the traffic simulator previously described are
detailed in the Table 5. The fleet A1 used the Recommendation
Model 1 (RS1) while the B1 uses the common expected
behavior (previously defined). Distinct metrics values are
presented for the two using different aggregations like the
arithmetic mean (i.e. average), the median and the standard
deviation. The No Services ratio is also displayed.
6</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Final Remarks</title>
      <sec id="sec-6-1">
        <title>In this paper, we present a novel application of time series</title>
        <p>forecasting techniques to improve the taxi driver mobility
intelligence. We did it in three distinct steps: firstly (1) we
mined both GPS and event signals emitted by a company
operating in Porto, Portugal (where the passenger demand is
24.88%
28.37%
26.12%
18.18%
22.88%
26.77%
22.92%
17.19%</p>
        <p>24h
lower than the vacant taxis). Secondly, we predicted - in a
real-time experiment - the distribution of the taxi-passenger
demand for the 63 taxi stands at 30-minute period intervals.
Finally, we recreated the scenario running in Porto, where
two fleets (the fleet A and B, which contain 441 and 250
vehicles, respectively) compete to get as many services as
possible. We did it using a traffic simulation framework fed by
the real services historical log of the largest operating fleet.
One of the fleets used our Recommendation System for the
Taxi Stand choice problem while the other one just picked
the stand using a baseline model corresponding to the driver
common behavior in similar situations.</p>
        <p>Our predictive model demonstrated a more than
satisfactory performance, anticipating in real time the spatial
distribution of the passenger demand with an error of just 20%.</p>
      </sec>
      <sec id="sec-6-2">
        <title>We believe that this model is a true novelty and a major</title>
        <p>contribution to the area through its online adapting
characteristics:</p>
        <p>It takes advantage of the ubiquitous characteristics of
a taxi communicational network, assembling the
experience and the knowledge of all vehicles/drivers while
they usually use just their own;
It simultaneously uses long-term, mid-term and short
term historical data as a learning base;
It rapidly produces real-time short-term predictions of
the demand, which can truly improve drivers’ mobility
intelligence and consequently, their profit.</p>
        <p>This approach meets no parallel in the literature also by
its test-bed: the models were tested in a streaming
environment, while the state-of-art presents mainly offline
experimental setups. Our simulation results demonstrated that such
informed driving can truly improve the drivers’ mobility
intelligence: the fleet A1 had an Average Waiting Time 5% lower
than its competitor – even if it has a larger fleet. We also
highlight the reduction of the No Service ratio in 50% while the
Vacant Running Time faced an increase. It is important to
state that this Recommendation System is focused on a
Scenario like our own – two or more competitors operating in a
medium/large city where the demand is lower than the
number of running vehicles. Its main goal is to recommend a
stand where a service will rapidly emerge – even if this stand
is far away. The idea is to be in a position able to pick-up
the emerging service demand before the remaining
competition. This factor can provoke a slight increase on the
Vacant Running Time but it will also reduce the usually large
Waiting Times to pick-up passengers. Other scenarios may
require a distinct calibration of the model to account different
needs/goals.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgments</title>
      <p>The authors would like to thank to Geolink and to its
team for the data supplied to this work. This work was
supported by the projects DRIVE-IN: ”Distributed
Routing and Infotainment through Vehicular Internet-working”,
VTL: ”Virtual Traffic Lights” and KDUS: ”Knowledge
Discovery from Ubiquitous Data Streams” under the Grants
CMU-PT/NGN/0052/2008, PTDC/EIA-CCO/118114/2010,
PTDC/EIA-EIA/098355/2008, respectively, and also by
ERDF - European Regional Development Fund through
the COMPETE Programme (operational programme for
competitiveness), by the Portuguese Funds through the
FCT(Portuguese Foundation for Science and Technology)
within project FCOMP-01-0124-FEDER-022701.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [Box et al.,
          <year>1976</year>
          ]
          <string-name>
            <given-names>G.</given-names>
            <surname>Box</surname>
          </string-name>
          , G. Jenkins, and
          <string-name>
            <given-names>G.</given-names>
            <surname>Reinsel</surname>
          </string-name>
          .
          <article-title>Time series analysis</article-title>
          .
          <source>Holden-day San Francisco</source>
          ,
          <year>1976</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [Chang et al.,
          <year>2010</year>
          ]
          <string-name>
            <given-names>H.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Tai</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Hsu</surname>
          </string-name>
          .
          <article-title>Contextaware taxi demand hotspots prediction</article-title>
          .
          <source>International Journal of Business Intelligence and Data Mining</source>
          ,
          <volume>5</volume>
          (
          <issue>1</issue>
          ):
          <fpage>3</fpage>
          -
          <lpage>18</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [Conceicao et al.,
          <year>2008</year>
          ]
          <string-name>
            <given-names>Hugo</given-names>
            <surname>Conceicao</surname>
          </string-name>
          , Luis Damas, Michel Ferreira, and
          <string-name>
            <given-names>Joao</given-names>
            <surname>Barros</surname>
          </string-name>
          .
          <article-title>Large-scale simulation of v2v environments</article-title>
          .
          <source>In Proceedings of the 2008 ACM symposium on Applied computing</source>
          , pages
          <fpage>28</fpage>
          -
          <lpage>33</lpage>
          . ACM,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [Contreras et al.,
          <year>2003</year>
          ]
          <string-name>
            <given-names>J.</given-names>
            <surname>Contreras</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Espinola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. J.</given-names>
            <surname>Nogales</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A. J.</given-names>
            <surname>Conejo</surname>
          </string-name>
          .
          <article-title>Arima models to predict next-day electricity prices</article-title>
          .
          <source>IEEE Transactions on Power Systems</source>
          ,
          <volume>18</volume>
          (
          <issue>3</issue>
          ):
          <fpage>1014</fpage>
          -
          <lpage>1020</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <source>[Cryer and Chan</source>
          , 2008]
          <string-name>
            <given-names>J.</given-names>
            <surname>Cryer</surname>
          </string-name>
          and
          <string-name>
            <given-names>K.</given-names>
            <surname>Chan</surname>
          </string-name>
          .
          <article-title>Time Series Analysis with Applications in</article-title>
          R. Springer, USA,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <source>[Deng and Ji</source>
          , 2011]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Deng</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Ji</surname>
          </string-name>
          .
          <article-title>Spatiotemporal structure of taxi services in shanghai: Using exploratory spatial data analysis</article-title>
          .
          <source>In Geoinformatics</source>
          ,
          <year>2011</year>
          19th International Conference on, pages
          <fpage>1</fpage>
          -
          <lpage>5</lpage>
          . IEEE,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <source>[Holt</source>
          , 2004]
          <string-name>
            <given-names>Charles</given-names>
            <surname>Holt</surname>
          </string-name>
          .
          <article-title>Forecasting seasonals and trends by exponentially weighted moving averages</article-title>
          .
          <source>International Journal of Forecasting</source>
          ,
          <volume>20</volume>
          (
          <issue>1</issue>
          ):
          <fpage>5</fpage>
          -
          <lpage>10</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [Kaltenbrunner et al.,
          <year>2010</year>
          ]
          <string-name>
            <given-names>Andreas</given-names>
            <surname>Kaltenbrunner</surname>
          </string-name>
          , Rodrigo Meza, Jens Grivolla, Joan Codina, and
          <string-name>
            <given-names>Rafael</given-names>
            <surname>Banchs</surname>
          </string-name>
          .
          <article-title>Urban cycles and mobility patterns: Exploring and predicting trends in a bicycle-based public transport system</article-title>
          .
          <source>Pervasive and Mobile Computing</source>
          ,
          <volume>6</volume>
          (
          <issue>4</issue>
          ):
          <fpage>455</fpage>
          -
          <lpage>466</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <surname>[Lee</surname>
          </string-name>
          et al.,
          <year>2008</year>
          ]
          <string-name>
            <given-names>J.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Shin</surname>
          </string-name>
          , and
          <string-name>
            <given-names>G.L.</given-names>
            <surname>Park</surname>
          </string-name>
          .
          <article-title>Analysis of the passenger pick-up pattern for taxi location recommendation</article-title>
          .
          <source>In Fourth International Conference on Networked Computing and Advanced Information Management (NCM'08)</source>
          , volume
          <volume>1</volume>
          , pages
          <fpage>199</fpage>
          -
          <lpage>204</lpage>
          . IEEE,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <surname>[Li</surname>
          </string-name>
          et al.,
          <year>2011</year>
          ]
          <string-name>
            <given-names>B.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , L. Sun,
          <string-name>
            <given-names>C.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Qi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Q.</given-names>
            <surname>Yang</surname>
          </string-name>
          .
          <article-title>Hunting or waiting? discovering passenger-finding strategies from a large-scale realworld taxi dataset</article-title>
          .
          <source>In 2011 IEEE International Conference on Pervasive Computing and Communications Workshops (PERCOM Workshops)</source>
          , pages
          <fpage>63</fpage>
          -
          <lpage>68</lpage>
          ,
          <year>March 2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>[Li</surname>
          </string-name>
          et al.,
          <year>2012</year>
          ]
          <string-name>
            <given-names>Xiaolong</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Gang</given-names>
            <surname>Pan</surname>
          </string-name>
          , Zhaohui Wu, Guande Qi,
          <string-name>
            <given-names>Shijian</given-names>
            <surname>Li</surname>
          </string-name>
          , Daqing Zhang, Wangsheng Zhang, and
          <string-name>
            <given-names>Zonghui</given-names>
            <surname>Wang</surname>
          </string-name>
          .
          <article-title>Prediction of urban human mobility using large-scale taxi traces and its applications</article-title>
          . Frontiers of Computer Science in China,
          <volume>6</volume>
          (
          <issue>1</issue>
          ):
          <fpage>111</fpage>
          -
          <lpage>121</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [Liu et al.,
          <year>2009</year>
          ]
          <string-name>
            <given-names>L.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Andris</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Biderman</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Ratti</surname>
          </string-name>
          .
          <article-title>Uncovering taxi drivers mobility intelligence through his trace</article-title>
          .
          <source>IEEE Pervasive Computing</source>
          ,
          <volume>160</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>17</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <source>[Min and Wynter</source>
          , 2011]
          <string-name>
            <given-names>W.</given-names>
            <surname>Min</surname>
          </string-name>
          and
          <string-name>
            <given-names>L.</given-names>
            <surname>Wynter</surname>
          </string-name>
          .
          <article-title>Real-time road traffic prediction with spatio-temporal correlations</article-title>
          . Transportation Research Part C: Emerging Technologies,
          <volume>19</volume>
          (
          <issue>4</issue>
          ):
          <fpage>606</fpage>
          -
          <lpage>616</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [
          <string-name>
            <surname>Moreira-Matias</surname>
          </string-name>
          et al.,
          <year>2012</year>
          ]
          <string-name>
            <given-names>Luis</given-names>
            <surname>Moreira-Matias</surname>
          </string-name>
          , Joao Gama, Michel Ferreira, Joao Mendes-Moreira, and
          <string-name>
            <given-names>Luis</given-names>
            <surname>Damas</surname>
          </string-name>
          .
          <article-title>Online predictive model for taxi services</article-title>
          .
          <source>In Advances in Intelligent Data Analysis XI</source>
          , volume
          <volume>7619</volume>
          <source>of LNCS</source>
          , pages
          <fpage>230</fpage>
          -
          <lpage>240</lpage>
          . Springer Berlin Heidelberg,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [Phithakkitnukoon et al.,
          <year>2010</year>
          ]
          <string-name>
            <given-names>S.</given-names>
            <surname>Phithakkitnukoon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Veloso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Bento</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Biderman</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Ratti</surname>
          </string-name>
          .
          <article-title>Taxiaware map: identifying and predicting vacant taxis in the city</article-title>
          .
          <source>Ambient Intelligence</source>
          ,
          <volume>6439</volume>
          :
          <fpage>86</fpage>
          -
          <lpage>95</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          <string-name>
            <surname>[Wang</surname>
          </string-name>
          et al.,
          <year>2003</year>
          ]
          <string-name>
            <given-names>H.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Fan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.S.</given-names>
            <surname>Yu</surname>
          </string-name>
          , and J. Han.
          <article-title>Mining concept-drifting data streams using ensemble classifiers</article-title>
          .
          <source>In Proceedings of the ninth ACM SIGKDD international conference on Knowledge discovery and data mining</source>
          , pages
          <fpage>226</fpage>
          -
          <lpage>235</lpage>
          . ACM,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          <source>[Yeasmin and Rob</source>
          , 1999]
          <string-name>
            <given-names>Khandakar</given-names>
            <surname>Yeasmin</surname>
          </string-name>
          and
          <string-name>
            <given-names>J. Hyndman</given-names>
            <surname>Rob</surname>
          </string-name>
          .
          <source>Automatic Time Series Forecasting: The forecast Package for R</source>
          ,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [Yuan et al.,
          <year>2010</year>
          ]
          <string-name>
            <given-names>J.</given-names>
            <surname>Yuan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Xie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Xie</surname>
          </string-name>
          , G. Sun, and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Huang</surname>
          </string-name>
          .
          <article-title>T-drive: driving directions based on taxi trajectories</article-title>
          .
          <source>In Proceedings of the 18th SIGSPATIAL International Conference on Advances in Geographic Information Systems</source>
          , pages
          <fpage>99</fpage>
          -
          <lpage>108</lpage>
          . ACM,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [Yue et al.,
          <year>2009</year>
          ]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Yue</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhuang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and Q.</given-names>
            <surname>Mao</surname>
          </string-name>
          .
          <article-title>Mining time-dependent attractive areas and movement patterns from taxi trajectory data</article-title>
          .
          <source>In Geoinformatics</source>
          ,
          <year>2009</year>
          17th International Conference on, pages
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          . IEEE,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [Zhang, 2003]
          <string-name>
            <given-names>G.Peter</given-names>
            <surname>Zhang</surname>
          </string-name>
          .
          <article-title>Time series forecasting using a hybrid arima and neural network model</article-title>
          .
          <source>Neurocomputing</source>
          ,
          <volume>50</volume>
          :
          <fpage>159</fpage>
          -
          <lpage>175</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>