In Melbourne, Australia, a long time ago, they embedded weight sensors in the road for a lot of intersections, so they can react dynamically to traffic conditions.
I live in Berlin, which doesn't have such sensors and it's always frustrating waiting for lights to change when there's no traffic.