Next Article in Journal
The Impact of the Wavelength and Its Transmittance on the Visual Evoked Potentials, at Baseline, and under the Effect of Six Monochromatic Filters Used for Visual Treatments
Next Article in Special Issue
A Secure and Smart Home Automation System with Speech Recognition and Power Measurement Capabilities
Previous Article in Journal
Spectral Filter Selection Based on Human Color Vision for Spectral Reflectance Recovery
Previous Article in Special Issue
Human Behavior Recognition via Hierarchical Patches Descriptor and Approximate Locality-Constrained Linear Coding
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A New NILM System Based on the SFRA Technique and Machine Learning

Dipartimento di Ingegneria Industriale e dell’Informazione e di Economia, Università dell’Aquila, 67100 L’Aquila, Italy
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(11), 5226; https://doi.org/10.3390/s23115226
Submission received: 3 April 2023 / Revised: 26 May 2023 / Accepted: 29 May 2023 / Published: 31 May 2023
(This article belongs to the Special Issue AI for Smart Home Automation)

Abstract

:
In traditional nonintrusive load monitoring (NILM) systems, the measurement device is installed upstream of an electrical system to acquire the total aggregate absorbed power and derive the powers absorbed by the individual electrical loads. Knowing the energy consumption related to each load makes the user aware and capable of identifying malfunctioning or less-efficient loads in order to reduce consumption through appropriate corrective actions. To meet the feedback needs of modern home, energy, and assisted environment management systems, the nonintrusive monitoring of the power status (ON or OFF) of a load is often required, regardless of the information associated with its consumption. This parameter is not easy to obtain from common NILM systems. This article proposes an inexpensive and easy-to-install monitoring system capable of providing information on the status of the various loads powered by an electrical system. The proposed technique involves the processing of the traces obtained by a measurement system based on Sweep Frequency Response Analysis (SFRA) through a Support Vector Machine (SVM) algorithm. The overall accuracy of the system in its final configuration is between 94% and 99%, depending on the amount of data used for training. Numerous tests have been conducted on many loads with different characteristics. The positive results obtained are illustrated and commented on.

1. Introduction

The goal of energy saving within modern smart homes and energy management systems is pursued by monitoring and controlling household parameters, such as lighting and home temperature [1]. This need has led to a significant increase in attention to nonintrusive load-monitoring (NILM) systems.
Among the energy-monitoring systems, those based on the NILM technique represent one of the most relevant solutions. The total energy consumption of users is monitored and the consumption of each individual load is identified. For this purpose, the measurements of current and voltage are carried out, or often of the current alone; the data collected are then processed with a so-called “disaggregation” algorithm. The main advantages of the nonintrusiveness are the simplicity and cost-effectiveness of installation. Therefore, systems of this type are useful for both consumers and utility companies when analyzing the use and costs of electricity.
In the early 1990s, the first NILM system was proposed [2]. Since then, more advanced algorithms have enabled a significant improvement in energy-unbundling systems.
This is especially true over the past decade, which has seen a significant increase in interest in this topic.
The first NILM systems detected events and classified the various loads using traditional algorithms [2,3]. The most modern, however, use artificial intelligence algorithms, in particular, through machine-learning (ML) techniques. For example, in some studies [4,5], the energy disaggregation problem has been reformulated as an adaptive filtering problem; refs. [6,7] propose model-driven NILM systems and the works proposed in other studies [8,9,10] are based on hidden Markov chains, while others [11,12,13,14,15] use artificial neural networks. The latter types of algorithms learn from the data provided and can perform certain tasks. Therefore, ML algorithms continue to improve over time by learning from data with minimal human intervention [16].
With regard to the NILM problem, these systems process the active power—and sometimes also the reactive power—absorbed by the monitored system [16]. However, NILM systems have been developed based on transient rather than stationary characteristics or the analysis of other quantities, which differ due to belonging to different domains (time or frequency).
In this sense, the sampling frequency is a fundamental parameter used to define the extractable information. Low-frequency time series were processed to evaluate steady-state characteristics. On the other hand, time series at other frequencies were processed to obtain information about the startup and shutdown transients to be able to discriminate the loads through their dynamic parameters (overshoot, rise time, etc.) or by characterizing appliances based on the pulses produced on the power line. Other attempts have been made by processing the trajectories drawn on the V-I plane.
Today, the division of NILM systems into event-driven and non-event-driven systems is the most widely used division and is the best for defining the state of the art of these systems.
The former involves the detection of an event (understood as an appliance turning on, turning off, or switching to a different consumption state) and then classifying it based on the features associated with the appliance that caused it. This type of approach can therefore be divided into three basic steps: event detection, feature extraction, and load identification. In particular, the last step is performed in most cases using ML algorithms that work well as classification systems. Numerous supervised ML algorithms have been proposed in the literature, including K Nearest Neighbor (KNN) [17], naïve Bayes [18], Decision Tree (DT) [19], Support Vector Machine (SVM) [20], Principal Component Analysis (PCA) [21], and Artificial Neural Network (ANN) [22,23]. Finally, unsupervised [24] and semi-supervised learning algorithms [25], as well as those related to graph signal processing [26], have also been proposed.
On the other hand, non-event-based systems are NILM systems that do not have an event-detection phase. In these cases, the concept of the “signature”/“features” of an appliance is also lost, as the only feature used by the models is the aggregate power profile. They use a window of samples of the aggregate signal (therefore time series data) as input; the samples are processed continuously without waiting for the occurrence of events. For this reason, this type of system is particularly suitable for low-frequency signals. Indeed, it was developed precisely to allow the processing of signals acquired with reduced frequencies, for which the detection of events is more difficult. In some cases, the disaggregation problem is formulated as a blind source separation (BSS) problem—that is, the problem of recovering a signal from a set of mixed signals. Numerous approaches have been proposed in the last decade, the most significant being those based on Combinatorial Optimization [27], Discriminative Sparse Coding [28], Hidden Markov Model Approaches [9,29,30,31,32,33,34,35], and Deep Learning (DL) [36,37,38,39,40,41,42,43].
NILM systems are used in a wide range of applications. Among these, very promising are the applications in Ambient Assisted Living, i.e., systems that make it possible to meet the needs of elderly or disabled users, allowing them to live independently [44]. In fact, knowing the changes in the status of the various appliances in a relatively short time, it is possible to infer the Activities of Daily Living (ADL) of the occupants.
This paper presents a measurement system for nonintrusive monitoring (it does not require modifications to the electrical system) based on the injection of a variable frequency sinusoidal signal and the characterization of the system based on the response to it. This technique is called Sweep Frequency Response Analysis (SFRA) and is widely used in diagnostics and fault-finding in transformers and electric motors.
The proposed solution is very different from the other solutions proposed in the literature, which provide for the analysis of time-varying electrical signals through different approaches. Following these approaches, the focus is generally on transients of the absorbed current, which indicate a change in the connection state. The measurement of the current in static conditions does not allow the identification of active devices, except in very special simple cases.
The approach proposed in this paper makes it possible to identify which appliances are inserted through a measurement performed in static conditions (not in the connection/disconnection transient). It allows for the detection of a sort of signature that is unique and independent of the absorbed current. This approach, as illustrated below, allows us to overcome the typical problems of NILM systems in identifying multi-state or continuous variable load household appliances (or, in general, electrical loads).
All the SFRA apparatuses available on the market can only work on single devices that are switched off and disconnected from the grid. The SFRA system proposed in this article can operate online [45], thus allowing it to extend its operating range to systems for continuous diagnostics on devices while supplied by the mains; no functioning interruptions or disconnection operations are needed for the standard SFRA apparatuses.
The proposed system is based on a machine-learning algorithm, the Support Vector Machine (SVM), which is capable of determining the status of individual household appliances starting from the measurement obtained by the SFRA system. It was installed on a home test system and acquired and processed the data locally.
Extensive measurements were made in order to verify the operational characteristics. The results obtained from field applications are also included and discussed.

2. Frequency Response Analysis of Household Appliances

