Deep Learning vs. Gradient Boosting: Optimizing Transport Energy Forecasts in Thailand Through LSTM and XGBoost
Thanapong Champahom, Chinnakrit Banyong, Thananya Janhuaton, Chamroeun Se, Fareeda Watcharamaisakul, Vatanavongs Ratanavaraha, Sajjakaj Jomnonkwao
Abstract
Thailand’s transport sector faces critical challenges in energy management amid rapid economic growth, with transport accounting for approximately 30% of total energy consumption. This study addresses research gaps in transport energy forecasting by comparing Long Short-Term Memory (LSTM) neural networks and XGBoost models for predicting transport energy consumption in Thailand. Utilizing a comprehensive dataset spanning 1993–2022 that includes vehicle registration data by size category, vehicle kilometers traveled, and macroeconomic indicators, this research evaluates both modeling approaches through multiple performance metrics. The results demonstrate that XGBoost consistently outperforms LSTM, achieving an R-squared value of 0.9508 for test data compared to LSTM’s 0.2005. Feature importance analysis reveals that medium vehicles contribute 36.6% to energy consumption predictions, followed by truck VKT (20.5%), with economic and demographic factors accounting for a combined 15.2%. This research contributes to both methodological understanding and practical application by establishing XGBoost’s superior performance for transport energy forecasting, quantifying the differential impact of various vehicle categories on energy consumption, and demonstrating the value of integrating vehicle registration and usage data in predictive models. The findings provide evidence-based guidance for prioritizing policy interventions in Thailand’s transport sector to enhance energy efficiency and sustainability.