You are on page 1of 13

1

Emergency Traffic-Light Control System Design for


Intersections Subject to Accidents
Liang Qi, MengChu Zhou, Fellow, IEEE, and WenJing Luan

Abstract—Petri nets (PNs) are well utilized as a visual and Traffic incident management (TIM) makes a systematic
mathematical formalism to model discrete event systems. This effort to detect, respond to, and remove traffic accidents. It
work uses Deterministic and Stochastic Petri nets to design an aims to offer the rapid recovery of traffic safety and capacity
emergency traffic-light control system for intersections providing [2] and lead to many measurable benefits [3], such as decrease
emergency response to deal with accidents. According to the
in fuel consumption, accident duration, secondary accidents,
blocked crossing sections as depicted by dynamic PN models, the
corresponding emergency traffic light strategies are designed to and traffic jams. In the past thirty decades, ITS technologies
ensure the safety of the intersection. The cooperation among were recognized as valuable tools and being used worldwide
traffic lights/facility at those affected intersections and roads is in traffic accident detection [4]-0, verification 0, response [7],
illustrated. For the up-stream neighboring intersections, a and communication [8]. In order to alleviate the induced
traffic-signal based emergency control policy is designed to help congestion and reduce the possibility of potential secondary
prevent the accident-induced large-scale congestion. Deadlock accidents, the accident at an intersection should be cleared as
recovery, deadlock prevention, and conflict resolution strategies quickly as possible. However, the injured person in the
are developed. We adopt a reachability analysis method to verify accident should not be moved without rendering first aid
the constructed model. To our knowledge, this is the first work
unless the casualty is in immediate danger. So far, there are
that employs PNs to model and design a real-time traffic
emergency system for intersections facing accidents. It can be not many studies about how to guarantee the safety of an
used to improve the state of the art in real-time traffic accident accidental intersection.
management and traffic safety at an intersection. Traffic signals have been effectively used to manage
 conflicting requirements for the use of road space by
Index Terms—Petri nets, intelligent transportation systems, allocating the right of way to different sets of mutually
traffic light control, accident at intersections, traffic congestion. compatible traffic movements during distinct time intervals.
Much work has been done to develop various strategies in
I. INTRODUCTION order to promote traffic efficiency, which can be categorized
as fixed-timed, traffic responsive [9] and predictive control
U rban road intersection is one of the most accident-prone
zones in road networks. For different countries and
regions, between 30% and 60% of all injury accidents and up
ones [10]. The first one is widely used in our present urban
traffic systems due to its easy implementation and low cost.
The second one controls intersections based on inputs detected
to one third of the fatalities occur at intersections [1]. This is by physical sensors such as loop detectors or cameras. Its
due mainly to the fact that accident scenarios at intersections examples are SCOOT [11] and SCATS [12]. Some other
are among the most complex ones, since different categories works are carried out to improve the safety of road traffic. For
of road users interact in limited areas with crossing trajectories. example, signal strategies are adopted by Huang et al. [13] to
To some extent, the high incidence of traffic accidents turns keep the traffic safety at intersections of railroads and
intersections into the hotspots of the primary accident-induced roadways. Weng et al. [14] propose the use of TPNs to model
accidents called secondary ones which can bring much more parallel railroad level crossing traffic safety control systems.
severe damage. Besides, the injured person may suffer Huang et al. [15] design a traffic control system for
secondary injury when moved incautiously. Consequently, it is emergency vehicles. It clearly describes the traffic light
imperative to effectively enforce the scientific management of behaviors to support the smooth movement of emergency
intersections having an accident (called accidental vehicles. Urgent spectacles appear when emergency vehicles
intersections in the following discussions) to prevent are encountering red light phases at a crossing zone. They can
secondary accidents and injuries. be avoided and emergency vehicles are ensured with the
highest priority to go through intersections through such
system.

Manuscript received May 10, 2015; revised July 20, 2015; accepted July 25,
Decreasing those conflicting movements can greatly reduce
2015. Date of publication ***; date of current version ***. This work was the potential crashes [1]. Thus, at an accidental intersection,
supported in part by HongKong, Macao and Taiwan Science and Technology there is a strong demand that traffic flow from some directions
Cooperation Program of China No. 2013DFM10100. The Associate Editor for should be immediately stopped to prevent the confliction such
this paper was ***. (Corresponding author: M. C. Zhou)
L. Qi is with the School of Electronics and Information Engineering, Tongji
that any secondary accidents can be avoided from happening,
University, Shanghai 201804, China (e-mail: qiliangsdkd@163.com). and the injured person can obtain enough time to be removed
M. Zhou is with the Department of Electrical and Computer Engineering, safely. It is the traffic signal operation strategy that can help us
New Jersey Institute of Technology, Newark, NJ 07102 USA (e-mail: do the work. In fact, different emergency strategies should be
zhou@njit.edu).
W. Luan is with the School of Electronics and Information Engineering,
adopted according to different positions of blockage induced
Tongji University, Shanghai 201804, China (e-mail: by accidents at an intersection.
wenjingmengjing@163.com).
Color versions of one or more of the figures in this paper are available On the other hand, the above stop-flow strategies may
online at http://ieeexplore.ieee.org. induce large-scale congestion while the neighboring
intersections are blocked. As an example, Fig. 1(a) illustrates
2
n

w e Congestions

An
Accident
(a)

Warning Loop Detectors


Lights
Cameras

Fig. 2. Architecture of an emergency traffic-light control system for


intersections.

This work adopts DSPNs to design a traffic-light control


Critical
UR DA system for an accidental intersection and its up-stream
Warning
Areas Lights neighboring intersections preventing secondary injuries and
(b) accident-induced traffic congestion. Sensing actuators can be
installed at an intersection, e.g., inductive loops are adopted to
Fig. 1. An accidental intersection and its up-stream neighboring one. (a)
Traffic under no emergency control. (b) Traffic under emergency control.
detect vehicle motion via the vibration [28] while cameras are
used to percept road traffic collisions at an intersection
an accidental intersection and its induced congestion. An visually [29] [30]. Here, three kinds of facility are installed at
accident is occurring at the right intersection and blocks it. each intersection as shown in Fig. 1: a set of traffic lights,
When the road with two lanes between the two intersections, several sensors and warning lights. The architecture of our
is full of vehicles, the blue heavy-shaded areas (called critical proposed system is described in Fig. 2. Sensors are used to
areas in the following discussions) in the left intersection may gather real-time traffic at intersections: cameras are used to
be blocked by the corresponding traffic flow. Their blockage detect accidents, and loop detectors are used to count the
induces heavier congestion as shown in the yellow number of vehicles. Warning facility is used for sending the
light-shaded areas. An emergency traffic light strategy can be accidental warning signals to vehicles. An Information
adopted at these neighboring intersections cooperating with Processing Center (IPC) is deployed. By processing the real
the accidental one to stop the traffic flow driving towards its time traffic information obtained by sensors, normal traffic
blocked area as shown in Fig. 1(b). Note that if the clearance light strategies and emergency ones are designed. Also, the
of the accident costs little time, the former may not be blocked facility needs proper cooperation, which can be described by
in some cases, e.g., off-peak traffic periods, and thus such the PN model. Through these PN-based formal models, the
strategy may not be needed. correctness of the control system can be ensured. Then the
Petri nets (PNs) [16] [17] are a well-founded model applied system can be implemented directly with a hardware design.
to the simulation and analysis of a complex discrete event The rest of this paper is organized as follows. Section II
dynamic system. They can well model its important characters presents a signalized intersection, traffic network, and
such as synchronization, concurrency and cooperative control. traffic-light control. Section III reviews DSPN, and constructs
Due to their graphical expression and mathematical rigor, they a normal traffic light strategy and other facility’s operation
are an effective description and analysis tool for urban traffic models with DSPN. Section IV presents the emergency
[18] and especially for traffic light control systems [19]-[22]. strategies including emergency traffic light strategies for an
List and Cetin use Petri nets to model the control of signalized accidental intersection as well as for its up-stream neighboring
intersections in [19], where the signal control logic is designed ones according to the critical crossing sections blocked by an
for eight-phase traffic and the traffic operation safety rules are accident, and emergency warning light strategies. Some
enforced through this model. Huang et al. [20]-[22] model deadlock recovery, livelock prevention, and conflict resolution
traffic signal alternation that consists of two, six and strategies are presented. Property analysis of the constructed
eight-phase transitions using timed Petri nets. They aim to Petri net models is conducted in Section V. Concluding
model complex phase transitions of traffic lights and analyze remarks are made in Section VI.
the related properties via occurrence graphs. Huang et al. [13]
pioneered in a parallel railroad level crossing (LC) control II. SIGNALIZED INTERSECTIONS
system by using Deterministic and Stochastic Petri nets
(DSPNs). Its critical scenarios are extracted and avoided by In this section, firstly, a traffic network is presented. Then a
controlling the phase of traffic light operations. This keeps the set of traffic light phase transitions used are designed. We
traffic safety related to intersections of railroads and roadways. adopt the idea from 0-[34] to divide each intersection into a
PNs have also been used in assessment studies of finite number of parts called crossing sections, and regulate
transportation systems [23] [24], modeling and management their occupation by traffic flows at corresponding traffic light
of collective motion [25], and simulation of container phases.
terminals operations [26]. Reachability tree analysis methods A. Traffic network
[27] and many simulation tools are used to analyze the
In this paper, we consider a two way grid network as shown
constructed models.
in Fig. 3. In the network, each intersection Ii, i +, connects
3

