How well does Classification Accuracy capture Concept Drift Detection Quality? An overview of Concept Drift Detection evaluation


Abstract

Data streams are nowadays among the most frequently analyzed data structures, with the concept drift posing a major challenge encountered by processing systems. Despite the proposition of numerous solutions to counteract the accuracy degeneration due to concept drift, the scientific community has not yet established a unified framework for evaluating the concept drift detection task. Existing research often relies on classification quality metrics, but these can be affected by multiple factors and may not reliably reflect drift detection quality. In this work, we present an in-depth overview of the relationship between metrics for quantifying drift detection quality and classification performance in synthetic nonstationary data streams. The proposed research studies eight drift detection quality metrics in relation to the classifier’s performance across seven synthetic data stream generation tools, additionally considering drift dynamics as a factor. The studies aim to identify the most informative set of drift detection quality metrics and provide a deep understanding of the method’s evaluation.

1 Introduction↩︎

Most of the solutions employed in real-world systems rely on real-time inference, continuous system monitoring, and incremental model training. Combined with the velocity and volume of the processed data, this makes the data stream a structure that is characteristic of modern machine learning systems [1].

Data stream processing poses meaningful challenges related to the requirement of efficiency and accuracy of employed algorithms in a setting where the incrementally arriving data instances are sampled from distributions that change over time [2]. Those underlying distribution changes are known as concept drifts and may cause a decrease in the recognition quality of machine learning models [3].

The concept drifts that impact recognition quality – and therefore change the decision boundary of a classification problem – are described as real drifts. In the case of a virtual drift, the data distribution changes, but it is not yet related to the loss of model performance [4]. In terms of drift dynamics, concept drifts can be categorized as sudden, gradual, or incremental. The sudden changes are often a result of an abrupt event that affected the system, such as sensor failure or replacement of its components [5]. Gradual and incremental changes are more common in environments where change is observed over a longer time period, as is typical in social media and e-commerce, where trends change, and new solutions emerge [6]. In gradual drift, the data batch is a mixture of the old and a new concept, whereas in incremental change, the instances are drawn from a temporary distribution that is a superposition of the old and an incoming concept [7]. The examples of gradual and incremental drifts are presented in Figure 1.

Figure 1: The example of gradual (top row) and incremental (bottom row) concept drift in a synthetic two-dimensional data stream

To counteract the negative consequences of real concept drift, machine learning solutions employ mechanisms of continuous or active adaptation [8]. Such hybrid models often rely on concept drift detection mechanisms, formulated as a separate task, where methods aim to mark the moments of concept changes [4].

Reliable evaluation of all machine learning solutions is of critical importance. The static-data-based evaluation protocol for recognition methods, such as classifiers and regressors, was adopted for data streams, resulting in the frequent use of prequential, test-then-train, or distributed cross-validation [9] protocols in experiments. Meanwhile, the evaluation of the concept drift detection task is more complex – since the detection timestamps need to be compared with the concept drift ground truth [10], which is unavailable in real-world data. Often, researchers use classification quality as a proxy for concept drift detection quality. Some research has shown that frequent and redundant detections may improve classification quality [11]. However, other sources show that too many detections followed by classifier rebuilds may cause the model to forget past, yet important knowledge, resulting in a decrease in accuracy, even if the concept drift is correctly recognized [12]. These contrastive observations show that evaluating concept drift detection should not rely on classification quality but use dedicated metrics that evaluate the detection and drift timestamps. The necessity of concept drift ground truth makes the task rely almost entirely on synthetic data streams [10].

1.0.0.1 Contribution

The presented work aims to provide a response to the following research questions:

  • RQ1: What is the relationship between various drift detection quality measures, and what is the correlation between classification accuracy and drift detection quality expressed by those dedicated metrics?

  • RQ2: Which quality metrics are the most informative?

  • RQ3: Does the selection of the synthetic data stream generation mechanism impact the quality assessment results?

  • RQ4: Does the concept drift dynamics impact the quality assessment results?

To answer those questions, we design, conduct, and analyze four experiments on synthetic data streams. The main objective of this research is to study the experimental environment in which many classification and drift detection algorithms are evaluated. Therefore, the provided experiments do not compare existing drift detection solutions but rely on an abstract drift detector that randomly signals concept drifts with a specified detection probability. The evaluation uses a diverse set of synthetic data streams with various drift frequencies (Experiments 1 and 2), seven different generation mechanisms (Experiment 3), as well as three different drift dynamic types (Experiment 4).

