0% found this document useful (0 votes)
27 views5 pages

Intelligent System For Automated Traffic Signal Control Using Fuzzy Mamdani Model

The document describes an intelligent system for automated traffic signal control using a fuzzy logic Mamdani model. The system aims to dynamically adjust traffic light timing based on real-time traffic conditions detected through image processing, unlike traditional fixed-time systems. It takes traffic density measurements in the currently active and waiting lanes as input to a fuzzy inference engine. The engine then determines whether the green light time should remain unchanged or be adjusted, providing more flexibility than standard controllers. The system was implemented in MATLAB using a graphical user interface to simulate input and demonstrate the concept.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views5 pages

Intelligent System For Automated Traffic Signal Control Using Fuzzy Mamdani Model

The document describes an intelligent system for automated traffic signal control using a fuzzy logic Mamdani model. The system aims to dynamically adjust traffic light timing based on real-time traffic conditions detected through image processing, unlike traditional fixed-time systems. It takes traffic density measurements in the currently active and waiting lanes as input to a fuzzy inference engine. The engine then determines whether the green light time should remain unchanged or be adjusted, providing more flexibility than standard controllers. The system was implemented in MATLAB using a graphical user interface to simulate input and demonstrate the concept.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

International Journal of Emerging Trends & Technology in Computer Science (IJETTCS)

Web Site: www.ijettcs.org Email: [email protected], [email protected] Volume 2, Issue 6, November December 2013 ISSN 2278-6856

Intelligent System for Automated Traffic Signal Control Using Fuzzy Mamdani Model
Shilpa Mehta 1, K. Soundararajan2, U Eranna3, Bharathi SH 4
1

Senior Associate Professor, ECE Department, Reva ITM, Bangalore India. Retired Professor and Former Rector, JNTU Anantapur, Andhra Pradesh, India.
3

Principal, BITM Bellary, VTU Belgaum, Karnataka, India.


4

Professor, ECE Department, Reva ITM, Bangalore India.

Abstract: The work describes a flexible traffic control


technique employing the Fuzzy Logic based Mamdani Controller. The control technique makes adjustments in the on and off timings of various lanes at a traffic junction depending on the actual condition of traffic, unlike the traditional microcontroller based approach which keeps time slots fixed regardless of actual situation. The parameters like traffic density and queue length have to be obtained by applying image processing algorithms for clustering, segmentation, and partitioning to the aerial images of the traffic situation at the junction or crossing. On the basis of the traffic density conditions on the presently green lane and that in the next two waiting lanes, the time duration for the presently green lane can be dynamically adjusted in real time to adapt to the situation at the traffic island. The decisions about the adjustment in time may be taken on the real time parameters using fuzzy inference engine.

For this work, the traffic situation is to be entered by an operator through a graphical user interface. The program asks the user to enter the value indicating the traffic situation and takes the decision. But in actual applications, there will be no human operator entering any values. The system will take input parameters from image processing of images continuously obtained at the traffic junction. [2], [6]

2. THE PRESENT DAY APPROACH


The system in common use today is being discussed assuming a Left Hand Drive system with free left turn, as in use in India. The discussion is with reference to Fig. 1.

Keywords: Fuzzy controller, Visual Feedback, Traffic controller, Real Time application

1. INTRODUCTION
The world we live in today is a world of automation. Most things around us, manufactured for human use or service, are controlled using microcontrollers. Traffic signal control is a well-known application of microcontroller based automation, which is a part of most of the basic courses on microprocessors and microcontrollers. Unfortunately, the traditional control system is not flexible but fixed. The real time situation of the junction is not taken into consideration. Rather, the on and off timings of the green, red and amber lights are prefixed to some optimal values from previous planning and experience, and programmed into the system forever. At best, these durations may be varied as per the time of the day or the day of the week (weekday or weekend etc.). There is no scope for real time adjustment of the durations in accordance with the actual traffic condition at the crossing. Artificial systems which use human like decision processes to arrive at decisions come to the rescue. [3]. This paper discusses an approach for introducing such aforesaid flexibility into the system. Volume 2, Issue 6 November December 2013

Figure 1The Traffic Junction In A Left Hand Drive System. (A)Vehicles Arrive On The Left Hand Side Of The Road On All Four Sides.(B) Vehicles Are Always Free To Turn Left. In the usual scenario, a microcontroller controls the four sets of traffic lights at the crossing (traffic island). Typically, the green light is turned on in one direction and red in the other three, and the same thing is repeated in each direction turn by turn, as depicted in Fig. 2.

Page 125

International Journal of Emerging Trends & Technology in Computer Science (IJETTCS)


