{'fraction_non_alphanumeric': 0.022427528954944098, 'fraction_numerical': 0.01057775992501841, 'mean_word_length': 4.944289693593315, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Non-Intrusive Load Identification Model Based on 3D Spatial Feature and Convolutional Neural Network

Load identification method is one of the major technical difficulties of non-intrusive composite monitoring. Binary V-I trajectory image can reflect the original V-I trajectory characteristics to a large extent, so it is widely used in load identification. However, using single binary V-I trajectory feature for load identification has certain limitations. In order to improve the accuracy of load identification, the power feature is added on the basis of the binary V-I trajectory feature in this paper. We change the initial binary V-I trajectory into a new 3D feature by mapping the power feature to the third dimension. In order to reduce the impact of imbalance samples on load identification, the SVM SMOTE algorithm is used to balance the samples. Based on the deep learning method, the convolutional neural network model is used to extract the newly produced 3D feature to achieve load identification in this paper. The results indicate the new 3D feature has better observability and the proposed model has higher identification performance compared with other classification models on the public data set PLAID.


Introduction
With the continuous innovation of load identification related technologies, Energy and Power Engineering non-intrusive load monitoring systems will also be widely used in the power management side and the residential user domain. NILM was proposed by Hart as early as the 1980s, whose core is to disaggregate the load power consumption [1]. As one of the important components of NILM, many scholars have proposed many methods in the study of non-intrusive load identification. The methods commonly used include mathematical methods [2] [3], machine learning [4] [5], and optimization algorithms [6] [7]. With the rapid development of deep learning technology, many experts and scholars apply it to non-invasive load identification and have achieved excellent results. Reference [8] proposes a load identification method based on Recurrent Neural Networks (RNN) model, which memorizes historical input features, establishes the internal relationship between input mapping and output, and realizes reliable identification of load feature tags. Reference [9] proposes a NILM-based energy management system for appliance-level load monitoring service and a convolution neural network based on differential input. The experiment results show that the proposed network with small size achieves better effect than other comparative models. A resident electricity load identification algorithm based on convolution neural network (CNN) is studied [10]. The algorithm turns the method based on current vector feature extraction to the method of extracting current picture features during appliance operation. The CNN model is established and trained for typical household appliance loads through load operation current to achieve the purpose of identification.
Compared with optimization algorithm and machine learning, neural network has better observation ability in processing high-dimensional data features.
Therefore, a non-intrusive load identification model based on 3D convolution neural network in the background of non-intrusive load monitoring is proposed in the paper. Firstly, aiming at the problem that the binary V-I trajectory image cannot reflect the power characteristics of the loads, a new feature is produced by mapping the power P to the third dimension, i.e., add the third dimension to the binary V-I trajectory image to make it a 3D feature. The new 3D feature includes current, voltage and power characteristics, which have better observability than binary V-I trajectory image. Then, through using the feature extraction function of 3D convolutional neural network, the new feature is flattened into one-dimensional feature, that is, the three-dimensional spatial feature is transformed into one-dimensional array, which is convenient for later load identification. Finally, the experimental results show that the new 3D feature have better observability and the proposed model has higher identification performance compared with other classification models on the public data set PLAID.

Processing of Imbalance Data Sets and Identifiable
Feature Selection

Introduction of Data Sets Used
This paper uses the public data set PLAID to train and evaluate the model [11]. Energy and Power Engineering Oversampling technique is a method commonly used for equalizing unbalanced data sets, but there are some noise samples near the majority and minority samples in practical problems. If the minority samples are oversampled in the case, more noise samples will be generated, which will mislead the classifier and reduce the classification accuracy. The difficulty of oversampling technology is how to deal with noise data so that the distribution of new data is similar to that of original data, thus improving the classification accuracy.

SVM SMOTE Algorithm
Aiming at the problems of data distribution marginalizing and classification boundary blurring in traditional SMOTE, the boundary region can be focused to achieve better classification performance. Using boundary samples is essential to estimate the best classification boundary. Therefore, only the minority samples need to be synthesized along the classification boundary during oversampling, instead of sampling all minority samples. Therefore, a method based on the support vector machine (SVM) synthetic minority over-sampling technique (SMOTE) is employed in this paper, and the boundary region is the support vector approximation obtained after the SVM classifier is trained on the initial training set [12].
SVM SMOTE selects different decision mechanisms to synthesize minority samples according to the density of the majority samples in the minority support vector. Suppose the number of majority samples is k among the K nearest neighbor samples of minority sample i ρ . If k K = , then i ρ is considered as a noise sample and needs to be reselect again.
The essence of the SVM SMOTE algorithm is based on the oversampling of the support vector. In order to improving the accuracy of classification, near the classification boundary of the support vector, the minority samples are generated according to the decision-making mechanism and expanded to areas where Energy and Power Engineering the majority samples density is not high. The distribution of sample data before and after SVM SMOTE processing is listed in Table 1.
Where label 1 means Air Conditioner, label 2 means Compact Fluorescent Lamp, label 3 means Fan, label 4 means Fridge, label 5 represents Hairdryer, label 6 indicates the Heater, label 7 indicates the Incandescent Light Bulb, label 8 indicates the Laptop, label 9 represents Microwave, label 10 means Vacuum, and label 11 indicates the Washing Machine.
The minority samples are expanded, and the initial samples are increased to 1925 after the unbalanced data is processed by the SVM SMOTE method, where the number of samples for each type of electrical appliances is 175 respectively.

Binary Voltage-Current Trajectory
The binary V-I trajectory feature maps the initial V-I trajectory to a matrix with a certain size, which can almost reflect the features of the initial V-I trajectory image. Power feature is one of important parameters that reflects load characteristic. However, the V-I trajectory image cannot reflect the power characteristics of the appliances. In order to improve the accuracy of load identification, we add the power feature P on the basis of the binary V-I trajectory feature.

Power Characteristic
Since the sampling signal of binary voltage-current trajectory image is high-frequency voltage and current data, it is necessary to obtain the active power of the household loads during steady-state operation according to the high-frequency discrete sampling data [13]. FFT is employed to extract the power characteristics of the appliances in this paper [14].
In this paper, the sampling number of voltage and current signals in a steady-state period is 500 M = . Suppose the k-order frequency domain signal after FFT is ( ) ( ) j ( ) S k a k b k = + , and its modulus are ( ) S k and phase angle are arg( ( )) S k . The effective value of different orders voltage and current and phase angle are where ( where ω is the angular frequency. The average active power is

New 3D Feature
Inspired by the binary V-I trajectory, a new feature is produced by mapping the power feature P to the third dimension, i.e., we change the initial binary V-I trajectory into a 3D object. The acquisition method of new 3D feature is as follows. 1) Collect the high frequency voltage and current waveforms of the device during a steady-state cycle and the power characteristics of the device after FFT processing. It is assumed that there are p sampling points in a period and the 3D feature is composed of a spatial shape with the size of q q q × × .

The Overview of 3D-CNN
The huge advancements achieved using CNN on 3D objects [15] [16] and other Energy and Power Engineering fields, which inspires us to discuss in this orientation. CNN can directly encode the spatial structure of the input, that is, the plane and angle of a 3D object associated with different directions and positions. In addition, CNN can stack multiple layers to make hierarchies including complex features about 3D regions and ultimately provides a global label for 3D input. Moreover, well-trained CNN models can be easily deployed to hardware platforms to perform inference by only using a feed-forward propagation which is very effective for classification.

3D CNN Configuration
In order to train the 3D CNN on our newly produced feature, we have designed a network architecture as shown in Figure 2. The input to the network is 28 28 28 × × as illustrated in Section 3. There are 2 convolutional layers, 2 max pooling layers, 2 fully connected layers and a softmax layer producing the output. Furthermore, we also add a dropout layer and a flatten layer. The filter with size of 3 3 3 × × and stride length of 1 are configured on the convolutional layers and padding uses "same" strategy. The max pooling with size 2 2 2 × × and stride length of 2 is set on pooling layer. In the configuration, the first convolutional layer produces 12 feature blocks with size 28 3 and the second convolutional layer produces 24 feature blocks with size 14 3 . Likewise, the first pooling layer obtains 12 feature blocks with size 14 3 and the second pooling layer obtains 24 feature blocks with size 7 3 . After that we add 2 fully connected layer to produce 11 units and the final output gives the probability for different classes based on the input. An optimization algorithm, adaptive moment estimation (Adam) [17], is used for training the 3D-CNN model. The learning rate for the training of the network is 0.0001.

Evaluation Metrics
In this paper, the accuracy and confusion matrix are used to evaluate the identification results. The accuracy rate represents the proportion of the number of Energy and Power Engineering where the total n is the total number of samples in the test set and the ture n is the number of correctly identified samples.

Analysis of Experimental Results
Confusion matrix is widely used because it can intuitively reflect the effect of model classification, the darker the main diagonal color is, the higher the accuracy of model recognition is in the figure. The confusion matrix when using different features is shown in Figure 3, where the accuracy of load identification using power feature is 0.762, the accuracy of load identification using binary V-I trajectory feature is 0.834, and the accuracy of load identification using 3D feature is 0.949. It is obvious from the figure that the accuracy of load identification using three-dimensional features is higher than that of using the other two single features. This is because the 3D feature combines the binary V-I trajectory feature and power feature to make it have higher identifiability. Compared with the two single features, it can be seen from the figure that 3D feature makes the model have better identification performance as well, and can completely identify samples 2, 6, 10, and 11.
In order to further explore the load identification ability of each classification algorithm and the effectiveness of the 3D feature, the experiments are conducted with different classification models and different load features, and the results are shown in

Conclusions
With the development of non-invasive load monitoring and the wide application of deep learning, the improvement of load identification model and algorithm is promoted. In the paper, a non-intrusive load identification model based on 3D convolution neural network in the background of non-intrusive load monitoring is proposed. The conclusions are as follows.
1) Imbalance samples will cause deviations in model identification accuracy. Therefore, an oversampling technique based on SVM SMOTE algorithm is applied to process the imbalance samples by taking the category with the majority samples as the standard. The minority samples are expanded, and the initial samples are increased from 1074 to 1925 by the method, which makes load identification effect of the model better by keeping the minority samples and the majority samples in balance.
2) The binary V-I trajectory feature maps the initial V-I trajectory to a matrix with a certain size, which can almost reflect the features of the initial V-I trajectory image. This method not only reduces the data dimension but also discards some redundant data, which makes it easier to reflect the discrepancies of characteristics of different appliances. Power feature is one of important parameters that reflects load characteristic. However, the V-I trajectory image cannot reflect the power characteristics of the appliances. In order to improve the accuracy of load identification, we adopt the power feature P on the basis of the binary V-I trajectory feature by adding the third dimension to the binary V-I trajectory image to make it a 3D feature. In order to explore whether 3D features make the load identification models more generalized, comparison experiments with other one-dimensional features and binary V-I trajectory image are performed, and the results showed that the new features have better observability.
3) CNN has good generalization ability for high-dimensional features. Because CNN can extract effective characteristics from high-dimensional features through its convolution layer and pooling layer, and finally high-dimensional features are flattened into one-dimensional features by flatten layer, which is beneficial for later load identification. The results show that CNN has better accuracy on high-dimensional features by comparing with other classification models.