Next Article in Journal
An Optimized Framework for WSN Routing in the Context of Industry 4.0
Next Article in Special Issue
Offline Scaling of IoT Devices in IOTA Blockchain
Previous Article in Journal
A Total Lp-Norm Optimization for Bearing-Only Source Localization in Impulsive Noise with SαS Distribution
Previous Article in Special Issue
Blockchain for Electronic Voting System—Review and Open Research Challenges
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Incremental Clustering Algorithm with Pattern Drift Detection for IoT-Enabled Smart Grid System

1
School of Software Engineering, Sun Yat-Sen University, Zhuhai 519082, China
2
State Key Laboratory of Networking and Switching Technology, Beijing University of Posts and Telecommunications, Beijing 100876, China
*
Author to whom correspondence should be addressed.
Submission received: 27 July 2021 / Revised: 14 September 2021 / Accepted: 24 September 2021 / Published: 28 September 2021
(This article belongs to the Special Issue Blockchain for Trustworthy Internet of Things)

Abstract

:
The IoT-enabled smart grid system provides smart meter data for electricity consumers to record their energy consumption behaviors, the typical features of which can be represented by the load patterns extracted from load data clustering. The changeability of consumption behaviors requires load pattern update for achieving accurate consumer segmentation and effective demand response. In order to save training time and reduce computation scale, we propose a novel incremental clustering algorithm with probability strategy, ICluster-PS, instead of overall load data clustering to update load patterns. ICluster-PS first conducts new load pattern extraction based on the existing load patterns and new data. Then, it intergrades new load patterns with the existing ones. Finally, it optimizes the intergraded load pattern sets by a further modification. Moreover, ICluster-PS can be performed continuously with new coming data due to parameter updating and generalization. Extensive experiments are implemented on real-world dataset containing diverse consumer types in various districts. The experimental results are evaluated by both clustering validity indices and accuracy measures, which indicate that ICluster-PS outperforms other related incremental clustering algorithm. Additionally, according to the further case studies on pattern evolution analysis, ICluster-PS is able to present any pattern drifts through its incremental clustering results.

1. Introduction

The smart grid system has been developing with the integration of massive new technologies, such as Internet of Things (IoT), Blockchain, and Artificial Intelligence (AI) [1,2,3]. Diverse IoT devices and frameworks are applied on smart grid to support data collection, transmission [4], real-time monitoring [5], etc. Blockchain technologies can provide decentralization, trust, and an incentive mechanism for improving the cybersecurity of smart grid system [6,7,8]. Compared with AI, the applications of AI methods including machine learning and deep learning are usually used to process and analyze data for decision-making, such as electric load forecasting [9,10], electric consumer categorization [11], and anomaly detection [12]. In such a smart grid system, the smart meter is an essential IoT device that records energy consumption data for further understanding, managing, planing, and optimizing power demands of electric consumers [13,14].
Smart meter data, also called electricity load data, are data streams that record the electricity consumption behaviors of consumers at regular intervals. They can be used for various studies and applications in smart grid, such as load forecasting, load profiling [15], anomaly detection [16,17], consumer categorization [18], and energy disaggregation [19]. In the studies of load profiling, one significant purpose is to extract the typical electricity consumption patterns, which is usually called load patterns, of every consumer based on load data clustering [20]. Most of works on load data clustering focus on the clustering problem of static load data. However, we notice that updating load patterns based on new load data is essential because electricity consumption behaviors may be changeable and inaccurate load patterns can cause wrong decisions. Although load patterns can be updated by conducting repetitive clustering on overall load data including the new ones, this leads to extra computation and storage, especially in batch-oriented data processing. In that case, incremental learning, which refers to learning from streaming data that arrive over time [21], can be a better solution as it can make full use of the historical information, reduce the training scale, and save training time [22]. Moreover, there are also some special clustering algorithms designed for data streams mining [23]. However, few of them are designed for high-dimensional smart meter data streams so that it is necessary to find out an effective incremental clustering algorithm to update load patterns, especially for end consumers with limited resources.
In real-world industry and our daily lives, the electricity consumption behaviors of consumers may change over time. Some consumers keep their patterns for a long period while others may change frequently. An example of load pattern drift is shown in Figure 1. Each curve denotes a typical load pattern of the same electricity consumer, and the curves in the same color in different subfigures indicate the same load pattern. This consumer has two typical load patterns from January to July, which means that this consumer has a stable electricity consumption behavior. Then, it can be observed that the load patterns drift twice. The first drift happened in August shown by the red curve in Figure 1b, which indicates that this consumer has a new electricity consumption behavior. The second drift happened in August shown by the cyan curve in Figure 1d. Then, this consumer has four electricity consumption behaviors since October.
Once we extract the load patterns from the static electricity load data in a certain period, these load patterns are fixed unless they are updated. It is possible that there are some new load patterns that denote consumer behavior drift in the following periods, so that we should update the previously obtained load patterns by adding the new ones. However, consumer behaviors are complex. It is still uncertain that all coming load patterns are new, which means that some load patterns may exist in the previously obtained load patterns and others may not. In that case, we cannot simply add each load pattern extracted from the new coming data or assign them to any existing load patterns. How to update load patterns accurately is the main challenge of our incremental clustering problem.
Therefore, this work proposes an incremental clustering algorithm with probability strategy, which is named ICluster-PS. We assume that this algorithm can deal with smart meter data streams to update load patterns efficiently for every end-consumer through facilities with limited time and space. The incremental clustering algorithm of ICluster-PS includes three phases: load pattern extraction, load pattern intergradation, and load pattern modification. Load pattern extraction is a preparation to extract load patterns from new electricity load data, which are preprocessed as daily load curves. Load pattern intergradation and modification is an novel approach for determining whether or not we should create a new load pattern and optimize K for the number of updated load patterns. A short paper of this work is published in [24], and we revise and extend it by adding more details of the algorithm, experiments and pattern evolution analysis in this paper. The main contributions of this work are summarized as follows:
  • We consider the problem of load pattern update based on smart meter data streams, and propose an incremental clustering algorithm for continuously updating load patterns. It is significantly helpful for learning electricity consumption behaviors in smart grid field.
  • In the incremental clustering algorithm, we propose a probability strategy on distance measure for optimizing the performance of incremental clustering, and also consider updating parameter to conduct continuous incremental clustering with new coming data.
  • We evaluate both accuracy and clustering validity of our algorithm on a real-world dataset, which contains 17,776 commercial and residential electricity consumers in various districts. The results indicate that ICluster-PS is closed to the performance of the non-incremental clustering based on overall daily load curves and outperforms other related incremental clustering algorithm in terms of both clustering validity and accuracy.
  • The load pattern evolution can be clearly presented by the incremental clustering results, in which we are able to detect any pattern drifts or anomalies of electricity consumers.
The rest of this paper is organized as follows. Section 2 briefly reviews the related works. Section 3 provides the preliminary for Section 4, which introduces the details of the proposed incremental clustering algorithm. Experimental settings are presented in Section 5, and results with evaluation are discussed in Section 6. Finally, we conclude this work in Section 7.

2. Related Work

