This project serves as the final project for the Postgraduate Course in Data Science and Machine Learning at the University of Barcelona. It was developed as part of the curriculum to demonstrate the application of machine learning techniques in solving real-world problems.
The project focuses on predicting the availability of docked bikes at various bike-sharing systems in Barcelona city, utilizing datasets from the Barcelona Open Data platform.
The project directory looks like this:
├── README.md
│
├── 1_🏠_Home.py <- Script to run a multi-page web app created with Streamlit.
│
├── pages <- Secondary pages of the web app.
│ ├── 2_📊_EDA.py
│ └── 3_🔮_Cycle-seeker.py
│
├── data
│ ├── processed <- The final, canonical data sets for modeling.
│ └── raw <- The original, immutable data dump.
│
├── models <- Trained and serialized models.
│
├── notebooks <- Jupyter notebooks.
│
├── reports
│ └── figures <- Generated graphics and figures.
│
├── requirements.txt
│
├── setup.py <- Makes project pip installable (pip install -e .).
│
└── src <- Source code for use in this project.
├── __init__.py
│
├── components <- Scripts to download or generate data.
│ ├── __init__.py
│ └── data_collection.py
│
├── pipeline <- Script to make predictions from metadata_sample_submission.csv file.
│ ├── __init__.py
│ ├── artifacts <- Model predictions.
│ └── make_prediction.py
│
└── utils.py <- Helper functions used in the project.
To set up the project, follow these steps:
- Clone this repo:
git clone https://github.com/jadelaossa/bike-availability-prediction.git
- Create and activate virtual enviroment:
conda create -n bike-availability-prediction python=3.9
conda activate bike-availability-prediction
- Install the requiered dependencies:
pip install -r requirements.txt
The data used in this project can be obtained from the Open Data BCN platform. Follow the links below to access and download the required datasets:
- Bicing station status can be found here.
- Bicing stations information can be found here.
- Statistical resources of the meteorological stations of Barcelona can be found here.
In this project, we applied several machine learning algorithms to predict bike availability. The best performing model is a combination of an XGBoost model and a neural network (NN), where we employed an ensemble technique. The ensemble model leverages the predictions from both the XGBoost model and the NN and calculates the average of these predictions to obtain the final prediction.
This project was developed by:
- Dorleta Orúe-Echevarría Iglesias
- María Alejandra Zalles Hoyos
- Patricia Merchán Guedea
- Javier Alejandro de la Ossa Fernández