Skip to content

This repository contains an analysis of traffic accidents aimed at forecasting future incidents using the SARIMAX (Seasonal AutoRegressive Integrated Moving Average with eXogenous variables) model. We predict traffic accidents by correlating historical data with traffic volume from toll stations.

License

Notifications You must be signed in to change notification settings

ramironunes/traffic-accident-analysis

Repository files navigation

Traffic Accident Analysis

This repository aims to analyze traffic accident data using Python and various data science tools. The project includes a Docker setup to ensure a consistent development environment with all necessary dependencies.

Technologies Used

  • Conda: Used to manage dependencies and create isolated environments.
  • Docker: Ensures a consistent and reproducible environment for development and deployment.
  • Orange3: A comprehensive suite for machine learning and data mining.
  • Python: The main programming language used for data analysis and processing.

Getting Started

Prerequisites

Ensure you have Docker and Docker Compose installed on your system.

Installing Docker and Docker Compose

To install Docker and Docker Compose, follow these steps:

  1. Install Docker:

    sudo apt-get update
    sudo apt-get install -y docker-ce docker-ce-cli containerd.io
  2. Start the Docker Container:

    docker compose -f docker/docker-compose.dev.yml up -d
  3. Allow X11 connections: Allow X11 connections:

    xhost +local:docker
  4. Access the Container: To access the container in interactive mode, run:

    docker compose -f docker/docker-compose.dev.yml exec traffic-analysis bash
  5. Initialize Conda and Activate the Environment: Inside the container, initialize Conda and activate the environment:

    source /opt/conda/etc/profile.d/conda.sh
    conda activate traffic_analysis
  6. Start Orange: Once the environment is activated, start Orange with:

    orange-canvas

Project Dependencies

Dependencies are managed via Conda and are specified in the deploy/requirements.txt file. Key dependencies include:

  • Orange3: A comprehensive suite for machine learning and data mining.

Project Scripts

  • setup.py: Configuration for the Python package, including project metadata and dependencies.

Docker Configuration

  • docker/Dockerfile.dev: Defines the Docker image for the development environment, based on Miniconda.
  • docker/docker-compose.dev.yml: Docker Compose configuration for setting up the development environment.

About

This repository contains an analysis of traffic accidents aimed at forecasting future incidents using the SARIMAX (Seasonal AutoRegressive Integrated Moving Average with eXogenous variables) model. We predict traffic accidents by correlating historical data with traffic volume from toll stations.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published