Professional Documents
Culture Documents
Article
Queuing Time Prediction Using WiFi Positioning
Data in an Indoor Scenario
Hua Shu 1,2 , Ci Song 1 , Tao Pei 1, *, Lianming Xu 3 , Yang Ou 3 , Libin Zhang 4 and Tao Li 4
1 State Key Laboratory of Resources and Environmental Information System,
Institute of Geographic Sciences and Natural Resources Research, CAS, Beijing 100101, China;
shuh@lreis.ac.cn (H.S.); songc@lreis.ac.cn (C.S.)
2 University of Chinese Academy of Sciences, Beijing 100049, China
3 RTmap Science and Technology Ltd., Beijing 100093, China; xulianming@rtmap.com (L.X.);
ouyang@rtmap.com (Y.O.)
4 Information Technology Department, Beijing Capital International Airport Co., Ltd., Beijing 100621, China;
zhanglb@bcia.com.cn (L.Z.); lit2@bcia.com.cn (T.L.)
* Correspondence: peit@lreis.ac.cn; Tel.: +86-10-6488-8960
Abstract: Queuing is common in urban public places. Automatically monitoring and predicting
queuing time can not only help individuals to reduce their wait time and alleviate anxiety but also
help managers to allocate resources more efficiently and enhance their ability to address emergencies.
This paper proposes a novel method to estimate and predict queuing time in indoor environments
based on WiFi positioning data. First, we use a series of parameters to identify the trajectories that can
be used as representatives of queuing time. Next, we divide the day into equal time slices and estimate
individuals’ average queuing time during specific time slices. Finally, we build a nonstandard
autoregressive (NAR) model trained using the previous day’s WiFi estimation results and actual
queuing time to predict the queuing time in the upcoming time slice. A case study comparing two
other time series analysis models shows that the NAR model has better precision. Random topological
errors caused by the drift phenomenon of WiFi positioning technology (locations determined by
a WiFi positioning system may drift accidently) and systematic topological errors caused by the
positioning system are the main factors that affect the estimation precision. Therefore, we optimize
the deployment strategy during the positioning system deployment phase and propose a drift ratio
parameter pertaining to the trajectory screening phase to alleviate the impact of topological errors
and improve estimates. The WiFi positioning data from an eight-day case study conducted at the
T3-C entrance of Beijing Capital International Airport show that the mean absolute estimation error
is 147 s, which is approximately 26.92% of the actual queuing time. For predictions using the NAR
model, the proportion is approximately 27.49%. The theoretical predictions and the empirical case
study indicate that the NAR model is an effective method to estimate and predict queuing time in
indoor public areas.
Keywords: indoor queuing time; WiFi positioning; trajectory; mobile; time series analysis
1. Introduction
Queuing is a pervasive phenomenon in urban public places, such as supermarkets, restaurants,
banks, transportation terminals and amusement parks [1]. Long-duration queuing reflects the
imbalance between the supply and demand of public services, which not only takes up many
individuals’ time and leads to negative experiences but also burdens management and reduces the
capacity of such services. Furthermore, research has shown that, in addition to the length of waiting
time [2], an important factor affecting individuals’ service satisfaction is whether the waiting time is
foreseeable [3]. The ability to estimate and predict queuing time reduces the queuing time through
self-planning and relieve anxiety. Moreover, it promotes the responsible use of public resources and
enhances the level of management and public security. Therefore, real-time queuing time measurement
and prediction in public places is of significant importance to the community.
Automatic queue-monitoring techniques are fundamental to real-time queuing time measurement
and prediction. In this study, we focus on queuing time in indoor public areas. The indoor
queuing activity monitoring technologies used in previous studies mainly include video surveillance,
radio frequency identification (RFID), Bluetooth, accelerometers, and WiFi (wireless fidelity),
which will be briefly introduced below.
• Video Surveillance. By employing video content analytics to detect the number of people queuing
and to estimate the time needed to leave the queue [4–6], the queuing time of an individual who
is just entering a queue can be estimated [7] using the following equation:
Z ∞ Z ∞
Tavg ≈ xp N ( x )dx sps (s)ds (1)
0 0
where p N ( x ) is the density function of the number of people in the queue, and ps (s) is the density
function of service time. However, video surveillance may compromise individual privacy, and in
large-scale areas where the number of people queuing is large and the queue structure is complex,
people counting may have poor accuracy.
• Radio Frequency Identification (RFID). By using the protocol for communication between user
tags and fixed readers near the counter [8]), RFID readers can detect the existence of nearby
tags. The queuing parameters can be tracked based on the number of detected tags and signal
strength [9]. However, RFID is not a commonly used technology, so extra hardware and
individuals’ active participation are required, which may not be accepted by managers and users.
• Bluetooth. An individual’s position with time stamps can be acquired using Bluetooth
localization [10,11] with positioning methods such as proximity, trilateration, and fingerprinting.
Then, the queue entry and exit times [12] can be determined based on the relationship between
a queue process and a spatial location to estimate the queuing time. Queuing time estimation
using Bluetooth is highly accurate. However, special equipment is needed to detect the Bluetooth
signals from the users’ mobile devices.
• Accelerometer. The accelerometers built into mobile devices can be used to record a user’s
continuous movement [13] (based on acceleration parameters). An individual’s movement while
queuing is essentially standing-walking-standing [14], which is reflected by fluctuation in the
acceleration curve. Using pattern recognition [15], the queuing period can be determined based
on moving status; thus, queuing time be calculated. However, users must install an application
on their mobile device to continuously upload their moving status data.
All of the techniques mentioned above can be used to monitor queuing activity and automatically
estimate queuing parameters. However, in practice, these techniques have three main deficiencies:
they require extra equipment to track queuing activity, they require active participation, and they
may compromise individuals’ privacy.
• WiFi. WiFi is mainly used for wireless Internet access equipment in public places and
private homes. In addition to the communication function, WiFi is widely used in indoor
navigation [16,17], targeted advertisements [18,19], and behavior analysis [20,21]. However,
little research has been conducted on the use of WiFi for queuing time monitoring. This technique
overcomes the disadvantages of other approaches. In previous studies, users were required
to install an app on their mobile device to communicate signal information with the backend.
WiFi queuing time monitoring methods can be divided into two categories: (1) signal threshold
judgment; and (2) signal feature analysis.
Sensors 2016, 16, 1958 3 of 20
predict future queuing parameters. However, they are not applicable in this work, because parameters
such as speed, density, and flow in traffic flow theory and queue discipline, arrival rate, and service
rate in queue theory are required to model the queuing process, while the collected data are spatial
location data with time stamps [22], from which these parameters are difficult to obtain.
The advantages of our method using WiFi positioning data to estimate and predict queuing time
in indoor scenarios are as follows:
(1) The method for estimating the queuing time from topological relation judgment between
individuals’ trajectories and the queue zone is robust in realistic application scenarios.
(2) No special sensors are needed to track people’s queuing activity, because WiFi and mobile devices
are ubiquitous in modern life.
(3) Users are passive because no active cooperation is required and no additional apps need to be
installed on their mobile devices.
(4) No consideration for the length or shape of the queue is required because queuing time only
depends on the time stamps when an individual enters and leaves a queue zone.
The remainder of this paper is organized as follows. In the following section, we provide an
overview of WiFi positioning technology, and introduce how to deploy the positioning system and
determine queuing time using positioning data. Then, we explain the prediction models (i.e., NAR,
Holt-Winters, and STL-ARIMA) based on time series analysis theory. Next, we validate our positioning
precision and estimation model in a real indoor scenario, and present a case study conducted at the
T3-C entrance (one entrance of Terminal T3) of the Beijing Capital International Airport. We then
discuss the practicability of this research and factors that affect the accuracy of the estimation and
prediction results. Finally, we present our conclusions and suggest areas for future work.
2.3.2.3. Queuing
Queuing Time
Time EstimationBased
Estimation Basedon
onPositioning
Positioning Data
Data
ToTo estimate
estimate a crowd’s
a crowd’s average
average queuing
queuing time,
time, thethe optimal
optimal solution
solution is determine
is to to determine
thethe queuing
queuing time
time of each individual. However, the time intervals of the trajectory points from our
of each individual. However, the time intervals of the trajectory points from our passive positioning passive
positioning system range from five seconds to several minutes, which results in incomplete queuing
system range from five seconds to several minutes, which results in incomplete queuing process records.
process records. In addition, the sample errors are not negligible. Therefore, sample reliability
In addition, the sample errors are not negligible. Therefore, sample reliability cannot be neglected,
cannot be neglected, that is, more samples may not produce more accurate results. Therefore, similar
that is, more samples may not produce more accurate results. Therefore, similar to using a buoy to
to using a buoy to estimate the flow velocity of a river reach, a feasible solution is to identify
estimate the flow velocity of a river reach, a feasible solution is to identify relatively reliable samples
relatively reliable samples acting as representatives [14] for queuing time estimation. To achieve this
acting as representatives [14] for queuing time estimation. To achieve this goal, when determining
goal, when determining an individual’s queuing time, four parameters ( , , , and ) of the
antrajectory
individual’s queuing
are used. time, four
In practical parameters
applications, these n, k, and r) need
(m, parameters of thetotrajectory are used. to
be tuned according Inthe
practical
site
Sensors 2016, 16, 1958 6 of 20
applications, these parameters need to be tuned according to the site environment and hardware
deployment. The estimation process is divided into three steps: (1) queuing process recognition;
(2) parameter setting and queuing time determination; and (3) queuing time estimation.
Figure4.4.Time
Figure Timeslicing
slicingfor
forqueuing
queuingtime
timeestimation
estimationand
andprediction.
prediction.
2.4.Queuing
2.4. QueuingTime
TimePrediction
Prediction
2.4.1.
2.4.1.Nonstandard
NonstandardAutoregressive
Autoregressive
Autoregressive
Autoregressive(AR)
(AR)isisaafrequently
frequentlyused
usedtime
timeseries
seriesprediction
predictionmodel
modelthat
thatassumes
assumesthe thepresent
present
observation
observationhas a linear
has relation
a linear with previous
relation observations.
with previous Generally,Generally,
observations. the notation
theARnotation AR(an)
( p) denotes
autoregressive model of order p. In this study, we use a nonstandard AR model, denoting
denotes an autoregressive model of order . In this study, we use a nonstandard AR model, as NAR ( p ):
denoting as NAR( ): p
Pt = c + ∑ ϕi Wt−i∆t + ε t (3)
i =1
= + ∆ + (3)
where Pt is the prediction of the actual queuing time at time slice t to t + ∆t, c is a constant, ϕi is the
regression coefficient and ε t is the random error. In contrast to the general AR model, the parameters
where is the prediction of the actual queuing time at time slice to + ∆ , is a constant,
of NAR are trained using the previous observations (WiFi estimations) and the present ground truth
is the regression coefficient and is the random error. In contrast to the general AR model, the
(security system records).
parameters of NAR are trained using the previous observations (WiFi estimations) and the present
ground
2.4.2. truth (security system records).
Holt-Winters
2.4.2.Let {Wt } be the sequence of the crowds’ average queuing time based on the WiFi estimation from
Holt-Winters
time t to t + ∆t, with a seasonal variation of length L. The additive Holt-Winters prediction method
Let be the sequence of the crowds’ average queuing time based on the WiFi estimation
comprises three equations. {st } represents the sequence of smoothed values contributing as level,
from time to + ∆ , with a seasonal variation of length . The additive Holt-Winters prediction
{bt } represents the sequence of the linear trend, {ct } is the sequence of the seasonal correction factors,
method comprises three equations. represents the sequence of smoothed values contributing
and ∂, β and γ are the smoothing parameters. Then, the components of the additive Holt-Winters are:
as level, represents the sequence of the linear trend, is the sequence of the seasonal
correction factors, and , st = andα (Wt − ct− L∆t ) + (1 − α) (st−∆t + bt−∆tThen,
are the smoothing parameters. ) the components of (4)the
additive Holt-Winters are:
b = β (s − s ) + (1 − β) b ∆t (5)
= t ( − t ∆t−)∆t + (1 − )( ∆t−+ ∆ ) (4)
t − (st−∆t
ct = γ (W= − − bt−)∆t +−
+)(1 (1 −) γ) ct− L∆t (6)
(5)
∆ ∆
= ( =
Pt+m∆t − st +∆ mb
− t + ∆ct−(
) +L−(1 m∗L ))∆t
1−− ∆
(7)
(6)
where Equation (4) is a weighted average ∆ =
of + +
the seasonally(
adjusted
∗
)∆
estimation (Wt − ct− L∆t ) and (7)
the non-seasonal forecast (st−∆t + bt−∆t ) for time slice t to t + ∆t. Equation (5) is the trend which is
where Equation
actually (4) ismethod
Holt’s linear a weighted
[28].average
Equationof (6)
theisseasonally
a weighted adjusted
averageestimation
between the −
( current ) and the
∆ seasonal
non-seasonal forecast ( + ) for time slice to + ∆
index (Wt − st−∆t − bt−∆t ) ∆and the∆ seasonal index of the same time slice of the previouswhich
. Equation (5) is the trend seasonis
actually Holt’s linear method [28]. Equation (6) is a weighted average between the
(ct− L∆t ). Equation (7) is the prediction function, where m is the step length of the prediction, Pt+m∆t current seasonal
isindex ( − time
the queuing ∆ − prediction
∆ ) and ofthetime
seasonal
slice tindex
+ m∆toftothe
t +same
(m + time
1) ∆t, slice
and ofm∗L the previous
= [( season
m − 1) mod L ],
( ). Equation (7) is the prediction function, where is the step
which∆ ensures the seasonal factors for prediction come from the most recent period. length of the prediction, ∆
is the queuing time prediction of time slice + ∆ to + ( + 1)∆ , and ∗ = [( − 1) ],
which
2.4.3. ensuresTrend
Seasonal the seasonal factors for
Decomposition prediction
with come from
Autoregressive the most
Integrated recentAverage
Moving period. (STL-ARIMA)
Seasonal trend decomposition (STL) is a statistical method that deconstructs a time series into
2.4.3. Seasonal Trend Decomposition with Autoregressive Integrated Moving Average
several components, namely, trend (TRt ), seasonality (St ) and remainder (Rt ). STL is used to
(STL-ARIMA)
decompose time series, while Loess is used to estimate nonlinear relationship. The additive STL
modelSeasonal
adoptedtrend
in thisdecomposition (STL) is a statistical method that deconstructs a time series into
work is as follows:
several components, namely, trend ( ), seasonality ( ) and remainder ( ). STL is used to
decompose time series, while Loess is W t = TR
used + St + Rnonlinear
to testimate t (8)
relationship. The additive STL
modelWadopted
where in this work is as follows:
t is a sequence of WiFi-based average queuing time estimations, TRt is the long-term increasing
or decreasing trend in the sequence, St is the=regular
+ fluctuation
+ of seasonal factors and seasonality
(8)
Sensors 2016, 16, 1958 9 of 21
Sensors
where2016, 16,
is 1958
a sequence of WiFi-based average queuing time estimations, 9 of 20
is the long-term
increasing or decreasing trend in the sequence, is the regular fluctuation of seasonal factors and
is fixed and has known period for a given sequencegiven
seasonality is fixed and has known period for a sequence
of periodic of periodic
features. features.
Rt is the remainder of is the
the
remainder of the sequence after components and
sequence after components TRt and Rt are removed and can be seen as noise. are removed and can be seen as noise.
The STL
The STL isisaafiltering
filteringprocess
processfor fora atime
timeseries.
series.TheThe ARIMA
ARIMA model
model is used
is used forfor prediction
prediction based
based on
on reconstructed a sequence from STL [31,44] (i.e., STL-ARIMA prediction
reconstructed a sequence from STL [31,44] (i.e., STL-ARIMA prediction model). In the ARIMA model, model). In the ARIMA
model,
the the variation
variation of the observation
of the observation sequencesequence
over time over time is regarded
is regarded as random, as random, and a statistical
and a statistical model is
model is constructed to model the features of the sequence based on processes,
constructed to model the features of the sequence based on processes, such as AR and Moving Average such as AR and
Moving Average (MA). The notation of the model is ARIMA( , , ), where
(MA). The notation of the model is ARIMA ( p, d, q), where p is the order of the autoregressive, is the order of dthe
is
autoregressive, is the number of differences required for stationarity, and
the number of differences required for stationarity, and q is the order of the moving-average process. is the order of the
moving-average
Readers can referprocess.
to Box andReaders
Jenkinscanetrefer to Box
al. [44] and Jenkins
for more details.et al. [44] for more details.
3. Methodology
3. MethodologyValidation
Validation
Queuing time
Queuing timedetermination
determinationandand estimation
estimation based
based on WiFi
on WiFi positioning
positioning data isdata is theofbasis
the basis of
further
further prediction.
prediction. Therefore,
Therefore, in thiswe
in this section, section, we only
only validate thevalidate the effectiveness
effectiveness of hardware of hardware
deployment
deployment
principles andprinciples andofthe
the accuracy accuracyaverage
a crowd’s of a crowd’s
queuingaverage queuing based
time estimation time estimation based on
on WiFi positioning
data. The queuing time prediction by time series models mentioned in Section 2 is presented in 2the
WiFi positioning data. The queuing time prediction by time series models mentioned in Section is
presented
case study in the case study section.
section.
Figure 5.
Figure 5. General overview of
General overview of the
the queue
queue zone
zone and
and the
the locations
locations of
of the
the APs.
APs.
Sensors 2016, 16, 1958 10 of 21
20
Table 1.
Table Results of
1. Results of the
the topological
topological test
test near
near the
the border
border of
of the
the queue
queue zone.
zone.
Inside
Inside Outside
Outside
Inside Inside 73.11%
73.11% 26.89%
26.89%
Outside
Outside 17.21%
17.21% 82.79%
82.79%
3.3.
3.3. WiFi-Based
WiFi-Based Estimation
Estimation Model
Model Validation
Validation
We
We collected
collected WiFi
WiFipositioning
positioningdatadata(by
(byRTmap
RTmap Science
Science and
andTechnology
Technology Ltd., Beijing,
Ltd., China)
Beijing, for
China)
an entire day. The time during which queuing occurred was estimated according
for an entire day. The time during which queuing occurred was estimated according to the model to the model
described above. To
described above. Toresolve
resolvethethevariation
variationinin queuing
queuing time
time throughout
throughout thethe
day,day, we divided
we divided the day
the day into
into 10 min time slices. The main traffic passing through the T3-C entrance is from 5:00
10 min time slices. The main traffic passing through the T3-C entrance is from 5:00 a.m. to 9:00 p.m., a.m. to 9:00
p.m.,
so weso weestimated
only only estimated the queuing
the queuing time during
time during this time-frame.
this time-frame. We simultaneously
We simultaneously collectedcollected
check-in
check-in and check-out
and check-out data fromdata from thesystem
the security securityandsystem and calculated
calculated the actual the actualtime
queuing queuing time for
for validation.
validation. Figure 6 shows the validation results of our estimation. The mean absolute
Figure 6 shows the validation results of our estimation. The mean absolute error of the estimation error of was
the
estimation
156 was 156ofs,the
s, and 69.07% andabsolute
69.07% of the absolute
errors were lesserrors
than were
200 s,less thanindicates
which 200 s, which indicates
that our thattime
queuing our
queuing time determination
determination and estimationand estimation
model model in
is practicable is real-life
practicable in real-life scenarios.
scenarios.
Figure
Figure 6.
6. Validation
Validation results
results of
of the
the WiFi-based estimation model.
WiFi-based estimation model.
4.
4. Case
CaseStudy
Study
4.1. Queuing
Queuing Time Estimation for the T3-C Entrance of Beijing Capital International Airport
As positioning
positioning accuracy
accuracydepends
dependson onthe
thefield
fieldenvironment,
environment, forfor
thethe case
case study,
study, we we again
again chose
chose the
the T3-C entrance of Beijing Capital International Airport to validate our methodology.
T3-C entrance of Beijing Capital International Airport to validate our methodology. Beijing Capital Beijing
Capital International
International AirportAirport is the largest
is the largest airport
airport in China
in China and and the second
the second busiest
busiest in the
in the world,
world, witha
with
apassenger
passengerthroughput
throughputthat
thatexceeded
exceeded89 89million
millionperson-time
person-time (overall
(overall number
number of of people including
reoccurring ones) in 2015. In large-scale public areas like this, queuing time affects the management
and service quality. Our
Our system
system can
can automatically
automatically detect
detect and
and predict
predict individuals’
individuals’ queuing
queuing times,
times,
which is helpful for improving traffic efficiency, optimizing management, promoting service quality
and improving the capability to address emergencies.
Sensors 2016, 16, 1958 11 of 20
where time_stamp is the time stamp recorded when a positioning location was collected; MAC is the
media access control address of a mobile device; building_ID is the serial number of the building
(for example, terminal T3); f loor_ID denotes the floor number; coordinateX and coordinateY are the
x and y coordinates, respectively, of the location; and AP_MAC is the MAC address of the AP that
provides the strongest signal for the device when positioning.
Before an individual enters the queue zone, he/she swipes their boarding pass to check-in and
go through the security door on the fourth floor. Next, he/she takes the escalator downstairs to the
third floor to wait for security in a queue. After the queuing process, the staff at the counter stamps
the passenger’s boarding pass to check them out and the passenger leaves the queue zone to have
his baggage checked. In our study, we added the time spent on escalators to the queuing time. Thus,
the queuing process starts when a passenger checks in and enters the queue zone, and ends after
checking out and leaving the queue zone. Therefore, the time between check-in and check-out recorded
by the security system is regarded as the actual queuing time for validation.
Figure 7. Passenger trajectory examples. (a); (b); (c) and (d) show trajectories of four different
Figure 7. Passenger trajectory examples. (a–d) show trajectories of four different passengers in the
passengers in the T3-C Entrance.
T3-C Entrance.
Table 2. Error statistics of different parameter combinations.
Table 2. Error statistics of different parameter combinations.
Parameter Combinations Error Statistics
Parameter Combinations Mean Std. MAE AE ≤Error
60 s Statistics
AE ≤ 120 s AE ≤ 180 s AE ≤ 200 s
5 50% 30.27 177.30 144.57 32.99% 49.48% 71.13% 76.29%
k r Mean Std. MAE AE ≤ 60 s AE ≤ 120 s AE ≤ 180 s AE ≤ 200 s
6 50% 38.46 189.37 146.60 30.93% 50.52% 69.07% 73.20%
5 7 50% 50% 30.2749.39 177.30
193.98144.57
151.24 32.99%
27.84% 49.48%
50.52% 71.13%
69.07% 76.29%
72.16%
6 50% 38.46 189.37 146.60 30.93% 50.52% 69.07% 73.20%
7 8 50% 50% 49.3952.08 193.98
193.59151.24
151.72 27.84%
26.80% 52.58%
50.52% 69.07%
69.07% 73.20%
72.16%
8 9 50% 50% 52.0861.11 193.59
195.71151.72
157.38 26.80%
25.77% 52.58%
52.58% 65.98%
69.07% 71.13%
73.20%
9 10 50% 50% 61.1163.47 195.71
193.69157.38
162.19 25.77%
22.68% 52.58%
47.42% 65.98%
62.89% 71.13%
69.07%
10 50% 63.47 193.69 162.19 22.68% 47.42% 62.89% 69.07%
72.16%
5 40% 30.10 196.18 148.54 34.02% 52.58% 67.01%
5 40% 30.10 196.18 148.54 34.02% 52.58% 67.01% 72.16%
5 5 30% 30% 24.3624.36 207.67
207.67158.72
158.72 29.90%
29.90% 49.48%
49.48% 65.98%
65.98% 70.10%
70.10%
5 5 20% 20% 15.2115.21 210.29
210.29160.19
160.19 27.84%
27.84% 52.58%
52.58% 67.01%
67.01% 69.07%
69.07%
5 5 10% 10% −2.76−2.76 216.68
216.68167.48
167.48 24.74%
24.74% 48.45%
48.45% 65.98%
65.98% 69.07%
69.07%
5
5
0%
0%
−49.45 228.15 183.47
−49.45 228.15 183.47
21.65%
21.65%
42.27%
42.27%
59.79%
59.79%
61.86%
61.86%
6 40% 35.54 195.21 150.07 29.90% 49.48% 67.01% 72.16%
6 6 30% 40% 31.2135.54 195.21
207.15 160.91150.07 29.90%
26.80% 49.48%
47.42% 67.01%
64.95% 72.16%
70.10%
6 6 20% 30% 20.1831.21 209.47
207.15161.04
160.91 26.80%
26.80% 47.42%
50.52% 64.95%
67.01% 70.10%
70.10%
6 6 10% 20% 1.1720.18 215.61
209.47166.61
161.04 24.74%
26.80% 49.48%
50.52% 65.98%
67.01% 69.07%
70.10%
6 0% −40.43 230.45 183.76 21.65% 41.24% 58.76% 60.82%
6 10% 1.17 215.61 166.61 24.74% 49.48% 65.98% 69.07%
7 40% 47.71 200.10 155.34 27.84% 49.48% 65.98% 69.07%
7 6 30% 0% −40.43212.83
42.49 230.45165.82
183.76 25.77%
21.65% 41.24%
46.39% 58.76%
63.92% 60.82%
68.04%
7 7 20% 40% 38.4947.71 215.77
200.10167.98
155.34 27.84%
27.84% 49.48%
46.39% 65.98%
64.95% 69.07%
67.01%
7 7 10% 30% 21.2542.49 229.22
212.83174.12
165.82 25.77%
25.77% 47.42%
46.39% 63.92%
63.92% 68.04%
68.04%
7 0% −21.29 250.22 194.09 23.71% 41.23% 56.70% 61.86%
7 20% 38.49 215.77 167.98 27.84% 46.39% 64.95% 67.01%
8 40% 51.51 201.10 156.96 26.80% 50.52% 67.01% 69.07%
8 7 30% 10% 46.3021.25 229.22
214.06 167.07174.12 25.77%
25.77% 47.42%
47.42% 63.92%
64.95% 68.04%
67.01%
8 7 20% 0% −21.29218.55
42.15 250.22172.81
194.09 24.74%
23.71% 41.23%
46.39% 56.70%
62.89% 61.86%
65.98%
8 8 10% 40% 23.6751.51 230.53
201.10175.55
156.96 27.84%
26.80% 45.36%
50.52% 62.89%
67.01% 68.04%
69.07%
8 0% −18.15 251.78 195.19 23.71% 39.18% 56.705 61.86%
Note: Values exceeding 70% are emphasize using boldface. Std.: standard deviation, MAE: mean absolute error,
AE: absolute error.
8 20% 42.15 218.55 172.81 24.74% 46.39% 62.89% 65.98%
8 10% 23.67 230.53 175.55 27.84% 45.36% 62.89% 68.04%
8 0% −18.15 251.78 195.19 23.71% 39.18% 56.705 61.86%
Note: Values exceeding 70% are emphasize using boldface. Std.: standard deviation, MAE: mean
absolute error, AE: absolute error.
Sensors 2016, 16, 1958 13 of 20
According to field surveys, it is improbable for a passenger to queue for less than 60 s or for
moreAccording
than 1800tos.field
Therefore,
surveys, after the queuing
it is improbable for time of all passengers
a passenger to queue forinless
a than
time 60 slice
s orhas been
for more
estimated, we remove the estimated queuing times that fall outside this time range,
than 1800 s. Therefore, after the queuing time of all passengers in a time slice has been estimated, designating
them
we as incorrect
remove results.queuing
the estimated Next, we remove
times that abnormal
fall outsideresults,
this timewhich aredesignating
range, defined as them
thoseas more than
incorrect
or less than 1.5 standard deviations from the overall mean. Finally, we calculate
results. Next, we remove abnormal results, which are defined as those more than or less than 1.5 the mean value of
the remaining results to represent the crowds’ average queuing time in the time
standard deviations from the overall mean. Finally, we calculate the mean value of the remaining slice.
results to represent the crowds’ average queuing time in the time slice.
4.1.4. Estimation Results and Validation
4.1.4.WeEstimation
estimated Results
queuing andtime
Validation
in 10 min intervals between the hours of 5:00 a.m. to 9:00 p.m. from
11 August
We estimated queuing time in 10 minthe
to 18 August. For validation, corresponding
intervals between the check-in
hours and check-out
of 5:00 datap.m.
a.m. to 9:00 fromfromthe
airport security system, which we refer to as security data, were collected as the
11 August to 18 August. For validation, the corresponding check-in and check-out data from the airport ground truth. These
data record
security passenger
system, which we IDs,refer
check-in and check-out
to as security data, weretimes, and number
collected of security
as the ground truth.counters.
These data By
collating these records according to passenger ID, we calculated every
record passenger IDs, check-in and check-out times, and number of security counters. By collatingpassenger’s queuing time.
The queue
these zone
records has four
according to special
passenger channels
ID, we(Figure
calculated5, top andpassenger’s
every bottom corners
queuingof the queue
time. zone),
The queue
whichhas
zone arefour
prepared
special forchannels
“hurry-off” passengers
(Figure 5, top and(channels
bottom 1 and 2) and
corners of VIP passengers
the queue zone),(channels
which are 25
and 26). Passengers leaving from these channels do not need to queue
prepared for “hurry-off” passengers (channels 1 and 2) and VIP passengers (channels 25 and 26). like the other passengers.
Therefore, the
Passengers queuing
leaving fromtimetheseof channels
passengers do who pass to
not need through
queue thelikequeue zonepassengers.
the other via these channels
Therefore, is
usually short, and the integrated trajectories of these passengers can scarcely
the queuing time of passengers who pass through the queue zone via these channels is usually short, be detected by the
positioning
and system.trajectories
the integrated In accordanceof these with the positioning
passengers data be
can scarcely results, the by
detected security records ofsystem.
the positioning these
channels
In are removed
accordance with theand the actualdata
positioning queuing
results,times
the determined from of
security records security data that are
these channels are removed
less than
60 s or more than 1800 s are also removed as incorrect results. The actual
and the actual queuing times determined from security data that are less than 60 s or more than 1800 queuing times ares
aggregated into 10 min time slices according to the check-out time stamps. The
are also removed as incorrect results. The actual queuing times are aggregated into 10 min time slices mean queuing time
calculated to
according fromthe security
check-out data
timeinstamps.
the same Thetime
mean slice can validate
queuing the results
time calculated estimated
from securityby theinWiFi
data the
positioning data (Figure 8).
same time slice can validate the results estimated by the WiFi positioning data (Figure 8).
Figure 8.
Figure 8. Comparison
Comparison of the estimated
of the estimated and
and actual
actual queuing
queuing times.
times. (a) Comparison of
(a) Comparison the estimated
of the estimated
actual queuing
and actual queuingtimes
timesonon1111August;
August;(b)
(b)Comparison
Comparison ofof
thethe estimated
estimated andand actual
actual queuing
queuing times
times on
on August;
12 12 August; (c) Comparison
(c) Comparison of the estimated
of the estimated and actualand actual
queuing queuing
times times on
on 13 August; (d)13 August; (d)
Comparison of
Comparison of the estimated and actual queuing
the estimated and actual queuing times on 14 August. times on 14 August.
The statistical characteristics of the estimation errors are listed in Table 3. The mean queuing time
from 11 August to 18 August was 546 s, while the estimated mean queuing time was 570 s. The mean
absolute error (MAE) of the estimation results was 147 s, approximately 26.92% of the actual queuing
time. On average, 25.39% of the absolute errors (AEs) were less than 60 s, 49.61% were less than 120 s,
69.20% were less than 180 s and 73.58% were less than 200 s.
Sensors 2016, 16, 1958 14 of 20
Table 4. Comparison of the prediction errors from NAR (1) and NAR (2).
Error Statistics of Prediction Results from Error Statistics of Prediction Results from
Model NAR (1) Model NAR (2)
No. Mean Std. MAE AE ≤ 200 s No. Mean Std. MAE AE ≤ 200 s
01 46.55 195.15 177.05 60.00% 02 34.24 178.60 155.15 66.32%
03 −38.89 216.97 164.80 69.47% 04 −35.40 203.05 161.41 69.47%
05 41.51 190.07 160.52 69.47% 06 27.38 163.27 132.29 77.89%
Std.: standard deviation, MAE: mean absolute error, AE: absolute error. Wt−10 : average queuing time from time
t−10 min to t; Wt−20 : average queuing time from time t−20 min to t−10 min.
Regarding the regression coefficients (ϕi in Equation (3)), we need to determine how many days
of training data are suitable for NAR (2). We tested three solutions, in which NAR (2) was trained
by the estimation results and ground truth of the preceding one, two or three days. Then, we used
NAR (2) trained by these solutions to predict the queuing times for the same days. Table 5 shows the
mean error statistics of the prediction results, from which we conclude that NAR (2) trained with the
estimation results and ground truth of the previous three days (for example, using the model trained
by the results of 11–13 August to predict the queuing time on 14 August) are theoretically sound.
Table 5. Comparison of the prediction errors from NAR (2) trained using different data.
For
For real-time
real-time queuing time prediction,
queuing time prediction, the
the step
step length
length ofof time
time slices
slices for
for prediction
prediction is is set
set to
to 11 for
for
the
the Holt-Winters and STL-ARIMA models, that is, we only use these models to predict queuing time
Holt-Winters and STL-ARIMA models, that is, we only use these models to predict queuing time
in the upcoming
in the upcoming timetimeslice.
slice.The
Theperiodic
periodicparameter
parameterofofthe themodels
models (Winters
(Winters andand STL-ARIMA)
STL-ARIMA) is set
is set to
to 97 (97 time slices per day from 5:00 a.m. to 9:00 p.m.). The parameters of NAR
97 (97 time slices per day from 5:00 a.m. to 9:00 p.m.). The parameters of NAR(2) are calculated ( 2 ) are calculated
using
using the
theleast
leastsquares
squares method.
method. The Holt-Winters
The Holt-WintersandandSTL-ARIMA
STL-ARIMA predictions are implemented
predictions are implemented using
the forecast
using package
the forecast [48] in R
package Language
[48] [49], and[49],
in R Language the and
remaining parameters,
the remaining except the
parameters, time step
except and
the time
period, are automatically tuned by the procedure. The average prediction errors
step and period, are automatically tuned by the procedure. The average prediction errors of theseof these three models
from
three 11 August
models fromto 14
11 August
August are shown
to 14 Augustin Table 6, which
are shown shows
in Table that NAR
6, which (2) that
shows achieves
NAR(2)better results
achieves
than the other two models.
better results than the other two models.
Table 6. Queuing time prediction errors of different models.
Table 6. Queuing time prediction errors of different models.
Model
Model Mean
Mean Std.
Std. MAE
MAE AE≤ ≤
AE 6060s s AEAE ≤ 120
≤ 120 s s AEAE ≤ 180
≤ 180 s sAE AE ≤ 200
≤ 200 s s
NAR (2) ( ) 5.215.21 188.33
188.33 148.95
148.95 28.21%
28.21% 50.53%
50.53% 68.42%
68.42% 73.05%
73.05%
Holt-Winters19.06
Holt-Winters 19.06 206.89
206.89 162.42
162.42 23.71%
23.71% 44.74%
44.74% 64.54%
64.54% 67.84%
67.84%
STL-ARIMA 18.15
STL-ARIMA 18.15 188.47
188.47 152.90
152.90 24.33%
24.33% 45.98%
45.98% 64.12%
64.12% 69.28%
69.28%
Some prediction
Some prediction results
results from
from the NAR(2)
the NAR (2) model
model areare plotted
plotted in
in Figure
Figure 9,
9, along
along with
with the
the actual
actual
queuing times. The mean queuing time from 14 August to 18 August was
queuing times. The mean queuing time from 14 August to 18 August was 542 s, while the mean 542 s, while the mean
queuing time
queuing time predicted
predicted by NAR(2)
by NAR was 548
(2) was 548 s.
s. The
The MAE
MAE ofof the
the prediction results was
prediction results was 149
149 s,
s, which
which isis
approximately 27.49% of the actual queuing time. As shown in Table 6, on average,
approximately 27.49% of the actual queuing time. As shown in Table 6, on average, 28.21% of the AEs 28.21% of the
AEs were
were less 60
less than than 60 s, 50.53%
s, 50.53% were
were less less120
than than 120 s, 68.42%
s, 68.42% were lesswere
thanless
180than
s and180 s andwere
73.05% 73.05%lesswere
than
less s.
200 than 200 s. However,
However, the resultsthe
alsoresults
showalso
a fewshow a few weaknesses,
weaknesses, for example,forthe
example, the beginning
beginning of the
of the prediction
prediction
curve curve9binand
in Figure Figure 9b andpoint
the jump the jump point9c.in Figure 9c.
in Figure
Figure 9.
Figure 9. Comparison
Comparison of the predicted
of the predicted and
and actual
actual queuing
queuing times.
times. (a)
(a) Comparison
Comparison of the predicted
of the predicted
and actual queuing times on 14 August; (b) Comparison of the predicted and actual queuing
and actual queuing times on 14 August; (b) Comparison of the predicted and actual queuing times times
on
15 August; (c) Comparison of the predicted and actual queuing times on 16 August; (d) Comparison(d)
on 15 August; (c) Comparison of the predicted and actual queuing times on 16 August; of
Comparison
the predictedof theactual
and predicted and times
queuing actualon
queuing times on 17 August.
17 August.
5. Discussion
The main goal of this study was to develop a method to predict queuing time based on WiFi
positioning data in indoor scenario. The results of a case study at Beijing Capital International Airport
show that the method we proposed is feasible for real-time queuing time prediction. In contrast
to WiFi-based queuing monitoring systems such as LineKing [15,22] and Wang’s method [23–25],
and systems based on other sensors mentioned in Section 1, our method does not require users to
Sensors 2016, 16, 1958 16 of 20
install specific apps on their mobile devices, which means it is a completely passive queue monitoring
method and it can be easily extended to new applications. In addition, in the case study, the estimation
and prediction error of our method were approximately 26.92% and 27.49%, respectively, while the
estimation error of LineKing is approximately 24%–36% in a coffee shop. Wang’s method had an error
of approximately 10 seconds. However, because Wang et al. only used one WiFi monitor, it is difficult
for their method to address long or disordered queues using a signal strength threshold parameter to
distinguish the starting time of a queuing process. As our method was only tested in a security region
with strict limitation and because it is scenario-dependent, the comparisons can only be viewed as a
reference. To compare the prediction accuracy at different time periods, we aggregated the time slices
of a day into 3 slices (i.e., 5:00 a.m.–12:00 p.m., 12:00 p.m.–5:00 p.m. and 5:00 p.m.–9:00 p.m.). The MAEs
of the prediction results were 36.12% from 5:00 a.m. to 12:00 p.m., 18.49% from 12:00 p.m. to 5:00 p.m.
and 28.68% from 5:00 p.m. to 9:00 p.m. Because of the traffic rush in the morning, the high variation
in traffic may lead to large errors in the period 5:00 a.m.–12:00 p.m. In addition, the environmental
factors on the morning of 15 August, which will be explained in the following section, affected the
accuracy of this period. Comparison of the prediction results from different models indicates that our
NAR model has better accuracy than the other two models. There are two possible reasons for this
phenomenon: (1) the NAR model can be trained using historical ground truth, while the other two
models only consider the observations; and (2) the Holt-Winters and STL-ARIMA models are good at
addressing sequences with regular cycles, while the queuing time pattern in our research varies by
days, especially between weekdays and weekends.
During the deployment phase of our positioning system, we made some arrangements for the
original APs at the T3-C Entrance. Two main elements were concerned, signal coverage and signal
overlap. Because the signal transmitting range is approximately 50 m to 100 m, which exceeds the
radius of the queue zone, APs deployed near the border of the queue zone can ensure the integrity of
signal coverage in the queue zone. Metal baffle plates were placed to reduce signal overlap between
the inside and outside of the queue zone, which may cause drift phenomenon and lead to topological
errors. Thus, when users leave the queue zone, they receive a weak signal from the APs inside the
queue zone due to the metal baffle plates. However, as the distance from the APs in surrounding shops
to the queue zone is no more than 30 m, normal Internet service is barely affected.
There are two types of factors affecting the accuracy of the results: environmental factors and
systematic factors. Environmental factors affect the normal queue and security check, and often lead to
outliers, for example, the large errors in the prediction results, especially 5:00 a.m.–8:00 a.m., 15 August
in Figure 9b and 7:00 a.m.–8:00 a.m., 16 August in Figure 9c. Historical weather records indicated
that, on 15 August, 22 out of 34 municipalities and capital cities experienced rain, which may have
stranded passengers due to flight delays and led to the error from 5:00 a.m. to 8:00 a.m. in Figure 9b.
Through discussions with the airport staff, we concluded that other environmental factors that can
generate outliers include sudden traffic variation, security strategy adjustment (for example, security
gate number change) and large traffic flow along the outside of the queue zone near the boundary.
Because we do not have additional information about this time period, we cannot give the exact reason.
Nevertheless, the existence of outliers is due to one or more of the above reasons. System factors
include topological accuracy, the packet delivery frequency of mobile devices, and lags in the models.
of WiFi positioning and the impact of trajectory point sparsity, we proposed four parameters (m, n, k,
and r) to identify relatively reliable samples as representatives of queuing time in specific time slices.
In different application scenarios, these parameters must be calibrated before the method is used for
queuing time estimation and prediction. In the case study at the T3-C entrance of Beijing Capital
International Airport, although the number and location of APs were restricted by limited internet
access ports and deployment locations, the minimum MAE of the estimation results from 11 August to
18 August was 147 s, which is 26.92% of the average actual queuing time. In contrast with the results
of previous WiFi-based queuing time estimation methods relying on mobile apps, the accuracy of our
simple but carefully designed method is within the acceptable range.
For prediction, we proposed the NAR model. The main difference of NAR with respect to general
AR model is that NAR is trained using previous observations and the ground truth. To determine the
order of the NAR model and the number of days’ results for model training, we conducted a series
of experiments. The results showed that an order of 2 and number of previous days of 3 produced
sufficiently accurate predictions. Using this model, we predicted the queuing time in T3-C entrance
from 14 August to 18 August in real time. The minimum MAE of the predictions came from the NAR
model, i.e., 27.49% of the average actual queuing time, which was better than the Holt–Winters and
STL-ARIMA models.
Our research shows that indoor queuing time can be estimated and predicted using WiFi
positioning data. Compared with previous studies, our method has four advantages: (i) it is robust to
positioning accuracy when topological correctness is reliable; (ii) it does not require special sensors to
cope with the widespread nature of WiFi APs; (iii) it is completely passive because it does not require
individuals active participation or for them to install an app on their mobile devices; and (iv) it does
not need to consider the shape of a queue, only the individuals’ spatiotemporal location and the extent
of the queue zone. As WiFi is widely used in public areas, our method is applicable in locations such
as train stations, museums and supermarkets. However, it can only be used in places where there are
queue zones with well-defined borders. In actual application scenarios, our method is restricted by the
site environment and the drift of the WiFi positioning system. Therefore, the accuracy of estimation
and prediction results may not be fully satisfactory. In future work, a positioning algorithm with
better location accuracy and stability will be used to improve the topological accuracy. For example,
fingerprinting could be used to replace triangulation, and the deployment strategy could be improved
to reduce the impact of the indoor environment. Additionally, technical and algorithmic solutions will
be explored to alleviate the impact of drift.
Acknowledgments: The authors would like to thank Beijing Capital International Airport for providing
permission to use the security system data. The project was supported by the National Science Found for
Distinguished Young Scholars of China (Grant No. 41525004), the Science Fund for Creative Research Groups
(Grant No. 41421001) and a NSFC grant (Grant No. 41231171).
Author Contributions: Tao Pei and Hua Shu designed the model and experiments. Hua Shu, and Ci Song
performed the experiments, and analyzed the data. Hua Shu and Tao Pei wrote the paper. Lianming Xu,
Yang Ou, Libin Zhang, and Tao Li designed the hardware environment for indoor positioning and collected the
experimental data.
Conflicts of Interest: The authors declare no conflict of interest.
References
1. Li, Q.; Han, Q.; Cheng, X.; Sun, L. Queuesense: Collaborative recognition of queuing on mobile phones.
IEEE. Trans. Mob. Comput. 2016, 15, 60–73. [CrossRef]
2. Houston, M.B.; Bettencourt, L.A.; Wenger, S. The relationship between waiting in a service queue and
evaluations of service quality: A field theory perspective. Psychol. Mark. 1998, 15, 735–753. [CrossRef]
3. Maister, D.H. The Psychology of Waiting Lines; Lexington Books: Lexington, MA, USA, 1984.
4. Chan, A.B.; Liang, Z.-S.J.; Vasconcelos, N. Privacy preserving crowd monitoring: Counting people without
people models or tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern
Recognition, Anchorage, AK, USA, 23–28 June 2008; pp. 1–7.
Sensors 2016, 16, 1958 19 of 20
5. Kilambi, P.; Ribnick, E.; Joshi, A.J.; Masoud, O.; Papanikolopoulos, N. Estimating pedestrian counts in
groups. Comput. Vis. Image Underst. 2008, 110, 43–59. [CrossRef]
6. Kong, D.; Gray, D.; Tao, H. Counting Pedestrians in Crowds Using Viewpoint Invariant Training.
In Proceedings of the British Machine Conference, Oxford, UK, 5–8 September 2005.
7. Parameswaran, V.; Shet, V.; Ramesh, V. Design and validation of a system for people queue statistics
estimation. In Video Analytics for Business Intelligence; Springer: Berlin/Heidelberg, Germany, 2012;
pp. 355–373.
8. Shen, B.; Zheng, Q.; Li, X.; Xu, L. A framework for mining actionable navigation patterns from in-store RFID
datasets via indoor mapping. Sensors 2015, 15, 5344–5375. [CrossRef] [PubMed]
9. Budic, D.; Martinovic, Z.; Simunic, D. Cash register lines optimization system using rfid technology.
In Proceedings of the 37th International Convention on Information and Communication Technology,
Electronics and Microelectronics, Opatija, Croatia, 26–30 May 2014; pp. 459–462.
10. Zhuang, Y.; Yang, J.; Li, Y.; Qi, L.; El-Sheimy, N. Smartphone-based indoor localization with bluetooth low
energy beacons. Sensors 2016, 16. [CrossRef] [PubMed]
11. Nishide, R.; Yamamoto, S.; Takada, H. Position estimation for people waiting in line using bluetooth
communication. In Proceedings of the 5th International Conference on Mobile Services, Resources, and
Users, Brussels, Belgium, 21–26 June 2015.
12. Bullock, D.; Haseman, R.; Wasson, J.; Spitler, R. Automated measurement of wait times at airport security:
Deployment at indianapolis international airport, indiana. Transp. Res. Rec. 2010, 2117, 60–68. [CrossRef]
13. Brezmes, T.; Gorricho, J.-L.; Cotrina, J. Activity recognition from accelerometer data on a mobile phone.
In Distributed Computing, Artificial Intelligence, Bioinformatics, Soft Computing, and Ambient Assisted Living;
Springer: Berlin/Heidelberg, Germany, 2009; pp. 796–799.
14. Wang, Y.; Wang, J.; Zhang, X. Qtime: A queuing-time notification system based on participatory sensing
data. In Proceedings of the IEEE 37th Computer Software and Applications Conference, Kyoto, Japan,
22–26 July 2013; pp. 770–777.
15. Bulut, M.F.; Demirbas, M.; Ferhatosmanoglu, H. Lineking: Coffee shop wait-time monitoring using
smartphones. IEEE. Trans. Mob. Comput. 2015, 14, 2045–2058. [CrossRef]
16. Biswas, J.; Veloso, M.M. Wifi localization and navigation for autonomous indoor mobile robots.
In Proceedings of the IEEE International Conference on Robotics & Automation, Anchorage, AK, USA,
3–8 May 2010; pp. 4379–4384.
17. Evennou, F.; Marx, F. Advanced integration of wifi and inertial navigation systems for indoor mobile
positioning. Eurasip J. Appl. Signal Process. 2006, 2006, 086706. [CrossRef]
18. Haddadi, H.; Hui, P.; Brown, I. Mobiad: Private and scalable mobile advertising. In Proceedings of the
Fifth ACM International Workshop on Mobility in the Evolving Internet Architecture, Chicago, IL, USA,
20–24 September 2010; pp. 33–38.
19. Yoon, C.; Lee, H.; Jeon, S.; Lee, H. Mobile digital signage system based on service delivery platform location
based targeted advertisement service. ICT Converg. (ICTC) 2011, 582–586. [CrossRef]
20. Chen, Z. Mining individual behavior pattern based on significant locations and spatial trajectories.
In Proceedings of the 2012 IEEE International Conference on Pervasive Computing and Communications
Workshops (PERCOM Workshops), Lugano, Switzerland, 19–23 March 2012; pp. 540–541.
21. Manweiler, J.; Santhapuri, N.; Choudhury, R.R.; Nelakuditi, S. Predicting length of stay at wifi hotspots.
In Proceedings of the 32nd IEEE INFOCOM Conference, Turin, Italy, 14–19 April 2013; pp. 3102–3110.
22. Bulut, M.F.; Yilmaz, Y.S.; Demirbas, M.; Ferhatosmanoglu, N.; Ferhatosmanoglu, H. Lineking: Crowdsourced
line wait-time estimation using smartphones. In Mobile Computing, Applications, and Services; Springer:
Berlin/Heidelberg, Germany, 2012; pp. 205–224.
23. Wang, Y.; Chen, Y.; Yang, J.; Liul, H.; Gruteser, M.; Martin, R.P. A low-cost Wi-Fi-based solution for measuring
human queues. GetMob. Mob. Comput. Commun. 2015, 19, 10–13.
24. Wang, Y.; Yang, J.; Chen, Y.; Liu, H.; Gruteser, M.; Martin, R.P. Tracking human queues using single-point
signal monitoring. In Proceedings of the 12th Annual International Conference on Mobile Systems,
Applications, and Services, Bretton Woods, NH, USA, 16–19 June 2014; pp. 42–54.
25. Wang, Y.; Yang, J.; Liu, H.; Chen, Y.; Gruteser, M.; Martin, R.P. Measuring human queues using wifi signals.
In Proceedings of the 19th Annual International Conference on Mobile Computing & Networking, Miami,
FL, USA, 30 September–4 October 2013; pp. 235–238.
26. Gardner, E.S. Exponential smoothing: The state of the art. J. Forecast. 1985, 4, 1–28. [CrossRef]
Sensors 2016, 16, 1958 20 of 20
27. Hyndman, R.J.; Koehler, A.B.; Snyder, R.D.; Grose, S. A state space framework for automatic forecasting
using exponential smoothing methods. Int. J. Forecast. 2002, 18, 439–454. [CrossRef]
28. Holt, C.C. Forecasting seasonals and trends by exponentially weighted moving averages. Int. J. Forecast.
2004, 20, 5–10. [CrossRef]
29. Winters, P.R. Forecasting sales by exponentially weighted moving averages. Manag. Sci. 1960, 6, 324–342.
[CrossRef]
30. Cleveland, R.B.; Cleveland, W.S.; McRae, J.E.; Terpenning, I. STL: A seasonal-trend decomposition procedure
based on loess. J. Off. Stat. 1990, 6, 3–73.
31. Theodosiou, M. Forecasting monthly and quarterly time series using STL decomposition. Int. J. Forecast.
2011, 27, 1178–1195. [CrossRef]
32. Davis, R.; Rogers, T.; Huang, Y. A Survey of Recent Developments in Queue Wait Time Forecasting Methods.
In Proceedings of the International Conference on Foundations of Computer Science (FCS), Millersville, PA,
USA, 25–28 July 2016.
33. Cooper, R.B. Introduction to Queueing Theory; North Holland: New York, NY, USA, 1981.
34. Gross, D. Fundamentals of Queueing Theory; John Wiley & Sons: Hoboken, NJ, USA, 2008.
35. Gerlough, D.L.; Huber, M.J. Traffic Flow Theory; National Research Council: Washington, DC, USA, 1975;
pp. 7–70.
36. Kerner, B.S. Introduction to Modern Traffic Flow Theory and Control: The Long Road to Three-Phase Traffic Theory;
Springer: Berlin/Heidelberg, Germany, 2009.
37. Woo, S.; Jeong, S.; Mok, E.; Xia, L.; Choi, C.; Pyeon, M.; Heo, J. Application of wifi-based indoor positioning
system for labor tracking at construction sites: A case study in guangzhou MTR. Autom. Constr. 2011, 20,
3–13. [CrossRef]
38. O’hara, B.; Petrick, A. IEEE 802.11 Handbook: A Designer’s Companion; IEEE Standards Association: Piscataway,
NJ, USA, 2005.
39. Cheng, Y.-C.; Chawathe, Y.; LaMarca, A.; Krumm, J. Accuracy characterization for metropolitan-scale
wi-fi localization. In Proceedings of the 3rd International Conference on Mobile Systems, Applications,
and Services, Seattle, WA, USA, 6–8 June 2005; pp. 233–245.
40. Hightower, J.; Borriello, G. Location systems for ubiquitous computing. Computer 2001, 34, 57–66. [CrossRef]
41. Motley, A.; Keenan, J. Personal communication radio coverage in buildings at 900 MHz and 1700 MHz.
Electron. Lett. 1988, 24, 763–764. [CrossRef]
42. Liu, H.; Darabi, H.; Banerjee, P.; Liu, J. Survey of wireless indoor positioning techniques and systems.
IEEE Trans. Syst. Man Cybern. Part C Appl. Rev. 2007, 37, 1067–1080. [CrossRef]
43. Park, D.; Park, J.G. An Enhanced Ranging Scheme Using WiFi RSSI Measurements for Ubiquitous Location.
In Proceedings of the 2011 First ACIS/JNU International Conference on Computers, Networks, Systems and
Industrial Engineering (CNSI), Jeju, Korea, 23–25 May 2011; pp. 296–301.
44. Box, G.E.; Jenkins, G.M.; Reinsel, G.C.; Ljung, G.M. Time Series Analysis: Forecasting and Control; John Wiley &
Sons: Hoboken, NJ, USA, 2015.
45. Le Dortz, N.; Gain, F.; Zetterberg, P. WiFi fingerprint indoor positioning system using probability distribution
comparison. In Proceedings of the 2012 IEEE International Conference on Acoustics, Speech and Signal
Processing (ICASSP), Kyoto, Japan, 25–30 March 2012; pp. 1–12.
46. Hernández, N.; Alonso, J.M.; Ocana, M.; Marina, M.K. Impact of Signal Representations on the Performance
of Hierarchical WiFi Localization Systems. In Proceedings of the 14th International Conference on Computer
Aided Systems Theory (EUROCAST), Las Palmas, Spain, 6–15 February 2013.
47. Hernández, N.; Alonso, J.M.; Ocaña, M. Hierarchical approach to enhancing topology-based wifi indoor
localization in large environments. J. Mult.-Valued Log. Soft Comput. 2016, 26, 221–241.
48. Forecast: Forecasting Functions for Time Series and Linear Models. Available online: https://cran.r-project.
org/web/packages/forecast/index.html (accessed on 27 September 2016).
49. Team, R.C. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing:
Vienna, Austria, 2013.
© 2016 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access
article distributed under the terms and conditions of the Creative Commons Attribution
(CC-BY) license (http://creativecommons.org/licenses/by/4.0/).