Next Article in Journal
Theoretical and Energy Biomass Potential of Heat and Electricity Production in Kosovo
Previous Article in Journal
Evaluation of the Optional Wideband Accuracy of Inductive Current Transformers in Accordance with the Standard IEC 61869-1 Ed.2
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Applying the Geometric Features of Cumulative Sums to the Development of Event Detection

1
Graduate Institute of Automation Technology, Research Center of Energy Conservation for New Generation of Residential, Commercial, and Industrial Sectors, National Taipei University of Technology, Taipei 106344, Taiwan
2
College of Mechanical & Electrical Engineering, National Taipei University of Technology, Taipei 106344, Taiwan
*
Author to whom correspondence should be addressed.
Energies 2023, 16(20), 7207; https://doi.org/10.3390/en16207207
Submission received: 13 September 2023 / Revised: 17 October 2023 / Accepted: 18 October 2023 / Published: 23 October 2023
(This article belongs to the Section A1: Smart Grids and Microgrids)

Abstract

:
As a result of the severe energy shortage and the greenhouse effect, experts worldwide have been devoted to solving energy management problems. Smart grid construction is an essential technology for mastering energy allocation. Smart grids enable end users to adjust their energy consumption via incentive measures, reduce the frequency of power supply instability, and improve energy efficiency. Non-intrusive load monitoring (NILM) is a vital technology for smart grid construction. One of the fundamental steps of NILM is event detection. Proper event detection can increase the accuracy of load identification. Among traditional methods, especially the event detection method developed with the CUSUM method, although the accuracy is reasonable, the precision, recall, and f1 score are not relatively better. Thus, there is an opportunity to improve the performance of CUSUM. Additionally, many studies focus on the step-like event, but the long-transient event is often overlooked in event detection. Therefore, in this study, it was observed that when the transient current deviates from the steady-state current, the transient current can be regarded as a key indicator for event detection. With this observation, a method is proposed to convert the root mean square (RMS) current into a cumulative sum (CUSUM) diagram method and identify turning points representing events from the CUSUM geometry. Once the slope of the turning point has been determined, event detection is achieved. Compared with traditional methods, the proposed method is easy to implement, its recognition rate can reach around 98%, and the window length is reduced from 5 s to 3 s.

1. Introduction

China’s power rationing policy in 2021 influenced the operation of numerous domestic enterprises, and multiple countries worldwide have faced an energy crisis because of the increasing price of natural gas. Power supply stability is a critical problem in maintaining the balance between the supply and demand for power. To maintain power supply stability, numerous experts have actively promoted the demand response policy, which is currently implemented by numerous countries worldwide to achieve power supply stability. Proposed in the 1980s, non-intrusive load monitoring (NILM) is a vital technology used in demand response [1]. The purpose of NILM is to identify individual loads by analyzing aggregate power characteristics. NILM enables the collection of power consumption data for electrical appliances operated by the end user. In the case of an insufficient spinning reserve, NILM technology can be used in conjunction with demand response measures to achieve a situation mutually beneficial to power supply and demand balance. Figure 1 depicts the typical architecture of an NILM system. Event detection is used to conduct a complete NILM procedure. Because numerous experts have been devoted to NILM research, many load characteristics, such as I r m s [2], the V-I trajectory [3], grayscale images [4,5], and the first-order derivative [6] have been developed, and novel event detection techniques have been proposed.
In this study, an event detector was developed using the geometric features of RMS current variations in cumulative sums (CUSUMs). The following are the main contributions of this study.
  • VERSATILITY: Some research results are only verified by using a single dataset [7,8]. Because the results are not objective, it is difficult to prove that the proposed method could be applied to other datasets. Therefore, the proposed method was validated using two public datasets, namely the Controlled On/Off Loads Library (COOLL) [9] and Plug Load Appliance Identification Dataset (PLAID) [10], and a private dataset. In terms of versatility, the proposed method can be easily applied to other datasets.
  • SIMPLICITY: The traditional CUSUM methods need to repeat the detection of data several times, which requires nest structures [11] or the assistance of hardware equipment [12] to confirm the correctness of the identification results. The proposed method does not require complex mathematical calculations because the fundamental slope and numerical comparison concepts can be easily implemented.
  • THE ENHANCEMENT OF ACCURACY AND EFFICIENCY: The accuracy needs to be improved in the literature [11,12,13] that used CUSUM for event detection. In addition, the window length of each event was also shortened from 5 s to 3 s, and the impact of sampling frequency on event detection was also investigated. Therefore, to perform effective identification and reduce misjudgments under various conditions such as steady state, transient, or noise during the event detection process, the CUSUM geometric features as the basis were used by the proposed method for event detection, thus improving the accuracy and efficiency of identification.
This paper is organized as follows. Section 2 describes related studies. Section 3 presents the data preprocessing and geometry of the CUSUM plots. Section 4 describes the proposed event detection algorithm. The evaluation metrics used in this article are shown in Section 5. Section 6 compares the results of various methods via validation against the COOLL dataset, the PLAID dataset, and a private dataset. Lastly, Section 7 concludes the study.

2. Related Studies

According to the works of the literature, numerous novel methods for NILM event detection have been proposed. These methods can be classified into machine learning (ML), numerical, and statistical probability methods.

2.1. Event Detection Methods