This section briefly reviews the most relevant related works in terms of load pattern extraction, incremental learning algorithms, and data stream clustering. Electricity consumer load pattern extraction is one of the most important research areas in smart grid, while incremental learning and data stream clustering are two related research areas in machine learning and data mining. However, there are few works that consider the problem how to conduct an incremental learning for electricity consumer load pattern extraction. Some relevant research works are compared in Table 1.
Load Pattern Extraction. Load pattern extraction is an unsupervised clustering problem. There are two types of clustering methods for load data clustering: direct clustering and indirect clustering [15]. In direct clustering, load data are directly used in clustering without any additional dimension reduction or data preprocessing methods. There are many classical clustering algorithms for load data clustering, such as K-means, fuzzy K-means, self-organizing map (SOM), and support vector clustering (SCV) [36,37,38]. As for indirect clustering, researchers usually pay more attentions to dimension reduction, feature extraction and feature construction methods for load data preprocessing. In [25], the authors constructed three new types of features. Their work indicates that the clustering performance of constructed features outperforms the one of default features. In [26], two variations of K-means algorithm with four proposed dimension reduction methods are applied to the clustering process in load profiling. A fused load curve clustering algorithm based on wavelet transform (FCCWT) is proposed in our previous work [39]. This algorithm first applies a multi-level wavelet transform to daily load curves for dimension reduction, and then fuse the K-means clustering results of both normalized approximation signals and detail signals, which are two outputs of wavelet transform, to gain an optimized clustering result.
Incremental Learning Algorithms. In recent years, incremental and online learning gain more attentions especially in big data and data stream areas [40,41]. There are many incremental learning algorithms based on ν -support vector regression, support vector machines (SVM), random forest (RF), neural networks, etc. [27,42,43,44]. An incremental support vector machine (ISVM) with Markov resampling (MR-ISVM) is introduced in [22] to study how dependent sampling methods influence the learning ability of ISVM. However, most of incremental learning algorithms study supervised classification without adding new classes. Although an incremental learning based on RF is studied to incrementally learn new classes for large-scale image [27], this method adds new classes into the trees without judging whether or not the coming classes are new. In [28], the authors proposed an incremental algorithm based on fast finding and searching of density peaks (CFS), named ICFKM, for clustering large data in industrial IoTs. Two challenges—how to integrate new clusters into the previous one and how to update the clustering centers—are solved in ICFKM, which seems to be useful for our incremental clustering problem. However, CFS has relatively strong subjectivity for selecting cluster centers based on the decision graph [45] so that it cannot applied in batch-oriented data processing. Moreover, CFS does not work well on relatively high-dimensional data. Many clusters may be missed by CPS because it only considers the global structure of data [46]. As time-series electricity load data have relatively high dimensions, ICFKM cannot be directly adopted for updating load patterns.
Data Stream Clustering. Clustering data streams requires the capability of partitioning observations continuously within limited memory and time [47]. Most data stream clustering algorithms consist of an online step that incrementally processes the data stream and produces summary statistics, and an offline step that summarizes data to generate clusters by traditional batch clustering algorithms [48]. There are various classic data stream clustering algorithms, such as Stream, CluStream, StreamKM++, DenStream, and HPstream. Both HPstream [29] and incPreDeCon [30] can deal with high-dimensional data streams. The former algorithm is based on K-means, while the later one is based on PreDecom which is a density-based clustering algorithm and requires too many parameters to be run efficiently. In [31], the authors introduced a data stream clustering based on Fuzzy C-mean algorithm and entropy theory. In [32], the authors developed algorithms for clustering high-dimensional dynamic data streams, whereas the algorithms are based on the assumption that no insertions of data that are already in the dataset, which may be not consistent with our load data. Meanwhile, the efficiency of these proposed algorithms is only evaluated by a 2D implementation. In [33], a fully online clustering algorithm is proposed for clustering evolving data streams into arbitrarily shaped clusters (CEDAS), which is also a density-based clustering algorithm. In [34], a density-based clustering algorithm called DStream-GC is designed for discovering gradual moving object clusters pattern from trajectory streams. In [35], a self-organizing incremental neural network (SOINN+) is developed for unsupervised learning clusters with arbitrary shapes from noisy data. Although some algorithms are incremental methods or declare that they can process high-dimensional data streams, their validity and efficiency on load pattern extraction and update require further evaluation. For example, density-based clustering algorithms may not achieve an excellent performance in the experiments of high-dimensional load curve clustering.
In summary, the works on load pattern extraction do not consider the incremental learning problem in their clustering algorithm, while the existing incremental learning or data stream clustering algorithms are not designed for load clustering. Therefore, it is essential to provide an incremental clustering algorithm for our load clustering problem.

3. Preliminary

Before introducing our method, we should first give the problem formulation and several important mathematical notations, shown in Table 2. We also briefly present the method used for load pattern extraction, which is the base of electricity consumer behavior learning.

3.1. Problem Formulation

For an electricity consumer, let X 0 = { x 01 , x 02 , , x 0 N 0 }   R d × N 0 where x 0 i is d-dimensional vector be the electricity load data and N 0 be the number of days contained in the dataset X 0 . We can extract the load patterns from these data by conducting daily load curve clustering.
Definition 1
(Daily Load Curve). A daily load curve x 0 i = < x 0 i 1 , x 0 i 2 , , x 0 i d > where 1 i N 0 is a d-dimensional vector that presents the electricity power consumption of one consumer in one day. It is recorded by a smart meter at a regular interval, which usually is 1 h, 30 min, or 15 min.
Definition 2
(Load Pattern). Given a set of daily load curves X 0 = { x 01 , x 02 , , x 0 N 0 } R d × N 0 , we apply a load curve clustering to X 0 and obtain a set of clusters C 0 = { C 01 , C 02 , , C 0 K 0 } . Let A 0 = { μ 01 , μ 02 , , μ 0 K 0 } R d × K 0 be the set of cluster centers of C 0 , and each μ 0 i is called a load pattern that denotes one typical electricity power consumption behavior feature of the consumer. Every electricity consumer may have one or several load patterns.
As X 0 contains N 0 daily load curves which are divided into K 0 clusters, let n 0 i , 1 i K 0 , be the number of daily load curves contained in the cluster C 0 i C 0 , and we obtain i = 1 K 0 n 0 i = N 0 . Then, we can give the definition of the probabilities of load patterns.
Definition 3
(Probability of Load Pattern). The probability of a load pattern μ 0 i denotes the percentage of the daily load curves represented by μ 0 i in the whole daily load curve dataset X 0 . Let P 0 = { p 01 , p 02 , , p 0 K 0 } be the set of probabilities of load patterns A 0 , then
p 0 i = n 0 i N 0 ,
where i = 1 K 0 p 0 i = 1 and 1 i K 0 .
After obtaining a set of load patterns A 0 based on X 0 , a new set of daily load curves X 1 = { x 11 , x 12 , , x 1 N 1 } R d × N 0 comes due to the continuous electricity power consumption. We aim to obtain a set of updated load patterns A 1 = { μ 11 , μ 12 , , μ 1 K 1 } R d × K 1 based on the existing load patterns A 0 and the new daily load curves X 1 . This means that we conduct an incremental clustering with X 1 and A 0 rather than an overall clustering with [ X 0 , X 1 ] .
As new sets of daily load curves continuously come, we can give a generalization of our incremental clustering problem. Let A t 1 = { μ t 1 , 1 , μ t 1 , 2 , , μ t 1 , K t 1 } R d × K t 1 be the existing load patterns and X t = { x t 1 , x t 2 , , x t N t } R d × N t be the new set of daily load curves, we aim at proposing an incremental clustering algorithm that can obtain a set of updated load patterns A t = { μ t 1 , μ t 2 , , μ t K t } R d × K t , which equals or approximates to the load patterns extracted directly from overall daily load curves X = { X 0 , X 1 , , X t } .

3.2. Load Pattern Extraction

Load pattern extraction is based on the clustering of daily load curves in this work. We adopt a fused load curve clustering algorithm called FCCWT [39] to extract the load patterns. The diagram of FCCWT is illustrated in Figure 2. This algorithm is designed specially for load clustering based on time-series electricity load data in our previous work. It conducts an indirect clustering, in which daily load curves are transformed into approximation signals and detail signals by a multi-level Harr wavelet before the load curve clustering for dimension reduction. Moreover, the approximation signals X α L and detail signals X α H are clustered separately and then fused to avoid information loss caused by the dimension reduction and improve the clustering performance. Although this algorithm is non-incremental, it provides a higher clustering validity comparing with other related methods.

4. Incremental Consumer Behavior Learning

In this section, we introduce the incremental clustering algorithm used for electricity consumption pattern learning. First, we present an overview of the incremental clustering algorithm. Second, we optimize this algorithm by a novel probability strategy in order to improve the incremental clustering performance. Third, several parameters are updated for the following continuous incremental clustering. Finally, we give the generalization of our optimized incremental clustering with the analysis of its asymptotic time complexity.

4.1. Incremental Clustering Algorithm

