How can one predict the time of further switching a traffic light? To do this, you need to look at the number of machines that have the right to move at the moment.
If at the moment there are few of them, then they started to go for a long time. The smaller the number of cars in the active strip, the greater the probability of signal switching.