2 Related works↩︎

Real concept drift negatively impacts the classifier’s performance. Recognition methods aiming to minimize such impact often rely on ensembles, which can be categorized into active or passive approaches [4]. Active ensembles employ a concept drift detection mechanism, which, in explicit drift detectors, is based on classification quality [13]. The canonical drift detectors, such as DDM and ADWIN, signaled detection directly based on the classifier’s error rate [14], [15]. This evolution of drift detection methods may have been a factor in the still frequently employed strategy of relying on recognition quality to compare various algorithms. Meanwhile, modern drift detection solutions have shifted from accuracy-based data monitoring to unsupervised or implicit drift detection [16], which also considers the limited availability of labels for real-time method evaluation [17]. In this challenging setting, studies have adopted metrics designed for the unbiased evaluation of the drift detection task.

2.1 Evaluation of drift detection quality↩︎

Many works rely on the classification quality to evaluate the effectiveness of the drift detection task [3], [13]. In such an evaluation framework, the classifier is rebuilt each time the detection method marks a concept change, as is typical for active ensembles.

Such an evaluation approach, however, has been shown not to reliably reflect the detection quality. A work by Bifet [10] showed that rebuilding a classifier every fixed number of samples leads to better classification performance than all drift detection methods evaluated in the study. Therefore, oversensitive methods can obtain higher metric scores, as confirmed by Liu et al. [11]. In a data stream setting, where system efficiency is extremely important, unnecessary model rebuilding and label acquisition will increase the cost of resources.

A recommended approach for drift detection evaluation is the use of dedicated quality metrics, which require the availability of exact concept drift moments [16] and, therefore the use of synthetic data streams [18].

Existing sources recommend calculating the true detection rate (true positives), false detection rate (false positives), and missed detection rate (false negatives) [3]. False positives, or false alarms, are also known as type I errors, and false negatives are referred to as type II errors [5]. Some works parameterize those metrics with an acceptable delay [19], or a range of timestamps in which a drift is treated as a true positive [12]. Alternatively, in addition to a binary decision on whether a drift was correctly recognized, some authors quantify the time it took for the method to detect a drift [11]. According to the timestamps of drifts and detections, five measures can be calculated [10], [20]:

  • Missed Detection Rate (MDR) – quantifies the false negatives – i.e., the drifts that were not recognized by the detector. The lower measure indicates better quality.

  • Mean Time to Detection (MTD) – a measure that quantifies the delay of drift detection. It considers only true positives to calculate the distance from drift to detection. Similar to MDR, the lower value indicates better quality.

  • Mean Time between False Alarms (MTFA) – considers false positives and measures the distance between them. At least two false alarms must occur in order to calculate MTFA. The higher measure indicates rare false alarms, therefore, a higher value is desired.

  • Mean Time Ratio (MTR) is an aggregated measure that combines MDR, MTD, and MTFA. The goal is to maximize this measure.

  • False Alarm Rate (FAR) – calculated as the inverse of MTFA. Therefore, a good drift detector will obtain a low FAR.

When the method does not detect true drift, MDR and MTD will rise, indicating the worst detector operation. In contrast, when the drift detector is overreactive, MTFA and FAR measures will be impacted by a high number of false positives. One different measure that directly considers the number of detections compared to the number of drifts, and penalizes the detector for both too many and too few changes, is an R measure, defined as part of drift detection error measures [21]:

  • The average distance of each detection to the nearest drift (D1).

  • The average distance of each drift to the nearest detection (D2).

  • The adjusted ratio of the number of drifts to the number of detections (R). This measure is scaled to obtain an optimal value of 0, the same as D1 and D2.

Those parameter-less measures aim to describe the operation of a drift detector regardless of the drift dynamics. D1 considers both true positives and false positives, and will indicate a higher error when there is a significant number of detections that lie far from a concept drift. D2 seeks the nearest true positive and quantifies the delay. The R measure focuses solely on the number of detections. This measure will indicate values above 1 if the number of detections is fewer than the number of actual drifts.

The research community also proposed recovery measures [22] that rely on accuracy and are designed to quantify how well a recognition method handles nonstationary concepts. While the quality of drift detection can affect restoration time and accuracy loss, as with basic accuracy, these measures can be influenced by the data itself and may not reliably reflect the quality of drift detection.

