<?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">AJCM</journal-id><journal-title-group><journal-title>American Journal of Computational Mathematics</journal-title></journal-title-group><issn pub-type="epub">2161-1203</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ajcm.2017.73022</article-id><article-id pub-id-type="publisher-id">AJCM-78596</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Wavelets and Entropy for Power Quality Assessment
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Eduardo</surname><given-names>Antonio Cano-Plata</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Armando</surname><given-names>J. Ustariz-Farfán</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>Jorge</surname><given-names>H. Estrada-Estrada</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Electrical, Electronic and Computer Engineering, Universidad Nacional de Colombia, Manizales, Colombia</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>eacanopl@unal.edu.co(EAC)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>01</day><month>08</month><year>2017</year></pub-date><volume>07</volume><issue>03</issue><fpage>276</fpage><lpage>290</lpage><history><date date-type="received"><day>18,</day>	<month>July</month>	<year>2017</year></date><date date-type="rev-recd"><day>16,</day>	<month>August</month>	<year>2017</year>	</date><date date-type="accepted"><day>21,</day>	<month>August</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>
 
 
  In this paper, wavelet transform and entropy are evaluated using the mathematical analysis concepts of reflexibility, regularity and series obtention, th
  e
  s
  e
   concept
  s
   remark the reason to make a selective reference framework for power quality applications. W
  ith
   this idea the paper used the same treatment for the two algorithms (Multiresolution and Multiscale Entropy). The wavelet is denoted to have the most power full consistence to the light off the reflexibility, regularity and series obtention. The paper proposes a power quality technique namely M<sub>pq</sub>AT.
 
