Next Article in Journal
Unique Coolant Supply Passage Arrangements to Induce Large-Scale Vortex within Turbine Blade Interior Leading Edge Chambers
Previous Article in Journal
Correction: Tasnim Mowri et al. Assessing the Impact of First-Life Lithium-Ion Battery Degradation on Second-Life Performance. Energies 2024, 17, 501
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Detection and Classification of Voltage Disturbances in Electrical Power Systems Based on Multiresolution Analysis and Negative Selection Algorithm

by
Haislan Bernardes
1 and
Carlos Roberto Minussi
2,*
1
Federal Institute of São Paulo (IFSP), Campus of Presidente Epitácio, Presidente Epitácio 19470-000, SP, Brazil
2
Electrical Engineering Department, College of Electrical Engineering of Ilha Solteira (FEIS/UNESP), Ilha Solteira 15385-000, SP, Brazil
*
Author to whom correspondence should be addressed.
Energies 2024, 17(14), 3403; https://doi.org/10.3390/en17143403
Submission received: 30 May 2024 / Revised: 29 June 2024 / Accepted: 8 July 2024 / Published: 11 July 2024
(This article belongs to the Section F: Electrical Engineering)

Abstract

:
Early detection of threats to electrical energy distribution systems helps professionals make decisions and mitigate interruptions in supply and improper activation of the protection system. Biologically inspired methods, e.g., artificial neural networks, genetic algorithms, and ant colonies, solve optimization problems and facilitate pattern recognition and decision-making. The present work presents a tool for detecting and classifying voltage disturbances based on the negative selection algorithm, which identifies and eliminates self-reactive cells, associated with multiresolution analysis, which analyzes the signal at different scales of detail, allowing a more complete understanding and detailed description of the phenomenon in question. The negative wavelet selection algorithm demonstrates robustness to detect and classify disturbances.

1. Introduction