SFRA has been successfully used to perform diagnostics on the windings of electric machines during the production process [46,47]. An electric machine can be considered a complex electrical network of capacitances, inductances, and resistors. As shown in Figure 1, the SFRA instrument injects a sinusoidal excitation voltage (the typical amplitude is 10 Vpp) with a continuously increasing frequency into one end of the transformer winding and measures the signal returning from the other end. This test is conducted with the machine disconnected from the power line. More details are reported in another study [46].
The comparison of input and output signals generates a frequency response, which can be compared with reference data. Degradation of the insulating materials or a change in the shape of the windings will result in a change in the RLC components of the network and, consequently, in the frequency response curve. Faults can therefore be detected by processing correlation indices between different curves.
In the proposed application, shown in Figure 2, the SFRA technique is applied to the electrical system supplied by the mains in order to obtain a signature that allows for discriminating different power supply conditions of a domestic system. The applied signal and the output signal, between the terminal of the neutral conductor and the ground, are acquired and processed by the system. The proposed measurement system can therefore be conveniently installed on a standard domestic socket.
A low-voltage (±5 Vpp) sinusoidal signal with variable frequency (from 2 kHz to 1.5 MHz) is superimposed on the supply voltage (240 Vrms and 50 Hz) and applied between the power phase conductor terminal and ground.
The signal generator is coupled to the network by means of a band-pass filter that allows only the passage of the test signal. The two input channels of the measurement circuit are also decoupled from the power supply by two other band-pass filters. The filters block both the fundamental frequency (50 Hz) and the harmonic components (up to 2 kHz) [48].
As the first part of the work, the system’s response was evaluated over a fairly wide frequency range and by acquiring a sufficiently high number of points.
The frequency response was obtained by injecting a signal generated at 100 MS/s. In order to optimize the memory, the sampling frequencies to acquire both applied and output signals were adapted according to the frequency to be analyzed. In detail, the sampling frequency was chosen as being equal to 25 times the analyzed frequency. To obtain a better resolution, the FFT was performed by fixing a frequency bin at the frequency of the generated sinusoid. The FFT was also performed on the output signal and the sample at the same bin was considered.
A Hanning window with a width equal to the acquisition time (corresponding to 64 cycles of the generated frequency) was used to process the FFT. Downstream of the FFT processing, the system calculated the V o u t / V i n ratio. For example, the 1 kHz response is achieved by injecting a 1 kHz sinusoidal signal generated at a frequency of 100 MS/s. The applied signal and the output signal were sampled at a sampling rate of 25 × 1000 = 25,000 Hz. A time window of (1/1000) × 64 = 0.064 s was considered for the processing of the FFTs, corresponding to 1600 samples. This process was repeated for all the frequencies of interest. The block diagram of the LabVIEW code is shown in Figure S1.
In order to evaluate the validity of the signature for different frequency ranges, four sub-bands were defined:
(1)
2–10 kHz;
(2)
10–100 kHz;
(3)
100 kHz–1 MHz;
(4)
1–1.5 MHz.
For each sub-band, 200 points were initially acquired. These sub-divisions were obtained considering the possible response to this type of excitation signal. Figure 3 schematically shows the installation of the SFRA system in the test system. From the knowledge in the literature about SFRA [48], the low-frequency response (2–10 kHz) is characterized by an ohmic-inductive behavior in which the characteristics of the grid upstream of the system are predominant; therefore, the contribution of the loads is usually not significant. The medium-frequency response (10 kHz–1 MHz) is characterized by resonance phenomena. As this band is generally the most interesting in terms of the effect of loads on the response, it has been split into two sub-bands to increase resolution. The high-frequency response (1–1.5 MHz) is characterized by capacitive effects due both to the network and the user loads and the connection of the measuring instrument itself, which generally determine a poor reproducibility of the measurement.
The sinusoidal test signal introduces no problems to the system. This is essentially due to the reduced amplitude of the test signal with respect to the line voltage (1.54%), which is fully within the limits imposed by the standard [49].
During the tests, it was verified that the signal does not create problems in intelligent automation systems operating with conveyed waves [50]. This is also because these systems adopt sophisticated signal-modulation algorithms that encode the data transmitted with different sub-carriers or that widen the transmission band (Spread Spectrum), obtaining a better resistance to interference and noise. Other systems adopt Orthogonal Frequency Division Multiplexing (OFDM) modulation techniques, which are even more effective.
Several tests were performed at a residential test facility. A wide variety of loads were taken into consideration, powering them individually or simultaneously and under different working conditions:
(1)
Hairdryer;
(2)
Microwave oven;
(3)
Lamp;
(4)
Laptop;
(5)
Induction hob;
(6)
Heater;
(7)
Drill;
(8)
TV.
Figure 4 shows the frequency response of these appliances when powered individually. The measurements were conducted in 24 different power supply scenarios, as summarized in Table 1. It is important to note that Scenario 1 represents the case in which none of the appliances was powered (condition indicated with “Open Circuit” in Figure 1). Scenarios 2 to 9 represent the single power supply conditions of household appliances. Scenarios 10 to 24 represent the simultaneous power conditions.
To support an objective evaluation, Figure 5 shows the lower and upper envelopes of the traces obtained in the presence and absence of each of the eight considered appliances, obtained following the measurements performed for the different scenarios. Measurements were performed for each of the 24 scenarios reported in Table 1, thus obtaining 24 SFRA traces. For each envelope (related to each appliance), the traces were divided into two groups according to the presence or absence of the appliance in the power supply scenario. The envelopes were then obtained by considering the maximum and minimum values of each of the two groups for each frequency bin. From these envelopes, it is immediately evident that the contribution of the low-frequency measurement (2–10 kHz) is not influenced by the different load configurations; therefore, in the rest of the work, we will only refer to the other three sub-bands.
These traces were used as inputs to a machine-learning-based classification algorithm, the Support Vector Machine (SVM), to determine the correct combination of powered appliances. A NILM system based on this type of input is easy to install, as it can be connected to a standard domestic socket, such as any household appliance. Traditional NILM systems, on the other hand, measure the aggregate power upstream of the plant and therefore require a more difficult installation.
The measurement obtained represents the transfer function of the equivalent RLC circuit [23]. Therefore, the result is mainly influenced by the physical characteristics of the appliances rather than by their power absorption. This represents a great advantage for the discrimination of multi-state or continuously variable load appliances (such as drills) whose identification is often critical for systems based on the analysis of power consumption.
The transfer function is minimally influenced by the choice of the socket in which to install the measuring system. Tests were carried out in all the sockets shown in Figure 3; all of the possible positions of the instrument on the various sockets allow the maximum reproducibility of the measurement. Regardless, the instrument is meant to be used on a single socket. The proposed algorithm is described in Section 3.

3. Machine-Learning Systems

Machine learning is the field of study that allows computers to learn without being explicitly programmed [51]. Unlike traditional programming, which provides a list of more or less complex rules defined by the programmer to obtain certain outputs, machine learning automatically learns patterns and correlations to solve extremely complex problems. In problems where existing solutions require a lot of manual adjustments or long lists of rules, a machine-learning algorithm can often simplify the code and achieve better performance. Sometimes they allow us to find solutions to problems that otherwise would not be solved through traditional approaches. These algorithms are used to process large amounts of data in order to discover patterns that are not immediately apparent. They are also used in situations where the algorithm needs to dynamically adapt to new patterns in the data or when the data itself is generated as a function of time, such as stock price prediction; in this case, we speak of online learning.
Machine-learning algorithms can be classified into supervised learning, unsupervised learning, semi-supervised learning, and reinforcement learning. This classification is made in relation to the quantity of data available during the training phase and the type of supervision during the training.
Specifically, in supervised learning, the training data provided to the algorithm include desired solutions called labels. Supervised learning solves two types of problems: classification and regression.
Classification is the problem of cataloging data into two or more classes; so, by providing input to the machine-learning system, it must return its class of belonging.
On the other hand, regression interpolates data to associate two or more features with each other. By providing the algorithm with an input feature, the regressor returns the other feature. A system of estimating the price of houses starting from features, such as size, number of rooms, and area, is a regression system.
The most popular supervised-learning algorithms are k-Nearest Neighbors, linear regression, logistic regression, Support Vector Machine (SVM), Decision Trees, Random Forests, and Neural Networks.
The NILM problem can be set up either as a regression problem—for example, when the algorithm is called to estimate the power absorbed by the single appliance starting from the aggregate power measurement [52]—or as a classification problem [53], as in the case in which starting from the aggregate power measurement is necessary to determine which appliances are powered and which are not.
The system proposed in this manuscript solves a multi-label classification problem since, starting from an SFRA trace, it is possible to identify several powered appliances simultaneously. The algorithm used is the SVM; the system configuration and its operation are illustrated in the following paragraphs.

