You are on page 1of 4

Second International Conference on Industrial and Information Systems, ICIIS 2007, 8 – 11 August 2007, Sri Lanka

Fuzzy Logic Based Traffic Light Controller


Ms. Girija H Kulkarni1, Ms. Poorva G Waingankar2
1
Unique Academy, Nashik, India
2
Department of El&Tc, Thadomal Sahani College of Engg, Mumbai, India

Abstract - Traffic congestion is a major concern for many data and implement these patterns depending upon the time
cities throughout the world. Developing a sophisticated traffic of the day.
monitoring and control system would result in an effective The vehicle-actuated controller operates based on the
solution to this problem. In a conventional traffic light traffic demand as registered by the actuation of vehicle.
controller, the traffic lights change at constant cycle time.
Here the length of the green phase is adjusted between
Hence it does not provide an optimal solution. Many traffic
light controllers implemented in current practice, are based minimum and maximum length depending upon the traffic
on the ‘time-of-the-day’ scheme, which use a limited number flow. Minimum green time is the time for one vehicle to
of predetermined traffic light patterns and implement these move through the intersection from the point of detection.
patterns depending upon the time of the day. These The time for the phase to remain green is limited by
automated systems do not provide an optimal control for maximum green time.
fluctuating traffic volumes. Controlling the timing of a traffic signal indicates a
A traffic light controller based on fuzzy logic can be used for constant evaluation of the following:
optimum control of fluctuating traffic volumes such as over whether to (1) terminate the current phase and change to
saturated or unusual load conditions. The objective is to
the next most appropriate phase
improve the vehicular throughput and minimize delays. The
rules of fuzzy logic controller are formulated by following the or (2) continue the current phase.
same protocols that a human operator would use to control Thus the controller continuously or at regular intervals
the time intervals of the traffic light. The length of the current evaluates the status of each approach and takes the most
green phase is extended or terminated depending upon the appropriate decision.
‘arrival’ i.e. the number of vehicles approaching the green The process of controlling signal timings is difficult due to
phase and the ‘queue’ that corresponds to the number of the following reasons:
queuing vehicles in red phases. (a) The process must be repeated within a short time
A prototype system for controlling traffic at an intersection is interval.
designed using VB6 and Matlab tool. The traffic intersection
(b) As the precise prediction of traffic condition in
is simulated in VB6 and the data regarding the traffic
parameters is collected in VB6 environment. The decision on immediate future is not possible, the control
the duration of the extension is taken using the Matlab tool. action is based on optimizing the current status
This decision is based on the Arrival and Queue of vehicles, only. Thus the control action may not yield
which is imported in Matlab from VB6 environment. The optimal condition in long term.
time delay experienced by the vehicles using the fixed as well (c) The detectors cannot capture the details of the
as fuzzy traffic controller is then compared to observe the prevailing condition on the approach.
effectiveness of the fuzzy traffic controller. (d) Normally the optimization includes consideration
of several simultaneous criteria like minimization
Index Terms- Fuzzy Logic, Fuzzy Variables, Membership
of delays, queue lengths and percentage of
Functions and Fuzzy Rule Base.
stopped vehicles along with safety, which is an
important parameter.
I. INTRODUCTION
Hence in practice, traffic signal control should be based on
Traffic signals are common features of urban areas the tailor-made solutions and adjustments, which would be
throughout the world, controlling number of vehicles. made by the traffic planners.
Their main goals are improving the traffic safety at the A traffic light controller based on fuzzy logic can be used
intersection, maximizing the capacity at the intersection as an optimum controller for fluctuating traffic volumes.
and minimizing the delays. The objective is to improve the throughput of the traffic
Thus careful design of traffic signal control would result in and minimize delays.
increasing the efficiency of the road network to yield Fuzzy logic controller allows linguistic and inexact traffic
economical and environmental benefits. In a conventional data to be manipulated in controlling the signal timings.
traffic light controller, the traffic lights change at constant The basic of fuzzy traffic signal controller is ‘to model
cycle time. The other type of traffic light controllers used control strategy based on human expert knowledge rather
in current practice, are based on the ‘time-of-the day’ than the modeling of the process itself’ [1].
scheme. These controllers use a limited number of Pappis and Mamdani [2] simulated an isolated signalized
predetermined traffic light patterns based on the historical one-way intersection with no turning movements using

1-4244-1152-1/07/$25.00 ©2007 IEEE.


107
Second International Conference on Industrial and Information Systems, ICIIS 2007, 8 – 11 August 2007, Sri Lanka

