Git Product home page Git Product logo

forecast-hourly-traffic-volume's Introduction

Time series and Deep Learning for traffic volume prediction

GitHub issues GitHub forks Github Stars Code style: black

MAP_i94

Table of contents

Content

This project focuses on modeling and forecasting hourly urban traffic volumes between two major U.S. cities in the state of Minnesota, Minneapolis and St. Paul, and evaluating the effects of various contextual characteristics such as days of the week, holidays, and weather conditions on traffic volumes.

The dataset used catalogs hourly traffic volume on westbound Interstate 94 for the Minnesota State Department of Transportation ATR 301 station, roughly halfway between Minneapolis and St Paul. Initially, we have 48,000 observations ranging from October 2, 2012 at 9:00 AM to September 30, 2018 at 11:00 PM. To complete our traffic volume regression task, the company OpenWeatherMap added contextual and meteorological data: national and regional holidays, amount of rain and snow (in mm) that fell in 1 hour, temperature, cloud cover rate.

The objective is to try a large spectrum of approaches from the simplest to the most complex and by confronting the traditional Econometric approach and the new techniques of Machine and Deep Learning: linear regression, LightGBM, GRU, LSTM, Bi-LSTM.
In a second step, we propose an opening towards Deep Hybrid Learning approaches with a CNN-LSTM model. Then, inspired by the ES-RNN, or MES-LSTM, observed during the Makridakis-4 (M4) forecasting contest, we wanted to try to implement a hybrid model merging a linear regression and the very powerful LightGBM. We operated very simply, the objective is to assign a weight ฮฑ to the regression forecast and 1-ฮฑ to the LightGBM forecast. This ฮฑ coefficient is determined by modeling an exponential curve, with a certain coefficient, in order to give more strength to the short-term forecasts of the regression and then to reverse the trend afterwards so as to provide a greater weight to the long-term forecasts of the LightGBM model. The performances of these two merged models are not phenomenal but we wanted to explore this track in order to go further and consider more interesting combinations such as ARIMA-LSTM models.

Requirements

  • Python version 3.9.7

File details

  • forecast_hourly_traffic_volume
    • This is a .ipynb file which contains the code.
  • data
    • This folder contains the data.

Here is the project pattern:

- project 
    > forecast-hourly-traffic-volume
        > image 
            - map.JPG
        - forecast_hourly_traffic_volume.ipynb 
        > data 
            - interstate_traffic.csv

Features

My profil โ€ข My GitHub โ€ข Original UCIML dataset

forecast-hourly-traffic-volume's People

Contributors

lprtk avatar

Watchers

 avatar

Forkers

themeewa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.