Nothing Special   »   [go: up one dir, main page]

Next Article in Journal
An Accurate and Convenient Method of Vehicle Spatiotemporal Distribution Recognition Based on Computer Vision
Previous Article in Journal
Automatic Extraction of Power Lines from Aerial Images of Unmanned Aerial Vehicles
You seem to have javascript disabled. Please note that many of the page functionalities won't work as expected without javascript enabled.
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Compressed Sensing Technique for the Localization of Harmonic Distortions in Electrical Power Systems

1
Master of Electricity Program, Universidad Politécnica Salesiana, Quito 170525, Ecuador
2
Master in ICT for Education, Smart Grid Research Group (GIREI), Universidad Politécnica Salesiana, Quito 170525, Ecuador
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(17), 6434; https://doi.org/10.3390/s22176434
Submission received: 4 July 2022 / Revised: 15 August 2022 / Accepted: 19 August 2022 / Published: 26 August 2022
(This article belongs to the Section Physical Sensors)
Figure 1
<p>Process diagram of harmonic distortion detection by compressed sensing.</p> ">
Figure 2
<p>Methodology used for the problem formulation.</p> ">
Figure 3
<p>(<b>a</b>) General block diagram and (<b>b</b>) flow diagram of the proposed model.</p> ">
Figure 4
<p>Obtaining the measurement vector of the discrete signal (x) in the time domain (t).</p> ">
Figure 5
<p>(<b>a</b>) Measurement matrix (C). (<b>b</b>) Dictionary matrix (<math display="inline"><semantics> <mo>Θ</mo> </semantics></math>).</p> ">
Figure 6
<p>Formation of the dictionary matrix (<math display="inline"><semantics> <mo>Θ</mo> </semantics></math>).</p> ">
Figure 7
<p>Indeterminate system of equations and its solution with the L1-norm.</p> ">
Figure 8
<p>L1 and L2 minimum standard solutions to the compressed sensing problem.</p> ">
Figure 9
<p>Signal reconstruction parameters and variables.</p> ">
Figure 10
<p>THD error vs. several cycles and harmonic error vs. several cycles.</p> ">
Figure 11
<p>Harmonic error rate of periods 14, 17, and 19.</p> ">
Figure 12
<p>Machine time for a constant number of samples at 32 and varying the number of periods from 1 to 20.</p> ">
Figure 13
<p>Error vs. harmonics, keeping the number of periods constant at 20 and varying the number of samples per cycle from 20 to 32.</p> ">
Figure 14
<p>Machine time, number of periods constant at 20, varying the number of samples per cycle from 20 to 32 samples.</p> ">
Figure 15
<p>Real signal and its harmonics vs. CS-reconstructed signal and its harmonics.</p> ">
Figure 16
<p>Hardware implemented in the experimental process.</p> ">
Versions Notes

Abstract

:
The present work proposes to locate harmonic frequencies that distort the fundamental voltage and current waves in electrical systems using the compressed sensing (CS) technique. With the compressed sensing algorithm, data compression is revolutionized, a few samples are taken randomly, a measurement matrix is formed, and according to a linear transformation, the signal is taken from the time domain to the frequency domain in a compressed form. Then, the inverse linear transformation is used to reconstruct the signal with a few sensed samples of an electrical signal. Therefore, to demonstrate the benefits of CS in the detection of harmonics in the electrical network of this work, power quality analyzer equipment (commercial) is used. It measures the current of a nonlinear load and issues its results of harmonic current distortion (THD-I) on its screen and the number of harmonics detected in the network; this equipment acquires the data based on the Shannon–Nyquist theorem taken as a standard of measurement. At the same time, an electronic prototype senses the current signal of the nonlinear load. The prototype takes data from the current signal of the nonlinear load randomly and incoherently, so it takes fewer samples than the power quality analyzer equipment used as a measurement standard. The data taken by the prototype are entered into the Matlab software via USB, and the CS algorithm run and delivers, as a result, the harmonic distortions of the current signal THD-I and the number of harmonics. The results obtained with the compressed sensing algorithm versus the standard measurement equipment are analyzed, the error is calculated, and the number of samples taken by the standard equipment and the prototype, the machine time, and the maximum sampling frequency are analyzed.

1. Introduction

The constant evolution of digital and power electronics means that more and more nonlinear loads are connected to electrical systems. Non-linear loads deteriorate the quality of the energy delivered by electricity distribution companies to their users. Electrical power has become a product and not just a service; therefore, it is quantified by its quality, price, and accessibility characteristics. The quality of the electrical product is measured from quantifiable variables, one of them being the harmonic distortion (THD). This variable measures how much the sinusoidal waveform of voltage or current is deformed concerning its fundamental wave [1,2].
Consequently, to calculate the THD, it is necessary to find the amplitude and frequency of the harmonic waves immersed in the electrical wave, which are frequency multiples of the fundamental signal of the system called harmonics, whose amplitude decreases as the frequency multiplesincreaseand arethe fundamental causesof the distortion of the voltage and current waves [3].
The discrete Fourier transform (DFT) is the classical technique to identify and locate the sine waves of multiple frequencies of the fundamental signal called harmonics [4].
The DFT is based on taking the signal from the time domain to the frequency domain; the frequency domain is when its analysis is performed for harmonics detection. For the DFT to work correctly, it is necessary to sample the signal at least twice the maximum frequency of the harmonic wave according to the Shannon/Nyquist theory.
The present work aims to identify and measure the amplitude and frequencies of the harmonic waves that distort the fundamental electric current signal of a nonlinear load using the compressed sensing (CS) technique. By taking samples less than or equal to the maximum frequency of the harmonic wave, fewer data are taken, and a result similar to that of DFT will be obtained [5,6].
With the compressed sensing algorithm, data compression is revolutionized, a few samples are collected randomly, a measurement matrix is formed, and according to a linear transformation, the signal is taken from the time domain to the frequency domain in a compressed form. The inverse linear transformation is used to reconstruct the signal. An indeterminate system of equations is formed, which is solved through a convex optimization with the L1-norm. As a result of the optimization, a sparse vector is optimized [7].
To demonstrate the benefits of CS in the detection of harmonic waves in the electrical network, a power quality analyzer equipment (commercial), which measures the current of a nonlinear load and delivers the result of total harmonic distortion of the current (THD-I) on its screen, as well as the number of harmonics detected and their amplitude and frequencies, is taken as a measurement standard in this work. Conventional equipment works based on the DFT algorithm and the Shannon–Nyquist theorem [8].
A resistive type of current sensor is connected to the same nonlinear load, which works as a voltage divider; since it is a resistive type of sensor, there are no problems with the bandwidth. It takes data randomly and incoherently through a microcontroller; this way, it takes fewer samples than the power quality analyzer equipment used as a measurement standard [9,10,11,12]. Then, to find even the 32nd harmonic, the classical DFT technique requires a minimum of 64 samples per cycle. With the method proposed in this work using CS, only a number less than or equal to 32 samples per cycle is required to obtain the 32nd harmonic.
Table 1 shows the objective of this research in the localization of harmonics in an electrical network; the CS takes fewer samples per cycle, and the same result is obtained.
As a result, we have the harmonic distortions of the THD-I current signal and the number of harmonics. The results obtained with the CS algorithm are analyzed versus the measurements obtained with the classical DFT algorithm using the standard measurement equipment. The evaluation parameters of the proposed CS method are the error when comparing the results of CS versus DFT, the number of samples taken by CS and DFT per cycle (sampling frequency), and the machine time taken by each method. The present work is synthesized in Figure 1.
Hereafter, the present work is organized as follows: In Section 2, a review of related works is performed; in Section 3, the problem is formulated and the proposed methodology; in Section 4, the results are analyzed; in Section 5, the conclusions are stated.