</p></abstract><kwd-group><kwd>Wavelets</kwd><kwd> Entropy</kwd><kwd> Reflexibility</kwd><kwd> Regularity</kwd><kwd> Multiresolution</kwd><kwd> Multiscale</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The natural harmony of Fourier’s analysis in the Hilbert space is demonstrated by Riesz-Fischer’s [<xref ref-type="bibr" rid="scirp.78596-ref1">1</xref>] and Plancherel’s [<xref ref-type="bibr" rid="scirp.78596-ref2">2</xref>] theorems. In this harmony, three concepts are summarized: reflexibility, regularity and series obtention.</p><p>These three concepts are intended to be shown in two ways, firstly, using wavelet transformation, and secondly, through numerical entropy.</p><p>In [<xref ref-type="bibr" rid="scirp.78596-ref1">1</xref>] an approximation of the n-dimensional wavelet transform was shown through heuristic treatment. Following the same methodology, this article aims to show coincidences between the two methods (in wavelets and entropy) highlighting the following three basic concepts: reflexibility, regularity and series obtention. The orientation of these three concepts determines the way that engineers approach definitions for quality concepts.</p><p>In particular, power quality allows identifying the health state of a power system by means of applying processes signal techniques to current and voltage waveforms. Therefore, power quality is used as the concept with which the achieved definition will be tested.</p></sec><sec id="s2"><title>2. Wavelet Transform</title>Definition 1<p>Function φ ∈ L 2 ( R ) is called an orthogonal wavelet, if the family { φ j k = 2 j / 2 φ ( 2 j x − k ) , j , k ∈ Z } is an orthonormal basis of L<sup>2</sup>(R), this is if</p><p>〈 ϕ j k , ϕ e m 〉 = δ j l δ k m = { 0         si     j ≠ l     or     k ≠ m 1           si     j = l     and     k = m (1)</p><p>So, if φ it is an orthonormal wavelet, and if f ( x ) ∈ L 2 ( R ) consequently the wavelet series is:</p><p>f ( x ) = ∑ j , k = − ∞ ∞ C j k ϕ j k ( x ) = ∑ j = − ∞ ∞ ∑ k = − ∞ ∞ C j k ϕ j k ( x ) (2)</p><p>Then</p><p>C j k = 〈 f , ϕ j k 〉 〈 ϕ j k , ϕ j k 〉 = 〈 f , ϕ j k 〉 (3)</p><p>that is</p><p>C j k = ∫ − ∞ ∞ f ( x ) ϕ j k &#175; d x C j k = ∫ − ∞ ∞ f ( x ) 2 j / 2 ϕ ( 2 j x − k ) d x C j k = ( 2 j ) 1 / 2 ∫ − ∞ ∞ f ( x ) ϕ ( x − k / 2 j 2 − j ) &#175;     d x C j k = ( 2 − j ) − 1 / 2 ∫ − ∞ ∞ f ( x ) ϕ ( x − k / 2 j 2 − j ) &#175;     d x (4)</p><p>Then: wavelet transform relative to basic wavelet φ, like the function:</p><p>C W T f ( a , b ) = | a | − 1 / 2 ∫ − ∞ ∞ f ( x ) ϕ ( x − b a ) &#175;     d x (5)</p><p>And thus the C<sub>jk</sub> parts of the wavelet series are obtained from the wavelet transform for:</p><p>b = k 2 j , a = 1 2 j (6)</p><p>The demonstration can be seen in [<xref ref-type="bibr" rid="scirp.78596-ref3">3</xref>] .</p></sec><sec id="s3"><title>3. Entropy</title><p>From the point of view of physical, entropy is the concept that measures the tendency towards disorder in nature. This concept has had an important development in the applications derived from it, for example: evaluation of the efficiency in electric motors or power systems. Philosophically, the concept has been used, given the implications for understanding of natural elements and their interaction with life.</p><p>With regard to information, entropy has made information visible as a message, which must generate a link between sender and receiver by means of propagation or transmission (whether physical or abstract). This characterizes the degree of difficulty in nature as the goal of entropy. That is, these difficulties are noise, interruptions, etc.</p><p>They are disturbances in the message during transmission, and can represent loss of information as a result of system conditions, conformed by the source, transmitter and receiver.</p><p>In this particular case, the tendency to decrease information can be visualized as loss or disorder, and so, it is visualized as a form of entropy [<xref ref-type="bibr" rid="scirp.78596-ref4">4</xref>] .</p>Information Entropy<p>Information Entropy is also known as “Shannon’s entropy”. The coding theorem focuses its attention on random behavior of nature, such as disturbing elements or noise [<xref ref-type="bibr" rid="scirp.78596-ref5">5</xref>] .</p><p>It is said that an extensive property is one that we can define through the analysis of systems composed by other subsystems; the properties of large systems require varying slopes.</p><p>Entropy is an extensive property. The information contained in two information channels should equal the sum of the information carried by the two channels individually [<xref ref-type="bibr" rid="scirp.78596-ref6">6</xref>] .</p><p>Entropy is defined as a measure of uncertainty for a random variable [<xref ref-type="bibr" rid="scirp.78596-ref5">5</xref>] .</p><p>Shannon’s entropy H(X) is defined as:</p><p>H b ( X ) = − ∑ x ∈ Θ p ( x i ) log b p ( x i ) (7)</p><p>where X represents the random variable with Θ set of values, and probability density function p ( x i ) = P { X = x i } , x i ∈ Θ . The equation is generally calculated in binary logarithm. In this case, entropy is expressed in (for example, the entropy of throwing a die is 0.1870 bits). Note that – p log ( p ) ≥ 0 because 0 ≤ p ≤ 1 , therefore, entropy is strictly positive, as observed in reference [<xref ref-type="bibr" rid="scirp.78596-ref4">4</xref>] . If we change the base of the Neperian logarithm i.e.: e, the entropy is measured in nats [<xref ref-type="bibr" rid="scirp.78596-ref7">7</xref>] .</p><p>For a time series representing the output of a stochastic process, which is an ordered sequence of n random variables { X i } = { X 1 , ⋯ , X n } , with a set of values Θ 1 , ⋯ , Θ n respectively, n- dimensional entropy is defined as:</p><p>H n = − ∑ x 1 ∈ Θ 1 ⋯ ∑ x n ∈ Θ n p ( x 1 , ⋯ , x n ) log p ( x 1 , ⋯ , x n ) (8)</p><p>where p ( x 1 , ⋯ , x n ) is the joint probability for n variables X 1 , ⋯ , X n .</p><p>The state of a system at a certain moment X<sub>n</sub>, is partly determined by its history, X<sub>n</sub>, X 2 , ⋯ , X n − 1 . However, each new state of the system brings a certain amount of new information with it.</p></sec><sec id="s4"><title>4. Coexistence of Reflexibility</title><p>Theorem 1: Reflexibility:</p><p>Let E be a Hilbert space, with E' as its dual. Denoted by the duality between E’, E and ‖   .   ‖ ∗ the dual norm of ‖   .   ‖ E , then Riesz’s theorem, better known as the concept of reflexibility, says:</p><p>If f &#206; E' a unique element, u<sub>f</sub> &#206; E, exists, such that:</p><p>Part A:</p><p>{ 〈 f , v 〉 = ( v , u f ) E ∀ v ∈ E ‖ f ‖ * = ‖ u f ‖ E (9)</p><p>Similarly, each element of u &#206; E defines an element of f<sub>n</sub> &#206; E' such that:</p><p>Part B:</p><p>{ 〈 f u , v 〉 = ( v , u ) E ∀ v ∈ E ‖ f u ‖ * = ‖ u ‖ E (10)</p><sec id="s4_1"><title>4.1. The Theorem for Wavelet Transform</title><p>This is constituted by the following definition:</p><p>Part A:</p><p>C W T f ( a , b ) = | a | − 1 / 2 ∫ − ∞ ∞ f ( x ) ϕ ( x − b a ) &#175;     d x (11)</p><p>Part B:</p><p>Involves demonstrating the existence of the inverse transform [<xref ref-type="bibr" rid="scirp.78596-ref2">2</xref>] .</p></sec><sec id="s4_2"><title>4.2. The Theorem for Information Entropy</title><p>This is constituted by definition:</p><p>H b ( X ) = − ∑ x ∈ Θ p ( x i ) log b p ( x i ) (12)</p><p>But the sample is not recoverable; it cannot be obtained its inverse transformation, and there is no recoverable application.</p></sec></sec><sec id="s5"><title>5. Characterization of Regularity</title><p>The Parseval theorem and the central limit: by definition, regularity indicates the variation of a number, with respect to its mean.</p><sec id="s5_1"><title>5.1. The Parseval Identity as It Relates to Wavelet Transform</title><p>In wave transformation, it is used to characterize the regularity of f in L<sup>2</sup>, as measured by the Sobolev norm, which indicates the Parseval identity.</p><p>In other words:</p><p>Applying the Parseval identity:</p><p>∫ − ∞ ∞ ∫ − ∞ ∞ | C W T f ( a , b ) | 2 ⋅ d a d b a 2 = ∫ − ∞ ∞ ( 1 2π ∫ − ∞ ∞ | P ( ω ) | 2 d ω ) d a | a | ∫ − ∞ ∞ ( 1 2 π ∫ − ∞ ∞ | Ψ ∗ ( a ω ) | 2 | F ( ω ) | 2 d ω ) d a | a | = 1 2 π ∫ − ∞ ∞ | F ( ω ) | 2 ∫ − ∞ ∞ | Ψ ( a ω ) | 2 | a | d a d ω (13)</p><p>NOTE: The change in integration is performed in accordance with Fubini, and the second integral on the right side is C<sub>ψ</sub>.</p><p>Applying the Parseval equality again:</p><p>1 C ψ ∫ − ∞ ∞ | C W T f ( a ω ) | 2 d a d b | a | = 1 C ψ C ψ 2π ∫ − ∞ ∞ | F ( ω ) | 2 d ω = ∫ − ∞ ∞ | f ( t ) | 2 d t (14)</p><p>With the amount of energy from the signal as a function of the energy is decomposed in each element or component in frequency bands (wavelets).</p></sec><sec id="s5_2"><title>5.2. Regularity Basis of Entropy</title><p>The definition of entropy comes from the central limit theorem, that is:</p><p>Suppose that m is a measure of probability in the data from the real signal,</p><p>We have:</p><p>∫ x m ( d x ) = 0 and ∫ x 2 m d x = σ 2 (15)</p><p>Then, for any interval of A:</p><p>lim n ( m ∗ m ∗ m ∗ ⋯ ∗ m ) ( A n ) = 1 2 π σ 2 ∫ e − x 2 σ 2 d x (16)</p><p>Convergence in (16) shows the definition of entropy.</p><p>From this definition comes:</p></sec><sec id="s5_3"><title>5.3. Approximate Entropy Algorithms ApEn and Etropy Sampler (SamPEn)</title><p>Derived from Shannon’s work, Pincus [<xref ref-type="bibr" rid="scirp.78596-ref8">8</xref>] proposed the approximate entropy algorithm (Approximate Entropy) ApE<sub>n</sub>, which measures regularity from the mathematical analysis [<xref ref-type="bibr" rid="scirp.78596-ref9">9</xref>] point of view.</p><p>ApE<sub>n</sub> algorithm description:</p><p>Given an N sample, time series X N = { x 1 , ⋯ , x i , ⋯ , x N } , two input parameters m and r, must be incorporated. These belong to parameters from the correlation dimension postulated by Grassberger and Procaccia [<xref ref-type="bibr" rid="scirp.78596-ref10">10</xref>] . Parameter m corresponds to the length of vectors u<sub>m</sub>(i), generated from the data, and which correspond to the number of samples in the series. Parameter r is the tolerance, which is the distance to be defined, which evaluates the points immediately next to a reference point.</p><p>According to length value m, vectors u m ( 1 ) , ⋯ , u m ( N − m + 1 ) are created, where each vector is expressed as u m ( i ) = [ u ( i ) , u ( i + 1 ) , ⋯ , u ( i + m − 1 ) ] . These vectors represent m consecutive values of time series x, starting with the first event-tracking element, as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>The distance between vectors u<sub>m</sub>(i) and u<sub>m</sub>(j) is defined as the maximum of the absolute value of the difference between vector components:</p><p>d [ u m ( i ) , u m ( j ) ] ≤ max k = 1 , ⋯ , m ( | u ( i + k ) − u ( j + k ) | ) (17)</p><p>If C i m ( r ) it is the probability that vector u<sub>m</sub>(j) is close to vector u<sub>m</sub>(i), i.e. the number of j( 1 ≤ j ≤ N − m + 1 ) such that d [ u m ( i ) , u m ( j ) ] ≤ r divided by the</p><p>number of vectors extracted from the time series. For ( 1 ≤ i ≤ N − m + 1 ), the probability of being within the range is given by:</p><p>C i m ( r ) = ( Numberof j suchthat d [ u m ( i ) , u m ( j ) ] ≤ r ) N − m + 1 (18)</p><p>Each element of C i m ( r ) then measures the regularity, or frequency, of similar values, within length m with r tolerance [<xref ref-type="bibr" rid="scirp.78596-ref11">11</xref>] .</p><p>C i m ( r ) is constructed by (19):</p><p>C m ( r ) = 1 N − m + 1 ∑ i = 1 N − m + 1 C i m ( r ) (19)</p><p>Φ m ( r ) is defined as log that of each C i m ( r ) element average of i, and is expressed as follows:</p><p>Φ m ( r ) = 1 N − m + 1 ∑ i = 1 N − m + 1 log C i m ( r ) (20)</p><p>Therefore, ApE<sub>n</sub> is estimated as follows:</p><p>A p E n ( m , r , N ) = Φ m ( r ) − Φ m + 1 ( r ) (21)</p><p>Sample Entropy (SamPEn)</p><p>An improvement to the A p E n ( m , r , N ) algorithm was presented by Richman and Moorman [<xref ref-type="bibr" rid="scirp.78596-ref12">12</xref>] . This algorithm was called Sample Entropy SampE<sub>n</sub>, which has the advantage of being less dependent on time series size. Thus:</p><p>U m ( r ) = 1 N − m ∑ i = 1 N − m C i m ( r ) (22)</p><p>U m + 1 ( r ) = 1 N − m ∑ i = 1 N − m C i m + 1 ( r ) (23)</p><p>Equations ((22) and (23)) define vector SampE<sub>n</sub> elements using the number of pairs u<sub>m</sub>(i), u<sub>m</sub>(j) that comply with parameter r, so long as d [ u m ( i ) , u m ( j ) ] ≤ r . That said, i &#185; j, and so the pairing of a vector with itself is not taken into account.</p><p>Richman and Moorman defined the sample entropy as:</p><p>S a m p E n ( m , r ) = lim N → ∞ − ln U m + 1 ( r ) U m ( r ) (24)</p><p>Which is estimated in statistics [<xref ref-type="bibr" rid="scirp.78596-ref13">13</xref>] as:</p><p>S a m p E n ( m , r , N ) = − ln U m + 1 ( r ) U m ( r ) (25)</p></sec></sec><sec id="s6"><title>6. Approach of the Series</title><p>With the definition of regularity, it is necessary to introduce an approach to series from a signal to show the components that can be disaggregated and have the same degree of regularity of these components.</p><sec id="s6_1"><title>6.1. Axiomatic Definition of Multiresolution Using Wavelets</title><p>An intuitive idea for the division of the spectrum by series of discrete waves, using filters is represented in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p>Definition 2 [<xref ref-type="bibr" rid="scirp.78596-ref2">2</xref>]<p>A multiresolution structure is a sequence of subspaces {V<sub>j</sub>} in L<sup>2</sup>(R), such that:</p><p>1 )     V j + 1 ⊆ V j         ∀ j &gt; 0 2 )     ∪ j V j   Itisdensein   L 2 ( R ) 3 )     ​ ∩ j V j = { 0 } 4 )     V j = V j + 1 ⊕ W j + 1           ∀ j &gt; 0 5 )     f ( t ) ∈ V j + 1 ⇔ f ( 2 t ) ∈ V j (26)</p><p>The symbol &#197; should be interpreted as the orthogonal sum of two subspaces.</p><p>From <xref ref-type="fig" rid="fig2">Figure 2</xref>, one can observe that W<sub>j</sub> + 1 is the orthogonal complement of V<sub>j</sub> + 1 in V<sub>j</sub>. W<sub>j</sub> is the subspace of a band limited to the [ 2 − j , 2 − j + 1 ] interval, and the orthonormal basis for this subspace is the function {ψ<sub>n</sub><sub>,m</sub>(t)}.</p><p>Theorem 2: any succession of spaces satisfying the five equations in definition (26), shows that there is an orthonormal basis for L<sup>2</sup>(R) such that:</p><p>ψ m , n ( t ) = 2 − m / 2 ψ ( 2 − m t − n ) ,               m , n ∈ Z (27)</p><p>Beginning with: {ψ<sub>m</sub><sub>,n</sub>}, n&#206;Z an orthonormal basis for W<sub>m</sub>, where W<sub>m</sub> is the orthogonal complement of V<sub>m</sub> in V<sub>m</sub> − 1. A demonstration can be seen in [<xref ref-type="bibr" rid="scirp.78596-ref1">1</xref>] .</p><p>By virtue of the previous theorem, the simple choice of a<sub>0</sub> = 2 and b<sub>0</sub> = 1 generates an orthonormal basis of functions.</p><p>Observation: From the multiresolution analysis, we have, therefore, two spaces and for each of them, a set of generating functions.</p><p>As V<sub>1</sub> &#205; V<sub>0</sub> and W<sub>1</sub> &#205; V<sub>0</sub>, the functions of these subspaces are boundaries (in L<sub>2</sub>) FOR linear combinations of the base function V<sub>0</sub>. There is a sequence {v(k)}, such that:</p><p>ϕ ( t ) = ∑ k v ( k ) ϕ ( 2 t − k ) ( ratiooftwoscales ) (28)</p><p>ϕ ( t ) = 2 1 / 2 ∑ k v ( k ) 1 / 2 sin c ( 2 π ( t − k / 2 ) / 2 ) (29)</p><p>Reorganizing internal parentheses:</p><p>ϕ ( t ) = 2 1 / 2 ∑ k v ( k ) 1 / 2 sin c [ 2 π ( 1 / 2 ) ( t − k / 2 ) ] (30)</p><p>In accordance with the sampling theorem results:</p><p>v ( k ) = 2 1 / 2 ϕ ( k / 2 ) = sin ( π k / 4 ) / π k (31)</p><p>And since f(t) satisfies the equation between two scales, it is called scale function.</p><p>In the same way, {w(k)} is a sequence such that:</p><p>ψ ( t ) = ∑ k w ( k ) φ ( 2 t − k ) 2 1 / 2 (32)</p><p>Resulting in:</p><p>w ( k ) = 2 1 / 2 ψ ( k / 2 ) = 2 1 / 2 ( 2 φ ( k ) − φ ( k / 2 ) ) (33)</p><p>The following relationships result from orthogonality:</p><p>〈 φ ( t ) , φ ( t − m ) 〉 = δ ( m ) (34)</p><p>〈 ψ ( t ) , ψ ( t − m ) 〉 = δ ( m ) (35)</p><p>〈 φ ( t ) , ψ ( t − m ) 〉 = 0 (36)</p><p>where δ(m) is a generalized function or a Dirac delta [<xref ref-type="bibr" rid="scirp.78596-ref1">1</xref>] . The internal product between the functions is symbolized by &#225;,&#241;.</p><p>The V spaces are generated by scale functions f(t), and similarly, W spaces are generated by wavelet functions ψ(k).</p><p>In other words, wavelet functions and scale functions are used as blocks on which to construct or decompose the signal at different levels of resolution. Wavelet functions will generate different versions of details of the composite signal and the scale function will generate the approximate version of the signal, object of the decomposition. This can be mathematically represented by the following equation:</p><p>f ( t ) = ∑ k c ( k ) φ ( t − k ) + ∑ k ∑ j = 0 J − 1 d j ( k ) 2 j / 2 ψ ( 2 j t − k ) (37)</p><p>where, c is the coefficient of the scale, d<sub>j</sub> is the coefficient of the wavelet in scale j, f(t) and ψ(t) are the functions scale and wavelet, respectively, and k is the coefficient of translation.</p><p>Partial conclusion: This main result proposed by French mathematician Yves F. Meyer was the core for posterior (section VII) assessment in power quality. Equation (37) has all three central elements proposed in this article: reflexivity, regularity, and it is a series.</p></sec><sec id="s6_2"><title>6.2. Multiscale Entropy (MSE)</title><p>With algorithms ApE<sub>n</sub> [<xref ref-type="bibr" rid="scirp.78596-ref14">14</xref>] and SampE<sub>n</sub>, the loss of regularity in the time series is measured. Madalena et al. [<xref ref-type="bibr" rid="scirp.78596-ref13">13</xref>] have proposed taking into account a reconstitution of the time series on scales. With this, they have managed to increase the classification level of the pathologies that they study. This decomposition of the series is known as the Multi-scale Entropy (MSE) algorithm. The decomposition process is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref> and is described below.</p><p>Description:</p><p>From succession { x 1 , ⋯ , x i , ⋯ , x N } , a new series y<sup>(</sup><sup>τ</sup><sup>)</sup> emerges, whose terms are the average of the consecutive elements of the original series, without overlapping. τ corresponds to a scale factor. Each element generated in the time series is calculated by Equation (38):</p><p>y j τ = 1 τ ∑ i = ( j − 1 ) τ + 1 j τ x i , 1 ≤ j ≤ N τ (38)</p><p>For scale one (τ = 1), time series y<sup>(</sup><sup>1)</sup> is simply the original time series. The length of each new time series generated is equal to the length of the original series, divided by factor τ.</p><p>Finally, each new time series represents a new τ (factor scale function), which is processed by the SampE<sub>n</sub>, thus obtaining the entropy of the signal at multiple scales, or MSE.</p></sec></sec><sec id="s7"><title>7. Applications for Power Quality</title><p>The three characteristics cited, reflexivity, regularity, and series, are indispensa-</p><p>ble properties for the design of a quality indicator.</p><p>Quality itself can be classified as the valuation that is given to a physical object that comes from the production process of another such object. This representation shows its own degree of excellence. For this, it is necessary to have an instrument which allows measurement of a signal from the physical object to be evaluated. This signal must be able to be placed in a comparative framework, where it is demonstrated that the degree of deviation from a reference is measurable. This deviation speaks to its degree of quality.</p><sec id="s7_1"><title>7.1. Definition 3―Measurement of Excellence</title><p>It is possible to normalize the workspace with a scalar type value, this will be a representation of the degree of excellence of a measured point versus its reference value, it is a normalized value, and since the signal analysis is equivalent to the signal noise ratio.</p></sec><sec id="s7_2"><title>7.2. Definition 4―The Quality Index</title><p>Q I = ∑ x i 2 x r 2 (39)</p><p>In Equation (39), x<sub>i</sub> indicates the components that are deviated from reference x<sub>r</sub>.</p><p>In this way, the definition of the quality index is reached. You can use continuous parameter or discrete parameter space {L<sup>n</sup>, l<sup>n</sup>}. As it is a work that can be carried to the transformed frame, the measure and integral within will be defined according to Lebesgue [<xref ref-type="bibr" rid="scirp.78596-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.78596-ref15">15</xref>] and the analysis can be performed in discrete space.</p></sec><sec id="s7_3"><title>7.3. Representation of the Quality Index from the Wavelet Transform</title><p>Q I = ∑ k ∑ j = 0 J − 1 ( d j ( k ) 2 j / 2 ψ ( 2 j t − k ) ) 2 ∑ k c ( k ) φ ( t − k ) 2 (40)</p><p>With this definition, the level of deviation of the detailed energy values, with respect to energy values from the thick part of the signal, or low frequency, is measured.</p></sec><sec id="s7_4"><title>7.4. Representation of the Quality Index from the Theory of Entropy</title><p>Q I = ∑ k ∑ j = 1 J ( M S C j ) 2 ( M S C ) k 2 (41)</p><p>where MSC is multiscale entropy, k is the scale where the energy of major importance is concentrated against the rest. This will be the level of quality deviation.</p></sec></sec><sec id="s8"><title>8. Framework for Evaluation―Modified pqAT Technique (M<sub>pq</sub>AT)</title><p>Much work has been done on the classification and characterization of disturbances [<xref ref-type="bibr" rid="scirp.78596-ref16">16</xref>] - [<xref ref-type="bibr" rid="scirp.78596-ref26">26</xref>] .</p><p>Here a modification to the power quality Analysis Technique-pqAT [<xref ref-type="bibr" rid="scirp.78596-ref27">27</xref>] is made. This is an algorithm whose objective is the characterization and classification of disturbances in the electrical system. This new technique, M<sub>pq</sub>AT, is a previous step to quality maps [<xref ref-type="bibr" rid="scirp.78596-ref28">28</xref>] .</p><p>The signal analysis method starts from the definition of the instantaneous power tensor, and the transformation is then performed on the frame of the transformed wavelet [<xref ref-type="bibr" rid="scirp.78596-ref1">1</xref>] . There, the parameters of active, reactive, and disturbance power are determined.</p><p><xref ref-type="fig" rid="fig4">Figure 4</xref> shows the structure of the technique for power measurement, and</p><p>the classification of events in power systems.</p><p>In <xref ref-type="fig" rid="fig4">Figure 4</xref>, we see seven blocks, divided into three structures. The structure represented by the blocks of thick and continuous trace, attempts to characterize transient phenomena in the transformed plane. Then, a dotted structure is shown, that is basically an inference engine. This block identifies rules for identification of the type of phenomenon that has been registered. Two blocks are shown, with continuous but tenuous trace, where the calculation of an indicator of deviation of quality or error is performed. A description of each of the blocks is given below.</p><p>1) Block 1 measures voltage, and current is measured by an instrument or by a SCADA system (as is done in some systems at present) [<xref ref-type="bibr" rid="scirp.78596-ref24">24</xref>] [<xref ref-type="bibr" rid="scirp.78596-ref25">25</xref>] [<xref ref-type="bibr" rid="scirp.78596-ref26">26</xref>] [<xref ref-type="bibr" rid="scirp.78596-ref27">27</xref>] for the monitoring of various operating points in the system. The information obtained proceeds to Block 2, where the voltage and current are transformed in the frame of the power tensor, and then the multiresolution or multiscale algorithm will be applied to each signal, depending on the case.</p><p>2) In Block 3, the quality index is calculated.</p><p>3) Block 4 represents the database, with which planning and operation of the monitored system can be achieved. This is used to feed the inference engine, which is the block indicated by the number four. It defines the premises upon which the load identification and classification of transient events are made. This block, called the system database, also feeds the calibration block.</p><p>4) Block 5: This block examines events and has to do with a decrease in voltage value. The main events characterized here are:</p><p>・ Line energization.</p><p>・ Motor ignition.</p><p>・ Capacitor bank start-up.</p><p>・ In the block, there may be a classification of voltages, due to errors, which shows all aspects of error characterization (possibly followed by the performance of the protection system).</p><p>・ These premises, accompanied by the inference engine, produce results presented by the classification block.</p><p>5) Block 6: In the calibration block, two parameters are set, on which the entire multiresolution analysis depends, making the method entirely dependent on them. These parameters are: the sampling frequency and the number of decomposition levels (in the case of wavelets or signal multiscale in the case of entropy). In the case of any number of levels, because it is a dyadic decomposition (division of the frequency axis into octaves), the signal size will also be limited to a multiple number of samples, which agrees with most instruments that use the FFT.</p><p>The most current literature shows significant advances in the treatment of information from the point of view of classification techniques, using waveform transform. From pioneering studies [<xref ref-type="bibr" rid="scirp.78596-ref27">27</xref>] to the results presented in [<xref ref-type="bibr" rid="scirp.78596-ref16">16</xref>] [<xref ref-type="bibr" rid="scirp.78596-ref17">17</xref>] [<xref ref-type="bibr" rid="scirp.78596-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.78596-ref19">19</xref>] , two trends are observed: the first is analysis, and the second classification. With the MpqAT technique, an attempt is made to unify these two criteria, and give unity to the way to determine three typical effects of electromagnetic phenomenon in three-phase systems: imbalance, harmonics and transients.</p></sec><sec id="s9"><title>9. Conclusions</title><p>Two traditionally used techniques have been compared in signal analysis, entropy and wavelets. The comparison has focused on three criteria: reflexivity, regularity, and series construction.</p><p>The article showed that for the case of wavelet theory, these three criteria are perfectly fulfilled. In the case of entropy, the concept of a series in an “artificial” signal shape is introduced, but the case of reflexibility is not fulfilled. Consequently, entropy is a valuable tool for regularity measurement only.</p><p>Additionally:</p><p>・ Quality has been defined from two main points of view, as a series of attributes of a physical object, and a degree of excellence that must be qualified according to that set of attributes.</p><p>- The first part of the definition involves decomposing the attribute into a measurable series using the property of regularity. The second proposes the idea of quantifying and the degree of excellence through definition of quality indexes. This is based on those conservative-type parameters that are determined through energy definitions in the transformed frame―Parseval’s theorem.</p><p>- Finally, any technique that exhibits decomposition in reflexivity, regularity, or series is a candidate for use as quality evaluation framework.</p><p>This article will close with a proposal to evaluate power quality using the structure of an expert system, dedicated to the measurement and classification of perturbations, a system called M<sub>pq</sub>AT. The novelty of this technique is that, through use of the same structure, analysis of both transient and stationary perturbation in any type of frame of reference is unified. System topology has been considered in the most general way possible, and is based on the results obtained by the series criteria, regularity, and reflexivity.</p></sec><sec id="s10"><title>Acknowledgements</title><p>The authors would like give the thanks to the power and distribution network group (GREDyP) in the Universidad Nacional de Colombia, Manizales Branch.</p></sec><sec id="s11"><title>Cite this paper</title><p>Cano-Plata, E.A., Ustariz-Farf&#225;n, A.J. and Estrada-Estrada, J.H. (2017) Wavelets and Entropy for Power Quality Assessment. American Journal of Computational Mathematics, 7, 276-290. https://doi.org/10.4236/ajcm.2017.73022</p></sec></body><back><ref-list><title>References</title><ref id="scirp.78596-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Cano-Plata, E.A., Ustariz-Farfán, A.J., Diaz-Cadavid, L.F. (2012) Power Tensor Theory and Continuous Wavelet Transform. Journal of American Journal of Computational Mathematics, 2, 130-135. https://doi.org/10.4236/ajcm.2012.22018</mixed-citation></ref><ref id="scirp.78596-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Pinsky, M.A. (2010) Introduction to the analysis of fourier and ondoletas. Thomson, Mexico City.</mixed-citation></ref><ref id="scirp.78596-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Dautray, R. and Lions, J.-L. (1988) Mathematical Analysis and Numerical Methods for Science and Technology. Vol. 2 Functional and Variational Methods. Springer-Verlag, Berlin. https://doi.org/10.1007/978-3-642-61566-5</mixed-citation></ref><ref id="scirp.78596-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Bertoglio, O.A.J. and Johansen, O. (1982) Introduccion A La Teoria General De Sistemas. [Introduction to the General Theory of Systems.] Editorial Limusa S.A. De C.V., México.</mixed-citation></ref><ref id="scirp.78596-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Gray, R.M. (2011) Entropy and Information Theory. Springer US, New York. https://doi.org/10.1007/978-1-4419-7970-4</mixed-citation></ref><ref id="scirp.78596-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Gros, C. (2011) Complex and Adaptive Dynamical Systems: A Primer. Springer Berlin Heidelberg. https://doi.org/10.1007/978-3-642-04706-0</mixed-citation></ref><ref id="scirp.78596-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Cover, T.M. and Thomas, J.A. (2006) Elements of Information Theory. Wiley, New York.</mixed-citation></ref><ref id="scirp.78596-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Pincus, S.M. (1991) Approximate Entropy: A Complexity Measure for Biological Time Series Data. Proceedings of the 1991 IEEE Seventeenth Annual Northeast, Hartford, 4-5 April 1991, 35-36. https://doi.org/10.1109/NEBC.1991.154568</mixed-citation></ref><ref id="scirp.78596-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Pincus, S.M. and Goldberger, A.L. (1994) Physiological Time-Series Analysis: What Does Regularity Quantify? American Journal of Physiology—Heart and Circulatory Physiology, 266, H1643-H1656.</mixed-citation></ref><ref id="scirp.78596-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Grassberger, P. and Procaccia, I. (1983) Measuring the Strangeness of Strange Attractors. Physica D: Nonlinear Phenomena, 9, 189-208. https://doi.org/10.1016/0167-2789(83)90298-1</mixed-citation></ref><ref id="scirp.78596-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Mendoza, J., Morles, E.C. and Chacón, E. (2011) La entropía aproximada como una nueva metodología para la detección de eventos dentro de un sistema dinámico híbrido. Cienc. e Ing., 31-42.</mixed-citation></ref><ref id="scirp.78596-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Richman, J.S. and Moorman, J.R. (2000) Physiological Time-Series Analysis Using Approximate Entropy and Sample Entropy. American Journal of Physiology— Heart and Circulatory Physiology, 278, H2039-H2049.</mixed-citation></ref><ref id="scirp.78596-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Costa, M., Goldberger, A. and Peng, C.-K. (2002) Multiscale Entropy Analysis of Complex Physiologic Time Series. Physical Review Letters, 89, Article ID: 068102. https://doi.org/10.1103/PhysRevLett.89.068102</mixed-citation></ref><ref id="scirp.78596-ref14"><label>14</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Pincus</surname><given-names> S. </given-names></name>,<etal>et al</etal>. (<year>1995</year>)<article-title>Approximate Entropy (ApEn) as a Complexity Measure. Chaos an Interdiscip</article-title><source> Journal of Nonlinear Science</source><volume> 5</volume>,<fpage> 110</fpage>-<lpage>117</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.78596-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Rudin, W. (1973) Functional Analysis. 2nd Edition, Mcgraw-Hill, New York.</mixed-citation></ref><ref id="scirp.78596-ref16"><label>16</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ferrero</surname><given-names> A. </given-names></name>,<etal>et al</etal>. (<year>1998</year>)<article-title>Definitions of Electrical Quantities Commonly Used in Non-Sinusoidal Conditions</article-title><source> International Transactions on Electrical Energy Systems</source><volume> 8</volume>,<fpage> 235</fpage>-<lpage>240</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.78596-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Tugulea, A. (1996) Criteria for the Definition of the Electric Power Quality and Its Measurement Systems. International Transactions on Electrical Energy Systems, 6, 357-363. https://doi.org/10.1002/etep.4450060518</mixed-citation></ref><ref id="scirp.78596-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Khalil, H.K. (1996) Nonlinear Systems. 2nd Edition, Prentice-Hall, New York.</mixed-citation></ref><ref id="scirp.78596-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">D’Attellis, C.E. (1988) “Teoría Distribucional de Sistemas” Cursos y seminarios de matemáticas—Fascículo 34. Universidad de Buenos Aires, Buenos Aires.</mixed-citation></ref><ref id="scirp.78596-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Styvaktakis, E. (2000) On Feature Extraction of Voltage Disturbance Signals. Technical Report No. 340L, Department of Signals and Systems, School of Electrical and Computer Engineering, Chalmers University of Technology, Sweden.</mixed-citation></ref><ref id="scirp.78596-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Santoso, S., Powers, E., Grady, W.M. and Parsons, A.C. (2000) Power Quality Disturbance Waveform Recognition Using Wavelet-Based Neural Classifier—Part 1: Theoretical Foundation. IEEE Transactions on Power Delivery, 15, 222-228. https://doi.org/10.1109/61.847255</mixed-citation></ref><ref id="scirp.78596-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Santoso, S., Powers, E., Grady, W.M. and Parsons, A.C. (2000) Power Quality Disturbance Waveform Recognition Using Wavelet-Based Neural Classifier—Part 2: Application. IEEE Transactions on Power Delivery, 15, 229-234. https://doi.org/10.1109/61.847256</mixed-citation></ref><ref id="scirp.78596-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Huang, S. and Hsieh, C. (1999) High-Impedance Fault Detection Utilizing a Morlet Wavelet Transform Approach. IEEE Transactions on Power Delivery, 14, 1401-1410. https://doi.org/10.1109/61.796234</mixed-citation></ref><ref id="scirp.78596-ref24"><label>24</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.78596-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Estrada, J., Cano-Plata, E., Younes-Velosa, C. and Cortés, C. (2011) Entropy and Coefficient of Variation (CV) as Tools for Assessing Power Quality. Ingeniería e Investigación, 31.</mixed-citation></ref><ref id="scirp.78596-ref26"><label>26</label><mixed-citation publication-type="other" xlink:type="simple">Cano Plata, E.A. and Tacca, H.E. (2005) Electric Power Definition in the Wavelet Domain. International Journal of Wavelets, Multiresolution and Information Processing, 3, 573-585. https://doi.org/10.1142/S0219691305001032</mixed-citation></ref><ref id="scirp.78596-ref27"><label>27</label><mixed-citation publication-type="other" xlink:type="simple">Cano Plata, E.A. and Tacca, H.E. (2005) Power Load Identification. Journal of the Franklin Istitute, 342, 99-113. https://doi.org/10.1016/j.jfranklin.2004.08.006</mixed-citation></ref><ref id="scirp.78596-ref28"><label>28</label><mixed-citation publication-type="other" xlink:type="simple">Ustariz-Farfán, A.J., Cano-Plata, E.A., Tacca, H. and Arango-Lemoine, C. (2012) Visualizing Two- and Three-Dimensional Maps for Power Quality Loss Assessment. Proceedings of the 2012 IEEE 15th International Conference on Harmonics and Quality of Power (ICHQP), Hong Kong, 17-20 June 2012, 909-914.</mixed-citation></ref></ref-list></back></article>