w e r1,8(SR) r1,8(L) r1,7(L) r1,7(SR) r2,8(SR) r2,8(L) r2,7(L) r2,7(SR)

s ... ... ... ...

...
...
...

...
r1,1(SR) s1,1 s1,2 s1,3 s1,4 r1,6(SR) r2,1(SR) s2,1 s2,2 s2,3 s2,4 r2,6(SR)

r1,1(L) s1,5 s1,6 s1,7 s1,8 r1,6(L) r2,1(L) s2,5 s2,6 s2,7 s2,8 r2,6(L)

r1,2(L) s1,9 s1,10 s1,11 s1,12 r1,5(L) r2,2(L) s2,9 s2,10 s2,11 s2,12 r2,5(L)

r1,2(SR) s1,13 s1,14 s1,15 s1,16 r1,5(SR) r2,2(SR) s2,13 s2,14 s2,15 s2,16 r2,5(SR)

...
...
...

...
... ... ... ...

r1,3(SR) r1,3(L) r1,4(L) r1,4(SR) r2,3(SR) r2,3(L) r2,4(L) r2,4(SR)

Fig. 3. Traffic network.

eight roads ri,1-ri,8 which model eastbound, westbound, 3) Phase c: GR and GS signals turn on in the eastbound and
southbound and northbound directions, respectively. A road is westbound directions, i.e., GRe, GSe, GRw, and GSw are on, and
a physical area used by vehicles to pass from one intersection the red signals are displayed in the north-southward directions,
to another. As shown in Fig. 3, intersections Ii, where i 2+ i.e., Rn and Rs are on. The straight-driving traffic flow is from
connect eight roads ri,1-ri,8, where in ri,1, ri,3, ri,5, and ri,7, east (respectively, west) to west (respectively, east) denoted by
vehicles coming out from Ii drive to west, south, east and Few (Fwe), and the right-turning one towards north (south)
north, respectively; in ri,2, ri,4, ri,6, and ri,8, vehicles coming denoted by Fen (Fws).
from west, south, east and north, respectively, enter Ii. Each
4) Phase d: GL signals turn on in the eastbound and
road ri,j, j 8+ is characterized by at least two lanes which are westbound directions, i.e., GLe and GLw are on, and the red
categorized into two groups: ri,j(L) denoting the left-most lane signals are displayed in the north-southward directions, i.e., Rn
of ri,j that is used for vehicles turning left, and named as a and Rs are on. The left-turning traffic flow is from east (west)
left-turn lane (L-lane for short); and ri,j(SR) denoting another to south (north) denoted by Fes (Fwn).
lane that is used for vehicles driving straight and turning right,
and named as a straight-right lane (SR-lane for short). Vehicles C. Crossing sections
entering the intersection and turning left are out from ri,j(L) In order to model the behavior of vehicles when crossing an
while those driving straight or turning right are out from ri,j(SR). intersection, according to 0-[34], we divide each intersection
Note that, r1,6 (r1,5) and r2,1 (r2,2) are the same road. For into a finite number of physical spaces, which can easily and
convenience, we denote rii as the road transferring vehicles efficiently depict vehicle driving paths within an intersection
from Ii to Ii. Ii is called an up-stream neighboring intersection in a microscopic representation way. The parts in which an
of Ii. Thus, r1,6 (r1,5) and r2,1 (r2,2) are denoted by r21 (r12). Each intersection is physically divided are named as crossing
intersection has four up-stream neighboring intersections. sections. According to the lanes we divided previously, three
kinds of crossing sections are categorized: L-section that is the
B. Traffic-light control
intersection of two L-lanes, LS-section that is the intersection
In this paper, four traffic light sets are deployed at directions of an L-lane and SR-lane, and SR-section that is the
north (n), east (e), south (s), and west (w). Each set has five intersection of two SR-lanes. As shown in Fig. 3, each
signal lights: a red one (R), a yellow one (Y), three green ones intersection Ii is divided into 16 crossing sections si,j, j 16+,
with a straight arrow (GS), a left turn arrow (GL), and a right
turn arrow (GR), respectively, as shown in Fig. 4. The flows
are ruled by four-phase traffic light rules shown in Fig. 5,
where four phases form a cycle, i.e., from Phases a to d, and
then back to a. For convenience, we denote Xn, Ye, Zs, and Ww
Fig. 4. Five signal lights in a light set.
as traffic lights with certain colors along directions n, e, s, and
w, respectively, where X, Y, Z, W{R, Y, GS, GL, GR}. The
detailed operations are described as follows.
1) Phase a: GR and GS signals turn on in the northbound and
southbound directions, i.e., GRn, GSn, GRs, and GSs are on, and
Phase a n Phase b
the red signals are displayed in the east-westward directions,
i.e., Re and Rw are on. The straight-driving traffic flow is from w e
north (south) to south (north) denoted by Fns (Fsn), and s
right-turning one towards west (east) denoted by Fnw (Fse).
2) Phase b: GL signals turn on in the northbound and
southbound directions, i.e., GLn and GLs are on, and the red
Phase d Phase c
signals are displayed in the east-westward directions, i.e., Re
and Rw are on. The left-turning traffic flow is from north
Fig. 5. Four phase transitions of the traffic control system.
(south) to east (west) denoted by Fne (Fsw).
4
where there are 4 L-sections, i.e., si,6, si,7, si,10, and si,11, 8 flow, the impact of blockage of crossing sections towards
LS-sections, i.e., si,2, si,3, si,5, si,8, si,9, si,12, si,14, and si,15, and 4 traffic flow with regard to the traffic light phases becomes
SR-sections, i.e., si,1, si,4, si,13, and si,16. Notice that, there are 12 apparent.
vehicle movement paths during the four phases discussed in
the former sub-section. We define a section-occupation path III. NORMAL TRAFFIC LIGHT STRATEGY AND OTHER FACILITY’S
over a traffic flow F as a set of physical space sequences, OPERATION MODELS
formally as lF={ri,msi,j1 si,j2…si,jkri,n | i +, and m,
In this section, the DSPN concept is reviewed. First, we
n 8+, ri,m and ri,n are two lanes connected by intersection Ii, present some basic notations: is a real number set, + is the
si,j1, si,j2, …, si,jk are k crossing sections}, i.e., a vehicle in F can
set of positive real numbers, ={0, 1, 2, } is a natural number
move along a path from one lane ri,m, through a sequence of
crossing sections, and to another lane ri,n. The set, += /{0} is the positive integer set, k={0, 1, 2, , k} and
+ +
section-occupation paths at intersection Ii for traffic flows are k ={1, 2, , k} where k . Then we present a DSPN
clearly depicted in Fig. 6 and formally presented next: construction process for the normal traffic light strategy, the
involved sensors’ operation as well as warning lights’
• Fig. 6 indicates the mentioned traffic flows of phase a operation.
coming from ri,4(SR) and ri,8(SR) and driving straight towards
ri,7(SR) and ri,3(SR), respectively, and turning right towards ri,5 A. DSPN Model
and ri,1, respectively. Fns has one section-occupation path: A PN is a kind of bipartite directed graphs populated by
lFns={ri,8(SR)si,1si,5si,9si,13 ri,3(SR)}; Fsn has one path: three types of objects. They are places, transitions, and directed
lFns={ri,4(SR)si,16si,12si,8 si,4ri,7(SR)}; Fnw has two paths: arcs connecting places to transitions and transitions to places
lFnw={ri,8(SR)si,1ri,1(SR), ri,8(SR)si,1si,5ri,1(L)}; and Fse has [17]. Deterministic and stochastic delays can be associated with
two paths: lFse={ri,4(SR)si,16ri,5(SR), ri,4(SR)si,16si,12ri,5(L)}. transitions in PNs, leading to DSPNs [35] [36].
Note that lane-changing movements for the straight driving Definition 1: A DSPN is a 8-tuple =(P, T, F, W, H, M0, τ, λ),
flow are forbidden in all intersections. In addition, during the where
right-turning flow, si,12 (respectively, si,5) may not be occupied
until the proceeding area of si,16 (respectively, si,1) in ri,5(SR) 1) P is a finite set of places;
(respectively, ri,1(SR)) is blocked by vehicles or other obstacles. 2) T=TITdTe is a finite set of transitions, partitioned into
• Fig. 6 indicates the mentioned traffic flows of phase b three disjoint sets, TI, Td and Te, representing immediate,
coming from ri,4(L) and ri,8(L) and turning left towards ri,1 and deterministic and exponential ones, respectively, with PT
ri,5, respectively, where Fsw has two section-occupation paths: and PT=;
lFsw={ri,4(L)si,15si,10si,5ri,1(L), ri,4(L)si,15si,10si,6
3) F(PT)(TP) is a set of directed arcs;
si,1ri,1(SR)}; and Fne has two paths as well:
lFne={ri,8(L)si,2si,7si,12ri,5(L), ri,8(L)si,2si,7si,11si,16 4) HPT is a set of inhibitor arcs from p to t with
ri,5(SR)}. Note that, the left-turn flow from south has to HF=;
occupy si,15 and then si,10, while those from north must occupy
5) W: (PT)(TP)→ is a weight function, where
si,2 and then si,7.
W(f)>0 if fFH and otherwise W(f)=0;
Traffic flow in phases c and d can be analyzed similarly like
that in phases a and b, but in a reverse order. When we divide 6) M: P→ is a marking function, where pP, M(p) is the
the intersection into several crossing sections, and the relevant number of tokens in p, and M0 denotes the initial marking;
section-occupation paths are defined exactly for each traffic 7) τ: Td→ +
is the firing time for deterministic transitions;
8) λ: Te→ + is the firing rate vector whose element (t) is
the firing rate of transition t that is associated with
exponentially distributed time delay.
In a DSPN, an immediate transition can fire immediately
when it becomes enabled; a deterministic transition t is
attached with a fixed enabling duration τ(t) that is known, and
if t becomes enabled, it waits for a time duration τ(t), and after
n
that, fires instantaneously; and a stochastic transition t is
Phase a Phase b
w e associated with an exponentially distributed random delay
function with a firing rate λ(t), and its enabling duration
s complies with the exponential distribution. Graphically,
immediate, deterministic and stochastic transitions are
represented by thin, thick black and empty bars, respectively.
An inhibitor arc is used to decrease the model complexity. It
links a place p to a transition t with a small circle attached to t.
By default, as for usual arcs, an inhibitor arc has a weight of 1.
Thereby, it prevents t from firing as long as p is marked. It can
also have a weight n, in which case, it forbids the firing of t
Phase c Phase d while there are at least n tokens in p. For convenience, G is
Fig. 6. Crossing section occupation during the four phases. denoted as the global time and G0 the initial time.
5
When a DSPN model is built, according to its firing rules
pn6 tn5 pn4 tn7 pn8
[35][36], its reachability graph can be constructed. In order to pw8 tw2 pw9
reduce the size of the graph, each arc corresponds to a tn2
tn1
sequence of transitions containing only one timed transition tw7 tw8
tn4 tn3 pn7 tn6 pn5 tn8 pn9
(deterministic or stochastic one). Besides, we put them in pw4 pw5
parentheses and then attached to the corresponding arc if more pn2 pn3 pe1
pn1
than one transition fires at the same time. tw5 tw6 te4
B. Traffic-light control model pw6 pw7 pe2
pi1 pi7
We are interested in a control policy for an intersection tw1 pw3 pi2 pi8 te3
where the following statements are true [13]:
tw3 pi6 te1
 The order of the traffic lights forms a cycle; pi4
 The system starts when the lights are all red; pw2 pi3 pi5 pe3 pe7 pe6
 A short yellow duration is adopted among transitions tw4 te6 te5