2. Related Works

In this section, the works related to the present investigation are analyzed, then indicators are extracted from the related results to evaluate the current work. The removed aspects are: the percentage of error obtained when reconstructing the signal under test, the type of measurement matrix, and the linear transformation used. The different applications of compressed sensing are examined, and all the works coincide in calculating sparsity to determine the sparse representation of the signal and to choose the correct linear transformation with which it is possible to compress the electrical signal [13].
The accelerated growth of technology concerning the speed of calculation of computers has revolutionized the paradigm of signal compression; currently, it is not necessary to sense and store large amounts of data; it is currently possible to sense and store few data and have the same information when processing large amounts of data. Thus, to achieve the compression of a signal, the current trend is the use of the compressed sensing technique, which is developed within the mathematical fields of linear optimization and descriptive statistics [1,14].
One of the most relevant characteristics of the compressed sensing technique is data storage in the frequency domain. From the state-of-the-art survey, most of the research works concerning compressed sensing (CS) deal with audio, image, and video applications [15,16].
Furthermore, also, CS is applied to detect harmonics in frequency-dispersive electrical signals from ships; the Bernoulli-type measurement matrix with different probabilistic values is used; the discrete Radon transform (DRT) is used as a linear transform. The use of the DRT requires numerous measurements, which detract from the compressed sensing technique. Consequently, to mitigate this disadvantage, a K-rank filter is used in the domain of the linear transform, thus compressing the signal under analysis with a fast convergence, which implies a low computational time for the calculation [17,18].
The CS is also applied to estimate the state of electrical distribution systems, using data from synchrophasor measurement units (PMUs) installed in an electrical system. This application proposes a novel and simple algorithm called DSSE, which solves a set of linear equations without any iterative process. It uses the IEEE 123-bus power system (SEP), which locates synchrophasor measurement units (PMUs) in some busbars of the SEP with which it measures the voltage in magnitude and angle in the busbars, and the PMU is installed by compressed sensing. It estimates the magnitude and angle voltage values of the other busbars of the system when no synchrophasor measurement units are installed. The indeterminate system of equations is formed between the number of busbars and the number of PMUs installed in the SEP, with the number of busbars being more significant than the small number of PMUs installed in the SEP. The indeterminate system of equations is solved by a nonconvex linear optimization problem using the L1-norm. The Bernoulli-type measurement matrix and the discrete Fourier transform are used. Finally, the signal reconstruction error is 0.5% [19].
A mathematical application of the CS is to perform a critical appraisal of the purely harmonic analysis of the CS compressed sensing theory of Candes, Romberg, and Tao. It is applied to the determination of a trigonometric series called “Lacunar”, whose sum is known over an interval. It demonstrates how purely harmonic analysis methods can obtain preliminary results and how some classical or new problems of harmonic analysis are related to compressive sensing. It uses DFT as a dictionary matrix and solves the under-determined system of equations with the minimization of the L2-norm [20].
The harmonic pollution of electrical networks is becoming increasingly complex, making it necessary to continuously monitor the power quality, encountering a problem with the amount of data to be stored and processed. A solution to the data storage problem is through compressed sensing. It is possible to simultaneously perform the functions of compressive sampling, signal reconstruction, and harmonic detection functions. The dispersion of the harmonic signals is calculated numerically; the Gaussian matrix is used as a measurement matrix; the discrete Fourier transform is used as the basis for the linear transformation. The indeterminate system of equations is solved by a unique method called the spectral projected gradient with fundamental filter (SPG-FF). Finally, a signal reconstruction error of 1.8% is obtained [21].
Another related work tests the integral nonlinearity (INL) and randomly measures the output voltages by forming a subset of the data from the digital-to-analog converters (DACs). Compressed sensing recovers the INL values of all input codes using a Gaussian measurement matrix and the discrete cosine transform as a linear transform. This method is implemented practically and evaluated experimentally with two DACs of different architectures; the recovery of the curve is very accurate with respect to the INL curve obtained by a standard method and used as a measurement standard in this way to perform the metrics of comparison of the model [22,23].
A related application to the present work uses a wireless sensor network to monitor freshwater quality in a container. It does not use the usual measurement nuances; instead, it uses continuous models for both the signal acquisition process and the sampling process, arbitrarily taking the data; it does not need a trained dictionary and, therefore, does not use a signal database. It makes the algorithm more accurate, robust, and stable in the presence of white noise and reduces the power consumption of the sensors that monitor water by 25%. An update of the firmware is used in this model with a 12 bit resolution of the sensors. Thus, the authors claim that they could reduce the power consumption of the sensors by 60% [24,25].
Table 2 shows a comparative summary of the related works versus the present case study, taking as indicators: the percentage of error obtained when reconstructing the signal under test, the type of measurement matrix, the practical and theoretical application, and the linear transform used.

3. Problem Formulation

