Skip to main content

A Python package to use GPS data of public transit routes and append topographical and Points of Interests (POI) related features.

Project description

Explainable Bus Arrival Time Prediction Model with Improved Features Related to Topography and Points of Interest

Usage

Step 1: Install the library

pip install gps2topo-poi

Step 2: Import the library

import gps2topo_poi as g2p

# dwell time POIs extraction
g2p.dwell_time_stop_classifier_poi_extraction.complete_extraction_pipelinecomplete_extraction_pipeline(bus_stops_path, segment_id_start=1)

# running time POIs extraction
g2p.running_time_poi_extraction.complete_extraction_pipeline(bus_stops_path, route_points_path, segment_id_start=1)

# Topographical feature extraction
g2p.topological_feature_extraction.complete_extraction_pipeline(bus_stops_path, route_points_path, segment_id_start=1)

Abstract

Accurate and reliable prediction of bus arrival times enhances passenger mobility experience. This study addresses a significant research gap by focusing on the complexities of predicting bus arrival times in heterogeneous traffic conditions. Unlike conventional prediction models, this research identifies hidden features related to topographical and Points of Interest (POIs) data, recognizing their critical role in reasoning. The methodology involves a two-fold approach, segmenting predictions into running time within a segment and dwell time at bus halts, using the multi-model ensemble technique. The results indicate that incorporating the new features (5 topographical and 10 POIs-related) has improved model performance by a reduction in MAE of 1.37 seconds (dwell time) and a decrease in MAPE by 0.7% (running time). While the enhancements in accuracy may appear modest, our focus lies on examining the influence of new features, offering valuable insights into the factors that cause delays. Moreover, we developed a dashboard showcasing real-time bus arrival times and highlighting delay reasoning using explainable AI techniques.

Results

Performance of Running Time Prediction with and without Topographical and POIs Data

XGBoost Model RMSE (s) MAE (s) MAPE (%) R2
Without topographical & POIs features 57.55 37.19 23.11 0.76
With topographical & POIs (total 25 features) 57.14 36.64 22.06 0.76
With topographical & POIs (total 19 features) 56.99 36.56 22.12 0.76

Performance of Dwell Time Prediction with and without POIs Data

XGBoost Model RMSE (s) MAE (s) R2
Without POIs features 38.13 19.77 0.14
Original features with total_poi_count 38.2 19.6 0.14

Authors

  • A.K. Warnakulasuriya - Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka
  • C.D.R.M. Weerasinghe - Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka
  • H.K.G.V.L. Wickramarathna - Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka
  • Shiveswarran Ratneswaran - Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka
  • Dr. Uthayasanker Thayasivam - Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gps2topo_poi-0.1.3.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

gps2topo_poi-0.1.3-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file gps2topo_poi-0.1.3.tar.gz.

File metadata

  • Download URL: gps2topo_poi-0.1.3.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for gps2topo_poi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a991c7c86bfc935a481e75ef12884bdf45f8ed26c506a7d07352c014013f8e55
MD5 6ac2dfcff5021262deb634c2c4272753
BLAKE2b-256 e0f1747bfc7a8501fc9ff4545588d00f61d84e999d8cc9305861e549a24dfeee

See more details on using hashes here.

File details

Details for the file gps2topo_poi-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gps2topo_poi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 febd0edbd609ec6298b53ad039d35e610d356981351d4c5c1f2ce8ce0647d434
MD5 72d9b2db78f6fbac2690b7ab3f259986
BLAKE2b-256 b0e06e46c2b2cf08e839c187ea3effbce4e012bd6bae09b56683305dfe73cf0a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page