A Mamdani fuzzy controller that adapts green-phase duration to live traffic conditions — designed, then compared across operators and defuzzification methods.
Fixed-timing traffic signals waste road capacity — they hold a red against an empty approach and cut a green short on a busy one. A fuzzy controller can reason in human terms ("if traffic is heavy and the queue is long, extend the green") without a precise mathematical model of the junction.
The finished controller produces a smooth, monotonic control surface: green time rises sensibly with both density and queue length, with no dead zones or discontinuities. The operator and defuzzification comparisons showed how much the same rule base can shift behaviour depending on those choices — the design isn't just the rules, it's the inference machinery around them. The work was assessed at distinction level.