The objective of this article is the detection of harmonic frequencies of the current signal of a nonlinear load; with the harmonic frequencies obtained, the total harmonic distortion (THD) is calculated, and all this methodology is executed through compressed sensing (CS). The nonlinear load under study is measured (THD) with conventional measuring equipment (standard measurement) and the prototype object of this work. It is shown that by using CS in the localization of harmonic frequencies, the number of samples per cycle is reduced by less than 50%, reducing memory consumption and the data processing load, achieving a high speed of analysis and processing of the proposed algorithm. The conventional equipment bases its operating principle on the discrete Fourier transform (DFT) and the Shannon/Nyquist theory, which state that to reconstruct a signal, it is necessary to take samples of the signal at least two-times the maximum frequency of the fundamental wave. The proposed prototype bases its operation on the compressed sensing technique, which uses a measurement vector, a dictionary matrix, and a convex optimization method; a nonlinear load current signal is reconstructed from randomly sampled incoherent linear measurements involving the acquisition of broadband data below the Shannon–Nyquist sampling frequency. For the proposed study, conventional equipment, to obtain up to the 32nd harmonic frequency, needs to take at least 64 samples per cycle. The proposed CS-based prototype, to obtain the 32nd harmonic frequency, will take anumber equal to 32 samples per cycle. The conventional equipment and the proposed prototype can obtain the harmonic frequency number 32. For the present case study, the maximum harmonic frequency obtained is 21, as illustrated in Figure 2.

3.1. Proposed Strategy and Methodology

The mathematical methodology that uses compressed sensing is not complex to state, but it is complex to solve since it forms a problem of type NP. Thanks to the accelerated growth in computer technology that we have today, it has been possible to solve with relative speed the indeterminate systems of equations formed using the compressed sensing technique [7].
The methodology used in this work is explained step by step and is divided into six parts: data acquisition, measurement vector, dictionary matrix, solution of the system of equations, signal reconstruction, and THD localization. Figure 3 shows a general diagram of the proposed methodology for detecting harmonic frequencies with compressed sensing.

3.1.1. Data Acquisition

The data to be treated were acquired using a resistive-type current sensor. The linearization of the voltage drop existing in the sensor was carried out so that it was directly proportional to the current consumed by the load. This means that the time variation between the acquisition of one datum concerning another was different, 20, and the magnetic field present in the environment inside in the operation of these sensors, causing the reference to be displaced; for this reason, Hall effect sensors were not used. From practical experimentation, it was determined that the Hall effect sensors did not have a sufficient wavelength to determine harmonic frequencies higher than harmonics of 20. The magnetic field in the insulated environment was insufficient to decide on the harmonic frequencies. Therefore, using the resistive sensor, the voltage drop signal was acquired. It is an analog-type signal whose values vary at the frequency of the network, taking positive values during half the cycle and negative values in the following half of the cycle, in a range of plus or minus 1 volt. The microcontroller used does not have any capacity to work with analog signals with negative cycles, so it is necessary to couple the analog signal. This coupling was performed by adding 2.5 volts in direct current to the sensed signal; in this way, the signal reference was 2.5 volts continuous, and the value of the negative half cycle now ranged from 1.5 VDC to 2.5 VDC; the ADC analog–digital converter of the microcontroller has a resolution of 12 bits; this digitized signal is sent via USB communication to the algorithm implemented in Matlab.

3.1.2. Measurement Vector

The discrete signal (x) acquired by the microcontroller at random was input to the compressed sensing algorithm [28].
The discrete signal (x) is a vector having 64 samples; from this vector, 32 samples were extracted randomly and incoherently, and with the 32 acquired samples, a vector of measurements (y) was formed, as illustrated in Figure 4.
From a mathematical point of view, compressed sensing exploits the signal’s sparsity on a generic basis Ψ , thus achieving complete signal reconstruction from a reduced number of measurements [29].
If a signal (x) is K sparse in (y), instead of measuring the signal (x) directly with (n) measurements and then compressing, it is possible to collect a smaller number of randomly chosen sizes and then resolve the nonzero elements of (s) in the transformed coordinate system [20].
The (y) measurements ∈ Rp, with K < p, and n are given by Equation (1):
y 1 n = C m n × x 1 m
where y 1 n is the vector of measurements. x 1 m is the discrete signal under test. C m n is the measurement matrix. For this case study, m = 64 and n = 32

3.1.3. Matrix Dictionary

Within compressed sensing, there is a matrix called a dictionary Θ m n , which is formed by a measurement matrix C m n and a linear transformation, also called a generic base ( Ψ ). Depending on the desired application of compressed sensing, the measurement matrix and the linear transformation are chosen.
The success of compressed sensing is to choose the measurement matrix C m n that is sufficiently incoherent concerning the transformation basis ( Ψ ) [30].
The most-common measurement matrices are the random single pixel, Gaussian random, Bernoulli random, and Sparse random matrices. The use of each of these matrices depends on the intended application. For the present work, the random single-pixel measurement matrix was used; with this matrix, the coefficients were classified, extracting the most-representative ones and converting the less-representative ones to zero; in this way, it is possible to compress high-dimensional vectors in a low-dimensional space, preserving the spectral properties. Using Gaussian random, Bernoulli random, and Sparse random matrices did not achieve data compression [31].
To form the single-pixel random-type medicines matrix (c), it takes the total number of data acquired in the measurement vector (y)(n = 32), 32 rows, and the total number of data contained in the discrete signal (x) (m = 64), 64 columns, so the matrix C is composed of 32 rows and 64 columns.
Each row of the matrix represents a vector containing 64 elements, of which 63 elements = 0 and one element = 1. The ordered pair to locate the number 1 in the matrix is obtained as follows.
Row 1 takes the first element of the sample vector, number 1; then, in column 1, row 1, the number 1 is placed.
Row 2 takes the second element of the sample vector, number 2, then in column 2, row 2, the number 1 is placed.
Row 3 takes the sample vector’s third element, the number 5, then in column 3, row 5, the number 1 is placed, and so on.
Row 32 takes the last element of the sample vector, which is the number 63; then, in column 32, row 63, the number 1 is placed. This is illustrated in Figure 5a.
The measurement matrix C R p n represents a set of (p) linear measurements on the state (x). The measurement matrix C m n choice is important in compressed sensing, as illustrated in Figure 6. Typically, the measurements may consist of random projections of the state, in which case the entries of C m n are random variables with a Gaussian or Bernoulli distribution [32].
A generic basis, such as Fourier or wavelets coupled with the random single-pixel single point measurement matrix, is ideal for signal compression since these are incoherent concerning these bases, obtaining a broadband frequency response.
Once the measurementmatrix C m n is obtained, the dictionary matrix Θ m n is created by means of a linear transformation; for the present case study, the discrete cosine transform (DFT) was used, where a sufficient number of good measurements results in a dictionary matrix Θ m n , as illustrated in Figure 5b and according to Equation (2), which preserves the distance and the structure of the inner product of the sparse vectors s m [19].
For the work under study, the discrete cosine transform (DCT) was used as the basis of transformation Ψ , mathematically transforming the single-pixel random measurementmatrix C m n from the time domain to the frequency domain according to Equation (2).
Θ m n = D C T C m n D C T = Ψ

