Manuscript Offprint
arXiv:2609.06060Calendar-SPCA: Interpretable Representation Learning for Multi-Periodic Electricity Consumption Profiles
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 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 heatmap. Here, we propose instead arranging the same annual profile as a 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 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 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,
where , , and 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 , Calendar-SPCA learns a low-rank representation by solving
where contains the component scores, contains the loading vectors, and is the incidence matrix of the calendar graph. The reconstruction term captures the dominant low-rank structure of the population, the 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.
Principal component analysis (PCA) represents high-dimensional observations through a reduced number of latent directions that capture dominant modes of variation [2]. Sparse PCA extends this framework by concentrating each loading on a selected subset of variables, strengthening the link between latent components and the original feature space.
Representative formulations include SCoTLASS [3], elastic-net sparse PCA [4], regularized low-rank approximation [5], and penalized matrix decomposition [6].
Structured sparse methods incorporate relationships among variables into the loading estimation. Group penalties encode predefined support structures [7], while fusion penalties promote similar coefficients across related variables. The fused lasso [8] and generalized lasso [9] provide general formulations for this principle, which has also been incorporated into sparse component models [10, 11].
Total-variation regularization provides a particularly close connection to Calendar-SPCA. SPCA-TV combines sparse component estimation with total variation to obtain localized and coherent loading patterns over structured feature domains [12]. Its components are extracted sequentially through rank-one approximation and deflation. Calendar-SPCA incorporates calendar regularization within a joint K-factor reconstruction defined over a cyclic Cartesian-product graph, so that all latent calendar factors are estimated simultaneously within the same representation.
Tensor and multiway methods provide a complementary perspective by organizing data along explicit modes such as consumers, hours, weekdays, or seasonal positions [13, 14]. Their multi-axis representation highlights the value of preserving known structure across several dimensions. In Calendar-SPCA, these axes jointly define the geometry of the loading domain through their Cartesian product.
Table 1 summarizes the resulting methodological positioning in terms of five structural properties: sparse loadings, local coherence, prior feature structure, cyclic axes, and joint factor estimation.
Table 1: Positioning of Calendar-SPCA with respect to representative dimensionality-reduction families. The entries summarize the principal structural mechanisms emphasized by each family; individual methods within a family may differ in their precise optimization and factorization strategy.
| Method family | Sparse loadings | Local coherence | Prior structure | Cyclic axes | Joint estimation |
|---|---|---|---|---|---|
| PCA | ✕ | ✕ | ✕ | ✕ | ✓ |
| Sparse PCA | ✓ | ✕ | ✕ | ✕ | method-dependent |
| Structured / fused SPCA | ✓ | ✓ | ✓ | ✕ | method-dependent |
| SPCA-TV | ✓ | ✓ | TV operator | operator-dependent | sequential |
| Tensor / multiway decompositions | method-dependent | method-dependent | multi-axis | method-dependent | ✓ |
| Calendar-SPCA | ✓ | ✓ | ✓ | ✓ | ✓ |
Calendar-SPCA combines these properties within a single representation: loading sparsity provides feature selectivity, graph total variation promotes local coherence, the calendar supplies the prior feature structure, its temporal coordinates form multiple cyclic axes, and the latent factors are estimated jointly within a common low-rank factorization.
3 Calendar-SPCA
Calendar-SPCA represents long-term electricity profiles on their natural multi-periodic calendar domain and incorporates this geometry directly into a sparse low-rank factorization. The method consists of three elements: a cyclic calendar graph defining relationships among features, a structured sparse factorization over this graph, and an alternating optimization procedure for estimating the latent factors.
3.1 Calendar geometry
Let
contain electricity-consumption profiles, with each column corresponding to one position of a common calendar representation. For three temporal axes of sizes , , and , the feature domain contains
positions indexed by
In the applications considered here, these coordinates represent time within the day, day of week, and week of year. Hourly profiles therefore use a domain, while half-hourly profiles use a domain.
Calendar-SPCA defines adjacency on this domain through the Cartesian product
where denotes a cycle graph with vertices. Two calendar positions are adjacent when they differ by one step along one temporal coordinate and share the same values along the other two coordinates.
Each factor graph is cyclic, so adjacency also connects the boundaries of its corresponding temporal axis. The resulting graph therefore preserves continuity across midnight, across the weekly transition, and across the annual boundary. Every calendar position is connected locally along the daily, weekly, and annual directions, producing a single multi-periodic geometry for the complete loading domain.
Let
denote an oriented incidence matrix of . For a loading vector , the vector contains differences between loading coefficients at adjacent calendar positions. Its graph total variation is
This quantity gives a direct measure of local variation over the calendar. Large differences contribute strongly when neighbouring calendar positions receive different loading values, while coherent regions contribute little when adjacent positions carry similar values. Because the edges of span all three cyclic axes, the same measure captures coherence simultaneously within the day, across the week, and throughout the annual cycle.
For a loading matrix , Calendar-SPCA uses the aggregate graph total variation
which provides the structural regularizer for the factorization introduced next.
3.2 Structured sparse factorization
Calendar-SPCA operates on the centered data matrix
where is the empirical mean profile. The centered observations are represented through a -component factorization
with containing the component scores and containing the corresponding calendar loadings.
Calendar-SPCA estimates both factors through
subject to unit-norm constraints on the active score vectors,
where denotes the set of active components.
The three terms in Eq. (8) define the main properties of the representation. The reconstruction term captures dominant variation in the centered profiles. The entrywise penalty promotes selective loading supports, with controlling the degree of sparsity. The graph total-variation penalty promotes coherent loading values across neighbouring calendar positions, with controlling the strength of calendar regularization.
Their joint action gives each component a sparse and structured temporal support. The term concentrates the loading on selected calendar positions, while graph total variation encourages those positions to form coherent patterns along the daily, weekly, and annual directions. The learned loading vectors can therefore be visualized directly on the calendar domain introduced in Section 3.1.
The normalization in Eq. (9) resolves the scale indeterminacy between each score vector and its loading . Under this convention, the loading magnitude carries the strength of the component, while the normalized score vector describes its expression across the observations.
The components are estimated jointly within the same low-rank factorization and may represent correlated modes of variation. This flexibility allows several complementary calendar structures to coexist within the learned representation.
The nominal rank specifies the requested number of components. Components that sustain a non-degenerate solution form the active set , yielding the effective rank
The resulting model is thus defined by a compact set of jointly estimated calendar loadings and their associated score vectors.
3.3 Optimization
Calendar-SPCA is fitted by alternating between updates of the score matrix and the loading matrix . This block-coordinate structure preserves the joint low-rank factorization while allowing each subproblem to exploit its specific form.
For fixed , the score vectors are updated conditionally on the remaining components. For an active component ,
followed by
Sweeps over the active components refine the score matrix while preserving the unit-norm convention introduced in Eq. (9).
For fixed , the loading matrix is obtained from the convex problem
The smooth reconstruction term has gradient
The sparse and graph-total-variation terms are handled with a Condat–Vũ primal–dual splitting scheme [15, 16]. Soft-thresholding acts on the loading variables associated with the penalty, while dual variables associated with enforce the calendar total-variation regularization. The explicit primal–dual updates and step-size construction are given in Appendices A.1 and A.2, respectively.
The complete fitting procedure therefore alternates between score refinement and solution of the structured loading subproblem until the low-rank representation stabilizes. Convergence is assessed from the stabilization of the objective and reconstructed representation together with convergence of the loading subproblem, as detailed in Appendix A.3.
The optimization also maintains the active set and applies component recovery from residual variation when a component becomes degenerate. Components that retain a stable solution form the effective rank . The initialization and component-recovery procedures are described in Appendix A.4, and Algorithm 1 summarizes the complete fitting procedure.
The numerical settings used for score refinement, primal–dual optimization, convergence, initialization, and component recovery are collected in Appendix A.5.
Algorithm 1 Calendar-SPCA fitting procedure
Require: Centered matrix , nominal rank , calendar incidence matrix 1: Initialize and from a low-rank decomposition of 2: Set 3: repeat 4: for do 5: Update using Eq. (11) 6: Normalize using Eq. (12) 7: end for 8: Update by solving Eq. (13) with primal-dual splitting 9: Apply component recovery and update when required 10: until objective and reconstruction convergence criteria are satisfied 11: return
4 Experimental Design
4.1 Datasets
Calendar-SPCA was evaluated on two independent smart-meter datasets: GoiEner, from electricity consumers in Spain, and Low Carbon London (LCL), from residential consumers in the United Kingdom. The datasets provide complementary evaluation settings through different population sizes and temporal resolutions, while sharing the same daily, weekly, and annual calendar organization.
Table 2 summarizes the annual profiles used in the experiments.
Table 2: Smart-meter datasets used in the evaluation of Calendar-SPCA. Both are represented as complete 52-week annual profiles organized along daily, weekly, and annual calendar axes.
| Characteristic | GoiEner | Low Carbon London |
|---|---|---|
| Country | Spain | United Kingdom |
| Annual profile years | 2018–2023 | 2012–2013 |
| Temporal resolution | 1 hour | 30 minutes |
| Calendar domain | ||
| Features per profile () | 8,736 | 17,472 |
| Annual profiles () | 87,187 | 5,359 |
| Quality criterion | imputed samples | imputed samples |
GoiEner. The GoiEner dataset contains long-term smart-meter electricity measurements from supply points distributed throughout peninsular Spain. The data source, anonymization procedure, and measurement processing are described in [1]. The exact dataset release used in this study is publicly available through Zenodo [17]. Annual observations were constructed following the ISO-week procedure of [18], producing complete hourly profiles on a calendar domain. For ISO years containing 53 weeks, the first 52 complete weeks were retained to preserve a common feature domain. Application of the profile-quality criterion yielded 87,187 annual profiles with 8,736 features each.
Low Carbon London. The Low Carbon London dataset contains half-hourly residential electricity measurements collected as part of the UK Power Networks Low Carbon London project [19]. Source timestamps were converted from UTC/GMT end-of-interval labels to Europe/London interval-start civil time and regularized across daylight-saving transitions before construction of the local ISO-calendar representation. Complete annual profiles were then organized on a domain, providing twice the within-day temporal resolution of GoiEner. Among the 5,374 profiles satisfying the full-year and imputation criteria, 15 with a degenerate normalization scale were excluded, yielding the final evaluation matrix of 5,359 profiles with 17,472 features each.
For both datasets, missing measurements were imputed before annual profile construction and the quality criteria in Table 2 were applied. Each retained profile x was then normalized using the robust scale
where and are the first and third quartiles. This scale combines the observed profile maximum with Tukey's upper inner fence [20].
The normalized profile was obtained as
The logarithmic continuation retains the relative magnitude of high-consumption values while limiting their influence on the profile scale. This transformation places annual profiles on a comparable scale while preserving their temporal structure. Calendar-SPCA subsequently centers each dataset according to Eq. (6).
4.2 Experimental protocol
The experimental design first characterized the operating behaviour of Calendar-SPCA across regularization strength, sample size, and latent dimensionality. GoiEner was used for this broad analysis because its large population supports controlled subsampling over a wide range of sample sizes.
The two regularization parameters were varied independently over
together with
and
Five repetitions were fitted for every configuration, giving a total of 5,880 Calendar-SPCA fits. Across repetitions, both the sampled observations and the initialization seed varied. Within each repetition, the four sample sizes were nested, so larger subsets progressively extended the smaller ones. Regularization settings sharing the same N, K, and repetition used the same initialization seed. This design supports paired comparisons across the regularization grid and controlled analysis of the effects of increasing sample size.
The factorial experiment serves two purposes in the main evaluation. First, it reveals how the sparsity and graph-total-variation penalties shape reconstruction quality and loading structure across the plane. Second, it characterizes the robustness of the learned representation as the amount of data and the requested rank vary.
Solution reproducibility was assessed by matching loading vectors across repeated fits and neighbouring regularization settings using sign- and permutation-invariant cosine similarity. Repeat stability measures agreement between repetitions of the same configuration, while local stability measures agreement between adjacent points of the regularization grid. The corresponding metric is defined in Section 4.4.
The analysis identified as a suitable common nominal rank for the final representations: it provides sufficient capacity to recover multiple calendar-structured patterns while remaining within the stable operating region observed across sample sizes. This common rank was subsequently used for GoiEner and LCL in the model-selection and cross-method experiments.
The effective rank is monitored throughout the evaluation. Factorial summaries include configurations with at least four converged fits among the five repetitions. The convergence behaviour underlying this reliability criterion is summarized in Appendix B.1.
4.3 Model selection and baselines
With the nominal rank fixed at , the final regularization strength was selected independently for GoiEner and LCL through a one-dimensional path
This diagonal path balances the two structural mechanisms characterized in the factorial experiment while providing a simple operating parameter for the final representation.
For each candidate value of , reconstruction error was measured as
and the magnitude of the structured loading representation as
The resulting points
form a discrete L-curve [21, 22]. Selection was restricted to converged full-rank solutions () along the pre-specified 19-point regularization path. Among the eligible interior points, the operating value was selected by maximum discrete Menger curvature. Component visualizations and post-fit structural metrics were not used for parameter selection. This procedure selected
The final Calendar-SPCA representations were compared at the same rank with three reference methods spanning increasing levels of loading structure. PCA provides the rank-matched linear reconstruction reference [2]. Sparse PCA was represented by the formulation of Zou et al. [4], providing sparse loading estimation. SPCA-TV [12] adds total-variation regularization and was supplied with the same cyclic calendar neighbourhood used by Calendar-SPCA.
Regularization parameters for SPCA and SPCA-TV were selected numerically along method-specific regularization paths before analysis of the resulting component maps. The comparison therefore evaluates PCA, sparse loading estimation, sparse total-variation components, and Calendar-SPCA under a common rank and a common calendar-based structural assessment.
Implementation details for the reference methods and their regularization selection procedures are provided in Appendices C.1 and C.2.
4.4 Evaluation criteria
The evaluation combines reconstruction quality, loading structure, and solution reproducibility.
Explained variance. Reconstruction quality is measured through
where denotes the complete rank- reconstruction. For methods with non-orthogonal loadings, the common reconstruction is obtained by least-squares projection onto the fitted loading span. For the cross-method comparison, explained variance is also expressed relative to rank-matched PCA through
This ratio measures the fraction of PCA explained variance retained by each structured representation.
Component contribution. The importance of an individual Calendar-SPCA component is measured through the increase in normalized reconstruction error produced by removing it from the fitted representation,
where . Because the components are not required to be orthogonal, these conditional contributions are not additive and need not sum to the total explained variance. They are used here to indicate the relative importance of individual components in the calendar visualizations.
Loading sparsity. For the numerical support
loading sparsity is defined as
Higher values correspond to components concentrated on a smaller portion of the calendar domain.
Calendar coherence. Local coherence is summarized through relative graph total variation,
Lower RTV corresponds to more coherent loading values across neighbouring daily, weekly, and annual positions. Reported model-level values are averaged over the active components.
Calendar regions. The support induces connected regions on the cyclic calendar graph. Effective regions are those containing at least 0.5% of the active support or at least 1% of the loading's total mass. Their number summarizes how compactly the active loading structure is organized over the calendar.
Stability. Reproducibility is evaluated by optimally matching loading vectors across fits using sign-invariant cosine similarity,
c_{i j}=\frac{\left|v_{i}^{(a)}^{\top}v_{j}^{(b)}\right|}{\|v_{i}^{(a)}\|_{2}\|v_{j}^{(b)}\|_{2}}. \tag{30}Model-level stability is then
where denotes the optimal component matching. Repeat stability measures agreement across repetitions of the same configuration, while local stability measures agreement between neighbouring regularization settings.
Numerical reliability. The effective rank is monitored throughout the evaluation. Factorial summaries include configurations with at least four converged fits among the five repetitions. Extended convergence and numerical diagnostics are reported in Appendix B.
5 Results
5.1 What do the two regularizers do?
The GoiEner factorial experiment described in Section 4.2 provides a direct view of how the two Calendar-SPCA regularizers shape the learned representation. Figure 2 summarizes explained variance, loading sparsity, relative total variation, and effective-region count across the plane.

