Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

0xnu/ai_hackathon_in_transport2024

Repository files navigation

AI Hackathon in Transport 2024 - Team 4

This repository contains the work of Team 4 for the AI Hackathon in Transport 2024. Our project focuses on analysing accident data in Greater Manchester from 2010 to 2021 and developing tools to provide insights to citizens and policymakers.

Files

  1. unified_dataset.csv

  2. manchester_accident_severity1_heatmap.ipynb

    • Jupyter Notebook generates an interactive heatmap of the severity of one accident in Greater Manchester
  3. manchester_accident_analysis.ipynb

    • The Jupyter Notebook perform an in-depth analysis of the unified accident dataset.
    • Generates insights such as clusters of top high-risk areas and top contributing factors.
  4. manchester_intelligent_road_safety_hub.py

    • Code for an interactive web portal presenting accident insights to citizens and policymakers
    • Built using Gradio for the frontend interface
    • Leverages the OpenAI API to power a simple chatbot that can answer questions about Manchester accidents
    • Potential Question: What are the top three reasons for accidents in Greater Manchester with an explanation?

Getting Started

  1. Clone this repository and navigate to the project directory
  2. Run the Jupyter notebooks in sequential order to generate the unified dataset, generate heatmap and perform analysis
  3. Install the required Python libraries: pip install -r requirements.txt
  4. Set the environment variable OPENAI_API_KEY in the current shell session: export OPENAI_API_KEY="your_openai_api_key"
  5. Launch the interactive portal by running: python3 manchester_intelligent_road_safety_hub.py

Contributors

Ada x Amine x Harry x Finbarrs x Jill x Jamie x Hakem

Thank you to our Department for Transport (DfT), Google and PA colleagues.

License

This project is licensed under the MIT License.

Citation

@misc{aihackathonintransport2024,
  author       = {Oketunji, AF. et al},
  title        = {AI Hackathon in Transport 2024 (0.0.1)},
  year         = 2024,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.11213634},
  url          = {https://doi.org/10.5281/zenodo.11213634}
}

Copyright

(c) 2024 DfT - Department for Transport.

About

AI Hackathon in Transport 2024

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published