3.1.4. Solution to the Indeterminate System of Equations

Having obtained the dictionary matrix Θ m n , the vector of measurements y 1 n forms a system of linear equations when the unknown is the sparse vector s 1 m . Therefore, compressed sensing aims to find the most-sparse vector s 1 m consistent with the measurements y 1 n . A measurement matrix C m n is used as a near-isometry map over the sparse vectors.
Isometry means the same distance closely related to unitarity, preserving the length and angles between vectors. When acting as a close (same distance) isometry, it is possible to solve Equation (3) to find the most-sparse vector S 1 m using L1 convex minimization since the system of equations is under-determined, with infinitely many consistent solutions for S 1 m [33].
y 1 n = C m n Ψ s 1 m = Θ m n s 1 m
For the case of the study, the dictionary matrix Θ m n is made up of 32 rows and 64 columns; there are 32 equations and 64 variables; the measurement vector y 1 n has 32 rows and one column. The unknown is the sparse vector s 1 m of 64 rows and one column. The reason for compressed sensing in this work is that the sparse vector s 1 m has as many zeros as possible, hence the name “sparse”. Figure 7 shows the indeterminate system of equations of the example case.
It becomes a linear optimization problem (convex minimization of L1), where Equation (4) finds the sparsest solution for (s) that satisfies the optimization problem [33]:
s ^ = a r g m i n S 1 s s u b j e c t y 1 n Ψ s 1 m
where . 1 is the L1-norm given by Equation (5):
S 1 = k = 1 n S k
The minimum L1-norm solution is sparse, while the minimum L2-norm solution is sparse [33]. The linear indeterminate system of equations (Equation (4)) can be solved using the L2-norm with particular conditions that must be met for the L2 minimization to converge, but the solution is not sparse, as illustrated in Figure 8.
If white noise is immersed in the signal under test, Equation (5) should be varied to obtain the more robust Equation (6). With more samples per cycle, the system gains robustness to noise. Furthermore, the system is more robust to noise if a sufficiently large dispersity level k is used, i.e., a more significant number of cycles to be analyzed. Thus, Equation (6) is included in the algorithm to mitigate the noise immersed in the signal. The error also depends on the dictionary used; therefore, when a random type of measurement matrix is used, as is the case in this work, and a random single pixel is used as a measurement matrix, it is recommended to perform a noise analysis since it influences the error at the time of signal reconstruction. Thus, the total harmonic distortion (THD) error [34]:
s ^ = a r g m i n S 1 s s u b j e c t Ψ s 1 m y 1 n 2 < ε

3.1.5. Signal Reconstruction

Once found, the sparse vector (s) that contains the signal (x) is in compressed form in the frequency domain; when passing the vector (s) to the time domain with Equation (7), it is possible to reconstruct the original signal with an excellent approximation [35].
The approximation error is analyzed in the following section, with an actual signal measured by a data acquisition card; the acquired data are processed with the compressed sensing algorithms proposed in this work and compared with the additions obtained by a commercial power quality instrument, which will serve as a measurement standard [36].
S i g n a l ( x ) = x 1 m Ψ s 1 m I D C T s 1 m
The algorithm used to give a solution to the indeterminate system of Equations (3) is the one that imposes the magnitude of error when reconstructing the signal. According to the state-of-the-art analyzed, the algorithm that presents minor errors when reconstructing the signal in CS is basis pursuit (BP); it is based on the L1-norm, which works by convex optimization and provides a vector (S) that it sufficiently scarce with the majority of its elements equal to zero; in this way, the signal is compressed [31]. Therefore, the basis pursuit (BP) algorithm was used in the present work to solve the indeterminate system of equations and, thus, obtain the least error when reconstructing the signal.
Other algorithms also give solutions to the indeterminate system of Equation (3); these algorithms are used for other applications such as the detection, classification, or estimation of parameters, in which a complete reconstruction of the signal, the most used, does not need to be performed.
Least squares (LQ): This algorithm is based on the least-squares method, searches for a function f(x) that is a linear combination of the basis function, uses the L2 minimization rule, and obtains a sparse vector (S) affecting the signal compression [17].
Orthogonal matching pursuit (OMP): This is based on successive approximations of the signal coefficients by iteratively debugging a sparse solution until convergence is reached. This algorithm is ideal for reconstructing signals with high white noise; its drawback is the increased use of computational resources [37].
Greedy algorithms: The convex optimization method is the most suitable for reconstructing signals by its sparse representation; there are also the so-called iterative greedy algorithms, which have several qualities that, depending on the application, can improve the performance of convex algorithms; these algorithms are based on iterative approximations of the coefficients of the signal, to meet specific convergence criteria. The greedy algorithms are divided into two types: greedy pursuit and thresholding algorithms [36].
Compressive sampling matching pursuit (CoSaMP): This algorithm is also used for signal reconstruction; its margin of error is infinitely more significant than the convex algorithm. CoSaMP was developed by Needell and Tropp [27]. The algorithm initializes with a trivial approximation at each iteration; then, it calculates the dot product of the residual with the dictionary matrix ( Θ ). Additionally, it identifies the most-significant components, thus solving the least-squares problem to approximate the signal with the bound support. It retains only the most essential elements of the least-squares approximation. The samples are updated at each iteration, and their residual is calculated [38].

3.1.6. THD Harmonic Distortion Location

