A computer program product comprising at least one non-transitory computer readable medium having with a set of instructions of computer-executable program code, which when executed by one or more processors of a secondary traffic signal control system, cause the one or more processors to perform operations comprising:
- training a machine learning (ML) model based on a training data set comprising traffic data to thereby obtain a trained ML model;
- capturing traffic sensor data at one or more neighboring traffic intersections;
- deploying the trained ML model to determine an optimum traffic signal state at a traffic intersection among the one or more neighboring traffic intersections based on the captured traffic sensor data;
- executing virtual emulation code to virtually emulate the traffic light apparatus and thereby obtain a virtually emulated traffic light apparatus;
- and
- autonomously controlling operation of a traffic light apparatus based on the determined optimum traffic signal state by linking a primary traffic signal controller of a primary traffic signal control system to the virtually emulated traffic light apparatus.