betaFeedback

WorksComputer Science

Towards Automated Recommendation of Steady-State Detection Algorithms for Software Performance Benchmarks

Abstract

Steady-state detection is a central step in software performance benchmarking, yet different detection methods rely on different assumptions and may perform best on different execution profiles. This paper formulates steady-state detection as an algorithm-recommendation problem: given a benchmark time series, predict which of two complementary detectors is more appropriate. The first, CP-SSD, identifies steady state through changepoint-based segmentation of the execution trace, whereas the second, KB-KSSD, uses a kernel-based approach to identify stable behaviour. We propose a data-driven recommender that characterises benchmark time series using automatically extracted features and combines supervised prediction with information derived from groups of time series exhibiting similar behaviour. The approach is evaluated on 407 labelled benchmark time series for which one of the two detectors can be identified as preferable with respect to a reference steady-state index. The proposed recommender selects the better detector correctly for 72.97% of the series, compared with 62.65% when always selecting the detector that performs best most often, corresponding to an absolute improvement of 10.32 percentage points. Paired statistical testing and bootstrap confidence intervals support this improvement. A comparison with a recommender using time-series features alone shows that the cluster-derived information mainly improves interpretability rather than predictive accuracy. Recommendations also remain highly stable when the unsupervised representation is learned from either the labelled subset or the full collection of 5,860 time series. These results demonstrate the feasibility of per-series steady-state detector recommendation while highlighting the need for broader labelled data, particularly for execution profiles favouring the changepoint-based detector.

Highlights

  • We formulate steady-state detection as an automatic algorithm-recommendation task.

  • On 407 steady benchmark time series with judgment-aggregated ground truth, our TSFresh-plus-cluster-signature recommender achieves 72.97% accuracy, compared with 62.65% when always selecting Kernel-based Kelly’s Steady-State Detection.

  • Exact McNemar testing and bootstrap confidence intervals show that the gain over always selecting the majority-winning detector is statistically significant and robust to project-level resampling.

  • Recommendations are highly stable when clustering is learned either from the 407 labelled steady series or from all 5,860 available time series, with 98.03% agreement.

Introduction

Reliable performance benchmarking requires distinguishing measurements affected by unstable execution behaviour from those that are sufficiently stable to be used for performance inference. This distinction is particularly important for managed runtimes, where just-in-time compilation, garbage collection, resource allocation, and other runtime mechanisms can cause execution times to change substantially during the initial part of a benchmark run [14, 16]. In many executions, this behaviour can be interpreted as a transition from an initial warm-up region towards a more stable steady-state region. However, such a transition is not necessarily sharp or even guaranteed to occur: benchmark traces may contain temporary plateaus, repeated transitions, outliers, or long-term non-stationarity [3] (Traini, Cortellessa, Di Pompeo and Tucci 2023).

Identifying the beginning of a steady state is therefore an important and non-trivial part of performance analysis. If the transition is detected too early, unstable observations may be included in the final performance estimate and bias the reported result. Conversely, an overly conservative detector may discard useful observations, unnecessarily extend benchmark execution, or reduce the amount of steady-state data available for subsequent analysis. Consequently, steady-state detection (SSD) has received increasing attention in software performance benchmarking, where several approaches have been proposed, ranging from changepoint-based segmentation to statistical and probabilistic tests [4, 3, 5, 6, 9] (Traini et al. 2023; Wu, Chen and Zhou 2016).

An issue that comparatively receives less attention is that SSD methods embody different assumptions about what constitutes the transition to steady behaviour. Changepoint-based approaches identify structural changes in the observed execution trace and infer a final stable region from the resulting segmentation. In contrast, other methods may evaluate local smoothness, probabilistic steadiness, or specific transition patterns. These differences are not merely methodological: they can lead different detectors to be preferable on different execution profiles.

This is particularly visible when comparing two recent SSD approaches used in this study. The first is a changepoint-based approach introduced by Traini et al. (2023), which we denote as CP-SSD (Traini et al., 2023). The second is KB-KSSD, introduced in our previous work [4], which combines robust preprocessing, kernel-based transition detection, and a probabilistic steady-state criterion adapted from process monitoring.

Indeed, on the benchmark collection considered in that study, KB-KSSD achieved lower total detection error with respect to judgment-aggregated ground truth (JAGT), which provides the human-selected reference steady-state indices against which automatic detections are evaluated, and fewer false-negative detections than CP-SSD. Nevertheless, the total result does not imply that KB-KSSD is the better choice for every individual execution. In the 407 steady JAGT time series used in the present work, KB-KSSD provides the better steady-state estimate for 255 of them, whereas CP-SSD works better for the remaining 152. Thus, always applying a globally stronger detector is not always the best choice, as it can be applied to a substantial number of benchmark executions where another method could produce more accurate results.

This observation motivates a different formulation of the SSD problem. Instead of asking which detector is best on average, we ask whether the characteristics of an individual benchmark time series can be used to predict which detector would work better on that particular execution. The problem is therefore naturally related to per-instance algorithm selection, where features describing an instance are used to choose the algorithm expected to perform best on that instance (Rice, 1976; Kerschke, Hoos, Neumann and Trautmann, 2019). In the present context: an “instance” is a benchmark execution trace, the algorithm portfolio contains CP-SSD and KB-KSSD, and the target is the detector producing the smaller absolute error relative to the reference JAGT steady-state indices. More broadly, this formulation represents an application of artificial intelligence to software performance analysis, using machine learning to adapt the choice of SSD method to the characteristics of each execution trace.

The central challenge is therefore to construct a representation of an execution trace that contains information about the relative performance of the two SSD methods. We begin by extracting a broad set of time-series descriptors with TSFresh [10], covering distributional, entropy-based, frequency-domain, temporal, and other characteristics. These descriptors are used in two complementary branches of the recommendation pipeline. The first branch searches for structure among execution traces. We reduce the TSFresh representation using Principal Component Analysis (PCA) [1] and Uniform Manifold Approximation and Projection (UMAP) (McInnes, Healy, Saul and Grossberger, 2018), and subsequently identify groups of similar traces using HDBSCAN (McInnes, Healy, Astels et al., 2017). Clusters containing labelled series are then characterised by whether their members tend to favour CP-SSD or KB-KSSD. This information is converted into cluster-signature similarity features that describe how closely a new execution resembles regions associated with either detector.

The second branch uses TSFresh descriptors directly as supervised predictive features. We combine the selected direct descriptors with the cluster-signature features and train a Random Forest classifier (Kulkarni and Sinha, 2013) to recommend one of the two SSD methods. We refer to this as the hybrid recommender because its feature representation combines directly predictive time-series descriptors with meta-features derived from the unsupervised cluster structure. Figure 1 summarises this pipeline.

Workflow of the hybrid SSD recommender

Figure 1. Workflow of the hybrid SSD recommender and its correspondence to the methodological stages described in Section 3. Section 3.1 defines the benchmark input and binary recommendation target. Section 3.2 defines the shared TSFresh representation and preprocessing as well as the direct predictive-feature branch. Section 3.3 describes the PCA–UMAP–HDBSCAN structure-discovery branch and the construction of cluster-signature features. Section 3.4 combines the direct and cluster-derived representations in the hybrid Random Forest recommender. The dashed containers indicate these subsection boundaries. Label-dependent operations, feature selection, and model fitting are performed within the training portion of each evaluation split.

This design lets us study two related questions. First, we ask whether per-series recommendation can improve upon simple reference strategies, including random selection and always selecting KB-KSSD, which is the method that wins most often in the labelled dataset. Second, we examine whether the cluster-derived representation contributes useful information beyond the directly predictive TSFresh descriptors. We therefore evaluate both the hybrid recommender and an ablation that uses only the selected TSFresh features. The purpose of the clustering component is not to assume that clustering must improve predictive accuracy, but to determine whether method-specialised regions exist and whether they provide an interpretable description of when the two SSD approaches tend to succeed.

Based on these objectives, we investigate the following research questions:

RQ1 How often does each SSD method provide the better estimate, and does method preference vary systematically across clusters of similar time series?

This question establishes whether the recommendation problem is meaningful in the first place. If one detector dominates almost every series, per-instance selection would offer little practical value. We therefore analyse both the global distribution of CP-SSD and KB-KSSD wins and their distribution within the clusters.

RQ2 Can the better SSD method be recommended automatically, and does recommendation outperform random choice and/or majority-winning detector?

We evaluate the predictive performance of our recommender against equiprobable random selection, prevalence-matched random selection, and the strong majority strategy of always selecting KB-KSSD. We additionally compare the hybrid model with a direct TSFresh classifier to isolate the incremental contribution of the cluster-signature representation.

RQ3 What kinds of recommendation errors remain, particularly for the minority CP-SSD class?

Overall accuracy alone can obscure asymmetric behaviour between the two classes. We therefore analyse the confusion matrix, balanced accuracy, precision, recall, and F1-score, with particular attention to the ability to recognise executions for which CP-SSD is preferable.

RQ4 How sensitive are the recommendations to the population used for unsupervised clustering?

The primary clustering analysis is learned from the 407 labelled JAGT series, whereas a secondary analysis derives the clustering structure from all 5,860 cached time series. We compare the resulting recommendations to determine whether the downstream classifier depends strongly on the population used for unsupervised structure discovery.

The main contributions of this paper are therefore:

  • We formulate SSD-method choice as a per-instance algorithm recommendation problem, rather than treating one detector as universally preferable for all benchmark executions.

  • We construct a recommendation dataset from 407 decisive JAGT-labelled time series, containing 152 CP-SSD

winners and 255 KB-KSSD winners, using explicit rules for detector failures and absolute-error comparisons.

  • We introduce a hybrid recommendation pipeline combining TSFresh descriptors with similarity features derived from clusters of behaviourally similar time series, providing both predictive and interpretable information about detector preference.

  • We provide a repeated-holdout evaluation and a complementary unique-series inferential analysis using exact paired hypothesis testing, effect-size estimation, and bootstrap uncertainty quantification.

  • We show that automatic SSD recommendation improves substantially over random and majority strategies, while also demonstrating that the present cluster-signature representation does not produce a statistically supported accuracy improvement over direct TSFresh features.

  • We show that the recommendations are highly robust to the population used for clustering: clustering learned from the labelled JAGT subset and clustering learned from all 5,860 cached time series produce 98.03% identical final recommendations.

The data, code, archived intermediate results, and replication instructions accompanying this study are described in § 12.

Background and Related Work

This section provides the background necessary to position the proposed SSD recommendation framework. We first discuss steady-state behaviour and its importance for reliable performance benchmarking, followed by the automatic SSD methods that constitute the recommendation portfolio considered in this work. We then relate the proposed formulation to the broader problem of per-instance algorithm selection and finally review the time-series representation, dimensionality-reduction, clustering, and classification techniques used to construct the recommender.