Harmonic distortion frequencies were extracted from the reconstructed current signal through compressed sensing using the discrete Fourier transform (DFT). Fourier analysis of a periodic function removes a series of sines and cosines called harmonics.
Consequently, to measure the total harmonic distortion of the current, the physical quantity called the total harmonic distortion (THD I) was used, proportional to all harmonic components present in a waveform. The admissible value in a power quality analysis is that the THD I be less than or equal to 5%; if this value is exceeded, the signal is contaminated with harmonic frequencies [21]. For the example case, Equation (8) defines the total harmonic distortion in the current waveform of an energy-saving lamp.
T H D I = h = 2 h = m a x ( I h ) 2 I 1
An error is made whenever a measurement or estimation of a quantity is produced. Once the harmonic frequencies and the percentage of total harmonic distortion of the current waveform have been obtained, the error is calculated according to the parameters obtained and compared with the standard measurements available. Two types of errors are distinguished: The first is the absolute error, ε , Equation (9), which is defined as the positive difference between the typical measurement value and the value reconstructed using the compressed sensing model [15].
ε = I I a p p r o x
The relative error is defined as the quotient of the absolute error and the common measurement value, as shown in Equation (10).
η = I I a p p r o x I
The relative error can be expressed as a percentage by Equation (11), which can be defined as a percentage.
δ = η 100 %
Calculating the error is the way to determine the model’s adequate parameters, the number of samples per cycle, and the number of samples to be reconstructed in the number of cycles to be considered.
The table of variables used in the mathematical model and the pseudocode of Algorithm 1 are presented in Table 3.
Algorithm 1 Harmonic detection with the CS algorithm.
  • Step:1,
  • Signal acquisition (x):
  • Step:2.
  • Definition of parameter:
  • NMP → Number of random samples per period
  • NP → Number of periods to analyze
  • m → Total number of samples of the signal (x)
  • n → Total number of random samples
  • Step:3.
  • [y] → Get measurement vector.
  • [t] → Get time vector.
  • Step:4.
  • Formation of the measurement matrix [C].
  • Step:5.
  • Dictionary matrix formation:
  • Θ m n = Ψ C = D C T ( C )
  • Ψ = d i s c r e t e c o s i n e t r a n s f o r m ( D C T )
  • Step:6.
  • Formation of the system of indeterminate linear equations with n equations and m variables; m > n.
  • y n = Θ m n s m
  • W e r e : s m = S p a r s e v e c t o r ( u n k n o w n s ) .
  • Step:7.
  • Solution of the indeterminate system of equations by the L1-norm using the L1 magic library.
  • Step:8.
  • Reconstruction of the signal:
  • x m = Ψ s m = I D C T s m
  • W h e r e : x m = R e c o n s t r u c t e d s i g n a l ( x )
  • Step:9.
  • Extraction of harmonics from the reconstructed signal:
  • N o . h a r m o n i c s = D F T x m
  • Step:10.
  • Calculation of harmonic distortion (THD)
  • Calculation of error percentage ( % ε ) .

4. Analysis of Results

Therefore, to test the mathematical model developed, an actual current sample was taken from an energy-saving light bulb with commercial power quality analyzer equipment; the measurements acquired with this equipment serve as a measurement standard for the analysis to be performed in this section, and the measurements obtained are shown in Table 4.
Three fundamental variables determine the error of the total harmonic distortion of the current (THD I); these variables are the number of samples taken for each cycle, the number of cycles to be analyzed, and the number of samples of the reconstructed signal (m).
The model’s effectiveness depends on the number of cycles analyzed and how many random samples are taken in each cycle. Figure 9 illustrates how the signal is formed by merging three random samples per cycle in seven processes. Ideally, the random samples of each cycle should not coincide; in this way, the error of the reconstructed signal is low, but if the pieces overlap between processes, the error of the reconstructed signal rises.
The model analysis starts with the number of samples per cycle constant in 32 samples, and the number of cycles to be analyzed varies from one process to 20 processes. Therefore, the number of samples of the signal to reconstruct is the multiplication of the number of samples to rebuild by the number of cycles; it will start in 64 samples and will culminate in 1280 samples at 20 cycles; this implies that the dictionary matrix begins with 32 rows and 64 columns and ends in 32 rows 1240 columns, while as the analysis cycles increase, the computer calculation time increases.
This depends on how the model took the random samples. For each cycle, the total harmonic distortion of the current (THD I) is calculated, then the relative error is calculated as a function of the standard value of THD I. The higher the harmonic frequency, the greater the error fluctuation; harmonic 21 is the highest error, while the fundamental frequency has the lowest error. Figure 10 shows the 20 runs of the model, obtaining the highest error at three cycles and the lowest error at 17 cycles. An error of less than 4% is achieved in cycles 14, 17, and 19.
Figure 11 analyzes the relative error of the harmonics in the periods 14, 17, and 19, the minor error being in the fundamental frequency, and the harmonics of greater frequency are those that have a more significant error, analyzed for 17 periods; it is observed that the more substantial error is in the harmonic 21 and the minor error in harmonic 11.
It is essential to analyze the machine time; the model was run under the Matlab software in a PC Intel® Core (TM) I7-6500 CPU-2.50 GHz RAM of 8.00 GB to simulate the number of samples constant in 32 and varying the number of periods from 1 to 20. The machine times are illustrated in Figure 12; since the least error was found at 17 periods, this time was taken as the reference (1.304879 s).
Consequently, a second analysis was performed in which the number of periods was kept constant at 20. Furthermore, the number of samples per cycle varied from 20 representatives to 32 pieces, as illustrated in Figure 13. It was observed that with 27 samples per cycle, a relative THD I error of 2.86% was obtained, and the highest relative error was obtained with 23 pieces per cycle.
Regarding the computational time in this simulation, the number of periods remained constant at 20; additionally, the number of samples varied per cycle from 20 to 32 (Figure 14). According to the simulation process, the lowest error was obtained with 27 samples, for which a machine time of 1.4553 s was used.
From the two simulation cases, the THD I error percentage of the first case was 1.78%, while the THD I error rate of the second case was 2.86%. In the same way, the computational time of THD I of the first case was 1.304879 s. Moreover, the second case was 1.4553 s. Therefore, the first case was the most efficient because it had a minor error and less computational time.
Figure 15 shows the actual current standard signal and its harmonics versus the signal reconstructed by compressed sensing; its harmonics and the relative error also showed the reconstruction of the signal; this graph corresponds to 17 cycles and 32 samples per cycle.
This article contributes to the localization of current harmonic distortion in a nonlinear load, the hardware. It was analyzed how the signal reconstruction error affects the THD error found by compressed sensing compared to the TDH measured by the standard measurement equipment. Figure 16 was physically implemented, and the measurements obtained were compared with the measurements of the standard measurement equipment. Several simulations were performed, varying the number of samples per cycle. In the state-of-the-art, the error rate is mentioned; however, it is not how many processes are being analyzed or how many pieces per cycle are being taken; how it affects the error rate is not included.
The main advantage of the algorithm proposed in the present work is that it allows the sampling of sparse signals with few data, and the signal can be reconstructed in detail, with a high response speed of the algorithm and a low consumption of computational resources, especially in data storage. Therefore, the power quality is comprehensively monitored by collecting a large amount of data in a small storage space.

5. Conclusions and Discussion