Power quality can be defined as the suitability of an electrical energy source for the operation of electrical and electronic equipment without causing damage or undesirable interference. The increasing use of nonlinear loads and power electronic devices connected to the power system (PS) directly affects its operational capabilities. Disturbances in the fundamental voltage waveform, such as frequency variations, interruptions, fluctuations, and/or distortions [1], referred to as voltage disturbances, can undermine the stability and security of the PS, damage sensitive equipment (e.g., transformers, motors, and electronic devices), affect power quality, and cause interruptions to the power supply. Early detection and classification of disturbances in electrical power systems coupled with other relevant strategies aim to ensure the reliability, stability, and continuity of the supply to consumers and the integrity of PS equipment and components, highlighting the need for continuous monitoring of power systems [2].
Power quality studies have been a widely studied subject in the electrical sector. In the specialized literature, the following publications can be highlighted. Reference [3] presents a system dedicated to detecting and classifying transients and voltage waveform distortions based on digital filtering and mathematical morphology. RMS voltage value analysis is used in cases of short-term and long-term disturbances. This method identifies the type of disturbance and its parameters, such as the temporal location, duration, and magnitude. It is suitable for real-time monitoring and implementation of power systems using a digital signal processor. The proposed method identifies disturbances and their parameters (time, duration, magnitude), which is suitable for real-time power system monitoring with a DSP. It accurately detects and measures power quality disturbances, which is ideal for standalone DSP-based instruments due to the low computational needs. Testing with simulated and real data showed it is faster than the discrete wavelet transform method, with easily adjustable sensitivity through the threshold levels.
In reference [4], the proposed method identifies disturbances and their parameters (time, duration, magnitude) suitable for real-time power system monitoring with a DSP. Because of the low computational needs, it accurately detects and measures power quality disturbances properly for standalone DSP-based instruments. Testing with simulated and real data showed it is faster than the discrete wavelet transform method, with easily adjustable sensitivity through the threshold levels. A method is presented that is aimed at decision support for automatically detecting and classifying voltage disturbances based on signal-processing techniques and intelligent systems. This method is composed of four modules: (1) the first module continuously analyzes the operational status of the electrical system; (2) the second extracts the relevant characteristics of the three-phase voltage signal based on the discrete wavelet transform, multiresolution analysis and the concept of the entropy norm; (3) the signal signature is processed through standardization and coding; and finally, (4) the fourth module elaborates the classification of the type of disturbance based on the use of a fuzzy-ARTMAP ANN, a neural network architecture for incremental supervised learning of recognition categories and multidimensional maps in response to arbitrary sequences of analog or binary input vectors [5]. The results show that the proposed method is efficient, robust, and offers high computing performance with low processing time, making it suitable for real-time applications. The continuous detection process for voltage anomalies succeeded in all the diagnoses with a detection time of approximately 2.9 ms due to the reduced processing complexity. The method, combined with FANN, proved robust against common diagnostic challenges. Designed to balance the needs and constraints of power companies, it is simple and cost-effective to implement, requiring only a data acquisition system and standard data-processing devices. Additionally, its continuous training module offers an advantage over traditional techniques by not requiring reinitialization, preserving previously acquired knowledge.
Ref. [6] presents a method for detecting and classifying voltage disturbances in distribution power systems to assist with operation during faults and supervise the protection system. The proposed diagnostic tool is based on artificial immune systems, specifically the negative selection algorithm, and uses three-phase voltage measurements obtained at substations to monitor the system. The detectors are generated in the censoring phase, and the AIS monitors the process. This phase is executed offline and separated by phase, where each phase (three-phase system) has self-detectors. The monitoring phase is divided into three modules: realize the data acquisition, proper/non-proper discrimination, and classify the disturbances. The proposed algorithm demonstrates excellent results, with approximately 99.16% accuracy in every simulated sample. Therefore, the detector phase requires more computational time and is executed offline. However, the monitoring phase is very fast, allowing the algorithm to be used online, as decisions need to be made swiftly.
Reference [7] explores various deep-learning architectures trained and validated using simulated data and tested with experimental data. The simulated data were augmented to generalize the results and address the discrepancies between simulated and measured data. The architectures, including LSTM, CNN, and a hybrid LSTM-CNN, were trained and validated with augmented datasets and then tested on field-acquired experimental data. Experimental validation focused on classifying interruptions and sag disturbances, with all the architectures successfully identifying sag signals. However, discrepancies arose in classifying interruption signals, with the LSTM-CNN with adjusted hyper-parameters proving superior. Overall, the LSTM-CNN with adjusted hyper-parameters consistently outperformed the others in classifying disturbances in simulated and experimental datasets, particularly excelling with transient disturbances.
In reference [8], the paper addresses the real-time detection and classification of power quality disturbances in power delivery systems by proposing a sequential and multivariate detection method. This detector follows a non-parametric and supervised approach, learning nominal and anomalous patterns from training data that include clean and disturbed signals. Its multivariate nature allows for joint data processing from multiple meters, enabling quicker detection through cooperative analysis. The authors extend this supervised sequential detection method to a multi-hypothesis setting, aiming to classify disturbance events as quickly and accurately as possible in real time. This multi-hypothesis method requires a training dataset for each hypothesis, covering each disturbance type and the “no disturbance” case. The method’s asymptotic optimality in minimizing the average detection delay in the minimax sense was demonstrated. Through voltage disturbance simulations, the technique outperformed existing sequential detectors, ODIT and GLLR, in quick detection while maintaining the same false alarm rate. Analyzing four voltage disturbance types (sag, swell, oscillatory transient, and harmonics), the proposed sequential classifier achieved accurate classification—98.38% accuracy with a 0.38% false alarm rate under 20 dB SNR, and 100% accuracy with 0% false alarm under 30 dB SNR—within less than a waveform cycle on average (0.61 cycles, corresponding to 39.46 samples or 0.0123 s).
Reference [9] proposes a PQD classification and detection method using image processing and deep learning-based auto-encoders. Fifteen simulated PQD signals are generated and converted into images, which are processed with a Gabor filter to obtain the original features. These features are then passed through a DAE neural network trained to learn the optimal, robust, and non-redundant features, followed by a SoftMax classifier for PQD classification. The method includes converting the images to grayscale for accurate temporal detection of disturbances. The proposed approach accurately classifies accurate and noisy PQDs, requires less computation time than methods like SVM, and effectively determines PQD temporal information. The model demonstrates over 97% classification accuracy with a 20 dB SNR, outperforming other popular PQD classification methods.
The high information-processing capacity and inherent resource optimization ability of biological systems render them of great interest to the scientific community. Ant colonies initially move without a specific destination but with a well-defined objective: the food search. Once the food is found, these small invertebrates return to the colony, leaving a pheromone trail that enables other ants to stop moving randomly and start following this trail [10]. Algorithms inspired by neural networks aim to mathematically model the behavior of the central nervous system. The neuronal model in [11] proposes computational elements derived from the physiological properties of a biological neuron and its connections (synapses). Artificial neurons, analogous to biological neurons, use mathematical techniques to store acquired knowledge and weigh it in decision-making. The main characteristic of neural networks is their ability to interact with their environment to recognize patterns that can solve problems, e.g., the adaptive resonance Theory, known as ART, is a cognitive and neural theory explaining how the brain independently learns to categorize, recognize, and anticipate objects and events within a dynamic environment [12].
Advanced mathematical tools for signal processing are potent allies in addressing detection and classification problems. Ref. [13] proposed a method based on combining discrete wavelet transform (DWT) with a wavelet network for diagnosing power quality disturbances. The technique eliminates the distorted waveform to obtain a signal with a higher signal-to-noise ratio. Then, DWT is used to extract the feature vectors for different disturbances. These information clusters are presented to the wavelet network for training and testing. The proposed method’s effectiveness is demonstrated through testing with various PQ disturbances, such as DC offset, harmonics, flicker, interrupt, sag, swell, notching, transients, and their combinations, achieving a classification accuracy of 98.18%. Compared to other methods, including wavelet transform, neural network, neural fuzzy, wavelet packet, support vector machines, and combinations thereof, the proposed wavelet network-based algorithm is faster, more accurate, and more robust, excelling in individual and combined PQ disturbance detections. Though one wavelet-fuzzy classifier matched its accuracy, it could not detect combined PQ events like the proposed algorithm.
Ref. [14] presents a generalized version of the Fourier transform, the fractional Fourier transform (FRFT), which is used to extract signal features. The FRFT has an additional order control and can provide a signal’s intermediate time, frequency, and time–frequency representations. The order control offers multi-domain feature extraction, meaning the transform can be adjusted to emphasize different signal aspects depending on the application needs. This results in a robust feature matrix that can be classified under various conditions. In most cases, the proposed technique outperforms the Stockwell transform (ST)-based classification, especially under higher noise levels, validating with real PQDs from experimental setups that the results closely match the simulations. Evaluating the performance in terms of the TFRs, computational burden, processing time, feature effectiveness, and accuracy, the FRFT provides less sophisticated TFRs but allows easy visual characterization of PQDs. The FRFT approach processes 11 × 15,000 complex vectors of size 1 × 1280, whereas the ST handles 15,000 complex matrices of size 640 × 1280. Despite this, FRFT-DT is suitable for real-time applications due to its processing time and accuracy, while FRFT-BP can be used for faster classification with parallel processing. Overall, FRFT-based classification is deemed suitable for practical applications.
Artificial immune systems (AISs) are computational models inspired by the principles and processes of the biological immune system, which are designed to solve complex problems in various domains. These systems leverage the adaptive and learning capabilities of the natural immune system to detect anomalies, classify patterns, and optimize processes. AISs are particularly adept at recognizing and responding to novel and evolving threats due to their ability to learn from exposure to different patterns and adapt over time, making them highly effective in intrusion detection, fault diagnosis, and data-mining applications, where traditional methods may struggle with dynamic and unpredictable environments. By mimicking immune mechanisms like negative selection, clonal selection, and immune network theory, an AIS provides robust, flexible, and efficient solutions for various computational challenges.
This work presents a methodology for detecting and classifying voltage disturbances based on the association of wavelet transform via multiresolution analysis with the negative selection algorithm. Combining artificial immune systems (AISs) with advanced signal processing techniques like wavelet transform offers several significant advantages in the detection and classification of voltage disturbances in power systems:
  • Adaptation to Variable Environments: An AIS is known for adapting to dynamic and changing environments, providing crucial information in power grid contexts where operational conditions can rapidly fluctuate due to various internal and external influences.
  • Detection of Complex Anomalies: Wavelet transform effectively decomposes signals to capture features across different time and frequency scales. This enables precise detection of voltage disturbances occurring in various forms and durations, including rapid variations and transient oscillations.
  • Reduced False Positives: Combining AIS techniques such as negative selection algorithms helps reduce false positives by generating a set of “antibodies” (detectors) specifically sensitive to anomalous patterns in voltage signals. This enhances the detection and classification reliability.
  • Generalization Capability: AIS can generalize from limited examples, which is advantageous in voltage disturbance detection applications where disturbance characteristics can vary widely. This allows for a broader and more robust detection system application across different scenarios and operational conditions.
  • Efficient Real-Time Processing: Integrating an AIS with wavelet transform enables efficient real-time processing of voltage oscillograms collected at substations or monitoring points. This is critical for power systems where a rapid response to disturbance detection can aid in mitigating impacts on equipment and maintaining the energy supply quality.
  • Continuous Improvement with Adaptive Learning: An AIS features adaptive-learning capabilities, allowing continuous improvement of detection system performance as more data are collected and more disturbances are detected and classified. This contributes to enhanced accuracy over time.
