Detect congestion level at junctions and adjust traffic light timing to minimize the congestion level.