from green to red; and pw1 ps3 ps1
 To insure traffic safety, all traffic lights are all red pe5 pe4
ps9 ts8 ps5 ts6 ps7 ts3 ps2 ts4
when the phase transition is completed.
te8 te7
The DSPN model of normal strategy of traffic lights is ts2 ts1
depicted in Fig. 7, where we specify that the capacity of each pe9 pe8
ps8 ts7 ps4 ts5 ps6 te2
place is 1 (i.e., the net is 1-bounded). The meanings of places
and transitions with their enabling durations are given in Table
Fig. 7. DSPN model of a normal traffic light strategy at intersection Ii.
I. For convenience, let χ{n, e, s, w}, ξ{n, s}, and ζ{e, w}.
Suppose that the global time is G0=0 at the initial state, that is, TABLE I. MEANING OF TRANSITIONS AND PLACES AND TRANSITION
only pχ1 contains a token and tξ1 is enabled at G0. They fire after DELAYS OF FIG. 7 WHERE χ{n, e, s, w}
5 seconds when G=5 where a token is moved from pξ1 to pξ6
P Meaning T Meaning  (Sec.)
and pξ7, respectively, enabling and firing tξ5 and tξ6, pχ1 R tχ1 Changing R to GS and GR 5
immediately, while each of pi2, pi3, pi6, and pi7 obtains a token. pχ2 Y tχ7 and tχ8 Changing GS and GR to 20
pξ4 and pξ5 obtain a token when tξ5 and tξ6 fire, thus resulting in GL
pχ3 GL tχ3 Changing GL to Y 10
that tξ7 and tξ8 are enabled. It denotes that the traffic lights GRξ pχ4 GS tχ4 Changing Y to R 3
and GSξ are turning on from the global time 5 to 25. This pχ5 GR others Immediate ones with no
means that the lights change from Rξ to GRξ and GSξ and the meaning but for a control
duration time of GRξ and GSξ are 20 seconds. tξ7 and tξ8 with purpose
pχ6-pχ9, No
(tξ7)=(tξ8)=20 fire after 20 seconds at G=25. Then a token is pi1-p i8 meaning
moved from pξ4 and pξ5 to pξ8 and pξ9, respectively, enabling but for a
and firing tξ2 with a token deposited to pξ3. It denotes that the control
purpose
traffic lights GLξ are turning on from the global time 25 to 35.
(tζ4) (tζ3) (tζ7,tζ8),(tζ2) (tζ1),(tζ5,tζ6)
That means the light changes from GLξ to Yξ and the duration M7 M6 M5 M4
time of GLξ is 10 seconds. Then tξ3 is fired resulting in that pξ2
are marked with a token. At the same time, pi1, pi4, pi5, and pi8
obtain a token. Then tξ4 with (tξ4)=3 and tζ1 with (tζ1)=5 are
M0 M1 M2 M3
enabled and fire at G=38 and G=40, respectively. The (tξ1),(tξ5,tξ6) (tξ7,tξ8),(tξ2) (tξ3) (tξ4)
duration time of Yξ is 3 seconds. Traffic light turns to GSζ and
GRζ after Yξ turns to Rξ. Meanwhile, tξ1 is disabled because the
Fig. 8. The reachability graph of the model in Fig. 7, where ξ{n, s} and
1-capacity places pi2, pi3, pi6 and pi7 contain tokens. Then the
ζ{e, w}.
traffic lights turn successively to GSζ and GRζ, GLζ, Yζ, and
return to their initial state when G=73. Transitions tξ1 enabled C. Other facility’s operation models
at G=70 fire when G=75, and the same transition firing We deploy sensors including cameras and loop detectors at
sequence is repeatedly executed. The reachability graph is intersections to help us collect the traffic data, i.e., accident
presented in Fig. 8, where M0-M7 are all markings, and for information and the number of vehicles in roads. With these
convenience, we denote M as the state of the lights. Thus sensors we can build the emergency traffic light strategies. In
M0=(Rn, Re, Rs, Rw), M1=(GSn, GRn, Re, GSs, GRs, Rw), M2=(GLn, detail, a camera is employed at each intersection Ii, for the
Re, GLs, Rw), M3=(Yn, Re, Ys, Rw), M4=(Rn, Re, Rs, Rw), M5=(Rn, purpose of gathering accident information including its
GSe, GRe, Rs, GSw, GRw), M6=(Rn, GLe, Rs, GLw), and M7=(Rn, occurrence, position and clearance [29] [30]. Eight Loop
Ye, Rs, Yw). Since this graph is a finite circle containing all detectors that are denoted by Ci,j, j 8+ and installed at the
transitions, the DSPN model in Fig. 7 is live and reversible. connection of roads rj and intersection Ii, respectively, are used
Thus, the time necessary to complete a circle from marking Mi, to count the number of vehicles driving from ri,j (Ii) into Ii (ri,j).
i 7 to the same one is 70 except that the time needed for M0 Besides, the electronic display or warning lights are warning
to M0 for the first time is 73. Note that the order of the traffic facility used for sending the accidental warning signals to
lights forms a cycle directing the traffic light phases operating vehicles. Here we adopt a warning light as the warning facility
in a cycle “a→b→c→d→a”. example. In fact, a warning light set is installed at the midpoint
of a road rii. Each set has three lights, as shown in Fig. 9,
denoted by wLi,i, wSi,i, and wRi,i, warning vehicles that intend to
6
turn left, drive straight and turn right at the downstream Ii, Fig. 11 focuses on the loop detectors’ switch work
respectively. Thus, when the downstream traffic flow in rii is controlled by traffic light strategies at intersection Ii. The loop
interrupted, the lights can warn traffic flow not entering the detectors are controlled by the traffic light strategy such that
downstream conflict crossing sections. Now we construct a the sensors from the corresponding directions are on when
DSPN-based model for each kind of facility as follows. vehicles are permitted to pass while others sleep for saving
energy. For example, at the initial state in the model, all loop
1) We build a DSPN model of the accident detection of a
detectors do not work. Then tξ1, ξ{n, s} fires, and tξ5 and tξ6
camera at intersection Ii as shown in Fig. 10(a). The firing of thi
fire immediately, such that GSi and GRi are on and Phase a
depicts the occurrence of an accident. It is an infrequent event
begins. Loop detectors Ci,1, Ci,4, Ci,5, and Ci,8 supervising the
and we adopt an exponential transition to depict it. tdi models
corresponding roads are on while others remain off. The
that the accident is detected by the camera. A token is filled in
number of vehicles driving out or entering into roads ri,1-ri,8
pai if tdi fires. Then tci fires if the clearing process is finished.
can be obtained, respectively. In order to reduce the model
The duration of accident clearance is described by the enabling
complexity and improve its clarity and readability, the switch
duration of a deterministic transition, i.e., tci. Note that when tci
work control model will not link the traffic flows to be
has a stochastic time delay, the DSPN analysis is more
modeled next. Thus pi,j in Fig. 10(b) is omitted Fig. 11.
complex. Finally, we suppose that there is no overlap between
consecutive accidents, as modeled by place pai containing only D. Traffic flow model
one token. We build the traffic flow model in Fig. 12. We only
2) The DSPN model of vehicle counting of a loop detector consider the traffic flow at a single road r ii and its
Ci,j is described in Fig. 10(b). Its initial marking is that there downstream intersection Ii as an example. Then the whole
exists a token in pCi,j_off describing that Ci,j is not working. traffic flow in the network can be composed through the
When Ci,j starts to work, tCi,j_on fires by moving a token from model in Fig. 12. A token in pi,μ represents a vehicle that
pCi,j_off to pCi,j_on. By firing tCi,j, Ci,j counts vehicles that have has just driven from intersection Ii into road ri,μ. Then after
passed Ci,j and are denoted by tokens in pi,j. Note that pi,j is a certain time duration τ(ti,i), ti,i fires. It means that the
used as the interface between the loop detector and traffic vehicle passes through road ri,i and is ready to drive from
flows. The total number of vehicles sensed by Ci,j during its
working interval time in a phase cycle equals to the number of
ri,ν into Ii. Note that ri,μ, ri,ν, and rii are the same road. The
tokens in pCi,j. The firing of tCi,j_off depicts that Ci,j is closed. vehicle can turn left, or drive straight, or turn right by firing
Then a token is filled in pCi,j_off and tCi,j_r is enabled if pCi,j ti,νL1, ti,νS1, or ti,νR1. A token is generated in pi,ν representing
pCi,8_on pCi,7_on
contains any tokens. By firing tCi,j_r repeatedly, Ci,j is reset
resulting in the vehicle count being cleaned. pCi,8_on_off pCi,8_off_on pCi,7_on_off pCi,7_off_on

