Estimating The Number of People in Buildings Using Visual Information
Estimating The Number of People in Buildings Using Visual Information
1.1
Introduction
Counting the number of people in real time is essential for a multitude of management and monitoring
functions. We choose to focus on estimating real time
pedestrian ow in buildings. The implications for
management, economic optimization and security of
buildings are of signicant value.
Designers and managers of large buildings conduct
manual surveys or use counting devices that register
passage of a person through a gated area. These
methods are labor extensive and can be impractical
and unreliable. Since the widespread use of digital
video based surveillance, a lot of research has been
conducted in automated methods for counting people
using camera surveillance data. Collecting useful
video framed information, one can provide exact
counts and estimates of the number of people in
locations of interest. An impressively large research in
computer vision is currently devoted to the problem
[1]. However, despite some pioneering systems, the
results remain constrained to specic scenarios and
research has not been extended to the estimation
Problem Denition
The aim is to estimate the number of people in a building with a signicant pedestrian ow. After reviewing
all possible scenarios, using the main tower building
of the University of Technology of Sydney as a typical
site with hundreds of surveillance cameras, the problem was divided in 3 classes: (i) Counting the total
number of people in the building [Open System], (ii)
Counting the number of people in a large area [Semiclosed System], and (iii) Counting the number of people in the eld of view [Closed System]. In this article,
we present a solution implemented for (iii), and research being conducted to improve that solution, and
outline the statistical methodology for (i) and (ii) for
presentation in following papers.
1.1.1
Open System
Counting the total number of people in a large building is a dicult problem to solve. Most large buildings
have many entrances that are not monitored. In addition, the ow of people in some instances is hard to
identify. For example, people coming out of an elevator that accesses the parking level could also be com-
124
Authorized licensed use limited to: Universiti Malaysia Perlis. Downloaded on February 18, 2009 at 02:57 from IEEE Xplore. Restrictions apply.
Semi-Closed System
Closed System
We consider a location that is either covered completely by surveillance cameras or has all entrances
and exits covered by cameras. This problem can be
addressed with a number of techniques available in
computer vision (See [1]). We implemented two scenarios, one in a lunch room with one camera covering the whole room, and one in a computer lab with
a camera covering the two entrances of the lab. To
count the number of people using the video data, we
used the background subtraction method for motion
segmentation of Stauer and Grimson [2], based on
the generalized mixture of Gaussian probability distributions. The background estimation using mixture of
125
Authorized licensed use limited to: Universiti Malaysia Perlis. Downloaded on February 18, 2009 at 02:57 from IEEE Xplore. Restrictions apply.
2.1
2.2.1
2.2
p(NC |w1 , . . . , wm , L)
p(w1 , . . . , wm |NC , L)p(NC |L)
p(w1 |NC , L) . . . p(wm |NC , L)
p(NC |L)
126
Authorized licensed use limited to: Universiti Malaysia Perlis. Downloaded on February 18, 2009 at 02:57 from IEEE Xplore. Restrictions apply.
3.1
Arrival Process
n
Ti t,
i=1
n+1
Ti > t}
i=1
n = 0, 1, . . .
x 10
data
fit
5
4
Density
100
200
300
400
500
Data
600
700
800
900
127
Authorized licensed use limited to: Universiti Malaysia Perlis. Downloaded on February 18, 2009 at 02:57 from IEEE Xplore. Restrictions apply.
as
, Y is approximately Normal. Letting
yj,k = Nj,k+1/4 , we have the model
yj,k = udj (k)xj + v
where xj = Vj and udj (k) = dj (tk ) and now v
N (0, 2 ). We next assume an autoregressive model for
the daily eect xj ,
xj dj = (xj1 dj1 ) + w
where w N (0, 2 ). Then, using the Bayesian recursive approach, starting with initial estimates, we derive
Using (Y1 , Y2 , . . . , Ym ), we want to assess the probability distribution of Si,j , the time spent in the system
by a person. Based on probability model assumptions,
we assume that the {Si,j , i, j = 1, 2, . . .} are independent random variables that are identically distributed.
Si,j Gamma(, ), i, j = 1, 2, . . .. That is
fSi,j (x) =
x1 ex
()
We want to calculate
3.2
p(Si,j |y1 , y2 , . . . , ym ),
t2
N (t) =
t1
n
Si ,
i=1
i=1 Si is observed
n for all cycles. Consider the
variables Y =
Using the collected data
i=1 Si .
(Y1 , Y2 , . . .) for the same n, and assuming a period
of homogeneity, that is the data are independent and
identically distributed (IID), one can t a probability
distribution to the Yi s. From such distribution, one
would derive the distribution of the Si s. For example, if the Si s are Gamma distributed, then the sum
n
i=1 Si will be Gamma distributed. As it turns out,
our studies have shown that the data t well a Gamma
distribution. However, this approach requires collecting considerable amount of data, as one needs large
samples (Y1 , Y2 , . . .) having all the same n number of
people that have entered and stayed in the system.
Instead, we prefer to use a more ecient Bayesian approach that makes use of all collected cycle data. Let
1
p(y1 , . . . , ym |, )p(, )
m
1
p(yi |, )p()p()
i=1
ni
Since Yi = j=1
Si,j , i = 1, 2, . . ., is the sum of the
independent Gamma random variables Si,j , then Yi
Gamma(ni , ). is computed in a non expensive K
large summation.
128
Authorized licensed use limited to: Universiti Malaysia Perlis. Downloaded on February 18, 2009 at 02:57 from IEEE Xplore. Restrictions apply.
Semi-Closed System
Open System
References
[1] W. Hu, T. Tan, L. Wang, S. Maybank, A Survey
on Visual Surveillance of Object Motion and Behaviors. IEEE Transactions on Systems, Man, and
Cybernetics-Part C: Applications and Reviews,
vol. 34, No.3. pp. 334352, Aug. 2004.
[2] C. Stauer, W. Grimson, Adaptive background
mixture models for real-time tracking. In Proc.
IEEE Conf. Computer Vision and Pattern Recognition, vol. 2, pp. 246252, 1999.
129
Authorized licensed use limited to: Universiti Malaysia Perlis. Downloaded on February 18, 2009 at 02:57 from IEEE Xplore. Restrictions apply.