An open API service indexing awesome lists of open source software.

https://github.com/teresakae/pathspredict

A web-based application with a machine learning model to predict congestion levels for KRL and Transjakarta in Jakarta, helping commuters choose the least crowded transport option.
https://github.com/teresakae/pathspredict

commuting-analysis commuting-patterns traffic-analysis

Last synced: about 1 month ago
JSON representation

A web-based application with a machine learning model to predict congestion levels for KRL and Transjakarta in Jakarta, helping commuters choose the least crowded transport option.

Awesome Lists containing this project

README

          

## ๐Ÿš† PathsPredict - KRL & TransJakarta Congestion Predictor ๐ŸšŒ

A web-based application with a machine learning model to predict congestion levels for KRL and Transjakarta in Jakarta, helping commuters choose the least crowded transport option.


This project was developed as an End-of-Semester Project for "Sistem Informasi Cerdas" course by ARK (Andrew, Runi, Kae)

## ๐Ÿš€ Features
* **Congestion Prediction**: Utilizes a Logistic Regression model to predict "TINGGI" (High) or "RENDAH" (Low) congestion levels for KRL and Transjakarta.
* **Predictive Dashboard**: Forecasts congestion for upcoming days based on historical and real-time data.
* **Data Management (CRUD)**: Allows for adding, viewing, updating, and deleting historical ridership data.
* **Data Export**: Exports historical and crowdsourced data to an Excel file for further analysis.
* **Real-time Data Integration**: Continuously updates predictions based on new data to maintain accuracy.

## ๐Ÿ›  Tech Stack
* **Backend**: Python (Flask, Pandas, scikit-learn), Joblib.
* **Database**: In-memory simulation.
* **Frontend**: HTML, CSS, JavaScript.
* **Data Source**: Satu Data Jakarta (2024-2025).

## ๐Ÿ“‚ Folder Structure
โ”œโ”€โ”€ Jumlah_Penumpang_Angkutan_Umum_yang_Terlayani_Perhari.csv

โ”œโ”€โ”€ app.py

โ”œโ”€โ”€ categorical_features.pkl

โ”œโ”€โ”€ index.html

โ”œโ”€โ”€ logistic_regression_penumpang_pipeline.pkl

โ”œโ”€โ”€ model_features_with_moda.pkl

โ”œโ”€โ”€ model_training.py

โ””โ”€โ”€ numerical_features.pkl

## ๐Ÿงช Getting Started
`git clone
cd PredictJakarta
pip install -r requirements.txt
python app.py
Visit http://localhost:5000 to explore the application.`

## โœ… Future Improvements
* Integrate with a real live database for persistent data storage.
* Implement a more sophisticated machine learning model (e.g., a time-series model like ARIMA) for more accurate long-term predictions.
* Build a more interactive and user-friendly front-end dashboard with data visualizations (e.g., charts and graphs).
* Add a feature to predict congestion for specific routes or times of day, rather than just daily averages.