Managed-runtime benchmarking and steady-state behaviour

Reliable microbenchmarking requires more than repeated execution: measurements must be collected under a protocol that controls sources of variability and separates transient behaviour from the region used for performance inference. Georges et al. established a statistically rigorous methodology for Java performance evaluation, while Kalibera and Jones subsequently showed how careful experimental design can provide rigorous conclusions without prohibitively long experiments [14, 16]. These concerns are particularly important for managed runtimes, where just-in-time compilation, garbage collection, adaptive optimisation, and other runtime mechanisms can produce non-stationary execution profiles.

The conventional assumption that a virtual machine warms up and then remains at a stable peak-performance

state is not universally valid. Barrett et al. used an automated change-point-based analysis and showed that many benchmark–VM pairs do not consistently exhibit the expected warm-up-to-steady-state pattern [3]. Traini et al. later investigated steady-state assessment in Java microbenchmarking at a larger scale and showed that benchmarks may fail to reach a steady state and that developer-specified warm-up durations can be inaccurate (Traini et al., 2023).

Automatic steady-state detection

The first candidate considered in this study is the change-point-based procedure used by Traini et al.; throughout this paper we refer to this procedure as CP-SSD. It builds on the changepoint formulation of Barrett et al. and uses multiple-change detection to partition an execution trace into statistically homogeneous regions [3] (Traini et al. 2023). The underlying PELT algorithm finds an exact optimum for a penalised multiple-changepoint objective while achieving linear computational cost under suitable conditions (Killick, Fearnhead and Eckley, 2012). Post-processing then removes negligible changes and the final segments are inspected to determine whether a sufficiently stable region has been reached.

The second candidate, KB-KSSD, follows a different design. It combines robust preprocessing, kernel-based transition detection, and a probabilistic steady-state test adapted from Kelly and Hedengren’s process-monitoring formulation (Kelly and Hedengren, 2013). The complete method was introduced for performance time series by Beseda et al. and evaluated against CP-SSD and other reference methods on a JAGT [4]. That study reported a 14.5% reduction in total absolute steady-state-index error relative to CP-SSD and a lower false-negative rate. Importantly for the present work, however, collection-level superiority does not imply that one method is best for every benchmark execution. The JAGT-labelled series contain substantial numbers of instances won by each method, which makes per-instance selection meaningful.

The studies above evaluate SSD procedures as competing methods over benchmark collections. The present work asks a different question: given the observed characteristics of one execution trace, can the method that will produce the smaller steady-state-index error be selected automatically? This shifts the unit of decision from the benchmark collection to the individual time series.

Per-instance algorithm selection and meta-learning

This formulation is closely related to the classical algorithm-selection problem of Rice, in which instance characteristics are mapped to the algorithm expected to perform best on that instance (Rice, 1976). Modern algorithm selection systems operationalise this idea through machine learning over instance-level meta-features, and surveys by Kotthoff and by Kerschke et al. show that such per-instance selection can exploit complementary strengths of algorithms that are obscured by aggregate rankings (Kotthoff, 2014; Kerschke et al., 2019). A central requirement is therefore a feature representation that captures properties relevant to relative algorithm performance. Automated algorithm recommendation has also received considerable attention in time series analysis (Prudêncio and Ludermir, 2004; Talagala, Hyndman and Athanasopoulos, 2023). For example, Prudêncio and Ludermir (2004) employed meta-learning to identify the best-performing algorithm for TSF, whereas Shahoud, Khalloof, Duepmeier and Hagenmeyer (2020) developed DSTMS to support algorithm selection in energy forecasting tasks.

Our recommendation target follows this paradigm directly. Each labelled benchmark time series is an instance; the portfolio contains CP-SSD and KB-KSSD; and the target label identifies which method has the smaller absolute error relative to the reference steady-state index. Unlike conventional algorithm-selection studies, where instance descriptors often encode a static problem definition, here the descriptors are extracted from the observed execution-time trajectory itself.

Time-series representation and structure-aware recommendation

TSFresh provides a large, automatically generated set of time-series descriptors spanning distributional statistics, autocorrelation, entropy, frequency-domain coefficients, peaks, quantiles, and change-related properties [10] (Pincus 1991). This makes it suitable for converting variable-length benchmark traces into a common fixed-dimensional representation without hand-designing a small domain-specific feature set.

The proposed pipeline combines this direct representation with unsupervised structure discovery. PCA is used to obtain lower-dimensional linear representations [15]; UMAP provides a nonlinear manifold embedding (McInnes et al., 2018); and HDBSCAN identifies density-based clusters while retaining an explicit noise class [8]. The discovered clusters are not treated as prediction targets. Instead, training labels are used to characterise whether particular clusters exhibit CP-SSD or KB-KSSD specialisation, and these specialised regions are transformed into cluster-signature similarity features.

The final classifier is a Random Forest [7]. We evaluate both a direct TSFresh model and a hybrid model that augments selected TSFresh features with the cluster-signature representation. This ablation is important because it separates two questions: whether the original time-series descriptors are sufficient for SSD recommendation, and whether the unsupervised structure adds incremental predictive information. As shown later, the signatures expose interpretable method-specialised structure, but the present representation does not yield a statistically supported accuracy improvement over the direct TSFresh classifier.

Methodology

This section formalises the complete analysis pipeline, from the benchmark time series and the construction of the recommendation labels to the clustering configuration score, cluster-signature representation, hybrid feature vector, and final supervised recommender. All feature-selection and label-dependent signature operations used for prediction are performed using the training portion of each repeated holdout split.

Figure 1 provides a visual roadmap of the methodology. The dashed regions in the figure correspond directly to the main stages described in this section. Section 3.1 defines the benchmark input and recommendation target; Section 3.2 describes the TSFresh representation, preprocessing, and direct predictive-feature branch; Section 3.3 describes the PCA–UMAP–HDBSCAN structure-discovery branch and the construction of cluster signatures; and Section 3.4 combines the two branches into the final hybrid Random Forest recommender. Sections 3.5 and 3.6 then define the experimental and statistical evaluation of the resulting recommendations.

Benchmark Dataset and Recommendation Target

The available benchmark collection contains Nall=5860N_{\mathrm{all}} = 5860 cached time series. We denote series ii by xi\mathbf{x}_i, its length by LiL_i, and its measurement at time index tt by xitx_{it}. The labelled recommendation subset contains N=407N = 407 JAGT time series. For each labelled series ii, let airefa_i^{\mathrm{ref}} denote the reference steady-state index, while aiCPa_i^{\mathrm{CP}} and aiKBa_i^{\mathrm{KB}} denote the indices returned by CP-SSD and KB-KSSD, respectively. An index equal to −1-1 means that the corresponding method did not identify a steady state.

For a method A∈{CP,KB}A \in\{\mathrm{CP}, \mathrm{KB}\} that returns a valid index, its absolute detection error is

eiA=∣aiA−airef∣.(1)e_i^A = \left|a_i^A - a_i^{\mathrm{ref}}\right|. \tag*{(1)}

The separate-wins formulation used in the implementation assigns binary win indicators wiCPw_i^{\mathrm{CP}} and wiKBw_i^{\mathrm{KB}}. If exactly one method returns a valid index, that method receives one win. If both methods return valid indices, the method with the smaller absolute error receives one win. If both fail or the valid errors are equal, neither method receives a win. The supervised target is defined only for decisive observations satisfying wiCP+wiKB=1w_i^{\mathrm{CP}} + w_i^{\mathrm{KB}} = 1:

yi=wiCP∈{0,1},(2)y_i = w_i^{\mathrm{CP}} \in\{0,1\}, \tag*{(2)}

where yi=1y_i = 1 denotes a CP-SSD win and yi=0y_i = 0 denotes a KB-KSSD win. The resulting labelled dataset therefore consists of the N=407N = 407 pairs (xi,yi)(\mathbf{x}_i, y_i).

In the analysed dataset, all 407 JAGT time series were decisive under this formulation. KB-KSSD wins on 255 series, while CP-SSD wins on 152 series. The benchmark dataset composition is summarized in Table 1, while the outcome reasons are presented in Table 2.

PropertyValue
Total number of time series5860
Number of JAGT time series407
CP-SSD wins152
KB-KSSD wins255
Non-decisive cases0

Table 1. Summary of the benchmark dataset.

Outcome reasonCount
KB lower absolute error251
CP lower absolute error147
CP valid, KB failed5
KB valid, CP failed4
Both failed0

Table 2. Outcome reasons under the separate-wins formulation.

TSFresh Representation and Preprocessing

After removing the first observation and normalising each time series, TSFresh maps the variable-length input to a fixed-dimensional descriptor vector zi=(zi1,…,zid)T\mathbf{z}_i = (z_{i1}, \ldots, z_{id})^{\mathsf{T}}, where dd is the number of cached Efficient TSFresh descriptors. For any analysed collection of nn series, stacking these vectors yields the feature matrix Z∈Rn×d\mathbf{Z} \in\mathbb{R}^{n \times d}. The descriptors include distributional statistics, entropy and complexity measures, autocorrelation, peak and strike statistics, quantile-based change features, and frequency-domain coefficients.

Before dimensionality reduction, each TSFresh feature is standardised using the mean and standard deviation estimated from the data on which the corresponding preprocessing operation is fitted. Columns that are constant in a training split are removed before supervised feature selection. The exact standardisation transformation is given in Appendix § 15.§ 2.

For the supervised branch, candidate TSFresh features are ranked by their estimated mutual information with the binary recommendation target. Within every training split, the top p=100p = 100 descriptors are retained for the best-performing model. The standard mutual-information definition used for feature ranking is given in Appendix § 15.§ 8. Denoting their index set by Jp\mathcal{J}_p, the selected direct TSFresh vector is

bi=(zij)j∈Jp∈Rp.(3)\mathbf{b}_i = (z_{ij})_{j \in\mathcal{J}_p} \in\mathbb{R}^{p}. \tag*{(3)}

PCA–UMAP–HDBSCAN Clustering

The clustering sweep evaluates both PCA–HDBSCAN and PCA–UMAP–HDBSCAN configurations. The primary analysis fits the dimensionality-reduction and clustering models to the 407 labelled JAGT time series so that the clustering population and recommendation population coincide. A secondary robustness analysis repeats the downstream recommendation using a clustering configuration learned from the complete collection of 5,860 cached time series.

Principal component analysis

PCA is applied to the standardised TSFresh feature matrix using the standard covariance-eigenvector formulation (Jolliffe, [15]). The retained principal components provide the representation used either directly by HDBSCAN or as input to UMAP. For the PCA-only sweep, pPCA∈{10,20,30,50,75,100}p_{\mathrm{PCA}} \in\{10, 20, 30, 50, 75, 100\}, whereas configurations followed by UMAP use pPCA∈{20,50,100}p_{\mathrm{PCA}} \in\{20, 50, 100\}. The standard PCA formulation used in the analysis is given in Appendix § 15.§ 3.

