Real Life Application of Fuzzy Logic: A Smart Traffic Light Controller
Real Life Application of Fuzzy Logic: A Smart Traffic Light Controller
Extremely honest Very honest Is Ram honest? FUZZY Honest at times Extremely dishonest
Fuzzy sets
The very basic notion of fuzzy systems is a Fuzzy (sub) set. In classical mathematics we are familiar with what we call crisp sets.
Here is an example:. Now, let's define a subset A of X of all real-numbers in the range between 5 and 8. A = [5,8] We now show the set A by its membership function, Membership function of set A
CRISP SET FUZZY SET
Triangular
Trapezoidal
Gaussian
Fuzzy rules
Fuzzy rules define fuzzy patches, which is the key idea in fuzzy logic. A machine is made smarter using a concept designed by Bart Kosko called the Fuzzy ApproximationTheorem(FAT). The FAT theorem generally states a finite number of patches can cover a curve as seen in the figure below. If the patches are large, then the rules are sloppy. If the patches are small then the rules are fine. Graphically, if the rule patches shrink, our fuzzy subset triangles get narrower.. It is math-free system
FUZZY CONTROLLER
A fuzzy controller contains three main components: Fuzzifier: Converts a crisp input from outside world into a fuzzy set so that it can be operated by the system Inference Engine: Contains a number of fuzzy logic rules called membership functions (MFs) and determines the degree of truth of the input based on these rules Defuzzifier: Converts the inference engines fuzzy output into a crisp value, which is the output of the system used for control
This part of the report describes the design procedures of a real life application of fuzzy logic: A Smart Traffic Light Controller. The controller is suppose to change the cycle time depending upon the densities of cars behind green and red lights and the current cycle time. . Obviously, a mathematical model for this decision is enormously difficult to find. However, with fuzzy logic, it is relatively much easier.
Fuzzy Design
Eight incremental sensors are put in specific positions .the first sensor behind each traffic light counts the number of cars coming to the intersection and the latter counts number of cars. . The distance D is chosen and is used to determine the maximum density of cars allowed to wait in a very crowded situation. This is done by adding the number of cars between to paths and dividing it by the total distance. For instance, the number of cars between the East and West street is (s1-s2)+(s5-s6)/D.
Step 2
The rules, as before are formulated using a series of if-then statements, combined with AND/OR operators. Step 3 This process, also mentioned above converts the fuzzy set output to real crisp value. The method used for this system is center of gravity: Crisp Output={Sum(Membership Degree*Singleton Position)}/(Membership degree
Testing
The fuzzy controller is tested and its performance is evaluated to determine if it is the best option when compared to a conventional controller and human expert. Testing of the controller: The fuzzy controller has been tested under seven different kinds of traffic conditions: from very heavy traffic to very lean traffic. 35 random chosen car densities were grouped according to different periods of the day representing those traffic conditions
Performance evaluation!!!
The performance of the controller was compared with that of a conventional controller and a human expert. The criteria used for comparison were number of cars allowed to pass at one time and average waiting time. All three traffic controller types were compared and can be summarized with the following graph of performance index in all seven traffic categories.
Conclusion
FL was conceived as a better method for sorting and handling data but has proven to be a excellent choice for many control system applications since it mimics human control logic. It can be built into anything from small, hand-held products to large computerized process control systems. It uses an imprecise but very descriptive language to deal with input data more like a human operator. It is very robust and forgiving of operator. In conclusion, as Man gets hungry in finding new ways of improving our way of life, new, smarter machines must be created. Fuzzy logic provides a simple and efficient way to meet these demands and the future of it is limitless