The lights in my small Pennsylvania town just got cameras and do seem to be using ML to recognize traffic build-up and optimize dynamically for traffic flow. Pretty cool stuff.
I think the real reason they were installed was because of a new state law that goes into effect this July where you'll be fined if you're spotted holding a smartphone by a traffic cam. Still, the faster light changes are quite welcome.