IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i18p2964-d1748628.html

Enhancing Road Freight Price Forecasting Using Gradient Boosting Ensemble Supervised Machine Learning Algorithm

Author

Listed:
  • Artur Budzyński

    (Department of Packaging and Logistics Processes, Institute of Quality Science and Product Management, Krakow University of Economics, 27 Rakowicka St., 31-510 Krakow, Poland)

  • Maria Cieśla

    (Department of Transport Systems, Traffic Engineering and Logistics, Faculty of Transport and Aviation Engineering, Silesian University of Technology, 8 Krasińskiego St., 40-019 Katowice, Poland)

Abstract

For effective logistics planning and pricing strategies, it is essential to predict road freight transportation costs accurately. Using a real-world dataset with 45,569 freight offers and 52 different variables, including financial, logistical, geographical, and temporal characteristics, this study presents a data-driven method for forecasting transport prices. To create a strong predictive model, the approach combines hyperparameter optimization, evolutionary feature selection, and extensive feature engineering. Because gradient boosting works well for modelling intricate, nonlinear relationships, it was used as the main algorithm. Temporal dependencies were maintained through a nested cross-validation framework with a time-series split, which improved the generalizability of the model. With a mean absolute percentage error (MAPE) of 6.27%, the model showed excellent predictive accuracy. Key predictive factors included total transport distance, load and delivery quantities, temperature constraints, and aggregated categorical features such as route and vehicle type. The results confirm that evolutionary algorithms are capable of efficiently optimizing model parameters, as well as feature subsets, greatly enhancing interpretability and performance. In the freight logistics industry, this method offers useful insights for operational and dynamic pricing decision-making. This model may be expanded in future research to include external data sources and investigate its suitability for use in various geographic locations and modes of transportation.