(c) Relative total variation
(d) Effective regions

Figure 2: Regularization landscape of Calendar-SPCA on the GoiEner dataset. Heatmaps show (a) explained variance, (b) mean loading sparsity, (c) mean relative total variation, and (d) mean effective-region count across the grid. Values are averaged across reliable scenarios. Grey cells indicate regularization pairs without a reliable factorial summary.
The sparsity penalty controls the amount of calendar support used by the components. Increasing progressively raises loading sparsity, concentrating the representation on a smaller set of temporal positions.
The graph total-variation penalty controls local calendar coherence. Increasing reduces relative total variation, promoting similar loading values across neighbouring positions of the daily, weekly, and annual cycles.
The effective-region landscape shows how these two mechanisms jointly organize the active support into connected temporal structures. Together, and provide complementary control over selectivity and coherence, while explained variance describes the associated reconstruction trade-off.
Figure 2 therefore identifies a broad operating region in which Calendar-SPCA combines substantial reconstruction capacity with sparse and calendar-coherent loading patterns. A matched four-configuration ablation further isolates the complementary roles of the two penalties in Appendix B.2.
5.2 Is the representation robust?
Robustness was examined at the common regularization setting across the factorial grid of sample sizes and nominal ranks. Figure 3 summarizes explained variance, loading sparsity, repeat stability, and convergence.