In summary, leveraging artificial immune systems with techniques like wavelet transform provides a robust and practical approach to detecting and classifying voltage disturbances in power systems. This approach enhances the reliability, accuracy, and adaptability to varying electrical environment conditions. The proposed tool aims to assist professionals in diagnosing disturbances in the electrical system by analyzing voltage oscillographs collected at the substation output bus. This instrument seeks to prevent the deterioration of system components and avoid the improper triggering of protection devices.

2. Negative Selection Algorithm

Artificial immune systems (AISs) are methodologies for manipulation, classification, reasoning, and data representation that follow a plausible biological paradigm: the human immune system. The main characteristics of immune physiological behavior are computationally reproduced and applied to solving real-world problems, e.g., pattern classification and anomaly detection. AISs are suitable tools for application in engineering problem solving, as they possess natural characteristics that facilitate the pattern recognition process.

Non-Self Reactivity

The discrimination between self (substances belonging to the organism) and non-self (foreign substances and/or substances not belonging to the organism) relies on the immune system’s ability to identify and react to antigens while ensuring self-tolerance (non-reactivity to self) [15]. This discrimination is partly achieved by T cells, which possess receptors on their surface that can detect foreign proteins (antigens). In immunological systems, recognizing non-self-material is the responsibility of a set of receptors and proteins through a pattern recognition process (pattern recognition molecules) [16]. The concept of pattern recognition in the immune system was introduced by Janeway [17] as the process of discrimination between self and non-self.
The negative selection algorithm (NCA) is inspired by the biological foundations of the negative selection that occurs within the natural immune system, with self-reactive cells being eliminated to prevent autoimmune reactions. In this case, its operation corresponds to the random generation of detectors and the elimination of detectors that recognize self so that the remaining T cells can detect any non-self-material. This algorithmic approach can be summarized as follows [18]:
  • Define self as a set S of strings of length L over a finite alphabet that needs to be protected (autoantigen);
  • Using a partial matching rule, in which two strings match if and only if they are identical in at least r contiguous positions, where r is an appropriately chosen parameter, generate a set R of detectors, each of which fails to match any string in S ;
  • Monitor S for changes by continuously comparing the detectors in R with S . If any detector reacts, it indicates a change has occurred, as the detectors are designed not to match any of the original strings in S .
The NSA operates in two stages: censoring and monitoring [19]. In the censoring stage (Figure 1), initially, it is necessary to establish a set of self-strings (protected strings). Subsequently, detector candidates are randomly presented for matching testing. The candidate is discarded if the candidate exhibits a high matching rate (autoantigen). Otherwise, it becomes part of the detector group [13,15]. This process is repeated until a desired number of detectors are generated. Probabilistic analysis estimates the number of detectors needed to provide a certain level of reliability.
In the monitoring stage (Figure 2), given the set of strings that need to be protected, the match between each of them and the set of detectors is evaluated online. If the match exceeds a predefined threshold, a non-self-element (antigen) has been identified [20].

3. Multiresolution Analysis

Multiresolution analysis is a powerful signal-processing technique that allows analysis of a signal at different resolution scales. It is beneficial for dealing with non-stationary signals, i.e., signals whose characteristics change over time. The principle of wavelet transform involves decomposing the original signal into different frequency components and time localization. This decomposition is achieved through a series of filtering and down-sampling operations, progressively reducing the temporal resolution of the signal.
Certain disturbances pose great difficulty in terms of their interpretation as the deformations caused in the signal by the disturbance can be extremely subtle. A convenient solution is to expand the signal, akin to a photographic “zoom”, at various levels of resolution. This strategy, termed multiresolution analysis (MRA), enables the inspection of the intricacies contained in the signal at various levels of detail. Adapting the resolution of a signal allows for processing only the relevant details for a given task [21]. However, caution must be exercised to ensure that altering a signal’s resolution does not distort its interpretation of reality. This issue is often addressed in computational image processing.
Ref. [22] studied the properties of the operator that approximates a signal at a specific resolution and showed that the information difference between the approximation of a signal at resolutions 2 j + 1 and 2 j can be extracted by decomposing the signal into an orthonormal wavelet basis L 2 R , where an orthonormal wavelet basis is a family of functions 2 j ψ 2 j x n j , n Z 2 constructed by dilating and translating a unique function ψ x . This decomposition defines an orthogonal multiresolution called the wavelet representation. MRA is a method for constructing orthogonal wavelets [23].
The multiresolution analysis of a signal consists of its representation as successive approximations, where each approximation is a smoothed version of the previous one [24]. The multiresolution analysis calculates the signal’s approximation at various resolutions with orthogonal projections in different spaces V j , j   ϵ   Z [21]. Mathematically, multiresolution analysis is defined as an increasing sequence of closed subspaces V j , j   Z , which approximate the functions L 2 R and satisfy the following properties [25].
The continuous wavelet transform of the function f ( t )     L 2 ( R ) is defined as:
C W T f ψ u , s = f t ψ u , s * t d t
where
ψ u , s * t = 1 u ψ * t s u
is an orthonormal basis for L 2 R , ψ t is the mother wavelet, and u ,   s R , u 0 are the translation and dilation parameters (scale).
Its discrete counterpart in practical applications can replace the continuous wavelet transform.
D W T f ψ m , n = k f k ψ m , n * k
Restricting the dilation ( s ) and translation ( u ) parameters in Equation (1) to discrete values so that u = r 0 m and s = n s 0 n r 0 n with m and n varying over Z and u 0 > 1 and s 0 > 0 fixed [26], the wavelet function is rewritten as:
ψ m , n * k = 1 r 0 m ψ * k n s 0 r 0 m r 0 m
The signal decomposition is performed at different resolution levels with a low-pass filter h and a high-pass filter g . The approximation and detail coefficients are given by Equations (5) and (6), respectively.
c j n = k h k 2 n c j 1 k
d n = k g k 2 n c j 1 k
Figure 3 shows the decomposition of a signal into three levels of resolution.

4. Voltage Disturbances

Voltage disturbances are characterized by variations in the electrical current and waveform distortion, such as changes in the frequency and amplitude. These disturbances result in voltage surges, sags, fluctuations, momentary interruptions, and harmonic distortions. These issues cause interferences in communication systems, inaccurate measurements, conductor overheating, and improper relay activation, affecting consumers and power distribution companies.
A common challenge faced by researchers in engineering is the need for consistent data from power systems. Typically, specialized simulation software, such as ATP/EMTP (alternative transients program/electromagnetic transients program), is used. However, an alternative that satisfactorily meets the objectives of this study involves mathematical modeling. The theoretical models, i.e., the base equations, were extracted from [27] and are presented in Table 1.

5. Negative Selection Wavelet Algorithm (NSWA)