UMAP embedding and HDBSCAN partition

For the nonlinear branch, UMAP (McInnes et al., 2018) is applied to the PCA representation with embedding dimension pU∈{5,10,20}p_{\mathrm{U}} \in\{5, 10, 20\}, neighbourhood size nnbr∈{10,15,30}n_{\mathrm{nbr}} \in\{10, 15, 30\}, and minimum-distance parameter δ∈{0,0.05,0.1}\delta\in\{0, 0.05, 0.1\}. Euclidean distance is used by UMAP. Because UMAP employs stochastic optimisation, its random seed is fixed to 42 to make the embeddings and clustering sweep reproducible; the seed is not treated as a tunable hyperparameter.

HDBSCAN (Campello et al., [8]) is then applied either to the PCA representation or to the UMAP embedding using Euclidean distance and minimum cluster size mcs∈{10,20,30,50}m_{\mathrm{cs}} \in\{10, 20, 30, 50\}. Let cic_i denote the HDBSCAN cluster label assigned to observation ii. The label ci=−1c_i = -1 denotes an outlier, while the remaining labels identify the KK non-outlier clusters. Because HDBSCAN does not minimise a kk-means-type sum of squared distances, each complete clustering configuration is evaluated using the scoring function introduced in the next section.

Internal clustering quality

Let NclustN_{\mathrm{clust}} denote the number of observations in the population used to fit a given clustering configuration, I={i:ci≠−1}\mathcal{I} = \{i : c_i \ne-1\} the set of non-outlier observations, and noutn_{\mathrm{out}} the number of outliers. We define clustering coverage as Ccov=1−nout/NclustC_{\mathrm{cov}} = 1 - n_{\mathrm{out}}/N_{\mathrm{clust}}.

Geometric clustering quality is evaluated on the non-outlier observations using the standard Silhouette coefficient SsilS_{\mathrm{sil}} (Řezanková, 2018) and the Davies–Bouldin index (DBI) (Anfossi and Chicco, [2]). Their standard definitions are given in Appendix § 15.§ 4.

The implementation in this work transforms the metrics into

S+=max⁡{Ssil,0},(4)S_{+} = \max\{S_{\mathrm{sil}}, 0\}, \tag*{(4)}
D+=11+DBI,(5)D_{+} = \frac{1}{1 + \mathrm{DBI}}, \tag*{(5)}
K+=min⁡{K,20}20,(6)K_{+} = \frac{\min\{K, 20\}}{20}, \tag*{(6)}

and defines the internal clustering score as

Qinternal=0.45S++0.25Ccov+0.20D++0.10K+.(7)Q_{\mathrm{internal}} = 0.45S_{+} + 0.25C_{\mathrm{cov}} + 0.20D_{+} + 0.10K_{+}. \tag*{(7)}

By construction, S+S_{+}, CcovC_{\mathrm{cov}}, and K+K_{+} lie in [0,1][0, 1], while D+∈(0,1]D_{+} \in(0, 1]. Because the coefficients in Eq. (7) are non-negative and sum to one, QinternalQ_{\mathrm{internal}} is consequently bounded to [0,1][0, 1].

The weights in Eq. (7) are heuristic design weights rather than parameters estimated from the classification results. Their purpose is to encode the relative importance of the four properties considered desirable for the exploratory clustering. Silhouette score receives the largest weight 0.45, because separation from neighbouring clusters and cohesion within a cluster constitute the primary geometric criterion. Coverage receives weight 0.25 to prevent configurations obtaining a high geometric score by assigning a large fraction of difficult observations to the HDBSCAN noise class. The transformed Davies–Bouldin index contributes a further 0.20 as a complementary measure of within-cluster compactness relative to between-cluster separation. Finally, the number-of-clusters term receives only 0.10. It therefore acts as a weak regularising preference against degenerate solutions with very few clusters rather than rewarding fragmentation of the data. Capping this term at 20 clusters further prevents an arbitrarily large number of clusters from increasing the score.

Method-specialisation signal and configuration score

For every usable non-outlier cluster containing at least five JAGT series, the numbers of non-tied KB-KSSD and CP-SSD wins are compared with a two-sided binomial test under equal win probability. Benjamini–Hochberg adjustment is applied across cluster-level tests, and a cluster is considered significant when its adjusted value is below 0.05 and it contains at least five non-tied wins.

Let FbestF_{\mathrm{best}} and ForigF_{\mathrm{orig}} denote the fractions of usable JAGT series contained in significant clusters for, respectively, the best and original CP-SSD configurations. Let nbestn_{\mathrm{best}} and norign_{\mathrm{orig}} be the corresponding numbers of significant clusters. For usable cluster kk, let nk,cfgKBn_{k,\mathrm{cfg}}^{\mathrm{KB}} and nk,cfgCPn_{k,\mathrm{cfg}}^{\mathrm{CP}} denote the non-tied KB-KSSD and CP-SSD win counts used to evaluate the clustering configuration. We define the corresponding win-rate margin as mk=(nk,cfgKB−nk,cfgCP)/(nk,cfgKB+nk,cfgCP)m_k = \left(n_{k,\mathrm{cfg}}^{\mathrm{KB}} - n_{k,\mathrm{cfg}}^{\mathrm{CP}}\right) / \left(n_{k,\mathrm{cfg}}^{\mathrm{KB}} + n_{k,\mathrm{cfg}}^{\mathrm{CP}}\right). The maximum absolute margin across usable clusters is Mmax⁡=max⁡k∣mk∣M_{\max} = \max_k \lvert m_k\rvert.

The method-specialisation signal used by the clustering sweep is

Qmethod=0.45Fbest+0.25Forig+0.15min⁡{nbest,5}5+0.10min⁡{norig,5}5+0.05Mmax⁡.(8)Q_{\mathrm{method}} = 0.45F_{\mathrm{best}} + 0.25F_{\mathrm{orig}} + 0.15\frac{\min\{n_{\mathrm{best}},5\}}{5} + 0.10\frac{\min\{n_{\mathrm{orig}},5\}}{5} + 0.05M_{\max}. \tag*{(8)}

Finally, the explicit clustering-configuration quality function is

Qcluster=0.45Qinternal+0.55Qmethod.(9)Q_{\mathrm{cluster}} = 0.45Q_{\mathrm{internal}} + 0.55Q_{\mathrm{method}}. \tag*{(9)}

Equation (9) is the metric used to evaluate the complete PCA–UMAP–HDBSCAN configurations in the initial sweep. While its coefficients are fixed heuristic design weights, we assign slightly greater weight to the method-specialisation component because the purpose of the clustering stage is not only to identify geometrically coherent groups, but also to expose regions in which the relative performance of the SSD methods differs systematically. At the same time, the internal-quality component retains substantial weight to discourage partitions that exhibit apparent method specialisation but poor geometric structure. The coefficients sum to one so that the combined score remains on the same normalized scale as its two components.

For the subsequent signature-based recommendation experiment, candidate clusterings are additionally ranked lexicographically by their specialisation. Let NCPN_{\mathrm{CP}} and NKBN_{\mathrm{KB}} be the numbers of JAGT series in significant CP-favouring and KB-favouring clusters. We define B=min⁡{NCP,NKB}B = \min\{N_{\mathrm{CP}}, N_{\mathrm{KB}}\} as the balanced-specialisation criterion, P=NCPNKBP = N_{\mathrm{CP}}N_{\mathrm{KB}} as its product criterion, and T=NCP+NKBT = N_{\mathrm{CP}} + N_{\mathrm{KB}} as total specialised coverage. The implementation first favours configurations containing at least one significant cluster of each type and then orders candidates by BB, PP, TT, the numbers of CP- and KB-specialised clusters, and their respective series counts, all in descending order.

For the primary steady-JAGT-only analysis, the selected configuration is pca50_umap10_nn30_md0.0_mcs20. It contains three non-outlier clusters: two KB-favouring clusters of 144 and 84 labelled series and one CP-favouring cluster of 86 labelled series. The all-timeseries robustness analysis uses pca50_umap5_nn30_md0.0_mcs50.

Cluster signatures

For cluster kk, let CktrC_k^{\mathrm{tr}} denote the set of labelled training observations assigned to that cluster. For original TSFresh feature jj, let zˉkj=∣Cktr∣−1∑i∈Cktrzij\bar{z}_{kj} = \lvert C_k^{\mathrm{tr}}\rvert^{-1}\sum_{i\in C_k^{\mathrm{tr}}} z_{ij} denote its mean within the training members of cluster kk. The descriptive cluster zz-score is

gkj=zˉkj−μjσj.(10)g_{kj} = \frac{\bar{z}_{kj} - \mu_j}{\sigma_j}. \tag*{(10)}

Features are ranked by ∣gkj∣\lvert g_{kj}\rvert. For a requested signature size qq, let Fk(q)\mathcal{F}_k^{(q)} contain the qq highest-ranked features available in the training split. The hybrid search evaluates q∈{5,8,12,20}q \in\{5, 8, 12, 20\}, and only clusters containing at least five training observations are eligible to form signatures.

Within a training split, let nkCPn_k^{\mathrm{CP}} and nkKBn_k^{\mathrm{KB}} be the numbers of CP- and KB-winning training observations assigned to cluster kk. Clusters tied in these counts are discarded. Each remaining signature is labelled CP when nkCP>nkKBn_k^{\mathrm{CP}} > n_k^{\mathrm{KB}} and KB when nkKB>nkCPn_k^{\mathrm{KB}} > n_k^{\mathrm{CP}}. Its dominance strength is

ωk=∣nkCP−nkKB∣nkCP+nkKB.(11)\omega_k = \frac{\left\lvert n_k^{\mathrm{CP}} - n_k^{\mathrm{KB}}\right\rvert}{n_k^{\mathrm{CP}} + n_k^{\mathrm{KB}}}. \tag*{(11)}

The centroid of signature kk in its selected raw-feature subspace is

γk=1nk∑i∈Cktrzi,Fk(q).(12)\gamma_k = \frac{1}{n_k}\sum_{i\in C_k^{\mathrm{tr}}} z_{i,\mathcal{F}_k^{(q)}}. \tag*{(12)}

where nk=∣Cktr∣=nkCP+nkKBn_k = \lvert C_k^{\mathrm{tr}}\rvert= n_k^{\mathrm{CP}} + n_k^{\mathrm{KB}} and zi,Fk(q)z_{i,\mathcal{F}_k^{(q)}} denotes observation ii restricted to the signature feature set.

Hybrid SSD Recommendation