2.2 Synthetic generators↩︎

The drift detection quality evaluation requires the concept drift ground truth, which indicates the exact moments of concept changes. Therefore, the experiments on drift detection almost always rely on synthetic data streams, where those time instants are known and configurable.

The commonly used resources for data stream generation include the MOA, River, and scikit-multiflow [23] packages, as well as the generators that rely on Madelon datasets, available in the stream-learn library [24] – where the data distribution characteristic and the informativeness of features can be precisely calibrated [25]. Some generators, like OWDSG [26] and SynNC [27], can introduce novel classes in addition to concept drift. Each of those generators has its unique characteristics.

  • SEA [28] – synthesizes a binary classification problem described by three numerical features, only two of which are informative. The class is determined according to the sum of the informative attributes and a selected labeling function with a predetermined threshold. By default, the classes are imbalanced. The simulation of sudden concept drifts results from a random change of the labeling function.

  • Hyperplane [29] – binary classification problem described by 10 numerical features. The class of each instance is determined by the hyperplane equation with randomly generated weights. The classes are balanced.

  • RandomRBF [23] – binary classification problem describing samples in 10 dimensions, where the points surround 50 centroids. The samples are drawn from a normal distribution with the expected value at the centroid. Clusters are assigned to classes randomly, and the problem is balanced.

  • Sine [14] – binary classification data described by four attributes, two of which are informative. Features take values in the range from 0 to 1, and the class is determined based on the sine function. The problem is imbalanced.

  • AGRAWAL [30] – a generator describing a binary classification problem where a label determines the decision of loan approval. Samples are described by nine features, six of which are numerical and three are discrete. The problem is imbalanced. The generator implements 10 different functions that map features to synthetic labels.

  • StreamLearn [24] – a generator using the Madelon static data generator [25], in which class distributions are placed on the vertices of a multidimensional hypercube. The generated data presents a binary problem with two clusters per class, described by 20 numerical features, two of which are informative. By default, the classes are balanced. Concept drift involves the emergence of a new underlying distribution or a smooth transition between subsequent distributions in the case of gradual, incremental drift.

  • OWDSG [26] – similarly to the previous generator, data distributions are sampled using the Madelon procedure. The data describe a binary problem in 10 dimensions, where all features are informative. Each class is represented with points from a single cluster. Drift is simulated by changing the mask that defines the data cluster from which the class is sampled. The problems are balanced, and drifts are abrupt.

While those generators produce synthetic concepts that may not reliably represent real-world data, they are frequently employed in research due to the availability of configuring the moments of concept changes. Another benefit of using synthetic data streams is the ability to replicate the research using data generated with different random seeds.

3 Experiment design↩︎

The experiments were implemented in Python using the scikit-learn, stream-learn [24], and scikit-multiflow [23] libraries. The classification and regression algorithms, as well as the data stream generation methods, come from those libraries. All data streams were processed in equal-sized batches.

3.1 Data streams↩︎

The experiments used all seven generators described in Section 2.2. In the Hyperplane, RandomRBF, Sine, and Agrawal streams, sudden concept drifts were simulated by reinitializing the generator with a new random seed at the moment of drift injection. SEA, StreamLearn, and OWDSG used their dedicated functions to inject a concept drift.

All generated streams had 500 chunks, each containing 200 instances. In Experiment 2, only OWDSG was used; in Experiment 3, all generators were used with their default hyperparameters; and in Experiment 4, only StreamLearn was used to facilitate the comparison between various drift dynamics without changing the internal drift injection mechanism.

3.2 Evaluation measures↩︎

The experiments evaluated drift detection quality measures, classification accuracy, and their correlation. For drift detection evaluation, all eight metrics described in Section 2.1 were used. To measure classification performance, accuracy (ACC) was calculated in cases of balanced data streams, and balanced accuracy (BAC) in cases where there was a possibility of a class imbalance.