A signal was taken from the time domain to the frequency domain through a linear transform basis; in this domain, the signal was analyzed for how sparse it was. The compressed sensing technique can reconstruct the sparse signal using a few random measurements.
For the case study proposed in this work, the lowest relative error obtained from the total harmonic distortion of the current THD I of a saver lamp was 1.78%, taking 32 samples per cycle and analyzing 17 processes. Consequently, a system of indeterminate linear equations of 32 equations and 544 variables was formed and solved using the L1 magic library with a machine time of 1.304879 s.
Thus, reconstructing a signal and obtaining the total harmonic distortion through the compressed sensing theory were performed by taking several samples equal to their maximum frequency, in contrast to the Shannon/Nyquist theory. In reconstructing a signal, it is necessary to sample the signal at least two-times the maximum frequency of the fundamental wave.
The efficiency of compressed sensing to locate harmonic distortions in an electrical signal depends on correctly choosing a dictionary matrix composed of a measurement matrix and a linear transformation. After experimenting with several measurement matrices and linear transforms, it was concluded that the lowest error was achieved using the random single-pixel measurement matrix and the discrete cosine transform DCT as the linear transform.
In running the compressed sensing algorithm developed for the present work, its result was continuously varied; this is because the data were taken randomly, fluctuating with a margin of error of +/−2%.
The work presented was migrated to an embedded computer system, and it is planned to use an ODROID-U3 card; this card is based on ARM, capable of running Linux applications, in which Python and all its free libraries are installed, in such a way that we will have a power quality analyzer equipment based on compressed sensing and entirely with free software and hardware.
Future work can start by creating a non-random algorithm for data acquisition that does not conflict with the theory of compressed sensing. This will reduce the fluctuation of the reconstruction error of a periodic signal and reduce the sampling and analysis periods, thus avoiding dependence on access to total high-dimensional measurements, thus reducing the computational time [31,37].

Author Contributions

L.A.: conceptualization, methodology, validation, writing—review and editing. E.I.: conceptualization, methodology, software, writing—original draft. L.A.: data curation, formal analysis. E.I.: supervision. L.A.: writing—review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

Universidad Politécnica Salesiana and GIREI supported this work: Smart Grid Research Group under the project Electric vehicle charging in buildings and its impact on the sizing and planning of electrical distribution networks.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