(b) Loading sparsity
(c) Repeat stability

(d) Convergence

Figure 3: Robustness of Calendar-SPCA across sample size N and nominal rank K at . (a) Mean explained variance, (b) mean loading sparsity, (c) repeat stability, and (d) convergence rate across five repeated fits. The dashed vertical line marks K=15, the common nominal rank used for the final representations.
Increasing progressively expands the reconstruction capacity of the representation. At , explained variance rises from 33.44% at to 40.55% at and 43.98% at . The trajectories are similar across all four sample sizes, showing consistent reconstruction behaviour from to .
The structural behaviour is similarly systematic. As the nominal rank increases, the representation distributes the signal across a larger number of increasingly specialized calendar factors: broad daily or seasonal patterns can separate into components associated with more specific combinations of time of day, weekday, and season. This specialization is reflected in the loading sparsity trajectories, which remain consistent across sample sizes. At , mean sparsity ranges from 71.35% for to 62.46% for . Since the reconstruction term accumulates over observations while the structural penalties contain no explicit sample-size normalization, a fixed corresponds to a changing relative regularization strength across sample sizes, as quantified in Appendix B.3.
Component reproducibility strengthens as the sample size grows. At , all five repeated fits converge for every evaluated , and repeat stability increases from 0.890 at to 0.925, 0.963, and 0.996 at , and 20,000, respectively. The largest sample therefore produces almost identical matched loading structures across repeated fits.
These results place within a stable and reproducible operating region with substantial reconstruction capacity and sparse calendar structure. This rank is consequently used for the final GoiEner and LCL representations.
5.3 How is the operating point selected?
With fixed, the final regularization strength was selected independently for GoiEner and LCL along the diagonal path . Figure 4 shows the resulting L-curves and their discrete curvature.