Suggested Citation

  • Artur Budzyński & Maria Cieśla, 2025. "Enhancing Road Freight Price Forecasting Using Gradient Boosting Ensemble Supervised Machine Learning Algorithm," Mathematics, MDPI, vol. 13(18), pages 1-24, September.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:18:p:2964-:d:1748628
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/18/2964/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/18/2964/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Megersa Abate, 2014. "Determinants of Capacity Utilisation in Road Freight Transportation," Journal of Transport Economics and Policy, University of Bath, vol. 48(1), pages 137-152, January.
    2. Kenneth Stoop & Mario Pickavet & Didier Colle & Pieter Audenaert, 2024. "Selective Backhauls in Truck Transport with Risk Mitigation: Large Belgian Retailer Case Study," Networks and Spatial Economics, Springer, vol. 24(1), pages 99-130, March.
    3. Andrii Galkin & Maria Olkhova & Stanisław Iwan & Kinga Kijewska & Serhii Ostashevskyi & Oleksii Lobashov, 2021. "Planning the Rational Freight Vehicle Fleet Utilization Considering the Season Temperature Factor," Sustainability, MDPI, vol. 13(7), pages 1-19, March.
    4. Felix L. Friedt & Wesley W. Wilson, 2020. "Trade, transport costs and trade imbalances: An empirical examination of international markets and backhauls," Canadian Journal of Economics/Revue canadienne d'économique, John Wiley & Sons, vol. 53(2), pages 592-636, May.
    5. Kopalle, Praveen K. & Pauwels, Koen & Akella, Laxminarayana Yashaswy & Gangwar, Manish, 2023. "Dynamic pricing: Definition, implications for managers, and future research directions," Journal of Retailing, Elsevier, vol. 99(4), pages 580-593.
    6. Chris Nash & Tom Sansom, 2001. "Pricing European Transport Systems: Recent Developments and Evidence from Case Studies," Journal of Transport Economics and Policy, University of Bath, vol. 35(3), pages 363-380, September.
    7. Haochuan Wu & Chi Gong, 2025. "Modeling the Ningbo Container Freight Index Through Deep Learning: Toward Sustainable Shipping and Regional Economic Resilience," Sustainability, MDPI, vol. 17(10), pages 1-21, May.
    8. Jason W. Miller, 2018. "ARIMA Time Series Models for Full Truckload Transportation Prices," Forecasting, MDPI, vol. 1(1), pages 1-14, September.
    9. Hyndman, Rob J. & Koehler, Anne B., 2006. "Another look at measures of forecast accuracy," International Journal of Forecasting, Elsevier, vol. 22(4), pages 679-688.
    10. Armstrong, J. Scott & Collopy, Fred, 1992. "Error measures for generalizing about forecasting methods: Empirical comparisons," International Journal of Forecasting, Elsevier, vol. 8(1), pages 69-80, June.
    11. Egemen Sert & Leila Hedayatifar & Rachel A. Rigg & Amir Akhavan & Olha Buchel & Dominic Elias Saadi & Aabir Abubaker Kar & Alfredo J. Morales & Yaneer Bar-Yam, 2020. "Freight Time and Cost Optimization in Complex Logistics Networks," Complexity, Hindawi, vol. 2020, pages 1-11, February.
    12. Monge, Manuel & Romero Rojo, María Fátima & Gil-Alana, Luis Alberiko, 2023. "The impact of geopolitical risk on the behavior of oil prices and freight rates," Energy, Elsevier, vol. 269(C).
    13. Saeed, Naima & Nguyen, Su & Cullinane, Kevin & Gekara, Victor & Chhetri, Prem, 2023. "Forecasting container freight rates using the Prophet forecasting method," Transport Policy, Elsevier, vol. 133(C), pages 86-107.
    14. Santos, Georgina, 2017. "Road fuel taxes in Europe: Do they internalize road transport externalities?," Transport Policy, Elsevier, vol. 53(C), pages 120-134.
    15. Charles R. Harris & K. Jarrod Millman & Stéfan J. Walt & Ralf Gommers & Pauli Virtanen & David Cournapeau & Eric Wieser & Julian Taylor & Sebastian Berg & Nathaniel J. Smith & Robert Kern & Matti Picu, 2020. "Array programming with NumPy," Nature, Nature, vol. 585(7825), pages 357-362, September.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Massimo Guidolin & Manuela Pedio, 2019. "Forecasting and Trading Monetary Policy Effects on the Riskless Yield Curve with Regime Switching Nelson†Siegel Models," Working Papers 639, IGIER (Innocenzo Gasparini Institute for Economic Research), Bocconi University.
    2. Philippe St-Aubin & Bruno Agard, 2022. "Precision and Reliability of Forecasts Performance Metrics," Forecasting, MDPI, vol. 4(4), pages 1-22, October.
    3. Anas Al-Rahamneh & Irene Izco & Adrian Serrano-Hernandez & Javier Faulin, 2025. "Machine Learning-Based State-of-Health Estimation of Battery Management Systems Using Experimental and Simulation Data," Mathematics, MDPI, vol. 13(14), pages 1-23, July.
    4. Schneider, Matthew J. & Gupta, Sachin, 2016. "Forecasting sales of new and existing products using consumer reviews: A random projections approach," International Journal of Forecasting, Elsevier, vol. 32(2), pages 243-256.
    5. Jaewon Lim & Jae Hong Kim, 2019. "Joint Determination of Residential Relocation and Commuting: A Forecasting Experiment for Sustainable Land Use and Transportation Planning," Sustainability, MDPI, vol. 11(1), pages 1-24, January.
    6. Blaskowitz, Oliver & Herwartz, Helmut, 2011. "On economic evaluation of directional forecasts," International Journal of Forecasting, Elsevier, vol. 27(4), pages 1058-1065, October.
    7. Nicholas G. Reich & Justin Lessler & Krzysztof Sakrejda & Stephen A. Lauer & Sopon Iamsirithaworn & Derek A. T. Cummings, 2016. "Case Study in Evaluating Time Series Prediction Models Using the Relative Mean Absolute Error," The American Statistician, Taylor & Francis Journals, vol. 70(3), pages 285-292, July.
    8. Navid Parvini & Davood Ahmadian & Luca Vincenzo Ballestra, 2025. "Forecasting Cryptocurrency Prices Using Support Vector Regression Enhanced by Particle Swarm Optimization," Computational Economics, Springer;Society for Computational Economics, vol. 66(4), pages 3167-3196, October.
    9. R Fildes & K Nikolopoulos & S F Crone & A A Syntetos, 2008. "Forecasting and operational research: a review," Journal of the Operational Research Society, Palgrave Macmillan;The OR Society, vol. 59(9), pages 1150-1172, September.
    10. Kim, Sungil & Kim, Heeyoung, 2016. "A new metric of absolute percentage error for intermittent demand forecasts," International Journal of Forecasting, Elsevier, vol. 32(3), pages 669-679.
    11. Mirakyan, Atom & Meyer-Renschhausen, Martin & Koch, Andreas, 2017. "Composite forecasting approach, application for next-day electricity price forecasting," Energy Economics, Elsevier, vol. 66(C), pages 228-237.
    12. Karamaziotis, Panagiotis I. & Raptis, Achilleas & Nikolopoulos, Konstantinos & Litsiou, Konstantia & Assimakopoulos, Vassilis, 2020. "An empirical investigation of water consumption forecasting methods," International Journal of Forecasting, Elsevier, vol. 36(2), pages 588-606.
    13. Davydenko, Andrey & Fildes, Robert, 2013. "Measuring forecasting accuracy: The case of judgmental adjustments to SKU-level demand forecasts," International Journal of Forecasting, Elsevier, vol. 29(3), pages 510-522.
    14. Hill, Arthur V. & Zhang, Weiyong & Burch, Gerald F., 2015. "Forecasting the forecastability quotient for inventory management," International Journal of Forecasting, Elsevier, vol. 31(3), pages 651-663.
    15. Ziaul Haque Munim & Mohammad Hassan Shakil & Ilan Alon, 2019. "Next-Day Bitcoin Price Forecast," JRFM, MDPI, vol. 12(2), pages 1-15, June.
    16. Makridakis, Spyros & Spiliotis, Evangelos & Assimakopoulos, Vassilios, 2020. "The M4 Competition: 100,000 time series and 61 forecasting methods," International Journal of Forecasting, Elsevier, vol. 36(1), pages 54-74.
    17. George Athanasopoulos & Nikolaos Kourentzes, 2021. "On the Evaluation of Hierarchical Forecasts," Monash Econometrics and Business Statistics Working Papers 10/21, Monash University, Department of Econometrics and Business Statistics.
    18. Brummelhuis, Raymond & Luo, Zhongmin, 2019. "Bank Net Interest Margin Forecasting and Capital Adequacy Stress Testing by Machine Learning Techniques," MPRA Paper 94779, University Library of Munich, Germany.
    19. Krzysztof Drachal, 2022. "Forecasting the Crude Oil Spot Price with Bayesian Symbolic Regression," Energies, MDPI, vol. 16(1), pages 1-29, December.
    20. Ying Han & David Budescu, 2019. "A universal method for evaluating the quality of aggregators," Judgment and Decision Making, Society for Judgment and Decision Making, vol. 14(4), pages 395-411, July.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:18:p:2964-:d:1748628. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager The email address of this maintainer does not seem to be valid anymore. Please ask MDPI Indexing Manager to update the entry or send us the correct address (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.