3.1. Support Vector Machine

A SVM is one of the most popular models in machine learning, as it is very powerful and versatile [51]. SVMs are best suited for classifying complex but small- to medium-sized datasets. While classic classification algorithms discriminate based on characteristics common to each class, the SVM algorithms build the model based on the most difficult samples to discriminate, i.e., the most similar samples belonging to different classes. In this sense, the only samples used in the construction of the model are called support vectors. The other samples are therefore useless.
Based on the support vectors, the algorithm finds the optimal hyperplane that separates them, which can then be used to discriminate new samples. In other words, adding more formation samples far from the hyperplane (therefore not particularly complex to classify) will not affect the decision boundary, which will be completely determined by the samples located at the edge of the hyperplane.
Consider a case in which the samples to be classified are defined by only two features.
This case can be represented on a two-dimensional plane, as shown in Figure 6. A SVM algorithm looks for the line capable of maximizing the margin between the most similar samples belonging to different classes, i.e., the support vectors.
Consider a linear classification problem in which n-dimensional inputs X are divided into two classes y 1,1 . The classifier can be formulated as follows:
f ( x ) = w T ϕ ( x ) + b ,
where w is the vector of weights, b is the bias, and ϕ ( x ) is the feature space of the inputs. The sign of f(x) will be the output y i of the classification.
Since the inputs are linearly separable, it will be possible to choose several linear decision boundaries, each of which will not produce classification errors in the training data.
Training a SVM model positions the boundary to maximize the margin—that is, the distance from the hyperplane to the nearest data point in either class. More specifically, we want to optimize the following objective function:
max w , b min i d i s t ( x i , w , b ) | i    y i ( w T ϕ x i + b ) 0 ,
where d i s t ( x , w , b ) is the Euclidean distance from the feature point ϕ x to the hyperplane defined by w and b . With this objective function, the distance from the decision boundary w T ϕ x + b = 0 to the nearest point i is maximized. The constraints force finding a decision boundary that correctly classifies all the training data. In other words, for the classifier, a correct training point y i and w T ϕ x i + b must have the same sign, in which case their product must be positive.
It is known from Euclidean geometry that the distance between the point ϕ x i and the hyperplane w T ϕ x + b = 0 can be defined as | w T ϕ x i + b | | | w | | . Since y i is the sign of f ( x i ) , it can be written as follows:
max w , b min i y i ( w T ϕ x i + b ) | | w | | | i    y i ( w T ϕ x i + b ) 0 ,
We can observe that, due to the normalization of | | w | | in (3), the scale of w is arbitrary in this objective function. That is, if w and b are multiplied by a real scalar α , the factors of α in the numerator and denominator will cancel each other out. Now, suppose we choose the scale so that the point closest to the hyperplane, xi satisfies y i ( w T ϕ x i + b ) = 1 . With this assumption, the m i n i in Equation (3) becomes redundant and can be removed. The objective function and constraint can be rewritten as:
max w , b 1 | | w | | | i    y i ( w T ϕ x i + b ) 0 ,
Finally, we convert the problem into a quadratic program (QP). In this way, the objective function is quadratic in the unknowns and all constraints are linear in the unknowns. A QP has a single global minimum, which can be found efficiently with current optimization packages [54].
max w , b 1 2 | | w | | 2 | i    y i ( w T ϕ x i + b ) 0 ,
However, not all classification problems are linear; in fact, in some cases, it is not possible to separate the classes with a straight line; therefore, we speak of non-linear classification. The kernel trick [55] solves non-linear classification problems with SVM algorithms.
In more detail, a polynomial kernel was used to determine the presence, or absence, of an appliance starting from the SFRA traces. Using a polynomial kernel means determining similarity, not only by processing the features of the input samples but also by their combinations, as shown in Figure 7.
Moreover, in real scenarios, data belonging to different classes overlap. As a result, it will not be possible to satisfy all the constraints in (5). One way to deal with this problem and still train useful classifiers is to relax some constraints by introducing so-called slack variables [56]. Normally, a Lagrangian transformation addresses the optimization problem, which allows the constrained optimization problem expressed in (5) to be reformulated into a non-constrained optimization problem.
The Lagrangian for the SVM objective function in (5), with Lagrange multipliers a i 0 , is:
L ( a 1 : N ) = a i 1 2 i   j   a i a j y i y j k ( x i , x j ) ,
where k ( x i , x j ) is called a kernel function. For example, if we used the basic linear features, i.e., ϕ x = x , then k ( x i , x j ) = x i T x j . Instead, because a polynomial kernel has been chosen in the implemented SVM classifier, it will be defined as:
k ( x i , x j ) = ( a + x i T x j ) b ,

3.2. The Proposed Structure

In the proposed system, the input is the trace obtained from the SFRA system; thus, each point of the trace represents a feature of the SVM. The algorithm must have a number of input functions equal to the number of bins of the measured frequency response.
The problem is also attributable to a multi-label classification problem, where a single sample can belong to multiple defined classes, unlike in multi-class classification, where each sample can uniquely belong to only one class.
In fact, the purpose of the system is to determine the status (ON or OFF) of the appliances. This means that the number of classes is equal to that of the appliances and the belonging of an SFRA trace to a certain class will indicate the ON state of that appliance. A single SFRA trace must therefore be able to be associated with multiple classes (or labels), as the system must be able to recognize the loads even under simultaneous power supply conditions. SVMs are not natively capable of performing multi-class or multi-label classifications since, as explained above, a SVM defines a hyperplane that separates classes equidistantly in order to guarantee the maximum margin. When the number of classes rises to three or more, thus passing from a binary classification to multi-class, it is possible to guarantee equidistance only between two of the classes, discarding this property with all the other classes.
To solve this classification problem, which involves assigning multiple labels to an instance, we converted it to multiple binary classification problems. A SVM was therefore associated with each household appliance, performing a binary classification in order to determine its ON or OFF status, starting from the SFRA trace. The proposed structure is shown in Figure 8.

4. Experimental Results

As part of the development phase, the proposed algorithm was implemented and tested to evaluate its performance with real data.

4.1. The Proposed System Setup