Figure 4: L-curve selection of the final rank-15 Calendar-SPCA operating points. (a,b) Reconstruction–structure trade-off for GoiEner and Low Carbon London along . (c,d) Discrete curvature of the corresponding eligible paths. Maximum curvature selects for GoiEner and for Low Carbon London.
Increasing progressively reduces the structural magnitude of the loading representation while increasing the reconstruction residual, producing a clear regularization path in both datasets. The curvature criterion identifies the transition region in which this reconstruction–structure trade-off changes most strongly.
The maximum curvature occurs at
Both selected points retain the complete nominal rank and define the Calendar-SPCA configurations used in the remaining cross-method and component analyses.
The L-curve criterion is used here as a reproducible operating-point rule for the comparative evaluation. In application-specific settings, the regularization path can also be selected according to the desired balance among reconstruction, sparsity, calendar coherence, and temporal localization.
5.4 How does Calendar-SPCA compare with existing methods?
The final rank-15 Calendar-SPCA representations were compared with PCA, SPCA, and SPCA-TV on the complete GoiEner and Low Carbon London datasets. Figure 5 summarizes the resulting balance between reconstruction retention, loading sparsity, and calendar coherence.

Figure 5: Cross-method comparison of the rank-15 representations obtained with SPCA, SPCA-TV, and Calendar-SPCA on GoiEner and Low Carbon London. Each point shows mean loading sparsity and explained-variance retention relative to rank-matched PCA. Point labels report mean relative total variation (RTV) over the common cyclic calendar graph; lower values indicate greater local coherence.
On GoiEner, Calendar-SPCA retains 96.92% of the explained variance of rank-matched PCA while reaching 61.95% mean loading sparsity and an RTV of 0.615. SPCA retains 98.44% with 47.12% sparsity and an RTV of 0.994, while SPCA-TV reaches 81.98% retention, 42.10% sparsity, and an RTV of 0.792.
On Low Carbon London, Calendar-SPCA retains 82.90% of rank-matched PCA explained variance and produces the most selective representation, with 81.50% mean sparsity and an RTV of 0.450. SPCA reaches 94.63% retention, 64.24% sparsity, and an RTV of 1.052, while SPCA-TV reaches 93.22% retention, 19.02% sparsity, and an RTV of 0.509.
The comparison also separates local coherence from support selectivity. SPCA-TV produces smooth calendar loadings, while Calendar-SPCA combines comparable local coherence with substantially stronger sparsity, especially in LCL. This combination concentrates the latent representation on identifiable parts of the calendar and supports the localized daily, weekly, seasonal, and joint patterns examined in the following section.
Across both datasets, Calendar-SPCA occupies a distinctive region of the reconstruction–structure space, combining substantial PCA variance retention with high loading selectivity and strong local coherence over the calendar graph. The exact numerical values for all four methods are collected in Appendix C.3. The next section examines how these quantitative properties appear in the learned temporal components.
5.5 What does Calendar-SPCA learn?
The selected Calendar-SPCA solutions reveal how the learned factors occupy the original calendar domain. Figure 6 shows the complete rank-15 loading systems obtained for GoiEner and Low Carbon London, with components ordered by decreasing conditional reconstruction contribution. Because the loadings are displayed directly in their temporal coordinates, daily, weekly, seasonal, and jointly localized structures can be identified from the component maps themselves.
The GoiEner representation is strongly organized along recognizable calendar directions. Several components describe distinct portions of the daily cycle. C1 captures a night-time pattern extending across all days of the week, whereas other daily factors are more specifically associated with weekdays: C15 and C14 emphasize morning hours, C3 and C11 capture midday and afternoon activity, and C13, C5, and C8 represent progressively later parts of the day. A second group separates the annual cycle into broad seasonal intervals, with C4, C9, C7, C2, C10, and C6 concentrating on successive portions of the year. The weekly cycle is represented particularly clearly by C12, whose recurrent pattern isolates weekend behaviour throughout the annual cycle. Together, these components provide a decomposition in which daily, weekly, and seasonal organization can be identified directly from the loading maps.
The Low Carbon London representation follows the same calendar principle, with many factors localized jointly across several temporal coordinates. C1, for example, isolates daytime hours during the middle part of the year, while C6 and C10 capture related daytime patterns concentrated toward earlier and later seasonal intervals. Evening and night-time behaviour is likewise separated into temporally localized factors, including C5, C9, and C12. Other components, such as C7, C8, C11, and C13, extend over broader parts of the annual cycle while remaining concentrated within particular within-day intervals. The weekly cycle is represented especially evident by C15, whose recurrent vertical pattern isolates weekend behaviour within a restricted daytime window. Together, these components span both axis-dominated structures and more specific combinations of daily, weekly, and annual coordinates.
The two datasets therefore illustrate complementary organizations within the same calendar geometry: GoiEner contains many factors aligned predominantly with individual calendar axes, whereas LCL contains more factors localized jointly across several temporal coordinates. In both cases, the location and extent of the active regions are learned from the data.
The effect of the cyclic topology is visible in most of the learned components and is particularly evident in LCL component C2. Its loading extends simultaneously across the

(a) GoiEner (, ).

