Coder Social home page Coder Social logo

grab-aiforsea-traffic's Introduction

Grab AI For Sea: Traffic Management Challenge [TOP 50 WINNING SOLUTION]

Problem Statement:
How may we improve the traffic congestion for Southeast Asia's roads by leveraging Grab's booking demand data?
Link: https://www.aiforsea.com/traffic-management
Objective:
In this challenge, participants are to build a model trained on a historical demand dataset, that can forecast demand on a Hold-out test dataset. The model should be able to accurately forecast ahead by T+1 to T+5 time intervals (where each interval is 15-min) given all data up to time T.
Dataset:
The given dataset contains normalised historical demand of a city, aggregated spatiotemporally within geohashes and over 15 minute intervals. The dataset spans over a two month period.
  • geohash6: encoded geographic location
  • day: days follow sequential order and not a particliar day of the month
  • timestamp: 15-minute intervals
  • demand: aggregated demand normalized with values from 0 to 1
Problem Overview:
  • This is a timeseries forcasting problem.
  • Data leakage is very crucial, the model must train the data in sequential order and must not be trained with the future data.
  • Demand could be varied depend on the place, timestamp and day of the week. For instance, The demand around shopping mall is huge at evening on weekend while the demand around office is huge at morning or lunch time on week day.
  • The latitude and logitude were anonymized. We can't really get human insight about the city, blocks and point of interest, etc.
  • By binning the latitude and longitude into groups and then do feature crossing between them, we are able to create zones and learn their different pattern of demand.
  • Day of the week (0,1,2,3,4,5,6) helps us learn the trend of demand for particular datetime without the need to identify the weekday and weekend.
Solution:
  • Using Recurrent Neural Network (LSTM)
  • In total of 61 day data, first 47 days will be used as training set and the last 14 days are for validation.
  • Features included: day of the week, zones, timestamp, demand from lastweek(at particular timestamp) and demand from yesterday(at particular timestamp). Detailed in the code.
  • There are 3 jupyter notebooks. Please run 1_EDA.ipynb, then 2_Preprocessing.ipynb, and 3_Model.ipynb.
  • Notebook 2_Preprocessing.ipynb will transform the given data into new csv file, which will be used in the third notebook 3_Model.ipynb
  • Due to file size restriction, the given dataset (training.csv) cannot be uploaded here. Please get it from here: https://s3-ap-southeast-1.amazonaws.com/grab-aiforsea-dataset/traffic-management.zip

grab-aiforsea-traffic's People

Contributors

seangsamkhann avatar

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.