As computational speeds have increased, ML has become more prevalent in various research fields. Density-based spatial clustering of applications with noise (DBSCAN) is an ML algorithm used for event detection [7]. In this study, time-series data, including steady-state and transient-state data, were classified to determine whether an event occurred. However, to use DBSCAN, the parameters Eps (area density) and MinPts (number of points in the neighborhood) must be set differently for each dataset. In [4,14,15], convolutional neural network pattern recognition was used for event detection. However, neural networks require numerous images for training. In [8,16], a multi-dimensional BIRCH clustering (DNB) technique and shapelet-based event detection were proposed to classify NILM events. But the evaluation metrics show that the results can still be improved. Other ML algorithms—such as k-means clustering [15] and the principal component analysis of active, reactive, and distortion approaches proposed in [17]—have also been used for NILM event detection. Generally, the benefits of ML for event detection could be achieved possibly without the need to preset thresholds.
In [18], a method called frequency-invariant transformation of periodic signals was proposed for optimizing signals for event detection. Its purpose is to separate the aggregated current and regulate it into its individual periods by using voltage as a reference, but the signal after conversion may still be distorted in some cases [8]. In other methods, active power changes are examined when the system is activated. As reported in [19,20,21], ∆P in Equation (1) can be used to determine the amount of change in active power:
Δ P = P i P i 1
where P i indicates the active power value at time t and P i 1 indicates active power at time t − 1. ∆P is thus a method used to calculate the difference in active power for a given window before versus after an event. The selection of the window duration and threshold affects the accuracy of event detection. In [5], an event judgment method based on derivative analysis was proposed. This method describes changes in the RMS current in terms of derivatives, which represent the occurrence of an event. However, this method could treat noise as an event for noise derivatives. In [22], the turn-on events are detected by applying an adaptive threshold. One of the advantages is that the spike could be filtered out by the proposed method, but the result is not better than [6]. In [23], the threshold boundary is between 10 W and 60 W. This method still needs to be improved in product diversity. Specifically, all methods mentioned in this paragraph can be categorized as numerical methods.
CUSUM is a statistical probability method used for NILM event detection. In [11], an improved CUSUM method added bootstrapping algorithm was proposed for detecting likely events using confidence levels rather than by setting thresholds. However, in this approach, each action requires numerous resampling instances. In [12], a method combining Kalman filtering with an improved CUSUM algorithm was proposed. To increase the accuracy of event detection, especially during AC start-up, the authors optimized the values of the upper and lower limits by using adaptive factors. This process means that the judgment criterion of determining event occurrence is relatively flexible without being affected by fixed values, thereby increasing the accuracy.
In summary, the methods discussed above still have their respective disadvantages. ML methods need substantial computational time and hardware resources, as well as require numerous pictures to achieve neural network training. Regarding numerical methods, the literature [19,20,21] that only uses power changes shown in Equation (1) as the basis for whether an event occurs is insufficient because the power value will vary when noise appears. For the probability method, the research results of past literature show that the accuracy of event detection using CUSUM was around 91%. Although CUSUM is a traditional method, it still has room for improvement. Additionally, most methods can detect step events but perform poorly in long transient events [12,18,22,24,25]. Therefore, an event detection method was proposed, applying geometric features of cumulative sums. The judgment conditions of the proposed event detection method not only consider the states generated during the signal transmission process (such as steady state, transient state, long transient state, noise, etc.) to improve the detection accuracy but also have the advantageous characteristics of not requiring a large number of hardware resources to complete event detection.

2.2. Event Detection Methods with CUSUMs

Several CUSUM-based event detection approaches have been proposed [11,12,13]. As shown in Table 1, for event detection in any database, increasing the degree of accuracy is difficult if only a pure CUSUM method is used. In other words, CUSUMs must be improved to enhance their detection capability.
For example, the authors in [12] mentioned that “In the traditional CUSUM algorithm, the limit value is fixed during iteration...and fixed parameters in Formula (2) will fail to detect the whole long transient time in the special event such as the AC start-up”.
  g i + = 0 , g i 1 + + s i s i 1 β ,     g 0 + = 0     g i = 0 , g i 1 s i s i 1 β ,   g 0 = 0  
where g i + and g i are the positive and negative CUSUM values and β is the lower event limit”.
In Equation (2), β is a fixed value that restricts both g i + and g i . Therefore, the key to enhancing accuracy is to use an adaptive judgment value rather than a fixed value. A similar concept was discussed in [13,26].
Many mathematical approaches have been proposed for increasing the accuracy of NILM event detection. In this study, a mathematical approach based on the geometric features of CUSUMs was proposed. In the following section, the proposed approach is described and analyzed in detail.

3. Data Preprocessing and Geometry of CUSUM Charts

In NILM, event detection may influence the correctness of load identification. In this section, the proposed event detection algorithm is discussed in detail.

3.1. AC Transient Current Behavior of Different Appliances

Most appliances are equipped with electronic components whose purpose is to save energy. When an appliance is activated or deactivated, it exhibits a unique instantaneous transient current. Figure 2 shows the AC waveforms of four appliances. The transient current in each appliance is circled by a dotted red line. Although each appliance has distinct transient current characteristics, these characteristics are collectively referred to as transition behavior. This phenomenon also represents the occurrence of an event.

3.2. The Behavior of RMS Current in Different Appliances

If the power of the direct voltage, which is applied to the same resistance as the alternative voltage, is the same as the average power of the alternative voltage, the direct current equivalent voltage is the RMS value of the alternative voltage. The following is the mathematical formula for RMS voltage value if N alternative voltage signals are sampled in one cycle:
v r m s = 1 N i = 1 N v i 2
where v i represents i t h alternative voltage value.
To visualize the behavior of the current, the alternative current (AC) value (Figure 2) can be converted into RMS current (Figure 3). As shown by the RMS current curve, the value of the current jumps from the first steady state to the second steady state. This process was also described by using a first-order derivative in [6] to determine whether an event occurred.

3.3. CUSUM Plot of RMS Current

CUSUM is a time-series data analysis method proposed by E. S. Page of Cambridge University in 1954. This method has been widely used to detect abnormal data points in relatively stable data series. In this study, CUSUM geometry was used as the basis for event detection. As shown in Figure 4, which depicts CUSUM charts converted from Figure 3, when the time series data are abnormal, a turning point is observed. Therefore, the RMS current value can be converted into a CUSUM graph for event detection.

3.4. Characteristics of CUSUM Plots under Various Conditions

(1)
Step-like Event
Figure 5b,d depicts CUSUM plots converted from RMS current plots (a) and (c). As shown in Figure 5a,b, when the appliance is energized, the turning point is at the 18th point on the RMS current and CUSUM charts. As shown in Figure 5c,d, when the appliance is de-energized, the turning point is at the 13th point on the RMS current and CUSUM charts. Because this turning point is the CUSUM extreme point, the turning point depicted on the CUSUM chart represents event occurrence.
(2)
Long Transient Event
For some appliances, the RMS current values do not all exhibit a step-like state after activation. Figure 6a depicts a post-activation inrush current, marked by a dotted red line; after this, the current returns to a value close to that before the appliance was activated. The current then slowly increases until the next steady state. In Figure 6b, which is a CUSUM chart of Figure 6a, the red circle highlights a turning point that represents a state change. Therefore, regardless of whether the event is a step-like or long transient event, the judgment method used to search for the turning point is the same in both CUSUM plots.
(3)
Transient Current State
Following an event, the operating current of some household appliances tends to reach a steady state by either slowly increasing, as shown in Figure 7a, or slowly decreasing, as shown in Figure 7c. This current behavior closely resembles a quadratic curve on a CUSUM plot, as shown in Figure 7b,d. Regardless of whether the current increases or decreases, an extreme point exists on both CUSUM plots. This common point is not only a CUSUM geometric feature but also a key point for event detection.
(4)
Noise
As shown in Figure 8, because noise randomly appears in the circuit, the influence of noise on event detection must not be neglected. In [17], a Kalman filter and improved CUSUM algorithm were used to filter noise and thus prevent event detection misjudgment. However, in the event detection method proposed in [7], noise is preserved without any special preprocessing. In the following section, the method used to avoid misjudging noise as an event is described in detail.

4. Proposed Event Detection Algorithm

This section first introduces existing mathematical methods and then discusses the role of each part of the proposed event detection technique in detail.

4.1. Major Mathematical Methods

  • CUSUM