As explained in Section 2, the SFRA technique was performed by plugging the instrument into a standard household socket. As previously discussed, the input signal is a variable frequency sinusoidal signal applied between the phase conductor terminal and ground, while the output signal is the measured signal between the neutral conductor terminal and ground. Both signals are acquired and processed. Figure 9 shows the measurement system used.
The measurement system must be connected to the test system by means of cables with suitable bandwidth and the same characteristic impedance of the generator to avoid reflection and signal mismatch and to improve the sensitivity, repeatability, and reliability of the measurement.
The input signal and related acquisition for the SFRA were performed using the Digilent Analog Discovery 2 NI Edition card with a BNC adapter.
The control system was developed using LabVIEW and run on a PC; this software automatically programs the Discovery FPGA at startup, with a configuration file designed to implement the measurement application. Once programmed, the integrated FPGA communicates with the PC via a USB 2.0 connection. The PC enables the creation of the user interface to access the data and process them in the experimental phase. A final NILM system can bypass the PC by integrating post-processing directly into the system.
The Discovery FPGA has a ±25 V input range, a 14-bit resolution, a 100 MS/s sampling frequency, and a 30 MHz bandwidth. It is equipped with an arbitrary function generator with an output range of ±5 V, a bandwidth of 20 MHz, and a sampling rate of 100 MS/s.
For appropriate interfacing with the network, the instrument is equipped with a coupling circuit for each of the three channels (one for generation and two for acquisition), as shown in Figure 9. The coupling circuit includes a third-order Butterworth filter with a flat passband and high attenuation outside the desired frequency range. The generation section and acquisition section coupling circuits both involve a 50 Ω resistor in series and parallel, respectively, to allow impedance adaptation. In addition, all coupling circuits are provided with a high-voltage ac blocking capacitor, connected in series with a 1:1 pulse transformer. The features of the filters developed for the SFRA apparatus are shown in Figure 10 and Figure 11.
In order to avoid unwanted over-voltages due to resonance phenomena at high frequencies, the amplitude of the applied signal must not exceed a few volts (5 Vpp in the present case). The accuracy of the adopted measurement system, as discussed in a previous paper [57], has been evaluated using a reference parallel LCR circuit. This circuit consists of a 50 Ω resistive adapter, a fixed inductance, and a variable capacitance. The referenced values of the circuit impedance were measured with a Keysight E4980AL precision LCR meter. The estimated accuracy of the Vout/Vin ratio was better than ±0.2 dB in the interval from +5 to −25 dB and in the frequency range of 5 kHz to 1.5 MHz.
The SVM was implemented on a desktop computer (based on the Windows 10 × 64-bit operating system) using the open-source Python 3.7 from Anaconda [58]; the machine-learning algorithm was developed using the Scikit-learn library. Python is the programming language mostly used in artificial intelligence (AI) applications due to the availability of numerous libraries for continuous data acquisition and processing.

4.2. The Achieved Results

The proposed measurement technique is innovative and does not appear to have been tested by other authors. Due to the specificity of the acquired data (frequency response), there are no public datasets used by other authors against which to compare the performance of the proposed algorithm [59].
The measurement system was installed on a test facility, which was designed to generate electrical loads created by domestic users as part of the “non-intrusive infrastructure for monitoring loads in residential users” research project. The facility, located in the Electrical Engineering Laboratory of the University of L’Aquila (I), allows for the generation of electrical loads in a single or simultaneous way.
During the test phase, various parameters were evaluated in order to define the most significant sub-bands, the number of measurement points to be acquired, and the number of training examples needed to obtain a satisfactory performance. To this end, the precision, recall, and F1-Score during classification were evaluated [60]. These parameters were obtained using the numbers of true positive (TP), false positive (FP), true negative (TN), and false negative (FN) as follows:
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 s c o r e = 2 × p r e c i s i o n × r e c a l l p r e c i s i o n + r e c a l l ,
The concept of positive has been attributed to the ON state of household appliances and that of negative to the OFF state. Precision indicates all of the times the system has provided an indication of the ON state of an appliance and how many times the prediction has been correct. Precision does not take FNs into account. On the other hand, Recall indicates how many times the system has provided a correct indication about the ON state of the appliance compared to all of the samples in which the appliance was actually in the ON state. Recall does not take FPs into account. To have a metric capable of taking into account both FPs and FNs, the F1-Score is used, which is a harmonic mean of Precision and Recall.
Since, as already explained above, each appliance is associated with a SVM algorithm that reveals its presence, or not, the performance of each SVM was evaluated individually.
We started by acquiring 20 samples for each of the 24 scenarios, for a total of 480 training samples. Each sample consisted of an SFRA trace in which 200 points were acquired for each of the 3 sub-bands. Performance was evaluated on a test set consisting of 50 samples for each scenario, for a total of 1200 test samples. The obtained results, shown in Table 2, are already excellent, as 480 training samples is a relatively low number considering that acquiring a single sample takes about 40 s. The system does not make mistakes for five of the eight appliances analyzed and also shows high performance regarding the other three appliances. To define which of the three sub-bands made the most significant contribution to the identification of household appliances, the system’s performance was evaluated by providing the three sub-bands separately as input to the machine-learning system. The results are reported in Table 3 and a graphical comparison is provided in Figure 12.
In light of these results, it was decided that we would consider only the sub-bands of 10–100 kHz and 100 kHz–1 MHz in order to reduce the time required for the measurement. In fact, it is evident from Figure 12 that the 1–1.5 MHz band never allows for appliance discrimination that outperforms the previous bands. This reduces the time it takes to acquire a single trace to 22.56 s. Table 4 reports the performance evaluation using only the first two sub-bands as input.
Comparing the results with those of Table 2, it can be seen that the system’s performance has remained roughly unchanged. However, there is a significant improvement in the detection of the drill, highlighting that the 1–1.5 MHz sub-band introduced useless randomness for identification purposes. In this way, 400 points are acquired in the 10 kHz–1 MHz frequency band.
The possibility of decreasing the number of acquired points has been evaluated. Therefore, in Table 5, the performances obtained for 200, 134, and 100 points are reported. Furthermore, Figure 13 shows a graphical comparison of the impact of the number of acquired points on the F1-Score.
The performance proved to be very good, even when only using 100 measurement points as a system input. In these conditions, in fact, the system made errors only for three of the eight appliances analyzed while maintaining a minimum F1-Score of 0.94. This reduction allowed a decrease in the execution time of the measurement system from 22.56 s to 6.09 s. The performances shown so far always foresaw 480 training samples (20 for each of the 24 scenarios). As a final analysis, the impact of the number of training samples on performance was evaluated as shown in Figure 14. Table 6 reports the results obtained using an SFRA trace consisting of 100 points acquired in the 10 kHz–1 MHz frequency band, reducing the number of samples used in the training phase.
The system maintains interesting performances even when trained with only one training sample for each scenario (therefore with 24 total training samples). This is mainly because the SVM natively suffers more from the quality of the training samples rather than the quantity, which is precisely because it builds a model based only on the most difficult samples to discriminate.
Lower performance was found in the detection of the Lamp, Laptop, and Drill. In the case of the Lamp, this is due to the insignificance of its related load compared to the overall network, while in the case of the Laptop and Drill, it is due to the extreme variability of their working conditions. However, F1-Score values of 0.78, 0.87, and 0.94, respectively, can be considered largely satisfactory for a trained system with such a small number of samples.
In order to provide an overall assessment of the system’s performance, metrics widely used for multi-label classification systems were used, including micro-average and macro-average. As reported in (11)–(13), in the micro-average, all TPs, TNs, FPs, and FNs are summed for all of the labels and subsequently averaged:
P r e c i s i o n m i c r o a v e r a g i n g = n = 1 N T P n n = 1 N T P n + F P n ,
R e c a l l m i c r o a v e r a g i n g = n = 1 N T P n n = 1 N T P n + F N n ,
F 1 s c o r e m i c r o a v e r a g i n g = 2 × P r e c i s i o n m i c r o a v e r a g i n g × R e c a l l m i c r o a v e r a g i n g P r e c i s i o n m i c r o a v e r a g i n g + R e c a l l m i c r o a v e r a g i n g ,
On the other hand, the macro-average, as reported in (14)–(16), is simply the average of the Precision and Recall for each label:
P r e c i s i o n m a c r o a v e r a g i n g = n = 1 N P r e c i s i o n n N ,
R e c a l l m a c r o a v e r a g i n g = n = 1 N R e c a l l n N ,
F 1 s c o r e m a c r o a v e r a g i n g = 2 × P r e c i s i o n m a c r o a v e r a g i n g × R e c a l l m a c r o a v e r a g i n g P r e c i s i o n m a c r o a v e r a g i n g + R e c a l l m a c r o a v e r a g i n g ,
The difference between the two lies is the fact that the micro-average reflects any imbalances in the dataset. Unbalance means there are test samples in a greater number of one or more classes than the others. In other words, having more samples for a given scenario, the macro-average, by creating a simple average of Precision, Recall, and F1-Score, does not consider this imbalance. On the contrary, the micro-average takes these situations into account.
In the case in question, the dataset is balanced; therefore, both averages are functional and adequate for verifying the performance of this system. Table 7 reports the micro-averages and macro-averages calculated based on the values reported in Table 6.
An additional consideration needs to be made to integrate the proposed system into an electrical system. As explained above, there is no interference with the normal operation of the devices during system operation. Furthermore, the system poses no problems to the EMI filters, which are the input stage of the monitored devices, as the powers involved—which can be associated with the test signal—are extremely low.
To analyze the operating conditions of the measurement system in detail, it was simulated in a SPICE environment.
Specifically, the simulation was oriented to analyze the effects produced by the test signal on commercial EMI filters that could be connected (to other devices) in proximity to the system being tested. The analysis was extended to the entire range of frequencies involved; as a reference, a commercial EMI filter family was considered [61] for standard use in commercial and residential apparatuses for AC currents up to 16 Arms in single-phase systems.
The analysis was extended to the entire range of frequencies involved. Figure 13 summarizes the scheme considered for the simulation. The resistance RLoad equal to 50 Ω was chosen in order to simulate the load of a generic household appliance (230 Vrms/50 Ω = 4.6 Arms).
The system’s response was evaluated by varying the frequency in the range in which the proposed system operates in the final configuration (10 kHz–1 MHz). The frequency response of the current entering the EMI filter was evaluated. Several simulations were carried out by varying the RLC parameters of the EMI filter. The current was found to be harmless across the entire spectrum. As an example, Figure 15 shows the input current response obtained with the RLC parameters reported in Figure 16. The spectrum shows two resonance peaks and a maximum current draw of 4.64 mA.
The reduced value of this peak current does not lead to overheating of the filter components since the associated dissipated power is reduced. Furthermore, such verification is pejorative for the following reasons:
(1)
The proposed system adopts a Digilent Analog Discovery 2 board, which has a limitation on the maximum output current that can be supplied by the DAC channels at 4 mA.
(2)
In our simulation, the measurement system is only connected to the device being tested. In the real case, the generator is connected to a generic socket of the electrical system; therefore, the current that can be supplied (4 mA) is distributed in the various parallel branches of the other connected devices, greatly reducing the intensity of the portion that could affect the EMI filters.