The structure of the negative selection wavelet algorithm (NSWA), presented in Figure 4, facilitates the detection and classification of voltage disturbances in medium-voltage (15 kV class) power distribution systems using oscillography voltage data monitored at the power substation (SE). The input data of the classifier system are shaped by the detail coefficients extracted via multiresolution analysis (wavelet transform) from the sampled voltage signals. The strategy can be divided into four stages based on the negative selection algorithm equipped with a signal feature extraction module obtained through the multiresolution analysis process:
  • Selection of protected strings, i.e., the definition of self
  • Construction of the detector set, i.e., the non-self-sensitization phase
  • Non-self-detection
  • Disturbance classification

5.1. Affinity

Once the self-strings are defined, candidate vectors are randomly presented to the antibody-forming system. These signals are then subjected to a compatibility analysis with the self-set. A candidate is rejected if the calculated affinity exceeds a predefined threshold (affinity rate). If the calculated affinity is below the affinity rate, the candidate becomes part of the non-self-detector set. This procedure is repeated until each disturbance’s defined number of detectors is reached.
The affinity rate represents the degree of similarity required for a match between the candidate and self-signal strings. The affinity between an antigen ( A g ) and an antibody ( A b ) is related to the similarity between two vectors or attribute strings. Consider the coordinates of an antibody and an antigen given, respectively, by A b = < A b 1 , A b 2 , , A b L > , and A g = < A g 1 , A g 2 , , A g L > , then the affinity between these molecules can be measured by Equation (7).
A f = i = 1 L P c i L × 100
where P c i is the i -th matched position and L is the total chain length. To determine the match of the i -th position of the evaluated vectors, the partial-matching criterion is used, i.e., for each position in the chain, a tolerance margin σ is accepted to determine whether or not there is similarity between the test patterns.
A b i σ A g i A b i + σ
where A b i is the value of the i -th position of the antibody, A g i the value of the i -th position of the antigen candidate, and σ is the accepted deviation/tolerance.

5.2. Training and Diagnosis

The detail coefficients extracted from known standard voltage signals are selected to form the set of proper chains. This step is essential to prevent the detector system from issuing false alarms regarding disturbances in the electrical system.
The stage of non-self-sensitization occurs with the production of detectors (antibodies) through the self/non-self-discrimination process, i.e., using the concept of censoring. In this phase, voltage oscillographs under normal operating conditions are subjected to multiresolution analysis to extract the signal characteristics. The first-order detail coefficients form the set of protected chains. The detectors are selected in the comparison process (affinity test) with the protected chains. The detector chains must be capable of recognizing anomalous signals with high generalization capacity, i.e., the number of detectors must be the minimum necessary for disturbances to be detected without compromising the computational cost.
The selection of the mother wavelet is crucial due to the different properties among the available types. Three main criteria influence this choice: the order of the wavelet (vanishing moments), the support size, and the regularity of the function ψ . Daubechies wavelets are notable for their minimal support for a given number of vanishing moments. Daubechies wavelets are expressed as db N , where N is the number of vanishing moments, i.e., they have N filter coefficients, which allow for representing signals whose polynomial order does not exceed   N 1 . Mother wavelets with more vanishing moments enable the representation of more complex signals [4].
The diagnosis of disturbances in the distribution system is performed online, i.e., the classification system monitors voltage oscillographs in real time with a full-cycle window. Analogous to the antigen perception stage, in the first stage of diagnosis, the sampled signal is decomposed by the wavelet transform, and the feature vectors are subjected to the affinity test with the protected chains. A disturbance is detected if the calculated compatibility is below the predefined affinity threshold. The monitoring stage in NSWA is carried out in two steps: detection and classification of the disorder. The detection stage continuously evaluates the decomposed voltage oscillographs in search of abnormalities. This process is carried out by comparing the monitored signal with the protected chains. A disturbance is detected if the calculated affinity between the inspected signal and itself is lower than a pre-established threshold.
The last phase of the process, classification, is carried out based on the level of affinity with the antibodies, i.e., the identification of the type of disturbance is performed by the maximum calculated compatibility between the detected disturbance and the detector chains R . The classification module is active whenever an anomaly in the system is detected. A new affinity assessment process is carried out using the collection of detectors built in the censorship stage. The signal labeled as a voltage disturbance is compared with the detector family. The detector that presents the most excellent affinity with the evaluated disturbance is chosen as the classification for the analyzed signal.

6. Results and Discussion

The system for diagnosing power quality disturbances in the medium-voltage distribution system is used to detect and classify eight different types of voltage anomalies: interruption (outage), harmonic distortion (total harmonic distortion—THD), voltage swell (swell), and voltage sag (sag) (with and without the presence of harmonics), oscillatory transients, and flicker (flicker). The results presented in this section refer to only phase A of the electrical system. However, the responses expressed in this text reflect what also occurs in the other phases of the electrical system regarding the tool’s capability to detect and classify disturbances.

6.1. Training and Testing Database

The database consists of 6000 samples for each of the nine operating conditions (one regular and eight types of disturbances), distributed in one of the three phases of the system, totaling 54,000 samples. As mentioned previously, the results discussed in this work refer to phase A of a fictitious three-phase power distribution system. Therefore, only a third of the samples produced are listed in this paper; more precisely, 18,052 simulations. The data were generated at a sampling rate of 256 samples per cycle (15.36 kHz) over seven cycles, with disturbances occurring during three of these cycles. The large number of operating conditions in the database ensures the visualization of the intrinsic dynamics of the power system. The database produced was divided into two groups. Approximately 27% of the samples were used for training (censoring stage), and another set of roughly 73% was used in the testing stage (monitoring stage). It is essential to highlight that all the data used in this study were obtained from simulations in MATLAB R2018b, 64-bit software using the equations in Table 1. It should be noted that using mathematical models to produce the database has two goals: to solve the problem of accessing real data and to explore a wide range of simulations with varied parameters.
The simulated data were generated pseudo-randomly, producing a specific anomaly in one or more phases of the circuit. The randomization accounts for the variation of all the relevant parameters in Table 1. It is worth noting that, following the guidelines of Normative Resolution No. 1000 [28], the normal operating conditions (self) include a ± 5% variation of the nominal voltage (Figure 5).
It is worth noting that normal conditions when considering a variation parameter seeking to meet regulatory requirements directly affect the system’s diagnostic capacity; e.g., sag-, swell-, and flicker-type disturbances can easily fill the “normality” spectrum.

6.2. Wavelet Transform

The versatility of the classifier system regarding the self/non-self (SNS) paradigm is optimized using Equation (8) to determine the partial match between points of an antigen chain and an antibody chain, with different tolerances adopted for the training phase ( σ =   3%) and the diagnostic phase ( σ =   12%). However, this flexibility can lead to the generation of inadequate antibodies that produce high compatibility between self and non-self signals. This fact can be easily observed in Figure 6, which compares the signal under normal operating conditions with the flicker-type defect.
The primary advantage of wavelet transforms when used in signal processing, specifically when applied to detecting and classifying voltage disturbances in power systems, lies in the ability to analyze signals at multiple resolutions. Time–frequency localization provides a more effective capture of transient events localized in time, such as voltage spikes and dips. The wavelet transforms when forming an antibody, allowing the signal characteristics to become more pronounced and, consequently, increasing the robustness and discernment capability of the classifier system, which mitigates the chances of high compatibility between self and non-self. The proposed tool adopts the Daubechies wavelet family with a sixth-order filter (db6). It uses the first-order detail coefficients to form the detector chains, a strategy that enhances the contrast between the categories involved in the problem. The distinction effect produced by signal feature extraction via the wavelet transform can be seen in Figure 7.

6.3. Disturbance Detection

The formation of a detector, according to the affinity criterion, occurs when the calculated compatibility is below the established affinity threshold, i.e., A f T a f . The affinity threshold ( T a f ) adopted in the design process of the detector collection is 80%. Furthermore, artificial immune systems must ensure the diversity of the immunological repertoire, i.e., the ability of a single antibody to identify mutations of the same invading agent. Therefore, the number and diversity of detectors are directly related to the effectiveness of the classifier system. On the other hand, an extensive set of detectors implies the low efficiency of the tool. Thus, the repertoire should consist of the minimum necessary quantity that still represents the heterogeneity of invading agents. The set of detectors is formed by approximately 30% of the simulations performed for each type of disturbance, representing an estimated average of 600 detectors for each type of irregularity. The exact number of detectors per disturbance type is shown in Table 2.
Despite the multivalence achieved with the relaxation of the matching function, complications can arise concerning the protected chains. One of the most severe consequences is the occurrence of false positives (FPs), i.e., defective signals classified as normal operating conditions. This error in detecting system failures perpetuates the irregularity, potentially causing damage to components of the power distribution system. Another effect is related to episodes of false negatives (FNs), i.e., situations where normal operating conditions are identified as anomalous. This phenomenon can cause the improper activation of protection devices, interrupting the power supply and unnecessarily dispatching maintenance teams.
Several studies using the artificial immune system (AIS), e.g., [6,29,30,31], have demonstrated it to be a robust anomaly detection and classification tool. However, the specificities of specific problems can make the classification of certain patterns complex. The wide range of possible variations in defect conditions highlights such specificities and complexities in the detection and classification process. The detector module evaluation used 13,226 signals, of which 11,265 were distorted samples. However, the system had difficulties recognizing certain anomalies with the traditional NSA, failing to detect 579 defective samples.
On the other hand, the proposed model (NSWA) is significantly improved, reducing the number of false positives. The detector module recognized 11,239 of the 11,265 abnormal conditions, going from 579 to 26 detection errors, demonstrating the high reliability of the system in preventing the deterioration of electrical network elements. One of the most comprehensive ways to represent the result of evaluating binary classification is using confusion matrices [32]. The confusion matrices presented in Figure 8 demonstrate the improvement in the detection process and consequent reduction in false positives using the NSWA compared to the NSA.
Flicker, sag, swell, and oscillatory transient disturbances are events misclassified as normal operation. These disturbances have significant consequences for both the electrical system and consumers. They can cause everything from visual discomfort and production stoppages to damage to equipment and system components, highlighting the importance of effective monitoring and mitigation strategies to ensure the stability and reliability of the electrical grid. The main consequences of each type of disturbance are shown in Table 3.

6.4. Disturbance Classification

In addition to detecting deformities in waveforms, complete diagnosis, i.e., detection and classification, is essential. The correct identification of irregularities preserves the components of the electrical power system. It ensures that problems related to the quality of the energy supplied to the consumer are quickly corrected, avoiding discomfort and losses. In this sense, the superiority of the proposed method (NSWA) compared to the conventional NSA is notable. The confusion matrix in Figure 9 demonstrates that despite a significant accuracy rate (92%), the system faces difficulties classifying exceedingly similar patterns. A brief analysis of Figure 9 allows the repercussions of the similarity between signals in the classification process to be easily visualized, even with a significant repertoire of detectors, e.g., the high interlacing between signals considered normal and flicker-type disturbances.
As already proven in the defect detection process, using a tool designed for signal processing combined with intelligent systems is a powerful strategy for addressing pattern recognition problems. The combination of multiresolution analysis with the negative selection algorithm significantly improved the ability to identify voltage disturbances. The confusion matrix shown in Figure 10 demonstrates this significant improvement in the overall accuracy rate, jumping from 92% to 97%.
The negative selection wavelet algorithm presents promising results, especially considering the immense variation in the evaluated signals. Table 4 allows for a comparative analysis of the classifier system’s performance without and using multiresolution analysis. Despite the negative selection algorithm (NSA)’s performance, incorporating the wavelet transform makes the system considerably more capable of more accurate diagnostics, reducing the overall error rate from 7.78% to 2.8%. An individual inspection by the type of fault, specifically flickers and oscillatory transients, highlights the superiority of the negative selection wavelet algorithm (NSWA) over the NSA in distinguishing between self and non-self and recognizing signal specificities. This performance gain demonstrates the system’s ability to mitigate incorrect power system functioning.
Due to the subtlety that may exist in the formation of the disturbance, it is known that disturbances such as flicker and oscillatory transient are more complex in the recognition stage. However, the proposed method drastically reduced the number of false positives and improved the ability to distinguish between normal signals and oscillations and transient oscillatory disturbances. It is relevant to note that the introduction of multiresolution analysis (MRA) caused incredible difficulty in recognizing disturbances of the type (sag/THD), confusing 21% of the samples with the disturbance type (swell/THD). However, from an operational perspective, fault sensitivity is still ensured. This characteristic is worrying since sags and swells are disturbances that represent two opposites regarding voltage levels. However, the presented tool guarantees more excellent reliability because, despite the relevant error, a defect is still signaled in the system, reducing the exposure time to the deterioration condition.
The evaluation metrics shown in Table 5 provide a more generalized assessment of the proposed classifier model. Notably, all the performance indicators of the NSWA surpass those of the NSA. Although the NSA presents good precision responses, the proposed model’s precision, sensitivity, and harmonic mean show significant improvement.
Evaluating models using metrics such as the accuracy, precision, recall, specificity, and F1-score provides a comprehensive understanding of their performance and highlights areas for improvement. Accuracy indicates the overall correctness of the model by measuring the ratio of correctly predicted instances to the total instances, with the negative selection algorithm (NSA) achieving 98.3% and the negative selection wavelet algorithm (NSWA) improving to 99.3%. Precision measures the proportion of true positive predictions to the total predicted positives, reflecting the relevance of the positive predictions, with the NSA at 93.7% and the NSWA improving to 97.1%. Recall, or sensitivity, assesses the ability of the model to identify all the relevant instances (true positives) and shows the capability of the model to capture actual disturbances, with the NSA at 91.7% and the NSWA advancing to 96.7%. Specificity measures the proportion of true negative predictions to the total actual negatives. This is crucial for understanding the model’s ability to correctly identify non-disturbances, with the NSA at 99% and the NSWA at a higher 99.6%. The F1-score, the harmonic mean of the precision and recall, balances the two metrics to provide a single measure of the model’s accuracy in handling imbalanced datasets, with the NSA scoring 92.2% and the NSWA significantly improving to 96.9%. These metrics demonstrate that the NSWA outperforms the NSA in all aspects, providing a more reliable and precise tool for detecting and classifying voltage disturbances in power systems.