fuzzy logic controller. A set of linguistic control statements A fuzzy logic controller is designed for an isolated 4-lane
was formulated using the graded concept of fuzzy logic traffic intersection as shown in the figure1.
theory as applied to the traffic signal control. The
intervention of the controller would take place every 10 s
during each phase’s effective green period. At each
intervention, the length of the extension of the effective E
Detectors on upstream-
green time for the phase having the right of way was line
decided. In this paper, the fuzzy rules were developed for
evaluating the suitability of extending a current green
phase by different time durations based on a computed Detectors on s top-
line
measure of the ‘degree of confidence’. These extensions
were compared and the one providing the highest degree of
confidence was selected.
Trabia, Kaseko, and Ande [3] discussed a fuzzy logic S
N
controller for an isolated 4-approach intersection with
through and left turning movements. The controller was
used to measure approach flows and estimate approach
queues at regular intervals. Based on this, the current
signal phase was terminated or extended by the 2-stage
fuzzy logic controller. During the first stage, the controller
estimated the traffic intensity on each approach. This
intensity information was then used in the second stage to
determine whether to extend (E) or terminate (T) the W
current phase. Figure 1: An intersection with detector configuration
This paper, deals with an implementation of fuzzy logic
controller for an isolated intersection, and the same is III. SIMULATION OF THE TRAFFIC AT AN ISOLATED
simulated using VB6. The fuzzy controller of Matlab tool INTERSECTION
is used for the purpose of vehicular traffic control.
The paper is organized as follows: A signalised intersection with 4 approaches and typical
Section II deals with the basics of fuzzy logic implemented vehicle detectors is considered as shown in fig 1. Vehicle
for traffic signal control. The rule base and membership detectors are installed on ‘upstream-line’ and ‘stop-line’.
functions for the traffic signal control at the intersection The number of approaching vehicles for each approach
are discussed in section III and the results are shown in during given time interval can be estimated using the
section IV. Section V describes the future work. detectors. Fuzzy variables considered are arriving vehicles
(A), queuing vehicles (Q) and extension (EXT).
II. FUZZY TRAFFIC SIGNAL CONTROL The membership functions for the arriving vehicles (A) at
the approach having green phase are few = -4 to 4,
In this paper, the implementation of fuzzy logic controller small = 0 to 8, medium = 4 to 12 and many = 8 to 16.
for the traffic flow control is discussed. Fuzzy logic The membership functions for the queuing vehicles (Q) at
technology has the capability of mimicking the human the next approach having red phase are few = -4 to 4,
intelligence for controlling the traffic flow. It allows the small = 0 to 8, medium = 4 to 12 and many = 8 to 16.
implementation of real-life rules similar to the way in
which humans would think. The theory of fuzzy logic is
based on concepts graded to handle uncertainties and
imprecision in a particular domain of knowledge. The
graded concepts are useful since real situations in traffic
control are very often not deterministic and cannot be
described precisely.
Fuzzy logic allows linguistic and inexact data to be
manipulated as a useful tool in designing signal timings.
Also the linguistic control strategy that is decided by ‘if-
then-else’ statements can be converted into a control
algorithm using fuzzy logic. The design of a fuzzy signal
controller needs an expert knowledge and experience of
traffic control in formulating the linguistic protocol, which
generates the control input to the traffic signal control
system. Figure 2: Input Fuzzy Variable 1-Arrival

108
Second International Conference on Industrial and Information Systems, ICIIS 2007, 8 – 11 August 2007, Sri Lanka

Extension is zero.
Else if Arrival is small AND Queue is (medium OR many)
then Extension is zero.
Else if Arrival is medium AND Queue is (few OR small)
then Extension is short.
Else if Arrival is medium AND Queue is (medium OR
many) then Extension is zero.
Else if Arrival is many AND Queue is few then Extension
is medium.
Else if Arrival is many AND Queue is (small OR medium)
then Extension is short.
Else if Arrival is few AND Queue is many then Extension
is zero.

After the second extension, no extension shall be given to


