MITB Banner

How Google Maps Can Predict Bus Delays & Traffic Jams Using Machine Learning

Share

Google Maps has single-handedly reduced the ambiguity of the commuters over the past decade. In India, where the majority of the population prefers public transport for a daily commute, Google Maps has a key role to play. From bus timings to route maps, Google services are quite significant. But, in densely populated countries like India, traffic congestion is a major problem both for those in transit and the algorithm that serves Google Maps.

To solve this, Google Maps is launching live traffic delays for buses in places where there is no real-time information from local transit agencies.

Google Maps in India, especially, has released three updates:

  • Bus travel times from live traffic in 10 of the largest cities in India, 
  • Live train status for Indian Railways trains 
  • Mixed-mode commute suggestions that now combine auto-rickshaw and public transport

Overview Of The Model

 

To develop the new model to predict delays, the machine learning developers at Google extracted training data from sequences of bus positions over time, as received from transit agencies’ real-time feeds. These inputs are aligned with the car traffic speeds on the bus’s path during the trip. 

As can be seen in the plot below, how the car’s delay at 800m mark changes the bus timings. The model is split into a sequence of timeline units. These units can be anything from visits to street blocks to bus stops. Every unit is used to forecast the duration of the travel. 

Even within a small neighbourhood, the model needs to translate car speed predictions into bus speeds differently on different streets.

So, for better approximation, each unit is made to predict its duration independently, and the final output is the sum of the per-unit forecasts.

Not only the forecast of the duration but also to capture unique properties of specific streets, neighbourhoods, and cities, the model is made to learn a hierarchy of representations for areas with a timeline unit’s geography; locating road or a bus stop more precisely. 

To make the prediction more robust, the researchers simulated the possibility of queries that pop up about the areas which were not the part of training data.

As different cities and neighbourhoods also run to a different beat, so the model is made to combine its representation of location with time signals.

Some examples are kept with the exact bus route and street, others keep only neighbourhood — or city-level locations, and others yet have no geographical context at all. This better prepares the model for later queries about areas where we were short on training data.

The model developed here is simpler because of the sequence structure that allowed the researchers to :

  • Train models of individual units’ durations and
  • Optimise the “linear system” where each observed trajectory assigns a total duration to the sum of the many units it spans

India Gets To Try It First

This new update where Google Maps can be used to track live traffic data and public bus schedules to calculate delays and provide accurate travel times is the first product of its kind — launching first in India. This feature is supposed to enable the commuter to factor in real-time traffic and plan their trip accordingly. This feature will be available for Delhi and Bengaluru initially and will soon be extended to more cities. And, for real-time train information, the feature was developed with the help of Where Is My Train app, which was acquired by Google.  Whereas, the public transport tab on Google Maps for Android will now tell whether planning a certain trip is a good option or not, how long it will take and which station you should take an auto-rickshaw to/from.

Share
Picture of Ram Sagar

Ram Sagar

I have a master's degree in Robotics and I write about machine learning advancements.
Related Posts

CORPORATE TRAINING PROGRAMS ON GENERATIVE AI

Generative AI Skilling for Enterprises

Our customized corporate training program on Generative AI provides a unique opportunity to empower, retain, and advance your talent.

Upcoming Large format Conference

May 30 and 31, 2024 | 📍 Bangalore, India

Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

AI Courses & Careers

Become a Certified Generative AI Engineer

AI Forum for India

Our Discord Community for AI Ecosystem, In collaboration with NVIDIA. 

Flagship Events

Rising 2024 | DE&I in Tech Summit

April 4 and 5, 2024 | 📍 Hilton Convention Center, Manyata Tech Park, Bangalore

MachineCon GCC Summit 2024

June 28 2024 | 📍Bangalore, India

MachineCon USA 2024

26 July 2024 | 583 Park Avenue, New York

Cypher India 2024

September 25-27, 2024 | 📍Bangalore, India

Cypher USA 2024

Nov 21-22 2024 | 📍Santa Clara Convention Center, California, USA

Data Engineering Summit 2024

May 30 and 31, 2024 | 📍 Bangalore, India

Subscribe to Our Newsletter

The Belamy, our weekly Newsletter is a rage. Just enter your email below.