<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">EPE</journal-id><journal-title-group><journal-title>Energy and Power Engineering</journal-title></journal-title-group><issn pub-type="epub">1949-243X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/epe.2017.910040</article-id><article-id pub-id-type="publisher-id">EPE-79011</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Optimized Complex Power Quality Classifier Using One vs. Rest Support Vector Machines
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>David</surname><given-names>De Yong</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Sudipto</surname><given-names>Bhowmik</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Fernando</surname><given-names>Magnago</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Universidad Nacional de Río Cuarto, Río Cuarto, Argentina</addr-line></aff><aff id="aff2"><addr-line>Nexant INC, Chandler, AZ, USA</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>fmagnago@ing.unrc.edu.ar(FM)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>08</day><month>09</month><year>2017</year></pub-date><volume>09</volume><issue>10</issue><fpage>568</fpage><lpage>587</lpage><history><date date-type="received"><day>1,</day>	<month>August</month>	<year>2017</year></date><date date-type="rev-recd"><day>9,</day>	<month>September</month>	<year>2017</year>	</date><date date-type="accepted"><day>12,</day>	<month>September</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Nowadays, power quality issues are becoming a significant research topic because of the increasing inclusion of very sensitive devices and considerable renewable energy sources. In general, most of the previous power quality classification techniques focused on single power quality events and did not include an optimal feature selection process. This paper presents a classification system that employs Wavelet Transform and the RMS profile to extract the main features of the measured waveforms containing either single or complex disturbances. A data mining process is designed to select the optimal set of features that better describes each disturbance present in the waveform. Support Vector Machine binary classifiers organized in a “One Vs Rest” architecture are individually optimized to classify single and complex disturbances. The parameters that rule the performance of each binary classifier are also individually adjusted using a grid search algorithm that helps them achieve optimal performance. This specialized process significantly improves the total classification accuracy. Several single and complex disturbances were simulated in order to train and test the algorithm. The results show that the classifier is capable of identifying &gt;99% of single disturbances and &gt;97% of complex disturbances.
 