3) We build the warning light model as shown in Fig. 10(c)


describing that warning lights wδi,i, δ{L, S, R} switches pCi,1_off_on pCi,8_off pCi,7_off pCi,6_on_off

between on and off depicted by pδi,i_on and pδi,i_off, respectively. pCi,1_off


pw8 tw2 pw9
pn6 tn5 pn4 tn7 pn8
pCi,6_off
pCi,1_on tn2 pCi,6_on
Transitions tδi,i_on and tδi,i_off are immediate. tw7 tw8
tn4 tn3
tn1
pn7 tn6 pn5 tn8 pn9
pw4 pw5
pn1 pn2 pn3 pe1
tw5 tw6 te4
pw6 pw7 pe2
pi1 pi7
pCi,1_on_off tw1 pw3 pi2 pCi,6_off_on
pi8 te3
(a) (b) (c) tw3 pi6
pCi,2_off_on pi4 te1 pCi,5_on_off
pw2 pi3 pi5 pe3 pe7 pe6

Fig. 9. Three warning lights installed at the midpoint of road rii: (a) wLi,i, (b) pCi,2_off tw4
pw1 ps3 ps1
te6 te5
pCi,5_off
pCi,2_on pCi,5_on
wSi,i, and (c) wRi,i. ps9 ts8 ps5 ts6 ps7 ts3 ps2 ts4
pe5 pe4
te8 te7
ts2 ts1
pe9 pe8
ps8 ts7 ps4 ts5 ps6 te2
pCi,j_off
pCi,2_on_off pCi,5_off_on
thi phi pCi,3_off pCi,4_off

tdi tCi,j_r pCi,3_off_on pCi,3_on_off pCi,4_off_on pCi,4_on_off


pCi,j
pai pai tCi,j_on tCi,j_off
tCi,j pCi,3_on pCi,4_on

tci Fig. 11. Counter operations controlled by a traffic light strategy.


pCi,j_on pi,j
TABLE II. MEANING OF PLACES AND TRANSITIONS IN FIG. 10 WHERE
(a) (b)
j 8+, AND δ{L, S, R}.
pLi,i_off pSi,i_off pRi,i_off P Meaning T Meaning
phi An accident is happening thi Having an accident
pai An accident is detected tdi Detecting that an accident is
tLi,i_on tLi,i_off tSi,i_on tSi,i_off tRi,i_on tRi,i_off happening
pai No accident is detected tci Detecting that the accident is
pLi,i_on pSi,i_on pRi,i_on cleared
pCi,j_on Ci,j is on tCi,j_on Turning Ci,j on
(c)
pCi,j_off Ci,j is off tCi,j_off Turning Ci,j off
pCi,j_ Vehicles that are counted tCi,j Counting vehicles by Ci,j
Fig. 10. Models of sensors and warning lights at intersection Ii: (a) A DSPN by Ci,j
of the accident detection with camera Si, (b) A DSPN of vehicle counting with pi,j Vehicles that have passed tCi,j _r Resetting the count of
loop detector Ci,j where j 8+, and (c) DSPNs of warning lights wLi,i, wSi,i, Ci,j vehicles by Ci,j to 0
pδi,i_on wδi,i is on tδi,i_on Turning wδi,i on
and wRi,i.
pδi,i_off wδi,i is off tδi,i_off Turning wδi,i off
7
that the vehicle has driven from ri,ν into Ii. Then by firing pi,m
ti,νL1, ti,νS1, or ti,νR1, the vehicle drives from Ii into roads ti,i
ri,v1, ri,ν2 or ri,v3, with a token deposited in pi,v1 and pi,v1, or
pi,ν
pi,ν2 and pi,ν2, or pi,v3 and pi,v3, respectively. The turning
rate is described by exponential transitions ti,νL1, ti,νS1, and
ti,νR1 with firing rates λi,νL1, λi,νS1, and λi,νR1, respectively.
When warning lights turn on, i.e., there is a token in pδi,i_on, pi,ν ti,νL1 pχ3 ti,νL2 ti,νS1 pχ4 ti,νS2 ti,νR1 pχ5 ti,νR2
ti,νδ1 is not enabled, ti,νδ2 is enabled and can fire with a firing pLi,i_on pSi,i_on pRi,i_on
rate λi,νδ2<λi,νδ1. It means that fewer vehicles choose a direction pi,νL1 pi,νL2 pi,νS1 pi,νS2 pi,νR1 pi,νR2
indicated by the warning light that is on. Note that if there is a ti,νL1 ti,νL2 ti,νS1 ti,νS2 ti,νR1 ti,νR2
pi,n1 pi,n2 pi,n3
token in pi,ν, i.e., a vehicle has passed from ri,ν into Ii, it will be
sensed by Ci,ν as described in Fig. 10(b). We will not pay more pi,n1 pi,n2 pi,n3
attention to the traffic flow model but concentrate on the
control logic of the emergency system in this paper due to Fig. 12. DSPN model of traffic flow, where {n, e, s, w}.
page limitation.
+
Step 2: CSF={Si=  {sh} | i n , shSlh};
hNm+
IV. EMERGENCY STRATEGIES
Step 3: if SiSj, Si, SjCSF, delete Sj from CSF.
In this section, we propose emergency traffic light strategies
According to the algorithm, we obtain the critical crossing
for an accidental intersection Ii as well as for its up-stream
section set CS for all traffic flow movements.
neighboring ones, and build emergency warning light
CS={CSFsn, CSFse, CSFns, CSFnw, CSFsw, CSFne, CSFew, CSFen, CSFwe,
strategies by using DSPNs.
CSFws, CSFwn, CSFes, }, where,
A. Dynamic PN models of critical crossing sections CSFsn={{si,4},{si,8},{si,12},{si,16}},
First we define critical crossing section sets over a traffic CSFse={{si,16}},
flow movement as follows. CSFns={{si,1},{si,5},{si,9},{si,13}},
CSFnw={{si,1}},
CSF={Sn | n +} denotes n critical crossing section sets CSFsw={{si,15},{si,10},{si,5, si,6},{si,1, si,5}},
over traffic flow movement F{Fns, Fsn, Fnw, Fse, Fne, Fsw, Few, CSFne={{si,2},{si,7},{si,11, si,12},{si,12, si,16}},
Fwe, Fen, Fws, Fes, Fwn} where Si, i n+ is a set of crossing CSFew={{si,1},{si,2},{si,3},{si,4}},
sections called a critical crossing section set and CSFen={{si,4}},
1) each section-occupation path of F is blocked if there CSFwe={{si,13},{si,14},{si,15},{si,16}},
exists an Si such that sSi is occupied; and CSFws={{si,13}},
2) for each Si, there is no SjCSF, j n+ and ji, such that CSFwn={{si,9},{si,6},{si,3, si,7},{si,3, si,4}}, and
SiSj. CSFes={{si,8},{si,11},{si,10, si,14},{si,13, si,14}}.
We can obtain CSF by the following algorithm. Note that, in this paper, each traffic flow movement
corresponds to at most two section-occupation paths. The
Algorithm 1: Critical crossing section computation above critical crossing section computation method is still
Input: A traffic flow F with m section-occupation paths, i.e., valid for complex traffic flow with more paths. An
lF={lh | h m+}, intersection can be divided into smaller crossing sections, for
example, a road is categorized into three lanes and a
Output: CSF right-turning lane is distinguished from an SR-lane. There will
Step 1: Obtain the set of relevant crossing sections of each be more crossing sections and more section-occupation paths
path in lF, denoted by {Slh | h m+}, where if for each traffic flow as a result.
lh=rhsh1sh2…shkrh, lhlF, k +, then The detailed position of an accident can be determined and
Slh={sh1, sh2…shk}; described by a camera. Given a set of crossing sections,
denoted by BS, occupied by an accident, the following
TABLE III. MEANING OF PLACES AND TRANSITIONS IN FIG. 12 WHERE properties about the critical crossing section can be obtained.
δ{L, S, R}, and μ, ν, ν1-ν3 8+.
P Meaning T Meaning Property 1: If SCSF such that SBS, then F is blocked.
pi,μ Vehicles coming ti,i Passing through rii
from Ii into ri,μ In the network discussed in this paper, we can have the
pi,ν Vehicles to drive ti,νδ1 (ti,νδ2) To drive from ri,ν into Ii and following property.
from ri,ν into Ii towards direction δ with a
rate λi,νδ1 (λi,νδ2) when wδi,i is Property 2: If Fse (respectively, Fen, Fnw, Fws) is blocked,
off (on) with λi,νδ1>λi,νδ2
pi,ν Vehicles that have ti,νδ1 (ti,νδ2) Driving towards direction δ
then Fsn (respectively, Few, Fns, Fwe) is blocked.
driven from ri,ν into from Ii when wδi,i is off (on)
Ii According to Properties 1 and 2, we present an algorithm to
pi,νδ1(pi,νδ2) Vehicles that have describe the PN model indicating the corresponding traffic
driven from ri,ν into
Ii and that will drive
flow movements. Let FBS denote a set of traffic flow
towards direction δ movements blocked by BS. A token in places pχ,S, pχ,R, pχ,L,
when wδi,i is off (on) and pχ,LSR, χ{n, e, s, w} denotes that the straight, right, left,
pi,ν1-pi,ν3 Vehicles that have
(pi,ν1-pi,ν3) driven from Ii into
and left-straight-right movements of traffic flow from
ri,ν1-ri,ν3, respectively
8
direction χ need to be stopped by emergency traffic light
pn,S pn,R pn,L pn,LSR
strategies, respectively.
Algorithm 2: Traffic flow blockage model
+
Input: BS{si,j, j 16 } pw,LSR pe,S

