Public transportation is one of the most powerful tools cities have to reduce emissions, congestion, and inequality — but only if people actually want to use it. We were inspired by everyday issues riders face: late buses, bunching, overcrowding, and unreliable schedules. These problems push people toward cars, increasing emissions and wasted energy. We wanted to explore how smarter operations, not more vehicles, could make public transit more efficient and attractive.
HamBus is a simulation of an adaptive urban bus network designed to improve efficiency and reliability. It models real-world conditions such as demand surges, terrain-based delays, and uneven passenger loads. The system dynamically adjusts bus behavior to prevent bunching, respond to peak demand, and reduce unnecessary idling and delays. By improving how buses operate, the model shows how cities can increase ridership and reduce emissions without expanding fleets.
We built HamBus using Python, modeling buses as individual agents moving through a simulated city network. Routes were assigned different characteristics such as length, priority level, and terrain difficulty. The simulation runs in time steps, tracking bus position, load, and speed while applying adaptive rules like anti-bunching controls and demand-based slowdowns. This approach allowed us to experiment with how small operational changes impact the overall system.
One of the biggest challenges was balancing realism with simplicity. Real transit systems are extremely complex, and we had to decide which factors mattered most for sustainability and efficiency. Preventing bus bunching without creating excessive delays was also tricky, as holding buses too long can negatively affect riders. Debugging system-wide behavior, where small changes caused large ripple effects, was another major challenge.
We’re proud that HamBus demonstrates how operational efficiency alone can significantly improve public transit performance. The model successfully reduces bus bunching, adapts to demand spikes, and accounts for geographic constraints — all without adding vehicles. Most importantly, it clearly shows how improving reliability can encourage more people to choose public transit, leading to lower emissions citywide.
This project taught us that sustainability is a systems problem. Improving public transit isn’t just about cleaner vehicles — it’s about smarter coordination, better reliability, and understanding how people respond to service quality. We also learned how small algorithmic decisions can have large impacts on efficiency, emissions, and rider experience.
In the future, we want to expand HamBus by adding emissions tracking, energy consumption metrics, and comparisons between adaptive and fixed scheduling. We also plan to explore electric buses, transit signal priority, and equity-focused route optimization. Ultimately, we hope this project can help cities think differently about how to make public transit a more sustainable and appealing choice.
Log in or sign up for Devpost to join the conversation.