Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DIPANKAR
GHOSH and C. H. KNAPP
Departmentof Electrical Engineering andComputer Science, Universityof Connecticut, Storm, CT 06268,U.S.A.
Ahstraet-Estimation of traffic velocity and the number of vehicles on adjacent sections of a limitedaccess
highway is examined. The method evaluatedis based upon applicationof Kalman Filtering Methodsto a linear
state variablemodel of traffic Bow. The estimatorutilizes velocity and Row measurements at selectedpointsalong
the highway. The flow measurement is a nonlinear function of the state variables and necessitates linearixstion
about the one step ahead prediction of the state (extended KalmanFilter) or about nominal values of the state
variables.It is shown that performanceusingLincoln Tunneldata is comparablein either case to thatof methods
previously reportedand provides a substantialsavings in storagerequirements.Also demonstrated is the fact that
flow at an internal measurement point may be deleted from the observationvector without a seriouseffect on
performance.This would arise, for example,if control of traffic were to be exercised at such a point.
395
3% D. GHOSH
and C. H. KNAPP
I 0 0 0 0 0 0
0 1 0 0 0 0 0
0
I
A= ’ 0 I 0 0 0
0.009 0 0 0.931 0.006 0 0
-0.092 -0.032 0 -0.001 0.961 -0.006 0
0 -0.092 -0.032 0 -0.001 -0.961 0.006
0 0 -0.013 0 0 -0.024 0.945
s[;~7~f’t
Fig. I. Three section representationof Lincoln Tunnel.
Estimation of traffic variables using a linear model of traffic flow 397
fore, the flow rate q, will be considered as a control These figures are based on experience with (3.1) using
variable while remaining flow rates can be used as actual data and on typical velocity measurement errors.
observation variables. Since the observation vector is nonlinear in x(k) an
Observations q2, q3 and q4 must be expressed in terms Extended Kalman Filter algorithm is used to estimate the
of the elements of the state vector. Considering the states. This algorithm is obtained by assuming that
analogy between fluid flow and traffic flow, the traffic i(klk - l), the estimate of x(k) using measurements z(l)
flow rate can be expressed as the product of the traffic through z(k - I), is close to x(k). Nonlinearities in the
flow velocity and traffic density pi. Thus qi is given message and observation models are then expanded in a
approximately by Taylor series about x(k) = %(k(k - I). The result, upon
dropping higher order terms in the series, is a set of
qi = T*pi_,* +fii, i=2,3,4.
equations linear in x(k). (In the present case the message
model (2.3) is already linear in x(k).) Details of this
procedure are given in the appendix which summarizes
Using time interval T = 5 set, and average density the algorithm used.
y~_JLi_l, the above becomes In order to initiate the algorithm the mean and covari-
ante of the initial state vector has been assumed to be
q,(k) = 5* Yi-l(k)* respectively
2Li_1 (c(k) + ui-l(k))+&(k), (3.1)
U,=(o) = [IS, 15,15,30,30,30,30]
where &(k) is an error due to the approximations in-
volved in (3.1). and
Since these flow observations are nonlinear in the state
variables, the Extended Kalman Filter approach has VJo) = Diag [225,225,225,!WO,9OO,!MO,9001.
been used to provide state estimates with the results
described under the heading Case A. The paper also The mean is based on tunnel traffic data; the diagonal
considers an alternate approach which is based on elements of V=(o) are reasonable upper bounds on the
linearization of the flow-rate equations around nominal actual variances.
values of traffic velocities and section densities rather Since velocity measurements are directly available
than their estimates. This approach is reported as Case with small error, one anticipates that velocity estimates
B. Finally it has been shown by Ghosh (1976) that if will be superior to vehicle count estimates. This is indeed
control is applied only at the tunnel entrance the solution borne out by results (not shown) in which velocity esti-
of the optimal control problem. with reasonable control mates converge within several iterations to values very
levels leads to a system which is barely stable. By near the actual measurements. In fact for estimation
exerting control at point three inside the tunnel, purposes the velocities may be assumed to be given by
however, the system stability can be substantially im- the measurements without error. The estimator yielding
proved. Therefore, it is of interest to examine the quality the vehicle counts yr(k), i = 1,2,3, may then be some-
of the estimates which result if flow information q3 is what simplified (see Sage and Melsa, 1971). Detailed
excluded from the observation vector. The details are results of velocity estimates are given by Ghosh (1976).
described under the heading Case C of this section. Figures 2-4 illustrate time history of exact and esti-
mated vehicle counts for the first 40 min in each of the
Case A three tunnel sections. Averages and standard deviations
The observation model can be written as of velocity and vehicle count errors (obtained by time
averaging) are summarized in Table I.
z(k) = h(x(k)) + n(k) (3.2a) Observe that the estimates of vehicle counts y, and y3
converge approximately to the actual number of vehicles
where in about 3 min. However, the estimate of vehicles in
Section 2 needs at least 7 min to approach the actual
s(k) + ni(k), i = I, 2,3,4
a(k) = (3.3a) number of vehicles. These larger errors in the estimates
qi-s(k)(eqn3.l),i=5,6,7. in Section 2 for the first 7 min make an appreciable
contribution to the calculated variance of the error e2 =
Thus y2- y2. If the first 7 min are omitted in the variance
calculation the standard deviation of e2 lowers to about
s(k)=xi+spi= 1,2,3,4
(3.3b) 1.7. The much lower values of the vehicle estimates
hi(k)= [Sxi_d(xi +xi_1)/2Li-4, i =5,6,7.
during the first 7 min can be attributed to the fact that the
value of fifteen chosen for the initial estimate of y2 is
Noise ni(k), i = 5,6,7 is the approximation error, C-,(k), much lower than the actual number during the first few
of eqn (3.1). Instrumentation error in measuring qi(k) is intervals.
insignificant compared to the modelling error Z;(k). n(k) The error between y2 and j$ is not more than one
is assumed to be zero mean white, noise with covariance vehicle in most of the intervals after 7 min. However,
matrix during the period between the 25th min and 32nd min, j2
V,=Diag[0.1,0.1,0.1,0.1,1,1,1]. falls below the actual number of vehicles y2 by as much
D. GHOSH and C. H. KNAPP
1
-
L , I I I 1 I I I I 1 , I 1
3 6 9 12 15 IS 21 24 27 30 33 36 s 42
Time, min.
Fig. 2. Time history of actual and estimated vehicle counts, Section I.
0 I I I I I I I I I I I I I
3 6 9 12 I5 16 21 24 27 30 33 36 39 42
Time, min
Fig. 3. Time history of actual and estimated vehicle counts, Section 2.
36-
3 6 12 15 I6 21 r% 27 30 33 36 39 42
Time,
Fig. 4. Time history of actual and estimated vehicle counts, Section 3.
Estimation of trafficvariables usinga linear model of traffic flow 399
stirnation
I I 7
-
as six vehicles. This drop in the estimate j$ develops densities. In order to examine this approach, the
after a large peak in vehicle count and suggests two nominal density p* has been assumed to be 0.01 car/ft
possible corrective procedures. The first is motivated by for each section, and the nominal velocities II:, u:, u?
observing that the average velocity given by eqn (2.1) is and ut have been taken as 35, SO, 35 and 35 ftlsec
excellent in smoothing the speed measurements of in- respectively. Expanding the equation for q2, i.e. eqn
dividual vehicles, but suffers from one drawback. When (3.1), in a Taylor series around the nominal values pt, u:
few vehicles pass over the sensor for a considerable time and u: and neglecting terms higher than first order, we
interval during heavy traffic congestion, the average obtain
speed given by eqn (2.1) may drop much more slowly
u:-+u:p,_p$*u:tu:
1
than the actual velocity of the traffic stream. One ap- * u1+u2
PI *2+----’
+&
q2=5
proach to alleviate this problem is to assume that when [ 2 2
1tti,
vehicle counts exceed a certain threshold, velocity
should be decreased exponentially for time intervals in = 5 0.01 .?+42Sp,-0.01x42.5
which no vehicles pass over the detectors. A second
approach to improve performance is based on the possi- =0.025u,t0.025u~+0.16y,-2.1+R~. (3.4a)
bility that the model used may be too crude for large
deviations from the norm. This can be remedied by Similarly
making the detectors closer so that approximations
particularly in eqn (3.1), are better. Alternately, the 4, = 0.025~2+ 0.025~3 + O.O78y,-2.1 t Ax (3.4b)
region between the detectors can be broken into smaller
sections, thereby increasing the number of state vari- and
ables. Whether the added dimensionality or instrumen-
tation is worth the resulting dividends depends on how q, = 0.025~3 + 0.025~4 + O.O6y,
- 1.8+ n’d. (3.4c)
sensitive the control strategy is to errors in vehicle
counts. Therefore the observation model can be written as
The average and variance of the errors between x and
estimate i are also given in Table 1 for the last 40 min, a z(k)= Hx(k)+d+n(k) (3.5)
period which avoids the problem interval just prior to the
32nd min. where
d(k) = hU(k/k - 1) - H(kM(k/k - l), (A@ H?3= & (&(k/k - 1) + &(k/k - I)), Se = z-h
= &. &(k/k - 1).
and