Coder Social home page Coder Social logo

srushtii-m / jersey-city-citibike-demand-prediction Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.41 MB

Analyzing and predicting the demand for bikes using a Spatio-Temporal Graph Convolutional Network (STGCN) model.

License: MIT License

Jupyter Notebook 100.00%
bikeshare-data cnn-pytorch datacleaning eda network-analysis neural-network prediction stgcn

jersey-city-citibike-demand-prediction's Introduction

[ASTGCN and Causal Inference integrated code not uploaded here - Waiting for my independent research to be graded]

The prediction model aims to optimize the placement of bikes throughout the network using a SpatioTemporal Graph Convolutional Network (STGCN) model.

image image

Data Source

The data, sourced from Citi Bike's System Data, includes ride data from January 1, 2017, to October 1, 2023, in Jersey City.

Methodology

  • Data Preprocessing: Cleaning data, removing outliers, and preparing a final dataframe for analysis.
  • Exploratory Data Analysis: Conducting network visualization, centrality analysis, and heatmap generation to understand activity patterns.
  • Feature Selection: Including factors like time, station IDs, and number of rides, and encoding stations as features in the model.
  • Model Implementation: Utilizing a Spatio-Temporal Graph Convolutional Network (STGCN) to predict bike traffic (departures and arrivals) at each station.
  • Model Testing and Prediction: Evaluating the model's performance and predicting net rides for a set duration.

image

Results and Conclusions

  • The rides data is very sparse in the Jersey City impling that most of the rides are on limited ride paths through the city. The demand is generated by only by few stations.
  • The stations which are high in demand such as Grove St Path and Hamilton Park have have high degree of imbalance in terms of net rides.

Technical Challenges

  • Training the model for all the stations took a lot of computation time. In hindsight, we can run the model only for important stations to reduce the compute time.

jersey-city-citibike-demand-prediction's People

Contributors

srushtii-m avatar

Stargazers

 avatar  avatar

Watchers

 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.