(b) Low Carbon London (, ).
Figure 6: Complete rank-15 Calendar-SPCA representations for (a) GoiEner and (b) Low Carbon London. Components are ordered by decreasing conditional reconstruction contribution, reported in parentheses. The vertical axis represents time of day and the horizontal axis follows the 364 calendar days, grouped by ISO week. Each loading is independently normalized by its maximum absolute coefficient for visualization.
week-52/week-1 boundary of the annual axis and across the midnight boundary of the within-day axis. Although these regions appear separated at the edges of the displayed heatmap, they form a contiguous structure on the cyclic calendar graph.
6 Discussion
The central contribution of Calendar-SPCA is the incorporation of calendar geometry into the learned representation itself. Daily, weekly, and annual coordinates define the neighbourhood structure used during factor estimation, so the temporal organization visible in the recovered loadings follows the same geometry that guides the optimization. The resulting components can be read directly in terms of time of day, weekday, seasonal position, and their combinations. The GoiEner and Low Carbon London representations illustrate two expressions of this principle: axis-oriented factors associated with recognizable daily, weekly, or seasonal directions, and jointly localized factors occupying specific regions of the multi-periodic calendar domain. Interpretability therefore emerges from a direct correspondence between the structure of the model and the temporal coordinates of the data.
The cross-method results also illustrate the role of Calendar-SPCA as a structured low-dimensional representation. Its loading sparsity concentrates each factor on selected portions of the calendar, and graph total variation organizes these supports into locally coherent patterns. At the same time, the fitted representations retain a substantial fraction of the variance captured by rank-matched PCA. This combination provides a useful reconstruction–structure balance: the latent space remains informative at population level and its loading vectors acquire a compact temporal organization. The different balances observed for GoiEner and Low Carbon London further illustrate how the same formulation accommodates datasets with different population sizes, sampling resolutions, and underlying consumption structure.
The score matrix provides the complementary representation at observation level. Each row defines a compact -dimensional embedding of an annual profile in the learned calendar-factor space, with each coordinate measuring its expression along one latent temporal factor. These embeddings can support consumer clustering and segmentation, comparison of consumption populations, visualization of large smart-meter collections, and association with household, technological, socioeconomic, or other available metadata. They can also serve as inputs to downstream classification, regression, forecasting, or anomaly-detection pipelines. In this representation, the loading matrix describes the temporal meaning of the latent dimensions, while the score matrix describes how strongly each observation expresses them, providing complementary temporal and observation-level views of the same latent space.
The calendar construction also extends naturally beyond the three axes used in the present experiments. A feature domain containing known periodic coordinates can be represented through a Cartesian product of cycle graphs,
allowing four-, five-, or higher-dimensional periodic representations whenever the application provides the corresponding coordinates. Multi-periodic structure appears in many domains beyond electricity consumption. Daily and weekly patterns have also been reported in telecommunications traffic [23] and industrial activity [24]; traffic profiles vary across time of day, day of week, and season [25]; building occupancy follows daily, weekly, and calendar schedules [26]; and ecological observations can combine diel, tidal, and seasonal cycles [27]. These settings share the same underlying idea: known periodic coordinates define a structured feature domain that can be incorporated directly into representation learning. Calendar-SPCA provides a general mechanism for expressing that geometry through sparse, graph-coherent latent factors.
7 Conclusions
This work introduced Calendar-SPCA, a structured sparse representation-learning method for long-term multi-periodic electricity-consumption profiles. The method represents the feature domain through the Cartesian product of cyclic calendar axes and combines sparse loading estimation with graph total variation within a joint low-rank factorization. The resulting components are learned directly on daily, weekly, and annual coordinates and can be interpreted as coherent temporal patterns on the original calendar domain.
Experiments on the GoiEner and Low Carbon London datasets demonstrated controllable sparsity and calendar coherence, stable representations across sample sizes and latent dimensionalities, reproducible data-driven regularization selection, and substantial retention of the variance captured by rank-matched PCA. The recovered components reveal readable daily, weekly, seasonal, and jointly localized patterns across datasets with different population sizes and temporal resolutions. More broadly, Calendar-SPCA illustrates how known feature geometry can be incorporated directly into representation learning to obtain latent factors whose structure is aligned with the coordinates used to understand the data.
Data availability
The GoiEner Smart Meter Dataset (Version 7.1) used in this study is publicly available through Zenodo [17]. The Low Carbon London smart-meter dataset is publicly available through the London Datastore [19].
Code availability
The implementation of Calendar-SPCA and the code for the principal experiments reported in this study are available at https://github.com/quesadagranja/calendar-spca.
CRediT authorship contribution statement
Carlos Quesada-Granja: Conceptualization, Methodology, Software, Validation, Formal analysis, Investigation, Data curation, Visualization, Writing – original draft, Writing – review & editing, Supervision.
Tony Castillo-Calzadilla: Writing – original draft, Writing – review & editing.
Carlos Rizo-Maestre: Writing – original draft, Writing – review & editing.
Funding
This research received no external funding.
Declaration of competing interest
The authors declare no competing interests.
References
[1] Carlos Quesada, Leire Astigarraga, Chris Merveille, and Cruz E Borges. An electricity smart meter dataset of spanish households: insights into consumption patterns. Scientific Data, 11(1):59, 2024.
[2] Ian T Jolliffe and Jorge Cadima. Principal component analysis: a review and recent developments. Philosophical transactions. Series A, Mathematical, physical, and engineering sciences, 374(2065):20150202, 2016.
[3] Ian T Jolliffe, Nickolay T Trendafilov, and Mudassir Uddin. A modified principal component technique based on the lasso. Journal of computational and Graphical Statistics, 12(3):531–547, 2003.
[4] Hui Zou, Trevor Hastie, and Robert Tibshirani. Sparse principal component analysis. Journal of computational and graphical statistics, 15(2):265–286, 2006.
[5] Haipeng Shen and Jianhua Z Huang. Sparse principal component analysis via regularized low rank matrix approximation. Journal of multivariate analysis, 99(6):1015–1034, 2008.
[6] Daniela M Witten, Robert Tibshirani, and Trevor Hastie. A penalized matrix decomposition, with applications to sparse principal components and canonical correlation analysis. Biostatistics, 10(3):515–534, 2009.
[7] Rodolphe Jenatton, Guillaume Obozinski, and Francis Bach. Structured sparse principal component analysis. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pages 366–373. JMLR Workshop and Conference Proceedings, 2010.
[8] Robert Tibshirani, Michael Saunders, Saharon Rosset, Ji Zhu, and Keith Knight. Sparsity and smoothness via the fused lasso. Journal of the Royal Statistical Society Series B: Statistical Methodology, 67(1):91–108, 2005.
[9] Ryan J Tibshirani. The solution path of the generalized lasso. Stanford University, 2011.
[10] Jian Guo, Gareth James, Elizaveta Levina, George Michailidis, and Ji Zhu. Principal component analysis with sparse fused loadings. Journal of Computational and Graphical Statistics, 19(4):930–946, 2010.
[11] Ziyi Li, Sandra E Safo, and Qi Long. Incorporating biological information in sparse principal component analysis with application to genomic data. BMC bioinformatics, 18(1):332, 2017.
[12] Amicie De Pierrefeu, Tommy Löfstedt, Fouad Hadj-Selem, Mathieu Dubois, Renaud Jardri, Thomas Fovet, Philippe Ciuciu, Vincent Frouin, and Edouard Duchesnay. Structured sparse principal components analysis with the tv-elastic net penalty. IEEE transactions on medical imaging, 37(2):396–407, 2017.
[13] Tamara G Kolda and Brett W Bader. Tensor decompositions and applications. SIAM review, 51(3):455–500, 2009.
[14] Mattia Banin, Matteo Barigozzi, and Luca Trapin. Predicting energy demand with tensor factor models. arXiv preprint arXiv:2502.06213, 2025.
[15] Laurent Condat. A primal-dual splitting method for convex optimization involving lipschitzian, proximable and linear composite terms. Journal of optimization theory and applications, 158(2):460–479, 2013.
[16] Bằng Công Vũ. A splitting algorithm for dual monotone inclusions involving cocoercive operators. Advances in Computational Mathematics, 38(3):667–681, 2013.
[17] Carlos Quesada-Granja. GoiEner Smart Meter Dataset (version 7.1). Zenodo, 2026. https://doi.org/10.5281/zenodo.22313409.
[18] Carlos Quesada, Pablo Montero-Manso, Noah Pflugradt, Leire Astigarraga, Chris Merveille, Diego Casado-Mansilla, and Cruz E Borges. A data-driven methodology for deriving electricity consumption typologies from smart meters. Energy Reports, 14:2420–2434, 2025.
[19] UK Power Networks. SmartMeter Energy Consumption Data in London Households. London Datastore. https://data.london.gov.uk/dataset/smartmeter-energy-consumption-data-in-london-households-vqm0d, accessed 5 September 2026.
[20] John Wilder Tukey et al. Exploratory data analysis, volume 2. Addison-wesley Reading, MA, 1977.
[21] Per Christian Hansen. Analysis of discrete ill-posed problems by means of the l-curve. SIAM review, 34(4):561–580, 1992.
[22] Per Christian Hansen and Dianne Prost O'Leary. The use of the l-curve in the regularization of discrete ill-posed problems. SIAM journal on scientific computing, 14(6):1487–1503, 1993.
[23] Cesar Vargas Anamuro, Alberto Blanc, and Xavier Lagrange. Statistical analysis and characterization of signaling and user traffic of a commercial multi-band LTE system. Telecommunication Systems, 87(2):437–453, 2024.
[24] Eunjung Lee, Keon Baek, and Jinho Kim. Datasets on south korean manufacturing factories' electricity consumption and demand response participation. Scientific Data, 9:227, 2022.
[25] Fiona Crawford, David P. Watling, and Richard D. Connors. A statistical method for estimating predictable differences between daily traffic flow profiles. Transportation Research Part B: Methodological, 95:196–213, 2017.
[26] Bashar Alfalah, Mehdi Shahrestani, and Li Shao. Identifying occupancy patterns and profiles in higher education institution buildings with high occupancy density – a case study. Intelligent Buildings International, 15(2):45–61, 2023.
[27] Oihane Fernandez-Betelu, Isla M. Graham, Thomas Cornulier, and Paul M. Thompson. Fine scale spatial variability in the influence of environmental cycles on the occurrence of dolphins at coastal sites. Scientific Reports, 9:2548, 2019.
A Optimization details
This appendix completes the numerical specification of the Calendar-SPCA fitting procedure described in Section 3.3. It provides the primal-dual loading updates, step-size selection, convergence criteria, initialization and component-recovery strategy, and the numerical settings used throughout the experiments.
A.1 Primal-dual loading update
For fixed , the loading matrix is obtained by solving the convex problem
The smooth reconstruction term
has gradient
Calendar-SPCA solves Eq. (34) with a Condat–Vũ primal-dual splitting scheme [15, 16]. Introducing a dual variable associated with the calendar incidence operator , one iteration is
followed by the extrapolation
and the dual update
Here, denotes entrywise soft-thresholding,
and clip denotes entrywise projection onto the interval .
The primal update therefore applies the sparsity penalty directly to the loading coefficients, while the dual update controls differences across the calendar graph through . The two regularizers are handled within the same convex loading solve, preserving the sparse and graph-coherent structure of the Calendar-SPCA objective.
The primal and dual step sizes and are chosen from the spectral properties of and , as described next.
A.2 Step-size selection
The primal-dual step sizes depend on the Lipschitz constant of the smooth loading objective and on the spectral norm of the calendar incidence operator.
For fixed , the gradient in Eq. (35) has Lipschitz constant
The calendar incidence matrix satisfies
where is the graph Laplacian. For the Cartesian-product calendar graph
the Laplacian eigenvalues are obtained by summing the eigenvalues of the three cycle graphs. Consequently,
where the largest Laplacian eigenvalue of a cycle is
Both calendar domains used in this study, for GoiEner and for Low Carbon London, therefore give
Using and , the dual and primal step sizes are chosen as
with controlling the dual step and providing a numerical safety margin.
These choices satisfy the Condat–Vũ condition
which is verified during each loading update. The values of and used in the experiments are reported in Section A.5.
A.3 Convergence and numerical safeguards
Calendar-SPCA monitors convergence at three levels: refinement of the score matrix, solution of the structured loading subproblem, and stabilization of the complete low-rank factorization.
Score refinement. For fixed , successive sweeps update all active score vectors using Eqs. (11)–(12). Score refinement terminates when
or when the prescribed number of score sweeps is completed.
Loading convergence. The accuracy of the primal-dual loading solve is progressively refined over the outer iterations. At outer iteration , its target tolerance is
Every primal-dual iterations, the relative loading change is evaluated as
A complementary fixed-point residual measures consistency with the primal and dual updates. Define
and
The normalized primal-dual residual is
The loading subproblem is considered converged when
and the loading objective satisfies the descent safeguard. A numerical margin
is included in this check to accommodate floating-point precision. At the maximum inner-iteration budget, a candidate satisfying the same descent condition is retained. The pre-update primal and dual states remain active whenever the descent condition is unmet.
Outer convergence. Let
denote the complete Calendar-SPCA objective and
the corresponding fitted representation. Outer stabilization is monitored through the relative objective change
and the relative reconstruction change
The fitting procedure terminates when
the current loading subproblem has converged, and the active component set has remained unchanged during the iteration.
The reconstruction difference in Eq. (56) is evaluated exactly from the Gram matrices of consecutive factorizations, avoiding explicit construction of the full reconstructed matrices.
The numerical values of all convergence tolerances, iteration budgets, and check intervals are collected in Section A.5. Component degeneracy and recovery are described next.
A.4 Initialization and component recovery
Calendar-SPCA is initialized from a randomized truncated singular-value decomposition of the centered data matrix . For nominal rank K and oversampling parameter s, a Gaussian matrix
is used to construct an approximate dominant left singular subspace. A small number of power iterations refines this subspace, followed by a reduced singular-value decomposition. The initial factors are arranged so that
with the corresponding singular-value amplitudes assigned to the loading vectors . This initialization follows the same score-loading scale convention used throughout the Calendar-SPCA factorization.
During optimization, the active components are monitored for numerical degeneracy. Component k is selected for recovery when
or when its unnormalized score update satisfies
Redundancy between active loading vectors is assessed through their absolute cosine similarity,
(61) with values above identifying near-duplicate loading directions. The condition number of the active loading Gram matrix,
provides an additional diagnostic for near-dependence among several components.
When recovery is triggered, the component with the smallest conditional reconstruction contribution is selected from the affected set. A new loading direction is then extracted from residual variation in the data. The candidate direction is projected away from the remaining active loadings and refined through a small number of residual power iterations. Its associated score vector is normalized and the recovered amplitude is assigned to the loading vector.
Each component is given a finite number of recovery attempts. Components that sustain a stable recovered direction remain in the active set , while the final active set determines the effective rank
For reproducible presentation, a deterministic sign convention is applied after fitting. For each active loading , define
The pair is oriented so that . This transformation preserves the rank-one component and provides consistent signs across stored solutions and visualizations.
The recovery thresholds, redundancy criteria, power-iteration settings, and maximum number of recovery attempts are reported in Section A.5.
A.5 Numerical settings
The numerical controls were kept fixed across the experiments, with the outer-iteration budget increased for the full-data regularization-selection fits. Table 3 summarizes the settings governing score refinement, primal-dual optimization, convergence, initialization, and component recovery.
B Additional robustness and ablation
This appendix complements the main factorial analysis with two additional views of Calendar-SPCA behaviour. The first summarizes the numerical reliability of the complete factorial experiment. The second isolates the individual contributions of loading sparsity and calendar coherence through a matched penalty ablation. A final compact analysis examines the dependence of the objective balance on sample size.
B.1 Reliability of the factorial experiment
The factorial design comprised 5,880 Calendar-SPCA fits spanning the full grid of regularization strengths, sample sizes, nominal ranks, and repetitions. Among these fits, 3,499
Table 3: Numerical settings used in the Calendar-SPCA experiments.
| Setting | Symbol | Value |
|---|---|---|
| Score refinement | sweeps / | |
| Outer iteration budget | – | 500 (factorial); 1000 (selection) |
| Outer tolerances | ||
| Numerical safeguard | ||
| Inner iteration budget | – | 50 000 |
| Inner check interval | 25 | |
| Inner tolerance schedule | ||
| Primal-dual controls | (0.99, 1.0) | |
| Degeneracy thresholds | ||
| Redundancy thresholds | ||
| Maximum recovery attempts | – | 3 |
| Residual power iterations | – | 5 |
| SVD power iterations / oversampling | – | 2/5 |
(59.5%) satisfied the complete convergence criterion defined in Section A.3, and 2,381 completed the prescribed budget of 500 outer iterations.
Table 4 summarizes the final numerical diagnostics of both groups.
Table 4: Numerical diagnostics of the Calendar-SPCA factorial experiment. Outer iteration counts and final relative changes are reported as medians; is averaged across fits.
| Status | Fits | Outer iter. | Full rank (%) | |||
|---|---|---|---|---|---|---|
| Converged | 3499 | 191 | 0.931 | 84.1 | ||
| Iteration-budget | 2381 | 500 | 0.999 | 99.6 |
The converged fits show very small final objective and reconstruction changes, consistent with the stopping tolerances used throughout the study. Fits reaching the iteration budget also retain nearly all requested components and typically exhibit small final changes, indicating advanced numerical stabilization within the fixed computational budget.
The factorial summaries reported in Section 5.1 use a reliability criterion based on repeated convergence. A configuration is included when at least four of its five repetitions satisfy the complete convergence criterion. This rule ensures that each aggregated grid value is supported by consistent repeated solutions and provides the reliability mask used in the regularization landscape.
B.2 Isolating sparsity and calendar coherence
The regularization landscape in Section 5.1 shows the joint behaviour of the two Calendar-SPCA penalties over the complete factorial grid. A complementary view is obtained by comparing a small set of representative configurations that isolate the individual and combined effects of loading sparsity and calendar coherence.
To make these effects directly visible, we consider the four configurations
The value 3 provides a clearly regularized regime in which the effect of each penalty can be read directly from the fitted loading structure. Table 5 reports the corresponding averages over the nine reliable scenarios common to all four configurations.
Table 5: Matched comparison isolating the effects of the sparsity and calendar-coherence penalties. Values are averaged over the nine reliable scenarios common to all four configurations.
| EV | Sparsity | RTV | Regions | ||
|---|---|---|---|---|---|
| 0 | 0 | 0.387 | 0.000 | 0.779 | 1.00 |
| 3 | 0 | 0.346 | 0.691 | 0.910 | 7.35 |
| 0 | 3 | 0.360 | 0.000 | 0.204 | 1.00 |
| 3 | 3 | 0.310 | 0.657 | 0.386 | 3.64 |
The comparison shows a clear division of roles between the two penalties. When , increasing from 0 to 3 raises mean loading sparsity from 0 to 0.691. The term therefore acts as the main mechanism controlling support size and temporal selectivity.
When , increasing from 0 to 3 reduces the mean relative total variation from 0.779 to 0.204 while preserving dense supports. The graph-TV term therefore acts primarily on the internal organization of the loading field, promoting coherent values across adjacent calendar positions.
When both penalties are active, these two effects combine within the same representation. The resulting loadings remain strongly sparse (mean sparsity = 0.657) and substantially more coherent than under sparsity alone (RTV = 0.386 versus 0.910). The mean number of effective regions also decreases from 7.35 to 3.64, showing that calendar coherence organizes the selected support into a smaller number of dominant temporal structures.
This matched comparison supports the interpretation adopted throughout the paper. The penalty determines how much of the calendar domain is active, while graph total variation shapes how that active support is connected and organized. Their combination yields the sparse and coherent calendar patterns that characterize Calendar-SPCA.
B.3 Sample-size dependence of the objective balance
The factorial experiment also provides information about how the relative weight of the regularization terms evolves with sample size. This effect was examined at the common configuration and for
For each fitted model, the Calendar-SPCA objective was decomposed as
with
Table 6 reports the two penalty terms relative to the reconstruction contribution. Values are averaged over the five converged repetitions available at each sample size.
Table 6: Relative objective balance as a function of sample size for and .
| 5 000 | 0.105 | 0.052 | 0.157 |
| 10 000 | 0.081 | 0.042 | 0.124 |
| 15 000 | 0.070 | 0.037 | 0.107 |
| 20 000 | 0.062 | 0.033 | 0.096 |
The relative contribution of both regularizers decreases systematically as the number of observations increases. The combined penalty-to-reconstruction ratio changes from 0.157 at to 0.096 at , with the same progression visible independently for the sparsity and calendar-TV terms.
This behaviour shows that a fixed numerical pair corresponds to a sample-size-dependent balance between reconstruction and regularization. The observation provides additional context for the sparsity trends in Section 5.2 and motivates future investigation of sample-size-aware regularization scaling.
C Baseline implementation details
This appendix documents the reference methods used in the cross-method comparison of Section 5.4. It specifies the fitted baseline formulations, their implementation, and the numerical procedures used for regularization selection.
C.1 Reference methods
All reference methods were evaluated at the common rank using the same normalized annual profiles and centering convention as Calendar-SPCA.
PCA. Ordinary PCA was fitted directly to the complete centered matrices and provides the rank-matched linear reconstruction reference used throughout the comparison.
Sparse PCA. Sparse PCA was represented by a high-dimensional, matrix-free implementation of the alternating arrayspc scheme of Zou et al. [4]. The method estimates sparse loading directions through iterative singular-vector updates and soft-thresholding.
For scalability on the complete smart-meter matrices, products involving the sample covariance operator were evaluated without explicitly forming , using
The dominant rank-15 initialization was obtained through truncated SVD. The matrix-free implementation was validated against elasticnet::arrayspc on a tractable problem, reproducing the fitted loading vectors and adjusted explained variance to numerical precision.
SPCA-TV. SPCA-TV was fitted using the PCAL1L2TV implementation associated with de Pierrefeu et al. [12]. The method extracts successive rank-one components under , quadratic, and total-variation regularization.
For the present comparison, its structural operator was constructed from the same cyclic calendar neighbourhood used by Calendar-SPCA. SPCA-TV applies its native isotropic total variation across the directional calendar operators. The common relative total-variation diagnostic reported in Section 5.4 was subsequently evaluated for all sparse methods using the anisotropic graph definition of Eq. (29) on the same calendar graph.
The regularization parameters of SPCA and SPCA-TV were selected through the method-specific procedures described next.
C.2 Regularization selection
Regularization parameters for SPCA and SPCA-TV were selected numerically before inspection of the fitted component maps. Both methods used one-dimensional regularization paths and the same L-curve principle adopted for the final Calendar-SPCA configurations.
Sparse PCA. For SPCA, the soft-thresholding parameter was expressed relative to the data-dependent reference scale
where and are obtained from the rank-15 PCA initialization. The arrayspc regularization parameter was then written as
The candidate path was
For each value of , the L-curve was formed from the loading magnitude and reconstruction residual. Maximum discrete curvature selected
and
SPCA-TV. The three SPCA-TV penalties were parameterized through a common multiplicative factor relative to the data-dependent scale used by the implementation,
The candidate path was
The L-curve combined the native regularization magnitude with reconstruction residual, and maximum discrete curvature selected
and
For GoiEner, the SPCA and SPCA-TV regularization paths were evaluated on the same fixed deterministic sample of profiles. The selected dimensionless factors were subsequently transferred to fits on the complete dataset, with their data-dependent regularization scales recomputed from the full centered matrix. For Low Carbon London, both regularization paths were evaluated directly on the complete dataset.
All selected full-data representations retained the complete rank . The resulting reconstruction and structural metrics are summarized in the following section.
C.3 Final cross-method summary
Table 7 reports the final rank-matched comparison obtained with the selected configurations of PCA, SPCA, SPCA-TV, and Calendar-SPCA. All methods were evaluated at on the complete datasets.
Table 7: Final cross-method comparison at . EV denotes explained variance, PCA retention expresses EV relative to the corresponding PCA solution, sparsity is the fraction of loading coefficients below the support threshold, and RTV is the relative total variation over the common cyclic calendar graph.
| Dataset | Method | EV (%) | PCA retention (%) | Sparsity (%) | RTV |
|---|---|---|---|---|---|
| GoiEner | PCA | 41.95 | 100.00 | 0.00 | 0.865 |
| SPCA | 41.29 | 98.44 | 47.12 | 0.994 | |
| SPCA-TV | 34.39 | 81.98 | 42.10 | 0.792 | |
| Calendar-SPCA | 40.66 | 96.92 | 61.95 | 0.615 | |
| LCL | PCA | 27.63 | 100.00 | 0.00 | 0.858 |
| SPCA | 26.14 | 94.63 | 64.24 | 1.052 | |
| SPCA-TV | 25.76 | 93.22 | 19.02 | 0.509 | |
| Calendar-SPCA | 22.90 | 82.90 | 81.50 | 0.450 |
The final comparison shows the distinct structural profiles of the four representations. PCA provides the rank-matched reconstruction reference, SPCA introduces substantial loading sparsity while preserving a high fraction of PCA variance, and SPCA-TV emphasizes local regularity over the calendar neighbourhood. Calendar-SPCA combines high loading selectivity with strong calendar coherence while retaining substantial explained variance on both datasets. These numerical results complement the cross-method analysis in Section 5.4 and the Calendar-SPCA component representations in Section 5.5.