6.5. Assessment of the Generalization of the Proposed Model

It is essential to use tools to assess the generalization capacity of pattern classification tools. K-fold cross-validation provides a robust and reliable estimate of model performance on unseen data. By dividing the dataset into multiple subsets, or “folds”, and training the model on different combinations of these subsets while testing on the remainder, cross-validation mitigates the risk of overfitting and underfitting. This process ensures that the model is not just adjusting to the training set’s peculiarities but learning patterns that can be generalized to new data. Furthermore, cross-validation maximizes the available data, making the evaluation more efficient and representative of the model’s performance in real-world situations.
K-fold cross-validation is widely recognized as a practical methodology for evaluating the generalizability of pattern classification techniques. However, for the proposed method, especially when used in evaluation (training/testing), the alternation of data between training and testing predicted by the k-fold method must be adjusted to the specific problem under analysis. It is observed that the data used in the training and diagnostic phases of the proposed classifier system correspond to 27% and 73%, respectively. This differs from approaches commonly used in other classification tools, e.g., artificial neural networks, where approximately 75% of the data are intended for training and 25% for testing. In the present study, the system performs training with significantly smaller data than the testing stage. However, it is recognized that this distribution alone is insufficient to mitigate the risk of overfitting. Thus, pseudo-random variations (randomization of input variables) were introduced into the dataset before its presentation to the classifier system. Table 6 presents the percentages of success for seven different simulations.
The results presented in the table indicate the evaluation of the generalization capacity of a proposed model for detecting and classifying voltage disturbances in the electrical power system. The data show consistently high performance for most disorder categories. Specifically, the ratings for flicker, normal, outage, sag, swell, swell/THD, harmonics, and oscillatory transient disturbances remain above 95%, with some categories, such as normal and harmonics, reaching 100% across multiple ratings. However, the sag/THD detection and classification have relatively lower accuracy, ranging between 77.90% and 81.40%, indicating a possible area for improvement of the model. Overall, the model demonstrates significant robustness in its ability to generalize to most voltage disturbances, which suggests promising effectiveness in practical applications in monitoring and controlling electrical power quality.

6.6. Computational Efficiency and Potential Impact of Implementation

The tool presented in this paper was developed and evaluated with MATLAB R2018b, 64-bit software. The hardware used was an Intel(R) Core(TM) i7-6700k 4.00 GHz equipped with 32 GB RAM. It is noteworthy that part of the code developed uses parallel programming concepts, when applicable, using the four cores available in the processor. The time for the detection and classification of each sample is shown in Table 7.
In addition to the improvements in disturbance detection and classification, the reduction in the computational cost required in the disturbance detection and classification process using the negative selection wavelet algorithm is notable. This is due to the excellent information aggregation capacity of multiresolution analysis. However, it is essential to highlight that the proposed tool works as a prelude to a commercial device; factors such as the adopted programming language directly interfere with the system’s performance.
Implementation has a minimal potential impact and requires minimal resources. The elements necessary for the insertion of the negative selection wavelet algorithm classifier system focus on the implementation of the software linked to the substation monitoring system since the data acquisition system is present in this type of installation. Unlike monitoring systems based on the smart grid concept, in which sensors and meters are installed at strategic points in the electrical energy system, the NSWA uses existing elements in substations.
The voltage disturbance detection and classification system based on the association of the negative selection algorithm and the wavelet transform (negative selection wavelet algorithm) is a powerful support tool for power substation operators. The methodology offers greater precision and speed in identifying anomalies, allowing a more agile and effective response to potential problems, which reduces the downtime and increases the reliability of the energy supply. Furthermore, the combined approach improves the system’s ability to continuously adapt and learn in the face of new disturbances, resulting in a more robust and resilient operation. Finally, implementing such a system can optimize operational costs, minimize the need for emergency maintenance, and extend the useful life of substation equipment.

7. Conclusions

This article presents an effective and efficient methodology to detect and classify voltage disturbances. This procedure allows for faster, more flexible, and robust automation of the electrical system, providing greater simplicity for operators. The diagnostic system was developed to balance the current needs of the electrical system, considering its technical and economic conditions. The proposed method can be implemented quickly and with minimal investment. These objectives are achieved by continuously monitoring electrical energy voltage signals and standard data-processing devices with a data acquisition system. Integrating advanced signal-processing techniques and intelligent systems provides high generalization capacity, flexibility, and efficiency, essential characteristics of the decision-making process. Considering the experiments carried out, the proposed methodology (detection and classification of electrical voltage disturbances) achieved an accuracy rate of 96.0%. The use of the wavelet transform directly affects the reduction of false positives. Studies on energy supply quality provide vital information for operators’ decision-making, directly affecting energy distributors’ safety, reliability, and profitability. The continuous anomaly detection process was successful in all the diagnoses with high computational performance, allowing real-time operation. This tool provides energy distribution companies with more significant support for planning the energy system and anticipating corrective measures that need to be taken.

Author Contributions

Conceptualization, H.B. and C.R.M.; methodology, H.B. and C.R.M.; software, H.B.; validation, H.B.; formal analysis, H.B.; investigation, H.B.; resources, H.B.; data curation, H.B.; writing—original draft preparation, H.B.; writing—review and editing, H.B. and C.R.M.; visualization, H.B. and C.R.M.; supervision, C.R.M.; project administration, C.R.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was carried out with the support of the Coordination for the Improvement of Higher Education Personnel—Brazil (CAPES)—Financing code 001, and Funding Agencies CNPq process 302896/2022-8.

Data Availability Statement

Data are contained within the paper.

Acknowledgments

The Federal Institute of Education, Science and Technology of São Paulo (IFSP) for the academic encouragement.

Conflicts of Interest

The authors declare that the research was conducted without any commercial or financial relationships that could be construed as potential conflicts of interest.