</p></abstract><kwd-group><kwd>Complex Power Quality</kwd><kwd> Optimal Feature Selection</kwd><kwd> One vs. Rest Support Vector Machine</kwd><kwd> Learning Algorithms</kwd><kwd> Wavelet Transform</kwd><kwd> Pattern Recognition</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The significant increase in the inclusion of devices sensitive to current and voltage fluctuations causes a growing interest in the study of power quality (PQ). A PQ event can be defined as a variation in the regular voltage or current waveform. Some of them can be classified as sags, swells, harmonics, fluctuations, interruptions, and over voltages. IEEE-1159 [<xref ref-type="bibr" rid="scirp.79011-ref1">1</xref>] specifies the characteristics that a waveform must have to be defined as a typical waveform, and classifies different types of disturbances.</p><p>The sources of disturbances are very broad, and cause economic losses as well as equipment degradation, for both consumers as well as utilities [<xref ref-type="bibr" rid="scirp.79011-ref2">2</xref>] . Therefore, it is imperative to employ tools to detect, classify and identify PQ events in order to mitigate these effects. Historically, PQ disturbances were analyzed and classified by visual inspection. Hence, the specialist’s knowledge played a critical role in the classification and mitigation process. The development of digital measuring devices allowed one to have samples of the waveforms of voltage and current in selected measurement locations, however not all acquired data were useful and required large investment of time for proper root cause analysis. Therefore, it became important to have a tool to help in the process of continuous and automatic disturbance detection. Historically several techniques are used for detection and feature extraction. The more prevalent and effective techniques used are Fourier Transform (FT), Fast Fourier Transform (FFT) [<xref ref-type="bibr" rid="scirp.79011-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref3">3</xref>] , Gabor Wigner Transform (GWT) [<xref ref-type="bibr" rid="scirp.79011-ref4">4</xref>] , S-Transform (ST) [<xref ref-type="bibr" rid="scirp.79011-ref5">5</xref>] , Wavelet Transform (WT) [<xref ref-type="bibr" rid="scirp.79011-ref6">6</xref>] , Wavelet Packet Transform (WPT) [<xref ref-type="bibr" rid="scirp.79011-ref7">7</xref>] , Sinusoidal Filter method [<xref ref-type="bibr" rid="scirp.79011-ref8">8</xref>] and Kalman Filter (KF) [<xref ref-type="bibr" rid="scirp.79011-ref9">9</xref>] .</p><p>In the online version of the tool once a PQ event is detected, a set of features are extracted from that waveform in order to reduce the size of the data. This is followed by a classification step in which the classification algorithm links a set of features with appropriate labels that represent the type of disturbance.</p><p>Learning techniques based on artificial intelligent (AI) methods are ideal for this kind of task due to their pattern recognition strength. Several classification algorithms that are appropriate for this are Artificial Neural Networks (ANN) [<xref ref-type="bibr" rid="scirp.79011-ref10">10</xref>] , Markov Models [<xref ref-type="bibr" rid="scirp.79011-ref11">11</xref>] , Fuzzy Logic (FL) [<xref ref-type="bibr" rid="scirp.79011-ref9">9</xref>] and Support Vector Machines (SVM) [<xref ref-type="bibr" rid="scirp.79011-ref12">12</xref>] .</p><p>Due to the varying causes of power disturbances, it is not uncommon to have the two or more types of disturbances within a measured signal window. A disturbance that consists of a combination of two or more individual disturbances is usually called a complex power quality disturbance. Historically these complex disturbances have not been adequately addressed in previous research. Most of the previous work addressed the problem as an addition to single disturbances analysis but not as a particular problem [<xref ref-type="bibr" rid="scirp.79011-ref13">13</xref>] . Thus, the efficiency of properly classifying these types of disturbances varied widely and required systems that do not lend well to practical application.</p><p>For instance, the proposed approach is a multiclass SVM classifier arranged to operate in a One vs Rest architecture, designed to process information in parallel where each classifier defines one class. The main advantages of the proposed methods are: 1) Optimal feature selection, 2) independent parameter configuration for each stage and each class present in the training set vector, 3) parallel data processing, 4) due the binary classifiers work independently of each other, there is no need to incorporate additional stages to classify complex power quality events.</p><p>This paper is organized as follows: Section 2 explains the concept of complex power quality disturbances and presents some previous works that focused on them. In the third Section, a general methodology to design, train and test an SVM classifier is presented. Section 4 explains the experimental test and their results. Finally, Section 5 presents the most important conclusions from the research.</p></sec><sec id="s2"><title>2. Complex Power Quality Disturbances</title><p>A complex power quality event is a particular disturbance that comprises of a combination of two or more single disturbances. The most common complex disturbance is a combination of stationary disturbances such as harmonics or fluctuations with a short duration disturbance such as transient surges or sags. <xref ref-type="fig" rid="fig1">Figure 1</xref> shows an example of this class of complex disturbance.</p><p>In addition, it is also possible to find a combination of short-duration disturbances, for example, transient surges combined with oscillating voltage dips. <xref ref-type="fig" rid="fig2">Figure 2</xref> illustrates an example of this kind of power quality event.</p><p>It is also possible to find complex power quality disturbances as a combination of three or even more single disturbances.</p><p>Complex disturbances increase the difficulty during the identification stage due to the co-existences and overlapping of different disturbance characteristics. This complication may result in an incorrect characteristic determination.</p><p>Some authors addressed these topics by mean different algorithms. For example, authors in [<xref ref-type="bibr" rid="scirp.79011-ref14">14</xref>] , presents a comparison between a back-propagation based classifier with a multi-class One vs. One Support Vector Machine classifier. In this article, the SVM classifier rather than the back-propagation achieves better results for the same scenario with complex disturbances. This however depends on an accurate measurement algorithm on multiple nodes of the grid that is not always feasible due to limitations on the deployment of measuring devices and communications infrastructure.</p><p>Another alternative method is presented in [<xref ref-type="bibr" rid="scirp.79011-ref15">15</xref>] , which proposes the analysis of the signals root mean square (rms) profile to distinguish between different types of PQ events. The identification of transient events is done using WT with four levels of decomposition and the method uses a dynamic ANN to classify harmonics and fluctuations. This method achieves a high percent of correct answers. Although the results are outstanding, the proposed architecture is troublesome. It uses a combination of multiple signal processing techniques and algorithms based on AI. This is typically hard to implement, coordinate and is computationally expensive. Additionally, since the algorithm is based on the WT first coefficient (D<sub>1</sub>), it is highly affected by noise present.</p><p>Biswal, &amp; Dash, [<xref ref-type="bibr" rid="scirp.79011-ref16">16</xref>] , propose a methodology to extract the features based on the ST and a classification technique based on a decision tree. This approach uses seven decision steps to obtain the results and seems to achieve a very high accuracy level for a decision tree based classifier.</p><p>Reference [<xref ref-type="bibr" rid="scirp.79011-ref17">17</xref>] uses Tsallis singular entropy, energy entropy, and a modified incomplete ST to extract features, and a decision tree rule to classify single and complex disturbances. This method achieves goods results. However, the classifier is implemented by a rigid programming structure and involves the calculation of a threshold for each node of the decision tree.</p><p>Contemporary research is increasingly using classifiers based on SVM due to their simplicity. L. Gang, &amp; L. Fanguang present a method [<xref ref-type="bibr" rid="scirp.79011-ref18">18</xref>] that uses WT coefficients’ energy combined with Principal Component Analysis (PCA) and Independent Component Analysis (ICA) in order to extract the main signal features. The classification is performed using SVM. This methodology becomes complicated mainly at the training stage. The method demonstrates that the PCA reduces the matrix dimension, hence, improves the classification stage performance.</p><p>Sovan Dalai [<xref ref-type="bibr" rid="scirp.79011-ref19">19</xref>] proposed a method base on Cross Hilbert-Huang Transform for parameter calculation, PCA to reduce the parameter set, and then a classifier based on a multiclass One vs. Rest SVM. This SVM classifier has a disadvantage of being difficult to train.</p><p>Reference [<xref ref-type="bibr" rid="scirp.79011-ref20">20</xref>] suggests a method based on the Ensemble Empirical Mode Decomposition (EEMD) technique to extract the signals features and a multi-label classification technique named Rank Wavelet Support Vector Machine. It preserves the correlation between different event types, improving the accuracy. However, to cover all characteristic of complex disturbances, the maxim decomposition level number of EEMD is set to 11, which increases the computational cost.</p><p>A strategy that is quite common, but not always the most appropriate when designing the classification stage, is to treat a complex power quality disturbances as a new type of event, assigning in consequence a new class to each type of complex disturbance [<xref ref-type="bibr" rid="scirp.79011-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref16">16</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref19">19</xref>] . The main disadvantage of this method is that it is necessary to pre-identify all the complex disturbances that may occur and then build the training and testing dataset. Any need to incorporate new disturbances (single or complex) requires the classifier to be re-designed and re-trained.</p><p>In addition, most of the previous proposals, the multiclass classifiers are implemented in a one-process unit. This architecture does not allow optimizing the feature extraction based on a particular class. Therefore, they need to use all features to describe all the classes. Furthermore, when it is necessary to add a new class for each additional complex event that wants to be identified, if the classifier is implemented in a one-process unit, the optimization problem could become even more complex.</p><p>Based on the current needs and an evaluation of the different methodologies previously presented it can be inferred that development of new algorithms that can handle both single and complex events, easy to implement as well as train, that allow a class-based optimization, and requires low computation cost is needed [<xref ref-type="bibr" rid="scirp.79011-ref13">13</xref>] . Consequently, the main contribution of this work is the development of a system that addresses the aforementioned needs.</p></sec><sec id="s3"><title>3. Proposed Method</title><p>The proposed method can be explained in two separate stages:</p><p>・ The design and training algorithm.</p><p>・ The classification algorithm.</p><p>The summary of the different steps is presented in <xref ref-type="fig" rid="fig3">Figure 3</xref>. The next few sub-sections briefly explain the objectives of each sub-process that make up the two major stages.</p><sec id="s3_1"><title>3.1. Design and Training Algorithm</title><p>The design and training algorithm’s main objective is to find the configuration that maximizes the classification's accuracy by optimizing the parameters that rule the behaviour of a classifier based on SVM algorithms. The algorithm's input corresponds to a training arrange that consists of the entire set of N disturbance classes that needs to be classified, for example swell, harmonics, sag, etc. The training set is represented by an [m,s] matrix where m is the number of waveforms and s the amount of samples that represent each waveform, parameter that depends on the selected sample rate and the configured length of the analysis windows.</p><p>The algorithm performs a series of calculations in order to extract the optimum set of features that better describes each class of disturbances and to obtain the best configuration of the parameters that govern the accuracy of the learning algorithm.</p><p>For more detail, <xref ref-type="fig" rid="fig4">Figure 4</xref> illustrates the Design and Training algorithm’s flowchart.</p><p>These calculations are explained next:</p><sec id="s3_1_1"><title>3.1.1. Signal Processing</title><p>The objective of this process is to transform the training set waveform vector into equivalent representations in order to simplify the process of detecting the presence of a disturbance. Since the proposed method is focused on real, noisy signals, it is necessary to apply a de-noising technique to mitigate the effect of the noise in the sampled waveforms. Ref [<xref ref-type="bibr" rid="scirp.79011-ref21">21</xref>] demonstrates how a de-noising</p><p>scheme improves the classifier ability. This method also narrows the signal dura- tion to a fixed numbers of fundamental cycles and additionally establishes the best sample rate.</p></sec><sec id="s3_1_2"><title>3.1.2. Feature Extraction</title><p>The information obtained from the sampling process of a representative waveform contains a high percentage of redundant, noisy, and inconsistent information. In order to reduce the data and yet maintain most of the information present in the waveform, feature extraction is typically performed on all the waveforms. A feature is a numeric value obtained from a transformation performed on either the waveform samples or the coefficients obtained from the selected signal processing technique. All the parameters are obtained with the objective of representing some particular characteristic of the original waveform [<xref ref-type="bibr" rid="scirp.79011-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref36">36</xref>] . This is done in two stages.</p><p>The first stage’s objective is to obtain the minimum set of features that characterizes each particular disturbance. It is important to remark that, at this phase of the algorithm, no information about a given class is used to calculate the features. They are selected to represent all classes present in the training set. The original training set, which dimension is [m, s], is reduced to an [m, n] arrangement, called the feature matrix, where s &gt;&gt; n. Since the features are obtained from diverse types of calculations, their dynamic ranges of the finalized parameters are very large. For this reason, the values of every column of the feature matrix are normalized to the region [−1; 1].</p></sec><sec id="s3_1_3"><title>3.1.3. Data Mining</title><p>The feature extraction reduction procedure, presented in Section 3.1.2, is a process that generates an [m, n] matrix obtained from a set of signal waveforms, where n represents every extracted feature from each one of the m waveforms and is not dependent on or attuned to any particular class of disturbances.</p><p>The data mining process is the second stage used to reduce to the dimension of the training set [<xref ref-type="bibr" rid="scirp.79011-ref22">22</xref>] . In this step, the evaluation criteria used to reduce the feature selection, are closely related with every one of the N class included at the original feature set. A subset of j (j &lt; n) features from the original n-dimensional set is obtained for each one of the N classes. This is explained in more detail in Section 4.3.3.</p><p>Two different techniques are sequentially applied to the training set in order to select an optimal feature subset: The heuristic filtering and the exhaustive search algorithm.</p><p>The exhaustive search algorithm involves the training of the classifier employing different feature set combination. The exhaustive search computational cost increases as the amount of features to be processed grows. To reduce the processing load of the exhaustive search algorithm a heuristic filtering stage is previously applied with the objective to separate the most relevant feature set from the original training set. The results of the filtering process serve as input to the exhaustive search algorithm. Next, both stages are briefly explained:</p><p>・ Heuristic Filtering: The proposed filtering stage uses a label vector that maps each class to each row of the original feature matrix in order to calculate a feature ranking for each type of disturbance. The implemented methodology is based on Chi-square attributes feature selection [<xref ref-type="bibr" rid="scirp.79011-ref23">23</xref>] , Relief-F attributes feature selection [<xref ref-type="bibr" rid="scirp.79011-ref24">24</xref>] and Symmetrical Uncertainty feature selection [<xref ref-type="bibr" rid="scirp.79011-ref25">25</xref>] .</p><p>・ These three heuristic techniques build a sorted list that ranks (from the highest to the lowest) which parameter describes a particular class the best. The algorithm combines the results and generates a unique ranking. Then, according to the user criteria, the j most relevant features are selected for each class. Because of this process, N different feature matrices (whose dimensions are [m, j] are generated from the [m, n] original feature matrix.</p><p>・ Exhaustive Search Algorithm: In order to find the optimal combination of the features, an exhaustive search strategy is implemented. It consists of testing the performance of the classifier for all 2<sup>j</sup> possible feature combinations. The j features explored by the algorithm are the ones generated at the heuristic filtering stage. This method is known as a wrapper algorithm [<xref ref-type="bibr" rid="scirp.79011-ref26">26</xref>] because it uses the classification algorithm as part of the feature selection process. The algorithm chooses a combination of the j features and invokes the grid search algorithm (described in the next section). The grid search algorithm returns the best classification accuracy obtained for this feature set and the combination of the classifier parameters that produce the best performance. Then, the exhaustive search algorithm selects a new feature combination and repeats the calculations. The process is repeated until all combinations are tested. The final output of this stage is a table that contains the accuracy and the classifier parameters for each one of all 2j possible feature combinations.</p></sec><sec id="s3_1_4"><title>3.1.4. Grid Search Algorithm</title><p>A grid search algorithm [<xref ref-type="bibr" rid="scirp.79011-ref27">27</xref>] is a well-known technique that employs a cross-validation methodology to find the best combination of the parameters that govern the classifier. For example, the SVM classifier’s behavior is ruled by a combination of two (rarely more) parameters: the box constraint parameter C, and some parameter related with the selected kernel.</p></sec><sec id="s3_1_5"><title>3.1.5. Training</title><p>Finally, the classifier is configured with the results of the grid search algorithm and trained using the features selected by the data mining process.</p><p>A trained and optimized classifier model is the outcome of the of the design and training algorithm.</p><p>In the next section of this paper, we explain how the classification algorithm to identify a disturbance in a measured waveform will use this conceptual model.</p></sec></sec><sec id="s3_2"><title>3.2. Classification Algorithm</title><p>The objective of the classification algorithm is to process a waveform, detect the presence of a disturbance, indicate when the disturbance starts (only for short time disturbances) and classify them into a predefined group.</p><p><xref ref-type="fig" rid="fig5">Figure 5</xref> shows the Classification algorithm’s flowchart that consists of a series of processes that are explained below.</p><sec id="s3_2_1"><title>3.2.1. Signal Processing</title><p>The signal processing techniques applied to train the classifier must be the same as that implemented in the Design and training algorithm (Section 3.1.1).</p></sec><sec id="s3_2_2"><title>3.2.2. Disturbance Detection</title><p>The purpose of this module is to detect the presence of an abnormality in the sampled signal and identify the instant when the power quality disturbance event begins or ends. If no disturbances are detected the classification algorithm discards all samples obtained from the measured waveforms.</p><p>Several methods have been developed to detect a disturbance in a waveform. Methods in reference [<xref ref-type="bibr" rid="scirp.79011-ref26">26</xref>] were used in our classifier.</p></sec><sec id="s3_2_3"><title>3.2.3. Optimized Feature Extraction</title><p>The objective of this step is similar to the method presented in Section 3.1.2. However, this process only extracts the optimum feature set according to the Data Mining process results calculated in the Design and training stage. This reduced subset of features allows faster computation and thus ideal for real-time implementation.</p></sec><sec id="s3_2_4"><title>3.2.4. Classification</title><p>This process uses the trained classifier model obtained from the design and training algorithm, to categorize the set of features extracted in the previous classification algorithm’s stages. This results in a label that indicates which class the measured disturbed waveform belongs to.</p></sec></sec></sec><sec id="s4"><title>4. Experimental Results</title><p>To test the proposed algorithm with Complex Power Quality disturbances a One vs. Rest of five binary SVM classifiers is developed. This section is organized in the following way: The first subsection presents the classifier architecture. Then, a description of the training set used to train and test the classifier is provided. The third subsection presents the techniques employed in the Design and Training algorithm and the respectively obtained results. Finally, the fourth subsection presents the classification results.</p><sec id="s4_1"><title>4.1. Classifier Architecture</title><p>A kernel-based methodology called Support Vector Machine (SVM) is selected to build the classifier. Support Vector Machine mathematical theory can be found in [<xref ref-type="bibr" rid="scirp.79011-ref28">28</xref>] and [<xref ref-type="bibr" rid="scirp.79011-ref39">39</xref>] .</p><p>Different machine learning methods were considered for classification stage: Support Vector Machine (SVM), Probabilistic Neural Network (PNN) and Extreme Learning Machine (ELM).</p><p>SVM method is selected mainly because: It has a strong founding theory; In general, the optimization problem involved in the training reaches the global optimum due to convex quadratic programming; It has no issue for choosing a proper number of parameters; It is less prone to over fitting; Yields more clear results and a geometrical interpretation; Since SVM is trained using dual representations and sparse arrays it is very efficient.</p><p>According to [<xref ref-type="bibr" rid="scirp.79011-ref29">29</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref30">30</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref31">31</xref>] SVM performs better than PNN and algorithms based on k-nearest neighbor.</p><p>In [<xref ref-type="bibr" rid="scirp.79011-ref32">32</xref>] a comparative study between SVM and ELM is performed. According to the author both methods have an outstanding generalization ability but SVM performs better when the training set is small. That is an important attribute in Power Quality problems where it is not easy to have a big database of measured disturbances to configure a training set.</p><p>Another comparative study concludes that ELM and SVM have similar accuracy performance for the most classification problems [<xref ref-type="bibr" rid="scirp.79011-ref33">33</xref>] . According to the author, running times on small datasets show that SVM is the fastest method.</p><p>In [<xref ref-type="bibr" rid="scirp.79011-ref34">34</xref>] a comparison between ELM and SVM over a particular area of classification, i.e. text classification, is conducted. The results of benchmarking experiments with SVM show that for many categories SVM still outperform ELM.</p><p>To test the proposed method, five binary Support Vector Machine classifiers configured in a One vs. Rest architecture is set up as shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><p>Due to their unique architecture, the classifier can classify single as well as complex disturbances without the need of adding new binary classifiers.</p><p>The selected kernel function for each of the five SVM binary classifiers is the Radial Basis Function (RFB) because it proves to be the most appropriate function for pattern recognition [<xref ref-type="bibr" rid="scirp.79011-ref35">35</xref>] . The parameters that rule the SVM training are C, also called box constraint, and Sigma, which governs the kernel function mapping behavior. The simultaneous configuration of both parameters rules the classifier’s accuracy rate.</p></sec><sec id="s4_2"><title>4.2. Training Set Configuration</title><p>To train the classifier, 2600 disturbances were generated using a MATLAB tool developed by the authors [<xref ref-type="bibr" rid="scirp.79011-ref36">36</xref>] .</p><p><xref ref-type="table" rid="table1">Table 1</xref> and <xref ref-type="table" rid="table2">Table 2</xref> summarize the distribution of the training set and the labels assigned to each one of the binary classifiers presented in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Single disturbances training set</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Single Quality Event</th><th align="center" valign="middle" >Total</th><th align="center" valign="middle" >Class</th><th align="center" valign="middle" >Sag</th><th align="center" valign="middle" >Swell</th><th align="center" valign="middle" >Harmonics</th><th align="center" valign="middle" >Interruption</th><th align="center" valign="middle" >Fluctuations</th></tr></thead><tr><td align="center" valign="middle" >Sag</td><td align="center" valign="middle" >400</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td></tr><tr><td align="center" valign="middle" >Swell</td><td align="center" valign="middle" >400</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td></tr><tr><td align="center" valign="middle" >Harmonics</td><td align="center" valign="middle" >400</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td></tr><tr><td align="center" valign="middle" >Interruption</td><td align="center" valign="middle" >400</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td></tr><tr><td align="center" valign="middle" >Fluctuations</td><td align="center" valign="middle" >400</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Complex disturbances training set</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Complex Power Quality Event</th><th align="center" valign="middle" >Total</th><th align="center" valign="middle" >Class</th><th align="center" valign="middle" >Sag</th><th align="center" valign="middle" >Swell</th><th align="center" valign="middle" >Harmonics</th><th align="center" valign="middle" >Interruption</th><th align="center" valign="middle" >Fluctuations</th></tr></thead><tr><td align="center" valign="middle" >Harmonics and Sag</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >3 + 1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td></tr><tr><td align="center" valign="middle" >Harmonics and Swell</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >3 + 2</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td></tr><tr><td align="center" valign="middle" >Harmonics and Interruption</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >3 + 4</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td></tr><tr><td align="center" valign="middle" >Fluctuations and Sag</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >5 + 1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >Fluctuations and Swell</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >5 + 2</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >Fluctuations and Interruption</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >5 + 4</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−1</td><td align="center" valign="middle" >1</td></tr></tbody></table></table-wrap><p>While there is a wide range of disturbances, to simplify the analysis, only a subset that contains the most common types of disturbances is considered in this paper.</p></sec><sec id="s4_3"><title>4.3. Results of the Design and Training Stage</title><p>The following subsections explain the details of the techniques used and the associated results for each process of the stages shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><sec id="s4_3_1"><title>4.3.1. Signal Processing</title><p>To process the simulated or measured waveforms, the sample rate is configured to 10 [Kilo sample/sec]. Snapshots of 400 ms are used to for each waveform’s length, which is equivalent to 20 cycles of an undisturbed signal (assuming a fundamental frequency of 50 Hz).</p><p>Before the selection of Wavelet Transform (WT) as the signal processing methodology, other alternatives were studied. For example Stockwell Transform (ST) and Gabor Transform (GT). Previous work determined that these two signal processing methods perform very well with signals, which include noise. However, WT is better in term of simplicity and computational cost, therefore WT was selected for the signal processing stage [<xref ref-type="bibr" rid="scirp.79011-ref2">2</xref>] .</p><p>A nine-level Discrete Wavelet Transform (DWT) using Daubechies number four wavelet mother was selected [<xref ref-type="bibr" rid="scirp.79011-ref37">37</xref>] .</p><p>To complete the set of relevant features, the root mean square profile calculation is also proposed.</p></sec><sec id="s4_3_2"><title>4.3.2. Feature Extraction</title><p>The feature extraction algorithm calculates the signals rms. profile as well as the nine DWT coefficients of the 2600 waveform of the training set to obtain the parameters presented in <xref ref-type="table" rid="table3">Table 3</xref>. Subsequent stages are used to reduce the number of features that are needed to represent each type of disturbance.</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Complete set of features</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Signal Processing Technique</th><th align="center" valign="middle" >Extracted Feature</th><th align="center" valign="middle" >Nomenclature</th></tr></thead><tr><td align="center" valign="middle"  rowspan="2"  >RMS Profile</td><td align="center" valign="middle" >Minimum RMS Profile</td><td align="center" valign="middle" >Min RMS</td></tr><tr><td align="center" valign="middle" >Maximum RMS Profile</td><td align="center" valign="middle" >Max RMS</td></tr><tr><td align="center" valign="middle"  rowspan="6"  >Wavelet Transform</td><td align="center" valign="middle" >Maximum d<sub>i</sub> module coefficient</td><td align="center" valign="middle" >Max abs d<sub>i</sub></td></tr><tr><td align="center" valign="middle" >Standard Deviation d<sub>i</sub> coefficient</td><td align="center" valign="middle" >Std d<sub>i</sub></td></tr><tr><td align="center" valign="middle" >Normalized Energy d<sub>i</sub> coefficient</td><td align="center" valign="middle" >d<sub>i</sub> Energy</td></tr><tr><td align="center" valign="middle" >Maximum a<sub>9</sub> module coefficient</td><td align="center" valign="middle" >Max abs a<sub>9</sub></td></tr><tr><td align="center" valign="middle" >Standard Deviation a<sub>9</sub> coefficient</td><td align="center" valign="middle" >Std a<sub>9</sub></td></tr><tr><td align="center" valign="middle" >Normalized Energy a<sub>9</sub> coefficient</td><td align="center" valign="middle" >a<sub>9</sub> Energy</td></tr></tbody></table></table-wrap><p>Where i represents the i<sup>th</sup> calculated wavelet level.</p><p>As an output of this process, a [2600, 32] matrix is obtained. This matrix contains all features that characterize each type of disturbance.</p></sec><sec id="s4_3_3"><title>4.3.3. Data Mining</title><p>This section presents the reduced selected features using the techniques elaborated in Section 3.1.3. <xref ref-type="table" rid="table4">Table 4</xref> illustrates the results obtained for the heuristic filtering process.</p><p>From the original [2600, 32] feature matrix, five matrixes were obtained, one for each class of disturbances, whose dimension are equal or less than [2600, 7].</p><p>After the number of features is significantly reduced by the filtering stage, it is important to find which combination of them produces the most accurate percentage in the training and validation stage. <xref ref-type="table" rid="table5">Table 5</xref> shows the results of the exhaustive search algorithm presented in Section 3.1.3.</p><p>To train and test the algorithm performance, 60% of the 2600 disturbances are used for the supervised training of the classifier, while the remaining 40% are employed for the validation process.</p></sec><sec id="s4_3_4"><title>4.3.4. Grid Search Algorithm Results</title><p>The results of the grid search algorithm are presented in <xref ref-type="table" rid="table6">Table 6</xref>. It shows the best parameter combinations that govern each binary SVM stage with the achieved validation accuracy. These parameters combinations are obtained for the feature combination presented in <xref ref-type="table" rid="table5">Table 5</xref>.</p><p>Once the best set of features that represent each disturbance and the optimum parameters C and Sigma that govern each binary SVM classifier is found, the design stage is concluded. Then, each binary classifier is trained using the LibSVM library [<xref ref-type="bibr" rid="scirp.79011-ref38">38</xref>] .</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Heuristic feature filtering results</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >PQ Event</th><th align="center" valign="middle" >Selected Feature</th><th align="center" valign="middle" >Dimension</th></tr></thead><tr><td align="center" valign="middle" >Sag</td><td align="center" valign="middle" >Min RMS, Max RMS, Max abs a<sub>9</sub>, d<sub>7</sub> Energy, Max abs d<sub>5</sub>, Std d<sub>4</sub>.</td><td align="center" valign="middle" >2600 &#215; 6</td></tr><tr><td align="center" valign="middle" >Swell</td><td align="center" valign="middle" >Min RMS, Max RMS, Std d<sub>9</sub>, d<sub>7</sub> Energy, Max abs d<sub>4</sub>, Max abs d<sub>3</sub>, Max abs d<sub>2</sub>.</td><td align="center" valign="middle" >2600 &#215; 7</td></tr><tr><td align="center" valign="middle" >Harmonics</td><td align="center" valign="middle" >Min RMS, Max RMS, Std d<sub>9</sub>, Max abs d<sub>9</sub>, Std d<sub>8</sub>, Max abs d<sub>5</sub>.</td><td align="center" valign="middle" >2600 &#215; 6</td></tr><tr><td align="center" valign="middle" >Interruption</td><td align="center" valign="middle" >Min RMS, Max RMS, Max abs a<sub>9</sub>, Std d<sub>9</sub>, Max Abs d<sub>4</sub>.</td><td align="center" valign="middle" >2600 &#215; 5</td></tr><tr><td align="center" valign="middle" >Fluctuations</td><td align="center" valign="middle" >Min RMS, Max RMS, Max Abs a<sub>9</sub>, Std d<sub>9</sub>, Max abs d<sub>9</sub>, Std d<sub>8</sub>, Max abs d<sub>8</sub>.</td><td align="center" valign="middle" >2600 &#215; 7</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Exhaustive search algorithm results</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >PQ Event</th><th align="center" valign="middle" >Selected Feature</th><th align="center" valign="middle" >Validation Accuracy</th><th align="center" valign="middle" >Dimension</th></tr></thead><tr><td align="center" valign="middle" >Sag</td><td align="center" valign="middle" >Min RMS, Max RMS, Max abs a<sub>9</sub>, Std d<sub>4</sub>.</td><td align="center" valign="middle" >98.8%</td><td align="center" valign="middle" >2600 &#215; 4</td></tr><tr><td align="center" valign="middle" >Swell</td><td align="center" valign="middle" >Min RMS, Max RMS, Std d<sub>9</sub>, Max abs d<sub>2</sub>.</td><td align="center" valign="middle" >99.6%</td><td align="center" valign="middle" >2600 &#215; 4</td></tr><tr><td align="center" valign="middle" >Harmonics</td><td align="center" valign="middle" >Std d<sub>8</sub>, Max abs d<sub>5</sub>.</td><td align="center" valign="middle" >100%</td><td align="center" valign="middle" >2600 &#215; 2</td></tr><tr><td align="center" valign="middle" >Interruption</td><td align="center" valign="middle" >Min RMS.</td><td align="center" valign="middle" >100%</td><td align="center" valign="middle" >2600 &#215; 1</td></tr><tr><td align="center" valign="middle" >Fluctuations</td><td align="center" valign="middle" >Min RMS, Max RMS, Max Abs a<sub>9</sub>, Std D<sub>8</sub>.</td><td align="center" valign="middle" >99.7%</td><td align="center" valign="middle" >2600 &#215; 4</td></tr></tbody></table></table-wrap><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> Grid Search Algorithm results</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >SVM Classifier</th><th align="center" valign="middle" >Sigma</th><th align="center" valign="middle" >C</th><th align="center" valign="middle" >Validation Accuracy</th></tr></thead><tr><td align="center" valign="middle" >1. Sag</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >4000</td><td align="center" valign="middle" >98.8%</td></tr><tr><td align="center" valign="middle" >2. Swell</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >1000</td><td align="center" valign="middle" >99.6%</td></tr><tr><td align="center" valign="middle" >3. Harmonics</td><td align="center" valign="middle" >3.5</td><td align="center" valign="middle" >3000</td><td align="center" valign="middle" >100%</td></tr><tr><td align="center" valign="middle" >4. Interruption</td><td align="center" valign="middle" >1e<sup>−5</sup></td><td align="center" valign="middle" >50</td><td align="center" valign="middle" >100%</td></tr><tr><td align="center" valign="middle" >5. Fluctuations</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >500</td><td align="center" valign="middle" >99.7%</td></tr></tbody></table></table-wrap></sec></sec><sec id="s4_4"><title>4.4. Results of Classifier Algorithm</title><p>To test the classifier architecture designed and optimized by the process presented in Section 4.3, two scenarios are used. In the first scenario, the classifier is tested using a set of single disturbances. On the other hand, the second scenario tests the classifier with a set of complex power quality disturbances.</p><sec id="s4_4_1"><title>4.4.1. Scenario 1: Single Power Quality Events</title><p>Although this paper focuses on complex disturbances analysis, first at all, it is necessary testing the algorithm performance with simple disturbances.</p><p>To test the algorithm, 1000 waveforms are generated, 200 for each type of PQ events. All parameters that govern the disturbances, like magnitude, inception angle, duration, among others, are randomly generated considering the ranges established in [<xref ref-type="bibr" rid="scirp.79011-ref1">1</xref>] .</p><p>The confusion matrix represented in <xref ref-type="table" rid="table7">Table 7</xref> shows the calculated results.</p><p>Analyzing <xref ref-type="table" rid="table7">Table 7</xref>, it can be concluded that the designed classifier performs significantly well because it can correctly classify more than 99.7% of the proposed single disturbances.</p><p>One dataset from the harmonics and interruption set are partially classified as a complex disturbance containing the respective single disturbance. This may be inferred as a partially correct classification.</p></sec><sec id="s4_4_2"><title>4.4.2. Scenario 2: Complex Power Quality Events</title><p>To test the algorithm for a complex power quality scenario, a set 1200 waveforms are generated with a combination of simulated waveforms with real waveforms measured in an oil factory [<xref ref-type="bibr" rid="scirp.79011-ref39">39</xref>] . Similar to scenario 1, the parameters that govern the event are randomly selected.</p><p>The results are summarized in the matrix presented in <xref ref-type="table" rid="table8">Table 8</xref>.</p><p>The values displayed with parenthesis () refer to the event index described in <xref ref-type="table" rid="table7">Table 7</xref>.</p><p>Considering a total of 1200 complex power quality events used to test the algorithm, only 33 were misclassified giving a success rate of 97.25%.</p><p>Analyzing the erroneous classification data set, the classifier was capable of identifying one of the two disturbances that was present in the complex event and thus was partially classified. In other words, 2334 disturbances, from 2400, were correctly classified. Under this consideration the complex power quality accuracy rate reach the 98.583%.</p><table-wrap id="table7" ><label><xref ref-type="table" rid="table7">Table 7</xref></label><caption><title> Single power quality classification results</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ></th><th align="center" valign="middle" >Sag</th><th align="center" valign="middle" >Swell</th><th align="center" valign="middle" >Harmonics</th><th align="center" valign="middle" >Interruption</th><th align="center" valign="middle" >Fluctuations</th><th align="center" valign="middle" >Misclassified</th><th align="center" valign="middle" >Double</th></tr></thead><tr><td align="center" valign="middle" >1. Sag</td><td align="center" valign="middle" >200</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >2. Swell</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >200</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >3. Harmonics</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >198</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1 (2 + 3)</td></tr><tr><td align="center" valign="middle" >4. Interruption</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >199</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1 (4 + 3)</td></tr><tr><td align="center" valign="middle" >5. Fluctuations</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >200</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr></tbody></table></table-wrap><table-wrap id="table8" ><label><xref ref-type="table" rid="table8">Table 8</xref></label><caption><title> Complex power quality classification results</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ></th><th align="center" valign="middle" >Harm. and Sag</th><th align="center" valign="middle" >Harm. and Swell</th><th align="center" valign="middle" >Harm. and Int.</th><th align="center" valign="middle" >Fluct. and Sag</th><th align="center" valign="middle" >Fluct. and Swell</th><th align="center" valign="middle" >Fluct. and Int.</th><th align="center" valign="middle" >Single</th><th align="center" valign="middle" >Triple</th></tr></thead><tr><td align="center" valign="middle" >Harmonics and Sag</td><td align="center" valign="middle" >197</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1 (3)</td><td align="center" valign="middle" >1 (1 + 3 + 5)</td></tr><tr><td align="center" valign="middle" >Harmonics and Swell</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >198</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1 (3)</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >Harmonics and Interruptions</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >194</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >4 (3)</td><td align="center" valign="middle" >1 (3 + 4 + 5)</td></tr><tr><td align="center" valign="middle" >Fluctuation and Sag</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >190</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >10 (5)</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >Fluctuations and Swell</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >189</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >11 (5)</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >Fluctuations and Interruptions</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >199</td><td align="center" valign="middle" >1 (5)</td><td align="center" valign="middle" >0</td></tr></tbody></table></table-wrap></sec><sec id="s4_4_3"><title>4.4.3. Comparative Results</title><p>The accuracy to identify complex power quality disturbances of different methodologies is compared in <xref ref-type="table" rid="table9">Table 9</xref>.</p></sec></sec></sec><sec id="s5"><title>5. Conclusions</title><p>This paper proposes a simple, efficient, fast and easily trainable method to classify single and complex power quality disturbances. The methodology is based on a combination of the Discrete Wavelet Transform (DWT) and the rms profile of each of the measured disturbances for feature extraction: a two-stage method to select the optimum set of representative features that reduce the feature set considerably maximizing the accuracy of the classification. A One vs. Rest multiclass SVM classifier was developed as a binary node array, and it was used to classify the extracted features.</p><p>The proposed methodology does remarkably well in classifying all single disturbances and outperforms most of the contemporary methodologies. The accuracy achieved exceeds those presented in [<xref ref-type="bibr" rid="scirp.79011-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref16">16</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref19">19</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref20">20</xref>] . In addition, the designed method demonstrates that it is possible to identify a significant amount of complex power quality disturbances using only five binary decision stages (one for each single disturbance). This shows that complex disturbances need not be treated as separate classes like the classifiers presented in [<xref ref-type="bibr" rid="scirp.79011-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref16">16</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref19">19</xref>] but can be accurately classified with the same class as the single disturbance. Each binary classifier can be trained and optimized to distinguish both the single as well as the inclusive complex disturbance. This is one of the major contributions of this paper because it makes the classifier simpler, faster and easier to train.</p><table-wrap id="table9" ><label><xref ref-type="table" rid="table9">Table 9</xref></label><caption><title> Comparative results</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Liu Z. [<xref ref-type="bibr" rid="scirp.79011-ref20">20</xref>]</th><th align="center" valign="middle" >EEMD</th><th align="center" valign="middle" >Rank-SVM</th><th align="center" valign="middle" >-</th><th align="center" valign="middle" >95.36</th></tr></thead><tr><td align="center" valign="middle" >Biswall [<xref ref-type="bibr" rid="scirp.79011-ref16">16</xref>]</td><td align="center" valign="middle" >FDST</td><td align="center" valign="middle" >DT</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >98.19</td></tr><tr><td align="center" valign="middle" >Cheng Long Chuang [<xref ref-type="bibr" rid="scirp.79011-ref15">15</xref>]</td><td align="center" valign="middle" >WT</td><td align="center" valign="middle" >DS-ANN</td><td align="center" valign="middle" >ES</td><td align="center" valign="middle" >98.4875</td></tr><tr><td align="center" valign="middle" >Soval Dalai [<xref ref-type="bibr" rid="scirp.79011-ref19">19</xref>]</td><td align="center" valign="middle" >CHT</td><td align="center" valign="middle" >ESVM-PCA</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >97.6</td></tr><tr><td align="center" valign="middle" >Proposed Method</td><td align="center" valign="middle" >WT</td><td align="center" valign="middle" >OvR SVM</td><td align="center" valign="middle" >ES</td><td align="center" valign="middle" >98.588</td></tr></tbody></table></table-wrap><p>EEMD = Ensemble Empirical Mode Decomposition; FDST = Fast Discrete Stockwell Transform; WT = Wavelet Transform; CHT = Cross Hilbert Transform; DT = Decision Tree; DS ANN = Dynamic Structural Neural Network; ICA = Independent Component Analysis; PCA = Principal Component Analysis; OvR SVM = One versus Rest Support Vector Machine; ES = Exhaustive Search.</p><p>This paper also demonstrates that excellent results can be achieved using a small set of features that are appropriately selected. The whole process can be parallelized because each node can be processed independently leading to faster computation times and thus ideal for online real-time implementation.</p><p>When a new complex power quality event needs to be included, the method has to be completely retrained to allow each classifier to consider the new event. This fact represents a weakness of the proposed method, which is shared with most of the algorithms based on linear learning. However, the classification remains robust even with increasing complexity of disturbances present in the signal compared to the ones presented in previous works [<xref ref-type="bibr" rid="scirp.79011-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref16">16</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref17">17</xref>] [<xref ref-type="bibr" rid="scirp.79011-ref19">19</xref>] even though for the 400 ms window of measurement it is relatively rare to have a significant number of events within the sampled signal.</p><p>Future work will focus on finding an optimum training set size that can be present and still provide acceptable results as well as overcoming the need for a full retraining in cases of newer exotic disturbances.</p><p>According to [<xref ref-type="bibr" rid="scirp.79011-ref33">33</xref>] , SVM and ELM have similar accuracy results, therefore, the selection of the most appropriate machine learning algorithm is a problem dependent decision. Future works will focus on comparing the accuracy of both classifiers for Power Quality disturbance classification problem.</p></sec><sec id="s6"><title>Acknowledgments</title><p>The authors wish to thank to Consejo Nacional de Investigaciones Cient&#237;ficas y T&#233;cnicas (CONICET) and Universidad Nacional de R&#237;o Cuarto (UNRC) for their invaluable support.</p></sec><sec id="s7"><title>Cite this paper</title><p>De Yong, D., Bhowmik, S. and Magnago, F. (2017) Optimized Complex Power Quality Classifier Using One vs. Rest Support Vector Machines. Energy and Power Engineering, 9, 568-587. https://doi.org/10.4236/epe.2017.910040</p></sec></body><back><ref-list><title>References</title><ref id="scirp.79011-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">IEEE Std 1159-2009—IEEE Recommended Practice for Monitoring Electric Power Quality. 26 June 2009, c1-81. http://ieeexplore.ieee.org/document/5154067/</mixed-citation></ref><ref id="scirp.79011-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Roscoe, A.J., Burt, G.M. and McDonald, J.R. (2009) Frequency and Fundamental Signal Measurement Algorithms for Distributed Control and Protection Applications. Generation, Transmission &amp; Distribution, 3, 485-495. https://doi.org/10.1049/iet-gtd.2008.0517</mixed-citation></ref><ref id="scirp.79011-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Heydt, G.T., Fjeld, P.S., Liu, C.C., Pierce, D., Tu, L. and Hensley, G. (1999) Applications of the Windowed FFT to Electric Power Quality Assessment. IEEE Transactions on Power Delivery, 14, 1411-1416. https://doi.org/10.1109/61.796235</mixed-citation></ref><ref id="scirp.79011-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Cho, S.-H., Jang, G. and Kwon, S.-H. (2010) Time-Frequency Analysis of Power-Quality Disturbances via the Gabor-Wigner Transform. IEEE Transactions on Power Delivery, 25, 494-499. https://doi.org/10.1109/TPWRD.2009.2034832</mixed-citation></ref><ref id="scirp.79011-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Dash, P.K., Panigrahi, B.K. and Panda, G. (2003) Power Quality Analysis Using S-Transform. IEEE Transactions on Power Delivery, 18, 406-411. https://doi.org/10.1109/TPWRD.2003.809616</mixed-citation></ref><ref id="scirp.79011-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Santoso, S., Powers, E.J., Grady, W.M. and Hofmann, P. (1996) Power Quality Assessment via Wavelet Transform Analysis. IEEE Transactions on Power Delivery, 11, 924-930. https://doi.org/10.1109/61.489353</mixed-citation></ref><ref id="scirp.79011-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Liu, L.Y. and Zeng, Z.Z. (2008) The Detection and Location of Power Quality Disturbances Based on Orthogonal Wavelet Packet Transform. Third International Conference on Electric Utility Deregulation and Restructuring and Power Technologies, Nanjing, 6-9 April 2008, 1831-1835.</mixed-citation></ref><ref id="scirp.79011-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Radil, T., Ramos, P.M. and Serra, A.C. (2008) Detection and Extraction of Harmonic and Non-Harmonic Power Quality Disturbances Using Sine Fitting Methods. 13th International Conference on Harmonics and Quality of Power, Wollongong, 28 September-1 October 2008, 1-6.</mixed-citation></ref><ref id="scirp.79011-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Dash, P.K. and Chilukuri, M.V. (2004) Hybrid S-Transform and Kalman Filtering Approach for Detection and Measurement of Short Duration Disturbances in Power Networks. IEEE Transactions on Instrumentation and Measurement, 53, 588-596. https://doi.org/10.1109/TIM.2003.820486</mixed-citation></ref><ref id="scirp.79011-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">das Merces Machado, R.N., Bezerra, U.H., Pelaes, E.G., de Oliveira, R.C.L. and de Lima Tostes, M.E. (2009) Use of Wavelet Transform and Generalized Regression Neural Network (GRNN) to the Characterization of Short-Duration Voltage Variation in Electric Power System. IEEE Latin America Transactions, 7, 217-222. https://doi.org/10.1109/TLA.2009.5256832</mixed-citation></ref><ref id="scirp.79011-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Jaehak, C., Powers, E.J., Grady, W.M. and Bhatt, S.C. (2002) Power Disturbance Classifier Using a Rule-Based Method and Wavelet Packet-Based Hidden Markov Model. IEEE Transactions on Power Delivery, 17, 233-241. https://doi.org/10.1109/61.974212</mixed-citation></ref><ref id="scirp.79011-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Biswal, B., Biswal, M.K., Dash, P.K. and Mishra, S. (2013) Power Quality Event Characterization Using Support Vector Machine and Optimization Using Advanced Immune Algorithm. Neurocomputing, 103, 75-86. https://doi.org/10.1016/j.neucom.2012.08.031</mixed-citation></ref><ref id="scirp.79011-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Khokhar, S., Mohd Zin, A.A.B., Mokhtar, A.S.B. and Pesaran, M. (2015) A Comprehensive Overview on Signal Processing and Artificial Intelligence Techniques Applications in Classification of Power Quality Disturbances. Renewable and Sustainable Energy Reviews, 51, 1650-1663. https://doi.org/10.1016/j.rser.2015.07.068</mixed-citation></ref><ref id="scirp.79011-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Lin, W.-M., Wu, C.-H., Lin, C.-H. and Cheng, F.-S. (2006) Classification of Multiple Power Quality Disturbances Using Support Vector Machine and One-versus-One Approach. International Conference on Power System Technology, Chongqing, 22-26 October 2006, 1-8. https://doi.org/10.1109/ICPST.2006.321956</mixed-citation></ref><ref id="scirp.79011-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Chuang, C.-L., Lu, Y.-L., Huang, T.-L., Hsiao, Y.-T. and Jiang, J.-A. (2005) Recognition of Multiple PQ Disturbances Using Wavelet-Based Neural Networks—Part 2: Implementation and Applications. Transmission and Distribution Conference and Exhibition: Asia and Pacific, Dalian, 18 August 2005, 1-6.</mixed-citation></ref><ref id="scirp.79011-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Biswal, M. and Dash, P.K. (2013) Detection and Characterization of Multiple Power Quality Disturbances with a Fast S-Transform and Decision Tree Based Classifier. Digital Signal Processing, 23, 1071-1083. https://doi.org/10.1016/j.dsp.2013.02.012</mixed-citation></ref><ref id="scirp.79011-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Liu, Z., Cui, Y. and Li, W. (2015) Combined Power Quality Disturbances Recognition Using Wavelet Packet Entropies and S-Transform. Entropy, 17, 5811. https://doi.org/10.3390/e17085811</mixed-citation></ref><ref id="scirp.79011-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Liu, G., Li, F.G., Wen, G.L., Ning, S.K. and Zheng, S.G. (2013) Classification of Power Quality Disturbances Based on Independent Component Analysis and Support Vector Machine. 2013 International Conference on Wavelet Analysis and Pattern Recognition (ICWAPR), Tianjin, 14-17 July 2013, 115-123.</mixed-citation></ref><ref id="scirp.79011-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Dalai, S., Dey, D., Chatterjee, B., Chakravorti, S. and Bhattacharya, K. (2013) Cross Hilbert-Huang Transform Based Feature Extraction Method for Multiple PQ Disturbance Classification. 2013 IEEE 1st International Conference on Condition Assessment Techniques in Electrical Systems (CATCON), Kolkata, 6-8 December 2013, 314-317. https://doi.org/10.1109/CATCON.2013.6737519</mixed-citation></ref><ref id="scirp.79011-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Liu, Z., Cui, Y. and Li, W. (2015) A Classification Method for Complex Power Quality Disturbances Using EEMD and Rank Wavelet SVM. IEEE Transactions on Smart Grid, 6, 1-1. https://doi.org/10.1109/TSG.2015.2397431</mixed-citation></ref><ref id="scirp.79011-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Yang, H.-T. and Liao, C.-C. (2001) A De-Noising Scheme for Enhancing Wavelet-Based Power Quality Monitoring System. IEEE Transactions on Power Delivery, 16, 353-360. https://doi.org/10.1109/61.924810</mixed-citation></ref><ref id="scirp.79011-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Manimala, K., Selvi, K. and Ahila, R. (2012) Optimization Techniques for Improving Power Quality Data Mining Using Wavelet Packet Based Support Vector Machine. Neurocomputing, 77, 36-47. https://doi.org/10.1016/j.neucom.2011.08.010</mixed-citation></ref><ref id="scirp.79011-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Huan, L. and Setiono, R. (1995) Chi2: Feature Selection and Discretization of Numeric Attributes. 2012 IEEE 24th International Conference on Tools with Artificial Intelligence, Herndon, 5-8 November 1995, 388-391.</mixed-citation></ref><ref id="scirp.79011-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Robnik-&amp;#352;ikonja, M. and Kononenko, I. (2003) Theoretical and Empirical Analysis of ReliefF and RReliefF. Machine Learning, 53, 23-69. https://doi.org/10.1023/A:1025667309714</mixed-citation></ref><ref id="scirp.79011-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Hall, M.A. and Smith, L.A. (1998) Practical Feature Subset Selection for Machine Learning. Department of Computer Science, University of Waikato, Hamilton, New Zealand.</mixed-citation></ref><ref id="scirp.79011-ref26"><label>26</label><mixed-citation publication-type="other" xlink:type="simple">Hall, M.A. and Smith, L.A. (1999) Feature Selection for Machine Learning: Comparing a Correlation-Based Filter Approach to the Wrapper. Department of Computer Science, University of Waikato, Hamilton, New Zealand.</mixed-citation></ref><ref id="scirp.79011-ref27"><label>27</label><mixed-citation publication-type="other" xlink:type="simple">Lin, C.-J. (2010) A Practical Guide to Support Vector Classification. Department of Computer Science, National Taiwan University, Taipei.</mixed-citation></ref><ref id="scirp.79011-ref28"><label>28</label><mixed-citation publication-type="other" xlink:type="simple">Vapnik, V. (1995) The Nature of Statistical Learning Theory, Data Mining and Knowledge Discovery. Springer, Berlin.</mixed-citation></ref><ref id="scirp.79011-ref29"><label>29</label><mixed-citation publication-type="other" xlink:type="simple">Mahela, O.P., Shaik, A.G. and Gupta, N. (2015) A Critical Review of Detection and Classification of Power Quality Events. Renewable and Sustainable Energy Reviews, 41, 495-505. https://doi.org/10.1016/j.rser.2014.08.070</mixed-citation></ref><ref id="scirp.79011-ref30"><label>30</label><mixed-citation publication-type="other" xlink:type="simple">Kalatzis, I., Piliouras, N., Ventouras, E., Papageorgiou, C.C., Rabavilas, A.D. and Cavouras, D. (2003) Comparative Evaluation of Probabilistic Neural Network versus Support Vector Machines Classifiers in Discriminating ERP Signals of Depressive Patients from Healthy Controls. Proceedings of the 3rd International Symposium on Image and Signal Processing and Analysis, 18-20 September 2003, 981-985. https://doi.org/10.1109/ISPA.2003.1296422</mixed-citation></ref><ref id="scirp.79011-ref31"><label>31</label><mixed-citation publication-type="other" xlink:type="simple">Modaresi, F. and Araghinejad, S. (2014) A Comparative Assessment of Support Vector Machines, Probabilistic Neural Networks, and K-Nearest Neighbor Algorithms for Water Quality Classification. Water Resources Management, 28, 4095-4111. https://doi.org/10.1007/s11269-014-0730-z</mixed-citation></ref><ref id="scirp.79011-ref32"><label>32</label><mixed-citation publication-type="other" xlink:type="simple">Liu, X., Gao, C. and Li, P. (2012) A Comparative Analysis of Support Vector Machines and Extreme Learning Machines. Neural Networks, 33, 58-66. https://doi.org/10.1016/j.neunet.2012.04.002</mixed-citation></ref><ref id="scirp.79011-ref33"><label>33</label><mixed-citation publication-type="other" xlink:type="simple">Chorowski, J., Wang, J. and Zurada, J.M. (2014) Review and Performance Comparison of SVM- and ELM-Based Classifiers. Neurocomputing, 128, 507-516. https://doi.org/10.1016/j.neucom.2013.08.009</mixed-citation></ref><ref id="scirp.79011-ref34"><label>34</label><mixed-citation publication-type="other" xlink:type="simple">Liu, Y., Loh, H.T. and Tor, S.B. (2005) Comparison of Extreme Learning Machine with Support Vector Machine for Text Classification. The Proceedings of the 18th International Conference on Innovations in Applied Artificial Intelligence, Bari, 22-24 June 2005, 390-399. https://doi.org/10.1007/11504894_55</mixed-citation></ref><ref id="scirp.79011-ref35"><label>35</label><mixed-citation publication-type="other" xlink:type="simple">Hsu, C.-W. and Lin, C.-J. (2002) A Comparison of Methods for Multiclass Support Vector Machines. IEEE Transactions on Neural Networks, 13, 415-425. https://doi.org/10.1109/72.991427</mixed-citation></ref><ref id="scirp.79011-ref36"><label>36</label><mixed-citation publication-type="other" xlink:type="simple">De Yong, D., Reineri, C. and Magnago, F. (2013) Educational Software for Power Quality Analysis. IEEE Latin America Transactions, 11, 479-485. https://doi.org/10.1109/TLA.2013.6502849</mixed-citation></ref><ref id="scirp.79011-ref37"><label>37</label><mixed-citation publication-type="other" xlink:type="simple">Eri&amp;#351;ti, H., Y&amp;#236;l&amp;#236;r&amp;#236;m, &amp;#214;., Eri&amp;#351;ti, B. and Demir, Y. (2013) Optimal Feature Selection for Classification of the Power Quality Events Using Wavelet Transform and Least Squares Support Vector Machines. International Journal of Electrical Power &amp; Energy Systems, 49, 95-103. https://doi.org/10.1016/j.ijepes.2012.12.018</mixed-citation></ref><ref id="scirp.79011-ref38"><label>38</label><mixed-citation publication-type="other" xlink:type="simple">Chang, C.-C. and Lin, C.-J. (2011) LIBSVM: A Library for Support Vector Machines. ACM Transactions on Intelligent Systems and Technology, 2, 1-27. https://doi.org/10.1145/1961189.1961199</mixed-citation></ref><ref id="scirp.79011-ref39"><label>39</label><mixed-citation publication-type="other" xlink:type="simple">De Yong, D., Bhowmik, S. and Magnago, F. (2015) An Effective Power Quality classifier using Wavelet Transform and Support Vector Machines. Expert Systems with Applications, 42, 6075-6081. https://doi.org/10.1016/j.eswa.2015.04.002</mixed-citation></ref></ref-list></back></article>