The recommendation task is a binary classification: given a time series, the model estimates whether CP-SSD (yi=1y_i = 1) or KB-KSSD (yi=0y_i = 0) is expected to produce the better steady-state estimate. The evaluated strategies include a majority baseline, a direct supervised TSFresh model, a cluster-signature rule, and the hybrid recommender. The reported best model is the hybrid Random Forest.

Signature similarity scores

For observation ii and signature kk, the Euclidean distance in the signature-specific feature subspace is dik=∥zi,Fk(q)−γk∥2d_{ik} = \lVert\mathbf{z}_{i,\mathcal{F}_k^{(q)}} - \boldsymbol{\gamma}_k \rVert_2. Because signatures may contain different numbers of features, this distance is normalised by the square root of the signature dimension and converted to a bounded similarity. The exact score implemented is

rik=ωkexp⁡(−dik∣Fk(q)∣).(13)r_{ik} = \omega_k \exp\left(-\frac{d_{ik}}{\sqrt{\lvert\mathcal{F}_k^{(q)} \rvert}}\right). \tag*{(13)}

Let KCP\mathcal{K}_{\mathrm{CP}} and KKB\mathcal{K}_{\mathrm{KB}} be the sets of CP- and KB-labelled signatures. With the configured weighted_max aggregation, the class-specific scores are riCP=max⁡k∈KCPrikr_i^{\mathrm{CP}} = \max_{k \in\mathcal{K}_{\mathrm{CP}}} r_{ik} and riKB=max⁡k∈KKBrikr_i^{\mathrm{KB}} = \max_{k \in\mathcal{K}_{\mathrm{KB}}} r_{ik}. If a class has no available signature, its score is set to zero. The IDs of the clusters attaining these maxima are denoted by kiCPk_i^{\mathrm{CP}} and kiKBk_i^{\mathrm{KB}}.

Signature meta-feature vector

The implementation converts the signature results into the following 13-dimensional meta-feature vector:

si=(riCP,riKB,riCP−riKB,∣riCP−riKB∣,riCPriKB+ε,riKBriCP+ε,kiCP,kiKB,KCP,KKB,WCP,WKB,WCP−WKB)T,(14)\mathbf{s}_i = \left(r_i^{\mathrm{CP}}, r_i^{\mathrm{KB}}, r_i^{\mathrm{CP}} - r_i^{\mathrm{KB}}, \lvert r_i^{\mathrm{CP}} - r_i^{\mathrm{KB}} \rvert, \frac{r_i^{\mathrm{CP}}}{r_i^{\mathrm{KB}} + \varepsilon}, \frac{r_i^{\mathrm{KB}}}{r_i^{\mathrm{CP}} + \varepsilon}, k_i^{\mathrm{CP}}, k_i^{\mathrm{KB}}, K_{\mathrm{CP}}, K_{\mathrm{KB}}, W_{\mathrm{CP}}, W_{\mathrm{KB}}, W_{\mathrm{CP}} - W_{\mathrm{KB}}\right)^{\mathrm{T}}, \tag*{(14)}

where ε=10−12\varepsilon= 10^{-12} prevents division by zero, KCP=∣KCP∣K_{\mathrm{CP}} = \lvert\mathcal{K}_{\mathrm{CP}} \rvert and KKB=∣KKB∣K_{\mathrm{KB}} = \lvert\mathcal{K}_{\mathrm{KB}} \rvert are the numbers of signatures, and WCP=∑k∈KCPωkW_{\mathrm{CP}} = \sum_{k \in\mathcal{K}_{\mathrm{CP}}} \omega_k and WKB=∑k∈KKBωkW_{\mathrm{KB}} = \sum_{k \in\mathcal{K}_{\mathrm{KB}}} \omega_k are their total dominance strengths. The two cluster identifiers are treated as numeric meta-features, exactly as in the implementation.

Hybrid feature vector and Random Forest input

For each split, mutual-information selection is applied only to the direct TSFresh features, producing bi∈Rp\mathbf{b}_i \in\mathbb{R}^{p}. The signature meta-features are then concatenated without further selection. The complete input to the classifier is therefore

hi=(bisi)∈Rp+13.(15)\mathbf{h}_i = \begin{pmatrix} \mathbf{b}_i \\ \mathbf{s}_i \end{pmatrix} \in\mathbb{R}^{p+13}. \tag*{(15)}

For the best configuration, p=100p = 100, so the Random Forest receives 113 columns per observation. The signature size q=20q = 20 controls how many prominent TSFresh descriptors define each cluster signature; it is distinct from the 13 derived meta-features in Equation (14).

The final supervised learner is a Random Forest (Breiman [7]). We fix the number of trees to BRF=300B_{\mathrm{RF}} = 300 for all Random Forest experiments; this value is an implementation choice and is not selected using the evaluation data. The final class recommendation is obtained by standard majority voting across the 300 trees. The implemented Random Forest uses unrestricted tree depth, minimum leaf size 2, balanced_subsample class weights, random seed 42, and parallel tree construction. Thus, class weighting is recomputed on the bootstrap sample used for each tree.

Recommendation workflow

Figure 1 summarises the complete recommendation pipeline. The layout separates the shared preprocessing stage from two feature-construction branches. The left branch discovers unsupervised structure and converts training-label cluster specialisation into signature-similarity features; the right branch retains the TSFresh descriptors selected directly for prediction. The two representations are concatenated only after the branch-specific processing has been completed.

Experimental Setup and Evaluation Protocol

The predictive evaluation uses repeated stratified holdout validation with R=20R = 20 repetitions and a test fraction of τ=0.30\tau= 0.30. For repetition rr, let DrtrD_r^{\mathrm{tr}} and DrteD_r^{\mathrm{te}} denote the training and test sets. Feature selection, training-label cluster characterisation, signature construction, and model fitting are performed using the training portion of the corresponding split. The test portion is used only for prediction and metric computation.

Performance is evaluated using accuracy, balanced accuracy, CP-SSD precision, CP-SSD recall, and CP-SSD F1-score, with CP-SSD treated as the positive class. The standard definitions of these metrics are given in Appendix A.5.

Repeated-holdout performance is summarised descriptively by the mean and standard deviation of each metric across the R=20R = 20 test splits. Because the same benchmark series can appear in several test sets, split-level results are treated descriptively rather than as independent statistical observations. For the primary inferential analysis, repeated held-out predictions are aggregated into one decision per unique time series. If pˉi\bar{p}_i denotes the fraction of held-out appearances in which series ii is predicted as CP-SSD, the aggregated prediction is CP-SSD when pˉi≥0.5\bar{p}_i \ge0.5 and KB-KSSD otherwise. This yields one prediction for each of the 407 labelled JAGT series.

Statistical Analysis Protocol

The statistical analysis distinguishes between descriptive repeated-holdout performance and inferential unique-series performance. The 20 repeated 70/30 holdout splits overlap, namely a benchmark series can occur in more than one test set. Consequently, the 20 split-level accuracies are not treated as independent experimental units and are used only to characterise the variability of the training/evaluation procedure. Confirmatory statistical tests are instead based on one aggregated held-out decision for each of the 407 unique JAGT series.

Reference strategies. The natural majority strategy always recommends KB-KSSD and is therefore correct for 255 of 407 series, corresponding to 62.65% accuracy. Two stochastic reference strategies are also considered. Equiprobable random selection has expected accuracy 50.00%, while prevalence-matched random selection, based on the observed class proportions of 152 CP-SSD and 255 KB-KSSD winners, has expected accuracy 53.20%.

Binomial inference. Let XX denote the number of correct recommendations among the N=407N = 407 aggregated unique-series predictions, so that the observed accuracy is p^=X/N\hat{p} = X/N. Uncertainty in this proportion is quantified using the exact Clopper–Pearson 95% confidence interval [11]. Its standard definition is given in Appendix A.6.

To test whether the recommender performs better than a random reference with success probability p0p_0, we use an exact one-sided binomial test. The test is applied to the equiprobable baseline p0=0.5p_0 = 0.5 and the prevalence-matched baseline p0=0.5320p_0 = 0.5320. Its standard formulation is given in Appendix A.7. These tests concern stochastic reference strategies and therefore do not exploit the observation-wise pairing available for the deterministic always-KB-KSSD baseline.

Paired comparison with always-KB-KSSD. The hybrid recommender and the always-KB-KSSD strategy are evaluated on the same NN benchmark series and their correctness indicators are therefore paired. Let bb denote the number of series on which only the hybrid is correct and cc the number on which only always-KB-KSSD is correct. With D=b+cD = b+c discordant pairs and m=min⁡{b,c}m = \min\{b,c\}, the exact two-sided McNemar pp-value is

pMcN=min⁡{1, 2∑j=0m(Dj)2−D}.(16)p_{\mathrm{McN}} = \min\left\{1,\,2\sum_{j=0}^{m}\binom{D}{j}2^{-D}\right\}. \tag*{(16)}

This exact conditional test is used as the primary inferential comparison with the always-KB-KSSD baseline (McNemar, 1947). The magnitude and direction of the paired effect are summarised by the matched-pairs odds ratio

ORmatched=bc.(17)\mathrm{OR}_{\mathrm{matched}} = \frac{b}{c}. \tag*{(17)}

The asymptotic McNemar statistics and the construction of the exact odds-ratio confidence interval are given in Appendix A.8.

Bootstrap uncertainty. Bootstrap uncertainty is evaluated for accuracy, balanced accuracy, CP precision, CP recall, CP F1-score, and the paired accuracy gain over always-KB-KSSD using Rboot=50,000R_{\mathrm{boot}} = 50{,}000 replications. For the primary series-level bootstrap, resampling is stratified by the true SSD winner: 152 CP-SSD-winning and 255 KB-KSSD-winning series are sampled independently with replacement within their respective classes, thereby preserving the observed class composition in every replicate.

We report percentile confidence intervals and bootstrap standard deviations. For the paired accuracy gain over always-KB-KSSD, the same resampled series are used for both strategies in every replicate, preserving the paired structure of the comparison [13]. The corresponding bootstrap definitions are given in Appendix A.9.

Project-level dependence sensitivity. Individual benchmark series originating from the same software project may not be statistically independent. As a sensitivity analysis, the 407 labelled series are partitioned into J=30J = 30 project groups inferred from the benchmark identifiers. Each project-bootstrap replicate samples 30 projects with replacement; whenever a project is selected, all of its constituent series enter the replicate, with corresponding multiplicity if the same project is selected more than once. Metrics and paired accuracy gains are then recomputed on the resulting replicate, and percentile intervals are obtained using the bootstrap procedure described in Appendix A.9. Because project membership is inferred from the benchmark naming convention rather than from an independently curated identifier, this analysis is treated as a dependence-sensitivity check rather than as the principal inferential procedure.

Clustering-population robustness. Let y^i(A)\hat{y}^{(A)}_i and y^i(B)\hat{y}^{(B)}_i denote the final unique-series recommendations obtained from the steady-JAGT-only and all-timeseries clustering regimes, respectively. Their agreement is quantified using Cohen’s κ\kappa, which corrects the observed agreement for agreement expected from the predictors’ marginal recommendation frequencies [12]:

κ=po−pe1−pe(18)\kappa= \frac{p_o-p_e}{1-p_e} \tag*{(18)}

The definitions of pop_o and pep_e are given in Appendix A.10.

Predictive correctness under the two regimes is additionally compared using the same exact McNemar formulation as Eq. (16), with bb and cc redefined as the numbers of series on which only one of the two regimes is correct. A non-significant result in this comparison is interpreted as absence of evidence for a directional difference, rather than as evidence of formal statistical equivalence.

Results

This section presents the empirical results with respect to the four research questions introduced in Section 1. We first analyse the distribution of CP-SSD and KB-KSSD wins and the extent to which these preferences are reflected in the discovered cluster structure. We then evaluate the predictive performance of the SSD recommender against random and majority-based reference strategies, followed by an analysis of the remaining classification errors and the contribution of the cluster-signature features. Finally, we assess the robustness of the recommendations to the population used for unsupervised clustering.

RQ1: How often does each SSD method provide the better estimate, and does method preference vary systematically across clusters of similar time series?

All 407 labelled JAGT time series are decisive under the separate-wins definition. KB-KSSD is preferred on 255 series (62.65%), while CP-SSD is preferred on 152 (37.35%). Most decisions arise from smaller absolute error when both methods return valid indices: KB-KSSD has the smaller error in 251 cases and CP-SSD in 147. In nine additional cases, exactly one method returns a valid steady-state index, producing five CP-SSD wins and four KB-KSSD wins.

The selected steady-JAGT-only clustering also exposes method specialisation rather than merely reproducing the global class imbalance. Two non-outlier clusters are KB-favouring: one contains 95 KB-KSSD wins, 41 CP-SSD wins, and 8 ties in the cluster-level comparison, while a second contains 55 KB-KSSD wins, 20 CP-SSD wins, and 9 ties. The third non-outlier cluster is CP-favouring, with 53 CP-SSD wins, 30 KB-KSSD wins, and 3 ties. Figure 2 visualises these distributions.

Figure 2. Figure 2: CP-SSD and KB-KSSD outcomes in the three non-outlier clusters of the selected steady-JAGT-only configuration. Ties in the cluster-level method comparison are shown separately and are not used to define the supervised winner label.

Answer to RQ1. Both SSD methods are preferred for substantial subsets of the labelled series, and the selected clustering contains both KB-favouring and CP-favouring regions, demonstrating systematic cluster-level method specialisation.

The primary hybrid recommender correctly selects the better method for 297 of the 407 unique series, corresponding to 72.97% accuracy (exact 95% CI 68.38–77.23%). This is 10.32 percentage points above the 62.65% accuracy obtained by always recommending KB-KSSD, which is correct for 255 of 407 series (exact 95% CI 57.75–67.37%). The paired comparison with always-KB-KSSD is more informative because both strategies make a decision on the same series. Of the 407 observations, both strategies are correct on 228 and both are wrong on 83. The hybrid alone is correct on 69 series, whereas always-KB-KSSD alone is correct on only 27. The exact two-sided McNemar test therefore rejects equality of the paired error rates (p=2.148×10−5p = 2.148 \times10^{-5}). The corresponding uncorrected statistic is χ2=18.375\chi^2 = 18.375 (df=1df = 1, p=1.814×10−5p = 1.814 \times10^{-5}), and the continuity-corrected statistic is χ2=17.510\chi^2 = 17.510 (df=1df = 1, p=2.857×10−5p = 2.857 \times10^{-5}). The matched-pairs odds ratio is 2.56 with an exact 95% CI of 1.62–4.15, i.e., among discordant cases the hybrid is approximately 2.6 times as likely to be the strategy that is correct.

The recommender also exceeds both random reference strategies. Against equiprobable random selection, the exact one-sided binomial test gives p=2.95×10−21p = 2.95 \times10^{-21}; against the 53.20% prevalence-matched random expectation, p=2.24×10−16p = 2.24 \times10^{-16}. These results show that the recommender is not merely exploiting the empirical winner prevalence. Figure 3 summarizes the unique-series accuracy of the recommender relative to the reference strategies.

Figure 3. Statistical comparison of the primary recommender with reference strategies. The plot presents unique-series accuracy relative to random and always-KB-KSSD baselines, with exact 95% intervals where applicable.

The 50,000-replicate stratified paired bootstrap yields a 95% interval of 69.29–76.66% for accuracy and 6.63–14.00 percentage points for the gain over always-KB-KSSD. The corresponding bootstrap SD is 1.93 percentage points for both accuracy and the paired accuracy gain. Thus, the entire series-level bootstrap distribution of the paired effect remains well above zero. The project-cluster sensitivity analysis is wider, as expected, but remains positive: accuracy spans 67.80–78.20%, while the corresponding gain interval is 5.25–15.97 percentage points. The project-bootstrap SD is 2.66 percentage points for accuracy and 2.74 percentage points for the paired gain. The positive gain interval under this more dependence-aware resampling scheme provides evidence that the improvement is not driven only by treating series from the same project as independent observations. The paired bootstrap distribution of the accuracy gain and the uncertainty intervals for the principal performance metrics are visualized in Figure 4 and Figure 5.

Figure 4. Stratified paired-bootstrap distribution of the accuracy gain of the primary hybrid recommender over always recommending KB-KSSD. The distribution is based on 50,000 bootstrap replications; the observed gain is 10.32 percentage points and the 95% percentile interval is 6.63–14.00 percentage points.

Figure 5. Primary hybrid-recommender performance with 95% percentile intervals obtained from 50,000 class-stratified bootstrap replications. Intervals are shown for accuracy, balanced accuracy, CP-SSD precision, recall, and F1-score.

Across the 20 repeated 70/30 holdouts, the hybrid recommender has mean accuracy 71.83% (SD 2.57 percentage

Table 3

points), median 71.54%, and range 66.67–78.05%, compared with 62.60% for the always-KB-KSSD strategy on the same held-out class proportions. The repeated holdouts are not used as independent observations for hypothesis testing, but they provide a useful stability diagnostic. Random reference strategies fluctuate around their expected levels and remain well below the hybrid distribution. The selected hybrid configuration and its repeated-holdout performance are summarised in Table 3, while Table 4 reports the corresponding unique-series performance. The accuracy distribution is visualized in Figure 6.

PropertyValue
ModelRandom Forest
Feature selectionMutual information
Selected TSFresh features100
Signature size qq20
Mean holdout accuracy71.83%
Mean balanced accuracy66.23%
Mean CP precision69.62%
Mean CP recall44.02%
Mean CP F1-score53.76%

Table 3. Configuration and repeated-holdout performance of the selected hybrid recommender. Values are means over 20 stratified 70/30 holdouts.

Figure 6. Distribution of accuracy over the 20 repeated 70/30 holdout splits for the primary steady-JAGT-only analysis. Points show individual split values; the boxplot is descriptive because the test sets overlap.

Unique-series performance of the primary steady-JAGT-only hybrid recommender.

MetricValue
Correct recommendations297 / 407
Accuracy72.97%
Balanced accuracy67.40%
CP-SSD precision71.88%
CP-SSD recall45.39%
CP-SSD F1-score55.65%
Predicted CP-SSD cases96
Predicted KB-KSSD cases311

Table 4.

Direct TSFresh ablation and feature-level interpretation

To isolate the contribution of the cluster-signature meta-features, we compare the hybrid recommender with an otherwise comparable model trained only on the selected direct TSFresh descriptors.

The clustering-derived signatures do not produce a consistent accuracy improvement over a direct TSFresh classifier. The best direct Random Forest using mutual-information selection and 100 TSFresh features obtains 71.38% mean holdout accuracy, compared with 71.83% for the hybrid model, a difference of only 0.45 percentage points. When repeated held-out predictions are aggregated by the same majority rule used for the hybrid model, the direct classifier correctly predicts 299 of 407 series (73.46%), compared with 297 (72.97%) for the hybrid. The two unique-series predictors agree on 397 of 407 series; among the 10 disagreements, the direct model is correct in six cases and the hybrid in four (exact McNemar p=0.754p = 0.754). These results are summarized in Table 5. Consequently, the results do not support a claim that cluster signatures improve predictive accuracy. Their present value is instead in exposing interpretable cluster-level method specialisation and in providing a structured basis for future meta-feature designs.

Primary recommender and direct-TSFresh ablation. Repeated-holdout values are means over 20 splits; unique-series values aggregate repeated held-out predictions per benchmark.

MetricDirect TSFreshHybrid
Mean holdout accuracy71.38%71.83%
Mean balanced accuracy65.96%66.23%
Unique-series accuracy73.46%72.97%
Unique balanced accuracy68.46%67.40%
Unique CP precision71.15%71.88%
Unique CP recall48.68%45.39%
Unique CP F1-score57.81%55.65%

Table 5.

Answer to RQ2. Yes. The hybrid recommender reaches 72.97% unique-series accuracy and significantly outperforms both random reference strategies and the always-KB-KSSD baseline, although it does not outperform the direct TSFresh classifier.

The most influential hybrid-model variables are overwhelmingly direct TSFresh descriptors. Prominent descriptors include change-quantile statistics, peak counts, permutation entropy, index-mass quantiles, and Fourier coefficients. In the aggregated feature-importance summary, signature-derived variables account for only about 1.31% of the reported importance mass. This is consistent with the ablation result: the cluster signatures encode meaningful structure, but the current similarity-based representation contributes little additional predictive signal beyond the direct time-series descriptors. The most influential variables of the primary hybrid recommender are listed in Figure 7, while Table 6 reports the ten highest-ranked direct TSFresh features and their mean importances.

Figure 7. Highest-ranked direct TSFresh and cluster-signature features of the primary hybrid recommendation model. For cluster-signature features, labels also report their rank in the complete feature-importance ordering.

RankTSFresh featureMean importanceSelected in splits
1Change quantiles (ql=0.0q_l = 0.0, qh=0.8q_h = 0.8)0.02221
2Number of peaks (n=1n = 1)0.02207
3Permutation entropy (d=7d = 7, τ=1\tau= 1)0.02177
4Permutation entropy (d=5d = 5, τ=1\tau= 1)0.021214
5Permutation entropy (d=6d = 6, τ=1\tau= 1)0.02126
6Change quantiles (ql=0.0q_l = 0.0, qh=0.2q_h = 0.2)0.02112
7Change quantiles (ql=0.0q_l = 0.0, qh=0.4q_h = 0.4)0.02013
8Index mass quantile (q=0.4q = 0.4)0.01912
9Change quantiles (ql=0.0q_l = 0.0, qh=0.6q_h = 0.6)0.01877
10FFT coefficient, absolute part (k=0k = 0)0.01757

