Heterogeneous traffic, where many vehicle types share the road with minimal lane discipline, is common in countries such as Sri Lanka and India and makes public transport especially hard to regulate. Understanding how bus drivers behave is essential for road safety, service quality and traffic management, yet traditional methods such as surveys and observations are subjective and costly, and sensor-rich approaches using CAN bus modules or IMUs are too expensive for developing nations. Little prior work had studied public transit drivers under heterogeneous traffic.
This project, by Team AutoPulse, builds a framework that understands bus driver behaviour using only GPS positions and speed, combined with map topology, bus stop metadata and time information. Using GPS traces from 14,975 bus trips on the Kandy–Digana route driven by more than 26 drivers, the team analysed speeding at bends, schools and zones between bus stops, and dwell time at stops. Driving trajectories were segmented by fixed time intervals and by fixed 1 km distances, and a novel norms method expressed each segment's features relative to how all drivers behave on that road section, capturing road and traffic conditions. Segments were clustered with K-means, GMM, spectral clustering and DBSCAN. An LSTM and a classification model forecast upcoming behaviour labels, and the models were integrated into a real-time dashboard for transport authorities.
Gap statistic analysis identified three as the optimal number of behaviour clusters. With fixed 1 km distance segmentation, K-means achieved a Silhouette Score of 0.2774 and a Davies–Bouldin Index of 1.4334, outperforming fixed time-interval segmentation, and under the norms method K-means was the best algorithm by both metrics compared with GMM, spectral clustering and DBSCAN. The resulting clusters were interpreted as aggressive drivers who become more cautious on hills and downhills, consistently aggressive drivers who remain aggressive on slopes, and slow, calm and safe drivers. For forecasting, an XGBoost classifier predicted behaviour labels for the initial segments of a trip with 60% accuracy across three classes, and an LSTM using the previous five behaviour labels forecast subsequent labels with 65% accuracy. The analysis also revealed a collective speed reduction at bends between 1 p.m. and 2 p.m., linked to school traffic, and grouped drivers into low-, average-, high- and adaptive-dwell categories based on dwell-time behaviour at low- and high-dwell bus stops.
Norms-Based Clustering Method
A segmentation and feature engineering approach that normalises each driving segment against the typical behaviour on its 1 km road section, so that road conditions, traffic and topology are accounted for when clustering driver behaviour.
Behaviour Forecasting Models
A hybrid forecasting scheme that uses a classification model (driver, road section, direction, day and hour) for the first road sections of a trip and an LSTM over the last five behaviour labels thereafter.
Real-Time Monitoring Dashboard
An interactive dashboard with past-data analysis (driver clustering, behaviour summaries, directional and individual driver analysis) and live map-based monitoring with future behaviour prediction, backed by GPS, clustering and forecasting services.
The project shows that meaningful driver behaviour profiles can be derived from inexpensive GPS trackers alone, offering a cost-effective path to safer and more efficient public transport in regions with heterogeneous traffic. Insights into aggressive driving, behaviour on challenging terrain and passenger-demand-driven dwell times can help authorities design targeted safety interventions, reduce collisions and improve the daily commute experience.
Project Poster - Enhancing Public Transit Systems with Real-Time Drivers' Driving Behavior Analysis
Architecture of the real-time driver behaviour dashboard
Average speed of each driver at bends by hour of the day (Kandy to Digana), grouped into aggressive, normal and safe drivers
Rukshan Athapaththu
Undergraduate Researcher
Team AutoPulse member and co-author of the clustering study on public transit driver behaviour.
Kasun Pavithra
Undergraduate Researcher
Team AutoPulse member and co-author of the clustering study on public transit driver behaviour.
Gimhan Ranasinghe
Undergraduate Researcher
Team AutoPulse member and first author of the clustering study on public transit driver behaviour.
Paper at IEEE ITSC 2024
The unsupervised clustering study is listed in the team's final report as a conference publication at the IEEE Intelligent Transportation Systems Conference (ITSC) 2024
“Public Transit Driver behaviour Analysis Under Heterogeneous Road Traffic Conditions Using Unsupervised Machine Learning Techniques”
Gimhan Ranasinghe, Rukshan Athapaththu, Mandalawattege Kasun Pavithra, Ratneswaran Shiveswarran, Uthayasanker Thayasivam
IEEE Intelligent Transportation Systems Conference (ITSC 2024)
IEEE
Paper at VEHITS 2024
The GPS-based driver behaviour analysis study is listed in the team's final report as a conference publication at VEHITS 2024
“Public Transit Driver behaviour Analysis Under Heterogeneous Road Traffic Conditions”
International Conference on Vehicle Technology and Intelligent Transport Systems (VEHITS 2024)