This work was financially funded by the Smart Grid Research Group (GIREI) of Universidad Politécnica Salesiana, the Power Grids and Smart Cities (RECI), Salesian Institutions of Higher Education (IUS).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Puneeth, D.; Kulkarni, M. Data Aggregation using Compressive Sensing for Energy Efficient Routing Strategy. Procedia Comput. Sci. 2020, 171, 2242–2251. [Google Scholar] [CrossRef]
  2. Gonzalez-Abreu, A.D.; Martínez, V.; Delgado-Prieto, M.; Saucedo-Dorantes, J.J.; Osornio-Rios, R.A. Power quality monitoring and disturbances classification based on autoencoder and neural network for electrical power supply. Renew. Energy Power Qual. J. 2020, 18, 261–265. [Google Scholar] [CrossRef]
  3. Joshi, P.; Jain, S.K. An improved active power direction method for harmonic source identification. Trans. Inst. Meas. Control. 2020, 42, 2569–2577. [Google Scholar] [CrossRef]
  4. Shao, C.; Li, H. Identifying Single-Event Transient Location Based on Compressed Sensing. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 2018, 26, 768–777. [Google Scholar] [CrossRef]
  5. Baraniuk, R.G. Compressive sensing. Handb. Math. Methods Imaging 2015, 24, 118–121. [Google Scholar] [CrossRef]
  6. Baraniuk, R.G.; Cevher, V.; Duarte, M.F.; Hegde, C. Model-based compressive sensing. IEEE Trans. Inf. Theory 2010, 56, 1982–2001. [Google Scholar] [CrossRef]
  7. Candes, E.; Wakin, M. An Introduction To Compressive Sampling. IEEE Signal Process. Mag. 2008, 25, 21–30. [Google Scholar] [CrossRef]
  8. Granados-Lieberman, D.; Romero-Troncoso, R.J.; Osornio-Rios, R.A.; Garcia-Perez, A.; Cabal-Yepez, E. Techniques and methodologies for power quality analysis and disturbances classification in power systems: A review. IET Gener. Transm. Distrib. 2011, 5, 519–529. [Google Scholar] [CrossRef]
  9. Grasel, B. Supraharmonic and Harmonic Emissions of a Bi-Directional V2G Electric Vehicle Charging Station and Their Impact to the Grid Impedance. Energies 2022, 15, 2920. [Google Scholar] [CrossRef]
  10. Corti, F.; Shehata, A.H.; Laudani, A.; Cardelli, E. Design and comparison of the performance of 12-pulse rectifiers for aerospace applications. Energies 2021, 14, 6312. [Google Scholar] [CrossRef]
  11. Terriche, Y.; Mutarraf, M.U.; Laib, A.; Su, C.L.; Guerrero, J.M.; Vasquez, J.C.; Golestan, S. A Resolution-Enhanced Sliding Matrix Pencil Method for Evaluation of Harmonics Distortion in Shipboard Microgrids. IEEE Trans. Transp. Electrif. 2020, 6, 1290–1300. [Google Scholar] [CrossRef]
  12. Morales-Velazquez, L.; Romero-Troncoso, R.d.J.; Herrera-Ruiz, G.; Morinigo-Sotelo, D.; Osornio-Rios, R.A. Smart sensor network for power quality monitoring in electrical installations. Meas. J. Int. Meas. Confed. 2017, 103, 133–142. [Google Scholar] [CrossRef]
  13. Karafotis, P.A.; Evangelopoulos, V.A.; Georgilakis, P.S. Evaluation of harmonic contribution to unbalance in power systems under non-stationary conditions using wavelet packet transform. Electr. Power Syst. Res. 2020, 178, 106026. [Google Scholar] [CrossRef]
  14. Aharon, M.; Elad, M.; Bruckstein, A. K-SVD: An algorithm for designing overcomplete dictionaries for sparse representation. IEEE Trans. Signal Process. 2006, 54, 4311–4322. [Google Scholar] [CrossRef]
  15. Carta, D.; Muscas, C.; Pegoraro, P.A.; Sulis, S. Identification and Estimation of Harmonic Sources Based on Compressive Sensing. IEEE Trans. Instrum. Meas. 2019, 68, 95–104. [Google Scholar] [CrossRef]
  16. Campaña, M.; Masache, P.; Inga, E.; Carrión, D. Estabilidad de tensión y compensación electrónica en sistemas eléctricos de potencia usando herramientas de simulación. Ingenius 2022, 2. [Google Scholar] [CrossRef]
  17. Palczynska, B.; Masnicki, R.; Mindykowski, J. Compressive sensing approach to harmonics detection in the ship electrical network. Sensors 2020, 20, 2744. [Google Scholar] [CrossRef]
  18. Correa, E.; Inga, E.; Inga, J.; Hincapie, R. Electrical consumption pattern base on meter data management system using big data techniques. In Proceedings of the 2017 International Conference on Information Systems and Computer Science, INCISCOS 2017, Quito, Ecuador, 23–25 November 2018; pp. 334–339. [Google Scholar] [CrossRef]
  19. Majidi, M.; Etezadi-Amoli, M.; Livani, H. Distribution system state estimation using compressive sensing. Int. J. Electr. Power Energy Syst. 2017, 88, 175–186. [Google Scholar] [CrossRef]
  20. Kahane, J.P. Compressed sensing from a harmonic analysis point of view. Anal. Math. 2016, 42, 19–29. [Google Scholar] [CrossRef]
  21. Yang, T.; Pen, H.; Wang, D.; Wang, Z. Harmonic analysis in integrated energy system based on compressed sensing. Appl. Energy 2016, 165, 583–591. [Google Scholar] [CrossRef]
  22. Daponte, P.; De Vito, L.; Iadarola, G.; Rapuano, S. A reduced-code method for integral nonlinearity testing in DACs. Meas. J. Int. Meas. Confed. 2021, 182, 109764. [Google Scholar] [CrossRef]
  23. Daponte, P.; de Vito, L.; Iadarola, G.; Rapuano, S. A CS method for DAC nonlinearity testing. In Proceedings of the 24th IMEKO TC4 International Symposium and 22nd International Workshop on ADC and DAC Modelling and Testing, Palermo, Italy, 14–16 September 2020; Volume 24, pp. 146–150. [Google Scholar]
  24. Andráš, I.; Michaeli, L.; Šaliga, J. Compressed sensing with continuous parametric reconstruction. Int. J. Electr. Comput. Eng. 2021, 11, 851–862. [Google Scholar] [CrossRef]
  25. Andráš, I.; Šaliga, J.; Michaeli, L. Compressed sensing with model based reconstruction. In Proceedings of the 23rd IMEKO TC4 International Symposium Electrical and Electronic Measurements Promote Industry 4.0, Xi’an, China, 17–20 September 2019; Volume 23, pp. 233–238. [Google Scholar]
  26. Mukherjee, N.; Chattopadhyaya, A.; Chattopadhyay, S.; Sengupta, S. Discrete-Wavelet-Transform and Stockwell-Transform-Based Statistical Parameters Estimation for Fault Analysis in Grid-Connected Wind Power System. IEEE Syst. J. 2020, 14, 4320–4328. [Google Scholar] [CrossRef]
  27. Niu, Y.; Yang, T.; Yang, F.; Feng, X.; Zhang, P.; Li, W. Harmonic analysis in distributed power system based on IoT and dynamic compressed sensing. Energy Rep. 2022, 8, 2363–2375. [Google Scholar] [CrossRef]
  28. Baraniuk, R.G.; Candes, E.; Nowak, R.; Vetterli, M. Compressive sampling. IEEE Signal Process. Mag. 2008, 25, 12–13. [Google Scholar] [CrossRef]
  29. Ramu Naidu, R.; Murthy, C.R. Construction of unimodular tight frames for compressed sensing using majorization-minimization. Signal Process. 2020, 172, 107516. [Google Scholar] [CrossRef]
  30. Lydia, M.; Kumar, G.E.P.; Levron, Y. Detection of Electricity Theft based on Compressed Sensing. In Proceedings of the 2019 5th International Conference on Advanced Computing and Communication Systems, ICACCS 2019, Coimbatore, India, 15–16 March 2019; Volume 1, pp. 995–1000. [Google Scholar] [CrossRef]
  31. Inga-Ortega, J.; Inga-Ortega, E.; Gómez, C.; Hincapié, R. Electrical load curve reconstruction required for demand response using compressed sensing techniques. In Proceedings of the 2017 IEEE PES Innovative Smart Grid Technologies Conference—Latin America, ISGT Latin America 2017, Quito, Ecuador, 20–22 September 2017; pp. 1–6. [Google Scholar] [CrossRef]
  32. Jandan, F.; Khokhar, S.; Shaha, S.A.A.; Abbasi, F. Recognition and classification of power quality disturbances by DWT-MRA and SVM classifier. Int. J. Adv. Comput. Sci. Appl. 2019, 10, 368–377. [Google Scholar] [CrossRef] [Green Version]
  33. Candès, E.J.; Romberg, J.; Tao, T. Robust uncertainty principles: Exact signal reconstruction from highly incomplete frequency information. IEEE Trans. Inf. Theory 2006, 52, 489–509. [Google Scholar] [CrossRef]
  34. Mishra, M. Power quality disturbance detection and classification using signal processing and soft computing techniques: A comprehensive review. Int. Trans. Electr. Energy Syst. 2019, 29, 1–42. [Google Scholar] [CrossRef]
  35. Huang, K.; Xiang, Z.; Deng, W.; Tan, X.; Yang, C. Reweighted Compressed Sensing-Based Smart Grids Topology Reconstruction with Application to Identification of Power Line Outage. IEEE Syst. J. 2020, 14, 4329–4339. [Google Scholar] [CrossRef]
  36. Xiao, J.; Hu, F.; Shao, Q.; Li, S. Low-complexity compressed sensing reconstruction method for heart signal biometric recognition. Sensors 2019, 19, 5330. [Google Scholar] [CrossRef] [PubMed]
  37. Kerdjidj, O.; Ramzan, N.; Ghanem, K.; Amira, A.; Chouireb, F. Fall detection and human activity classification using wearable sensors and compressed sensing. J. Ambient. Intell. Humaniz. Comput. 2020, 11, 349–361. [Google Scholar] [CrossRef]
  38. Gołowicz, D.; Kasprzak, P.; Kazimierczuk, K. Enhancing compression level for more efficient compressed sensing and other lessons from NMR spectroscopy. Sensors 2020, 20, 1325. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. Process diagram of harmonic distortion detection by compressed sensing.
