Giter Site home page Giter Site logo

crowd_flow_prediction's Introduction

AdjNet: a deep learning approach for Crowd Flow Prediction

Python impletmentaion of the thesis AdjNet: a deep learning approach for Crowd Flow Prediction (Link)

Introduction

We propose AdjNet (Adjacency Matrix Neural Network), which solves the Crowd Flow Prediction problem using an approach based on Graph Convolutional Networks (GCN) and Convolutional Neural Networks (CNN). In the first stage, we first represent the area taken into account using different tessellations. In the second stage, we train our model using the New York City Bike Share dataset to predict flows among regions.

Architecture of CrowdNet.

Result

We evaluate our model using different tessellation, evaluating them exploiting the RMSE metric. We compare it using as baseline another Deep Learning approach named STResNet (Link).

RMSE

Tile Size
750m 1000m
1500m
AdjNet STResNet AdjNet STResNet AdjNet STResNet
Time intervals 15min 1.71 1.69 2.76 2.35 3.73 3.35
30min 3.69 2.65 5.23 4.85 8.93 5.64
45min 4.34 3.67 6.68 5.63 11.3 10.91
60min 5.18 5.44 8.53 9.38 11.1 11.66
Performance of the ST-ResNet and CrowdNet models for crowd flow prediction problem on the BikeNYC dataset.

Images

A visual comparison of the mean real crowd inflows with the mean crowd inflows predicted by STResNet and AdjNet is provided by the following image.

Comparison of mean real crowd inflows (center) with those predicted by CrowdNet (left) and STResNet (right) using tile size of 1000m and time intervals of 30 minutes.

Train

Dataset

Flow data available online

Install

At first you need to clone this repository:

$ git clone https://github.com/jonpappalord/crowd_flow_prediction
$ cd crowd_flow_prediction

Create a new environment:

$ python -m venv yourenvname 
$ source yourenvname/bin/activate

Launch the following command to install the required packages

$ pip install -r requirements.txt

Usage

We have prepared an instance for running the model, that is main.py.

$ python main.py

crowd_flow_prediction's People

Contributors

cardiamc avatar jonpappalord avatar

Stargazers

 avatar AmandaHe1998 avatar hollowgl avatar Lynda Starkus avatar zrg1048 avatar Francesco Sabiu avatar  avatar  avatar Okan Özşahin avatar Roman avatar Royan Nayoan avatar  avatar  avatar Marquez_Jue Hou avatar

Watchers

 avatar Massimiliano Luca avatar  avatar

crowd_flow_prediction's Issues

Data Download

Hi
I am trying to download the BikeNYC data name : NYC14_M16x8_T60_NewEnd.h5,
based on Readme: Download data from OneDrive or BaiduYun
But I could not. No file in onedirve. and the Chinese website ask for sign up with Chinese phone number.
Can anyone help please?

Thanks

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.