The Traffic-Based Route Guidance System (TBRGS) is an intelligent traffic prediction and visualization application. It leverages machine learning models (RNN, LSTM, GRU) trained on historical SCATS traffic data to predict vehicle volumes and estimate travel times across Melbourne. Users can input an origin SCATS site, destination SCATS site, and a specific time of day to generate:
- Top 5 shortest travel-time routes based on live traffic conditions.
- An interactive map showing all predicted routes, SCATS nodes, and estimated durations.
The system is powered by Flask, TensorFlow, and Folium, and includes a user-friendly web interface with dropdown selection and visual feedback.
The system provides a comprehensive interactive map visualization that displays:
- Route Visualization: Top 5 predicted fastest routes color-coded by travel time
- SCATS Network: All traffic monitoring sites across Melbourne
- Real-time Predictions: ML-powered traffic volume forecasts for each route segment
- Interactive Elements: Clickable markers and route lines with detailed information
- Travel Time Estimates: Dynamic calculations based on current traffic predictions
The interactive map is generated using Folium and provides users with an intuitive visual representation of their route options, making it easy to compare different paths and make informed travel decisions.
Student Name | Student ID |
---|---|
Ananda Pathiranage Ruveen Thathsilu Jayasinghe | 104317649 |
Denver J Cope | 104738758 |
Faxiz Kallupalathingal | 104658733 |
Rahat Alam | 103810105 |
git clone https://github.com/ruvxn/Traffic-Guidance-System.git
cd Traffic-Guidance-System
python3 -m venv TBRGSvenv
source TBRGSvenv/bin/activate # On Windows: TBRGSvenv\Scripts\activate
pip install -r requirements.txt
python app.py
Then open your browser and go to:
http://127.0.0.1:5000/
- SCATS input dropdown with nicknames for easy selection
- ML-powered traffic volume predictions (LSTM, RNN, GRU)
- A* and Yen's algorithm integration
- Interactive map via Folium
- Top 5 predicted fastest paths shown with color-coded lines and travel time
├── app.py # Flask backend
├── main.py # Core route & map logic
├── main_map.py # Map generation logic - Initial setup
├── test.ipynb # Testing notebook
├── generated_astar_input.txt # Automatically generated A* algorithm input data
├── output.png # model performance screenshot
├── visualisation.png # Interactive map visualization screenshot
├── Assignment2B final .pdf # Final project report
├── templates/
│ ├── index.html # User input form
│ └── result.html # Routes + embedded map
├── static/ # Static web assets
├── datasets/ # Raw and processed SCATS data
├── models/ # Trained ML models (LSTM, RNN, GRU, TCN)
├── src/ # A* search and helper functions
├── notebooks/ # Jupyter notebooks for analysis
├── visualisation/ # Visualization components
├── TBRGSvenv/ # Virtual environment
├── requirements.txt # Python dependencies
└── README.md # This file
- The dataset and ML models must be preloaded before first run.
- System uses historical data from 2006 for predictions.
- Map and routes are dynamically generated per user request.
- Assignment2B final .pdf contains the complete project documentation and analysis.