We ALREADY have that at many intersections in my city.
There are either radar detectors on the signals or inductance coils buried in the roadway. Whenever traffic is coming from one direction and NOT from another, the lights automatically switch to let the traffic through. This has been around for many years.