To measure the correlation and associations between quality metrics, the research relied on the following measures:

  • Pearson Correlation Coefficient (PCC) – measures the linear relationship between two sets of observations. It produces values from -1 to 1, with 0 indicating no correlation, values above 0 indicating a positive correlation, and values below 0 indicating a negative correlation.

  • Spearman Correlation Coefficient (SCC) – measures the monotonic relationship between sets of observations. Similar to the previous measure, it ranges from -1 to 1. In contrast to the PCC, it uses rank-order, therefore, it can capture non-linear but monotonic associations.

  • Mutual information (MI) [31] – measures the linear and non-linear dependencies between sets of observations. It uses distances to k-nearest neighbors to estimate the value. It is equal to 0 when the observations are independent and takes larger values when the variables show relationship.

3.3 Goals of experiments↩︎

3.3.0.1 Experiment 1

The first experiment focused on the evaluation of the relationship between drift detection error measures. The study used 8 measures, which were calculated between 1000 randomly drawn drift timestamps and detection timestamps. The probability of drift and detection occurrence was set at 20 different levels, ranging from 1% to 15% chance of an event. This resulted in 20,000 comparisons. Among replications, the probabilities for drift and detection occurrence were consistent. The number of data chunks in this synthetic setting was set to 1000.

3.3.0.2 Experiment 2

The following experiment used synthetic data streams to evaluate classification performance and study the relationship between drift detection quality metrics and classification accuracy. Balanced binary classification data streams were generated using OWDSG. The streams described 500 chunks of size 200, where samples were described with 20 informative features. The streams in this experiment had 10 different drift numbers, ranging from 3 to 25, which corresponded to detection probabilities of 0.7% to 5%. All changes were sudden and uniformly distributed throughout the stream. The experiment was replicated 50 times for each of the 10 drift detection probabilities, resulting in the evaluation of 500 data streams.

The experiment evaluated 5 classifiers: Gaussian Naive Bayes, Decision Tree, K-Nearest Neighbors, Support Vector Machine, and Multilayer Perceptron with their default configuration. Each model was fitted with the first data chunk and later used only to infer for the following batches. If the abstract detector signaled a concept change, the classifier was rebuilt and replaced the previous instance. Since the data streams were balanced, the experiment focused on the accuracy metric to evaluate the classification quality.

3.3.0.3 Experiment 2 Metaanalysis

The next experiment used the results of the previous one in Regression Metaanalysis. It aimed to examine the relationship between drift detection quality metrics and average classification accuracy. The experiment used a Multilayer Perceptron Regressor to determine which measures can be effectively estimated from the remaining ones, and reveal the most informative ones. The experiment employed 5-times repeated 2-fold cross-validation to examine the data from Experiment 2. All measures obtained in Experiment 2 were normalized. To evaluate the regression quality, the experiment used the Mean Squared Error (MSE) metric.

3.3.0.4 Experiment 3

The following experiment aimed to investigate the impact of the data stream generation mechanism on the relationship between drift detection quality and classification quality. Since some of the generators used in this research produce imbalanced data, the classification quality metrics were switched to balanced accuracy. As in Experiment 2, 500 data streams were generated (50 replications and 10 drift cardinalities and detection probabilities). This experiment evaluated all 7 data stream generation methods.

The previous experiment showed a consistent correlation pattern regardless of the classification algorithm, therefore, in this experiment, only an efficient GNB was used.

3.3.0.5 Experiment 4

The final experiment focused on evaluating the impact of drift dynamics on the correlation between detection quality and accuracy. The StreamLearn generator was used to produce data streams with sudden, gradual, and incremental drifts, along with 10 different drift numbers (from 3 to 10 drifts over 500 chunks). A concept sigmoid spacing parameter in the generator was set to 5 for gradual and incremental drifts. Stream generation for each configuration was replicated 50 times, resulting in the analysis of 1500 data streams. This experiment also used GNB classifier.

4 Experiment results↩︎

This section presents and analyzes the results of the performed experiments.

4.1 Experiment 1 – The correlation of drift detection quality metrics↩︎

The first experiment studied the relationships between eight drift detection quality measures calculated based on timestamps of detections and a concept drift ground truth. The results are presented in Figure 2.

Figure 2: The measures studying the relationship between drift detection error measures: the PCC (left), SCC (center), and MI (right). The cells indicate the exact value of a relationship between specific metrics, shown in columns and in rows. The low correlation coefficient or mutual information is indicated with blue, and a high value with red.

The results show that the absolute values of the correlation coefficients are reaching up to approximately 0.5, indicating that the correlations exist but are not significant. MI indicates the strongest association between D2 and MDR, resulting from an increase in both of those metrics in the case of many redundant detections. The relation between these measures may be non-linear since the PCC for this metric pair is not the highest. MI also indicates a dependence between FAR and MTR. This results from both of these measures being dependent on MTFA. For this pair of measures, PCC and SCC indicate negative correlations. In contrast, correlation coefficients for MTR and MTFA are positive, resulting directly from the calculation of MTR based on MTFA. A measure that shows very little correlation (indicated by beige cells in the PCC and SCC heatmaps and blue in the MI heatmap) is the R measure. This results from the definition of this metric considering only the number of drifts and detections and not relying on the distances between the events.

4.2 Experiment 2 – The correlation of drift detection quality and classification accuracy↩︎

The second experiment extended the previous evaluation with respect to classification accuracy. In the experiment, the classifier was rebuilt when the detection method marked a concept change. The research used 5 diverse classifiers, which achieved different classification qualities. Despite the variability in performance, the relationship between accuracy and the drift detection measures remained consistent, regardless of the base learner. For this reason, we present and analyze the results of the GNB classifier.

Figure 3 shows the results of this experiment. The height of a bar indicates the absolute measure value. To recognize the negative correlation in the case of PCC and SCC, the blue color was used. The closer the bar color is to red, the higher the correlation or the stronger the relationship (in the case of MI).

Figure 3: The relationship between specific drift detection measures (x-axis) and the classification accuracy, expressed in PCC (left), SCC (center), and MI (right). The height of a bar indicates the absolute value of a measure. Blue color indicates low value, and red color – a high value.

The strongest correlation is visible for MDR in terms of all three metrics. PCC and SCC show that the correlation is negative – hence, higher accuracy results in lower MDR. This results from the impact of concept changes on the decision boundary, as failing to recognize the drift leads to a drop in accuracy. Since we aim for high accuracy and low MDR, these two optimization directions logically bond. Interestingly, all other drift detection metrics show a positive correlation, but out of the remaining measures, we only aim to maximize MTFA and MTR. This means that, even though the relation is not significant, when accuracy increases, FAR, D1, D2, and R also increase, indicating the worst result. MTD is an interesting measure since only MI reveals the dependence between its value and accuracy. We can therefore conclude that this relationship is non-linear.

The results of this experiment show that accuracy may not be a reliable assessment criterion since increasing accuracy may lead to a large number of false alarms (FAR) and a large distance from detections to the drift (D1).

4.3 Metaanalysis of Experiment 2 – Study of metric informativeness↩︎

The following study is a metaanalysis of the results from Experiment 2, aiming to reveal the informativeness of each drift detection metric and indicate which may appear irrelevant. The results of this experiment are presented in Figure 4, indicating the MSE of the regression task when estimating a specific measure.

Figure 4: The MSE of the regression task, when aiming to estimate the specific measure using all remaining ones (left), using a single most informative metric (center), and the number of times the specific measure was selected as the most informative (right).

In the first part of the analysis, all remaining measures were used as features to estimate the target metric (indicated on the x-axis). The highest MSE is observed for FAR, R, and ACC. The number of false alarms is impacting both FAR and R, which was also observed in the first experiment. Since estimating their value is difficult, we can conclude that those measures add information in the evaluation of drift detection quality. A high error value for accuracy indicates that the exact estimation of its value is a challenge. Since the data streams were generated with various random seeds, some concepts may depict simpler distributions. Some of the injected concept drifts may also be virtual and may not cause a reduction in classification performance. The low MSE for MTR, D1, and MFTA indicates that those measures can be easily estimated using the remaining ones.

In the second part of the experiment, we selected the single most informative metric for each target. The selection was done using mutual information as a criterion [31]. As presented in the central part of Figure 4, the MDR exhibits the highest error, indicating that its value is difficult to estimate using a single other metric. MRT also obtained a higher error compared to the first part of the study, which may arise from the calculation of an MTR using three other measures. The right part of the figure shows how many times a specific measure was selected as the best descriptor. A high result for MTFA and MDR indicate their ability to approximate other measures. However, selecting a measure that has not been identified as a good proxy may allow for the consideration of additional information to the experiments. The R measure, tied directly to the number of detections, was selected just 2 times as the estimation criterion. Meanwhile, we know that a low number of detections is valuable in terms of the costs of model rebuild and label acquisition. We also note that accuracy was not selected as an informative criterion, although its estimation error was not the highest. This may indicate that drift detection quality measures are more strongly bonded as a group than to accuracy.

4.4 Experiment 3 – The impact of generation mechanism↩︎

The next experiment evaluated the data streams from seven generators and used balanced accuracy to measure the classification performance. First, we visualized how the metric changes due to concept drift. Figure 5 shows the average impact in the first 100 data chunks of each stream.

Figure 5: Averaged balanced accuracy of the classifier, when processing the initial 100 chunk of the data stream with four concept drifts visible. The black plot shows the average metric, and the red area indicates the standard deviation across replications.

Since the drift detection moments were random but related to the true number of drifts, the averaged results show a slow increase in classification performance after the initial drop in quality right after the drift. The results show that the generators produce data streams with various difficulty levels. Some streams (e.g. RandomRBF and AGRAWAL) pose a more significant challenge. Interestingly, the classification quality in the case of some generators, despite the concept drifts, remains relatively consistent. The Sine and AGRAWAL generators are examples of such. In SEA streams, the drifts impact the BAC score, but the changes are not as clearly visible as in Hyperplane, RandomRBF, StreamLearn, and OWDSG. The last two generators show the most significant drops in BAC, which is related to the possibility of describing diverse concepts in up to 20-dimensional feature space. Therefore, the concept drift will likely cause a shift in the decision boundary.

Figure 6 shows the fingerprints of each generator, indicating the average SCC between BAC and drift detection quality metrics.

Figure 6: Data stream generator’s fingerprints – the SCC between BAC and drift detection quality metrics. The black line indicates the average regardless of the drift frequencies, and the colored lines indicate the correlations among a specific number of drifts.

The figure shows a similar correlation pattern for Hyperplane, RandomRBF, StreamLearn, and OWDSG. The correlations in the case of those generators are stronger compared to SEA, Sine, and AGRAWAL. The significant correlation results from meaningful drops in BAC when the concept drift occurs. In the case of Sine and AGRAWAL, the concept drift caused minimal changes to BAC, therefore, the correlation is almost unnoticeable.

The lack of a correlation between BAC and drift detection quality may cause the evaluation of drift detection based on the classifier’s performance to be even less related to the core of the task. Since it was previously shown that the frequent detections may result in a high classification performance [10], for some of the generated streams, this result may not provide much information about the drift detection quality.

4.5 Experiment 4 – How various drift dynamics change the correlation pattern↩︎

The last experiment aimed to examine how various concept drift dynamics change the correlation patterns across measures. The results presented in Figure 7 show the SCC of drift detection metrics with accuracy for sudden, gradual, and incremental drifts. The last subplot shows the average change of correlations in the gradual and incremental concept drifts compared to sudden changes.

Figure 7: The SCC between specific drift detection metrics and accuracy in case of sudden, gradual, and incremental concept drift (first 3 subplots) and the difference in correlation (last subplot). The SCC plots use the logarithmic scale.

The results for gradual and incremental concept drifts show different patterns compared to sudden drifts. SCC in both cases is similar, since both are spread over time. If the detection is signaled during the transition period between concepts and the classifier is rebuilt, we would expect a rise in accuracy in both cases. Signaling concept drift multiple times over a single change could also positively impact accuracy, but it will negatively impact drift detection quality metrics.

The results show that the correlation for MDT increased, meaning that the worst result in this metric indicates better accuracy. This comes from the fact that, in non-sudden changes, the delayed detection is less impactful on classifier performance. The correlation with D1 and D2 also slightly increased. Marking many detections during the temporary concept will increase those error metrics, but also increase the classification accuracy. D1 and D2 were designed for the evaluation of all types of drifts since they quantify the distances to the central point of the drift. Therefore, they were expected to show more robustness to the impact of drift type compared to MTD. The results also show that the correlation with MTFA decreased to a value close to zero. In non-sudden changes, marking the single drift multiple times will improve classification quality but negatively impact this drift detection metric. The lack of correlation change in the case of MDR, FAR, and R comes from the fact that those metrics do not consider the delays or distances of detections to drifts, but only quantify how many changes have been recognized.

5 Conclusions and Limitations↩︎

The presented research aimed to provide insight into a reliable evaluation of the drift detection task in nonstationary data streams. The designed experiments studied the relationship between drift detection evaluation measures and their correlations with classification quality, which is frequently used as an evaluation proxy when the drift ground truth remains unknown. We summarize key findings from the performed experiments:

  • The experiments confirmed that accuracy is not a reliable proxy for drift detection quality, as high accuracy mainly indicates a low MDR.

  • Some drift detection quality metrics (FAR, D1, D2, and R) indicate worse quality when the classification accuracy is high. Therefore, maximizing accuracy can lead to poor drift detection performance related to those metrics.

  • Metaanalysis of results showed that MDR and MTFA provide the highest ability to approximate other metrics. The same experiment showed that the D2 and R metrics provide additional information about the detection quality.

  • Different synthetic data stream generators exhibit different correlation fingerprints between accuracy and drift detection quality metrics. Such correlation is consistently low in SEA, Sine, and AGRAWAL generators.

  • The dynamics of concept drift impacts the results, increasing the correlation between MTD, D1, D2 and accuracy, and lowering the correlation between MTR and accuracy.

The work provided more insight into the drift detection evaluation, however, the study had certain limitations. The primary restriction was the inability to study metric relationships in real-world data, since the drift detection ground truth is required. Moreover, the experiments used the abstract drift detector, where the detection probability was tied to the number of drifts present in the stream. Meanwhile, the drift detection quality metrics are undefined if the detector fails to mark any change points or, as in the case of MTFA and MTR, when there are fewer than 2 false alarms. These limitations make evaluating the impact of drift detection in extreme cases impossible.

5.0.1 ↩︎

This work was supported by the statutory funds of the Department of Systems and Computer Networks, Faculty of Information and Communication Technology, Wrocław University of Science and Technology.

5.0.2 ↩︎

The authors have no competing interests to declare that are relevant to the content of this article.

References↩︎

