The TTC Delay Mitigation Project, initiated by the Toronto City Council, is a strategic initiative designed to tackle operational challenges within the Toronto Transit Commission (TTC), focusing specifically on bus delays. By leveraging advanced data analysis techniques, this project aims to identify underlying causes of delays and implement targeted solutions. Utilizing a decade of historical bus delay data (2014-2023), the project seeks to enhance transit efficiency, optimize routes, and improve commuter experience. Tools used include Excel, Python, and Power BI for data analysis and visualization.
The Toronto Transit Commission (TTC) is crucial for approximately 1.7 million daily commuters in Toronto and its surrounding areas. However, challenges such as delays in bus services impact both efficiency and public perception of the transit system. The TTC Delay Mitigation Project addresses these challenges using advanced data analytics to improve service delivery and operational effectiveness. The project not only aims to enhance current operations but also provides valuable insights for long-term improvements and sets a precedent for other transit agencies.
The TTC faces significant operational issues with delays in bus services, which affect commuter experience and system performance. A report by the Toronto Region Board of Trade (TRBOT) indicates an average delay time of 16 minutes, leading to an 18-minute longer waiting time and an on-time percentage of only 57.98%. The project aims to identify and address the root causes of these delays to improve reliability and efficiency.
Answer: Descriptive analytics reveal that common incidents include signal failures, inefficiencies within the bus network, emergency services, mechanical issues, and road incidents. This analysis helps in understanding incident patterns and informs decision-making to improve service reliability.
Problem it will solve: Identifying patterns in incident occurrences aids in resource allocation, incident management, and enhancing overall system performance.
b. Why are certain incidents more frequent in specific directions within the TTC system, and what factors contribute to the variation in incident occurrence across different directions?
Answer: Diagnostic analytics show that aging infrastructure, higher passenger volumes, and environmental factors contribute to directional variations in incident frequency.
Problem it will solve: This analysis helps in reducing risks, improving service performance, and making informed decisions to enhance transportation efficiency.
c. Why are certain incidents more frequent in specific directions (eastbound, westbound, northbound, southbound) within the TTC system, and how does the delay time associated with these incidents vary across different directions?
Answer: Diagnostic analytics identify that vehicle conditions, passenger load, and environmental variables affect the frequency of incidents and delay times in different directions.
Problem it will solve: Understanding these variations helps in addressing the underlying causes of directional differences in incidents and delays, leading to more effective strategies for reducing delays and improving system efficiency.
The TTC Delay Mitigation Project aims to:
- Reduce bus service delays within the TTC by identifying and addressing core causes of delays.
- Optimize bus routes and infrastructure to improve overall network efficiency.
- Enhance the reliability and effectiveness of the bus network, leading to better commuter satisfaction.
- Excel: For data processing and initial analysis.
- Python: For advanced data analysis and automation of data pipelines.
- Power BI: For data visualization and dashboard creation.
-
Data Import:
- Libraries like Pandas, datetime, Seaborn, and Matplotlib were imported for data manipulation and visualization.
-
Data Acquisition:
- Data was sourced from a combined TTC bus delay dataset, created by merging several CSV files downloaded through an official source's API.
-
Data Cleaning:
- General Cleaning:
- Trimmed whitespaces from each cell.
- Renamed column names for better readability.
- Converted "Report_Date" to datetime format and created new date, month, and year columns.
- Removed rows with non-numeric route numbers.
- Time-Related Cleaning:
- Converted the "Time" column to 24-hour format and extracted hours and minutes.
- Location Cleaning:
- Cleaned location names (e.g., converting to lowercase, removing special characters).
- Removed rows with missing location data.
- Delay-Related Cleaning:
- Removed rows with missing or invalid values in the "Min_Delay" and "Min_Gap" columns.
- Created a new "Delay_Category" column based on delay duration quartiles.
- Incident-Related Cleaning:
- Standardized direction codes (North, South, East, West, etc.).
- Mapped incident descriptions to broader categories using a dictionary.
- Filled in missing values in "Incident" with "Unknown".
- Vehicle Column Removal:
- Dropped the "Vehicle" column due to a significant number of missing entries.
- General Cleaning:
-
Exploratory Data Analysis (EDA):
- Generated descriptive statistics from the data.
- Visualized trends in delays over time using line plots.
- Analyzed the distribution of delay categories.
- Examined average delays by day of the week.
- Created a heatmap to explore average delays by month and year.
- Identified the most frequent incident types causing delays.
- Calculated average delay per route and plotted the top 10 routes with the highest average delays.
- Counted delays by location and visualized the top 10 locations with the most frequent delays.
The data manipulation process resulted in a cleaned and transformed dataset suitable for further analysis. The key outputs include:
- Descriptive statistics summarizing the data.
- Various visualizations, such as time series plots, bar charts, heatmaps, and count plots, revealing patterns and trends in bus delays.
- Identification of common delay causes and locations.
- Insights into routes experiencing the most significant delays.
This document provides a detailed view of the results obtained from the TTC Delay Mitigation Project. The analysis focused on various aspects of bus delays within the Toronto Transit Commission (TTC) network.
The following image shows the average delay experienced by each day of the week. This analysis helps identify if specific days are prone to higher delays.
Key Insights:
- Identifies days with higher average delays.
- Supports scheduling and resource allocation adjustments based on day-specific delays.
This heatmap visualizes the average delays across different months and years, providing a comprehensive view of delay trends over time.
Key Insights:
- Highlights peak months and years with significant delays.
- Useful for planning and managing peak periods effectively.
This chart illustrates the distribution of different delay categories, helping to understand the frequency and severity of various delay types.
Key Insights:
- Provides a breakdown of delay categories by frequency.
- Assists in prioritizing actions based on the most common delay types.
The image shows the distribution of different types of incidents that cause delays, providing insight into the main contributors to transit delays.
Key Insights:
- Identifies major types of incidents causing delays.
- Supports targeted interventions to address the most frequent incident types.
This visualization highlights the top 10 locations where delays are most frequent. This information is crucial for pinpointing problem areas within the TTC network.
Key Insights:
- Identifies locations with the highest frequency of delays.
- Helps in targeting infrastructure improvements and operational changes in these areas.
This chart displays the top 10 routes experiencing the highest average delays. It provides insight into which routes need attention for delay reduction.
Key Insights:
- Highlights routes with the most significant average delays.
- Guides route optimization and scheduling adjustments.
This image tracks the trend of delays over time, offering a view of how delays have varied across different periods.
Key Insights:
- Shows trends and variations in delays over time.
- Useful for understanding long-term patterns and planning future interventions.
The visualizations provided offer valuable insights into various aspects of bus delays within the TTC network. By addressing the issues highlighted in these images, the TTC can improve operational efficiency and enhance the overall commuter experience.
For additional details or further analysis, please refer to the full report or contact Abhishek Tripathi.
This project is licensed under the MIT License. See LICENSE
for details.