Figure 1. Process diagram of harmonic distortion detection by compressed sensing.
Sensors 22 06434 g001
Figure 2. Methodology used for the problem formulation.
Figure 2. Methodology used for the problem formulation.
Sensors 22 06434 g002
Figure 3. (a) General block diagram and (b) flow diagram of the proposed model.
Figure 3. (a) General block diagram and (b) flow diagram of the proposed model.
Sensors 22 06434 g003
Figure 4. Obtaining the measurement vector of the discrete signal (x) in the time domain (t).
Figure 4. Obtaining the measurement vector of the discrete signal (x) in the time domain (t).
Sensors 22 06434 g004
Figure 5. (a) Measurement matrix (C). (b) Dictionary matrix ( Θ ).
Figure 5. (a) Measurement matrix (C). (b) Dictionary matrix ( Θ ).
Sensors 22 06434 g005
Figure 6. Formation of the dictionary matrix ( Θ ).
Figure 6. Formation of the dictionary matrix ( Θ ).
Sensors 22 06434 g006
Figure 7. Indeterminate system of equations and its solution with the L1-norm.
Figure 7. Indeterminate system of equations and its solution with the L1-norm.
Sensors 22 06434 g007
Figure 8. L1 and L2 minimum standard solutions to the compressed sensing problem.
Figure 8. L1 and L2 minimum standard solutions to the compressed sensing problem.
Sensors 22 06434 g008
Figure 9. Signal reconstruction parameters and variables.
Figure 9. Signal reconstruction parameters and variables.
Sensors 22 06434 g009
Figure 10. THD error vs. several cycles and harmonic error vs. several cycles.
Figure 10. THD error vs. several cycles and harmonic error vs. several cycles.
Sensors 22 06434 g010
Figure 11. Harmonic error rate of periods 14, 17, and 19.
Figure 11. Harmonic error rate of periods 14, 17, and 19.
Sensors 22 06434 g011
Figure 12. Machine time for a constant number of samples at 32 and varying the number of periods from 1 to 20.
Figure 12. Machine time for a constant number of samples at 32 and varying the number of periods from 1 to 20.
Sensors 22 06434 g012
Figure 13. Error vs. harmonics, keeping the number of periods constant at 20 and varying the number of samples per cycle from 20 to 32.
Figure 13. Error vs. harmonics, keeping the number of periods constant at 20 and varying the number of samples per cycle from 20 to 32.
Sensors 22 06434 g013
Figure 14. Machine time, number of periods constant at 20, varying the number of samples per cycle from 20 to 32 samples.
Figure 14. Machine time, number of periods constant at 20, varying the number of samples per cycle from 20 to 32 samples.
Sensors 22 06434 g014
Figure 15. Real signal and its harmonics vs. CS-reconstructed signal and its harmonics.
Figure 15. Real signal and its harmonics vs. CS-reconstructed signal and its harmonics.
Sensors 22 06434 g015
Figure 16. Hardware implemented in the experimental process.
Figure 16. Hardware implemented in the experimental process.
Sensors 22 06434 g016
Table 1. Differences in harmonic detection between DFT and CS.
Table 1. Differences in harmonic detection between DFT and CS.
Samples per CycleVisualize the Harmonic No.
The classical method for harmonic detection using DFTGreater than 6432
The proposed method for harmonic detection by compressed sensing (CS)Less than 3232
Table 2. Summary of related works and the novelty of this work.
Table 2. Summary of related works and the novelty of this work.
Measurement MatrixLinear TransformationApplicationResults
Author, YearObjectivesBernoulliGaussianSingle PixelDFTDCTDGTTheoreticalPracticalError (%)
Kahane, 2016 [20]Harmonic detection with CS- - -- --
Yang, 2016 [21]Harmonic detection with CS- - -- -1.8
Majidi, 2017 [19]Distribution system state estimation with CS --- - -0.50
Palczynska, 2020 [17]Harmonic detection with CS ---- -1.00
Mukherjee, 2020 [26]Estimation for fault analysis with CS --- - --
Daponte, 2021 [22]A reduced-code method for integral nonlinearity testing in DACs- -- - 0.044 RMSE
Andras, 2021 [24]Compressed sensing with continuous parametric reconstruction------ -
Niu, 2022 [27]Harmonic detection with CS-- -- -0.15
Present workHarmonic detection with CS-- - - 1.78
Table 3. Notations used in this article.
Table 3. Notations used in this article.
Dimensions
KNumber of nonzero entries in a K-sparse vector s
mNumber of data snapshots (i.e., columns of X)
nDimension of the state, x ε Rn
pDimension of the measurement or output variable, y ε Rp
Vectors
sSparse vector, s ε Rn
xOriginal signal
x , Reconstructed signal
yVector of measurements, y ε Rp
Matrix
CMeasurement matrix
Θ Dictionary matrix
Ψ Orthonormal basis (e.g., Fourier, wavelet, Gabor, etc.)
Ψ Inverse orthonormal basis (e.g., Fourier, wavelet, Gabor, etc.)
Φ Projection matrix
Norms
. 0 L0 pseudo-norm of a vector x, the number of nonzero elements in x
. 1 L1-norm of a vector x given by x 1 = i = 1 n X i 2
. 2 L2-norm of a vector x given by x 2 = i = 1 n X i 2
Transform
D C T Discrete cosine transform
D F T Discrete Fourier transform
D G T Discrete Gabor transform
D R T Discrete Radon transform
D W T Discrete wavelet transform
S V D Singular-value decomposition
I D C T Discrete cosine inverse transform
Harmonic
T H D Total harmonic distortion
I 1 RMS value of the fundamental component
I n RMS value of the nth harmonic voltage
hHarmonic (2,3,4…)
Error
I a p p r o x Approximation value
IPattern value
δ Percent error
η Relative error
ε Absolute error
Table 4. Parameters of the standard signal.
Table 4. Parameters of the standard signal.
ParameterMeasure
THD I74.25%
Fundamental Amplitude64.65 mA
Harmonic 337.65 mA
Harmonic 516.40 mA
Harmonic 715.94 mA
Harmonic 910.43 mA
Harmonic 118.49 mA
Harmonic 137.87 mA
Harmonic 157.15 mA
Harmonic 176.71 mA
Harmonic 193.94 mA
Harmonic 213.04 mA
Number of samples per cycle64
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Amaya, L.; Inga, E. Compressed Sensing Technique for the Localization of Harmonic Distortions in Electrical Power Systems. Sensors 2022, 22, 6434. https://doi.org/10.3390/s22176434

AMA Style

Amaya L, Inga E. Compressed Sensing Technique for the Localization of Harmonic Distortions in Electrical Power Systems. Sensors. 2022; 22(17):6434. https://doi.org/10.3390/s22176434

Chicago/Turabian Style

Amaya, Luis, and Esteban Inga. 2022. "Compressed Sensing Technique for the Localization of Harmonic Distortions in Electrical Power Systems" Sensors 22, no. 17: 6434. https://doi.org/10.3390/s22176434

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop