Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shhiivvaam/traffic_prediction
This project explores the application of advanced neural network architectures, including Multi-Layer Perceptron (MLP), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU), to forecast traffic volume. 👍👍✅
https://github.com/shhiivvaam/traffic_prediction
conv1d conv2d keras lstm matplotlib numpy pandas seaborn sklearn statsmodels tensorflow
Last synced: 7 days ago
JSON representation
This project explores the application of advanced neural network architectures, including Multi-Layer Perceptron (MLP), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU), to forecast traffic volume. 👍👍✅
- Host: GitHub
- URL: https://github.com/shhiivvaam/traffic_prediction
- Owner: shhiivvaam
- Created: 2024-02-17T09:04:56.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-17T09:28:56.000Z (12 months ago)
- Last Synced: 2024-04-23T13:38:53.954Z (10 months ago)
- Topics: conv1d, conv2d, keras, lstm, matplotlib, numpy, pandas, seaborn, sklearn, statsmodels, tensorflow
- Language: Jupyter Notebook
- Homepage: https://github.com/shhiivvaam/SME_Traffic_Prediction
- Size: 555 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## || Enhanced Traffic Volume Prediction Using Neural Networks || ✅
Welcome to our repository dedicated to advancing traffic prediction through state-of-the-art neural network architectures, including the Multi-Layer Perceptron (MLP), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU). Our models are meticulously trained and evaluated on extensive historical traffic data sourced from diverse junctions.
### Dataset Details
Our dataset, meticulously curated from [mention source or collection methodology], comprises a wealth of historical traffic data spanning various junctions over specific time frames. Each record encapsulates critical attributes like DateTime, Vehicle Count, and Junction ID. Before model training commences, we conduct essential preprocessing steps, including:
* **Feature Engineering:** Unveiling pertinent features like year, month, day, hour, and day of the week from DateTime.
* **Normalization:** Standardizing numerical features to ensure uniform model training.
* **Data Segmentation:** Partitioning the dataset into training and testing subsets to facilitate rigorous model evaluation.### Getting Started
To kickstart the project effortlessly:
1. **Clone the Repository:**
git clone https://github.com/yourusername/traffic-prediction.git
2. **Install Dependencies:**
pip install -r requirements.txt
3. **Execute the Main Script:**
python traffic_prediction.py
### Model Architectures
#### MLP (Multi-Layer Perceptron)
The MLP model is a formidable feedforward neural network, meticulously engineered to discern intricate relationships between input features and traffic volume. Key features include:
* Dense layers empowered by ReLU activation functions.
* Dropout layers for effective regularization and prevention of overfitting.
* Stochastic Gradient Descent (SGD) optimizer with a dynamic learning rate schedule.#### GRU (Gated Recurrent Unit)
GRU, a sophisticated variant of recurrent neural networks, excels in capturing temporal dependencies within sequential data. Our GRU model boasts:
* Multiple GRU layers adept at uncovering temporal patterns in traffic data.
* Strategically placed dropout layers to bolster generalization.
* SGD optimizer with a meticulously crafted learning rate schedule.#### LSTM (Long Short-Term Memory)
Renowned for its prowess in capturing long-term dependencies, LSTM stands tall among recurrent neural networks. Our LSTM model boasts:
* LSTM layers furnished with memory cells to retain and update information over time.
* Dropout layers for preemptive overfitting mitigation.
* SGD optimizer fine-tuned with a dynamic learning rate schedule for efficient convergence.### Model Evaluation
We meticulously evaluate model performance using industry-standard metrics such as Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE). These metrics provide invaluable insights into the accuracy and robustness of our models. Additionally, we generate comparative plots to visually juxtapose predicted traffic volumes against actual values, facilitating qualitative assessment.