5. Conclusions and Final Remarks

Modern home, energy, and assisted environment management systems require nonintrusive monitoring of the power supply status of the various loads, regardless of information related to their consumption. This parameter is not easy to obtain from NILM systems. The SFRA technique, already widely used in the diagnostics of transformers and asynchronous motors, has been applied here to characterize household appliances from the point of view of their influence in modifying the frequency response of the electrical system. The obtained signature, influenced by the physical characteristics of the loads, has been used as input for a machine-learning algorithm, the SVM. The proposed algorithm has been implemented in Python’s open-source development environment, thus reducing the cost of the system.
A large campaign of measurements was carried out on a test facility, during which eight different electrical loads were powered individually and simultaneously. In particular, variable consumption loads, such as a drill and a laptop, were considered, which are generally among the most difficult for NILM systems to discriminate. The proposed system demonstrated excellent performance, even when trained with a minimum number of samples. In order to provide a comparison against other pre-published literature in the field, works that used similar metrics [62,63,64] were considered. The performances achieved by the cited works, by evaluating the F1-Score, were 91.5%, 93.2%, and 98.0%, respectively. The proposed system outperforms all three systems, as when all training data were provided (20 training samples for each scenario), the F1-Score achieved was 99.0%. It is important to note that the systems proposed in previous studies [62,63] were outperformed, even when the system was trained with the minimum number of samples when the system performance was 94.0%. The system is designed for local operation and is thus oriented toward edge implementation. The final system can be conveniently installed at any household outlet by detecting the presence of appliances connected to the system autonomously and providing data externally, for example, through wireless communication or the ability to download data histories via an SD card. The latter part will therefore be the subject of future research developments. Furthermore, the proposed system allows us to obtain information on which loads are powered in extremely short times (6.09 s in the final configuration of the system). These times were evaluated by considering both the time required to perform the measurement through the SFRA instrument and the time required to perform the prediction via the SVM classifier. Therefore, to ensure real-time operation, the edge system must incorporate multitasking capabilities. Two main tasks can be identified: in the first task, the system acquires and process the data to obtain the SFRA signature; in the second task, the system executes the SVM classifier and become ready to transfer the data over the WiFi network. The task of acquiring data and obtaining the signature, or SFRA trace, takes approximately 6 s, while the time required for processing the signature using the SVM classifier and transferring the data over WiFi (e.g., via an ESP32 module) is negligible and estimated to be around 10 ms based on experimental evaluations. This second task can be performed during the acquisition time of the first task. In fact, considering the first two signature-defining frequencies in the final configuration of the proposed system, namely 10,000 Hz and 11,350 Hz, the time needed for acquiring these initial points of the signature, as described in Section 2, amounts to 12 ms. Thus, under these conditions, the system can maintain real-time operation while meeting the requirements for post-processing and data transmission.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/s23115226/s1, Figure S1: The block diagram of the LabVIEW code.

Author Contributions