[1]
M. Paramesha, N. Rane, and J. Rane, “Big data analytics, artificial intelligence, machine learning, internet of things, and blockchain for enhanced business intelligence,” Artificial Intelligence, Machine Learning, Internet of Things, and Blockchain for Enhanced Business Intelligence (June 6, 2024), 2024.
[2]
P. Domingos and G. Hulten, “Mining high-speed data streams,” in Proceedings of the sixth ACM SIGKDD international conference on knowledge discovery and data mining, 2000, pp. 71–80.
[3]
J. Lu, A. Liu, F. Dong, F. Gu, J. Gama, and G. Zhang, “Learning under concept drift: A review,” IEEE transactions on knowledge and data engineering, vol. 31, no. 12, pp. 2346–2363, 2018.
[4]
S. Agrahari and A. K. Singh, “Concept drift detection in data stream mining: A literature review,” Journal of King Saud University-Computer and Information Sciences, vol. 34, no. 10, pp. 9523–9540, 2022.
[5]
F. Hinder, V. Vaquet, and B. Hammer, “One or two things we know about concept drift—a survey on monitoring in evolving environments. Part a: Detecting concept drift,” Frontiers in Artificial Intelligence, vol. 7, p. 1330257, 2024.
[6]
T. Kolajo, O. Daramola, and A. Adebiyi, “Big data stream analysis: A systematic literature review,” Journal of Big Data, vol. 6, no. 1, pp. 1–30, 2019.
[7]
A. L. Suárez-Cetrulo, D. Quintana, and A. Cervantes, “A survey on machine learning for recurring concept drifting data streams,” Expert Systems with Applications, vol. 213, p. 118934, 2023.
[8]
M. Lin, Z. Yu, K. Yang, and C. P. Chen, “Hybrid ensemble framework for imbalanced data streams with concept drift,” IEEE Transactions on Big Data, 2025.
[9]
A. Bifet, G. de Francisci Morales, J. Read, G. Holmes, and B. Pfahringer, “Efficient online evaluation of big data stream classifiers,” in Proceedings of the 21th ACM SIGKDD international conference on knowledge discovery and data mining, 2015, pp. 59–68.
[10]
A. Bifet, “Classifier concept drift detection and the illusion of progress,” in International conference on artificial intelligence and soft computing, 2017, pp. 715–725.
[11]
A. Liu, J. Lu, Y. Song, J. Xuan, and G. Zhang, “Concept drift detection delay index,” IEEE Transactions on Knowledge and Data Engineering, vol. 35, no. 5, pp. 4585–4597, 2022.
[12]
G. J. Aguiar and A. Cano, “A comprehensive analysis of concept drift locality in data streams,” Knowledge-Based Systems, vol. 289, p. 111535, 2024.
[13]
Ö. Gözüaçık and F. Can, “Concept learning using one-class classifiers for implicit drift detection in evolving data streams,” Artificial Intelligence Review, vol. 54, no. 5, pp. 3725–3747, 2021.
[14]
J. Gama, P. Medas, G. Castillo, and P. Rodrigues, “Learning with drift detection,” in Brazilian symposium on artificial intelligence, 2004, pp. 286–295.
[15]
A. Bifet and R. Gavalda, “Learning from time-changing data with adaptive windowing,” in Proceedings of the 2007 SIAM international conference on data mining, 2007, pp. 443–448.
[16]
D. Lukats, O. Zielinski, A. Hahn, and F. Stahl, “A benchmark and survey of fully unsupervised concept drift detectors on real-world data streams,” International Journal of Data Science and Analytics, vol. 19, no. 1, pp. 1–31, 2025.
[17]
H. M. Gomes, M. Grzenda, R. Mello, J. Read, M. H. Le Nguyen, and A. Bifet, “A survey on semi-supervised learning for delayed partially labelled data streams,” ACM Computing Surveys, vol. 55, no. 4, pp. 1–42, 2022.
[18]
V. M. Souza, D. M. dos Reis, A. G. Maletzke, and G. E. Batista, “Challenges in benchmarking stream learning algorithms with real-world data,” Data Mining and Knowledge Discovery, vol. 34, no. 6, pp. 1805–1858, 2020.
[19]
A. Pesaranghader and H. L. Viktor, “Fast hoeffding drift detection method for evolving data streams,” in Joint european conference on machine learning and knowledge discovery in databases, 2016, pp. 96–111.
[20]
F. Gustafsson and F. Gustafsson, Adaptive filtering and change detection, vol. 1. Wiley New York, 2000.
[21]
J. Komorniczak, P. Zyblewski, and P. Ksieniewicz, “Statistical drift detection ensemble for batch processing of data streams,” Knowledge-Based Systems, vol. 252, p. 109380, 2022.
[22]
A. Shaker and E. Hüllermeier, “Recovery analysis for adaptive learning from non-stationary data streams: Experimental design and case study,” Neurocomputing, vol. 150, pp. 250–264, 2015.
[23]
J. Montiel, J. Read, A. Bifet, and T. Abdessalem, “Scikit-multiflow: A multi-output streaming framework,” Journal of Machine Learning Research, vol. 19, no. 72, pp. 1–5, 2018.
[24]
P. Ksieniewicz and P. Zyblewski, “Stream-learn—open-source python library for difficult data stream batch analysis,” Neurocomputing, vol. 478, pp. 11–21, 2022.
[25]
I. Guyon, S. Gunn, A. Ben-Hur, and G. Dror, “Result analysis of the nips 2003 feature selection challenge,” Advances in neural information processing systems, vol. 17, 2004.
[26]
J. Komorniczak, “Synthetic non-stationary data streams for recognition of the unknown,” in Joint european conference on machine learning and knowledge discovery in databases, 2025, pp. 143–159.
[27]
M. Masud, J. Gao, L. Khan, J. Han, and B. M. Thuraisingham, “Classification and novel class detection in concept-drifting data streams under time constraints,” IEEE Transactions on knowledge and data engineering, vol. 23, no. 6, pp. 859–874, 2010.
[28]
W. N. Street and Y. Kim, “A streaming ensemble algorithm (SEA) for large-scale classification,” in Proceedings of the seventh ACM SIGKDD international conference on knowledge discovery and data mining, 2001, pp. 377–382.
[29]
G. Hulten, L. Spencer, and P. Domingos, “Mining time-changing data streams,” in Proceedings of the seventh ACM SIGKDD international conference on knowledge discovery and data mining, 2001, pp. 97–106.
[30]
R. Agrawal, T. Imielinski, and A. Swami, “Database mining: A performance perspective,” IEEE transactions on knowledge and data engineering, vol. 5, no. 6, pp. 914–925, 1993.
[31]
A. Kraskov, H. Stögbauer, and P. Grassberger, “Estimating mutual information,” Physical Review E—Statistical, Nonlinear, and Soft Matter Physics, vol. 69, no. 6, p. 066138, 2004.