References

  1. Beniwal, R.K.; Saini, M.K.; Nayyar, A.; Qureshi, B.; Aggarwal, A. A critical analysis of methodologies for detection and classification of power quality events in smart grid. IEEE Access 2021, 9, 83507–83534. [Google Scholar] [CrossRef]
  2. 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, e12008. [Google Scholar] [CrossRef]
  3. Radil, T.; Ramos, P.M.; Janeiro, F.M.; Serra, A.C. Pq monitoring system for real-time detection and classification of disturbances in a single-phase power system. IEEE Trans. Instrum. Meas. 2008, 57, 1725–1733. [Google Scholar] [CrossRef]
  4. Decanini, J.G.; Tonelli-Neto, M.S.; Malange, F.C.; Minussi, C.R. Detection and classification of voltage disturbances using a fuzzy-artmap-wavelet network. Electr. Power Syst. Res. 2011, 81, 2057–2065. [Google Scholar] [CrossRef]
  5. Carpenter, G.A.; Grossberg, S.; Markuzon, N.; Reynolds, J.H. Fuzzy ARTMAP: A Neural Network Architecture for Incremental Supervised Learning of Analog Multidimensional Maps; Boston University Center for Adaptive Systems and Department of Cognitive and Neural Systems: Boston, MA, USA, 1991. [Google Scholar]
  6. Lima, F.; Lotufo, A.; Minussi, C. Artificial immune systems applied to voltage disturbance diagnosis in distribution electrical systems. In Proceedings of the 2013 IEEE Grenoble Conference, Grenoble, France, 16–20 June 2013; pp. 1–6. [Google Scholar]
  7. Garcia, C.I.; Grasso, F.; Luchetta, A.; Piccirilli, M.C.; Paolucci, L.; Talluri, G. A comparison of power quality disturbance detection and classification methods using CNN, LSTM and CNN-LSTM. Appl. Sci. 2020, 10, 6755. [Google Scholar] [CrossRef]
  8. Mozaffari, M.; Doshi, K.; Yilmaz, Y. Real-time detection and classification of power quality disturbances. Sensors 2022, 22, 7958. [Google Scholar] [CrossRef] [PubMed]
  9. Khetarpal, P.; Nagpal, N.; Al-Numay, M.S.; Siano, P.; Arya, Y.; Kassarwani, N. Power quality disturbances detection and classification based on deep convolution auto-encoder networks. IEEE Access 2023, 11, 46026–46038. [Google Scholar] [CrossRef]
  10. Dorigo, M.; Birattari, M.; Stutzle, T. Ant colony optimization. IEEE Comput. Intell. Mag. 2006, 1, 28–39. [Google Scholar] [CrossRef]
  11. McCulloch, W.S.; Pitts, W. A logical calculus of the ideas immanent in nervous activity. Bull. Math. Biophys. 1943, 5, 115–133. [Google Scholar] [CrossRef]
  12. Grossberg, S. Adaptive Resonance Theory: How a brain learns to consciously attend, learn, and recognize a changing world. Neural Netw. 2013, 37, 1–47. [Google Scholar] [CrossRef] [PubMed]
  13. Masoum, M.; Jamali, S.; Ghaffarzadeh, N. Detection and classification of power quality disturbances using discrete wavelet transform and wavelet networks. IET Sci. Meas. Technol. 2010, 4, 193–205. [Google Scholar] [CrossRef]
  14. Singh, U.; Singh, S.N. Application of fractional Fourier transform for classification of power quality disturbances. IET Sci. Meas. Technol. 2017, 11, 67–76. [Google Scholar] [CrossRef]
  15. Abbas, A. Cellular and Molecular Immunology, 9th ed.; Elsevier: Rio de Janeiro, Brazil, 2019. [Google Scholar]
  16. Roitt, I.M.; Delves, P.J.; Martin, S.J.; Burton, D.R. ROITT’S Essential Immunology; Guanabara Koogan: Rio De Janeiro, Brazil, 2014; pp. xi–552. [Google Scholar]
  17. Janeway, C.A. Approaching the asymptote? evolution and revolution in immunology. In Cold Spring Harbor Symposia on Quantitative Biology; Cold Spring Harbor Laboratory Press: Cold Spring Harbor, NY, USA, 1989; Volume 54, pp. 1–13. [Google Scholar]
  18. Dasgupta, D. Artificial Immune Systems and Their Applications; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012. [Google Scholar]
  19. Forrest, S.; Perelson, A.S.; Allen, L.; Cherukuri, R. Self-nonself discrimination in a computer. In Proceedings of the 1994 IEEE Computer Society Symposium in Research in Security and Privacy, Oakland, CA, USA, 16–18 May 1994; pp. 202–212. [Google Scholar]
  20. de Castro, L.N. Immune Engineering: Development and Application of Computational Tools Inspired by Artificial Immune Systems; Campinas State University: Campinas, SP, Brazil, 2001; p. 29. [Google Scholar]
  21. Mallat, S. A Wavelet Tour of Signal Processing; Elsevier: Amsterdam, The Netherlands, 2009. [Google Scholar]
  22. Mallat, S.G. A theory for multiresolution signal decomposition: The wavelet representation. IEEE Trans. Pattern Anal. Mach. Intell. 1989, 11, 674–693. [Google Scholar] [CrossRef]
  23. de Oliveira, H.M. Fourier and Wavelet Analysis; University Press of the Federal University of Pernambuco: Pernambuco, Brazil, 2007. [Google Scholar]
  24. Ouahabi, A. Signal and Image Multiresolution Analysis; John Wiley & Sons: Hoboken, NJ, USA, 2012. [Google Scholar]
  25. Mallat, S.G. Multiresolution approximations and wavelet orthonormal bases of L2(R). Trans. Am. Math. Soc. 1989, 315, 69–87. [Google Scholar]
  26. Daubechies, I. Ten Lectures on Wavelets; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 1992. [Google Scholar]
  27. Abdel-Galil, T.; Kamel, M.; Youssef, A.; El-Saadany, E.; Salama, M. Power quality disturbance classification using the inductive inference approach. IEEE Trans. Power Deliv. 2004, 19, 1812–1818. [Google Scholar] [CrossRef]
  28. ANEEL. ANEEL Normative Resolution No. 1,00; National Electric Energy Agency: Brasilia, Brazil, 2021. [Google Scholar]
  29. Gonzalez, F.; Dasgupta, D.; Niño, L.F. A randomized real-valued negative selection algorithm. In Proceedings of the International Conference on Artificial Immune Systems 2003, Edinburgh, UK, 1–3 September 2003; pp. 261–272. [Google Scholar]
  30. Igawa, K.; Ohashi, H. A negative selection algorithm for classification and reduction of the noise effect. Appl. Soft Comput. 2009, 9, 431–438. [Google Scholar] [CrossRef]
  31. Hosseini, S.; Seilani, H. Anomaly process detection using negative selection algorithm and classification techniques. Evol. Syst. 2021, 12, 769–778. [Google Scholar] [CrossRef]
  32. Müller, A.C.; Guido, S. Introduction to Machine Learning with Python: A Guide for Data Scientists; O’Reilly Media, Inc.: Newton, MA, USA, 2016. [Google Scholar]