For successive samples x 1 , x 2 , x 3 ,…, x n , if the target value of the average number of processes in the controlled state is μ 0 , the CUSUM is calculated as follows:
μ 0 = i = 1 n x i n
C 1 = ( x 1 μ 0 ) C 2 = ( x 2 μ 0 ) + C 1 C 3 = ( x 3 μ 0 ) + C 2
C n = i = 1 n ( x i μ 0 ) = ( x n μ 0 ) + C n 1
Once the CUSUMs C 1 , C 2 , C 3 , …, C n are calculated, the CUSUM chart or plot can be completed, where the sample number i is the horizontal axis and CUSUM C i (i = 1, 2, 3, …, n) is the vertical axis.
  • Mathematical formulas for event detection
When a step-like or long transient event occurs, the CUSUM curve is similar to a quadratic curve. Because the extreme point determines the location of the event, detecting this extreme point is a crucial step. The following judgment formula is used to detect the extreme point.
In a CUSUM set in which C i { C 1 ,   C 2 ,   C 3 , …,   C n }, if an energizing event occurs and C i is the turning point, C i must satisfy the following constraint:
( C i < C i m ) C i < C i + m ,   w h e r e   m N .
In contrast, if a de-energizing event occurs and C i is the turning point, C i must satisfy the following constraint:
( C i > C i + m ) C i > C i m ,   w h e r e   m N .
These two constraints are derived from the characteristics of CUSUM geometric figures by using the COOLL and PLAID databases; more than 4500 events and non-events were generated from these two databases.

4.2. Event Detection Flow of the Proposed Method

Figure 9 depicts the proposed event detection method, with the CUSUM plot as the event detection object. The following is a detailed description of each step and the corresponding mathematical formula. Meanwhile, the pseudo-code is also listed for the discussion of computational complexity.
(1)
The Explanation of Pseudo-codes and Time Complexity
  • Algorithm 1 is the main body of the program architecture. It is responsible for data preprocessing and execution of proposed methods.
Algorithm 1: Main Program
1.       while (true)
2.           Input: voltage_ac, current_ac;
3.           i_rms = create_rms_current(voltage_ac, current_ac);                       // Algorithm 2
4.           noise_pt = noise(i_rms);                                                                      // Algorithm 3
5.           if (noise_pt == 0)
6.               if (i_rms(:) > 10 3 )
7.                   Irms_M ← max(i_rms(:));
8.                   Irms_m ← min(i_rms(:));
9.                   if (((Irms_M - Irms_m) / Irms_m) > i r a t i o )
10.                       i_rms_cs ← CUSUM(i_rms);                                                  // Algorithm 4
11.                       for cs_x = 2: i _ r m s _ c s x m a x 1                                               // search extreme points
12.                           if (i_rms_cs(cs_x) > i_rms_cs(cs_x − 1)) and
13.       (i_rms_cs(cs_x)> i_rms_cs(cs_x+1))
14.                               max_l ← i _ r m s _ c s ( c s _ x ) i _ r m s _ c s ( c s _ x 1 )
15.                               max_r ← i _ r m s _ c s ( c s _ x ) i _ r m s _ c s ( c s _ x + 1 )
16.                           end
17.                           if (i_rms_cs(cs_x) < i_rms_cs(cs_x − 1)) and
18.       (i_rms_cs(cs_x) < i_rms_cs(cs_x+1))
19.                               min_l ← i _ r m s _ c s ( c s _ x 1 ) i _ r m s _ c s ( c s _ x )
20.                               min_r ← i _ r m s _ c s ( c s _ x + 1 ) i _ r m s _ c s ( c s _ x )
21.                           end
22.                       end
23.       if ((max_l > S l o p e t h ) or (max_r > S l o p e t h ) or                                              // judge event or nonevent
24.                               (max_l > S l o p e t h ) or ( max_r > S l o p e t h ))
25.                               print(“An event occures”);
26.                       else
27.                               print(“Non-event occures”)
28.                       end
29.               end
30.           end
31.     end
32. end
Steps 2 to 4 and steps 7 to 8 take constant time to read. The total complexity time is 5*O(1). Step 11 to 22 takes O(n) and 2*O(1) from step 23 to 27. So, the overall time complexity of the algorithm is 7*O(1) + O(n).
  • In Algorithm 2, the AC signal is converted into the RMS current value.
Algorithm 2: Create RMS Current
1.       Input: voltage(:), current(:)
2.       for i = 1: v o l t a g e x m a x
3.           if (voltage(i) < 0 and voltage(i+1) >= 0)
4.            data_i(i,:) ← current(:) // start to record sampling points for every cycle
5.           end
6.       end
7.       for i = 1: d a t a _ i x m a x
8.         i_rms(i) ← rms(data_i(i,:))
9.       end
10.       return (i_rms)
Step 1 takes constant time to read voltage and current, 2*O(1). In steps 2 to 6, the for-loop performs the arithmetic operation to calculate the consecutive samples with the complexity of O(n). In steps 7 to 9, another for-loop performs the arithmetic operation to calculate the consecutive samples with the complexity of O(m). The overall time complexity of the algorithm is 2*O(1) + O(m)+ O(n), where m > n.
  • In Algorithm 3, it is shown how noise is ruled out.
Algorithm 3: Noise
1.   Input: i_rms
2.   for i_cnt = 1: i _ r m s y m a x
3.        i ( i _ c n t ) i i c n t + 1 i i c n t
4.   end
5. // 1 < m < t p n o k < t p n o < t p n o + k < p < n
6.   for cnt = m: (tp_no-k)
7.       current1← current1 + i c n t
8.   end
9.   for cnt = (tp_no+k): p
10.       current2← current2 + i c n t
11. end
12. Δ i c u r r e n t 1 c u r r e n t 2
13. if ( i m a x > i t h and Δ i < i t h )
14.       noise_ptr ← 1
15. else
16.       noise_ptr ← 0
17. end
18. return (noise_ptr)
Step 1 takes constant time, O(1) to read voltage and current. In steps 2 to 4, 6 to 8, and 9 to 11, the for-loop performs the arithmetic operation three times to calculate the consecutive samples with the complexity of 3*O(n). Step 12 takes constant time to read i , O(1). The same procedure is conducted from steps 13 to 17, O(1). So, the overall time complexity of the algorithm is 3*O(1) + 3*O(n).
  • In Algorithm 4, CUSUM is generated by RMS current.