Table 6. Ten highest-ranked TSFresh features in the aggregated feature-importance summary of the primary hybrid model.

RQ3: What kinds of recommendation errors remain, particularly for the minority CP-SSD class?

The hybrid model is conservative in recommending the minority CP-SSD class. It predicts CP-SSD for 96 series although CP-SSD is the reference winner for 152. The unique-series confusion matrix contains 69 true positives, 27 false positives, 83 false negatives, and 228 true negatives. Thus, CP-SSD precision is 71.88%, but recall is only 45.39%; the corresponding F1-score is 55.65%. In contrast, 228 of the 255 KB-KSSD-winning series are retained as KB-KSSD recommendations. Figure 8 shows the complete confusion matrix.

Figure 8. Confusion matrix of the steady-JAGT-only hybrid recommender.

The bootstrap intervals reflect the same imbalance. Under the stratified series bootstrap, balanced accuracy has a 95% interval of 63.01–71.75%, CP precision 63.92–80.00%, CP recall 37.50–53.29%, and CP F1-score 48.07–62.75%. The project-cluster sensitivity analysis widens the recall interval further to 32.75–56.93%, indicating that the principal remaining limitation is not an inability to identify KB-KSSD cases but insufficient sensitivity to CP-SSD-favourable executions.

Answer to RQ3. The main remaining error mode is insufficient sensitivity to CP-SSD-favourable series: CP-SSD recall is 45.39%, whereas most KB-KSSD-favourable cases are correctly retained.

RQ4: How sensitive are the recommendations to the population used for unsupervised clustering?

The primary analysis learns the clustering representation only from the 407 labelled JAGT series. As a robustness check, the pipeline was also evaluated with the selected clustering configuration learned from all 5,860 cached time series. The all-timeseries variant obtains 297 correct unique-series recommendations (72.97%), with balanced accuracy 67.67%, CP precision 71.00%, and CP recall 46.71%.

Because the overall accuracy is unchanged, the all-timeseries robustness check also yields the same binomial results against the random references. Its paired comparison with always-KB-KSSD contains 71 hybrid-only correct cases and 29 always-KB-only correct cases, giving exact McNemar p=3.216×10−5p = 3.216 \times10^{-5} and matched-pairs OR = 2.45

(95% CI 1.57–3.91). The complete unique-series statistical comparison for the primary and all-timeseries analyses is provided in Table 7.

QuantitySteady-JAGT-onlyAll-timeseries
Class counts (CP / KB)152 / 255152 / 255
Correct / total297 / 407297 / 407
Accuracy72.97%72.97%
Exact 95% CI for accuracy[68.38, 77.23]%[68.38, 77.23]%
Balanced accuracy67.40%67.67%
CP precision71.88%71.00%
CP recall45.39%46.71%
CP F1-score55.65%56.35%
Always-KB-KSSD accuracy62.65%62.65%
Exact 95% CI for always-KB[57.75, 67.37]%[57.75, 67.37]%
50/50 random expectation50.00%50.00%
Prevalence-random expectation53.20%53.20%
Gain over always-KB-KSSD+10.32 pp+10.32 pp
Both strategies correct228226
Hybrid-only correct (bb)6971
Always-KB-only correct (cc)2729
Both strategies wrong8381
Discordant pairs (b+cb+c)96100
Exact McNemar pp (two-sided)2.148×10−52.148 \times10^{-5}3.216×10−53.216 \times10^{-5}
Exact McNemar pp (one-sided)1.074×10−51.074 \times10^{-5}1.608×10−51.608 \times10^{-5}
McNemar χ2\chi^2, uncorrected18.375 (p=1.814×10−5p = 1.814 \times10^{-5})17.640 (p=2.669×10−5p = 2.669 \times10^{-5})
McNemar χ2\chi^2, corrected17.510 (p=2.857×10−5p = 2.857 \times10^{-5})16.810 (p=4.132×10−5p = 4.132 \times10^{-5})
Matched-pairs OR2.56 [1.62, 4.15]2.45 [1.57, 3.91]
Binomial pp vs 50/50 random2.954×10−212.954 \times10^{-21}2.954×10−212.954 \times10^{-21}
Binomial pp vs prevalence random2.243×10−162.243 \times10^{-16}2.243×10−162.243 \times10^{-16}

Table 7. Unique-series statistical validation for the primary steady-JAGT-only regime and the all-timeseries robustness regime. Exact McNemar pp-values are two-sided; random-baseline binomial tests are one-sided.

More importantly, the two clustering regimes produce nearly indistinguishable final decisions. They agree on 399 of 407 predictions (98.03%), with Cohen’s κ=0.946\kappa= 0.946. Only eight series receive different recommendations. Among these, the steady-JAGT-only regime is correct while the all-timeseries regime is wrong in four cases, and the reverse occurs in four cases. The exact two-sided McNemar comparison of correctness is therefore p=1.000p = 1.000. This value arises because the only discordant correctness outcomes are split perfectly evenly (4 vs. 4); it does not mean that the two predictors are literally identical. Together with the identical 72.97% overall accuracy and the highly overlapping bootstrap intervals, the result indicates strong empirical stability to the clustering population, while not constituting a formal equivalence test.

The all-timeseries robustness check exhibits almost identical uncertainty. Its stratified 95% gain interval is +6.39–+14.25 percentage points and its project-cluster interval is +5.19–+16.11 percentage points; the corresponding gain SDs are 1.96 percentage points and 2.79 percentage points, respectively. The consistency of these intervals with the primary analysis supports the robustness of the effect to the population used for unsupervised structure discovery.

The complete bootstrap intervals for both clustering-population analyses are presented in Table 8.

MetricJAGT SeriesJAGT ProjectAll SeriesAll Project
Accuracy72.97 [69.29, 76.66]%72.97 [67.80, 78.20]%72.97 [69.04, 76.90]%72.97 [68.19, 77.92]%
Balanced accuracy67.40 [63.01, 71.75]%67.40 [62.15, 72.13]%67.67 [63.22, 72.08]%67.67 [62.72, 72.16]%
CP precision71.88 [63.92, 80.00]%71.88 [63.95, 79.22]%71.00 [63.21, 78.95]%71.00 [62.77, 78.95]%
CP recall45.39 [37.50, 53.29]%45.39 [32.75, 56.93]%46.71 [38.82, 54.61]%46.71 [34.59, 57.82]%
CP F1-score55.65 [48.07, 62.75]%55.65 [44.24, 64.15]%56.35 [48.80, 63.36]%56.35 [45.74, 64.34]%
Gain vs always-KB+10.32 [+6.63, +14.00] pp+10.32 [+5.25, +15.97] pp+10.32 [+6.39, +14.25] pp+10.32 [+5.19, +16.11] pp

Table 8. Bootstrap uncertainty for the hybrid recommender. Cells report the point estimate followed by the 95% percentile interval. “Series” denotes the class-stratified paired bootstrap; “Project” denotes the project-cluster sensitivity analysis.

The paired comparison between the two clustering-population regimes is summarized in Table 9, while the comparison of the principal performance metrics is visualized in Figure 9.

Figure 9. Robustness of the final recommendation to the population used for clustering. Both regimes reach the same unique-series accuracy and agree on 98.03% of individual recommendations.

QuantityValue
Identical predictions399 / 407 (98.03%)
Prediction disagreements8
Cohen’s κ\kappa0.946
JAGT-only correct / all-series wrong4
All-series correct / JAGT-only wrong4
Exact McNemar pp1.000

Table 9. Direct comparison of the two clustering-population regimes.

Answer to RQ4. The recommendations are highly robust to the clustering population: the two regimes have identical overall accuracy and agree on 98.03% of the individual recommendations.

