Hacker News new | ask | show | jobs
by ericfranklin 4331 days ago
Traffic lights. While not directly personal or "Internet of Things", traffic lights could really use some AI. It would be fantastic if they could learn routine traffic patterns (rush hour, weekends), detect flow (green light, but no one is there), even receive traffic data from Google/Apple/etc., then automatically adjust timing accordingly. Even mesh networking with nearby intersections.

I can't count the number of times I have been waiting at a red left turn light, with a green straight light and no other cars around. Or, backed up at a red light with no cross traffic, yet cross traffic has a long green.

It is probably a complex problem to solve and suspect the biggest barriers are bureaucracy and control. Is there anyone on here that works with traffic lights? It seems like they are setup once with a predefined timing and are rarely ever changed.

6 comments

This already happens in some cities. There are traffic lights in my city, for example, which adjust for trains, presence of cross-traffic, etc. The cross-traffic one is neat because a light will, quite literally, stay red forever and only change when a car pulls up to actually use the green light.

From this[0] article:

> Today, cities use computer-controlled traffic lights that adjust their timing based on traffic levels, the time of day and even the number of trucks on the road. In Los Angeles, for example, city officials use traffic management to control their 4,400 traffic lights, reducing travel time by 12 percent.

[0] http://www.foxnews.com/tech/2014/08/05/high-tech-traffic-lig...

My hometown had one of those "cross-traffic" lights a few blocks from my house at an intersection that I had to cross to reach one of the major bike paths.

Naturally, it didn't register bikes. So if you wanted the light to ever change, you had to cross over to the left side of the street, go up on the sidewalk, and push the pedestrian button (no crosswalk on the right side of the intersection). Not much of a fan.

I'm not saying they're always bad, but they're not always good either. Maybe newer ones have improved on detection, but my understanding was that the sensor was induction based and required a big chunk of metal in order to spot you.

I've seen the induction loops "presence" sensors too. One near where I used to live would never change to green unless the sensor was triggered, but wouldn't register until your car was beyond the crosswalk, nearly in the intersection. That means if someone in front of you stopped where they were supposed to, the light would never change.

I suppose there is bias though, in that people don't notice as much when traffic lights are operating efficiently.

If the sensor there is an induction loop you might be able to figure out where it is and line a wheel up well enough that the metal rim triggers it.
I was never able to, but I didn't do a careful search for it. If only every city used that same bike icon to show you where the sensor is.
Probably not. From my experience bicycles and small motorcycles will not trigger the sensor on the induction loop.
I looked around some before I posted that. This article seems respectable enough and at least supports the idea that bikes are intended to be able to trigger some of them:

http://bikeportland.org/2010/09/27/bike-science-making-sense...

It looks like those are specifically designed to be triggered by bikes. I've been at intersections with a 50-100cc motorcycle that would not trigger the light.
In my area I find that the cross-traffic ones are poorly implemented. I'll drive up, come to a complete stop, the light will change for me and will already be back to yellow before I clear the intersection. This forces me to always stop when there was no traffic on the preferred route. It also means that if there is a car more than a few car lengths ahead of me it will change for them and force me to wait a full cycle even when there isn't traffic on the preferred route.

This shouldn't be a hard problem to fix. Sensors just need to be installed farther from the light to detect approaching vehicles earlier.

I don't think they're always looking for efficiency of traffic flow. I live on the south side of Chicago. I swear the lights along major streets are timed to make it inconvenient for traffic flow ON PURPOSE. My unscientific theory is that this is done to prevent speeding, rack up violations for idiots that like to race, and make it easier for cops to pursue in their cars. Case in point: my street has a stretch of at least 3 blocks without a light; hence, we get idiots (cars and cycles) that like to gun it in a 30 mph zone.
When I was a kid, we went through some small town when on vacation (don't remember which one). It didn't have speed limits - just signs that said that the traffic lights were synchronized for 25 MPH. After a light or two, you believed them, and so you drove 25 MPH.
Traffic lights will often have sensors to prevent switching when no cross traffic is waiting. There are also centrally controlled systems that incorporate adaptive control methods. (http://en.wikipedia.org/wiki/Traffic_light_control_and_coord...).

I think key infrastructure would probably be best left unexposed to the Internet, firewalled or not.

Many lights and transportation networks already do (NYC is one great example). It's not just lights - there are all sorts of inputs into that system.

It does take some resources, so you typically don't see that sort of intelligent routing outside of the major cities (at least in the US), but the tech is definitely there (not that it couldn't be improved).

Yes, I suspect major cities already have complex and optimized traffic routing, along with full-time traffic engineers. The mid and small cities are what I experience most, but I suppose these also have less traffic, so less need to be fully optimized.
At least one city is working on this, no AI needed: http://www.houstonchronicle.com/news/houston-texas/houston/a...
I find most lights these days have sensors to detect when cars are present and some basic logic to alleviate many of the problems you mention. No system is perfect, of course.