Algorithm 4: CUSUM
1.    Input: rms-current
2.    u_mean = mean(rms-current)
3.    temp = 0
4.    for i = 1: r m s c u r r e n t x m a x
5.      temp ← temp + rms-current(i)-u_mean
6.      cusums(i) ← temp
7.    end
8.    return (cusums)
Steps 1 and 3 take constant time, O(1) to read rms-current and temp. Step 2 employs the average of numbers with time complex O(n). In steps 4 to 7, the for-loop performs the arithmetic operation to calculate the consecutive samples with the complexity of O(n). The Overall time complexity of the algorithm is O(1) + 2*O(n)
The time complexity of the four algorithms are 7*O(1) + O(n) + 2*O(1) + O(n) + O(m) + 3*O(1) + 3*O(n) + O(1) + 2*O(n). The major contributors in this time complexity calculations are the RMS current and the loops where it calculates the difference. Because m is much greater than n and 4, the time complexity of the proposed method is dominated by O(m).
(2)
Noise removal (step A1)
Noise is a momentary signal. As shown in Figure 10a, after a noise signal disappears, the current returns to its original value before the emergence of the noise. Therefore, noise events should not be neglected and need to be removed appropriately.
Figure 10b depicts the first-order derivative generated from Figure 10a. This derivative provides two essential clues for judging a noise event. The first clue is the presence of turning points circled by dotted green lines. The second clue is that the locations of the current value near the turning points denoted by solid red lines are almost the same. The two constraints used to exclude a noise event are sequentially defined as follows.
To define the first constraint, assume that RMS current is defined as i i { i 1 , i 2 , i 3 , ... ,   i n } and that its corresponding first-order derivative is i k { i 1 , i 2 ,   i 3 ,…,   i n 1 }. The first constraint used to define noise is
i k i t h i k + 1 i t h ,   w h e r e   1 k n 1 .
To define the second constraint, assume that the location of the RMS current value near the turning points is almost constant:
Δ i = i = m i = t p n o 1 i i i = t p n o + 1 i = p i i i t h ,
where 1 < m < t p _ n o < p < n , and t p _ n o is the time point at which the turning point occurs. For example, the values of tp_no are 14 and 15 in the example shown in Figure 10b. The time number of sampling points around the turning point are 8, 9, 10, 11, and 12 for m and 17, 18, 19, 20, and 21 for p. When the two constraints are met (i.e., i k i t h , i k + 1 i t h , and Δ i     i t h ), noise is detected, and processing is stopped until the next step.
Because the accuracy of event detection is affected by noise, instead of eliminating noise, the proposed method prevents noise from being misclassified as an event.
(3)
Confirming the Variety of Operating Current (step A2)
Although the change in current of low-power appliances (e.g., light bulbs) is negligible in the context of demand response, the magnitude of this current must nonetheless be confirmed because this small-magnitude current still represents the energized state of an appliance. In Figure 11a, sliding windows are illustrated by red and green rectangles. The sliding window duration and time interval are assumed to be 15 and 5 s, respectively. As shown in Figure 11b, the current denoted by the red rectangle is the first event, and the distribution is smaller than 10 3 A.
Because this situation is not ruled out by Equation (10), a turning point, shown as a dotted line on the CUSUM chart in Figure 11c, can be observed, and this point represents the occurrence of an event. In this case, a trace current can be observed from 0 to 20 s, and its distribution does not represent event occurrence. To determine whether all acquired current values are suitable for event detection, a threshold must be set. It can be described by Equation (10).
I i   I t h
where I i is the set of sampled values within the range of a sliding window and 1  i  M. M is the total number of points in a cycle.
(4)
Confirming the Operation Status (step A3)
During operation, the current value does not remain constant. Figure 12a depicts the RMS current waveform of an energized appliance, and it appears to be flat. However, according to the current scale and current values shown in Figure 12b, the current is not the same at each time point. As illustrated in Figure 12c, when the RMS current value is converted into a CUSUM, two turning points in red circles are observed. Because the selected current is already in a steady state, these points are false events.
In Figure 12b, I m a x and I m i n are the maximum and minimum values, respectively, of RMS current in the sliding window. As indicated earlier, Equation (11) is used to exclude the following condition:
Δ I = I m a x I m i n I m a x I r a t i o .
Therefore, according to Equation (11), a steady state can be confirmed in advance, and the occurrence of a non-event can also be simultaneously excluded.
(5)
The Operation of CUSUM (step A4)
Before the operation of CUSUM, in order to obtain μ 0 , the first step is to calculate the average of all data within the range of sliding window by Equation (4). Then, a CUSUM set will be obtained by Equation (5).
(6)
Turning point selection of CUSUM (step A5)
The RMS current that passes the three aforementioned restrictions (A1–A3) does not belong to any of the following three categories: noise, trace current, and fluctuating load current. In this step, because the local extremum denotes the turning point and represents event occurrence, Equations (6) and (7) are used to determine the local extremum. However, the local extremum can be simply obtained via comparison, and the RMS current is then converted into a CUSUM graph. As shown in Figure 13, the two local extreme points satisfy Equations (6) and (7), respectively, indicating the occurrence of two events. In summary, this simple and intuitive method relies on the geometric features of CUSUMs.
(7)
Event Judgment (step A6)
According to Figure 14a,b, not all CUSUM graphs have only one extremum. Although the two turning points in the graph are continuous, one represents an event, and the other does not. In Figure 14b, the first turning point, highlighted by a green circle, indicates an energizing event, which is shown by a green ellipse in Figure 14a. Although another local maximum is observed around the green rectangle in Figure 14b, this process is merely a transient process, shown as a green rectangle in Figure 14a. This behavior is readily observed in Figure 7. Therefore, to determine whether an event occurs, a criterion must be set by using Equation (12) for the flowchart displayed in Figure 9.
The slope of the turning point, denoted as S l o p e T u r n i n g P o i n t , must satisfy the following threshold:
S l o p e T u r n i n g P o i n t S l o p e t h .
Figure 15a depicts another case of consecutive events. The event shown by a red circle represents the first event, which is an energizing event. The event indicated by a green circle represents the second event, which is a de-energizing event. The CUSUM plot shows two turning points, which are regarded as two consecutive events because both of them meet the restriction of Equation (12). Although the proposed event detection method can identify multiple events, it focuses on whether any event has already occurred. This topic was similarly discussed in [6], in which a certain time threshold T t h was set to eliminate the remaining events, which were treated as false events.
In Equation (12), S l o p e T u r n i n g P o i n t is an essential parameter. As illustrated in Figure 16a,b, because each turning point is a local extremum, each turning point has two points adjacent to it (indicated by the red arrows). Therefore, each turning point and its two adjacent points generate two slopes, with the larger slope being selected. If the value of this slope exceeds the threshold of Equation (12), an event is concluded to have occurred. This process confirms event occurrence.
According to the aforementioned assumption, once the maximum slope is calculated within the window length, the other slope value is eliminated, and no certain time threshold is set.
So far, the proposed flow of event detection and time complexity were fully described. Before the CUSUM plot is generated for analysis, the detected RMS current must satisfy three constraints. Because not all turning points on the CUSUM plot represent events, once the extreme point search process in the CUSUM plot was completed, the slope of the extreme point must meet the criteria presented in Equation (12) to correctly detect a reasonable event.

5. Evaluation Metrics