Output: tokens to be filled in pχ,S, pχ,R, pχ,L, and pχ,LSR, χ{n, pw,L
tdi tci pe,R
e, s, w}. pw,R pe,L
Algorithm 2
pw,S
Step 1: Compute the blocked FBS{Fns, Fsn, Fnw, Fse, Fne, pe,LSR
Fsw, Few, Fwe, Fen, Fws, Fes, Fwn} according to
Property 1;
Step 2: if Fsn (respectively, Few, Fns, and Fwe)FBS, a token ps,LSR ps,L ps,R ps,S
is filled in ps,S (respectively, pe,S, pn,S, and pw,S);
Step 3: if Fse (respectively, Fen, Fnw, and Fws)FBS, a token Fig. 13. Dynamic PN models of critical crossing sections.
is filled in ps,R and ps,S (respectively, pe,R and pe,S,
pn,R and pn,S, and pw,R and pw,S);  If pχ4 contains no token, because of the inhibitor arc
from pχ,S to tχ5, tχ5 is prevented from firing. If pχ6
Step 4: if Fsw (respectively, Fes, Fne, and Fwn)FBS, a token contains a token, then tχ,S1 is enabled and fires
is filled in ps,L (respectively, pe,L, pn,L, and pw,L); immediately by removing the token from pχ6 and
depositing a token into pχ8. Hence, GSχ remains off.
Step 5: if Fse, Fsn, and Fsw (respectively, Fen, Few and Fes,
Notice that, tχ2 is used for the synchronization of lights GSχ
Fnw, Fns and Fne, and Fws, Fwe and Fwn)FBS, a token
and GRχ. In the emergency strategy, a token stays in pχ8 until
is filled in ps,LSR (respectively, pe,LSR, pn,LSR, and
GRχ finishes its time duration.
pw,LSR).
2) If there exists a token in pχ,R and pχ,S, the right-turning and
Note that the tokens filled in p,S, p,R, p,L, and p,LSR are straight traffic flows from direction χ are stopped. They are
generated by tdi and when the accident is cleared, these tokens
controlled by GSχ and GRχ that should be off. There are two
are removed by tci. Also note that several paths may be conditions for this emergency strategy:
blocked according to the location and range of the accident,
and thus more than one place in Fig. 13 can obtain a token.  If both pχ4 and pχ5 contain a token, then both tχ,S2 and
Here we adopt Algorithm 2 to decide the arcs to be added to tχ,R2 are enabled and fire immediately by removing
connect p,S, p,R, p,L, and p,LSR with transitions tdi and tci. If a tokens from them and filling a token into pχ8 and pχ,R1,
token needs to be deposited in p{pχ,S, pχ,R, pχ,L, pχ,LSR}, two respectively. Hence, GSχ and GRχ are turned off.
arcs (tdi, p) and (tci, p) are drawn. Thus, dynamic PN models of  If pχ4 and pχ5 contain no token, tχ5 and tχ6 are not
critical crossing sections are constructed as shown in Fig. 13. enabled because of the inhibitor arcs from pχ,S to tχ5
and from pχ,R to tχ6. When both pχ6 and pχ7 get a token,
We design emergency traffic light strategies at the tχ,S1 and tχ,R1 are enabled and fire, depositing a token
accidental intersection such that the traffic lights of the into pχ8 and pχ,R1, respectively. Hence, GSχ and GRχ
corresponding blocked directions should be kept in red till the remain off.
accident is cleared while other lights are under normal If pχ,R1 contains a token, in order to continue the phase
operations. transitions of the traffic-light system, a token needs to be filled
B. Emergency traffic light strategies for an accidental in pχ9 by firing tχ,R3, which will immediately lead to the next
intersection state of the traffic light GLχ, i.e., pχ3 gets a token after the firing
The emergency traffic light strategies are designed based on of tχ2. But at this time, GSχ and GRχ are opened which lead to a
the PN model in Fig. 14, where χ{n, e, s, w}, p, p{pi1-pi8}, conflict between the left-turning traffic from χ and straight and
right-turning traffic from χ.  In order to resolve it problem, we
and the dotted double sided arrow denoted by f1=(pa, tχ1)
add two arcs (pχ9  ). In order to make the
 , tχ,R3) and (tχ,R3, pχ9
represent an arrow satisfying that if it is from tχ1 to p  , an inhibitor arc (pχ,R1, tχ2
 ) is
firing of tχ,R3 before that of tχ2
(respectively, from p to tχ1), then the arrow f2=(pa, tχ,LSR) is
added.
from tχ,LSR to p (respectively, from p to tχ,LSR). The arrow
directions related to p have similar property. We denote χ as 3) If there exists a token in place pχ,L, the left-turning flow
the reverse direction of χ, i.e., if χ is the direction n from direction χ is stopped. Thus traffic light GLχ should be off.
(respectively, e, s, and w), χ represents its reverse direction s There are two conditions for this emergency strategy:
(respectively, w, n, and e). Now we discuss the four different  If pχ3 contains a token, then tχ,L2 is enabled and fires by
emergency traffic light strategies as follows: removing a token from pχ3, depositing a token into pχ2.
1) If there exists a token in place pχ,S, the straight traffic flow Thus GLχ is turned off. In this situation, both tχ2 and tχ3
from direction χ should be forbidden. It is controlled by the do not fire. In Fig. 11, pCi,y_on_off and pCi,z_on_off cannot
traffic light GSχ that should be off. There are two conditions for obtain a token, where if χ{n, e, s, w}, y{7, 5, 3, 1},
this emergency strategy: and z{8, 6, 4, 2}, respectively. The corresponding
loop detectors should be turned off when tχ,L1 fires, and
 If pχ4 contains a token, then tχ,S2 is enabled and fires
