arXiv:2609.06060cs.LGSep 2026

Manuscript Offprint

arXiv:2609.06060

Calendar-SPCA: Interpretable Representation Learning for Multi-Periodic Electricity Consumption Profiles

Carlos Quesada-Granja, Tony Castillo-Calzadilla, Carlos Rizo-Maestre

Abstract

Long-term electricity-consumption profiles exhibit several simultaneous periodic structures, including daily, weekly, and annual cycles. This work introduces Calendar-SPCA, a calendar-structured sparse principal component method that incorporates this known multi-periodic geometry directly into low-dimensional representation learning. The feature domain is represented as the Cartesian product of cyclic calendar axes, and a low-rank factorization is estimated using an ℓ1\ell_1 loading penalty together with graph total variation over the resulting calendar graph. The method therefore produces sparse and locally coherent loading patterns that remain directly readable in their original temporal coordinates. Calendar-SPCA is evaluated on two independent smart-meter datasets with different sample sizes and temporal resolutions: GoiEner and Low Carbon London. A factorial experiment characterizes the complementary effects of sparsity and calendar coherence and examines robustness across sample size, latent dimensionality, and repeated fits. At rank 15, Calendar-SPCA retains 96.92% and 82.90% of the explained variance of rank-matched PCA in GoiEner and Low Carbon London, respectively, while producing mean loading sparsities of 61.95% and 81.50%. Comparisons with classical sparse PCA and SPCA-TV further show that Calendar-SPCA adds a systematic organization of the latent factors in the original calendar coordinates while preserving substantial low-rank information. The resulting components form coherent and complementary daily, weekly, seasonal, and jointly localized calendar patterns, with dataset-specific geometries across the two datasets.

Keywords: Sparse principal component analysis; interpretable representation learning; graph total variation; smart meters; electricity consumption; multi-periodic time series; calendar graph.

*Corresponding author. c.quesada@ua.es

1 Introduction

Electricity-consumption time series exhibit three well-established calendar seasonalities: daily, weekly, and annual [1]. Daily and weekly repetition is readily visible over relatively short observation windows, while records spanning complete years additionally expose the annual cycle. The growing availability of long-term, high-resolution smart-meter data therefore makes it possible to represent these three periodic structures simultaneously at the level of individual consumers.

Each measurement then occupies a known position within three periodic coordinates: time of day, day of week, and position within the annual cycle. Figure 1 illustrates this organization for an hourly annual electricity-consumption profile. Such a profile can be displayed as a conventional 24×36424 \times 364 heatmap. Here, we propose instead arranging the same annual profile as a 24×7×5224 \times 7 \times 52 calendar tensor, whose axes correspond directly to hour of day, day of week, and week of year. This representation makes the multi-periodic geometry of the feature space explicit.

Figure

Figure

Figure 1: Two representations of the same illustrative annual electricity-consumption pattern. Left: conventional heatmap representation over 24 hourly positions and 364 consecutive days. Right: calendar representation as a 24×7×5224 \times 7 \times 52 tensor, with axes corresponding to hour of day, day of week, and week of year. Calendar-SPCA uses this organization to define the geometry of the feature space.

The three calendar axes are cyclic. Hours connect across midnight, days connect across the weekly boundary, and weeks connect across the annual boundary. An annual profile can therefore be regarded as a signal defined over a three-dimensional periodic domain. This observation provides a direct way to incorporate calendar knowledge into dimensionality reduction.

Calendar-SPCA represents this domain through the Cartesian product of cycle graphs,

G=Ch□Cd□Cw,(1)G = C_h \square C_d \square C_w, \tag{1}

where hh, dd, and ww denote the numbers of positions along the daily, weekly, and annual axes. The resulting graph connects neighbouring calendar positions along each periodic coordinate and provides an explicit topology for the loading space.

Given a centered data matrix XcX_c, Calendar-SPCA learns a low-rank representation Xc≈UV⊤X_c \approx UV^\top by solving

min⁡U,V{12∥Xc−UV⊤∥F2⏟reconstruction+λ1∥V∥1,1⏟loading sparsity+λTV∥DGV∥1,1⏟calendar coherence},(2)\min_{U,V}\left\{\frac{1}{2}\underbrace{\left\|X_{c}-UV^\top\right\|_{F}^{2}}_{\text{reconstruction}}+\underbrace{\lambda_{1}\|V\|_{1,1}}_{\text{loading sparsity}}+\underbrace{\lambda_{\mathrm{TV}}\|D_{G}V\|_{1,1}}_{\text{calendar coherence}}\right\}, \tag{2}

where UU contains the component scores, VV contains the loading vectors, and DGD_G is the incidence matrix of the calendar graph. The reconstruction term captures the dominant low-rank structure of the population, the ℓ1\ell_1 penalty concentrates each loading on a selected set of calendar positions, and the graph total-variation penalty promotes coherent values across neighbouring positions. The recovered components are therefore expressed directly as sparse, structured patterns over the calendar domain.

This representation gives each loading an immediate temporal interpretation. Each loading can be viewed as a sparse, coherent mask over the calendar tensor, selecting the temporal regions associated with one latent mode of variation. Active regions can describe particular times of day, weekdays, seasons, or combinations of these coordinates, while the cyclic topology preserves continuity across the boundaries of each periodic axis. Calendar-SPCA thus connects dimensionality reduction with the calendar coordinates naturally used to describe long-term electricity consumption.

The contributions of this work are threefold:

  • Multi-periodic calendar representation. We formulate the feature space of long-term electricity profiles as the Cartesian product of cyclic temporal axes, explicitly encoding daily, weekly, and annual adjacency.

  • Calendar-structured sparse factorization. We combine sparse loading estimation with graph total variation over the calendar topology to learn latent factors that are selective, locally coherent, and directly interpretable in temporal coordinates.

  • Quantitative and visual validation on real smart-meter data. We evaluate Calendar-SPCA on two independent electricity-consumption datasets with different populations and temporal resolutions, characterize its regularization and robustness properties, and compare the resulting representations with PCA, sparse PCA, and SPCA-TV.

The resulting framework provides a compact representation of long-term electricity profiles in which the known geometry of the calendar becomes part of the representation-learning model itself.

References (21)