Accuracy, Precision, Recall, and F 1   s c o r e are indicators that are often used to evaluate the accuracy of system performance. The calculation formulas for these four types of indicators are as follows:
A c c u r a c y = T P + T N T P + T N + F P + F N  
P r e c i s i o n = T P T P + F P  
R e c a l l = T P T P + F N  
F 1 = 2 × R e c a l l × P r e c i s i o n R e c a l l + P r e c i s i o n  
where TP is true positive, TN is true negative, FP is false positive, and FN is false negative. Accuracy is the precision rate, which represents the ability of the model to correctly judge the authenticity in all situations. Precision is the accuracy rate, which represents the ability of the model to distinguish real events. Recall is the recall rate, which represents the ability of the model to detect real events. F 1 is a comprehensive evaluation index, which represents the comprehensive ability of the model to detect and identify real events. In this study, the performance of the proposed algorithm is also evaluated according to these four types of indicators after event detection.

6. Experimental Results

To verify the performance of the proposed method, a private dataset (2 kHz sampling frequency) and two public datasets (COOLL/100 kHz sampling frequency and PLAID/30 kHz sampling frequency) were used in the experiment. The power of appliances is between 1 W and 2700 W. Table 2 lists the parameters of the proposed method and other existing methods. Table 3 presents the test results obtained using the proposed method and other methods with the two public datasets. Table 4 shows the experimental results of a simulated case involving common household appliances. All experiments were conducted on MATLAB, and the results of each event detection will be verified based on the actual status, including events and non-events, to confirm the correctness of the event detection results.

6.1. The Selection of Slope Threshold

To determine the occurrence of an event, the slope threshold for the turning points needs to be defined. Therefore, to objectively obtain the suitable threshold, an experiment to obtain four metrics values (accuracy, precision, recall, and f1 score) via different slopes was conducted on the COOLL dataset. The results are shown in Figure 17.
If the values of these four evaluation indicators differ little from each other, this indicates that the event detection results have high confidence. Therefore, the minimum value of mean square error (MSE) shown in Equation (17) is used to obtain the appropriate value for the slope threshold setting. After calculation, the distribution of MSE values is shown in Figure 18. The minimum MSE value is 0.1742, and the corresponding slope value is 0.06. In other words, 0.06 is the best option for the slope threshold definition to judge whether an event occurs.
  Y = ( A c c u r a c y 1 ) 2 + ( P r e c i s i o n 1 ) 2 + ( R e c a l l 1 ) 2 +   ( f 1 1 ) 2

6.2. Metrics Comparison for Various Methods

Several CUSUM-based event detection methods have been proposed in [11,12,13,27]. However, in this study, for the sake of brevity, only studies reporting high accuracy were selected for comparison. Table 2 lists the parameters and methods used in each study. For a fair comparison, each method uses the COOLL and PLAID datasets as test sources.
  • For the experiment using parameters in [7], the evaluation index (precision) shows that non-events predicted to be events are less (90~94%), but (recall) shows that events predicted to be non-events are more (57~72%). Finally, the f1 score shows that the experimental results of the two public datasets are very different (71~83%). Therefore, it can be seen that the parameters in [7] could not be applied to different datasets.
  • For the experiment implemented by the method in [11], the evaluation index (precision) shows that non-events predicted to be events are more (67~85%), and the index (recall) shows that events predicted to be non-events are more (76~78%) as well. Finally, the f1 score is around 80%. Thus, the method [11] is not less affected by different datasets.
  • For the proposed method, the evaluation index (precision) shows that the number of non-events being predicted as events is low (94~98%), and the index (recall) shows that the number of events being predicted as non-events is also low (around 97%). Finally, the f1 score shows that the experimental results conducted by the two datasets have a small difference (96~98%). Hence, the parameters of the proposed method are also applicable to different datasets.
  • The slope used to determine whether an event occurred is slightly smaller than the threshold, resulting in misjudgment (about 1%).
  • The appliances with power less than 10 W are also easily misjudged (around 1~2%). In order to improve the accuracy of judgment, the proposed method is more suitable for event detection of electrical appliances with power above 10 W.
In summary, the metrics comparison for the proposed method (slope threshold = 0.06) and other existing methods are listed in Table 3. It shows that the proposed method had better performance than it did in [7,11].

6.3. The Effect of Different Sampling Frequency on Event Detection

In this section, the comparison of the AC current measured by the two electrical appliances with different sampling rates is shown in Table 4. Each picture was measured for 6 min with power on at the first minute and power off at the fifth minute. The captured current for these two electrical appliances starts to distort severely when the sampling frequency is reduced to 20 s/s, implying that the resolution of the sampling rate must be greater than 20 s/s. However, when the alternative currents are converted to RMS currents, the proposed method is conducted (window length 3 s, interval 1.5 s), and three events, in the order of an event, a non-event, and an event, should be detected (Figure 19). To demonstrate the extent of the distortion, the RMS current values of non-event were analyzed with Formula (11) (( I m a x I m i n )/ I m a x ), resulting in the distribution of steady-state current changing with the sampling frequency, which is shown in Figure 20. The decrease in sampling points causes the distortion of the original signal, leading to the occurrence of a false event. According to the results of this comparison (Figure 20), a sampling frequency of 2 Ks/s should be feasible but still needs more data to support it.
Therefore, if the proposed method is used for event detection, it is recommended that the data sampling frequency must be greater than or equal to 2 Ks/s, which could result in less distortion of the captured data.

6.4. Case Study

In order to verify whether the sampling rate (2 Ks/s) and slope threshold (0.06) for judging events can be applied in the proposed method, a mixed-load scenario is simulated. Several electrical switch cases were used to illustrate the process of the proposed event detector. Figure 21 shows the sequence of events. In this experiment, four appliances—a refrigerator, a cooker, a hairdryer, and an oven—were considered for energizing and de-energizing event detection. These electrical appliances were first activated and then deactivated in sequence. The experiment lasted approximately 90 s. The data were collected at the laboratory at the standard voltage of 120 V, a frequency of 60 Hz with a sampling frequency of 2 kHz, and then were fed to the event detector at an interval of 1.5 s with a sliding window of 3 s. Practical examples were used to demonstrate how the CUSUM geometry of RMS current was used in the proposed algorithm.
When the window length and interval were set to 3 and 1.5 s, respectively, 8 events and 41 non-events were generated within 90 s. As mentioned in Section 4.2, after every 3 s, the RMS current was converted into a CUSUM plot, and the location at which the current changed indicated a turning point on the CUSUM plot. Therefore, the slope and maximum value of the turning point were used to judge whether an event had occurred. As detailed in Table 5, the slope of the turning point is described as step A5 in Figure 9. In this case, because all slope values were greater than the 0.06 threshold, eight events were correctly identified.
Not all non-event types were present in every process of event detection. Only two types of non-events (listed in Table 6) occurred in the test case, although 41 non-events were detected. The first non-event did not pass step A5. Therefore, it was judged as a non-event, although it had passed steps A1–A4. The last non-event appeared to be in a stable state. Zooming into its graph revealed sine wave behavior. At a window length of 3 s, the maximum I r m s was 6.8782 A, whereas the minimum I r m s was 6.7705 A. After step A3 was used in the calculation process, the criterion of being less than 3% was not satisfied. Therefore, the event was correctly classified as a non-event.
After the event detection process was completed by the proposed event detection algorithm, 8 events and 41 non-events were successfully detected in the test case, as expected. So far, CUSUM geometric figures were successfully used as the basis for event detection.
In several event detection methods involving CUSUMs, only the judgment method of the dataset turning point has been enhanced. For example, in [11], the judgment method was changed to an adaptive method to improve the accuracy of event detection, but the mathematical method remained relatively complex. However, the event detection algorithm proposed in this study can achieve the same goal by using only a slope. In addition, for a captured current sequence, the proposed CUSUM method can be used to determine whether this sequence represents a steady state, a gradually increasing current, or a gradually decreasing current. The algorithm also provides an identification method for noise processing, thus increasing the integrity and accuracy of the event detector. Those differ from other studies that have relied on CUSUMs for event detection.