thus we add two arcs f1'=(tχ,L1, pCi,z_on_off) and f2'=(tχ,L1,
immediately by removing the token from pχ4 and
pCi,z_on_off).
generating a token into pχ8. Hence, GSχ is turned off.

tχ,S1 pχ,R1 pχ,R1


tχ,LSR pα pχ,S tχ,S2 pχ,R1

pχ,LSR pχ6 tχ5 pχ4 tχ7 pχ8 pχ,L tχχ,R

tχ1 tχ2
pχ7 tχ6 pχ5 tχ8 pχ9 pχ9 pχ9
tχ4 tχ3
pχ1 pχ2 pχ3 tχ,L1 Fig. 15. A deadlock recovery model.
pχ,R tχ,R2
pβ tχ,R1 pχ,R1 tχ,R3 pχ9 pCi,y_on_off tML1
tχ,L2
pCi,z_on_off
tn,LSR te,LSR
Fig. 14. Emergency traffic light strategy model at Ii.

 If pχ3 contains no token, tχ2 is not enabled because of pML


ps1 pe1 pn1 pw1 ps,LSR pe,LSR pn,LSR pw,LSR
the inhibitor arc from pχ,L to it. When both pχ8 and pχ9
get a token, tχ,L1 is enabled and fires, depositing a token tw,LSR ts,LSR
into pχ2. Thus GLχ remains off. In this situation, tχ3 does
not fire. When tχ,L2 fires, the corresponding loop
detectors should be turned off by adding an arc tML2
f3'=(tχ,L2, pCi,z_on_off).
In the operation of the traffic-light control system in Fig. 7, Fig. 16. A livelock prevention model.
A token is deposited into or removed from p at direction χ
during a traffic light transition cycle. When GLχ is changed to token, that is the state of the signal is M0=(Rn, Re, Rs, Rw). In
the traffic control model, there will be a firing transition circle
Yχ and tχ3 fires, a token is deposited into or removed from p.
However, in the emergency one, tχ3 does not fire. In order to =(tn,LSR, ts,LSR),( te,LSR, tw,LSR) such that M0[M0. The sequence
of these transitions fire infinitely, thereby forming a livelock
preserve the token in p, we add dotted double sided arrows
which has no benefit to traffic flows. In order to prevent it, we
f3=(p, tχ,L1) and f4=(p, tχ,L2). design the model as shown in Fig. 16. If all pχ1 and pχ,LSR
4) If there exists a token in place pχ,LSR, all traffic flows from contain tokens, transition tML1 fire, generating a token in pML.
direction χ are forbidden. Consequently, lights GSχ, GRχ, and Because of the inhibitor arcs from pML, transitions tn,LSR, ts,LSR,
GLχ should be off. There are two conditions for this emergency te,LSR, and tw,LSR cannot fire such that  is prevented. When the
strategy: accident is cleared, tokens in pχ,LSR are removed and transition
tML2 fires by consuming the token in pML, and the traffic light
 If pχ1 contains a token, because of the inhibitor arc control system returns to its normal operations.
from pχ,LSR to tχ1, tχ1 is not enabled. At this condition,
tχ,LSR fires and a token is deposited into or removed D. Warning light strategies
from each of p and p. Note that both p and p have a In this section, we propose warning light strategies by using
token or neither of them has one. Thus Rχ is kept on. DSPNs. Let Ii be an accidental intersection, Ii' an (supposed
 If pχ1 contains no token, all green lights are turned off western) up-stream neighboring intersection of Ii, and Ii1'-Ii3'
due to the tokens in pχ,S, pχ,R and pχ,L. If pχ2 has one, tχ4 the (northern, western, and southern) up-stream neighboring
fires to deposit a token into pχ1. Thus Rχ is turned on. intersections of Ii' except Ii. Road rii is at the χ direction of Ii,
Note that, in this emergency operation, both tχ1 and tχ3 do not and traffic flows from roads ri1i-ri3i to enter road rii turn left,
fire. The dotted double sided arrows f2 and f5=(p, tχ,LSR) drive straight and turn right, respectively, at Ii'. Strategies of
preserve the token in p and p. warning lights at rii are shown in Fig. 17. A warning light wδi,i,
C. Deadlock recovery and livelock prevention δ{L, S, R} turns on by depositing a token in pδi,i_on if there is
a token in pχ,δ. It turns off if there is no token in pχ,δ by
Is the emergency traffic light strategy model in Fig. 14
transferring the token from pδi,i_on to pδi,i_off.
deadlock-free? This subsection answers this question and
presents a control strategy to address a deadlock issue. At this situation, the emergency strategies of warning lights
at ri1i-ri3i, as shown in Fig. 18, are adopted to decrease traffic
There is a deadlock if GLχ, GSχ, GLχ, and GSχ need to be off.
 obtain a token, and a
At this situation, both pχ,R1 and pχ,R1 flow to enter rii. In the model, if there is a token in pχ,δ, tχ,δ fires
circular wait happens that tχ,R3 waits for a token in pχ9  to be and deposits a token in pi,χ. It describes that traffic flow in the
 while tχ,R3
generated by firing tχ,R3  waits for a token in pχ9 which road at the χ direction of Ii is interrupted by an accident. Then
is generated by firing tχ,R3. This circular wait generates a tLi1i_on, tSi2i_on, and tRi3i_on are enabled and fire by depositing a
deadlock. To resolve it, we design a deadlock recovery model token in pLi1i_on, pSi2i_on, and pRi3i_on, respectively. Thus,
in Fig. 15. If both of pχ,R1 and pχ,R1  fires,
 obtain a token, tχχ,R warning lights wLi1i, wSi2i, and wRi3i at roads ri1i-ri3i,
generating a token in to each of pχ9 and pχ9  . Note that this respectively, are on. If there is a token in pχ,δ, the accident is
decreases the whole traffic light phase cycle duration of the detected to be cleared. ti,χ fires and removes the token in pi,χ.
control system, and the saved time is used for other phases. Then tokens in pLi1i_on, pSi2i_on, and pRi3i_on are transferred into
pLi1i_off, pSi2i_off, and pRi3i_off by firing tLi1i_off, tSi2i_off and
In the special situation that all the traffic flow movements
tRi3i_off, respectively. Thus, wLi1i, wSi2i, and wRi3i are turned
need to be forbidden, each of ps1, pe1, pn1, and pw1 contains a
off.
10

pχ,L pχ,S pχ,R


or pχ,R, and there is no token in pχ,LSR. Then pi,χ receives a token.
pcap_ii describes the number of vehicles in rii that have been
counted by loop detectors Ci,j and Ci,j installed at the entrance
pLi,i_off pSi,i_off pRi,i_off
and exit of rii, respectively. A directed arc is drawn from pcap_ii
to temm2 with a weight . If the number of vehicles in rii
tLi,i_on tLi,i_off tSi,i_on tSi,i_off tRi,i_on tRi,i_off reaches , i.e.,  tokens are in pcap_ii, temm2 is enabled and fires
pLi,i_on pSi,i_on pRi,i_on such that a token is transferred from pnor into pemm indicating
that the normal strategy is changed into an emergency one. The
Fig. 17. Models of strategies of warning lights at rii.
strategy is suspended if: 1) The accident is cleared, i.e., there is
no token in pχ,L, pχ,S, and pχ,R such that tnor1 fires transferring the
ti,χ token from pemm into pnor; and 2) there is no vehicles in road rii,
i.e., there is no token in pcap_ii, and then tnor2 fires to transfer the
pχ,L pχ,S pχ,R token from pemm into pnor. At the second condition, the
emergency strategies are executed if the number of vehicles in
tχ,L tχ,S tχ,R rii reaches  again.