Web Site: www.ijettcs.org Email: [email protected], [email protected] Volume 2, Issue 6, November December 2013 ISSN 2278-6856
the hour, while also maintaining fairness; i.e. the lane with low traffic was also given a fair share of time, though not so much as to be wasteful. In contrast to this the typical automated system has no such capacity. This paper discusses a fuzzy logic based approach which simulates the human approach to solve this problem. The heuristic and implementation are discussed here. 3.1 The Heuristic: Turn On the green light towards all left turns. Turn on the green light in East West and West East non interfering directions and red light in all other directions. Wait for an interval T which is adjustable within specified maximum and minimum time limits. The amount of variation is Tadjustwhich depends on the condition of traffic. Repeat the above two steps for the three other direction pairs cyclically. Repeat the whole cycle continuously unless forced to quit the loop. 3.2 The Implementation: The above heuristic was implemented in Matlab using Fuzzy Logic Toolbox and the MamdaniController [1], [4].The algorithm is described below. Set the values of Tmin, Tmax, Tleft, and Telapsed; viz. the minimum time interval, the maximumtime interval, the time left for the current situation to continue before it changes, and the time elapsed from the beginning of the present cycle. For each pair of directions, turn on the green lights (red for other directions) for a minimum time, set the timer, wait for a minimum interval, and check for traffic densities in the open and waiting lanes. Ask the user for the traffic densities in respective lanes. In real situations this value will be taken from image processing. But for this simulation, values have to be entered by the user executing the program through the Graphical User Interface. The rules are as follows: o R1: Crisp Rule: If (Time elapsed in allowed lane >= Minimum On time) Then {Apply Rule 2} Else {Wait for 1 minute and reapply Rule 1} o R2: If (Traffic in the allowed lane is >Minimum threshold value) Then {Continue the time slot without any reduction) Else {Apply Fuzzy Inference Engine (FIS) to find adjustment in time} FIS: The Fuzzy Inference Engine: The fuzzy engine was made using 27 rules based on three input antecedents (the traffic in the presently open lane, and the traffic in the next two waiting lanes) and one fuzzy consequent (the Page 126

Figure 2.The Four Controlled Situations At A Quad Traffic Island (A) Traffic Allowed To Move In East West And Also West East (Straight) Directions (B) Traffic Allowed To Move In East North And Also West South (Right Hand Side) Directions (C) Traffic Allowed To Move In North South And Also South North (Straight) Directions (D) Traffic Allowed To Move In North West And Also South East (Right Hand Side) Directions The durations for the ON timing are usually fixed, and same, for all the four directions. These days the timings in seconds are displayed towards the respective directions so that people know exactly how much they have to wait / cross, before the current situation changes. The ordering is made such that two directions which do not cross each other are allowed to move at any given time and the others are made to wait. We have all come across situations in which we can see that there is no (or very less) traffic moving on the presently permitted lane while we still have a long waiting period. This situation is not only irritating to the commuters, but also instigates drivers in a hurry to break the rules and jump the signal a situation which may lead to accidents, and very often does lead to such.

3. THE PROPOSED APPROACH


The technique in use today, which has been described above, is nonflexible.At the very least, it causes discomfort and anxiety to commuters waiting for a green light while they can visually see for themselves that there is no traffic in the presently ON lane. Further, if it becomes a daily routine which one faces when in a hurry to reach office or picking up the kids, then it leads to a habit of ignoring the red signal, thereby causing accidents in the long run. As we move towards automation of traffic junctions we have to take care that the automated lights have to be made to accommodate the actual traffic demands and requirements, like the human counterpart used to do, and not be just there as name sake regulators. In the good old non-automated days, there used to be policemen at traffic crossings, and they could visually see the traffic density in different lanes and adjust the timings as per the need of Volume 2, Issue 6 November December 2013

International Journal of Emerging Trends & Technology in Computer Science (IJETTCS)


Web Site: www.ijettcs.org Email: [email protected], [email protected] Volume 2, Issue 6, November December 2013 ISSN 2278-6856
adjustment in time which may be done). Figures below show snapshots from the Matlab implementation (B) The GUI Asking To Enter The Traffic Density Values. In Actual Implementation These Will Come From The Image Processing System. The FIS description, antecedent and consequent membership curves are shown in the snapshot of the FIS. in Fig. 5.

(A)

(A) (B)

(C)

(B)

(D) Figure3(A), (B), (C) The GUI Showing The Present Status Of The Junction, And (D) The Traffic Directions Graphically

(C)

(A)

(D) Figure 5(A)The Fuzzy Inference Engine (B) The Inputs (C) The Description Of One Antecedent (D) Graphical Representation Of The FIS. (B) Figure 4(A) The GUI Showing The Traffic Situation Fig. 6 shows the Rule view and the Application view. Fig. 7 shows the surface view and Fig. 8 depicts the next cycle of the implementation. Page 127

Volume 2, Issue 6 November December 2013

International Journal of Emerging Trends & Technology in Computer Science (IJETTCS)


Web Site: www.ijettcs.org Email: [email protected], [email protected] Volume 2, Issue 6, November December 2013 ISSN 2278-6856

(A)

(B)

(C) Figure 8(A) TheGUI Asking The User Whether To Run The Next Cycle Or Quit (B) The Situation In The Next Cycle. (C) The Graphical Display Of The Next Cycle Of The Implementation (B) Figure 6 (A) The Rule-View (B) The Application View Of The FIS Execution . 3.3 Acquiring Feedback variables: Cameras can be placed to have a birds eye view of the junction or even the individual incoming traffic lanes. The acquired image may be subjected to image processing methods [5] to find the densities of traffic in real time. There would be no necessity of a human operator to enter the values of traffic densities manually. 3.4 FIS Model Description: The Fuzzy Inference method described in this paper was based on the Mamdani Model. The antecedent membership curves have been selected trapezoidal while the consequents are Gaussian. The And operator was taken as min, and Or as max. Implication function was min, while aggregation function was max. Finally, defuzzification was found using centroid approach.

