arXiv:2610.12638cs.LGOct 2026

Manuscript Offprint

arXiv:2610.12638

Machine Learning and Time-Series Foundation Models for Day-Ahead Electricity Forecasting in a University Building

Amey Vasulkar, Samuel Kernan Freire, Arie-Willem de Leeuw, Tadeo-Baldiri Salcedo-Rahola

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Day-ahead electricity forecasts can help building operators schedule heating, ventilation, and other services around anticipated demand. Choosing a forecasting model also requires balancing accuracy with its forecast-time inputs, local training, and computational requirements.

We benchmark statistical, machine-learning, recurrent neural-network, and pretrained TimesFM models for a university building. We use chronological validation and evaluate all configurations on the same 57 test days, comparing accuracy across workdays, weekends, and holidays alongside local fitting and forecasting time. Weather covariates use retrospective observations.

TimesFM 3.0 with covariates achieves the lowest overall errors, reducing mean absolute error by approximately 43% relative to weekly seasonal-naive forecasting. XGBoost remains competitive, although paired daily comparisons do not establish a clear mean-absolute-error advantage for TimesFM. TimesFM also performs strongly using only past electricity consumption. Adding covariates improves its holiday forecasts but slightly worsens workday and weekend forecasts, leaving overall mean absolute error almost unchanged. TimesFM requires no building-specific weight training, while XGBoost offers rapid local fitting and inference. The evaluated LSTM takes longer to fit without outperforming either approach.

An exploratory historical evaluation reveals seasonal variation, while a separate weather-source comparison produces only small changes in the selected TimesFM configuration's accuracy. These results support pretrained TimesFM as a strong initial forecasting baseline for this building, with XGBoost as a competitive locally fitted alternative. Covariates are particularly useful when improved holiday forecasts justify the additional input preparation.

Introduction

Buildings have been estimated to account for 36% of global energy use and 40% of associated carbon dioxide emissions (Khalil et al., 2022). Improving their operation complements improvements to the building fabric and installed equipment. In particular, scheduling heating, ventilation, and air conditioning (HVAC) and other building services around anticipated demand provides an opportunity to align operation with building activity. Reviews of data-driven building energy modelling identify forecasting as a component of such management and control (Bourdeau et al., 2019; Khalil et al., 2022).

Day-ahead electricity forecasting supplies the next 24 hourly electricity-consumption values before the forecast day begins. The hourly profile can inform service scheduling and identify periods of expected high demand, whereas a daily total cannot distinguish when that demand occurs. Producing such forecasts routinely requires a model that can capture changing consumption patterns from the available data. Building operators must therefore choose both a forecasting method and a procedure for preparing its inputs and keeping it up to date. The practical value of that choice depends on forecast accuracy, covariate requirements, local fitting, and inference resources. Statistical models, tree ensembles, and recurrent neural networks offer different combinations of these requirements (Khalil et al., 2022). Pretrained time-series foundation models introduce another possibility by forecasting new series without building-specific weight training (Das et al., 2024). Whether that transfer provides a useful alternative to a well-tuned local model remains an empirical question for the building concerned.

University buildings provide an informative setting for this comparison because teaching days, weekends, examinations, and academic holidays produce changes in operating schedules. Studies of academic calendars, occupancy, and campus electricity consumption motivate assessing these periods separately (Alfalah et al., 2023; Ghanavati et al., 2023; Gui et al., 2021). A forecast can reproduce routine teaching-day variation while still overstating consumption during a closure. These schedule changes make average performance across all hours an incomplete basis for choosing a model. In this paper, we examine a modern, well-insulated teaching building at the Delft campus of The Hague University of Applied Sciences (THUAS), extending our preceding study of the same building (Stienstra et al., 2026).

For models using weather covariates, practical application also requires a suitable weather source. Historical evaluations can use station observations or reanalysis, while next-day weather must be supplied by a forecast issued beforehand. Differences between these products may affect the electricity-consumption forecast, making weather-source sensitivity relevant alongside model accuracy.

This study contributes a temporally validated comparison of locally fitted and pretrained forecasting configurations, together with evidence on when their accuracy differences matter. We compare models on the same forecast days, assess differences across workdays and closures, and quantify uncertainty in their mean daily errors. An extended historical TimesFM evaluation examines seasonal behaviour beyond the winter-weighted test; a controlled weather-source comparison examines whether its forecasts depend strongly on the supplied weather product. Together with measured fitting and forecast times, these analyses support model selection according to accuracy, input requirements, and local modelling effort. Our target is electricity consumption: tariff-dependent costs and savings from subsequent control decisions are not evaluated.