There is a special mechanism for switching a traffic light. It allows you to understand at what point a certain light will turn on. If you master it in practice, then the moment of switching will be felt on an intuitive level.
Drivers often drive on their cars, and if the route is the same, then remembering the location of traffic lights is easy, but there are large intersections.