Authors: Nandeshvar R K, Dr. Janaki K, Avin Joseph, K Sakthivel, Shiyam Anandharajan S
DOI Link: https://doi.org/10.22214/ijraset.2023.52768
Certificate: View Certificate
Given the complexity of urban transportation networks and the multiple variables that might affect journey times, estimating the length of cab rides in New York City (NYC) is a difficult process. In this study, we provide a unique method for resolving this issue that makes use of machine learning techniques and a wide range of attributes gleaned from taxi trip data. We start by gathering a sizable collection of historical records of NYC taxi trips,providing specifics like pick-up and drop-off points, timestamps, and lengths of trips. To deal with outliers, missing values, and geographical and temporal irregularities, we preprocess the data. Furthermore, we design a broad range of characteristics, such as geographic coordinates, time of day, day of the week, and weather conditions, to capture the spatial, temporal, and contextual elements of each journey. Then, using gradient boosting methods, we create a prediction model that efficiently uncovers the intricate patterns seen in the data. We carefully adjust the model\'s hyperparameter to enhance performance and use cross-validation techniques to guarantee resilience. In addition, we apply ensemble techniques to enhance prediction precision and minimise model bias. We conduct lengthy tests on a held-out test set and compare the performance of our model to a number of baseline techniques frequently employed in triptime prediction in order to assess the efficacy of our suggested strategy. The outcomes show that our strategy works better than the competition, with lower prediction errors and higher accuracy. We also do interpretability assessments to learn more about the variables that have the most impact on estimates of trip time. Our results demonstrate the potential of feature engineering and M L approaches for precise and trustworthy taxi trip length prediction in NYC. The suggested method not only helps taxi service companies by allowing them to more accurately predict journey lengths, but it also improves customer experience by giving more precise travel time estimates. Additionally, our approach may be used as a starting point for future studies in the field of urban transportation prediction, enabling better efficiency and planning in urban mobility networks.
I. INTRODUCTION
New York City taxi trip duration prediction using machine learning is a challenging task due to the large number of factors that can cause changes to the duration of a trip, such as the time of day, the traffic conditions, and the distance traveled. M L can be used to predict taxi trip duration by using historical data to train a model that can learn the relationship between the various factors and the duration of a trip.There are a variety of M L algorithms that can be used for taxi trip duration prediction, such as decision trees, random forests and support vector machines. The best algorithm for a particular application will depend on the specific data set and the desired accuracy. Once a model has been trained, it can be used to predict the duration of future trips. This information can be used to improve the efficiency of taxi dispatching and to provide riders with more accurate estimates of their travel time.
Here are some of the benefits of using machine learning to predict taxi trip duration, Improved efficiency of taxi dispatching: By predicting the duration of future trips, taxi companies can more efficiently dispatch taxis to riders. This can help to reduce wait times for riders and improve the overall taxi experience, More accurate estimates of travel time: By providing riders with more accurate estimates of their travel time, taxi companies can help to improve the rider experience. This may boost rider satisfaction and loyalty. Decreased fuel usage Taxi firms can limit the amount of gasoline lost by idle cabs by forecasting the duration of future journeys. This can help to reduce the environmental impact of taxi transportation.
II. RELATED WORKS
III. METHODOLOGY
Our models only accept numeric characteristics as input. Therefore, the next step is to transform the characteristics into numbers. It is now time to begin preparing our data for input into the model, but it is crucial to utilise the variables first to conduct some feature engineering. Here are a few of my suggestions for new variables and my justifications.
The difference in latitude between the pickup and drop-off locations will provide information on the distance travelled, which may be predictive. The difference in longitude between the pickup and dropoff locations for the same cause Haversine distance between the coordinates for the pickup and drop off to measure the actual distance travelled Pickup minute: given that the pickup hour is a significant factor, the pickup minute may have been predictive.The day of pickup is the same as above. In order to conveniently extract characteristics like day, week, month, and year, we must transform the date and time features from csv files into the date and time format utilised by Python.
1) Test Train Split: We have all numbers in our dataset now. Time to delve into model building. But before that, we need to finalise a validation strategy to create the train and test sets. Here, we will do a random split and keep one third of the data in test set and remaining two third of data in the train set
2) Mean Prediction : Before we go on to try any machine learning model, let us look at the performance of a basic model that just says the mean of trip duration in the train set is the prediction for all the trips in the test set.
3) Cross validation: Cross-validation is an important topic in data modelling. It basically states that before finalising the model, leave a sample on which the model was not trained and test it on this sample. From the total population, we take k equal samples. Now we validate models on 1 sample and train models on k-1 samples. After that, during the second iteration, the model is trained using a separate sample that serves as validation. We essentially created a model for each sample over the course of k iterations and used each one as validation. This is a technique to lessen selection bias and prediction power variance.
4) Linear Regression: Linear regression is a statistical approach for modelling the connection between one or more independent variables and a variable that is dependent. The variable that is dependent is the one being predicted, while the independent variables are the ones utilised for foreseeing the dependent variable.
Machine learning has been shown to be an effective way to predict taxi trip duration in New York City. M L models can be trained on historical data to learn the relationships between different features, such as the pickup and dropoff locations, the time of day, the day of the week, and the current traffic conditions. Once a machine learning model is trained, it can be used to predict the duration of future taxi trips with a high degree of accuracy. The accuracy of machine learning models for taxi trip duration prediction can be improved by using more features and by using more advanced machine learning methods. For example, machine learning models can be trained on data from multiple sources, such as historical taxi data, weather data, and traffic data. Additionally, machine learning models can be trained using more advanced machine learning algorithms, such as deep learning algorithms. The use of machine learning to predict taxi trip duration has a number of benefits. First, it can help taxi companies to improve their dispatch algorithms. By knowing the expected duration of a trip, taxi companies can send taxis to pick up passengers more efficiently. Second, it can help riders to get a more accurate estimate of the duration of their trip before they book it. This can help riders to plan their trips more effectively and to avoid surprises. Finally, it can help to improve the overall efficiency of the taxi system. By reducing the amount of time that taxis spend waiting for passengers, machine learning can help to reduce traffic congestion and to improve air quality. Overall, machine learning is a promising approach for predicting taxi trip duration in New York City. Machine learning models can be used to improve the efficiency of taxi systems and to provide better service to riders. also be assessed using more complex datasets with a wider range of variables.
[1] \"New York City Taxi Trip Duration Prediction Using Machine Learning\" by ShortHills Tech (2021)https://medium.com/@ShortHills_Tech/nyc-taxi-trip-duration-prediction-using-machine-learning-a92874bd761 [2] Almathami Hassan Khader Y, Win Khin Than, Vlahu-Gjorgievska Elena (2020) Barriers and facilitators that influence telemedicine-based, real-time, online consultation at patients’ homes: systematic literature review’. J Med Internet Res 22(2):16407, [3] Ayyappa Y, Bekkanti A, Krishna A, Neelakanteswara P, Basha C (2020) “Enhanced and Effective Computerized Multi Layered Perceptron based Back Propagation Brain Tumor Detection with Gaussian Filtering”, (2020) Second International Conference on Inventive Research in Computing Applications (ICIRCA). [4] Butgereit L, Martinus L (2019) “A Comparison of Four Open Source Multi-Layer Perceptrons for Neural Network Neophytes”, In: 2019 International Conference on Advances in Big Data, Computing and Data Communication Systems (icABCD). Winterton, South Africa. [5] Cao J, Cen G, Cen Y, Ma W (2020) “Short-Term Highway Traffic Flow Forecasting Based on XGBoost”, In: 2020 15th International Conference on Computer Science & Education (ICCSE). Delft, [6] Chinmay C, Rodrigues Joel JPC (2020) A comprehensive review on device-to-device communication paradigm: trends, challenges and applications. Wireless Personal Commun 114(1):185–207 [7] Duan Zongtao, Zhang Kai, Chen Zhe, Liu Zhiyuan, Tang Lei, Yang Yun, Ni Yuanyuan (2019) Prediction of city-scale dynamic taxi origin-destination flows using a hybrid deep neural network combined with travel time. IEEE Access 7:127816–127832 [8] T. Wang, A. C. Bovik, A. Sheikh, and E. P. Simoncelli, \"Image quality assessment: from error visibility to structural similarity,\" IEEE Transactions on Image Processing, vol. 13, no. 4, pp. 600-612, 2004. [9] I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. WardeFarley, S. Ozair, A. Courville, and Y. Bengio, \"Generative Adversarial Networks,\" arXiv preprint arXiv:1406.2661, 2014.
Copyright © 2023 Nandeshvar R K, Dr. Janaki K, Avin Joseph, K Sakthivel, Shiyam Anandharajan S. 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 : IJRASET52768
Publish Date : 2023-05-22
ISSN : 2321-9653
Publisher Name : IJRASET
DOI Link : Click Here