Figure 1. Censoring phase.
Figure 1. Censoring phase.
Energies 17 03403 g001
Figure 2. Monitoring phase.
Figure 2. Monitoring phase.
Energies 17 03403 g002
Figure 3. Signal multiresolution.
Figure 3. Signal multiresolution.
Energies 17 03403 g003
Figure 4. Flowchart of the proposed negative selection wavelet algorithm.
Figure 4. Flowchart of the proposed negative selection wavelet algorithm.
Energies 17 03403 g004
Figure 5. Normal operation with variation in nominal voltage.
Figure 5. Normal operation with variation in nominal voltage.
Energies 17 03403 g005
Figure 6. Normal operation vs. flicker.
Figure 6. Normal operation vs. flicker.
Energies 17 03403 g006
Figure 7. Normal operation vs. flicker—MRA.
Figure 7. Normal operation vs. flicker—MRA.
Energies 17 03403 g007
Figure 8. (a) Confusion matrix NSA; and (b) confusion matrix NSWA.
Figure 8. (a) Confusion matrix NSA; and (b) confusion matrix NSWA.
Energies 17 03403 g008
Figure 9. Confusion matrix NSA.
Figure 9. Confusion matrix NSA.
Energies 17 03403 g009
Figure 10. Confusion matrix NSWA.
Figure 10. Confusion matrix NSWA.
Energies 17 03403 g010
Table 1. Equation and parameter variation for PQ disturbance modeling.
Table 1. Equation and parameter variation for PQ disturbance modeling.
EventEquationParameters
Pure Sinusoidal v t = A sin ω t
Outage v t = A 1 α u t t 1 u t t 2 sin ω t , t 1 < t 2
u t = 0 ,   t < 0 1 , t 0
0.9 α 1.0
T t 2 t 1 7 T
Harmonics v t = A α 1 sin ω t + α 3 sin 3 ω t + α 5 sin 5 ω t + α 7 sin 7 ω t α 1 = 1
0.05 α 3 α 5 α 7 0.15
Swell v t = A 1 + α u t t 1 u t t 2 sin ω t ,   t 1 < t 2
u t = 0 ,   t < 0 1 ,   t 0
0.1 α 0.8
T t 2 t 1 7 T
Sag v t = A 1 α u t t 1 u t t 2 sin ω t ,   t 1 < t 2
u t = 0 ,   t < 0 1 ,   t 0
0.1 α 0.9
T t 2 t 1 7 T
Swell with Harmonics v t = A 1 + α u t t 1 u t t 2 ( α 1 sin ω t + α 3 sin 3 ω t
+ α 5 sin 5 ω t + α 7 sin 7 ω t ) , t 1 < t 2
u t = 0 ,   t < 0 1 ,   t 0
α 1 = 1
0.05 α 3 α 5 α 7 0.15
0.1 α 0.8
T t 2 t 1 7 T
Sag with Harmonics v t = A 1 α u t t 1 u t t 2 ( α 1 sin ω t + α 3 sin 3 ω t
+ α 5 sin 5 ω t + α 7 sin 7 ω t ) , t 1 < t 2
u t = 0 ,   t < 0 1 ,   t 0
α 1 = 1
0.05 α 3 α 5 α 7 0.15
0.9 α 1.0
T t 2 t 1 7 T
Oscillatory Transient v t = A sin ω t + b e γ t t 1 sin ω t r t t 1 2 b 2
50 γ 100
500   H z f t r 1500   H z
Flicker v t = A 1 + α f sin β f ω t sin ω t 0.01 α f 0.1
2   H z f f 8   H z
Table 2. Number of detectors per disturbance type.
Table 2. Number of detectors per disturbance type.
OutageTHDSwellSagSwell/THDSag/THDOscillatory TransientFlicker
605614611613593597605588
Table 3. The main consequences of each type of disturbance.
Table 3. The main consequences of each type of disturbance.
Disturbance TypeElectrical SystemConsumers
FlickersComponent Stress
Equipment Deterioration
Visual Discomfort
Equipment Interference
SagsProtection Device Tripping
Equipment Damage
Production Halts
Damage to Electronic Devices
SwellsComponent Stress
Protection Equipment Failures
Damage to Electronic Equipment
Interruptions and Damage to Household Appliances
Oscillatory TransientsElectromagnetic Interference
Component Damage
Damage to Sensitive Equipment
Data Loss
Table 4. Hit percentage.
Table 4. Hit percentage.
EventSamplesNSAWNSA
Flicker137336.1%97%
Normal1961100%100%
Outage1411100%100%
Sag142996.9%96.9%
Sag with Harmonics1393100%78.8%
Swell142798.9%98.9%
Swell with Harmonics1385100%98.9%
Harmonics1434100%100%
Oscillatory Transient141393.6%99%
Table 5. Model evaluation.
Table 5. Model evaluation.
Evaluation MetricNSANSWA
Accuracy98.3%99.3%
Precision93.7%97.1%
Recall91.7%96.7%
Specificity99%99.6%
F1-Score92.2%96.9%
Table 6. Alternative cross-validation.
Table 6. Alternative cross-validation.
EventS1S2S3S4S5S6S7
Flicker97%97.2%97.4%96.6%95.8%96.8%96.9%
Normal100%100%100%100%100%100%100%
Outage100%100%99.9%100%100%100%100%
Sag96.9%97.4%96.9%97.3%97.3%97.1%96.7%
Sag/THD78.8%78.9%81.4%80.3%81.3%80.4%77.9%
Swell98.9%98.9%98.9%98.9%98.9%98.9%98.9%
Swell/THD99.8%99.1%99.6%99.2%99.2%99.4%99.7%
Harmonics100%100%100%100%100%100%100%
Oscillatory Transient99%99.4%99.1%99.5%99.3%99.3%99.4%
Table 7. Time in ms for disturbance detection and classification.
Table 7. Time in ms for disturbance detection and classification.
DescriptionNSANSWA
Detection time21.415.07
Classification time45.931.56
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bernardes, H.; Minussi, C.R. Detection and Classification of Voltage Disturbances in Electrical Power Systems Based on Multiresolution Analysis and Negative Selection Algorithm. Energies 2024, 17, 3403. https://doi.org/10.3390/en17143403

AMA Style

Bernardes H, Minussi CR. Detection and Classification of Voltage Disturbances in Electrical Power Systems Based on Multiresolution Analysis and Negative Selection Algorithm. Energies. 2024; 17(14):3403. https://doi.org/10.3390/en17143403

Chicago/Turabian Style

Bernardes, Haislan, and Carlos Roberto Minussi. 2024. "Detection and Classification of Voltage Disturbances in Electrical Power Systems Based on Multiresolution Analysis and Negative Selection Algorithm" Energies 17, no. 14: 3403. https://doi.org/10.3390/en17143403

APA Style

Bernardes, H., & Minussi, C. R. (2024). Detection and Classification of Voltage Disturbances in Electrical Power Systems Based on Multiresolution Analysis and Negative Selection Algorithm. Energies, 17(14), 3403. https://doi.org/10.3390/en17143403

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