1. Introduction
Harmonic detection is necessary in harmonic processing. Because whether it is a thorough control of harmonics in the system or a harmonic isolation purification of key equipment, it is necessary to understand the specific data of harmonics in the system, so as to accurately analyze the harmonic isolation purification effect or the precise cost price of harmonic control equipment. The harmonic/resonance problem has undergone profound changes and has become an essential factor that affects the safe and reliable operation of power grids [
1]. Harmonics cause distortions in voltage waveforms and resonance phenomena, reduce power quality, and exert adverse effects on electrical equipment, automatic devices, measuring instruments, and communication systems [
2,
3]. They are considered public hazards. Accurate detection of harmonic signals can effectively improve the security of power grids and prevent the occurrence of the aforementioned problems.
Many harmonic detection methods based on the characteristics of the harmonic signal are available. The harmonic detection instrument using wavelet transform [
4] has been widely used in actual power-system detection and fault detection. They can measure and analyze the harmonics of nonstationary time-varying signals but are critically affected by complex environments. Harmonic detectors cannot detect harmonics in a power grid at any time [
5]. In addition to this, it can only provide the time–frequency characteristic curve of a signal at different frequency bands and cannot accurately detect the frequency and amplitude of the signal [
6]. Moreover, the algorithm is complex, and the operation speed is moderate. Zhou et al. [
7] improved a neural network by applying the advantage of wavelet transform and enhanced its detection performance in terms of amplitude and frequency; however, the precision of the harmonic phase measurement was still poor.
Different harmonic detection algorithms have been proposed by scholars for different complex environments, and these algorithms can be broadly divided into two categories: time and frequency-domain analysis. The instantaneous reactive power algorithm [
8] is representative of the time-domain analyses method, but it only measures the sum of all harmonics and cannot obtain the amplitude and phase information of each harmonic separately. The frequency-domain analysis method is the most widely used method at present, and typical applications include algorithms based on analog filters, neural networks [
9,
10], and Fourier transform. Algorithms based on analog filters mainly use frequency-selection features with excellent bandpass/band resistance to detect harmonics. But, their real-time performance and reliability are poor, and their detection accuracy is low; moreover, only the fundamental wave and harmonics can be separated, and each harmonic cannot be separated [
11]. Neural networks have strong adaptability and learning ability and can effectively reduce the interference of noneffective components [
12], such as noise, in signal sources. Moreover, they have the advantages of minimal calculation, high measurement accuracy, good real-time performance, and strong anti-interference ability [
13], but their harmonic phase detection performance is poor [
14]. Neural networks also experience difficulties in network initialization [
15]. The size of the chosen network structure directly influences the training effect of the neural network, resulting in accidental detection results [
10]. Harmonic measurement based on rapid Fourier transform [
16] is the most widely used harmonic detection method in completed projects. However, the use of this method produces spectrum aliases and fence effects [
17], which make the calculated harmonic parameters (frequency, amplitude, and phase) inaccurate and unable to meet the high precision requirement of harmonic detection. Olsson et al. [
18] proposed a calculation method that initially performs all-phase data preprocessing and then implements traditional fast Fourier transform (FFT); that is, the phase measurement does not require correction measures. It has excellent phase invariance in the full frequency domain, and it is known as an all-phase fast Fourier transform (APFFT) [
19]. APFFT has excellent detection performance in the harmonic phase due to its initial phase invariance, but its intensified fence effect [
17] considerably weakens its ability to detect harmonic amplitude and frequency [
20]. Specifically, when noise interference is present in the signal, the detection error of frequency and amplitude is large. However, FFT has other obvious problems. When synchronous sampling is performed, the phase measurement is inaccurate, and the identification of the detuning elements produces a large error. Su et al. [
21] proposed a method to detect the harmonics and interharmonics of renewable energy power on the basis of the Nuttall double-window all-phase FFT algorithm by considering that APFFT [
22] has phase invariance and does not need to correct phase information [
19]. In our previous work [
23], we proposed a harmonic detection algorithm based on Nuttall convolution window all-phase FFT interpolation. A new convolutional window function called NNMCW was constructed. A low peak sidelobe level and a high decay rate were obtained by the mutual convolution operation of the two convolution windows, so the energy was concentrated in the main lobe, and spectral leakage was effectively suppressed. In addition, we are also committed to the application of neural networks [
24,
25] in other fields.
The equations for the estimation of harmonic parameters are derived by polynomial fitting of four spectral line interpolation methods [
17]. The fence effect caused by the dispersion in the frequency domain can be removed via spectral line interpolation. However, improvements can still be made. In summary, the neural network method has a strong antinoise interference ability and high-frequency amplitude detection accuracy, but its harmonic phase detection ability is insufficient. APFFT has phase invariance [
26] and outstanding harmonic phase detection performance, but its harmonic frequency and amplitude detection accuracies are insufficient.
Time developed in recent years. Numerous scholars have proposed a combined prediction model that utilizes signal-decomposition methods to delve deeply into the features of time-series data, while also employing swarm-intelligence optimization algorithms to optimize the parameters of the machine-learning model, thereby addressing the challenge of hyperparameter search for single machine-learning optimization [
27,
28,
29]. In reference [
30], wind-speed data were decomposed using wavelet transform (WT) and fed into an LSTM network to extract time-series characteristics. Reference [
31] decomposed the time series into multiple subseries using variational mode decomposition (VMD) and then inputted these new subseries into a gated recurrent units (GRU) network after filtering and reconstructing each series with sample entropy, resulting in improved prediction performance. Prior to inputting, historical data needs to undergo preprocessing for standardization. However, reference [
32] only screened external factors from the input data without constructing similar day sets based on historical data, leading to the inclusion of irrelevant data that interfered with prediction accuracy. Moreover, reference [
33] solely considered time-series factors when constructing similar day sets for holiday forecasts and failed to account for key factors, such as weather conditions and temperature. Although reference [
34] employed an enhanced grey relational analysis (GRA) method for constructing a similar day set, it did not consider clustering selection of secondary similar days and, thus, compromised the accuracy of the final set that was obtained. Consequently, insufficient cleaning and removal of anomalous data from input resulted in decreased prediction accuracy.
Harmonics are categorized as time series, and it has been demonstrated that deep-learning methods yield accurate and coherent forecast results when applied to time-series data [
35]. In the context of forecast reconciliation, adjustments are made to ensure coherence across the hierarchy. Deep-learning techniques have been employed for estimating the amplitude and phase of harmonics [
36], as well as for classifying power-quality disturbances [
37]. Convolutional neural networks (CNNs), which employ convolutional and pooling operations, serve as key discriminative models capable of capturing coherent structures in power-system measurements. In reference [
38], harmonic detection is carried out in this way, but the effect can still be improved.
In this study, we propose a joint optimization algorithm for harmonic and interharmonic measurements based on all-phase preprocessing and the EhdNet fusion channel attention mechanism. The main contributions of this study are as follows:
- (i)
A harmonic detection network called EhdNet is built. The algorithm is constructed by combining all-phase preprocessing and the EhdNet fusion channel attention mechanism. The detailed components of each harmonic are obtained to address the picket-fence effect and spectral aliasing;
- (ii)
Phase invariance is achieved through all-phase preprocessing and accurate frequencies; amplitudes are derived by the deep-network-building capability of EhdNet. The channel attention mechanism is introduced to make the results more accurate;
- (iii)
In different environments with and without noise, EhdNet’s accuracy in harmonic frequency, amplitude, and phase detection is higher than that of the artificial neural network (ANN and BP), APFFT, wavelet transform (WT), and other algorithms. In addition, the internal module of EhdNet is tested to verify the superiority and irreplaceability of the improvement.
The remainder of this paper is organized as follows.
Section 2 introduces the preliminary knowledge about harmonic processing and the fence effect.
Section 3 presents the proposed EhdNet method, which consists of three modules. In
Section 4, simulated signals and measurements are presented, and the effectiveness of the proposed EhdNet is validated by ablation and comparison experiments. The conclusions are also presented.
3. Proposed EhdNet Model
3.1. Overview of EhdNet
The architecture of EhdNet is illustrated in
Figure 2. The harmonic signal-processing module enables superior phase-detection capability, extracting harmonic phase information and serving as the basis for neural network initialization at the peak of the fraction line. To expedite the convergence speed and enhance accuracy, we introduce a channel attention mechanism in the weight-selection module. By leveraging EhdNet’s profound network-building capability, we acquire comprehensive harmonic frequency and amplitude information, thereby accomplishing the entire process of harmonic detection.
3.2. Harmonic Signal-Processing Module of EhdNet
Details make it difficult to complete the established synchronization sample and capture the intercepts of the collected data through conventional harmonic detection methods for dynamical systems. When traditional methods are performed by sampling-data truncation and other tasks, the picket-fence effect and spectrum aliasing become inevitable. Therefore, two aspects, namely, spectral leakage and the fence effect, are mainly suppressed to reduce the short-range leakage error and improve the detection accuracy. Spectral leakage is typically suppressed through an appropriate window function, and the fence effect is performed by interpolation correction.
This situation can be visualized by analyzing the principle of the APFFT phase-measurement method. This approach does not require frequency estimation or correction measures.
As a result, the harmonic signal-processing module of EhdNet is selected to import all-phase preprocessing. Frequency estimation does not affect the accuracy of phase measurements. The accuracy of the results obtained with the harmonic signal-processing module is high, but the amplitude and frequency value errors obtained with it should be higher than those obtained with the bimodal spectral interpolation algorithm. The harmonic signal-processing module algorithm mainly improves detection accuracy and reduces the detection error of the traditional FFT algorithm. The detection phase is corrected by all-phase preprocessing to reduce the harmonic phase-measurement error.
Figure 3 shows the harmonic signal-processing module spectrum-analysis process.
A primitive harmonic signal can be defined as follows:
In the equation, , where refers to the base wave frequency; is the number of harmonic orders; is the sampling time; is the resolution of the harmonic orders ( is 1 during the whole harmonic detection); and are the amplitude and phase of the corresponding -order harmonic component, respectively; and is the highest number of harmonic order.
All-phase preprocessing of the original harmonic signal is performed, and the original harmonic data sequence is set as:
All subdata that contain the starting point of the sequence
are listed, and an
dimensional column vector containing the
point is formed.
The circle is shifted, the
of each column vector in the last equation is moved to the first place, and a new
-dimensional vector is derived as follows:
where
is the result obtained after
is moved to the first place in
, and the same applies to
,
, etc. In particular,
is equal to
.
is added as the center, and data with a length of
input vector are obtained as
where
is the discrete Fourier transform, and
is the discrete Fourier transformation between
and
in Equation (3).
In accordance with the average value of meter (4), we obtain the output of APFFT as:
In Equation (7), the phase value of spectrum
is the theoretical phase value of the center of sample point
, which has nothing to do with frequency deviation value
, thus proving that it has phase unity. Hence, the APFFT algorithm can be used as a high-precision phase analyzer. The phase value of
or the phase value obtained by this method is the theoretical phase value of
. Regardless of how much the value of frequency m deviates from that of
, the phase measured at the peak spectrum line is always correct. The amplitude of the APFFT spectrum is the norm of Equation (8):
When the value of frequency deviates from that of , the harmonic amplitude measured in all-phase preprocessing spectra exhibits deviation. Support is therefore obtained from the neural network to correctly analyze the number and frequency of the intermediate frequency component of the harmonic signal. Assume that the distribution range of frequency bands is , where and are the minimum and maximum harmonic orders in the all-phase preprocessing spectrum, respectively.
3.3. Backbone Network of EhdNet
EhdNet chose the residual network as the backbone network. The residual model can be decomposed into multiple residual modules, and the output of the convolutional structure after stacking multiple layers is the learned feature represented by
. However, when the network layers are stacked too deeply, it becomes challenging to further optimize the features through reverse gradient propagation like BP neural networks. This necessitates another function for optimizing the output: the residual function
, expressed as
. Therefore, the output of each residual module is a complex characteristic equation
, which can be understood simply as the sum of the network-learned residual function and the original signal. Simultaneously, this serves as an input for subsequent residual modules.
Figure 4 below illustrates the backbone network of the EhdNet structure, with
representing a residual network.
where
in the equation is the weight of each module, and the
can be expressed as
The second half of the above formula is divided into the gradient value of the weight function with respect to , and because the whole formula consists of 1 and a fraction, the whole formula never approaches 0.
3.4. Feature-Extraction Module of EhdNet
The potential of convolutional networks to extract high-dimensional abstract features is not fully harnessed when dealing with low-dimensional harmonic signals. Therefore, this paper proposes the employment of a set of one-dimensional convolutions as deep convolution filters to disassemble the AP preprocessed harmonic signal into fundamental signals, thereby generating high-dimensional input data. The deep-convolution filter
is composed of
distinct convolution kernels, with each convolution layer housing a two-dimensional kernel. To accomplish this, 16 one-dimensional convolution layers are necessary to yield 16 sets of signals in the output-feature module.
where
is the
-th input sample, and
is the convolution kernel, bias function, and channel-output value of the
-th output channel of the
-th sample, respectively. The final result is that the output-feature group of
i-th layer is
, formed by ReLU function
.
The phase, amplitude, and frequency of the spectrum serve as the fundamental elements for harmonic detection and recognition in the signal. The spectral energy that varies with the distance between the target and the hydrophone is referred to as the instability spectrum. After the AP preprocessing, the phase detection of the signal exhibits high accuracy, while the ResNet model fusion channel attention mechanism can extract the phase stability spectrum of the processed waveform as a distinctive feature. Its schematic diagram can be expressed as
Figure 5.
This stability spectrum encompasses harmonic signals from multiple orders, where the original signal represents the fundamental frequency, and its relationship with the harmonic groups acts as a multiplier factor. For waveforms preprocessed by AP, let the signal period be
T; we select
group pulses from the time-domain signal whose
-th Fourier transform is denoted as
. The power spectral density formula of the stochastic process is:
where
is the expected value,
is the angular frequency of the Fourier graph
, and
is:
The nonoffset phase and other information obtained after AP preprocessing of the original signal are taken as the original information and represented by
. This serves as the input for the feature-extraction module, which comprises two ResNet models equipped with a channel-attention mechanism. To ensure both high harmonic detection accuracy and computational efficiency, we determine a convolution kernel size of 1 × 64. The first layer of the residual network consists of two convolutions, each mapping 16 sets of basic signals to another 16 sets while extracting deep features from these signals. In total, there are 16 one-dimensional convolution layers within this operation, each containing different filters
. Therefore, let the degree of convolution be
n: 16 × 16 one-dimensional convolution layers are required for this purpose:
Finally, the convolutional outputs of layer are aggregated by summation to produce the final output of layer , resulting in an enhanced representation of harmonic characteristics in more intricate scenarios. To achieve this, the second convolution is performed using the same methodology as the first one, while incorporating a channel-attention mechanism in each individual residual network. This mechanism enhances the stability of spectral features and further optimizes the network’s ability to extract harmonic signal characteristics.
3.5. Weight-Selection Module of EheNet
The prevalent approaches to harmonic detection often yield the fence effect and phase deviation. This study presents a novel technique that harnesses the phase invariance of the harmonic signal-processing module to feed the processed original signal into the ensuing network. Furthermore, the weight-selection module of EheNet incorporates a channel-attention mechanism to extract reliable spectrum features, accentuate valuable features through learning, and downplay less pertinent features for harmonic detection.
This method automatically captures crucial information in each feature channel by assigning higher weights to channels with abundant information. By extracting information from each channel and incorporating lightweight gating systems to optimize channel information and output channel weights, the proposed channel-attention mechanism enhances model performance. The mechanism is divided into two components.
Figure 6 illustrates the primary component, which assigns weights to each channel, while the auxiliary component involves low-level extraction, obtaining another set of channel information after transposing existing information.
The waveform characteristics of each channel are first analyzed. The specific steps are as follows. First, the data undergo convolutional processing using a kernel size of
and a step size of
. This transforms the shape from
to
, where
represents the length of the input data, and
represents the width of the input data. The specific formula is,
In the input information of the channel-attention mechanism module, represents the data of the i-th channel, while and denote the weight and bias of said i-th channel in k-th layer convolution respectively. Additionally, signifies ’s output value after one convolution.
This paper also employs a gating system with an activation function, which can be expressed as,
where
is the global feature of size
,
and
are the weights of the network mapping.
is the ReLU activation function and
is the sigmoid activation function.
The signal features obtained in each channel are subsequently standardized and integrated. Data are processed using a 1 × 64 convolution kernel with a step size of 1, transforming the shape from to . While multilayer convolutional networks have demonstrated excellent feature-extraction capabilities, not all outputs from the network represent stable signals. Therefore, extracting one-dimensional data of equal dimensions from the network output as channel weights for the original signal can effectively enhance the spectral energy contained within each channel.
The weight-selection module of EhdNet originates from two directions and captures signal features from diverse perspectives. Subsequently, the weighted information is integrated and harmonized to yield the ultimate output of the channel-attention mechanism.
4. Experiment Results and Discussion
4.1. General Setting
The data sets used in several experiments in this paper are from the following four parts, among which one and two are data used in the existing literature, and three and four are data sets simulated by ourselves. Their details are as follows.
(1) The test signal is selected from Ref. [
41]. As shown in
Table 1, the fundamental frequency, the sampling frequency, and the sampling length are set as f0 = 50.5 Hz, fs = 2520.6 Hz, and N = 512, respectively;
(2) The test signals are selected from the signals used in [
21], as shown in
Table 2. The fundamental frequency, sampling frequency, and sampling length are set as f0 = 50.2 Hz, fs = 1152 Hz, and N = 512, respectively;
(3) In
Table 3, the experimental harmonic signals are shown with the following parameter setting: fundamental frequency of f0 = 50 Hz, sampling frequency of fs = 3200 Hz, and sampling length of N = 1024;
(4) In
Table 4, the experimental harmonic signals are shown with the following parameter setting: fundamental frequency of f0 = 50.04 Hz, sampling frequency of fs = 3200 Hz, and sampling length of N = 1024.
The evaluation index used in the experiment is the relative error of frequency, amplitude, and phase, and the collective calculation is the error ratio between the calculation result and the set signal.
4.2. Waveform Recovery
Experiments are designed to verify the advancement and accuracy of the proposed algorithm. Several harmonics with different frequencies, aspects, and steps are randomly added. FFT, ANN, and EhdNet are then used for harmonic detection, and the harmonic content measured by each method is utilized to restore the harmonic content measured by each method. The wave-component distribution is given in
Table 5.
The experimental results are shown in
Figure 7.
As shown by the experimental results in
Figure 7, the ANN-based harmonic detection algorithm can accurately detect the frequency values of each harmonic and interharmonic component in the broadband signal with high-frequency resolution.
Moreover, its performance in amplitude detection is extremely superior, with the relative error remaining at an extremely low level. However, the ANN-based harmonic detection algorithm suffers from large errors in detecting phases and has poor phase-detection capacity. The performance of the harmonic detection algorithm based on harmonic phase detection is much better than that of the ANN-based harmonic detection algorithm. However, because its algorithmic foundation is still Fourier transform, a gap still exists between spectrum aliasing and the picket-fence effect. The detection is poor for the broadband harmonic frequency and amplitude values of the broadband domain. The algorithm in this study combines the advantages of the two aforementioned methods and has better recovery results than the two in terms of frequency and amplitude.
4.3. Comparison of the Harmonic Detection Effect in a Noiseless Environment
The original signal is preprocessed by all-phase preprocessing to obtain the number of harmonic components in the signal; the accurate phase information of the base waves and the rough amplitude and frequency information; the number of the neural network’s input-, hidden- and output-layer neurons; and the initial values of adjustable parameters.
The results of the all-phase preprocessing spectrum analyses are shown in
Table 6. The signal contains a total of 10 frequency components, including the base wave, and the rough range of frequency distribution is 0–2500 Hz. In accordance with Equations (9) and (10), the input-layer node is set to 1000, the node of the hidden and output layers is set to 500, the initial value of authority is based on the results of the all-phase preprocessing spectrum analysis, and the phase is based on the initial phase detected by the all-phase preprocessing. The setting rate is 0 = 0.9, the momentum factor λ = 0.01, and the maximum number of iterations
D = 100.
Four algorithms, namely, APFFT, WT, BPNet, and EhdNet, are used to perform MATLAB simulation experiments on the harmonic signals in
Table 1 without adding noise. Their results are compared with those of the proposed algorithm in
Figure 8. The results obtained from the simulations with all-phase preprocessing are frequency biased. The harmonic frequencies detected by BPNet and the proposed algorithm are more accurate than those detected by the other methods. However, BPNet has poor performance in phase detection, and EhdNet, after omnidirectional bit pretreatment, demonstrates good performance. The WT algorithm has a poor detection effect in all aspects. Its simulation results are far from those of the initial phase. The phase errors obtained by APFFT and the proposed algorithm are two orders of magnitude smaller than those obtained by the ANNs. In summary, the proposed algorithm fully integrates the advantages of the two algorithms and can accurately measure the frequency, amplitude, and phase of the harmonics and interharmonics. The long-term accuracy performance of the proposed algorithm is demonstrated. The signal harmonic frequencies in
Table 1 are distributed in the range of 0–50 and are both harmonic and interharmonic with a wide range of features.
Table 7,
Table 8 and
Table 9 show the relative errors of the three methods in terms of the signal-recovery frequency error and the error of the proposed method.
It can be seen that the effect of BLS-RAME and EhdNet is very good in the phase accuracy index, and the accuracy of EhdNet is higher in the overall comparison.
4.4. Harmony-Detection Performance in Different Noise Environments
The noise resistance of the proposed algorithm is also tested. The signal in
Table 1 is composed of noise, and the signal-in-sign signal ratio of Gaussian white noise is 10, 20, 40, and 80 dB. Different noise conditions are set based on the content of each harmonic component to examine the effect of different noise amounts on the harmonic measurement method. The results are shown in
Figure 9.
As the proportion of noise increases, the error of the harmonic measurement also increases. Under the influence of different noise conditions, the amplitude and phase detection results for each strange harmonic are high. Even under 10 dB, the relative error of harmonic amplitude detection remains below 2%. This finding proves that the proposed algorithm has a strong anti-interference ability.
The following is a comparison of the accuracy of the phase and amplitude of several methods in different noise environments at the base frequency of 50.04 Hz, Due to the length, this experiment did not compare WT, APFFT, and the other methods with poor effect. The experimental results are shown in
Table 10 and
Table 11.
As can be seen from the table, with the complexity of the environment, although the accuracy has decreased, EhdNet still has a high accuracy.
4.5. RMSE Comparison of Various Methods
In this section, we selected the following evaluation indicator for comparative experiments: root mean square error (RMSE).
where
is the number of data points,
is the observed values, and
are the predicted values. RMSE measures the model error in predicting quantitative data and determines the standard deviation of the model prediction-model errors and, thus, assists in the assessment of how the error data are concentrated around the line of best fit.
In addition, the amplitude and phase modulation associated with the impact of typical sources of interference in low-voltage networks are very important. At present, Piotr Kuwałek [
44,
45] and his team have done a better job in this aspect, so this paper adopts their method to modulate the test signal and carry out a new experiment. The modulation process is roughly as follows:
where
is the test signal used for the subsequent experiment.
is the initial simulation signal adding complex noise, and the modulating signal
in (7) is a signal associated with the resultant operation of N disturbing loads. The specific modulation signal settings refer to the literature [
45].
Due to the improvement of the relevant data set, we updated the original corresponding experimental data. The experimental results are shown in
Table 12.
It can be seen in
Figure 10 that the proposed hybrid deep-learning EhdNet model outperforms the other models. and the RMSE of EhdNet is the smallest, indicating that its result is the closest to the real situation, and the fitting effect is the best. The performance indicators are compared in the
Table 12. The estimated results of the PSO-sa, CNN-LSTM, BLS-RAME, EhdNet method, and actual data are compared by ANOVA in Table. ANOVA is a statistical test that is used to analyze the difference between means of more than two groups of data. It uses the F-test to determine statistical significance.
4.6. Network Convergence Speed Simulation Comparison
The BP network algorithm and the algorithm in this study are used to simulate the harmonic signals in
Table 1 to verify the convergence speed of the neural network. The obtained network-error integrated curve is shown in
Figure 11.
As indicated in
Figure 11, 1.35 × 10
−27 is the error convergence result obtained after 74 iterations of the algorithm. After 98 iterations, the output error of each stage of BP preprocessing converges at 1.34 × 10
−27, and the number of iterations is considerably reduced. The simulation results show that, because the improved algorithm in this study has a higher calculation speed and better overall situation search capability than the other compared algorithms, it can effectively avoid falling into the local extreme value and has fewer iteration times and faster convergence.
4.7. Internal Module Effect Comparison
Experiments are also performed to verify the effectiveness of the internal modules of the proposed algorithm. Three modules in EhdNet are removed: the harmonic signal-processing module, feature-extraction module, and weight-selection module. The losses in frequency, phase, amplitude, and calculation speed are calculated, and the results are shown in
Table 7. Notably, after removing the network, the iteration speed is not considered. The experimental results are shown in
Table 13.
As indicated in
Table 7, each module of the proposed EhdNet has strong irreplaceability, and the effect on harmonic detection is efficient. In particular, AP preprocessing results in an obvious improvement in phase detection.
Through experiments, it can be found that the detection accuracy of the proposed EhdNet is better than that of APFFT, WT, and other common neural network methods in terms of frequency, amplitude, and phase under both noise and no noise environments. In comparison experiments with actual data, the RMSE of EhdNet is also lower than that of other recent methods. In comparison experiments with actual data, the RMSE of EhdNet is also lower than that of other recent methods. Because of the introduction of the channel-attention mechanism, the iteration speed of the network is also improved. So, we can draw conclusions.