Across the same 20 repeated 70/30 holdouts, the all-timeseries analysis has mean accuracy 71.50% (SD 3.49 percentage points), compared with 71.83% (SD 2.57 percentage

@sferences points for the primary analysis. Its accuracy ranges from 65.04% to 77.24%, indicating similar average performance but somewhat greater split-to-split dispersion. The corresponding statistics for both clustering-population analyses are provided in Table 10.

MethodJAGT mean ±\pm SDJAGT median [range]All mean ±\pm SDAll median [range]
Random 50/5050.41 ±\pm 3.7550.41 [42.28, 56.10]50.41 ±\pm 3.7550.41 [42.28, 56.10]
Random prevalence53.94 ±\pm 4.1954.47 [46.34, 60.16]53.94 ±\pm 4.1954.47 [46.34, 60.16]
Always KB-KSSD62.60 ±\pm 0.0062.60 [62.60, 62.60]62.60 ±\pm 0.0062.60 [62.60, 62.60]
Hybrid recommender71.83 ±\pm 2.5771.54 [66.67, 78.05]71.50 ±\pm 3.4971.14 [65.04, 77.24]

Table 10. Descriptive accuracy over the 20 repeated 70/30 holdout splits. The splits overlap and therefore these values are not used as independent samples in inferential tests.

Discussion

The main result is that SSD selection contains learnable signal. Always choosing KB-KSSD is already a relatively strong strategy because KB-KSSD wins 62.65% of the labelled series, yet the learned recommender raises unique-series accuracy to approximately 73%. The paired analysis is important here: the hybrid model recovers 69 CP-SSD cases that the majority strategy necessarily misses while sacrificing only 27 KB-SSD cases. The corresponding odds ratio and bootstrap intervals indicate that this improvement is not explained by a small number of marginal observations.

At the same time, the results refine the role of clustering in the framework. The selected clusters clearly reveal SSD specialisation, including a CP-favouring cluster despite the global KB-KSSD majority. However, the current centroid-similarity signature representation does not consistently improve prediction over direct TSFresh features. The hybrid model is slightly better on mean holdout accuracy, whereas the direct model is slightly better after unique-series aggregation, and the difference between their unique predictions is not significant. Cluster signatures should therefore be viewed as an interpretable structural layer and a starting point for richer meta-features rather than as an established source of predictive improvement.

The robustness experiment strengthens this interpretation. Learning the clustering structure from all 5,860 cached traces changes the selected PCA/UMAP/HDBSCAN configuration, yet 98.03% of final recommendations remain unchanged. Thus, the supervised decision boundary is not strongly dependent on one particular clustering population. This stability is encouraging for replication, although it also suggests that most of the predictive signal currently comes from the direct TSFresh branch.

The principal modelling weakness is CP-SSD recall. The hybrid model identifies fewer than half of the CP-favourable series. Improving this quantity is more important than marginal gains in aggregate accuracy because an accuracy-only objective is naturally biased toward the KB-KSSD majority. Future models could therefore optimise balanced accuracy or a cost-sensitive objective, explicitly calibrate the CP decision threshold, and evaluate whether the resulting increase in CP recall provides a better practical trade-off.

Threats to Validity

Internal validity

The reported model family, feature-selection strategy, signature size, and clustering configuration were selected from evaluated alternatives. Although all label-dependent feature selection and signature construction are fitted only on the training portion of each holdout, model/configuration selection and performance estimation use the same repeated-holdout experiment. The reported mean holdout performance may therefore be optimistic relative to a fully nested model-selection protocol. The unique-series aggregation reduces dependence among repeated test appearances for the final statistical comparison, but it does not remove this model-selection issue. Future work should use nested resampling or an external test collection for confirmatory evaluation.

A second threat concerns data alignment. The replication pipeline explicitly aligns extracted TSFresh rows with the canonical JAGT series keys before any label merge. This is necessary because filesystem enumeration order is not a reliable identifier. The replication package linked in Section 8 therefore uses key-based alignment rather than positional matching.

Construct validity

The recommendation target is defined by the smaller absolute error relative to the JAGT reference steady-state index, with explicit rules for cases in which only one detector returns a valid index. This operationalisation captures location error but does not cover every property that may matter in practice, such as computational cost, stability under perturbation, or asymmetric consequences of early and late detection. Different utility functions could therefore induce different recommendation labels.

The project-cluster bootstrap uses the repository/project prefix encoded in the benchmark key and yields 30 project groups. This provides a useful sensitivity analysis for within-project dependence, but the grouping is derived from the naming convention rather than an independently curated project identifier.

External validity

The labelled evaluation comprises 407 JAGT Java microbenchmark time series and focuses on two SSD methods. Although the full cache contains 5,860 series, the additional unlabelled observations do not contribute directly to supervised model training. The extent to which the observed results transfer to other benchmark suites, languages, runtime environments, hardware platforms, or SSD portfolios should therefore be investigated further. CP-SSD is also the minority winner in the present dataset, which may contribute to the lower recall observed for CP-SSD-favourable cases. Evaluating the recommender on broader labelled datasets, including more CP-favourable and borderline cases, would help clarify the generality of this behaviour.

Conclusion validity

The 20 repeated holdout splits overlap and are not treated as independent replicates for hypothesis testing. Inferential comparisons instead use one aggregated prediction per unique series. The exact McNemar test is appropriate for the paired comparison with always-KB-KSSD, while bootstrap intervals quantify uncertainty in effect sizes. The all-timeseries versus steady-JAGT-only comparison has only eight discordant predictions; the resulting McNemar p=1.0p = 1.0 indicates no detectable directional difference but must not be interpreted as proof of statistical equivalence.

Conclusions

This paper introduced a data-driven framework for recommending steady-state detection methods for software performance benchmark time series. Using 407 decisive JAGT-labelled series, the primary hybrid recommender selects the lower-error method in 297 cases (72.97%), improving by 10.32 percentage points over always choosing the majority KB-KSSD method. Exact paired testing and two complementary bootstrap analyses show that this improvement is statistically robust.

The experiments also identify the limits of the current design. Direct TSFresh features already contain most of the predictive signal, and the present cluster-signature representation does not yield a consistent accuracy advantage. Nevertheless, clustering exposes interpretable SSD-specialisation patterns and the downstream recommendations remain highly stable when the clustering population is expanded from the labelled JAGT subset to all 5,860 cached time series. The framework therefore supports the broader premise of automatic SSD recommendation while providing a clear direction for refinement.

Future work should: (i) expand the labelled benchmark collection, especially with CP-SSD-favourable and difficult boundary cases; (ii) evaluate cost-sensitive and threshold-calibrated recommenders; (iii) replace centroid signatures with richer distributional or soft-membership representations; (iv) exploit the unlabelled series through semi-supervised learning; (v) extend the portfolio beyond two SSD algorithms. A final confirmatory study should use nested model selection or an external benchmark collection to obtain an unbiased estimate of generalisation performance.

Data and code availability

The data and analysis materials required to reproduce the results reported in this study are available in the accompanying versioned replication package: https://github.com/MartinBeseda/steady-state/releases/tag/v1.2.0. The package contains the archived detector-comparison results, cached TSFresh representation, analysis and statistical-validation scripts, generated result tables, and figure-generation code. Upstream CP-SSD/KB-KSSD execution scripts are also provided for reference, although their specialised external research dependencies are not distributed as a self-contained software environment.

Declaration of competing interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Declaration of generative AI and AI-assisted technologies in the manuscript preparation process

During the preparation of this work, the authors used OpenAI ChatGPT to assist with manuscript organisation, language and readability, and consistency checking. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.

Supplementary Methodological Definitions

Feature Standardisation

Let Ifit\mathcal{I}_{\mathrm{fit}} denote the observations on which a preprocessing operation is fitted and let nfit=∣Ifit∣n_{\mathrm{fit}} = |\mathcal{I}_{\mathrm{fit}}|. For feature jj, define

μj=1nfit∑r∈Ifitzrj,(19)\mu_j = \frac{1}{n_{\mathrm{fit}}} \sum_{r \in\mathcal{I}_{\mathrm{fit}}} z_{rj}, \tag*{(19)}
σj=1nfit∑r∈Ifit(zrj−μj)2.(20)\sigma_j = \sqrt{\frac{1}{n_{\mathrm{fit}}} \sum_{r \in\mathcal{I}_{\mathrm{fit}}} (z_{rj} - \mu_j)^2}. \tag*{(20)}

An observation ii is then standardised as

z~ij=zij−μjσj.(21)\widetilde{z}_{ij} = \frac{z_{ij} - \mu_j}{\sigma_j}. \tag*{(21)}

Principal Component Analysis

Let Z~∈RNclust×d\widetilde{\mathbf{Z}} \in\mathbb{R}^{N_{\mathrm{clust}} \times d} be the standardised feature matrix for the population used to fit the clustering representation. Its empirical covariance matrix is

C=1Nclust−1Z~TZ~.(22)\mathbf{C} = \frac{1}{N_{\mathrm{clust}} - 1} \widetilde{\mathbf{Z}}^{\mathsf{T}}\widetilde{\mathbf{Z}}. \tag*{(22)}

PCA solves

Cvℓ=λℓvℓ,(23)\mathbf{C}\boldsymbol{v}_{\ell} = \lambda_{\ell}\boldsymbol{v}_{\ell}, \tag*{(23)}
λ1≥λ2≥⋯≥λd,(24)\lambda_1 \ge\lambda_2 \ge\cdots\ge\lambda_d, \tag*{(24)}

where λℓ\lambda_{\ell} and vℓ\boldsymbol{v}_{\ell} are the ℓ\ell-th eigenvalue and eigenvector. For a requested dimension pPCAp_{\mathrm{PCA}}, the projection matrix is

VPCA=(v1,…,vpPCA),(25)\mathbf{V}_{\mathrm{PCA}} = (\boldsymbol{v}_1,\ldots,\boldsymbol{v}_{p_{\mathrm{PCA}}}), \tag*{(25)}

and the PCA representation is

P=Z~VPCA∈RNclust×pPCA.(26)\mathbf{P} = \widetilde{\mathbf{Z}}\mathbf{V}_{\mathrm{PCA}} \in\mathbb{R}^{N_{\mathrm{clust}} \times p_{\mathrm{PCA}}}. \tag*{(26)}

Silhouette and Davies–Bouldin Indices

Let I={i:ci≠−1}\mathcal{I} = \{i : c_i \ne-1\} denote the set of non-outlier observations. For i∈Ii \in\mathcal{I}, let a(i)a(i) be the mean distance from observation ii to the other members of its cluster and b(i)b(i) the smallest mean distance from ii to another cluster. The Silhouette coefficient (Řezanková, 2018) is

Ssil=1∣I∣∑i∈Is(i),(27)S_{\mathrm{sil}} = \frac{1}{|\mathcal{I}|} \sum_{i \in\mathcal{I}} s(i), \tag*{(27)}

where

s(i)=b(i)−a(i)max⁡{a(i),b(i)}.(28)s(i) = \frac{b(i) - a(i)}{\max\{a(i), b(i)\}}. \tag*{(28)}

Let ξi\boldsymbol{\xi}_i denote the representation of observation ii used for clustering, i.e., its PCA representation for PCA–HDBSCAN configurations or its UMAP representation for PCA–UMAP–HDBSCAN configurations. For cluster kk, let Ck={i∈I:ci=k}C_k = \{i \in\mathcal{I} : c_i = k\} denote its set of non-outlier members and let μk\boldsymbol{\mu}_k be its centroid in this representation. Its mean within-cluster dispersion is

Sk=1∣Ck∣∑i∈Ck∥ξi−μk∥2.(29)S_k = \frac{1}{|C_k|} \sum_{i \in C_k} \lVert\boldsymbol{\xi}_i - \boldsymbol{\mu}_k \rVert_2. \tag*{(29)}

Let Mkℓ=∥μk−μℓ∥2M_{k\ell} = \lVert\boldsymbol{\mu}_k - \boldsymbol{\mu}_{\ell} \rVert_2 denote the distance between clusters kk and ℓ\ell. The Davies–Bouldin index (Afnossi and Chicco, 2026) is

DBI=1K∑k=1Kmax⁡ℓ≠kSk+SℓMkℓ.(30)\mathrm{DBI} = \frac{1}{K} \sum_{k=1}^{K} \max_{\ell\ne k} \frac{S_k + S_{\ell}}{M_{k\ell}}. \tag*{(30)}

Mutual Information

For a continuous feature ZjZ_j and the binary target YY, mutual information is

I(Zj;Y)=∑y∈{0,1}∫pZj,Y(z,y)log⁡(pZj,Y(z,y)pZj(z)pY(y)) dz.(31)I(Z_j;Y)=\sum_{y\in\{0,1\}}\int p_{Z_j,Y}(z,y)\log\left(\frac{p_{Z_j,Y}(z,y)}{p_{Z_j}(z)p_Y(y)}\right)\,\mathrm{d}z. \tag*{(31)}

where pZj,Yp_{Z_j,Y} is the joint density/mass function and pZjp_{Z_j} and pYp_Y are the corresponding marginals.

Classification Metrics

For a test set Dte\mathcal{D}^{\mathrm{te}} of size nte=∣Dte∣n_{\mathrm{te}}=\lvert\mathcal{D}^{\mathrm{te}}\rvert, with labels yiy_i and predictions y^i\hat{y}_i, accuracy is

Acc⁡=1nte∑i∈DteI(yi=y^i).(32)\operatorname{Acc}=\frac{1}{n_{\mathrm{te}}}\sum_{i\in\mathcal{D}^{\mathrm{te}}}\mathbb{I}(y_i=\hat{y}_i). \tag*{(32)}

With CP-SSD treated as the positive class and TP, TN, FP, and FN denoting the confusion-matrix counts,

Precision⁡CP=TPTP+FP,(33)\operatorname{Precision}_{\mathrm{CP}}=\frac{\mathrm{TP}}{\mathrm{TP}+\mathrm{FP}}, \tag*{(33)}
Recall⁡CP=TPTP+FN,(34)\operatorname{Recall}_{\mathrm{CP}}=\frac{\mathrm{TP}}{\mathrm{TP}+\mathrm{FN}}, \tag*{(34)}
F1,CP=2Precision⁡CPRecall⁡CPPrecision⁡CP+Recall⁡CP,(35)F_{1,\mathrm{CP}}=\frac{2\operatorname{Precision}_{\mathrm{CP}}\operatorname{Recall}_{\mathrm{CP}}}{\operatorname{Precision}_{\mathrm{CP}}+\operatorname{Recall}_{\mathrm{CP}}}, \tag*{(35)}
BalancedAcc⁡=12(TPTP+FN+TNTN+FP).(36)\operatorname{BalancedAcc}=\frac{1}{2}\left(\frac{\mathrm{TP}}{\mathrm{TP}+\mathrm{FN}}+\frac{\mathrm{TN}}{\mathrm{TN}+\mathrm{FP}}\right). \tag*{(36)}

Clopper–Pearson Confidence Interval

For XX successes among NN observations and nominal confidence level 1−α1-\alpha, the exact Clopper–Pearson limits are

pL={0,X=0,B−1(α2;X,N−X+1),X>0,(37)p_L= \begin{cases} 0, & X=0,\\ B^{-1}\left(\frac{\alpha}{2};X,N-X+1\right), & X>0, \end{cases} \tag*{(37)}
pU={1,X=N,B−1(1−α2;X+1,N−X),X<N,(38)p_U= \begin{cases} 1, & X=N,\\ B^{-1}\left(1-\frac{\alpha}{2};X+1,N-X\right), & X<N, \end{cases} \tag*{(38)}

where B−1(q;a,b)B^{-1}(q;a,b) denotes the qq-quantile of a Beta distribution. In this study, α=0.05\alpha=0.05.

Exact Binomial Test

For a random-reference success probability p0p_0, the one-sided hypotheses are

H0:p≤p0,H1:p>p0.(39)H_0:p\le p_0,\qquad H_1:p>p_0. \tag*{(39)}

If X=xX=x correct recommendations are observed among NN cases, the exact one-sided binomial pp-value is

pbin=PH0(X≥x)=∑j=xN(Nj)p0j(1−p0)N−j.(40)p_{\mathrm{bin}}=P_{H_0}(X\ge x)=\sum_{j=x}^{N}\binom{N}{j}p_0^j(1-p_0)^{N-j}. \tag*{(40)}

Additional McNemar Statistics

For D=b+cD=b+c discordant pairs, under the null hypothesis of equal discordant success probability,

B∣D∼Binomial⁡(D,12).(41)B\mid D\sim\operatorname{Binomial}\left(D,\frac{1}{2}\right). \tag*{(41)}

For completeness, the uncorrected and continuity-corrected asymptotic McNemar statistics are

χuncorr2=(b−c)2b+c,(42)\chi^2_{\mathrm{uncorr}}=\frac{(b-c)^2}{b+c}, \tag*{(42)}
χcorr2=(∣b−c∣−1)2b+c,(43)\chi^2_{\mathrm{corr}}=\frac{(\lvert b-c\rvert-1)^2}{b+c}, \tag*{(43)}

respectively, and are compared with a χ2\chi^2 distribution with one degree of freedom.

For the matched-pairs odds ratio, define

θ=bb+c,(44)\theta=\frac{b}{b+c}, \tag*{(44)}

so that

OR⁡matched=θ1−θ.(45)\operatorname{OR}_{\mathrm{matched}}=\frac{\theta}{1-\theta}. \tag*{(45)}

If [θL,θU][\theta_L,\theta_U] is the exact binomial confidence interval for θ\theta, the corresponding odds-ratio interval is

[θL1−θL,θU1−θU].(46)\left[\frac{\theta_L}{1-\theta_L},\frac{\theta_U}{1-\theta_U}\right]. \tag*{(46)}

Bootstrap Uncertainty

Let

T=g(y,y^)(47)T=g(\mathbf{y},\hat{\mathbf{y}}) \tag*{(47)}

denote a scalar statistic computed from the observed labels and predictions. For bootstrap replicate rr with resampled index set I∗(r)\mathcal{I}^{*(r)},

T∗(r)=g(yI∗(r),y^I∗(r)),r=1,…,Rboot.(48)T^{*(r)}=g\left(\mathbf{y}_{\mathcal{I}^{*(r)}},\hat{\mathbf{y}}_{\mathcal{I}^{*(r)}}\right),\qquad r=1,\ldots,R_{\mathrm{boot}}. \tag*{(48)}

The percentile bootstrap confidence interval is

CI1−αboot=[Qα/2({T∗(r)}r=1Rboot),Q1−α/2({T∗(r)}r=1Rboot)],(49)\mathrm{CI}^{\mathrm{boot}}_{1-\alpha}=\left[Q_{\alpha/2}\left(\left\{T^{*(r)}\right\}_{r=1}^{R_{\mathrm{boot}}}\right),Q_{1-\alpha/2}\left(\left\{T^{*(r)}\right\}_{r=1}^{R_{\mathrm{boot}}}\right)\right], \tag*{(49)}

where Qq(⋅)Q_q(\cdot) denotes the empirical qq-quantile. The bootstrap standard deviation is

sboot=1Rboot−1∑r=1Rboot(T∗(r)−T‾∗)2.(50)s_{\mathrm{boot}}=\sqrt{\frac{1}{R_{\mathrm{boot}}-1}\sum_{r=1}^{R_{\mathrm{boot}}}\left(T^{*(r)}-\overline{T}^{*}\right)^2}. \tag*{(50)}

with

T∗=1Rboot∑r=1RbootT∗(r).(51)T^* = \frac{1}{R_{\mathrm{boot}}} \sum_{r=1}^{R_{\mathrm{boot}}} T^{*(r)}. \tag*{(51)}

For the paired accuracy gain,

Δ∗(r)=Acc⁡hybrid∗(r)−Acc⁡KB∗(r).(52)\Delta^{*(r)} = \operatorname{Acc}_{\mathrm{hybrid}}^{*(r)} - \operatorname{Acc}_{\mathrm{KB}}^{*(r)}. \tag*{(52)}

Cohen’s Kappa

For predictors AA and BB, the observed agreement is

po=1N∑i=1NI(y^i(A)=y^i(B)).(53)p_o = \frac{1}{N} \sum_{i=1}^{N} \mathbb{I}\left(\widehat{y}_i^{(A)} = \widehat{y}_i^{(B)}\right). \tag*{(53)}

Let

qA,c=1N∑i=1NI(y^i(A)=c),(54)q_{A,c} = \frac{1}{N} \sum_{i=1}^{N} \mathbb{I}\left(\widehat{y}_i^{(A)} = c\right), \tag*{(54)}
qB,c=1N∑i=1NI(y^i(B)=c),c∈{0,1},(55)q_{B,c} = \frac{1}{N} \sum_{i=1}^{N} \mathbb{I}\left(\widehat{y}_i^{(B)} = c\right), \qquad c \in\{0,1\}, \tag*{(55)}

be their marginal class frequencies. The chance agreement is

pe=qA,0qB,0+qA,1qB,1.(56)p_e = q_{A,0}q_{B,0} + q_{A,1}q_{B,1}. \tag*{(56)}

References

  1. [1]Abdi, H., Williams, L.J., 2010. Principal component analysis. Wiley interdisciplinary reviews: computational statistics 2, 433–459.
  2. [2]Anfossi, A., Chicco, D., 2026. An easy guide to the davies-bouldin index for unsupervised internal clustering evaluation. Discover Computing 29, 212.DOI
  3. [3]Barrett, E., Bolz-Tereick, C.F., Killick, R., Mount, S., Tratt, L., 2017. Virtual machine warmup blows hot and cold. Proceedings of the ACM on Programming Languages 1, 52:1–52:27. doi:10.1145/3133876.DOI
  4. [4]Beseda, M., Cortellessa, V., Di Pompeo, D., Traini, L., Tucci, M., 2026. A kernel-based approach for accurate steady-state detection in performance time series. Future Generation Computer Systems 177, 108233. doi:10.1016/j.future.2025.108233.DOI
  5. [5]Bethea, R.M., Rhinehart, R.R., 2019. Applied engineering statistics. Routledge.
  6. [6]Boesler, M., Weber, N., 2017. Steady state detection for computational fluid dynamics. arXiv preprint arXiv:1709.03158 .arxiv.org/abs/1709.03158
  7. [7]Breiman, L., 2001. Random forests. Machine Learning 45, 5–32. doi:10.1023/A:1010933404324.DOI
  8. [8]Campello, R.J.G.B., Moulavi, D., Zimek, A., Sander, J., 2015. Hierarchical density estimates for data clustering, visualization, and outlier detection. ACM Transactions on Knowledge Discovery from Data 10, 5:1–5:51. doi:10.1145/2733381.DOI
  9. [9]Cao, S., 1996. Statistically-based techniques for process control applications. Texas Tech University.
  10. [10]Christ, M., Braun, N., Neuffer, J., Kempa-Liehr, A.W., 2018. Time series feature extraction on basis of scalable hypothesis tests (tsfresh – a python package). Neurocomputing 307, 72–77. doi:10.1016/j.neucom.2018.03.067.DOI
  11. [11]Clopper, C.J., Pearson, E.S., 1934. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika 26, 404–413. doi:10.1093/biomet/26.4.404.DOI
  12. [12]Cohen, J., 1960. A coefficient of agreement for nominal scales. Educational and Psychological Measurement 20, 37–46. doi:10.1177/001316446002000104.DOI
  13. [13]Efron, B., Tibshirani, R.J., 1993. An Introduction to the Bootstrap. Monographs on Statistics and Applied Probability, Chapman and Hall, New York.
  14. [14]Georges, A., Buytaert, D., Eeckhout, L., 2007. Statistically rigorous java performance evaluation, in: Proceedings of the 22nd Annual ACM SIGPLAN Conference on Object-Oriented Programming Systems and Applications, ACM. pp. 57–76. doi:10.1145/1297027.1297033.DOI
  15. [15]Jolliffe, I.T., 2002. Principal Component Analysis. Springer Series in Statistics. 2 ed., Springer, New York. doi:10.1007/b98835.DOI
  16. [16]Kalibera, T., Jones, R.E., 2013. Rigorous benchmarking in reasonable time, in: Proceedings of the 2013 International Symposium on Memory Management, ACM. doi:10.1145/2464157.2464160.DOI

Paper details

vlnc:W_mgu3dq82
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 2

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

OpenAI ChatGPT

View statement
Looking for related papers…
Contents