Conceptualization, S.M.; software, S.M.; validation, S.M.; investigation, S.M.; writing—original draft preparation, S.M.; writing—review and editing, G.B.; visualization, A.F.; supervision, F.C. and E.F.; project administration, G.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hill, J. The Smart Home: A Glossary Guide for the Perplexed. T3. Retrieved at 27 March 2017, 12 September 2015. [Google Scholar]
  2. Hart, G.W. Non-intrusive appliance load monitoring. Proc. IEEE 1992, 80, 1870–1891. [Google Scholar] [CrossRef]
  3. Bucci, G.; Ciancetta, F.; Fiorucci, E.; Mari, S. Load identification system for residential applications based on the NILM technique. In Proceedings of the IEEE Instrumentation and Measurement Technology Conference I2MTC 2020, Dubrovnik, Croatia, 20–25 May 2020. [Google Scholar]
  4. Dong, R.; Ratliff, L.J.; Ohlsson, H.; Sastry, S.S. Energy disaggregation via adaptive filtering. In Proceedings of the 2013 51st Annual Allerton Conference on Communication, Control, and Computing (Allerton), Monticello, IL, USA, 2–4 October 2013; pp. 173–180. [Google Scholar] [CrossRef]
  5. Egarter, D.; Bhuvana, V.P.; Elmenreich, W. PALDi: Online load disaggregation via particle filtering. IEEE Trans. Instrum. Meas. 2015, 64, 467–477. [Google Scholar] [CrossRef]
  6. Barker, S.; Kalra, S.; Irwin, D.; Shenoy, P. Powerplay: Creating virtual power meters through online load tracking. In Proceedings of the 1st ACM Conference on Embedded Systems for Energy-Efficient Buildings, Memphis, TN, USA, 4–6 November 2014; pp. 60–69. [Google Scholar]
  7. Tang, G.; Wu, K.; Lei, J.; Tang, J. A simple model-driven approach to energy disaggregation. In Proceedings of the 2014 IEEE International Conference on Smart Grid Communications (SmartGridComm), Venice, Italy, 3–6 November 2014; pp. 566–571. [Google Scholar] [CrossRef]
  8. Jia, R.; Gao, Y.; Spanos, C.J. A fully unsupervised non-intrusive load monitoring framework. In Proceedings of the 2015 IEEE International Conference on Smart Grid Communications (SmartGridComm), Miami, FL, USA, 2–5 November 2015; pp. 872–878. [Google Scholar] [CrossRef]
  9. Kolter, J.Z.; Jaakkola, T. Approximate inference in additive factorial hmms with application to energy disaggregation. In Proceedings of the 15th International Conference on Artificial Intelligence and Statistics (AISTATS) 2012, La Palma, Canary Islands, Spain, 21–23 April 2012; pp. 1472–1482. [Google Scholar]
  10. Bucci, G.; Ciancetta, F.; Fiorucci, E.; Mari, S.; Fioravanti, A. Measurements for non-intrusive load monitoring through machine learning approaches. Acta IMEKO 2021, 10, 90–96. [Google Scholar] [CrossRef]
  11. Bucci, G.; Ciancetta, F.; Fiorucci, E.; Mari, S.; Fioravanti, A. Deep Learning applied to SFRA Results: A Preliminary Study. In Proceedings of the 7th International Conference on Computing and Artificial Intelligence ICCAI 2021, Tianjin, China, 23–26 April 2021. [Google Scholar]
  12. Figueiredo, M.; Ribeiro, B.; de Almeida, A. Electrical signal source separation via non-negative tensor factorization using on site measurements in a smart home. IEEE Trans. Instrum. Meas. 2014, 63, 364–373. [Google Scholar] [CrossRef]
  13. Ciancetta, F.; Bucci, G.; Fiorucci, E.; Mari, S.; Fioravanti, A. A New Convolutional Neural Network-Based System for NILM Applications. IEEE Trans. Instrum. Meas. 2020, 70, 9246573. [Google Scholar] [CrossRef]
  14. Bucci, G.; Ciancetta, F.; Fiorucci, E.; Mari, S.; Fioravanti, A. Multi-State Appliances Identification through a NILM System Based on Convolutional Neural Network. In Proceedings of the IEEE Instrumentation and Measurement Technology Conference I2MTC 2021, Glasgow, UK, 17–21 May 2021. [Google Scholar]
  15. Cannas, B.; Carcangiu, S.; Carta, D.; Fanni, A.; Muscas, C. Selection of Features Based on Electric Power Quantities for Non-Intrusive Load Monitoring. Appl. Sci. 2021, 11, 533. [Google Scholar] [CrossRef]
  16. Ruzzelli, A.G.; Nicolas, C.; Schoofs, A.; O’Hare, G.M.P. Real-time recognition and profiling of appliances through a single electricity sensor. In Proceedings of the 2010 7th Annual IEEE Communications Society Conference on Sensor, Mesh and Ad Hoc Communications and Networks (SECON), Boston, MA, USA, 21–25 June 2010; pp. 1–9. [Google Scholar]
  17. 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]
  18. Yang, C.; Soh, C.; Yap, V. A systematic approach in appliance disaggregation using k-nearest neighbours and naive Bayes classifiers for energy efficiency. Energy Effic. 2018, 11, 239–259. [Google Scholar] [CrossRef]
  19. Guedes, J.; Ferreira, D.; Barbosa, B. A non-intrusive approach to classify electrical appliances based on higher-order statistics and genetic algorithm: A smart grid perspective. Electr. Power Syst. Res. 2016, 140, 65–69. [Google Scholar] [CrossRef]
  20. Wang, A.L.; Chen, B.X.; Wang, C.G.; Hua, D. Non-intrusive load monitoring algorithm based on features of V–I trajectory. Electr. Power Syst. Res. 2018, 157, 134–144. [Google Scholar] [CrossRef]
  21. Hassan, T.; Javed, F.; Arshad, N. An empirical investigation of VI trajectory based load signatures for non-intrusive load monitoring. IEEE Trans. Smart Grid 2013, 5, 870–878. [Google Scholar] [CrossRef]
  22. Chang, H.H.; Chen, K.L.; Tsai, Y.P.; Lee, W.J. A new measurement method for power signatures of nonintrusive demand monitoring and load identification. IEEE Trans. Ind. Appl. 2012, 48, 764–771. [Google Scholar] [CrossRef]
  23. Chang, H.H.; Lian, K.L.; Su, Y.C.; Lee, W.J. Power-spectrum-based wavelet transform for nonintrusive demand monitoring and load identification. IEEE Trans. Ind. Appl. 2014, 50, 2081–2089. [Google Scholar] [CrossRef]
  24. Ducange, P.; Marcelloni, F.; Antonelli, M. A novel approach based on finite-state machines with fuzzy transitions for nonintrusive home appliance monitoring. IEEE Trans. Ind. Inform. 2014, 10, 1185–1197. [Google Scholar] [CrossRef]
  25. Gillis, J.M.; Morsi, W.G. Non-intrusive load monitoring using semi-supervised machine learning and wavelet design. IEEE Trans. Smart Grid 2016, 8, 2648–2655. [Google Scholar] [CrossRef]
  26. He, K.; Stankovic, L.; Liao, J.; Stankovic, V. Non-intrusive load disaggregation using graph signal processing. IEEE Trans. Smart Grid 2016, 9, 1739–1747. [Google Scholar] [CrossRef]
  27. Batra, N.; Dutta, H.; Singh, A. INDiC: Improved Non-intrusive Load Monitoring Using Load Division and Calibration. In Proceedings of the 2013 12th International Conference on Machine Learning and Applications, Miami, FL, USA, 4–7 December 2013; pp. 79–84. [Google Scholar] [CrossRef]
  28. Kolter, J.Z.; Batra, S.; Ng, A.Y. Energy Disaggregation via Discriminative Sparse Coding. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 6–9 December 2010. [Google Scholar]
  29. Parson, O.; Ghosh, S.; Weal, M.; Rogers, A. Non-intrusive load monitoring using prior models of general appliance types. In Proceedings of the National Conference on Artificial Intelligence, Toronto, ON, Canada, 22–26 July 2012; pp. 1–8. Available online: http://eprints.soton.ac.uk/id/eprint/336812 (accessed on 1 May 2022).
  30. Kim, H.; Marwah, M.; Arlitt, M.; Lyon, G.; Han, J. Unsupervised disaggregation of low frequency power measurements. In Proceedings of the 2011 SIAM International Conference on Data Mining, SIAM, Mesa, AZ, USA, 28–30 April 2011; pp. 747–758. [Google Scholar]
  31. Paradiso, F.; Paganelli, F.; Giuli, D.; Capobianco, S. Context-based energy disaggregation in smart homes. Future Internet 2016, 8, 4. [Google Scholar] [CrossRef]
  32. Bonfigli, R.; Principi, E.; Fagiani, M.; Severini, M.; Squartini, S.; Piazza, F. Non-intrusive load monitoring by using active and reactive power in additive Factorial Hidden Markov Models. Appl. Energy 2017, 208, 1590–1607. [Google Scholar] [CrossRef]
  33. Makonin, S.; Popowich, F.; Bajić, I.; Gill, B.; Bartram, L. Exploiting HMM sparsity to perform online real-time nonintrusive load monitoring. IEEE Trans. Smart Grid 2015, 7, 2575–2585. [Google Scholar] [CrossRef]
  34. Aiad, M.; Lee, P.H. Unsupervised approach for load disaggregation with devices interactions. Energy Build. 2016, 116, 96–103. [Google Scholar] [CrossRef]
  35. Li, Y.; Peng, Z.; Huang, J.; Zhang, Z.; Son, J.H. Energy disaggregation via hierarchical factorial hmm. In Proceedings of the 2nd International Workshop on Non-Intrusive Load Monitoring, Austin, TX, USA, 3 June 2014; Volume 3, pp. 1–4. [Google Scholar]
  36. Xia, M.; Liu, W.; Wang, K.; Zhang, X.; Xu, Y. Non-Intrusive Load Disaggregation Based on Deep Dilated Residual Network. Electr. Power Syst. Res. 2019, 170, 277–285. [Google Scholar] [CrossRef]
  37. Kaselimi, M.; Protopapadakis, E.; Voulodimos, A.; Doulamis, N.; Doulamis, A. Multi-Channel Recurrent Convolutional Neural Networks for Energy Disaggregation. IEEE Access 2019, 7, 81047–81056. [Google Scholar] [CrossRef]
  38. Zhang, C.; Zhong, M.; Wang, Z.; Goddard, N.; Sutton, C. Sequence-to-point learning with neural networks for non-intrusive load monitoring. In Proceedings of the AAAI Conference on Artificial Intelligence, New Orleans, LA, USA, 2–7 February 2018; pp. 2604–2611. [Google Scholar]
  39. Ahmed, S.; Bons, M. Edge Computed NILM: A Phone-Based Implementation Using MobileNet Compressed by Tensorflow Lite. In Proceedings of the 5th International Workshop on Non-Intrusive Load Monitoring (NILM’20), Association for Computing Machinery, New York, NY, USA, 18 November 2020; pp. 44–48. [Google Scholar]
  40. Kukunuri, R.; Aglawe, A.; Chauhan, J.; Bhagtani, K.; Patil, R.; Walia, S.; Batra, N. EdgeNILM: Towards NILM on Edge Devices. In Proceedings of the 7th ACM International Conference on Systems for Energy-Efficient Buildings, Cities, and Transportation (BuildSys ’20), Association for Computing Machinery, New York, NY, USA, 18–20 November 2020; pp. 90–99. [Google Scholar]
  41. Bonfigli, R.; Felicetti, A.; Principi, E.; Fagiani, M.; Squartini, S.; Piazza, F. Denoising Autoencoders for Non-Intrusive Load Monitoring: Improvements and Comparative Evaluation. Energy Build. 2018, 158, 1461–1474. [Google Scholar] [CrossRef]
  42. Kong, W.; Dong, Z.; Wang, B.; Zhao, J.; Huang, J. A Practical Solution for Non-Intrusive Type II Load Monitoring Based on Deep Learning and Post-Processing. IEEE Trans. Smart Grid 2020, 11, 148–160. [Google Scholar] [CrossRef]
  43. Murray, D.; Stankovic, L.; Stankovic, V.; Lulic, S.; Sladojevic, S. Transferability of Neural Network Approaches for Low-Rate Energy Disaggregation. In Proceedings of the ICASSP 2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Brighton, UK, 12–17 May 2019; pp. 8330–8334. [Google Scholar]
  44. Noury, N.; Berenguer, M.; Teyssier, H.; Bouzid, M.; Giordani, M. Building an index of activity of inhabitants from their activity on the residential electrical power line. IEEE Trans. Inf. Technol. Biomed. 2011, 15, 758–766. [Google Scholar] [CrossRef] [PubMed]
  45. Bucci, G.; Ciancetta, F.; Fiorucci, E. Apparatus for Online Continuous Diagnosis of Induction Motors Based on the SFRA Technique. IEEE Trans. Instrum. Meas. 2020, 69, 4134–4144. [Google Scholar] [CrossRef]
  46. IEC 60076-18:2012; Power Transformers—Part 18: Measurement of Frequency Response. IEC: Geneva, Switzerland, 2012.
  47. IEEE Std C57.149-2012; IEEE Guide for the Application and Interpretation of Frequency Response Analysis for Oil-Immersed Transformers. IEEE: New York, NY, USA, 2013; pp. 1–72. [CrossRef]
  48. Fioravanti, A.; Prudenzi, A.; Bucci, G.; Fiorucci, E.; Ciancetta, F.; Mari, S. Non intrusive electrical load identification through an online SFRA based approach. In Proceedings of the 2020 International Symposium on Power Electronics, Electrical Drives, Automation and Motion (SPEEDAM), Sorrento, Italy, 24–26 June 2020. [Google Scholar]
  49. CEI EN 50160; Power Quality Standard. CEI: Blue Ash, OH, USA, 2020.
  50. D’Innocenzo, F.; Bucci, G.; Dolce, S.; Fiorucci, E.; Ciancetta, F. Power line communication, overview of standards and applications. In Proceedings of the XXI IMEKO World Congress “Measurement in Research and Industry”, Prague, Czech Republic, 30 August–4 September 2015. [Google Scholar]
  51. Géron, A. Hands-on Machine Learning with Scikit-Learn, Keras and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems, 2nd ed.; O’Reilly Media, Inc.: Sebastopol, CA, USA, 2019. [Google Scholar]
  52. Kelly, J.; Knottenbelt, W. Neural NILM: Deep Neural Networks Applied to Energy Disaggregation. In Proceedings of the 2nd ACM International Conference on Embedded Systems for Energy-Efficient Built Environments (BuildSys ’15). Association for Computing Machinery, New York, NY, USA, 4–5 November 2015; pp. 55–64. [Google Scholar] [CrossRef]
  53. Bucci, G.; Ciancetta, F.; Fiorucci, E.; Mari, S.; Fioravanti, A. A Non-Intrusive Load Identification System Based on Frequency Response Analysis. In Proceedings of the 2021 IEEE International Workshop on Metrology for Industry 4.0 & IoT (MetroInd4.0 & IoT), Rome, Italy, 7–9 June 2021; pp. 254–258. [Google Scholar] [CrossRef]
  54. Bishop, C.M. Pattern Recognition and Machine Learning; Springer: New York, NY, USA, 2006. [Google Scholar]
  55. Hofmann, T.; Schölkopf, B.; Smola, A.J. Kernel methods in machine learning. Ann. Statist. 2008, 36, 1171–1220. [Google Scholar] [CrossRef]
  56. Xu, X.; Tsang, I.W.; Xu, D. Soft Margin Multiple Kernel Learning. IEEE Trans. Neural Netw. Learn. Syst. 2013, 24, 749–761. [Google Scholar] [CrossRef]
  57. Dolce, S.; Fiorucci, E.; Bucci, G.; D’Innocenzo, F.; Ciancetta, F.; Di Pasquale, A. Test instrument for the automatic compliance check of cast resin insulated windings for power transformers. Measurement 2017, 100, 50–61. [Google Scholar] [CrossRef]
  58. Anaconda Inc. Anaconda Software Distribution. 2020. Available online: https://www.anaconda.com/distribution/ (accessed on 13 February 2022).
  59. Mari, S.; Bucci, G.; Ciancetta, F.; Fiorucci, E.; Fioravanti, A. Advanced Architecture for Training and Testing NILM Systems. In Proceedings of the IEEE Instrumentation and Measurement Technology Conference I2MTC 2022, Ottawa, ON, Canada, 16–19 May 2022. [Google Scholar]
  60. Makonin, S.; Popowich, F. Nonintrusive load monitoring (NILM) performance evaluation. Energy Effic. 2014, 8, 809–814. [Google Scholar] [CrossRef]
  61. Schaffner Group. Very High Performance Single-Phase Filters; FN 2090 datasheet; Schaffner Group: Luterbach, Switzerland, 2017. [Google Scholar]
  62. Aiad, M.; Lee, P.H. Energy disaggregation of overlapping home appliances consumptions using a cluster splitting approach. Sustain. Cities Soc. 2018, 43, 487–494. [Google Scholar] [CrossRef]
  63. Jain, A.K.; Ahmed, S.S.; Sundaramoorthy, P.; Thiruvengadam, R.; Vijayaraghavan, V. Current peak based device classification in NILM on a low-cost embedded platform using extra-trees. In Proceedings of the 2017 IEEE MIT Undergraduate Research Technology Conference (URTC), Cambridge, MA, USA, 3–5 November 2017; pp. 1–4. [Google Scholar]
  64. Cannas, B.; Carcangiu, S.; Carta, D.; Fanni, A.; Muscas, C.; Sias, G.; Canetto, B.; Fresi, L.; Porcu, P. Real-Time Monitoring System of the Electricity Consumption in a Household Using NILM Techniques. In Proceedings of the 24th IMEKO TC4 International Symposium and 22nd International Workshop on ADC and DAC Modelling and Testing, Palermo, Italy, 14–16 September 2020; pp. 90–95. [Google Scholar]