As presented in Section 3, the inputs are the existing load patterns A 0 and new daily load curves X 1 , while the output is the updated load patterns A 1 . The main challenge of our problem is how to determine whether to create a new load pattern. As consumer behaviors are complex, it is uncertain that there are any different load patterns in X 1 comparing with A 0 . We cannot conduct a simple clustering by regarding all μ 0 i A 0 as the cluster centers. As a result, a novel incremental clustering algorithm is proposed to intergrade the load patterns of X 1 into A 0 . This model is able to determine whether integrating a load pattern into a μ 0 i or keeping it as a new load pattern. An illustration of the incremental clustering algorithm is presented in Figure 3, which contains three phases: load pattern extraction, load pattern intergradation, and load pattern modification. As the example shown in Figure 3, the set of existing load patterns A 0 , which is extracted from X 0 , contains two load patterns. Then, we extract five new load patterns from new daily load curves X 1 and intergrade them with the two existing load patterns one by one. For the intergration of μ a 1 , 1 , we obtain an existing load pattern and an intergrated load pattern. After five times of load pattern intergradation and one extra load pattern modification, we finally obtain four updated load patterns.
Given a set of existing load patterns A 0 = { μ 01 , μ 02 , , μ 0 K 0 } and a set of new daily load curves X 1 = { x 11 , x 12 , , x 1 N 1 } , we describe these phases in detail.
Load pattern extraction. We need to process the new daily load curves X 1 = { x 11 , x 12 , , x 1 N 1 } before the load pattern intergradation. A fused load curve clustering algorithm FCCWT [39], which is our previous work designed specially for daily load curve clustering, is applied to X 1 . Then, we obtain the set of its load patterns a 1 = { μ a 1 1 , μ a 1 2 , , μ a 1 K a 1 } . The corresponding probability of a 1 is P a 1 = { p a 1 1 , p a 1 2 , , p a 1 K a 1 } , where p a 1 i = n a 1 i / N 1 and 1 i K a 1 .
Load pattern intergradation. Let i A 1 denote the result of load pattern intergradation, and i A 1 is initialized as i A 1 = A 0 . We combine the ith load pattern μ a 1 i a 1 with all load patterns in i A 1 , which is denoted as [ i A 1 , μ a 1 i ] . Then, two K-means clusterings are performed on [ i A 1 , μ a 1 i ] with K = K 0 and K = K 0 + 1 , respectively. We evaluate their clustering results by the Simplified Silhouette Width Criterion (SSWC), which is one variant of Silhouette Width Criterion (SWC) index [39,49]. Then, the SSWC values of the clustering results when K = K 0 and K = K 0 + 1 are denotes as SSWC K = K 0 and SSWC K = K 0 + 1 , respectively.
Given [ i A 1 , μ a 1 i ] = { μ 1 , μ 2 , , μ K 0 , μ K 0 + 1 } and its clustering result C = { c 1 , c 2 , , c K } with the set of corresponding cluster centers A ¯ = { μ ¯ 1 , μ ¯ 2 , , μ ¯ K } , the SSWC is calculated as the average of the Simplified Silhouette of the individual load pattern μ j over j = 1 , 2 , , K 0 + 1 .
SSWC K = 1 K 0 + 1 j = 1 K 0 + 1 S μ j = 1 K 0 + 1 j = 1 K 0 + 1 b c r , μ j a c r , μ j max { a c r , μ j , b c r , μ j } ,
where a c r , μ j is the distance between μ j and the center of cluster c r C , while b c r , μ j is the closest distance between μ j and the centers of other clusters in C except for c r . They are calculated as follows:
a c r , μ j = dist ( μ j , μ ¯ r ) ,
b c r , μ j = min { dist ( μ j , μ ¯ w ) } ,
where 1 r , w K and r w . K refers to the parameter of clustering conducted on [ i A 1 , μ a 1 i ] . Then, we obtain SSWC K = K 0 and SSWC K = K 0 + 1 according to Equations (2)–(4). There are two situations when comparing SSWC K = K 0 and SSWC K = K 0 + 1 .
(1) SSWC K = K 0 SSWC K = K 0 + 1 implies that the clustering performance of K = K 0 is equal or superior to the performance of K = K 0 + 1 . As a result, we do not keep the ith load pattern μ a 1 i as a new load pattern, and adopt the set of cluster centers when K = K 0 as the integrating result of [ i A 1 , μ a 1 i ] .
(2) SSWC K = K 0 < SSWC K = K 0 + 1 implies that K = K 0 + 1 results in a better clustering performance than K = K 0 does. In that case, we keep the ith load pattern μ a 1 i as a new load pattern, and adopt the set of cluster centers when K = K 0 + 1 as the integrating result of [ i A 1 , μ a 1 i ] .
After the above comparison and judgment, the set i A 1 is reset with the integrating result of [ i A 1 , μ a 1 i ] . Each μ a 1 i over i = 1 , 2 , , K a 1 with i A is integrated gradually according to this procedure. Finally, we obtain the intergraded set i A 1 = { i μ 11 , i μ 12 , , i μ i K i A 1 } .
Load pattern modification. We perform a further modification on the intergraded set i A 1 to obtain an optimal incremental clustering result. As the the number of load patterns generally is within the range K [ 2 , 10 ] [25,39], multiple K-means clusterings are applied to i A 1 with K in the range of 2 to min { K i A 1 , 10 } , where K i A 1 denotes the number of load patterns in i A 1 . The SSWCs of min { K i A 1 , 10 } 1 times clusterings are calculated and compared with each other. Then we select the K with the largest SSWC as the optimal parameter, and regard the set of cluster centers with the selected optimal K as our target set of updated load patterns A 1 .
We outline the incremental clustering of A 0 and X 1 in Algorithm 1, including the three phase mentioned above. In Algorithm 1, Line 1 is for load pattern extraction, Lines 2–11 conduct load pattern intergradation, and Lines 12–16 are for load pattern modification.
Algorithm 1: The incremental clustering algorithm
Sensors 21 06466 i001

4.2. Optimization via Probability Strategy

Assume A 1 = { μ 11 , μ 12 , , μ 1 K 1 } R d × K 1 is the load patterns extracted directly from the combined set [ X 0 , X 1 ] , then A 1 is based on the non-incremental clustering of N 0 + N 1 daily load curves. On the other hand, the incremental clustering algorithm shown in Algorithm 1 is based on the fusion of load patterns from both A 0 and a 1 , which refer to only K 0 + K a 1 load patterns. Our purpose is to obtain an A 1 that equals or approximates to A 1 . However, the simply K-means clustering algorithm with Euclidean distance is not appropriate to achieve this purpose.
It should be considered that the load patterns usually have different probabilities so that we should not treat them equally in the incremental clustering. Thus, an optimized distance measure with probability strategy is proposed for Algorithm 1, in which Euclidean distance measure is replaced with the proposed measure when performing both K-means clustering and SSWC calculation shown in Equation (3). It is assumed that this probability strategy can optimize Algorithm 1 to achieve an ideal A 1 . Given a set of load patterns A = { μ 1 , μ 2 , , μ K } with the set of corresponding probability P = { p 1 , p 2 , , p K } , where p i = n i / N and N is the number of daily load curves that A refers to, the optimized distance with probability strategy between μ i and μ j is calculated as follows:
dist p ( μ i , μ j ) = p i N p j N | | μ i μ j | | 2 = n i n j | | μ i μ j | | 2 ,
where n i and n j denote the numbers of daily load curves that μ i and μ j represent, respectively.
The cluster center μ ¯ r in K-means clustering with Euclidean distance is calculated as the mean of the objects that contained in the cluster:
μ ¯ r = 1 m r μ C r μ r ,
where m r is the number of μ contained in the cluster C r . We set the probability of μ ¯ r with p μ ¯ r = 1 / N when performing K-means clustering with the optimized distance. As a result, the optimized distance with probability strategy between μ i and μ ¯ r is calculated as follows:
dist p ( μ i , μ ¯ r ) = p i N p μ ¯ r N | | μ i μ ¯ r | | 2 = n i | | μ i μ ¯ r | | 2 .
Similarly, the calculation of cluster center shown in Equation (6) should be rewritten as
μ ¯ r = 1 μ C r p r N μ C r p r N μ r = 1 μ C r n r μ C r n r μ r ,
where n r denotes the number of daily load curves that the load pattern μ r refers to, and μ C r n r denotes the total number of daily load curves that all μ C r refer to.

4.3. Updating Parameters

As new daily load data continuously grow with the electricity power consumption of consumers, we should update several essential parameters after one incremental clustering for the preparation of the next incremental clustering. The sets X 0 and X 1 contain N 0 and N 1 daily load curves, respectively. Their combined set [ X 0 , X 1 ] contains N 0 + N 1 daily load curves totally. The incremental clustering on [ X 0 , X 1 ] gives the set of updated load patterns A 1 and the set of its corresponding clustering result C 1 = { C 11 , C 12 , , C 1 K 1 } . Let P 1 = { p 11 , p 12 , , p 1 K 1 } be the set of corresponding probabilities of A 1 , the probability of μ 1 r A 1 for the rth cluster C 1 r is updated as
p 1 r = n 1 r N 0 + N 1 ,
where n 1 r is the number of daily load curves that the load pattern μ 1 r represents. We update n 1 r as follows:
n 1 r = μ 0 C 1 r n 0 r + μ a 1 C 1 r n a 1 r ,
where μ 0 C 1 r n 0 r denotes the total number of daily load curves that all μ 0 i A 0 belonging to C 1 r represent, and μ a 1 C 1 r n a 1 r denotes the one that all μ a 1 i a 1 belonging to C 1 r represent. After the updating of P 1 , A 1 is ready to be conducted in another incremental clustering with the next coming data set X 2 .

4.4. Generalization of Incremental Clustering

In practice, there are continuous coming new daily load data sets X 1 , X 2 , , X t . The generalization of incremental clustering algorithm, which is based on the existing load patterns A 0 and new daily load curves X = { X 1 , X 2 , X t } , is outlined in Algorithm 2. For n s r and p s r in the generalized algorithm, the updating equations shown in Equation (9) and Equation (10) become
p s r = n s r i = 0 s N i ,
n s r = μ s 1 C s r n s 1 , r + μ a s C s r n a s r ,
where N i is the number of daily load curves that X i contains, and μ s 1 and μ a s are the load patterns that belong to A s 1 and a s , respectively.
In Algorithm 2, the incremental clustering is continuously performed with the coming of X s . This means that it is performed immediately once X s comes without waiting all X s + 1 , X s + 2 , , X t come. Therefore, we can obtain the updated load patterns A s in time, and then the algorithm is paused until X s + 1 comes.
Algorithm 2: The generalization of Algorithm 1
Sensors 21 06466 i002

