Prediction of Rental Bikes Count using ML algorithm
- Sai Manasa Yadlapalli (SJSU ID: 015999659)
- Email: [email protected]
- Shubhada Sanjay Paithankar (SJSU ID: 016013283)
- Email: [email protected]
https://cmpe255-rental-bike-prediction.herokuapp.com/
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.
- 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.
- 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.
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)
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.
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.
- Deep Neural Networks
- K Nearest Neighbors
- Partial Least Squares (PLS) Regression
- Decision Tree Regressor
- Gradient Boosting Regressor
- Logistic Regression
- Long Short Term Memory (LSTM)
- 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
- git clone
https://github.com/shubhadapaithankar/Prediction-of-Bike-Rental-Count.git
cd Prediction-of-Bike-Rental-Count
- Install the python dependencies using
pip install -r requirements.txt
- Now, run the applictaion using either of the commands
python app.py
orflask run
- 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.
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.