pi,χ
The emergency traffic light strategy is presented in Fig. 20.
Similar to the control strategy at the accidental intersection,
traffic lights GLχ1, GSχ2, and GRχ3 need to be kept off while
other lights are controlled under their normal operations, where
pLi1,i_off pSi2,i_off pRi3,i_off
χ1-χ3 are the directions of road ri1i-ri3i. Thus a token is
deposited in pχ1,L', pχ2,S', and pχ3,R' as shown in Fig. 21.
tLi1,i_on tLi1,i_off tSi2,i_on tSi2,i_off tRi3,i_on tRi3,i_off
Now, let’s give a method to compute . First, rii is divided
pLi1,i_on pSi2,i_on pRi3,i_on into two distinct zones: a downstream queue storage area (DA)
and an up-stream “reservoir” (UR) as shown in Fig. 1. When
Fig. 18. Models of strategies of warning lights at ri1i-ri3i. UR is full of vehicles, emergency traffic light control
E. Emergency strategies for up-stream neighboring strategies at Ii' are adopted. First, we define the following
intersections notation to describe the traffic conditions:
In this section, we adopt the assumptions and symbols in TABLE IV. MEANING OF PLACES
the former section. We design traffic light emergency
P Meaning
strategies for the up-stream neighboring intersections of Ii,
pcap_ii, The number of vehicles detected in rii
i.e., Ii'. There are two cases at which the emergency strategies pi,χ The neighboring eastbound intersection has an accident blocking
should be adopted. the traffic flow from rii
pnor Normal traffic light strategy is in use
1) All traffic flows in rii are stopped at Ii by its emergency pemm Emergency traffic light strategy is in use
strategies, i.e., there is a token in pχ,LSR.
TABLE V. MEANING OF TRANSITIONS
2) Some of traffic flows in rii are stopped at Ii and vehicle
count in road rii sensed by loop detectors reaches a maximal T Meaning
number . temm1 Changing traffic light control from a normal strategy to an
emergency one when all flows in rii are stopped at Ii
Note that at Case 1), any vehicles to enter rii cannot pass temm2 Changing traffic light control from a normal strategy to an
emergency one when some flows in rii are stopped at Ii and
through Ii because of the on-going red traffic light signal.
vehicle count in rii reaches 
Thus, emergency traffic light strategies are adopted tnor1 and Changing traffic light control back to a normal one when the
immediately to stop the traffic flowing into rii at Ii'. In Case tnor2 accident is cleared
2, if road rii is occupied with enough vehicles, the crossing tnor3 Changing traffic light control back to a normal one when there
is no vehicle in rii
sections of Ii', e.g., the blue heavy-shaded areas (called critical
Others No meaning but for a control purpose
areas) in Fig. 1 may be blocked. Thus, if vehicle count in rii
reaches , emergency strategies are also needed. tCi,j_r
pcap_i'i
Now we propose emergency traffic light strategies by using tCi' ,j'_r  
DSPNs in Figs. 19-21. The meaning of their transitions and pnor
ti,χ
places is shown in Tables IV and V where all transitions are pχ,LSR
immediate ones. pχ,L pχ,S pχ,R
As shown in Fig. 19, if there exists a token in pχ,LSR, then temm2 temm1 tnor1 tnor2 tnor3
temm1 is enabled and fires. As a result, a token is transferred tχ,L tχ,S tχ,R
from pnor into pemm indicating that a normal strategy is changed
pemm
to an emergency one. The strategy is suspended only if the pi,χ
accident is cleared, i.e., there is no token in pχ,LSR such that tnor1
fires by transferring the token from pemm into pnor. Fig. 19. Tranformation between the normal strategy and emmergency ones.

If some of traffic flows in rii are stopped and others are


permitted to go through Ii, at least one token exists in pχ,L, pχ,S
11

tχ,S1 reaches DA. According to these assumptions, we can obtain the


pχ,S tχ,S2 following formulae:
pχ6 tχ5 pχ4 tχ7 pχ8 pχ,L at2/2=Lh'-Lh (2)
tχ1 tχ2 LDA/Lh=/2 (3)
pχ7 tχ6 pχ5 tχ8 pχ9
tχ4 tχ3 t/2=LUR/v (4)
pχ1 pχ2 pχ3 pχ,R tχ,L1
tχ,R2 LRD= LDA+LUR (5)
tχ,R1 where t denotes the mean time interval of the start-driving of a
pβ pCi,y_on_off
queuing vehicle and its successive one. Then we can obtain the
tχ,L2
pCi,z_on_off maximal number of vehicles that rii can hold as (1).

Fig. 20. Emergency traffic light strategy model at Ii. V. PROPERTY ANALYSIS
In this section we discuss the properties of the proposed
pemm DSPN models. Note that, all DSPNs except those in Figs. 10(a)
and 12 contain no exponential transitions.
tem1 tem2 tem3 A. Conflict resolution
pχ1,L pχ2,S pχ3,R Conflicts appear in the DSPNs in Figs. 18, 19 and 21. In
Figs. 18 and 19, if at least two of places pχ,L, pχ,S, and pχ,R
tno1 tno2 tno3 contain a token, a conflict for transitions tχ,L, tχ,S, and tχ,R arises,
i.e., only one token can be deposited in pi,χ, and the firing of
pnor one transition prevent that of another. In order to resolve the
conflict, we define that firing priorities of tχ,L, tχ,S, and tχ,R
Fig. 21. Emergency traffic light strategy control model at Ii. decrease, for example, if tχ,L and tχ,S are enabled, tχ,L fires
because of its highest firing priority. In fact, the firing sequence
 LRD, LUR, LDA: the length of road rii, sections UR, and will not affect the resultant state of the model, i.e., pi,χ receives
DA, respectively. a token. Another conflict appears among tLi1i_on, tSi2i_on, and
tRi3i_on in Fig. 18. We define their priorities in a decreasing
 Lh: the mean “headway” (distance between the fronts
of successive vehicles in the same lane of traffic) of order. Because the transitions are all immediate ones, pLi1i_on,
two queuing vehicles. pSi2i_on, and pRi3i_on receive a token in no time as a result.
Similarly, we give priorities to tem1-tem3 and tno1-tno3 to resolve
 Lh: the least mean “headway” of two successive the corresponding conflicts.
queuing vehicles when the following one starts to
move from the queuing status. B. Reachability analysis
 a: the mean acceleration value of vehicles. We verify the properties and correctness of the DSPNs
through reachability analysis. The reachability graph is used
 v: the maximal speed of the vehicle. for reachability analysis. It can be constructed in a manual
We do our computation based on the following assumptions: way. In this paper we adopt a construction method that each
arc corresponds to a sequence of transitions containing only
 The values of the above notations are known as one timed transition (deterministic or stochastic one). Besides,
constants except LUR and LDA. we put them in parentheses and then attached to the
 The two intersections are installed with same signal corresponding arc if more than one transition fires at the same
phases, as depicted in Table I. time. Obviously, this construction method can greatly reduce
the size of the graph. The reachability analysis can also be
 Normally, after phases c and d in each cycle, there is done through a tool such as the TimeNet [37].
no vehicle remaining in DA.
In the proposed models in this paper, transitions associated
Theorem 1: If the vehicle queue in DA is not full yet to force with time are categorized into five sets A1-A5 as shown in
the stop of a vehicle in UR, we have the maximal number of Table VI: deterministic transitions in A1 model the time
vehicles that rii can hold as follows: duration of traffic signals; the exponential transition in A2
  describes the occurrence of an accident; the deterministic
  transitions in A3 represents the disposal of the accident;
 2 LRD 
    (1) exponential transitions in A4 depict the turning rate of vehicles
 2( Lh  Lh ) 
 v  Lh at Ii; and the transition in A5 shows the vehicle’s driving time
 a 
from Ii to Ii. Our purpose is to verify the validity of the
where x is a floor function, representing the integer equal to or control logic of the designed strategies, and thus we will not
less than x . pay more attention to the traffic flow model, and verify the
properties of those models by removing the places, transitions
Proof: The maximal number of vehicles that rii can hold such and arcs that are related to the no-safe traffic flow model in
that Ii' cannot be blocked is to be computed in such way that Fig. 12. Thus we will not consider transitions in A4 and A5.
the last vehicle in DA starts to move while the first one in UR Those deterministic transitions in A1 and A3 can be generated
and analyzed through the constructed graph like Fig. 8. The
12
exponential transition increases the reachability analysis real-time decision support system for roadway network incident
response logistics,” Transp. Res. C, vol. 10, no. 1, pp. 1-18, Feb. 2002.
complexity. Fortunately, there exists only one exponential
[8] R. N. Mussa and J. E. Upchurch, “Monitoring urban freeway incidents
transition in our cases, and we let it fire at a finite number of by wireless communications,” Transp. Res. Rec., vol. 2001, no. 1748,
time intervals during the construction of the reachability graph. pp. 153-160, Jan. 2007.
Besides, the control logic validity can be verified without a [9] M. Papageorgiou, C. Diakaki, V. Dinopoulou, A. Kotsialos and Y. Wang,
simulation method. “Review of road traffic control strategies,” Proc. IEEE, vol. 91, no. 12,
pp. 2043-2067, Dec. 2003.
As a result, we can construct the reachability graph of the [10] S. F. Cheng, M. A. Epelman, and R. L. Smith, “CoSIGN: A parallel
DSPN model in Fig. 11, and the graph of a composition model algorithm for coordinated traffic signal control,” IEEE Trans. Intell.
of the ones in Fig. 10(a) and Figs. 13-21 by removing place Transp. Syst., vol. 7, no. 4, pp. 551-564, Dec. 2006.
pcap_ii, transitions tCi,j_r and tCi,j_r and their related arcs in Fig. [11] D. I. Robertson and R. D. Bretherton, “Optimizing networks of traffic
signals in real-time - the SCOOT method,” IEEE Trans. Veh. Technol.,
19 that are related to the no-safe traffic flow model in Fig. 12. vol. 40, pp. 11-15, Feb. 1991.
We will not present them here due to space limitation. Their [12] P. Lowrie, “SCATS: A traffic responsive method for controlling urban
analyses suggest that the DSPN models are live and reversible. traffic,” Tech. rep., Roads and Traffic Authority, NSW, Australia,
Traffic Control Section, P. O. Box 693, Darlinghurst, NSW 2010,
TABLE VI. TRANSITIONS ASSOCIATED WITH TIME Australia, 1990.
[13] Y. S. Huang, Y. S. Weng and M. C. Zhou, “Critical scenarios and their
Set T Type identification in parallel railroad level crossing traffic emergency
A1 tχ1, tχ3, tχ4, tχ7 and tχ8 in Fig. 7 Td systems,” IEEE Trans. Intell. Transp. Syst., vol. 11 , no. 4, pp. 968-977,
A2 thi in Fig. 10(a) Te Dec. 2010.
A3 tci in Fig. 10(a) Td [14] Y. S. Weng, Y. S. Huang, Y. L. Pan and M. Jeng, “Design of Traffic
A4 ti,νδ1 and ti,νδ2 in Fig. 12 Te Safety Control Systems for Railroads and Roadways Using Timed Petri
A5 ti,i in Fig. 12 Td Nets,” Asian J. Control, vol.17, no.2 Mar. 2015.
[15] Y. S. Huang, Y. S. Weng and M. C. Zhou, “Design of traffic safety
VI. CONCLUSIONS control systems for emergency vehicle preemption using timed Petri
nets,” IEEE Trans. Intell. Transp. Syst., to be published.
This work uses DSPNs to design a traffic-light control [16] Z. W. Li, N. Q. Wu, and M. C. Zhou, “Deadlock control of automated
system at an intersection dealing with accidents. Normal and manufacturing systems based on Petri Nets—a literature review,” IEEE
emergency traffic light strategies are designed for both the Trans. Syst., Man, Cybern. C, Appl. Rev., vol.42, no.4, pp.437-462, July
2012.
accidental intersection and its up-stream neighboring ones.
[17] M. C. Zhou and F. DiCesare, Petri Net Synthesis for Discrete Event
Emergency warning light strategies are presented. The Control of Manufacturing Systems. Kluwer, London, UK, 1993.
PN-based control logics are proved to be valid. Comparing [18] K. M. Ng, M. B. I. Reaz and M. A. M. Ali, “A review on the
with [13] and [14], apart from considering the safety of a applications of Petri nets in modeling, analysis and control of urban
different system, our contributions mainly are that 1) We traffics,” IEEE Trans. Intell. Transp. Syst., vol. 14, no. 2, Jun. 2013.
adopt the concept of a crossing section to construct a [19] G. F. List and M. Cetin, “Modeling traffic signal control using Petri
nets,” IEEE Trans. Intell. Transp. Syst., vol.5, no. 3, pp. 177-187, 2004.
PN-based dynamic model indicating the blockage of traffic
[20] Y. S. Huang and T. H. Chung, “Modeling and analysis of urban traffic
flows; 2) we control the traffic lights from four directions, lights control systems using timed CP-nets,” J. Inf. Sci. Eng., vol. 24,
respectively; and 3) the traffic lights cannot only be controlled no. 3, pp. 875-890, 2008.
but also in turn control the other facilities including loop [21] Y. S. Huang and T. H. Chung, “Modeling and analysis urban traffic
detectors and warning lights. Future work will construct a light control systems,” J. Chin. Insti. Eng., vol. 32, pp. 85-95, 2009.
complete traffic flow model. Based on the model, some [22] Y. S. Huang, Y. S. Weng, and M. C. Zhou, “Modular design of urban
simulations can be done to show the advantages of the traffic-light control systems based on synchronized timed Petri nets,”
IEEE Trans. Intell. Transp. Syst., vol. 15, no. 2, pp. 530-539, Apr.
proposed system in traffic accident management and flow 2014.
congestion prevention comparing with the traditional [23] H. A. P. Blom, J. Krystul, G. J. Bakker, M. B. Klompstra, and B. Klein
self-evolution case. To our knowledge, this is the first work to Obbink, “Free flight collision risk estimation by sequential Monte
propose an emergency system for intersections facing Carlo simulation,” in Stochastic Hybrid Systems; Recent Developments
and Research Trends, C. G. Cassandras and J. Lygeros, Eds. New York:
accidents based on PNs. It can potentially be used to improve Taylor & Francis, 2007, ch. 10.
the state of the art in real-time traffic accident management at [24] M. Ghazel, “Using stochastic Petri nets for level-crossing collision risk
urban road intersections. assessment,” IEEE Trans. Intell. Transp. Syst., vol. 10, no. 4, pp.
668-677, 2009.
REFERENCES [25] P. Lino, G. Maione, Applying a Discrete Event System Approach to
Problems of Collective Motion in Emergency Situations, Pedestrian and
[1] P. Pyykonen, M. Molinier, and G. A. Klunder, “Traffic monitoring and Evacuation Dynamics 2008, Springer, Heidelberg, 2010, pp. 465-477.
modeling for intersection safety,” in Proc. IEEE ICICCP’10, 2010, pp.
401-408. [26] G. Maione and M. Ottomanelli, “A Petri net model for simulation of
container terminal operations,” in Advanced OR and AI Methods in
[2] K. Ozbay and P. Kachroo, Incident management in intelligent Transportation, A. Jaszkiewicz, Ed. et al. Poznan, Poland: House of
transportation systems. Norwood, MA: Artech House, 1999. Poznan Uni. Technol., 2005, pp. 373-378.
[3] Traffic incident management handbook, Washington, DC: Office Travel [27] S. Wang, M. C. Zhou, Z. Li, and C. Wang, “A new modified
Management, Fed. Highway Admin., 2000. reachability tree approach and its applications to unbounded Petri nets,”
[4] B. M. Williams and A. Guin, “Traffic management center use of IEEE Trans. Syst., Man, Cybern., Syst., vol. 43, no. 4, pp.932-940, July
incident detection algorithms: findings of a nationwide Survey,” IEEE 2013.
Trans. Intell. Transp. Syst., vol. 8, no. 2, pp. 351-358, Jun. 2007. [28] W. T. Ma, D. Xing, A. McKee, R. Bajwa, C. Flores, B. Fuller, and
[5] S. Y. Chen, W. Wang, and H. V. Zuylen, “Construct support vector Pravin Varaiya, “A wireless accelerometer-based automatic vehicle
machine ensemble to detect traffic incident,” Expert Syst. Appl., vol. 36, classification prototype system,” IEEE Trans. Intell. Transp. Syst., vol.
no. 8, pp. 10976-10986, Oct. 2009. 15, no. 1, pp. 104-111, Feb. 2014.
[6] B. A. Coifman and R. Mallika, “Distributed surveillance on freeways [29] Y. K. Ki and D. Y. Lee, “A traffic accident recording and reporting
emphasizing incident detection and verification,” Transp. Res. A, vol. model at intersections,” IEEE Trans. Intell. Transp. Syst., vol. 8, no. 2,
41, no. 8, pp. 750-767, Oct. 2007. pp. 188-194, Jun. 2007.
[7] K. G. Zografos, K. N. Androutsopoulos, and G. M. Vasilakis, “A [30] W. Hu, X. Xiao, D. Xie, T. Tan, and S. Maybank, “Traffic accident
13
prediction using 3-D model-based vehicle tracking,” IEEE Trans. Veh.
Technol., vol. 53, no. 3, pp. 677-694, May 2004.
[31] A. Di Febbraro, D. Giglio, and N. Sacco, “On using Petri nets for
representing and controlling signalized urban areas: new model and
results,” in Proc. IEEE ITSC’09, 2009, pp.771-778.
[32] A. Di Febbraro and D. Giglio, “On representing signalized urban areas
by means of deterministic-timed Petri nets,” in Proc. IEEE ITSC’04,
2004, pp. 372-377.
[33] A. Di Febbraro, D. Giglio, and N. Sacco, “On applying Petri nets to
determine optimal offsets for coordinated traffic light timings,” in Proc.
IEEE ITSC’02, 2002, pp. 773-778.
[34] A. Di Febbraro, D. Giglio, and N. Sacco, “Modular representation of
urban traffic systems based on hybrid petri nets,” in Proc. IEEE
ITSC’01, 2001, pp. 867-872.
[35] G. Ciardo and C. Lindemann, “Analysis of deterministic and stochastic
Petri nets,” in Proc. IEEE 5th Int. Workshop, Oct. 1993, pp. 160-169.
[36] M. A. Marsan and G. Chiola, “On Petri nets with deterministic and
exponentially distributed firing times,” in Advances in Petri Nets 1987.
Berlin, Germany: Springer-Verlag, 1987, pp. 146-161.
[37] A. Zimmermann, M. Knoke, A. Huck, and G. Hommel, “Towards
version 4.0 of TimeNET,” in Proc. 13th GI/ITG Conf. Meas., Modeling
Eval. Comput. Commun. Syst., 2006, pp. 477-480.

You might also like