Giter Site home page Giter Site logo

andy-zzf / bpnn-ngsim-congestion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doski-codes/bpnn-ngsim-congestion

0.0 0.0 0.0 69.47 MB

Using the Backpropagation Neural Network to predict traffic congestion data collected on the US-101 highway by the Next Generation Simulation in the USA.

Jupyter Notebook 100.00%

bpnn-ngsim-congestion's Introduction

Neural Network

1. Introduction

This is an implementation of Road Traffic Congestion prediction using a back propagation Neural Network.

The neural network is built using Keras with a Tensorflow backend.

The US101 Highway data from the Next Generation Simulation dataset (NGSIM) was used to build the model.

2. Environment

To install the packages used in this project and you would require conda.

After cloning the repository run the following commands:

cd bpnn-ngsim-congestion

then

conda env create -f environment.yml

Now run the command conda activate deeplearning_env to activate the conda environment with the required packages.

You can run conda deactivate to deactivate the environment.

3. Dataset

The fact sheet for the US101 Next Generation Simulation dataset (NGSIM) can be found here.

You can download the US101 metadata here.

The full dataset can also be located here.

The congestion label is calculated using the slow moving cars that are close to each other (i.e. vehicles with velocity and space headway below average are represented as in a congested environment - 1, and not congested otherwise - 0).

The congestion label is also calculated by clustering the data to group similar rows.

Other calculations for congestion label to be considered:

  • Using the total frames to determine congestion. The logic with this is that vehicles that move faster through the camera would be recorded in fewer frames hence no congestion, but vehicles in congested zones would record higher total frames since they spend more time in the eye of the cameras.

  • Calculating congestion using the above methods for each vehicle class to get results that are more specific to the vehicle types.

4. Model

  • Logistic Regression: This model was built with no fine tuning

  • Neural Network (Multi Layer Perceptron): This model was built with 3 layers; the input layer with 5 nodes, 1 hidden layer with 9 nodes and the output layer with 1 node.

5. Summary

This model is still subject to hyperparameter tuning and various data transformations to improve it's performance.

The model in this state can be used at congestion prone areas to predict when congestion would occur and to also test the effectiveness of the model.

bpnn-ngsim-congestion's People

Contributors

dependabot[bot] avatar doski-codes 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.