Preventing “Bus Bunching” with Smart Phone Application Implementation


In public transport, bus bunching refers to a group of two or more transit vehicles (such as buses or trains), which were scheduled to be evenly spaced running along the same route, instead running in the same location at the same time. Dave Sprogis, Volunteer Software Developer, and Data Analyst in Watertown, MA, used AnyLogic to confirm his thesis that preventing "Bus Bunching" would improve the experience of public transit bus riders. Specifically, he proved that long waits at bus stops would be eliminated and bus crowding would be dampened by preventing minor delays to an individual bus before they snowball into the phenomenon we call "Bus Bunching."


Residents of Watertown, MA, have long complained about poor service on the bus routes that service the town. Knowing that the Massachusetts Bay Transportation Authority (MBTA) that serves Watertown had published an API through which real-time bus data could be collected, Dave volunteered to build a SaaS system to collect it into a data warehouse for analysis. The results of the analysis were clear, buses lost significant efficiency servicing the route when they bunched together, typically at Rush Hour when riders needed consistency and reliability most.

While the results were convincing, a solution remained elusive. Should full buses skip past riders waiting at stops allowing a trailing bus to pick them up? Should bus schedules be updated to reflect dynamically changing road conditions and rider demands? Alternatively, could simply slowing buses to prevent Bus Bunching pay dividends in the long run?

Bus Transport Modeling

Bus Transportation Simulation

Bus Transportation System Simulation


Dave had a hunch that slowing buses would pay dividends but needed a way to prove it. Proving it would require simulation because the problem is not deterministic. Dave wanted to observe the impact of slowing the bus on the overall rider experience. What are the trade-offs? For example, would reducing wait times increase the ride time for passengers and to what degree? Moreover, if the ride times are increased, wouldn't the passenger loads increase as well? Only through simulation in which variables can be tweaked and results measured, could these questions be answered.

Dave modeled an existing route using AnyLogic's GIS features. The model allows Dave to simulate the current situation and his proposed solution, collecting metrics in both scenarios and comparing the results. Dave developed the model with the following components:

  • Bus stops. 
  •  Buses, bus behavior, and operation constraints. 
  •  Riders and rider behavior. 
  • Trips.

The model also includes parameters that can be adjusted before and during run-time (i.e. number of riders, rider load time, rider unload time, max bus speed, and the choice between two policies).


The model allows Dave to visualize the problem and proposed solutions. The best results were seen in the solution Dave titled “equilibrium,” which is to devise a way to maintain distances between buses. Using the equilibrium policy, buses will no longer follow the route freely, but by making continued adjustments and slowing down or stopping until sufficient space in front of them is available.

When the “equilibrium” policy is used, the number of riders on each bus is more uniform and the wait time is a more predictable distribution, which eliminates excessively long wait times and dampens overcrowding of buses.

Dave recommends that the MBTA implement “uber-fication” of buses – a simple “connected” app that advises drivers when to wait based on network metrics, enforcing the “equilibrium” policy.

The transition from Insight to Action is often unclear. Implementation can be costly and/or risky. Simulation, where applicable, is a great middle step, refining direction and creating confidence before investments are made. Sharing the AnyLogic model with the MBTA will assist decision makers in visualizing the problem and the proposed solution, ultimately improving service for riders.

More Case Studies

  • Rail Yard Capacity Modeling
    Aurizon is an Australia’s largest rail freight operator, managing more than 700 locomotives and more than 16,000 wagons. Aurizon is widely engaged in coal, iron ore, and mineral transportation. In order to increase operational efficiency the company decided to move one of their rail yards to other town. This rail yard was mainly engaged in wagon and locomotive maintenance and locomotive preparation.
  • Selecting the Best Inventory Policy Using Gojii
    Existing supply chain and S&OP tool sets do a great job of managing supply to meet a selected "forecast." However, there is no single "correct forecast" of future demand, and existing tools are not designed to select the best demand level for the business. There is a "tool gap" between forecast inputs and selection of the best demand signal (aka "forecast") to drive your S&OP system. Gojii is the tool created by DecisioTech that fills that gap.
  • Maximizing Push Boat Fleet’s Net Voyage Revenue
    InterBarge, a first-class waterway operator, affiliated with SCF Marine, a part of Seacor Holding Group, operates freight along the HPP Waterway (Hidrovia Parana Paraguay, located in Argentina, Paraguay, Brazil, and Uruguay) on a dedicated contract carriage. The company’s challenge was to use the boat capacity free from dedicated contract commitment as a fleet, maximizing net voyage revenue.
  • Customer-Centric Transportation Network Modelling
    The public transportation company employed PwC Australia to develop a solution that could provide a customer-centric view of their railway infrastructure and help the company understand the current incident effects on rail network operations and how to improve the situation. PwC consultants decided to build a model of the transportation network that would simulate train movements, incidents, and customers at stations and in trains.
  • CSX Solves Railroad Operation Challenges with and without AnyLogic Rail Library
    CSX is a US railroad company that operates about 21,000 route miles (34,000 km). AnyLogic allows the railroad industry users to simulate line-of-road, terminal, and yard problems. The following three projects, completed by CSX in 2014, covered a variety of tasks that were solved using AnyLogic software.
  • Emergency Evacuation Planning: Minimizing Gridlock and Improving Public Safety
    A typical rush hour impedes the mobility of individual vehicles and significantly slows the overall flow of traffic. This phenomenon is compounded by events of mass mobilization, such as during an evacuation due to a hurricane or other event. When this occurs, traffic can reach a state of gridlock. ITS researchers sought to understand how public safety could be improved during such events by incorporating communication among a percentage of the vehicle population.
  • Supply Chain Design for Vaccine Manufacturer
    GlaxoSmithKline (GSK) was the world’s sixth largest pharmaceutical company in 2014. The company was launching a new vaccine product on a new market that needed a distribution network different from what they had before. Therefore, the company needed to design a new supply chain and align manufacturing processes with it.
  • Apparel Company Chose Location for New Distribution Center Using Simulation Modeling
    Fruit of the Loom (FOTL) is one of the largest US apparel manufacturers and marketers. The company was expanding, and the executives wanted to know if it would be beneficial, in terms of shipping costs, to add a new distribution center (DC) on the east/west coasts of the US, or to redistribute products to a pre-existing DC. The contractors decided to simulate the whole supply chain in order to visualize DC locations on a GIS map, and the supply network between them.
  • Improving Mining Outbound Logistics with Agent-Based Simulation Modeling
    One of the largest resource companies in the world, with over $80 billion in sales, decided to enter a new market. It was planning to build a new potash mine with 90% of the resources exported. They wanted to design a reliable supply chain, with a high speed of supply replenishing, and the ability to recover from natural disasters and man-made crises benefiting from such volatility. Amalgama and Goldratt companies contracted this project to design the potash mining operations and a full supply chain of outbound logistics.
  • Simulation of the Construction of a Tunnel with a Tunnel Boring Machine
    The cost of one hour of down time of a tunnel boring machine is usually high and project managers have to do their best to avoid unnecessary delays in construction. The aim of the simulation project, which was carried out at Ruhr University Bochum in Germany, was to create a simulation model that would be capable of determining the bottlenecks in tunnel building processes in order to minimize the possible monetary losses.