Ijraset Journal For Research in Applied Science and Engineering Technology
Authors: Srujan H J, Swetha M, Tejaswini T P, Shreya B B, Dr. Naveen Kumar K R, Prof. Anu C S, Dr. Arun Kumar G H
DOI Link: https://doi.org/10.22214/ijraset.2022.45682
Certificate: View Certificate
Many companies like Ola, Uber, etc., uses Artificial Intelligence and machine learning technologies to find the solution of accurate fare prediction problem. We are using random forest regression algorithm, which is useful for prediction modeling to get the most accurate value. The project will be helpful to those, who are involved in fare forecasting. In previous era, the fare was only dependent on distance, but with the enhancement in technologies the cab’s fare is dependent on a lot of factors like time, location, number of passengers, traffic, number of hours, base fare etc. The project is based on Supervised Learning whose one application is prediction, in machine learning. The project aims to study the predictive analysis, which is a method of analysis in machine learning.
I. INTRODUCTION
Cab services are a central transportation method in almost all urban areas. Like so many other fields today the cab business is undergoing a rapid digital transformation with new actors like Ola/Uber taking market shares with innovative digital products.
Many organizations do not have a direct role in travel and tourism but offer related products and services. Some examples would be offering travel insurance, parking facilities at airports, theatre and event tickets, car hire, and travel by rail or coach to airports, etc. at competitive rates.
Uber has been a first-rate source of journey for people dwelling in urban regions. Some people don’t have their cars at the same time as a few don’t drive their cars intentionally because of their busy schedule. So, special types of people are the usage of the offerings of Uber and other taxi offerings. In this text, it's going to take you thru the consequences that Uber faces and the solution for the problem found with the usage of Python. The dataset consists of facts of approximately more than thousand Uber pickups in Coimbatore from 2010 to 2021. We can do extra with this dataset in preference to just analysing it. In this segment, it's going to take you thru Uber trips Problems and solution using Python. Uber has emerged as leading enterprise within the provision of recent transportation alternatives within the coeval international. Uber is particularly within the commercial enterprise of networking and all the organization's emerging operations may be gestate in phrases of in reality presenting a median thru which the relevant call for can meet up with the applicable supply. Uber is the best potency company to evaluate and publish real global supportable data[1]. So fare amount is our target variable and rest of the variables are our predictor variables. Here in this project we used two different datasets namely cab-rides and weather dataset to predict dynamic prices of cabs using supervised machine learning model.
II. LITERATURE SURVEY
This literature survey aims to observe predictive evaluation, which is a method of analysis in Machine Learning. Many corporations like Ola, Uber, and many others makes use of Artificial Intelligence and system learning technology to find the answer to correct fare prediction hassle.
A survey suggests that the Flight and Cab fares vary in step with different factors like place, time of the day, and so forth. Cabs as well, wherein the fare depends upon the wide variety of passengers, visitors, so on. The vendor has facts about all of the factors, but the buyers can get admission to the records that is constrained and we cannot expect the price lists. Uber and Ola use factors like traffic in a specific vicinity, and call for and supply elements motive of the paper is to investigate the factors that have an impact on the deviation in the tariffs and the way they’re associated with the trade inside the prices.
The patterns and functions of the transportation system, including traditional method of tour which includes taxis and subways as well as revolutionary gear like ride-hailing structures (Uber, Lyft, etc.), are critical studies subjects in economics, transportation, and operational studies fields.
By calculating and analysing the effect of those elements on Uber riders' fee amounts, we achieve conclusions which might be instructive and useful in practice. Utilizing huge-scale urban facts sets to are expecting taxi and Uber passenger's demand in cities is valuable for designing higher taxi dispatch structures and enhancing taxi services. In this paper, we are expecting taxi and Uber demand using real-global statistics sets. Our technique includes two key steps. First, we use temporal-correlated entropy to measure the call for regularity and achieve the maximum predictability. Second, we implement and verify 5 famous representative predictors (Markov, LZW, ARIMA, MLP, and LSTM) in accomplishing most predictability.
Using Spatio-temporal time series fashions can assist us to better recognize the demand for e-hailing services and to expect it greater accurately. This paper analyses the prediction overall performance of 1 temporal model (vector autoregressive (VAR)) and spatio-temporal fashions (Spatial-temporal autoregressive (STAR); least absolute shrinkage and selection operator applied on STAR (LASSO-STAR)) and for distinctive scenarios (primarily based on the number of time and space lags), and carried out to each rush hours and non-rush hours periods. The effects show the want of considering spatial fashions for taxi demand.
This model is able to predict Uber surge multipliers, the overall mean and the historical average in all but 3 of the 49 locations in Pittsburgh and outperforming three nonlinear methods in 28 of the 49 locations. Cross-correlation of Uber and Lyft surge multipliers is also explored.
III. METHODOLOGY
The above figure depicts the methodology for the dynamic prediction of cab price.
a. Model selection is the process of selecting one final machine learning model from among a collection of candidate machine learning models for a training dataset. Model selection is a process that can be applied both across different types of models and across models of the same type configured with different model hyper parameters. There are several Machine learning algorithms to be used depending on the data you are going to process such as images, sound, text, and numerical values. The algorithms that you can choose according to the objective that you might have it may be Classification algorithms or Regression algorithms.
b. Some of the regression models are: Linear Regression, Logistic Regression, Random Forest Regression/Classification, Decision Tree Regression/Classification.
c. A Random Forest is an ensemble technique capable of performing both regression and classification tasks with the use of multiple decision trees and a technique called Bootstrap and Aggregation, commonly known as bagging. The basic idea behind this is to combine multiple decision trees in determining the final output rather than relying on individual decision trees.
5. Train and Test Data: For training a model we initially split the model into 2 sections which are “Training data” and ‘’Testing data”. The classifier is trained using training data set, and then tests the performance of classifier on unseen test data set.
6. Training set: The training set is the material through which the computer learns how to process information. Machine learning uses algorithms to perform the training part. Training data set is used for learning and to fit the parameters of the classifier.
7. Test set: A set of unseen data used only to assess the performance of a fully-specified classifier.
8. Evaluation: Model Evaluation is an integral part of the model development process. It helps to find the best model that represents the data and how well the chosen model will work in the future. To improve the model hyper-parameters of the model can be tuned and the accuracy can be improved. Confusion matrix can be used to improve by increasing the number of true positives and true negatives. The output is predicted by analysing the test data as input along with test data output and then the output is displayed.
9. Interface: A web interface is built to take input and display an output. Flask language is used to build a web interface and pickle library is used to integrate both model and web page
IV. MODEL DESIGN
Random Forest is a popular machine learning algorithm that belongs to the supervised learning technique. It can be used for both Classification and Regression problems in ML. It is based on the concept of ensemble learning, which is a process of combining multiple classifiers to solve a complex problem and to improve the performance of the model. As the name suggests, "Random Forest is a classifier that contains a number of decision trees on various subsets of the given dataset and takes the average to improve the predictive accuracy of that dataset." Instead of relying on one decision tree, the random forest takes the prediction from each tree and based on the majority votes of predictions, and it predicts the final output. The greater number of trees in the forest leads to higher accuracy and prevents the problem of overfitting.[6]
V. RESULTS
This segment provides a detailed description of the implementation results as well as the performance of the proposed system.
Cab price prediction can be a challenging task due to the high number of attributes that should be considered for the accurate prediction. The major step in the prediction process is collection and pre-processing of the data. The proposed system is a sequential learning model with recurrent machine learning for predicting the cab price in different areas in the city. Learning from the past historical data, the demand prediction is done for the location. Cab rides and weather data set is used to train our model. This model gives the prediction of cab price. This work can be extended in the future by adding more input such as holidays, festivals etc. Cabs can be organized and send based on the prediction of the model. In addition, it can save so much time and energy that is currently being spent by cabs to find passengers.
[1] https://www.thesmartbridge.com/Aboutus [2] Banerjee, Pallab & Kumar, Biresh & Singh, Amarnath & Ranjan, Priyeta & Soni, Kunal.(2020). Predictive Analysis of Taxi Fare using Machine Learning. International Journal of Scientific Research in Computer Science, Engineering and Information Technology. 373-378.10.32628/CSEIT2062108. [3] Chao, Junzhi. (2019). Modeling and Analysis of Uber’s Rider Pricing.10.2991/aebmr.k.191217.127. [4] Faghih, Sabiheh & Safikhani, Abolfazl & Moghimi, Bahman & Kamga, Camille. (2017). Predicting Short-Term Uber Demand Using Spatio-Temporal Modeling: A New York CityCase Study. [5] Khandelwal, K., Sawarkar, A. ., & Hira, S. (2021). A Novel Approach for Fare Prediction Using Machine Learning Techniques. International Journal of Next-Generation Computing, 12(5). https://doi.org/10.47164/ijngc.v12i5.451 [6] Kunal, Arora & Kaur, Sharanjit & Sharma, Vinod. (2021). Prediction of Dynamic Price of Ride-On-Demand Services Using Linear Regression. International Journal of Computer Applications & Information Technology. 13. 376-389.s [7] https://machinelearningmastery.com/a-gentle-introduction-to-model-selection-for-machine-learning/ [8] Zhao, Kai & Khryashchev, Denis & Huy, Vo. (2019). Predicting Taxi and Uber Demand in Cities: Approaching the Limit of Predictability. IEEE Transactions on Knowledge and Data Engineering. PP. 1-1. 10.1109/TKDE.2019.2955686.
Copyright © 2022 Srujan H J, Swetha M, Tejaswini T P, Shreya B B, Dr. Naveen Kumar K R, Prof. Anu C S, Dr. Arun Kumar G H. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Paper Id : IJRASET45682
Publish Date : 2022-07-16
ISSN : 2321-9653
Publisher Name : IJRASET
DOI Link : Click Here