7. Conclusions

In this study, an event detection method based on the geometric features of CUSUMs was proposed. Analysis of step-like, long-transient, increasing-current, and decreasing-current events can aid in determining whether an event occurs. When an event occurs, the RMS value of the transient current can be converted into a CUSUM graph with time series, and the turning point of the graph can be used as the basis for event detection. In this study, accuracy comparisons were conducted using the COOLL and PLAID datasets. The experimental results indicated that the proposed method is more accurate than the ML method [7] and traditional CUSUM methods [11], and the method can be performed on appliances with power between 10 W and 2700 W, which is better than [7] (above 15 W) and [11] (60 W~1800 W). The window length for each event detection is also shortened to 3 s, which is faster than 5 s in [7] (not available in [11]). At the same time, a sampling frequency of 2 Ks/s and the criterion (0.06) to judge an event are also used to detect events on private electrical appliances, and a very high success detection rate was obtained. In recent years, most household appliances have been equipped with specialized electronic components designed to save energy, which increases the complexity of the current waveform. Therefore, to prevent misjudgment of event detection caused by current diversity, the detection method must be continuously improved.

Author Contributions

Conceptualization, M.-S.T.; Methodology, Y.-K.L. All authors have read and agreed to the published version of the manuscript.

Funding

This paper was supported in part by the Ministry of Science and Technology under Grant No. MOST 110-3116-F-006-001- and MOST 110-2221-E-027-055- and the “Research Center of Energy Conservation for New Generation of Residential, Commercial, and Industrial Sectors” from The Featured Areas Research Center Program within the framework of the Higher Education Sprout Project by the Ministry of Education (MOE) in Taiwan.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hart, G.W. Nonintrusive appliance load monitoring. Proc. IEEE 1992, 80, 1870–1891. [Google Scholar] [CrossRef]
  2. Lin, Y.H.; Tsai, M.S. Development of an Improved Time-Frequency Analysis-Based Nonintrusive Load Monitor for Load Demand Identification. IEEE Trans. Instrum. Meas. 2013, 63, 1470–1483. [Google Scholar] [CrossRef]
  3. Yu, M.; Wang, B.; Lu, L.; Bao, Z.; Qi, D. Non-intrusive adaptive load identification based on Siamese network. IEEE Access 2022, 10, 11564–11573. [Google Scholar] [CrossRef]
  4. Tsai, M.S.; Li, Y.H.; Lin, Y.K. An Event Detection Method Combining Grayscale Images and Convolutional Neural Networks for Non-intrusive Load Monitoring. In Proceedings of the IEEE International Conference on Recent Advances in Systems Science and Engineering (RASSE) 2022, Tainan, Taiwan, 2–4 November 2022. [Google Scholar]
  5. Wu, X.; Jiao, D.; Du, Y. Automatic Implementation of a Self-Adaption Non-Intrusive Load Monitoring Method Based on the Convolutional Neural Network. Processes 2020, 8, 704. [Google Scholar] [CrossRef]
  6. Lu, M.; Li, Z. A hybrid event detection approach for non-intrusive load monitoring. IEEE Trans. Smart Grid 2020, 11, 528–540. [Google Scholar] [CrossRef]
  7. Zheng, Z.; Chen, H.; Luo, X. A supervised event-based non-intrusive load monitoring for non-linear appliances. Sustainability 2018, 10, 1001. [Google Scholar] [CrossRef]
  8. Li, G.T. A Development of Non-Intrusive Load Identification System Based on Gaussian Mixture Model using Steady Current Waveform Synthesis. Master’s Thesis, National Taipei University of Technology, Taipei, Taiwan, July 2021. [Google Scholar]
  9. Picon, T.; Meziane, M.N.; Ravier, P.; Lamarque, G.; Novello, C.; Bunetel, J.C.L. COOLL: Controlled On/Off Loads Library, a Public Dataset of High-Sampled Electrical Signals for Appliance Identification. arXiv 2016, arXiv:1611.05803. [Google Scholar]
  10. Gao, J.; Giri, S.; Kara, E.C.; Bergés, M. PLAID: A public dataset of high-resolution electrical appliance measurements for load identification research: Demo abstract. In Proceedings of the 1st ACM Conference on Embedded Systems for Energy-Efficient Buildings, Memphis, TN, USA, 3–4 November 2014; pp. 198–199. [Google Scholar]
  11. Zhu, Z.; Wei, Z.; Yin, B.; Zhang, S.; Wang, X. A novel approach for event detection in non-intrusive load monitoring. In Proceedings of the IEEE Conference Energy Internet Energy System Integrated (EI2), Beijing, China, 26–28 November 2017; pp. 1–5. [Google Scholar]
  12. Fang, K.; Huang, Y.; Huang, Q.F.; Yang, S.H.; Li, Z.; Cheng, H.J. An Event Detection Approach Based on Improved CUSUM Algorithm and Kalman Filter. In Proceedings of the 4th IEEE Conference on Energy Internet and Energy System Integration, Wuhan, China, 30 October–1 November 2020; pp. 3400–3403. [Google Scholar]
  13. Yi, S.H.; Yin, S.D.; Diao, Y.L.; Wang, B.W.; Wu, P. A New Event-detection Method Based on Composite Windows in NILM for Industrial Settings. In Proceedings of the 2019 IEEE Sustainable Power and Energy Conference (iSPEC), Beijing, China, 21–23 November 2019. [Google Scholar]
  14. Medeiros, P.; Canha, L.N.; Bertineti, D.P.; de Azevedo, R.M. Event classification in non-intrusive load monitoring using convolutional neural network. In Proceedings of the 2019 IEEE PES Innovative Smart Grid Technologies Conference—Latin America, Gramado, Brazil, 18–21 February 2019; pp. 1–6. [Google Scholar]
  15. Xiao, Y.; Hu, Y.; He, H.J.; Zhou, D.G.; Zhao, Y.; Hu, W.S. Non-Intrusive Load Identification Method Based on Improved KM Algorithm. IEEE Access 2019, 7, 151368–156377. [Google Scholar] [CrossRef]
  16. Jazizadeh, F.; Afzalan, M.; Wan, J. Self-configuring Event Detection for Electricity Disaggregation. In Proceedings of the 4th International Workshop on Non-Intrusive Load Monitoring, University of Texas, Austin, TX, USA, 7–8 March 2018. [Google Scholar]
  17. Alcalá, J.; Ureña, J.; Hernández, Á.; Gualda, D. Event-Based Energy Disaggregation Algorithm for Activity Monitoring from a Single-Point Sensor. IEEE Trans. Instrum. Meas. 2017, 66, 2615–2626. [Google Scholar] [CrossRef]
  18. Held, P.; Weißhaar, D.; Mauch, S.; Abdeslam, D.O.; Benyoucef, D. Parameter optimized event detection for NILM using frequency invariant transformation of periodic signals (FIT-PS). In Proceedings of the IEEE 23rd International Conference Emergency Technology Factory Automation. (ETFA), Turin, Italy, 4–7 September 2018; pp. 832–837. [Google Scholar]
  19. Tsai, M.S.; Lin, Y.H. Modern development of an Adaptive Non-Intrusive Appliance Load Monitoring system in electricity energy conservation. Appl. Energy 2012, 96, 55–73. [Google Scholar] [CrossRef]
  20. Gurbuz, F.B.; Bayindir, R.; Vadi, S. Comprehensive Non-Intrusive Load Monitoring Process: Device Event Detection, Device Feature Extraction and Device Identification Using KNN, Random Forest and Decision Tree. In Proceedings of the 10th IEEE International Conference on Renewable Energy Research and Applications, Istanbul, Turkey, 26–29 September 2021; pp. 447–452. [Google Scholar]
  21. Lan, Z.; Yin, B.; Wang, T.; Zuo, G. A non-intrusive load identification method based on convolution neural network. In Proceedings of the 2017 IEEE Conference on Energy Internet and Energy System Integration (EI2), Beijing, China, 26–28 November 2017. [Google Scholar]
  22. Athanasiadis, C.L.; Papadopoulos, T.A.; Doukas, D.I. Real-time non-intrusive load monitoring: A light-weight and scalable approach. Energy Build. 2021, 253, 111523. [Google Scholar] [CrossRef]
  23. Luan, W.; Liu, Z.; Liu, B.; Yu, Y.; Hou, Y. An adaptive Two-Stage Load Event Detection Method for Nonintrusive Load Monitoring. IEEE Trans. Instrum. Meas. 2022, 71, 2504014. [Google Scholar] [CrossRef]
  24. Jin, Y.; Tebekaemi, E.; Berges, M.; Soibelman, L. A time-frequency approach for event detection in non-intrusive load monitoring. In Signal Processing, Sensor Fusion, and Target Recognition XX; SPIE: Bellingham, WA, USA, 2011; p. 8050. [Google Scholar]
  25. Rehman, A.U.; Lie, T.T.; Valles, B.; Tito, S.R. Event-detection algorithms for low sampling nonintrusive load monitoring systems based on low complexity statistical features. IEEE Trans. Instrum. Meas. 2020, 69, 751–759. [Google Scholar] [CrossRef]
  26. Kligman, A.; Yaniv, A.; Beck, Y. Energy disaggregation of type I and II loads by means of birch clustering and watchdog timers. Energies 2023, 16, 3027. [Google Scholar] [CrossRef]
  27. Zhang, S.; Zhu, Z.; Yin, B.; Huang, X. Event Detection Methods for Nonintrusive Load Monitoring in Smart Metering: Using the Improved CUSUM Algorithm. In Proceedings of the 2018 International Conference on Sensing, Diagnostics, and Control, Xi’an, China, 15–17 August 2018. [Google Scholar]