4.5. Complexity Analysis

The time complexity of FCCWT is O ( N K T ) where N is the number of daily load curves, K is the number of clusters and T is the number of iterations needed until convergence [39]. The time complexity of K-means is O ( N d K T ) while the one of SSWC calculation is O ( N d K ) , where d is the size of dimensions of daily load curves. As the default of maximum T is usually set as 100, 200, or 300, we assume that all Ts in Algorithm 1 are the same so that the time complexity can be analyzed more easily. Moreover, we also assume that all Ks adopt the maximum value 10 due to K [ 2 , 10 ] .
Based on the above assumptions, the asymptotic time complexities of load pattern extraction, load pattern intergradation and load pattern modification in Algorithm 1 are O ( K N 1 T ) , O ( ( 2 K 3 + 3 K 2 + K ) d ( T + 1 ) ) and O ( K d ( T + 1 ) k = 2 K k ) , respectively. Therefore, the asymptotic time complexity of Algorithm 1 is
O K N 1 T + ( 2 K 3 + 3 K 2 + K ) d ( T + 1 ) + K d ( T + 1 ) k = 2 K k = O K N 1 T + ( 2 K 3 + 3 K 2 + K k = 1 K k ) d ( T + 1 ) .
The time complexity of updating parameters is O ( K ) so that the asymptotic time complexity of Algorithm 2 is
O K T s = 1 t N s + ( 2 K 3 + 3 K 2 + K k = 1 K k ) t d ( T + 1 ) + K t ,
where O ( K T s = 1 t N s ) is the time complexity of t times FCCWT performed on X s , O ( ( 2 K 3 + 3 K 2 + K k = 1 K k ) t d ( T + 1 ) ) is the time complexity of t times load pattern intergradation and modification, and O ( K t ) is the time complexity of t times parameter updating.
As for non-incremental clustering, the time complexity of t times FCCWT on [ X 0 , X 1 , · , X s ] over s = 1 , 2 , , t is
O ( N 0 + s = 0 1 N s + s = 0 2 N s + + s = 0 t N s ) K T = O ( t + 1 ) N 0 + t N 1 + ( t 1 ) N 2 + + N t K T ,
which is sensitive to the size of t. Similarly, the time complexity of t times non-incremental clustering algorithm K-means on the same data is O ( ( ( t + 1 ) N 0 + t N 1 + ( t 1 ) N 2 + + N t ) d K T ) . Comparing Equation (15) with the time complexities of two non-incremental clustering algorithms, it is suggested that the incremental clustering saves time and reduces the clustering scale when t is relatively large.

5. Experimental Settings

This section presents the experimental settings including datasets, evaluation criterion, and comparison methods in details. In evaluation criterion, an weighted mean error measure is proposed to evaluate the accuracy of the load patterns extracted by incremental clustering.

5.1. Datasets

