Skip to content

shubhadapaithankar/Prediction-of-Bike-Rental-Count

Repository files navigation

Prediction of Bike Rental Count

Prediction of Rental Bikes Count using ML algorithm

Team information :

  1. Sai Manasa Yadlapalli (SJSU ID: 015999659)
  1. Shubhada Sanjay Paithankar (SJSU ID: 016013283)

Deployment on Heroku:

https://cmpe255-rental-bike-prediction.herokuapp.com/

Web App Snippets:

Introduction :

To ensure that individuals can acquire rides when needed, a variety of bike firms, like Zagster and Lime Bikes , are present all throughout the United States. As a result of some people switching to these cost-efficient and environmentally friendly modes of transportation, there is a rise in demand for these bikes. This change has caused the demand for bikes to vary across different geographic areas.

High level Architecture:

Problem Statement:

  1. Knowing the appropriate number of bikes to station at various locations at various times in order to maximize profit and provide rides for customers is one of the issues these businesses confront. People may occasionally miss out on these bikes because they are unavailable. On the other hand, there are times when there is less need for these motorcycles and they are widely available but unutilized. Dealing with these situations and comprehending the demand for bikes on different days and in different situations becomes crucial.
  2. Due to the present market crisis, US bike sharing has recently seen significant drops in its revenue. Many bicycle rental businesses are therefore having trouble remaining viable in the current market. As a result, it has made the conscious decision to create a business plan that would help it increase income as soon as the economy and market conditions are stable again. Additionally, they intend to grow their company outside of the US. As a result, they need its potential partners to predict how many bikes customers will rent under certain circumstances.

Data Science and Machine Learning

With the help of machine learning and deep learning, this problem could be addressed and this would ensure that the demand for the bikes are known beforehand and thus, the companies could ensure that there are adequate bikes present in different locations.

This project aims to use the independent factors at hand to model the demand for shared bikes. It will be used by the management and potential partners to comprehend how different features affect needs differently. To fulfill the customer's expectations and demand levels, they can adjust the business plan accordingly. Additionally, the model will help management comprehend demand patterns in a new market. Rental Bike is based on various features like:

  • Weather (cloudy, windy, rainy)
  • Season (Summer, Winter)
  • Temperature
  • Humidity
  • Wind Speed
  • Holiday (Yes/No)

Exploratory Data Analysis (EDA)

Therefore, bike rental companies would be able to comprehend the total number of bikes that must be present at different points in time and, consequently, be able to forecast the demand for bikes in the future with the aid of "data visualization" and "machine learning." As a result, the businesses would guarantee that they save millions of dollars while providing the proper assistance to various needy individuals.

Metrics

We analyze metrics that account for continuous output variables because this is a regression problem and they base their estimates on the difference between the actual and expected output. The metrics utilized for this prediction are listed below.

There are a large number of machine learning models used in the prediction of the demand for Bikes. Below are the models that were used for prediction.

Machine Learning Predictions and Analysis

  • In order for us to perform the machine learning analysis, it is crucial to be aware of some of the features that are present in the data.
  • To understand some of the underlying features, we will use a variety of data visualizations. Once we have a firm grasp on these features, we will use a variety of machine learning models to estimate the demand for bikes based on these features.
  • After receiving the machine learning predictions, we will employ several techniques that may help us in the process of producing the models that may be applied in various ways by businesses.
  • Therefore, where the demand for the bikes is predicted in advance using machine learning and deep learning, respectively, this would save the bike rental companies a lot of time and money. Google Colab Link

Steps to run locally:

  1. git clone https://github.com/shubhadapaithankar/Prediction-of-Bike-Rental-Count.git
  2. cd Prediction-of-Bike-Rental-Count
  3. Install the python dependencies using pip install -r requirements.txt
  4. Now, run the applictaion using either of the commands python app.py or flask run

Conclusion:

  • The models that were able to perform the best for predicting the bike demand are Gradient Boosting Decision Regressor and Deep Neural Networks.
  • Exploratory Data Analysis (EDA) was performed to ensure that there is a good understanding of different features and their contribution to the output variable respectively.
  • The best machine learning models were able to generate a mean absolute error (MAE) of about 23 which is really good considering the scale of the problem at hand.

Future Scope:

Since the current dataset only includes data for Washington, D.C., our future goals would be to forecast the number of bikes that will be rented and to shuffle those rentals based on any place and region across the entire United States.

Project Documents:

Reference:

  1. https://www.kaggle.com/datasets/marklvl/bike-sharing-dataset?search=bike+demand+Washington
  2. https://flask.palletsprojects.com/en/2.2.x/
  3. https://www.youtube.com/watch?v=4_EO4RwABbA

Task Distribution:

Screen Shot 2022-12-12 at 1 03 07 PM

About

Prediction of Bike Rental Count

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published