Figure 1. SFRA applied to a star-connected electric machine.
Figure 1. SFRA applied to a star-connected electric machine.
Sensors 23 05226 g001
Figure 2. SFRA system.
Figure 2. SFRA system.
Sensors 23 05226 g002
Figure 3. Installation of the SFRA in the test system.
Figure 3. Installation of the SFRA in the test system.
Sensors 23 05226 g003
Figure 4. Frequency response of individually powered household appliances.
Figure 4. Frequency response of individually powered household appliances.
Sensors 23 05226 g004
Figure 5. Envelopes of the traces obtained in the presence and absence of the: (a) hairdryer, (b) microwave oven, (c) lamp, (d) laptop, (e) induction hob, (f) heater, (g) drill, and (h) TV.
Figure 5. Envelopes of the traces obtained in the presence and absence of the: (a) hairdryer, (b) microwave oven, (c) lamp, (d) laptop, (e) induction hob, (f) heater, (g) drill, and (h) TV.
Sensors 23 05226 g005aSensors 23 05226 g005b
Figure 6. Representation of a linear classification problem in which the samples are defined by only two features.
Figure 6. Representation of a linear classification problem in which the samples are defined by only two features.
Sensors 23 05226 g006
Figure 7. Representation of a non-linear classification problem in which the examples are defined by only two features.
Figure 7. Representation of a non-linear classification problem in which the examples are defined by only two features.
Sensors 23 05226 g007
Figure 8. The proposed structure.
Figure 8. The proposed structure.
Sensors 23 05226 g008
Figure 9. The SFRA measurement system.
Figure 9. The SFRA measurement system.
Sensors 23 05226 g009
Figure 10. Coupling circuit for the signal generation section.
Figure 10. Coupling circuit for the signal generation section.
Sensors 23 05226 g010
Figure 11. Coupling circuit for the signal acquisition section.
Figure 11. Coupling circuit for the signal acquisition section.
Sensors 23 05226 g011
Figure 12. F1-Scores obtained for each considered sub-band.
Figure 12. F1-Scores obtained for each considered sub-band.
Sensors 23 05226 g012
Figure 13. Graphical comparison of the impact of the number of acquired points on the F1-Score.
Figure 13. Graphical comparison of the impact of the number of acquired points on the F1-Score.
Sensors 23 05226 g013
Figure 14. Graphical comparison of the impact of the number of training samples on the F1-Score.
Figure 14. Graphical comparison of the impact of the number of training samples on the F1-Score.
Sensors 23 05226 g014
Figure 15. The frequency response of the input current to the EMI filter.
Figure 15. The frequency response of the input current to the EMI filter.
Sensors 23 05226 g015
Figure 16. The scheme used for SPICE simulation.
Figure 16. The scheme used for SPICE simulation.
Sensors 23 05226 g016
Table 1. Power supply scenarios.
Table 1. Power supply scenarios.
HairdryerMicrowave OvenLampLaptopInduction hobHeaterDrillTV
1
2x
3 x
4 x
5 x
6 x
7 x
8 x
9 x
10 xx
11x x
12 x x
13 xx x
14x x x
15 x x x
16 xx x
17x xx
18 x x x
19x xx x
20 xxxx
21 x xx
22 xx xx
23x xxx
24 x x xx
Table 2. The results obtained with 480 training samples and 200 points for each sub-band.
Table 2. The results obtained with 480 training samples and 200 points for each sub-band.
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer0001.001.001.00
Microwave Oven0001.001.001.00
Lamp270271.000.920.96
Laptop0001.001.001.00
Induction Hob0001.001.001.00
Heater5500.981.000.99
Drill292900.931.000.97
TV0001.001.001.00
Table 3. Performance evaluation for each sub-band.
Table 3. Performance evaluation for each sub-band.
10–100 kHz
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer989800.751.000.86
Microwave Oven500501.000.830.91
Lamp11096140.780.960.86
Laptop515100.891.000.94
Induction Hob0001.001.001.00
Heater616100.831.000.91
Drill484800.891.000.94
TV0001.001.001.00
100 kHz–1 MHz
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer0001.001.001.00
Microwave Oven0001.001.001.00
Lamp141301110.890.680.77
Laptop9091.000.980.99
Induction Hob599500.970.830.89
Heater5500.981.000.99
Drill116106100.790.980.87
TV0001.001.001.00
1–1.5 MHz
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer2200.991.000.99
Microwave Oven938580.770.970.86
Lamp11501151.000.670.80
Laptop716650.980.840.90
Induction Hob797450.800.980.88
Heater292900.911.000.95
Drill9076140.840.970.90
TV483990.910.980.94
Table 4. The results obtained with 480 training samples and 200 points for each sub-band, using only the first two sub-bands.
Table 4. The results obtained with 480 training samples and 200 points for each sub-band, using only the first two sub-bands.
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer0001.001.001.00
Microwave Oven0001.001.001.00
Lamp290291.000.920.96
Laptop4400.991.000.99
Induction Hob0001.001.001.00
Heater3300.991.000.99
Drill7700.981.000.99
TV0001.001.001.00
Table 5. Performance evaluation as the points acquired decrease.
Table 5. Performance evaluation as the points acquired decrease.
10 kHz–1 MHz (200 Points)
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer0001.001.001.00
Microwave Oven0001.001.001.00
Lamp390391.000.890.94
Laptop0001.001.001.00
Induction Hob0001.001.001.00
Heater2200.991.001.00
Drill5500.991.000.99
TV0001.001.001.00
10 kHz–1 MHz (134 Points)
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer0001.001.001.00
Microwave Oven0001.001.001.00
Lamp260261.000.930.96
Laptop0001.001.001.00
Induction Hob0001.001.001.00
Heater5500.981.000.99
Drill5500.991.000.99
TV0001.001.001.00
10 kHz–1 MHz (100 Points)
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer0001.001.001.00
Microwave Oven0001.001.001.00
Lamp420421.000.880.94
Laptop0001.001.001.00
Induction Hob0001.001.001.00
Heater6600.981.000.99
Drill2200.991.000.99
TV0001.001.001.00
Table 6. Performance evaluation as training samples decrease.
Table 6. Performance evaluation as training samples decrease.
10 kHz–1 MHz (100 Points. 15 Samples for Each Scenario)
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer0001.001.001.00
Microwave Oven0001.001.001.00
Lamp420421.000.880.94
Laptop0001.001.001.00
Induction Hob0001.001.001.00
Heater6600.981.000.99
Drill3300.991.000.99
TV0001.001.001.00
10 kHz–1 MHz (100 Points. 10 Samples for Each Scenario)
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer0001.001.001.00
Microwave Oven0001.001.001.00
Lamp590591.000.830.91
Laptop2021.000.990.99
Induction Hob0001.001.001.00
Heater5500.981.000.99
Drill232120.951.000.97
TV0001.001.001.00
10 kHz–1 MHz (100 Points. 5 Samples for Each Scenario)
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer5500.981.000.99
Microwave Oven0001.001.001.00
Lamp710711.000.800.89
Laptop260261.000.940.97
Induction Hob0001.001.001.00
Heater161600.951.000.97
Drill312920.930.990.96
TV0001.001.001.00
10 kHz–1 MHz (100 Points. 1 Sample for Each Scenario)
Total ErrorsFPFNPrecisionRecallF1-Score
Hairdryer5500.981.000.99
Microwave Oven1100.991.000.99
Lamp12501251.000.640.78
Laptop952930.990.770.87
Induction Hob0001.001.001.00
Heater171700.951.000.97
Drill535300.881.000.94
TV8800.981.000.94
Table 7. Impact of the size of the training set on multi-label classification.
Table 7. Impact of the size of the training set on multi-label classification.
Micro-AverageMacro-Average
Training
Samples for Each Scenario
PrecisionRecallF1-ScorePrecisionRecallF1-Score
200.990.980.990.990.980.99
150.990.980.990.990.980.99
100.990.970.980.990.970.98
50.980.960.970.980.960.97
10.960.920.940.970.920.94
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

Mari, S.; Bucci, G.; Ciancetta, F.; Fiorucci, E.; Fioravanti, A. A New NILM System Based on the SFRA Technique and Machine Learning. Sensors 2023, 23, 5226. https://doi.org/10.3390/s23115226

AMA Style

Mari S, Bucci G, Ciancetta F, Fiorucci E, Fioravanti A. A New NILM System Based on the SFRA Technique and Machine Learning. Sensors. 2023; 23(11):5226. https://doi.org/10.3390/s23115226

Chicago/Turabian Style

Mari, Simone, Giovanni Bucci, Fabrizio Ciancetta, Edoardo Fiorucci, and Andrea Fioravanti. 2023. "A New NILM System Based on the SFRA Technique and Machine Learning" Sensors 23, no. 11: 5226. https://doi.org/10.3390/s23115226

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