the current green phase. After the second extension, the
most suitable next green phase is selected using phase
sequencing rule-base. The main aim is to maximize the
Figure 3: Input Fuzzy Variable 2-Queue
capacity of the signalized intersection by minimizing the
inter green times.
Based on the input fuzzy parameters the duration of the
Weight, W (A) of an approach is derived from the number
output variable ‘Extension’ is determined. The
of queuing vehicles waiting for the green signal in each red
membership functions for the output fuzzy variable
phase. Linguistic labels for W (A) are zero (Z) = -4 to 4,
extension (EXT) are: zero = 0 to 5 sec, short = 5 to 10 sec,
low (L) = 0 to 8, medium (M) = 4 to 12 and high (H) = 8 to
medium = 10 to 15 sec and long = 15 to 20 sec. Following
16.
fuzzy rule-base is proposed for the extension or
The rules are formulated to give priority to that approach
termination of current green phase.
with the highest demand for green time.
The fuzzy logic controller determines whether to extend or
It is assumed that initially the approach ‘N’ is given the
terminate the current green phase after a minimum green
‘right of the way’ i.e. green signal is given to the vehicles
time has been elapsed. If the green time is extended, the
traveling towards ‘north’.
fuzzy logic controller will determine whether to extend the
W(E), W(W), W(S) and W(N) denote the weights
green after the time interval ∆t. In this paper, the time associated with ‘east’, ‘west’, ‘south’ and ‘north’
interval ∆t is taken as 5 sec. approaches respectively.
After the extensions, the next approach, which avails the
a) Fuzzy Rule Base green phase, is given by following fuzzy rule-base.
After a minimum green (5 s) If W (W) is high then next green phase is W
If Arrival is few AND Queue is (few OR small OR Else if W (W) is medium and W (S) and W (E) is low then
medium OR many) then Extension is zero. next phase is W
Else if Arrival is small AND Queue is (few OR small) then Else if W (W) and W (S) and W (E) is low then next phase
Extension is short. is W
Else if Arrival is small AND Queue is (medium OR many) Else if W (W) is less than high and W(S) is high and W (E)
then Extension is zero. is any then next phase is S
Else if Arrival is medium AND Queue is (few OR small) Else if W (W) is low and W (S) is medium and W(E) is
then Extension is medium. less than high then next phase is S
Else if Arrival is medium AND Queue is (medium OR Else if W (W) is less than high and W (S) is less than high
many) then Extension is short. and W (E) is high then next phase is E
Else if Arrival is many AND Queue is few then Extension Else if W (W) and W (S) is low and W (E) is medium then
is long. next phase is E.
Else if Arrival is many AND Queue is (small OR medium)
then Extension is medium. IV. RESULTS
Else if Arrival is few AND Queue is many then Extension
is short. The above two algorithms of fuzzy rule base are
implemented using MATLAB tool. An isolated Traffic
After the first extension i.e. (ext1 + min. green of 5 s) Intersection is simulated in Visual Basic 6 environment.
If Arrival is few AND Queue is (few OR small OR Sample screen shot for the same is as attached herewith.
medium OR many) then Extension is zero.
Else if Arrival is small AND Queue is (few OR small) then

109
Second International Conference on Industrial and Information Systems, ICIIS 2007, 8 – 11 August 2007, Sri Lanka

[3] Trabia M.B., M.S. Kaseko, and M. Ande., “A two-stage fuzzy logic
controller for traffic signals”, Transportation Research Part C 7(1999),
pp 353 - 367.

[4] Jarkko Niittymäki, “General Fuzzy Rule Base for Isolated Traffic
Signal Control – Rule Formulation”, Transportation Planning and
Technol, Vol.24, pp.227 – 247.

[5] Jarkko Niittymäki, Matti Pursula, “Signal control using fuzzy logic”,
Fuzzy Sets and Systems 116 (2000), pp.11 – 22.

[6] Tan Kok Khiang, Marzuki Khalid and Rubiyah Yusof, “Intelligent
Traffic Lights Control by fuzzy logic”, Center for Artificial
Intelligence and Robotics, Universiti Teknologi Malaysia,
[7] Michael McKelvy, “MCSD: Visual Basic ®6 Desktop Applications
Study Guide”, BPB Publications, New Delhi

[8] Julia Case Bradley and Anita Millspaugh, “Programming in Visual


Basic 6.0”, Tata McGraw-Hill Publishing Co. Ltd., New Delhi

[9] Stephen J. Chapman, “MATLAB Programming for Engineers, 3e”,


Figure 4: Simulated Traffic Intersection
Thomson Engineering Publication

Following graph shows the comparison of the number of


waiting vehicles at an approach for both fuzzy as well as
fixed traffic controller. From the graph it is observed that
the fuzzy controller is more effective than fixed controller.

12
no . o f w aitin g veh icles

10

8
fixed
6
fuzzy
4

0
10

20

30

40

50

60

70

80

90
c
se
in
e
t im

Figure 5: Graph comparing performance of Fixed and Fuzzy Controller

V. FUTURE WORK

An expansion of Fuzzy Traffic Light Controller for the


arterials and the entire network can be planned. Also the
use of Fuzzy Traffic Light Controller can be used to
control pedestrian traffic control along with vehicular
control.

REFERENCES

[1] Jarkko Niittymäki, “Installation and experiences of field testing a


fuzzy signal controller”, European Journal of Operational Research
131 (2001), pp 273 - 281.

[2] C.P.Pappis and Ebrahim H. Mamdani, “A Fuzzy Logic Controller for


a Traffic junction”, IEEE Transactions on System, Man and
Cybernetics, Vol.SMC-7, No.10, October 1977, pp 707 - 717.

110

You might also like