4. CONCLUSION AND FUTURE SCOPE:


Figure7The Surface View Of The Fuzzy Inference. he Fuzzy Logic Based Control System developed here for traffic signal control is very flexible. The timings of adjustment, the minimum and maximum time limits can easily be altered to suit various junctions, while the structure of the rule set can be kept fixed. Even the ruleset may be varied to cater to the needs of different scenarios. The definitions of the fuzzy sets of the antecedents are also very easily changeable.

(A) Volume 2, Issue 6 November December 2013

Page 128

International Journal of Emerging Trends & Technology in Computer Science (IJETTCS)


Web Site: www.ijettcs.org Email: [email protected], [email protected] Volume 2, Issue 6, November December 2013 ISSN 2278-6856
The feedback for the traffic densities or / and queue lengths can be taken from images from cameras above. Image processing techniques can be simply applied to the images of separate the areas of interest, i.e. the concerned lanes. The images can be analyzed to find the attributes; viz. the length of the queues or the traffic density. Presently, this proposed method has been simulated with satisfactory results. This is a very promising application of fuzzy logic in practical areas, and will be quite useful in traffic control at automated unmanned crossings which are common in the high-speed world today. Institution of Engineers (India) for best technical paper published in Journal and the Best Teacher Award in 2006 by the State Government of Andhra Pradesh, India. He is an Expert Committee member, for different central govt organisations, affiliation committee member for several colleges. He published 22 international journals/conferences and 27 national journals/conferences and he participated in 12 national seminars. He guided 9 Ph.Ds and 10 research scholors are working to obtain their PhD. He worked as principal of JNT university college of engineering Anantapur,A.P, former rector of JNTU, Anantapur. and as Professor, Department of ECE, JNTUACE, of Jawaharlal Nehru Technological University, Anantapur, India. Dr. U Eranna completed his B.Tech (E&CE) from JNTU College of Engineering, Anantapur, Andhra Pradesh in the year 1988. He went on to complete his M.E. from MS University Baroda, Gujarat in 1994, and his PhD from SK University, Anantapur in 2006. He started his teaching career in 1988. He is presently guiding 2 PhD candidates at JNTU Anantapur. He is an Expert Panel Member for Gulbarga University, Karnataka University, Bangalore University, and Visweswaraiyah Technological University. He has published more than 20 papers. He is presently working as the Principal, BITM Bellary Bharathi SH completed BE Electronics degree from Bangalore university in the year 1992. She did her ME in ECE from Bangalore University in the year 2002, and PhD from Krishnadevaraya university Andhra Pradesh in 2012. Presently, she is working as a professor in the Department of ECE, Reva ITM, Bangalore. Her areas of interest are Image and video compression, FPGA, and electromagnetics.

References
[1] John Yen, Reza Langari, Fuzzy Logic: Intelligence, Control, and Information, Pearson Education; 2005, pp 151-155. [2] Shilpa Mehta (2008),Fuzzy control system for controlling traffic lights; Hong Kong IMECS. pp: 19-21. http://www.iaeng.org/publication/IMECS2008/IMEC S2008_pp105-108.pdf [3] Dan W Patterson, Artificial Intelligence And Expert Systems, Prentice Hall of India, 2001, pp 65. [4] George J. Klir and Tina A. Folger, Fuzzy Sets, Uncertainty and Information, Prentice Hall of India, 2004, pp 255-260. [5] Rafael C. Gonzalez and Richard E Woods, Digital Image Processing PHI India, 2006, pp27, 567-585. [6] Behnam Barzegar Fuzzy Logic Controller for Traffic Signal Controller Unit System and Modeling with Colored Petri Net, INDJST, Volume 4, Issue 11, November 2011. http://www.ijird.com/index.php/indjst/ article/view/30263

AUTHORS BIOGRAPHY
Shilpa Mehta completed her B.E. in Electronics from Vikram University, Ujjain (MP) in 1991, becoming the gold medalist of her batch, and her M. E. in Digital Techniques from DAVV Indore (MP) in 1997. She started her teaching career in the year 1992. She has a total teaching experience of about 21 years. She has presented more than 10 conference papers at national and international conferences. She is presently pursuing her PhD from JNTU Anantapur. Presently, she is working as a Senior Associate Professor at RITM Bangalore. Dr.K.Soundararajan received the B.E degree in Electronics and Communications from S.V.U, Tirupati and the M.Tech degree in Instrumentation from J.N.T.U, Kakinada. He received Ph.D from Indian Institute of Technology, Roorkee. He has 32 years of teaching experience. He got the best teacher award for the year 2005 from lead India2020, President of India Award in Bharat Scouts & Guides in 1968, Best Paper Award in 199091 from Volume 2, Issue 6 November December 2013

Page 129

You might also like