The dataset used in the experiment refers to 14,976 commercial and 2800 residential electricity consumers in 936 counties of United States (Available online: https://openei.org/datasets/files/961/pub/ (accessed on 24 June 2019). Eight of 2808 residential consumers have missing data so that only the data of 2800 residential electricity consumers are used in the experiment). It contains 24-value daily load data over one year and records the electricity power consumption at every 1 h from 1:00 to 24:00 per day. As the proposed algorithm is designed for learning the electricity consumption patterns of a single consumer, the data of one electricity consumer can be regarded as a sub-dataset that leads to a sub-experiment. As a result, we conduct 17,776 sub-experiments totally. Moreover, three situations are considered for every sub experiment. We select 3 months, 6 months, and 9 months daily load data as the initial set X 0 , respectively. The remaining data are divided by month and then regarded as X 1 , X 2 , , X t . For example, in the case of t = 3 , daily load data from January to September are selected as X 0 , and the data of October, November, and December are regarded as X 1 , X 2 , and X 3 , respectively.

5.2. Evaluation Criterion

We employ two types of measures including clustering validity indices and accuracy measures as the evaluation criterion in the experiment. Moreover, we propose an weighted mean minimum error measure for the accuracy measures.
Clustering validity indices. The clustering performance of the proposed method is also evaluated by diverse clustering validity indices including Davies–Bouldin index (DB), Dunn validity index (DVI), and SWC.
Let C s = { C s 1 , C s 2 , , C s K s } be the corresponding clustering results of A s , the clustering validity indices of C s follow the equations below:
DB ( C s ) = 1 K s r = 1 K s max w r C ¯ s r + C ¯ s w | | μ s r μ s w | | ,
DVI ( C s ) = min 0 < r w < K s min x i C s r , x j C s w | | x i x j | | 2 max 0 < r K s max x i , x j C s r | | x i x j | | 2 ,
SWC = 1 N j = 1 N b C s r , x j a C s r , x j max { a C s r , x j , b C s r , x j } ,
where C ¯ s r and C ¯ s w is the average within-group distance for C s r and C s w , respectively; x i and x j denote two daily load curves contained in [ X 0 , X 1 , , X s ] , respectively; N = i = 0 s N i , a C s r , x j denotes the mean distance of x j to all other daily load curves in C s r ; and b C s r , x j denotes the minimum mean distance of x j to all daily load curves in C s w , w r .
Accuracy measures. As we aim to obtain A s = { μ s 1 , μ s 2 , , μ s K s } that equals or approximates to A s = { μ s 1 , μ s 2 , , μ s K s } , which is the load patterns extracted directly from [ X 0 , X 1 , , X s ] , we employ the accuracy measures for time-series forecasting to evaluate the load patterns in A s comparing with those in A s . Both scale-dependent and percentage-based measures are employed, including Normalized Root Mean Square Error (NRMSE), Mean Absolute Error (MAE), and Symmetric Mean Absolute Percentage Error (sMAPE) [50,51]. However, both A s and A s contain several load patterns so that we propose a weighted mean minimum error based on the numbers of load patterns in A s and A s .
NRMSE ( μ s i , μ s j ) = 1 d l = 1 d μ s i , l μ s j , l μ s i , l 2 ,
MAE ( μ s i , μ s j ) = 1 d l = 1 d | μ s i , l μ s j , l | ,
sMAPE ( μ s i , μ s j ) = 1 d l = 1 d 2 · | μ s i , l μ s j , l | ( | μ s i , l | + | μ s j , l | ) .
(1) K s K s indicates that the incremental clustering may cause extra load patterns. We calculate the minimum error for each μ s j A s , which is the error between μ s j and its most similar load pattern μ s i A s . Moreover, we weight the mean error by K s / K s due to the extra load patterns.
E ( A s , A s ) = K s K s 1 K s j = 1 K min μ s j A s meas ( μ s i , μ s j ) ,
where meas ( μ s i , μ s j ) can be NRMSE, MAE, or sMAPE shown in Equation (19)–(21).
(2) K s > K s indicates that the incremental clustering misses some load patterns. We calculate the minimum error for each μ s i A s , which is the error between μ s i and its most similar load pattern μ s j A s . Similarly, we weight the mean error by K s / K s due to the missing load patterns.
E ( A s , A s ) = K s K s 1 K s i = 1 K min μ s i A s meas ( μ s i , μ s j ) .
According to the definitions of these indices and measures, smaller Errors indicate higher accuracy and smaller DB indicates better clustering performance. On the contrary, the larger the DVI and SWC are the better the clustering performance is.

5.3. Comparison Methods

We adopt two algorithms FCCWT and K-means to conduct non-incremental clustering on [ X 0 , X 1 , , X s ] over s = 1 , 2 , , t , and then regard the load patterns with the optimal clustering performance as the baseline for evaluating the accuracy of other incremental clustering methods. Moreover, we also compare the clustering performance of the non-incremental clustering algorithms with our proposed method and other related incremental clustering methods. Methods compared in the experiments are summarized in Table 3.

6. Results and Evaluation

In this section, we first present and discuss the general incremental clustering performance and accuracy of comparison methods on data of all consumers. Then, a commercial consumer is randomly selected as a case for electricity consumption behavior patterns analysis. We also compare the mean runtime of incremental and non-incremental clustering algorithms to support the time complexity analysis in the former section. Furthermore, we conduct pattern evolution analysis based on the incremental clustering results of another randomly selected residential consumer.

6.1. Incremental Clustering Performance

We conduct the experiments of Algorithm 2 with t = 3 , t = 6 , and t = 9 , which means that three, six, and nine incremental clustering processes shown in Algorithm 1 are performed in one experiment, respectively. Both clustering performance and accuracy of the methods are compared for the incremental clustering performance. Although there are various types of consumers in the dataset, we still use the mean performance of all consumers to evaluate the comparison methods because most of the evaluation criteria are percentage-based.
Table 4 shows the mean clustering performance comparison of the methods on the data of 17,776 electricity consumers. The former two methods are non-incremental clustering methods while the later five methods are incremental. We first compare the mean clustering performance of incremental methods. According to the definitions of three clustering validity indices shown in Equation (16)–(18), the larger the DVI and SWC are the better the clustering performance is, while a smaller DB indicates better clustering performance. The optimal results of incremental methods are displayed in bold. The proposed method ICluster-PS shows the smallest DB values and largest SWC values in Table 4. Although the DVI values of ICluster-PS are slightly lower than the ones of HPStream when t = 3 and t = 6 , the average clustering performance of ICluster-PS is optimal in all compared incremental clustering methods. Therefore, these results indicate that the proposed method ICluster-PS outperforms other incremental methods. The largest improvement of clustering performance comparing with other incremental clustering methods is 44.2%. On the other hand, ICluster-PS still requires improvement due to its lower clustering performance compared with the non-incremental clustering FCCWT and K-means that conduct clustering directly on overall daily load curves.
As FCCWT presents the optimal clustering performance in Table 4, we decide to adopt the load patterns obtained from FCCWT as the baseline for accuracy measure. Then, we can calculate the mean errors of the five incremental methods based on Equation (22) and Equation (23) using three different accuracy measures. The results, which are shown in Table 5, indicate that ICluster-PS has the optimal performance as the minimum error denotes the highest accuracy. The improvement of accuracy is between 29.8% and 66.0% comparing with other incremental clustering methods.
According to the results shown in Table 4 and Table 5, the better clustering performance and smaller errors of methods with probability strategy compared with those without the strategy prove the optimization of our proposed probability strategy. Moreover, the incremental clustering algorithm of ICluster-PS, especially load pattern intergradation and modification, improves both clustering performance and the accuracy of K-means based on the comparisons between ICluster and K-means with or without probability strategy. As for the three groups of mean errors with different t, it is noticed that the mean errors increase with the rise of t, which means that the errors may increasingly rise over the continuous incremental clustering. However, the three groups of the mean clustering performance present an opposite tendency. Therefore, it can be only suggested that the load patterns updated by incremental clustering may tend to deviate from the load patterns obtained by FCCWT over time.
In summary, the proposed incremental clustering algorithm, ICluster-PS, can achieve an acceptable accuracy with mean error less than 10 % and an improved clustering validity via its designed model and probability strategy. This result indicates that we can provide an efficient response when consumers require consumption analysis via smart meter or other facilities with limited resource. Although our experiments set the data of one month as X s , it can be set optionally by consumers in practical application.

6.2. Case Analysis

A random electricity consumer is selected to be analyzed in detail for a further discussion of the proposed method and electricity consumer behaviors. The selected consumer is a full service restaurant, which have three typical load patterns based on the overall daily load curves. Figure 4 illustrates the load patterns obtained by ICluster-SP and FCCWT in the experiment when t = 6 . Each subfigure presents both the incremental and non-incremental cluster centers of the data [ X 0 , X 1 , , X s ] , where 1 s t . The load patterns in solid line style denote the incremental cluster centers of ICluster-SP, while those in dashed line style denote the non-incremental cluster centers of FCCWT.
According to the clustering performance shown in Table 4, the load patterns of FCCWT are regarded as the accurate results. Note that these accurate load patterns are relatively stable and there is no distinct electricity consumption behavior drift happening to this consumer from July to December. The three typical load patterns of this consumer are distinct in terms of power degrees, starting time of the increase in the morning and ending time at night. The possible reasons for these distinctions are daylight saving time and seasonal influence. As for the incremental clustering results, their load patterns drift once on August shown in Figure 4b. Therefore, we can find out three typical load patterns in Figure 4a and four typical load patterns in other subfigures. These updated load patterns show similar patterns as the accurate ones if the power degrees of them are not taken into account. However, the distinct starting time of the increase in the morning shown by the accurate ones are not revealed by those of ICluster-PS until December, shown in Figure 4f.
In addition, we evaluate the load patterns by the same accuracy measures and clustering validity indices used in the former evaluation, the results of which are illustrated in Figure 5. Each curve contains six values which refer to the evaluation of load patterns in Figure 4a–f, respectively. Figure 5a–c presents the clustering performance of both ICluster-PS and FCCWT. FCCWT shows a relatively stable clustering performance while ICluster-PS shows slight fluctuation. The optimal clustering performance, especially for DVI and SWC, of ICluster-PS is presented in July. On the other hand, Figure 5d–f denotes the accuracy measures of ICluster-PS comparing with FCCWT so that there is only one curve in each subfigure. All three curves show an increase at first and then decrease after August. Different from the presentation of its clustering performance, their optimal accuracies are shown in December, which are in accord with the results shown in Figure 4.
Based on the observation of this case, ICluster-PS can achieve incremental clustering for load pattern updating, although it may provide an slightly unstable performance in terms of accuracy and clustering validity. This result is acceptable for providing efficient and effective updated electricity consumption patterns with time and space constraints.

6.3. Runtime Comparison

Apart from the time complexity analysis of both incremental and non-incremental clustering algorithms in Section 4, we also compare their runtime in the experiment to support this analysis. The algorithms, which are written in Python and run on 64-bit Windows 10 operating system with Intel Core i5-5300U CPU and 8 GB RAM, are performed on the data of 16 commercial consumers in a same randomly selected county. Figure 6 shows the mean runtime comparison of the methods when t = 9 . The comparison methods include the proposed incremental clustering algorithm ICluster-PS, and two non-incremental algorithms, FCCWT and K-means. Each algorithm is run 100 times in every clustering, which means that we run 16 × 9 × 100 × 3 times non-incremental or incremental clustering algorithms totally. According to Figure 6, it can be noticed that the runtime of ICluster-PS is stable and around 0.3 s while the the runtime of other two non-incremental clusterings increase with the rise of t. This result proves the time complexity analysis in Section 4, which is that the incremental clustering saves time when t is relatively large because it reduces the clustering scale. The runtime curve of ICluster-PS shows some slight fluctuations, which are caused by the small differences of the data in every month.

6.4. Pattern Evolution Analysis

We assume that our incremental clustering algorithm can be used to investigate the electricity consumption pattern evolution over time when conducting load pattern updates. As a result, we randomly select a residential consumer, who may have less stable consumption patterns than a commercial consumer, as a case for pattern evolution analysis. Figure 7 shows the updated load patterns of the selected residential consumer from April to December, which means that t = 9 is set in the experiment of this case analysis. Each subfigure denotes the load patterns of one incremental clustering with one month adding new data based on the load patterns of previous months. For example, Figure 7a indicates the load patterns updated by the first incremental clustering based on the existed load patterns of January to March and new daily load data of April, Figure 7b indicates the load patterns updated by the second incremental clustering based on the load patterns shown in Figure 7a and new daily load data of May, etc. In Figure 7, we use curves with different colors, line styles, and markers to distinguish various types or meanings of updated load patterns. The curves in blue and solid line style denote the load patterns that exist in last month, which means that these load patterns are not affected by new adding data and do not drift in current month. The curves in green and dashed line style denote the load patterns that are updated by new adding data in current month and have drifts comparing with the ones in last month. The curves in red and point line style denote the load patterns which are completely new and only refer to the days in current month. Markers on curves are only used to label different load patterns.
Moreover, we draw another figure, Figure 8, to illustrate the pattern evolution of the case shown in Figure 7. In Figure 8, each circle with a number denotes a cluster or load pattern, and the number inside the circle denotes the number of days that the load pattern refers to. There are three types of circles, which represent existed load patterns, updated load patterns and new load patterns, respectively. The plus and number shown on an arrow denote the number of new days added to the load pattern after one incremental clustering. In fact, Figure 8 is in accordance with Figure 7. The first column in left of Figure 8 indicates two load patterns extracted by non-incremental clustering with load data from January to March. Other nine columns, each of which denotes four load patterns updated by an incremental clustering with adding new load data in current month and the load patterns in last month (shown in left column), are corresponding to Figure 7a–i, respectively.
The electricity consumption pattern evolution of the residential consumer is presented clearly according to Figure 7 and Figure 8. The residential consumer has two load patterns, which refer to 36 and 54 days, in the first three months of the year based on a non-incremental clustering with the data from January to March. Note that the load pattern with 36 days is unchanged until December. There are 18 new days in December that have similar shape with this load pattern so that they are added in this pattern and the number of days included in this pattern becomes 54. Then, it can be found that this load pattern drifts slightly based on the comparison of the curve with 36 days shown in Figure 7h and the curve with 54 days shown in Figure 7i. Another load pattern with 54 days at first is unchanged until August. Then, it is continually updated and merged with new days or other existed load patterns, and finally becomes a load pattern with 301 days (Jan–Dec), which is presented by the green dashed curve with star markers shown in Figure 7i. In total, nine new load patterns emerge in April, June, August, September, October, November, and December. Most of them are merged with other load patterns in next month. For instance, a new load pattern with nine days emerges in August, then it is merged with 18 new days in September and the other load pattern with 74 days (Jan–Aug), and finally becomes an updated load pattern that refers to 101 days (Jan–Sept). We note that some load patterns are merged after one or several incremental clustering. Why do different load patterns become one after one or a few months? The reason is that the increase in the number of data samples leads to the change of the optimal clustering results.
Based on the pattern evolution analysis and the further analysis on the dates of all days included in every load pattern, we can find out when and how this residential consumer drifts electricity consumption behaviors. In that case, this consumer can have a clear understand of her/his electricity demand and make an effective response to it. On the other hand, electricity suppliers or other agencies can also detect any anomalies once electricity consumers, especially commercial or industrial consumers, drift their consumption patterns significantly.

7. Conclusions and Future Work

This paper aims to achieve efficient demand response and consumer segmentation for both electricity end consumers and suppliers by incremental consumer behavior learning. It supposes that an effective incremental clustering algorithm would constantly updated load pattern data for electricity consumers with limited resource. Moreover, the incremental clustering algorithm should reduce the training scale and save time comparing with non-incremental clustering algorithms.
Therefore, we propose an incremental clustering algorithm with probability strategy, ICluster-PS, for updating load patterns based on smart meter data. We also provide parameter updating and algorithm generalization to ICluster-PS in order to continuously perform our algorithm with new coming data. The proposed algorithm is evaluated on real-world data. The experimental results prove the accuracy and validity of our incremental clustering algorithm, especially load pattern intergradation, modification, and probability strategy. It has less time complexity and runtime than non-incremental clustering algorithm. On the other hand, although ICluster-PS cannot provide load patterns that are the same as those extracted directly from the overall electricity load data, it achieves acceptable updated results when saving time, reducing the clustering scale and even making full use of the historical information. It also outperforms other related incremental algorithms or data stream clustering algorithms.
Moreover, we conduct additional case study of pattern evolution analysis by using our proposed algorithm. The analysis results indicate that our algorithm is able to detect load pattern drifts through its updated load patterns. In the future work, we plan to improve the performance of the incremental clustering algorithm and employ incremental consumer behavior learning for automatic and real-time load pattern evolution analysis and detection.

Author Contributions

Conceptualization and methodology, Z.J. and R.L.; software, Z.J.; validation, Z.J.; writing—original draft preparation, Z.J.; writing—review and editing, R.L., F.Y.; supervision, F.Y.; project administration, R.L. and F.Y.; funding acquisition, Z.J. and R.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the China Postdoctoral Science Foundation Grand (2019TQ0373), and the National Natural Science Foundation of China (No. 62002393).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used in this work are publicly available on OpenEI at https://openei.org/datasets/files/961/pub/.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kumar, N.M.; Chand, A.A.; Malvoni, M.; Prasad, K.A.; Mamun, K.A.; Islam, F.; Chopra, S.S. Distributed Energy Resources and the Application of AI, IoT, and Blockchain in Smart Grids. Energies 2020, 13, 5739. [Google Scholar] [CrossRef]
  2. Bera, B.; Saha, S.; Das, A.K.; Vasilakos, A.V. Designing Blockchain-based Access Control Protocol in IoT-enabled Smart-grid System. IEEE Internet Things J. 2021, 8, 5744–5761. [Google Scholar] [CrossRef]
  3. Singh, S.K.; Cha, J.; Kim, T.W.; Park, J.H. Machine Learning based Distributed Big Data Analysis Framework for Next Generation Web in IoT. Comput. Sci. Inf. Syst. 2021, 18, 597–618. [Google Scholar] [CrossRef]
  4. Tightiz, L.; Yang, H. A Comprehensive Review on IoT Protocols’ Features in Smart Grid Communication. Energies 2020, 13, 2762. [Google Scholar] [CrossRef]
  5. Melo, G.C.G.D.; Torres, I.C.; Araújo, Í.B.Q.D.; Brito, D.B.; Barboza, E.D.A. A Low-cost IoT System for Real-time Monitoring of Climatic Variables and Photovoltaic Generation for Smart Grid Application. Sensors 2021, 21, 3293. [Google Scholar] [CrossRef] [PubMed]
  6. Aderibole, A.; Aljarwan, A.; Rehman, M.H.U.; Zeineldin, H.H.; Mezher, T.; Salah, K.; Damiani, E.; Svetinovic, D. Blockchain Technology for Smart Grids: Decentralized NIST Conceptual Model. IEEE Access 2020, 8, 43177–43190. [Google Scholar] [CrossRef]
  7. Zhuang, P.; Zamir, T.; Liang, H. Blockchain for Cybersecurity in Smart Grid: A Comprehensive Survey. IEEE Trans. Ind. Informatics 2020, 17, 3–19. [Google Scholar] [CrossRef]
  8. Moni, M.; Melo, W.; Peters, D.; Machado, R. When Measurements Meet Blockchain: On Behalf of an Inter-NMI Network. Sensors 2021, 21, 1564. [Google Scholar] [CrossRef]
  9. Kim, J.; Moon, J.; Hwang, E.; Kang, P. Recurrent Inception Convolution Neural Network for Multi Short-term Load Forecasting. Energy Build. 2019, 194, 328–341. [Google Scholar] [CrossRef]
  10. Hafeez, G.; Alimgeer, K.S.; Khan, I. Electric Load Forecasting based on Deep Learning and Optimized by Heuristic Algorithm in Smart Grid. Appl. Energy 2020, 269, 114915. [Google Scholar] [CrossRef]
  11. Singh, S.; Yassine, A.; Benlamri, R. Consumer Segmentation: Improving Energy Demand Management through Households Socio-analytics. In Proceedings of the 2019 IEEE International Conference on Dependable, Autonomic and Secure Computing, International Conference on Pervasive Intelligence and Computing, International Conference on Cloud and Big Data Computing, International Conference on Cyber Science and Technology Congress, Fukuoka, Japan, 5–8 August 2019; pp. 1038–1045. [Google Scholar]
  12. Rahimi, A.; Shahrestani, A.; Ramezani, S.; Zamani, P.; Tehrani, S.O.; Moghaddam, M.H.Y. Filter Based Time-Series Anomaly Detection in AMI using AI Approaches. In Proceedings of the 2021 5th International Conference on Internet of Things and Applications (IoT), Isfahan, Iran, 19–20 May 2021; pp. 1–6. [Google Scholar]
  13. Chen, Y.Y.; Chen, M.H.; Chang, C.M.; Chang, F.S.; Lin, Y.H. A Smart Home Energy Management System Using Two-Stage Non-Intrusive Appliance Load Monitoring over Fog-Cloud Analytics Based on Tridium’s Niagara Framework for Residential Demand-Side Management. Sensors 2021, 21, 2883. [Google Scholar] [PubMed]
  14. Singh, S.K.; Pan, Y.; Park, J.H. OTS Scheme based Secure Architecture for Energy-Efficient IoT in Edge Infrastructure. CMC-Comput. Mater. Contin. 2021, 66, 2905–2922. [Google Scholar] [CrossRef]
  15. Wang, Y.; Chen, Q.; Kang, C.; Zhang, M.; Wang, K.; Zhao, Y. Load Profiling and Its Application to Demand Response: A Review. Tsinghua Sci. Technol. 2015, 20, 117–129. [Google Scholar] [CrossRef]
  16. Zheng, Z.; Yang, Y.; Niu, X.; Dai, H.N.; Zhou, Y. Wide and Deep Convolutional Neural Networks for Electricity-theft Detection to Secure Smart Grids. IEEE Trans. Ind. Inform. 2018, 14, 1606–1615. [Google Scholar] [CrossRef]
  17. Khelifi, N. A Cryptographic-based Approach for Electricity Theft Detection in Smart Grid. Comput. Mater. Contin. 2020, 63, 97–117. [Google Scholar]
  18. Jiang, Z.; Lin, R.; Yang, F. A Hybrid Machine Learning Model for Electricity Consumer Categorization Using Smart Meter Data. Energies 2018, 11, 2235. [Google Scholar] [CrossRef] [Green Version]
  19. Liu, W.; He, J.; Li, M.; Jin, R.; Zhang, Z. An Efficient Supervised Energy Disaggregation Scheme for Power Service in Smart Grid. Intell. Autom. Soft Comput. 2019, 25, 585–593. [Google Scholar] [CrossRef]
  20. Chicco, G. Overview and Performance Assessment of the Clustering Methods for Electrical Load Pattern Grouping. Energy 2012, 42, 68–80. [Google Scholar] [CrossRef]
  21. Gepperth, A.; Hammer, B. Incremental Learning Algorithms and Applications. In European Symposium on Artificial Neural Networks; ESANN: Bruges, Belgium, 2016. [Google Scholar]
  22. Xu, J.; Xu, C.; Zou, B.; Tang, Y.Y.; Peng, J.; You, X. New Incremental Learning Algorithm with Support Vector Machines. IEEE Trans. Syst. Man, Cybern. Syst. 2018, 49, 2230–2241. [Google Scholar] [CrossRef]
  23. Nguyen, H.L.; Woon, Y.K.; Ng, W.K. A Survey on Data Stream Clustering and Classification. Knowl. Inf. Syst. 2015, 45, 535–569. [Google Scholar] [CrossRef]
  24. Jiang, Z.; Lin, R.; Yang, F. Incremental Electricity Consumer Behavior Learning Using Smart Meter Data. In Proceedings of the 2019 4th International Conference on Big Data and Computing, Guangzhou, China, 10–12 May 2019; pp. 54–59. [Google Scholar]
  25. Al-Otaibi, R.; Jin, N.; Wilcox, T.; Flach, P. Feature Construction and Calibration for Clustering Daily Load Curves from Smart-meter Data. IEEE Trans. Ind. Informatics 2016, 12, 645–654. [Google Scholar] [CrossRef] [Green Version]
  26. Panapakidis, I.P.; Alexiadis, M.C.; Papagiannis, G.K. Enhancing the Clustering Process in the Category Model Load Profiling. IET Gener. Transm. Distrib. 2015, 9, 655–665. [Google Scholar] [CrossRef]
  27. Marxer, R.; Purwins, H. Unsupervised Incremental Nnline Learning and Prediction of Musical Audio Signals. IEEE/ACM Trans. Audio, Speech, Lang. Process. 2016, 24, 863–874. [Google Scholar] [CrossRef] [Green Version]
  28. Zhang, Q.; Zhu, C.; Yang, L.T.; Chen, Z.; Zhao, L.; Li, P. An Incremental CFS Algorithm for Clustering Large Data in Industrial Internet of Things. IEEE Trans. Ind. Inform. 2017, 13, 1193–1201. [Google Scholar] [CrossRef]
  29. Aggarwal, C.C.; Han, J.; Wang, J.; Yu, P.S. A Framework for Projected Clustering of High Dimensional Data Streams. In Proceedings of the 30th International Conference on Very Large Data Bases, VLDB Endowment, Toronto, ON, Canada, 31 August–3 September 2004; pp. 852–863. [Google Scholar]
  30. Kriegel, H.P.; Kröger, P.; Ntoutsi, I.; Zimek, A. Density based Subspace Clustering Over Dynamic Data. In Proceedings of the 23rd International Conference on Scientific and Statistical Database Management; Springer: Berlin/Heidelberg, Germany, 2011; pp. 387–404. [Google Scholar]
  31. Zhang, B.; Qin, S.; Wang, W.; Wang, D.; Xue, L. Data Stream Clustering based on Fuzzy C-Mean Algorithm and Entropy Theory. Signal Process. 2016, 126, 111–116. [Google Scholar] [CrossRef]
  32. Braverman, V.; Frahling, G.; Lang, H.; Sohler, C.; Yang, L.F. Clustering High Dimensional Dynamic Data Streams. In Proceedings of the 34th International Conference on Machine Learning, PMLR, Sydney, Australia, 6–11 August 2017; pp. 576–585. [Google Scholar]
  33. Hyde, R.; Angelov, P.; MacKenzie, A.R. Fully Online Clustering of Evolving Data Streams into Arbitrarily Shaped Clusters. Inf. Sci. 2017, 382–383, 96–114. [Google Scholar] [CrossRef] [Green Version]
  34. Zhang, Y.; Ji, G.; Zhao, B.; Sheng, B. An Algorithm for Mining Gradual Moving Object Clusters Pattern from Trajectory Streams. Comput. Mater. Contin. 2019, 59, 885–901. [Google Scholar] [CrossRef]
  35. Wiwatcharakoses, C.; Berrar, D. SOINN+, A Self-organizing Incremental Neural Network for Unsupervised Learning from Noisy Data Streams. Expert Syst. Appl. 2020, 143, 113069. [Google Scholar] [CrossRef]
  36. Mets, K.; Depuydt, F.; Develder, C. Two-stage Load Pattern Clustering Using Fast Wavelet Transformation. IEEE Trans. Smart Grid 2016, 7, 2250–2259. [Google Scholar] [CrossRef]
  37. Wang, Y.; Chen, Q.; Kang, C.; Xia, Q. Clustering of Electricity Consumption Behavior Dynamics Toward Big Data Applications. IEEE Trans. Smart Grid 2016, 7, 2437–2447. [Google Scholar] [CrossRef]
  38. Shaukat, M.A.; Shaukat, H.R.; Qadir, Z.; Munawar, H.S.; Kouzani, A.Z.; Mahmud, M. Cluster Analysis and Model Comparison Using Smart Meter Data. Sensors 2021, 21, 3157. [Google Scholar] [CrossRef]
  39. Jiang, Z.; Lin, R.; Yang, F.; Wu, B. A Fused Load Curve Clustering Algorithm based on Wavelet Transform. IEEE Trans. Ind. Inform. 2018, 14, 1856–1865. [Google Scholar] [CrossRef]
  40. Hao, S.; Zhao, P.; Hoi, S.C.; Miao, C. Learning Relative Similarity from Data Streams: Active Online Learning Approaches. In Proceedings of the 24th ACM International on Conference on Information and Knowledge Management, ACM, Melbourne, Australia, 18–23 October 2015; pp. 1181–1190. [Google Scholar]
  41. Losing, V.; Hammer, B.; Wersing, H. Incremental On-line Learning: A Review and Comparison of State of the Art Algorithms. Neurocomputing 2018, 275, 1261–1274. [Google Scholar] [CrossRef] [Green Version]
  42. Chen, C.P.; Liu, Z. Broad Learning System: An Effective and Efficient Incremental Learning System without the Need for Deep Architecture. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 10–24. [Google Scholar] [CrossRef] [PubMed]
  43. Chaudhari, A.; Mulay, P. A Bibliometric Survey on Incremental Clustering Algorithm for Electricity Smart Meter Data Analysis. Iran J. Comput. Sci. 2019, 2, 197–206. [Google Scholar] [CrossRef]
  44. Zubaroğlu, A.; Atalay, V. Data Stream Clustering: A Review. Artif. Intell. Rev. 2021, 54, 1201–1236. [Google Scholar] [CrossRef]
  45. Xu, D.; Tian, Y. A Comprehensive Survey of Clustering Algorithms. Ann. Data Sci. 2015, 2, 165–193. [Google Scholar] [CrossRef] [Green Version]
  46. Du, M.; Ding, S.; Jia, H. Study on Density Peaks Clustering based on K-nearest Neighbors and Principal Component Analysis. Knowl.-Based Syst. 2016, 99, 135–145. [Google Scholar] [CrossRef]
  47. Ghesmoune, M.; Lebbah, M.; Azzag, H. State-of-the-art on Clustering Data Streams. Big Data Anal. 2016, 1, 13. [Google Scholar] [CrossRef] [Green Version]
  48. Barddal, J.P.; Gomes, H.M.; Enembreck, F.; Barthès, J.P. SNCStream+: Extending a High Quality True Anytime Data Stream Clustering Algorithm. Inf. Syst. 2016, 62, 60–73. [Google Scholar] [CrossRef]
  49. Vendramin, L.; Campello, R.J.; Hruschka, E.R. On the Comparison of Relative Clustering Validity Criteria. In Proceedings of the 2009 SIAM International Conference on Data Mining, SIAM, Sparks, NV, USA, 30 April–2 May 2009; pp. 733–744. [Google Scholar]
  50. Chen, C.; Twycross, J.; Garibaldi, J.M. A New Accuracy Measure based on Bounded Relative Error for Time Series Forecasting. PLoS ONE 2017, 12, 1–23. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  51. Lusis, P.; Khalilpour, K.R.; Andrew, L.; Liebman, A. Short-term Residential Load Forecasting: Impact of Calendar Effects and Forecast Granularity. Appl. Energy 2017, 205, 654–669. [Google Scholar] [CrossRef]
Figure 1. An example of electricity load patterns drift. (a) Load patterns of load data from January to July; (bd) load patterns of load data that increase monthly comparing with the former one. All load patterns are obtained by daily load curve clustering.
Figure 1. An example of electricity load patterns drift. (a) Load patterns of load data from January to July; (bd) load patterns of load data that increase monthly comparing with the former one. All load patterns are obtained by daily load curve clustering.
Sensors 21 06466 g001
Figure 2. Diagram of non-incremental clustering algorithm FCCWT [39] for load pattern extraction.
Figure 2. Diagram of non-incremental clustering algorithm FCCWT [39] for load pattern extraction.
Sensors 21 06466 g002
Figure 3. An illustration of the incremental clustering algorithm, including (1) load pattern extraction, (2) load pattern intergradation, and (3) load pattern modification. The inputs are the existing load patterns A 0 and new daily load curves X 1 , and the output is the updated load patterns A 1 .
Figure 3. An illustration of the incremental clustering algorithm, including (1) load pattern extraction, (2) load pattern intergradation, and (3) load pattern modification. The inputs are the existing load patterns A 0 and new daily load curves X 1 , and the output is the updated load patterns A 1 .
Sensors 21 06466 g003
Figure 4. Load pattern comparison between ICluster-PS and FCCWT of one randomly selected electricity consumer when t = 6 . (af) Curves presenting the load patterns based on incremental or non-incremental clustering of [ X 0 , X 1 , , X s ] over s = 1 , 2 , , t .
Figure 4. Load pattern comparison between ICluster-PS and FCCWT of one randomly selected electricity consumer when t = 6 . (af) Curves presenting the load patterns based on incremental or non-incremental clustering of [ X 0 , X 1 , , X s ] over s = 1 , 2 , , t .
Sensors 21 06466 g004
Figure 5. Errors and clustering validity indices comparisons between ICluster-PS and FCCWT of one randomly selected electricity consumer when t = 6 . Each curve contains six values referring to the evaluation of load patterns in Figure 4a–f, respectively.
Figure 5. Errors and clustering validity indices comparisons between ICluster-PS and FCCWT of one randomly selected electricity consumer when t = 6 . Each curve contains six values referring to the evaluation of load patterns in Figure 4a–f, respectively.
Sensors 21 06466 g005
Figure 6. Mean runtime comparison of three methods on the data of 16 commercial consumers in 100 time experiments when t = 9 (nine clusterings from April to December).
Figure 6. Mean runtime comparison of three methods on the data of 16 commercial consumers in 100 time experiments when t = 9 (nine clusterings from April to December).
Sensors 21 06466 g006
Figure 7. Updated load patterns of a residential consumer from April to December ( t = 9 ). Each subfigure shows the load patterns updated by one incremental clustering with one month adding new data based on the load patterns of previous months. Load patterns in blue and solid line style denote existed patterns, those in green and dashed line style denote updated patterns, and others in red and point line style denote new patterns.
Figure 7. Updated load patterns of a residential consumer from April to December ( t = 9 ). Each subfigure shows the load patterns updated by one incremental clustering with one month adding new data based on the load patterns of previous months. Load patterns in blue and solid line style denote existed patterns, those in green and dashed line style denote updated patterns, and others in red and point line style denote new patterns.
Sensors 21 06466 g007
Figure 8. Electricity consumption patterns evolution of the case showed in Figure 7. The first column (left) denotes the load patterns extracted by non-incremental clustering with data from January to March. Other columns, each of which denotes the load patterns updated by incremental clustering based on one month adding new data and the load patterns shown in left column, are corresponding to Figure 7a–i, respectively.
Figure 8. Electricity consumption patterns evolution of the case showed in Figure 7. The first column (left) denotes the load patterns extracted by non-incremental clustering with data from January to March. Other columns, each of which denotes the load patterns updated by incremental clustering based on one month adding new data and the load patterns shown in left column, are corresponding to Figure 7a–i, respectively.
Sensors 21 06466 g008
Table 1. Comparison with existing research works.
Table 1. Comparison with existing research works.
Research WorksYearAlgorithmsUnsupervisedData TypesIncrementalNew Class
Xu et al. [22]2018SVM-basedNoMultipleYesNo
Jiang et al. [24]2019K-means-basedYesload dataNo-
Al-Otaibi et al. [25]2016feature constructionYesload dataNo-
Panapakidis et al. [26]2015K-means-basedYesload dataNo-
Marxer & Purwins [27]2016RF-basedNoimage dataYesYes
Zhang et al. [28]2017density-basedYesIoT dataYesYes
Aggarwal et al. [29]2004K-means-basedYesdata streams--
Kriegel et al. [30]2011density-basedYesdata streams--
Zhang et al. [31]2016Fuzzy C-mean-basedYesdata streams--
Braverman et al. [32]2017K-median-basedYesdata streams-No
Hyde et al. [33]2017density-basedYesdata streamsYes-
Zhang et al. [34]2019density-basedYestrajectory streamsYes-
W. & Berrar [35]2020neural network-basedYesnoisy data--
Proposed work2021K-means-basedYesload dataYesYes
Table 2. Several important mathematical notations.
Table 2. Several important mathematical notations.
NotationsDescription
Xthe set of overall daily load curves
X s the jth set of daily load curves, 0 s t
x s i the ith daily load curve in X s , 1 i N s
dNo. of dimensions of daily load curves
tNo. of coming new daily load curves
N s No. of daily load curves in X s
C s the set of clusters obtained from a load curve clustering on [ X 0 , X 1 , , X s ]
C s i the ith cluster in C s , 1 i K s . The cluster center of C s i is μ s i
n s i No. of daily load curves in C s i
A s the set of cluster centers, also called load patterns, of C s
μ s i the ith load patterns in A s , referring to the cluster center of C s i , 1 i K s
K s No. of load patterns in A s / clusters in C s
P s the set of probabilities of load patterns A s
p s i the probability of μ s i , p s i P s , i = 1 K s p s i = 1
X 0 the set of initial daily load curves, X 0 X
X 1 the first set of new daily load curves, X 1 X
A 0 the set of load patterns obtained from a load curve clustering on X 0
a 1 the set of load patterns obtained from a load curve clustering on X 1
i A 1 the set of load patterns obtained from load pattern intergradtion on [ A 0 , a 1 ]
A 1 the set of updated load patterns obtained from the incremental clustering on [ X 0 , X 1 ]
Table 3. Summary of comparison methods.
Table 3. Summary of comparison methods.
MethodDescriptionIncrementalProbability Strategy (PS)
FCCWTThe method designed for daily load curve clustering [39]nono
K-meansThe common K-means algorithmnono
ICluster-PSThe proposed method designed for daily load curve clusteringyesyes
IClusterThe proposed method without PSyesno
IK-means-PSThe incremental method that adopts K-means with PSyesyes
IK-meansThe incremental method that adopts K-means without PSyesno
HPStreamThe algorithm for high-dimensional data streams [29]yesno
Table 4. Mean clustering performance comparison of the methods.
Table 4. Mean clustering performance comparison of the methods.
Method t = 3 t = 6 t = 9
DB DVI + SWC + DB DVI + SWC + DB DVI + SWC +
FCCWT * 0.90330.12670.5846 0.90660.13160.5854 0.89320.20560.5985
K-means * 1.03330.14870.4778 1.02830.15190.4802 1.00580.22400.5110
ICluster-PS 1.31590.06240.3350 1.25560.07070.3856 1.15990.13220.4199
ICluster 1.33690.05960.3212 1.28210.06720.3457 1.19240.13170.3823
IK-means-PS 1.80560.04030.1129 1.63370.05760.2776 1.40480.08990.3655
IK-means 1.78720.04220.1193 1.61770.05780.2704 1.43900.09170.3435
HPStream 2.27390.07400.3314 1.99130.07810.3478 1.91310.08870.3506
Improvement 26.4%−15.7%1.1% 22.4%−9.5%10.9% 19.4%44.2%19.8%
* : non-incremental method; : the minimum is the optimal; + : the maximum is the optimal.
Table 5. Mean error comparison of the methods.
Table 5. Mean error comparison of the methods.
Method t = 3 t = 6 t = 9
NRMSEMAEsMAPE NRMSEMAEsMAPE NRMSEMAEsMAPE
ICluster-PS 0.043610.07440.0332 0.100820.32690.0784 0.136332.21050.1059
ICluster 0.117228.77950.0907 0.158532.20340.1239 0.182040.90460.1424
IK-means-PS 0.077717.49450.0608 0.152029.96690.1210 0.187040.04400.1470
IK-means 0.116129.61790.0910 0.193938.58830.1533 0.220445.89080.1728
HPStream 0.250961.81340.1888 0.248958.70530.1942 0.265463.75570.2082
Improvement 62.4%66.0%63.5% 48.0%47.3%48.9% 38.2%29.8%38.7%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Jiang, Z.; Lin, R.; Yang, F. An Incremental Clustering Algorithm with Pattern Drift Detection for IoT-Enabled Smart Grid System. Sensors 2021, 21, 6466. https://0-doi-org.brum.beds.ac.uk/10.3390/s21196466

AMA Style

Jiang Z, Lin R, Yang F. An Incremental Clustering Algorithm with Pattern Drift Detection for IoT-Enabled Smart Grid System. Sensors. 2021; 21(19):6466. https://0-doi-org.brum.beds.ac.uk/10.3390/s21196466

Chicago/Turabian Style

Jiang, Zigui, Rongheng Lin, and Fangchun Yang. 2021. "An Incremental Clustering Algorithm with Pattern Drift Detection for IoT-Enabled Smart Grid System" Sensors 21, no. 19: 6466. https://0-doi-org.brum.beds.ac.uk/10.3390/s21196466

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop