← All case studies
Fuzzy Logic · control systems

Traffic-Signal Fuzzy Inference System

A Mamdani fuzzy controller that adapts green-phase duration to live traffic conditions — designed, then compared across operators and defuzzification methods.

MATLAB Fuzzy Logic ToolboxMamdani inferencecontrol2026
2 → 1
inputs → output
Mamdani
inference type
multi
defuzzification methods compared
distinction
assessed grade

The problem

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.

Approach

Results

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.

Membership functions
Input / output membership functions.
Fuzzy control surface
Control surface from the rule base.
Defuzzification comparison
Defuzzification-method comparison.
Operator comparison
Fuzzy-operator comparison.

What I took away

View repository on GitHub →

← Previous: PSO on Rastrigin All case studies →
×