Transfer Learning for National Energy Consumption and CO2 emissions Forecasting: A cross-country Approach Applied to Portugal
Year: 2026
Type: dissertation
Abstract: The world pushes through cleaner energy systems, the ability to accurately forecast national energy consumption and CO2 emissions is rising. Countries that simply do not have enough historical data to train the kind of deep learning models that work well elsewhere. This thesis explores whether transfer learning can offer a way out of that bind, by pre-training Long Short-Term Memory (LSTM) networks on data from six European countries and then fine-tuning them in Portugal as the target. Annual data from 1990 to 2022 were drawn from the International Energy Agency and World Bank, and a cross-country feature selection procedure was applied before pre-training to identify which input variables, spanning economic, demographic, and energy indicators, carried consistent predictive value across different national contexts. The results told two different stories depending on the forecasting task. For energy consumption, transfer learning worked well: the TL-LSTM achieved the lowest average test error of 907.78 GWh at the one-step horizon, outperforming both the standard LSTM and the best classical model by meaningful margins. For CO2 emissions, things were less clear-cut. Transfer learning also improved CO2 forecasting, with TL-LSTM achieving the best one-step result of 2.61 Mt CO2, while at the multi-step horizon the best result came from combining transfer learning with feature selection (TL-LSTM-FS, 3.09 Mt CO2). Feature selection, meanwhile, did not consistently help: the crosscountry voting rule kept features that mattered little for Portugal while discarding ones the fine-tuned model genuinely relied on. Taken together, these findings suggest that transfer learning holds real promise for national-scale energy forecasting, but its success depends heavily on how similar the source countries really are to the target.
Institution: Universidade Nova de Lisboa
Language: English
Subfield: Economics and Econometrics
Domain: Social Sciences
Open Access status: green
OpenAlex ID: W7204678095
