Enhancing prediction of ride-hailing fares using advanced deep learning techniques
DOI: https://doi.org/10.3846/ntcs.2025.23932Abstract
Fare prediction is a critical component of online ride-hailing services, as it significantly influences consumer decision-making and enhances operational efficiency for service providers. Reliable fare prediction is especially important in dynamic pricing environments, where fares are affected by factors such as demand fluctuations, traffic conditions, and weather patterns. This study aims to enhance fare prediction in ride-hailing services by utilizing advanced deep learning models. Using a comprehensive dataset of Uber and Lyft fare data collected in Boston during the winter of 2018, we evaluated three deep learning architectures: Long Short-Term Memory (LSTM), Bidirectional LSTM (BiLSTM), and BiLSTM with an attention mechanism (BiLSTM + Attention). The results showed that the BiLSTM + Attention model achieved the highest prediction accuracy, making it the most effective approach for fare prediction. However, its longer training time poses limitations for time-sensitive applications. Conversely, the LSTM model provided a strong balance between predictive accuracy and computational efficiency, making it a suitable alternative for scenarios that require faster model deployment. Additionally, our analysis identified key factors influencing fare variability – such as trip distance, time of day, and weather conditions – highlighting the importance of feature selection in enhancing model performance. By improving fare prediction accuracy, this study offers valuable insights for optimizing dynamic pricing strategies, enhancing consumer satisfaction, and helping ride-hailing platforms better manage supply–demand imbalances. These findings provide a foundation for future research exploring hybrid models and real-time data integration to further improve predictive capabilities in ride-hailing services.
Keywords:
fare prediction, ride-hailing, LSTM, BiLSTM, Attention mechanismHow to Cite
Share
License
Copyright (c) 2025 The Author(s). Published by Vilnius Gediminas Technical University.
This work is licensed under a Creative Commons Attribution 4.0 International License.
References
Alghamdi, D., Basulaiman, K., & Rajgopal, J. (2022). Multi-stage deep probabilistic prediction for travel demand. Applied Intelligence, 52(10), 11214–11231. https://doi.org/10.1007/s10489-021-03047-1
Ara, Z., & Hashemi, M. (2022). Predicting ride hailing service demand using autoencoder and convolutional neural network. International Journal of Software Engineering and Knowledge Engineering, 32(01), 109–129. https://doi.org/10.1142/S021819402250005X
Ashkrof, P., Homem de Almeida Correia, G., Cats, O., & van Arem, B. (2022). Ride acceptance behaviour of ride-sourcing drivers. Transportation Research Part C: Emerging Technologies, 142, Article 103783. https://doi.org/10.1016/j.trc.2022.103783
Battifarano, M., & Qian, Z. (2019). Predicting real-time surge pricing of ride-sourcing companies. Transportation Research Part C: Emerging Technologies, 107, 444–462. https://doi.org/10.1016/j.trc.2019.08.019
Castillo, J. C., Knoepfle, D., & Weyl, G. (2017). Surge pricing solves the wild goose chase. In Proceedings of the 2017 ACM Conference on Economics and Computation (EC ‘17). (pp. 241–242). Association for Computing Machinery. https://doi.org/10.1145/3033274.3085098
Chen, L., Thakuriah, P., & Ampountolas, K. (2021). Short-term prediction of demand for ride-hailing services: A deep learning approach. Journal of Big Data Analytics in Transportation, 3(2), 175–195. https://doi.org/10.1007/s42421-021-00041-4
Chen, Y., Cao, J., Feng, S., & Tan, Y. (2015). An ensemble learning based approach for building airfare forecast service. In 2015 IEEE International Conference on Big Data (Big Data) (pp. 964–969). IEEE. https://doi.org/10.1109/BigData.2015.7363846
Chou, K. S., Wong, K. L., Zhang, B., Aguiari, D., Im, S. K., Lam, C. T., Tse, R., Tang, S.-U., & Pau, G. (2023). Taxi demand and fare prediction with hybrid models: Enhancing efficiency and user experience in city transportation. Applied Sciences, 13(18), Article 10192. https://doi.org/10.3390/app131810192
Dogo, V., Garg, K., & Zheng, Y. (2020). Ride-share analysis in Boston city: A comparison between Uber and Lyft. In Proceedings of the 21st Annual Conference on Information Technology Education (SIGITE ‘20). Association for Computing Machinery. https://doi.org/10.1145/3368308.3415444
Eslami, G., & Ghaderi, F. (2024). A district-centric attention mechanism approach for online ride-hailing demand forecasting. IEEE Access, 12, 141190–141197. https://doi.org/10.1109/ACCESS.2024.3411512
Farris, P., Yemen, G., Weiler, V., & Ailawadi, K. L. (2014). Uber pricing strategies and marketing communications. SSRN.
Garg, N., & Nazerzadeh, H. (2020). Driver surge pricing. In Proceedings of the 21st ACM Conference on Economics and Computation (EC ‘20). Association for Computing Machinery. https://doi.org/10.1145/3391403.3399476
Guo, S., Deng, B., Chen, C., Ke, J., Wang, J., Long, S., & Xu, K. (2024). Seeking in ride-on-demand service: A reinforcement learning model with dynamic price prediction. IEEE Internet of Things Journal, 11(18), 29890–29910. https://doi.org/10.1109/JIOT.2024.3407119
Huang, H. (2023). Ridesharing price prediction: Exploring the strategies of dynamic pricing. Highlights in Business, Economics and Management, 10, 106–110. https://doi.org/10.54097/hbem.v10i.7963
Huang, H. (2023). Taxi fare prediction based on multiple machine learning models. Applied and Computational Engineering, 16, 7–12. https://doi.org/10.54254/2755-2721/16/20230849
Ihianle, I. K., Nwajana, A. O., Ebenuwa, S. H., Otuka, R. I., Owa, K., & Orisatoki, M. O. (2020). A deep learning approach for human activities recognition from multimodal sensing devices. IEEE Access, 8, 179028–179038. https://doi.org/10.1109/ACCESS.2020.3027979
Jashwanth, K., Reddy, K. L. S. P., Snehitha, M. S., Sampath, N., & Nair, P. C. (2024). Analyzing urban transportation services using rideshare data insights. In2024 IEEE 9th International Conference for Convergence in Technology (I2CT). IEEE. https://doi.org/10.1109/I2CT61223.2024.10543505
Kankanamge, K. D., Witharanage, Y. R., Withanage, C. S., Hansini, M., Lakmal, D., & Thayasivam, U. (2019, 3–5 July 2019). Taxi trip travel time prediction with isolated XGBoost regression. In 2019 Moratuwa Engineering Research Conference (MERCon). IEEE. https://doi.org/10.1109/MERCon.2019.8818915
Karamanis, R., Anastasiadis, E., Angeloudis, P., & Stettler, M. (2021). Assignment and pricing of shared rides in ride-sourcing using combinatorial double auctions. IEEE Transactions on Intelligent Transportation Systems, 22(9), 5648–5659. https://doi.org/10.1109/TITS.2020.2988356
Kumar, M., Gupta, D. K., & Singh, S. (2021). Extreme event forecasting using machine learning models. In G. S. Hura, A. K. Singh, & L. Siong Hoe (Eds.), Lecture notes in electrical engineering: Vol. 668. Advances in Communication and computational technology. ICACCT 2019. Springer, Singapore. https://doi.org/10.1007/978-981-15-5341-7_115
Li, S., Yang, H., Cheng, R., & Ge, H. (2024). Hybrid deep learning models for short-term demand forecasting of online car-hailing considering multiple factors. Transportation Letters, 16(3), 218–233. https://doi.org/10.1080/19427867.2023.2175420
Li, Z., Xu, H., Gao, X., Wang, Z., & Xu, W. (2024). Fusion attention mechanism bidirectional LSTM for short-term traffic flow prediction. Journal of Intelligent Transportation Systems, 28(4), 511–524. https://doi.org/10.1080/15472450.2022.2142049
Liu, S., Jiang, H., & Chen, Z. (2021). Quantifying the impact of weather on ride-hailing ridership: Evidence from Haikou, China. Travel Behaviour and Society, 24, 257–269. https://doi.org/10.1016/j.tbs.2021.04.002
Pham, H. V., Lam, H. P., Duy, L. N., Pham, T. B., & Trinh, T. D. (2024). An improved convolutional recurrent neural network for stock price forecasting. IAES International Journal of Artificial Intelligence (IJ-AI), 13(3), 3381–3394. https://doi.org/10.11591/ijai.v13.i3.pp3381-3394
Poongodi, M., Malviya, M., Kumar, C., Hamdi, M., Vijayakumar, V., Nebhen, J., & Alyamani, H. (2022). New York City taxi trip duration prediction using MLP and XGBoost. International Journal of System Assurance Engineering and Management, 13, 16–27. https://doi.org/10.1007/s13198-021-01130-x
Rangel, T., Gonzalez, J. N., Gomez, J., Romero, F., & Vassallo, J. M. (2022). Exploring ride-hailing fares: An empirical analysis of the case of Madrid. Transportation, 49(2), 373–393. https://doi.org/10.1007/s11116-021-10180-w
Schwieterman, J. P. (2019). Uber economics: Evaluating the monetary and travel time trade-offs of transportation network companies and transit service in Chicago, Illinois. Transportation Research Record, 2673(4), 295–304. https://doi.org/10.1177/0361198119839344
Silveira-Santos, T., González, A. B. R., Rangel, T., Pozo, R. F., Vassallo, J. M., & Díaz, J. J. V. (2024). Were ride-hailing fares affected by the COVID-19 pandemic? Empirical analyses in Atlanta and Boston. Transportation, 51(3), 791–822. https://doi.org/10.1007/s11116-022-10349-x
Silveira-Santos, T., Papanikolaou, A., Rangel, T., & Manuel Vassallo, J. (2023). Understanding and predicting ride-hailing fares in Madrid: A combination of supervised and unsupervised techniques. Applied Sciences, 13(8), Article 5147. https://doi.org/10.3390/app13085147
Sindhu, P., Gupta, D., Meghana, S., & A. K, M. (2022). Modeling Uber data for predicting features responsible for price fluctuations. In 2022 IEEE Delhi Section Conference (DELCON). IEEE. https://doi.org/10.1109/DELCON54057.2022.9752864
Sriwongphanawes, K., & Fukuda, D. (2024). How do fares affect the utilization of ride-hailing services: Evidence from Uber Japan’s experiments. Asian Transport Studies, 10, Article 100121. https://doi.org/10.1016/j.eastsj.2023.100121
Vuong, P. H., Dat, T. T., Mai, T. K., Uyen, P. H., & Bao, P. T. (2022). Stock-price forecasting based on XGBoost and LSTM. Computer Systems Science and Engineering, 40(1), 237–246. https://doi.org/10.32604/csse.2022.017685
Vuong, P. H., Phu, L. H., Van Nguyen, T. H., Duy, L. N., Bao, P. T., & Trinh, T. D. (2025). A comparative study of deep learning approaches for stock price prediction. Digital Finance. https://doi.org/10.1007/s42521-025-00149-0
Yousaf, K., & Nawaz, T. (2022). A deep learning-based approach for inappropriate content detection and classification of YouTube videos. IEEE Access, 10, 16283–16298. https://doi.org/10.1109/ACCESS.2022.3147519
Zhang, W., Kumar, D., & Ukkusuri, S. V. (2017). Exploring the dynamics of surge pricing in mobility-on-demand taxi services. In 2017 IEEE International Conference on Big Data (Big Data). https://doi.org/10.1109/BigData.2017.8258070
Zhao, J., Chen, C., Huang, H., & Xiang, C. (2023). Unifying Uber and taxi data via deep models for taxi passenger demand prediction. Personal and Ubiquitous Computing, 27(3), 523–535. https://doi.org/10.1007/s00779-020-01426-y
Zhao, X., Sun, K., Gong, S., & Wu, X. (2023). RF-BiLSTM neural network incorporating attention mechanism for online ride-hailing demand forecasting. Symmetry, 15(3), Article 670. https://doi.org/10.3390/sym15030670
View article in other formats
Published
Issue
Section
Copyright
Copyright (c) 2025 The Author(s). Published by Vilnius Gediminas Technical University.
License
This work is licensed under a Creative Commons Attribution 4.0 International License.