Figure 1. NILM system architecture.
Figure 1. NILM system architecture.
Energies 16 07207 g001
Figure 2. AC waveform of 4 different appliances.
Figure 2. AC waveform of 4 different appliances.
Energies 16 07207 g002
Figure 3. RMS current waveforms of 4 different appliances.
Figure 3. RMS current waveforms of 4 different appliances.
Energies 16 07207 g003
Figure 4. CUSUM plots of RMS current of 4 different appliances.
Figure 4. CUSUM plots of RMS current of 4 different appliances.
Energies 16 07207 g004
Figure 5. Comparison of turning points on RMS current and CUSUM plots: (a) The RMS current in an energized state, (b) The CUSUM chart in an energized state, and (c) The RMS current in a de-energized state, and (d) The CUSUM chart in a de-energized state.
Figure 5. Comparison of turning points on RMS current and CUSUM plots: (a) The RMS current in an energized state, (b) The CUSUM chart in an energized state, and (c) The RMS current in a de-energized state, and (d) The CUSUM chart in a de-energized state.
Energies 16 07207 g005
Figure 6. Diagrams of current for a long transient energized process: (a) The RMS current plot, and (b) The CUSUM plot of Figure 6a.
Figure 6. Diagrams of current for a long transient energized process: (a) The RMS current plot, and (b) The CUSUM plot of Figure 6a.
Energies 16 07207 g006
Figure 7. Comparison of transient processes on RMS current and CUSUM plots: (a) The RMS current in the rising state, (b) The CUSUM plot of RMS current in the rising state, (c) The RMS current in the falling state, and (d) The CUSUM plot of RMS current in the falling state.
Figure 7. Comparison of transient processes on RMS current and CUSUM plots: (a) The RMS current in the rising state, (b) The CUSUM plot of RMS current in the rising state, (c) The RMS current in the falling state, and (d) The CUSUM plot of RMS current in the falling state.
Energies 16 07207 g007
Figure 8. Current diagrams of noise: (a) RMS current plot, and (b) CUSUM plot of Figure 8a.
Figure 8. Current diagrams of noise: (a) RMS current plot, and (b) CUSUM plot of Figure 8a.
Energies 16 07207 g008
Figure 9. Flowchart of event detection.
Figure 9. Flowchart of event detection.
Energies 16 07207 g009
Figure 10. RMS current values and corresponding derivative values: (a) current chart of an energized event, and (b) first-order derivative of RMS current.
Figure 10. RMS current values and corresponding derivative values: (a) current chart of an energized event, and (b) first-order derivative of RMS current.
Energies 16 07207 g010
Figure 11. Data on current for events: (a) sequence of events indicated by red and green rectangles, (b) RMS current sample of the first event, and (c) CUSUM chart of the first event.
Figure 11. Data on current for events: (a) sequence of events indicated by red and green rectangles, (b) RMS current sample of the first event, and (c) CUSUM chart of the first event.
Energies 16 07207 g011
Figure 12. RMS current data: (a) data of current for event detection (red rectangle), (b) magnification of RMS current, and (c) CUSUM chart of Figure 12a.
Figure 12. RMS current data: (a) data of current for event detection (red rectangle), (b) magnification of RMS current, and (c) CUSUM chart of Figure 12a.
Energies 16 07207 g012
Figure 13. Turning points of two consecutive events on the CUSUM plot.
Figure 13. Turning points of two consecutive events on the CUSUM plot.
Energies 16 07207 g013
Figure 14. Current diagram of the activation process: (a) RMS current chart and (b) CUSUM plot of Figure 14a.
Figure 14. Current diagram of the activation process: (a) RMS current chart and (b) CUSUM plot of Figure 14a.
Energies 16 07207 g014
Figure 15. RMS current plot and CUSUM plot for two consecutive events: (a) The RMS current of 2 consecutive events, and (b) The CUSUM chart of RMS current with 2 consecutive events.
Figure 15. RMS current plot and CUSUM plot for two consecutive events: (a) The RMS current of 2 consecutive events, and (b) The CUSUM chart of RMS current with 2 consecutive events.
Energies 16 07207 g015
Figure 16. Schematic of slope calculation: (a) The CUSUM chart of RMS current in energized state. (b) The CUSUM chart of RMS current in de-energized state.
Figure 16. Schematic of slope calculation: (a) The CUSUM chart of RMS current in energized state. (b) The CUSUM chart of RMS current in de-energized state.
Energies 16 07207 g016
Figure 17. Metrics comparison with different slopes by proposed method.
Figure 17. Metrics comparison with different slopes by proposed method.
Energies 16 07207 g017
Figure 18. MSE value for different slopes.
Figure 18. MSE value for different slopes.
Energies 16 07207 g018
Figure 19. The sequence of event detection results.
Figure 19. The sequence of event detection results.
Energies 16 07207 g019
Figure 20. The distortion rate of RMS current for 2 appliances.
Figure 20. The distortion rate of RMS current for 2 appliances.
Energies 16 07207 g020
Figure 21. RMS current values of the four electrical appliances during operation.
Figure 21. RMS current values of the four electrical appliances during operation.
Energies 16 07207 g021
Table 1. Accuracy comparison of existing event detection methods with improved CUSUMs.
Table 1. Accuracy comparison of existing event detection methods with improved CUSUMs.
PaperImproved MethodDatasetAccuracy
[11]Based on CUSUM and adding bootstrappingPrivate datasetAbove 91% at conclusion
[12]Adaptive factors @ CUSUMPrivate datasetN.A.
[13]CWA @ CUSUMIndustrial load datasetAbove 77% mentioned in the table 2 of [13]
Table 2. Parameters of the algorithms.
Table 2. Parameters of the algorithms.
PaperDescriptionParameter Value
[7]Min. pts, Eps5, 0.1
Window length15 s.
Threshold of power different of event P t h = 15 W
Interval time t t h = 2 s.
[11]Bootstrapping by confidence level95~98%
Min. MSE.Equation (5) proposed in [11]
Power range P t h = 60 W~1800 W
Proposed methodNoise Creation i t h > 0.5, i t h < 0.1
Magnitude of the operating current I t h ≥ 0.015 A
Current variation I r a t i o = 3%
Event judgment S l o p e t h = 0.06
Window length3 s.
Interval1.5 s.
Power range P t h = 10 W~2700 W
Table 3. Metrics comparison by different methods (%).
Table 3. Metrics comparison by different methods (%).
PaperMethodDatasetAccuracyPrecisionRecall f 1 Score
[7]DBSCANCOOLL81.2790.1272.2483.88
PLAID70.2594.8557.2771.42
[11]Traditional CUSUMCOOLL67.4267.9078.0680.24
PLAID76.6685.9376.5880.99
Proposed methodCOOLL94.5294.5397.5396.00
PLAID97.3098.5997.2397.90
Table 4. The comparison with different sampling rates.
Table 4. The comparison with different sampling rates.
Sampling RateCooker (700 W/110 V 60 Hz)Vacuum (220 W/110 V 60 Hz)
20 K s/sEnergies 16 07207 i001Energies 16 07207 i002
10 K s/sEnergies 16 07207 i003Energies 16 07207 i004
5 K s/sEnergies 16 07207 i005Energies 16 07207 i006
2 K s/sEnergies 16 07207 i007Energies 16 07207 i008
1 K s/sEnergies 16 07207 i009Energies 16 07207 i010
500 s/sEnergies 16 07207 i011Energies 16 07207 i012
200 s/sEnergies 16 07207 i013Energies 16 07207 i014
100 s/sEnergies 16 07207 i015Energies 16 07207 i016
50 s/sEnergies 16 07207 i017Energies 16 07207 i018
20 s/sEnergies 16 07207 i019Energies 16 07207 i020
Table 5. RMS current diagrams and their corresponding CUSUM diagrams for events.
Table 5. RMS current diagrams and their corresponding CUSUM diagrams for events.
Event Type1234
Plot of I r m s Energies 16 07207 i021Energies 16 07207 i022Energies 16 07207 i023Energies 16 07207 i024
Plot of CUSUMEnergies 16 07207 i025Energies 16 07207 i026Energies 16 07207 i027Energies 16 07207 i028
Slope (stepA5)5.462.799.285.11
Event type5678
Plot of I r m s Energies 16 07207 i029Energies 16 07207 i030Energies 16 07207 i031Energies 16 07207 i032
Plot of CUSUMEnergies 16 07207 i033Energies 16 07207 i034Energies 16 07207 i035Energies 16 07207 i036
Slope (stepA5)4.817.854.890.27
Table 6. RMS current diagrams and their corresponding CUSUM Diagrams for non-events.
Table 6. RMS current diagrams and their corresponding CUSUM Diagrams for non-events.
Non-Event Type1Non-Event Type2
Plot of I r m s Energies 16 07207 i037Plot of I r m s Energies 16 07207 i038
Plot of CUSUMEnergies 16 07207 i039Zoom-in Plot of I r m s Energies 16 07207 i040
ResultSlope: 0.018 < 0.06 (step A5)Result1.57% < 3%(step A3)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tsai, M.-S.; Lin, Y.-K. Applying the Geometric Features of Cumulative Sums to the Development of Event Detection. Energies 2023, 16, 7207. https://doi.org/10.3390/en16207207

AMA Style

Tsai M-S, Lin Y-K. Applying the Geometric Features of Cumulative Sums to the Development of Event Detection. Energies. 2023; 16(20):7207. https://doi.org/10.3390/en16207207

Chicago/Turabian Style

Tsai, Men-Shen, and Yen-Kuang Lin. 2023. "Applying the Geometric Features of Cumulative Sums to the Development of Event Detection" Energies 16, no. 20: 7207. https://doi.org/10.3390/en16207207

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