A cable partial discharge signal recognition method and system fusing a channel attention twin network and adaptive threshold optimization

By integrating a channel attention twin network with an adaptive threshold optimization method, the problems of difficulty in extracting partial discharge features under strong noise background and lack of adaptability of fixed discrimination threshold are solved, and high-precision partial discharge signal recognition is achieved in complex interference environments.

CN123158283APending Publication Date: 2026-11-24NORTHWEST BRANCH OF STATE GRID POWER GRID CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611168262.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-03
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies face difficulties in extracting partial discharge features against strong noise backgrounds. Conventional twin networks are susceptible to interference from irrelevant channel noise. Traditional models have low recognition accuracy under low signal-to-noise ratios, and fixed discrimination thresholds lack environmental adaptability, resulting in low detection rates or high false alarm rates.

Method used

A method combining channel attention Siamese network and adaptive threshold optimization is adopted. The Siamese network is trained by constructing positive and negative sample pairs, extracting partial discharge feature prototype anchor points, and using ROC curves to determine adaptive distance thresholds for discrimination.

Benefits of technology

To improve the detection rate of partial discharge, reduce the false alarm rate, and enhance the reliability of cable insulation condition monitoring in complex noise environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158283A_ABST
    Figure CN123158283A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for identifying partial discharge signals in cables by integrating a channel attention twin network with adaptive threshold optimization. Belonging to the field of power equipment insulation condition monitoring technology, the method includes: injecting different types and intensities of noise into a partial discharge reference signal to construct positive and negative sample pairs; inputting the sample pairs into a twin network containing a one-dimensional convolutional layer and a channel attention module for metric learning training; extracting feature vectors using a small number of clean partial discharge reference samples and aggregating them to form partial discharge feature prototype anchor points; calculating the distance between the feature vector of the original signal of the cable under test and the prototype anchor points, and determining whether the original signal of the cable under test is a partial discharge signal based on an adaptive distance threshold determined by the ROC curve of the validation set. This invention can reduce the impact of complex noise environments on cable partial discharge identification, improve the detection rate of partial discharge under low signal-to-noise ratio conditions, and reduce the false alarm rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power equipment insulation condition monitoring and fault diagnosis technology, specifically involving a method and system for identifying cable partial discharge signals by integrating channel attention twin networks and adaptive threshold optimization. Background Technology

[0002] Partial discharge is an early sign of insulation degradation in high-voltage cables, and accurate monitoring and identification of it is a core means to ensure the safe operation of power systems. However, in actual cable tunnel or substation conditions, partial discharge signals are extremely weak and transient, and are easily masked by strong white noise, narrowband communication interference, and random pulse interference in the field.

[0003] Current partial discharge (PD) identification technologies face two main technical bottlenecks: First, traditional identification models often employ supervised learning-based classification frameworks, whose performance heavily relies on large-scale, high-quality labeled samples. In practical engineering, acquiring PD samples with extremely low signal-to-noise ratios is challenging, and traditional classifiers easily learn complex background noise features rather than intrinsic PD features during training. This results in extremely poor generalization ability and low identification accuracy under strong interference environments. Second, the judgment logic is simplistic and lacks environmental adaptability. Existing technologies often use fixed probability thresholds or manually set criteria for identification. Due to the dynamic and variable electromagnetic environment at cable operating sites, fixed judgment standards struggle to meet the identification needs under different operating conditions. When complex interference surges, this non-adaptive discrimination method easily leads to a decrease in system detection rate or an increase in false alarm rate, severely impacting the reliability and practicality of online cable condition monitoring systems. Therefore, it is necessary to develop an adaptive identification method capable of deeply extracting intrinsic PD features and adjusting the discrimination criteria according to the field environment to achieve accurate detection of weak PD signals. Summary of the Invention

[0004] This invention addresses the technical problems of existing technologies, such as difficulty in extracting partial discharge features in strong noise backgrounds, susceptibility of conventional twin networks to interference from irrelevant channel noise, low recognition accuracy of traditional models under low signal-to-noise ratio (SNR), and low detection rate or high false alarm rate due to the lack of environmental adaptability of fixed discrimination thresholds. It provides a cable partial discharge signal recognition method that integrates a channel attention twin network with adaptive threshold optimization. Different types and intensities of noise are injected into the partial discharge reference signal to construct positive and negative sample pairs. These sample pairs are then input into a twin network containing a one-dimensional convolutional layer and a channel attention module for metric learning training. Feature vectors are extracted and aggregated using a small number of clean partial discharge reference samples to form partial discharge feature prototype anchor points. The distance between the feature vector of the original signal of the cable under test and the prototype anchor points is calculated, and an adaptive distance threshold determined based on the receiver operating characteristic (ROC) curve of the validation set is used to determine whether the original signal of the cable under test is a partial discharge signal. This invention can reduce the impact of complex noise environments on cable partial discharge recognition, improve the partial discharge detection rate under low SNR conditions, and reduce the false alarm rate.

[0005] According to one aspect of this specification, a method for identifying cable partial discharge signals by fusing a channel attention twin network with adaptive threshold optimization is provided, comprising:

[0006] Obtain a pre-trained Siamese network and a preset optimal adaptive distance threshold;

[0007] Based on the pure partial discharge pulse signal sequence, a set number of pure partial discharge pulse waveforms are randomly selected as support set reference signals. The preprocessed support set reference signals are input into the twin network, and a high-dimensional intrinsic feature vector is output. The high-dimensional intrinsic feature vector is spatially averaged to obtain the partial discharge feature prototype anchor point.

[0008] The original signal of the cable under test is obtained and input into the twin network. The high-dimensional feature vector of the original signal of the cable under test is output. The spatial Euclidean distance between the high-dimensional feature vector and the anchor point of the partial discharge feature prototype is calculated.

[0009] The spatial Euclidean distance is compared with the preset optimal adaptive distance threshold using hard logic. If the spatial Euclidean distance is less than or equal to the preset optimal adaptive distance threshold, the original signal of the cable under test is determined to be a partial discharge signal.

[0010] As a further technical solution, the training of the twin network includes:

[0011] A training sample pair dataset was constructed based on a pure partial discharge pulse signal sequence and random mixed noise.

[0012] Construct a Siamese network; the Siamese network includes two feature extraction branches with shared parameters and identical structures; the feature extraction branches include: a one-dimensional convolutional layer, used to convolve the training samples onto the dataset to obtain feature maps; and a one-dimensional channel attention module, used to perform global average pooling and reweighting on the feature maps, and output the weighted feature maps.

[0013] By combining the dynamic contrastive loss function, the constructed Siamese network is trained on the dataset using the constructed training samples, resulting in the trained Siamese network.

[0014] As a further technical solution, a training sample dataset is constructed based on a pure partial discharge pulse signal sequence and random mixed noise, including:

[0015] Based on the same pure partial discharge pulse signal sequence, two different random mixed noises are injected to construct two superimposed mixed noise partial discharge waveforms as positive sample pairs;

[0016] Negative sample pairs are constructed using the partial discharge waveform of any superimposed mixed noise and the pure complex mixed background noise;

[0017] The training sample pair dataset is constructed from the positive sample pairs and the negative sample pairs.

[0018] As a further technical solution, the preset optimal adaptive distance threshold is obtained in advance in the following manner:

[0019] The constructed validation set is input into the trained Siamese network, and the high-dimensional feature vector of each sample in the validation set is output.

[0020] Calculate the spatial Euclidean distance between the high-dimensional feature vector of each sample in the validation set and the anchor point of the partial discharge feature prototype to obtain the spatial Euclidean distance distribution set.

[0021] The ROC curve is generated based on the spatial Euclidean distance distribution set, and the Youden index is calculated to determine the optimal adaptive distance threshold.

[0022] As a further technical solution, generating ROC curves includes:

[0023] Sort all distance values ​​in the spatial Euclidean distance distribution set from smallest to largest, remove duplicate values, and form a candidate threshold sequence;

[0024] For each candidate threshold in the candidate threshold sequence, a classification judgment is performed on the validation set: if the spatial Euclidean distance of a sample in the validation set is less than or equal to the candidate threshold, it is judged as a partial discharge signal; if the spatial Euclidean distance of a sample in the validation set is greater than the candidate threshold, it is judged as background noise.

[0025] Based on the classification results, the four basic classification evaluation indicators of the current candidate threshold are statistically analyzed, and the detection rate and false alarm rate of the current candidate threshold are calculated.

[0026] Plotting the false alarm rate on the horizontal axis and the detection rate on the vertical axis, the coordinate points obtained after traversing and calculating all candidate thresholds are plotted and connected sequentially to generate the ROC curve.

[0027] As a further technical solution, the Youden index is calculated, including:

[0028] The Youden index of the candidate threshold is calculated based on the detection rate and false alarm rate of the candidate threshold.

[0029] As a further technical solution, determining the optimal adaptive distance threshold includes:

[0030] In the ROC curve, find the distance threshold that makes the Yuden index reach its global maximum value, and define it as the current optimal adaptive distance threshold.

[0031] As a further technical solution, if the spatial Euclidean distance is greater than the preset optimal adaptive distance threshold, the original signal of the cable under test is determined to be background noise interference.

[0032] As a further technical solution, the expression for the dynamic contrastive loss function is:

[0033]

[0034] in, denoted by , i represents the index of the i-th sample pair in the current training batch; N represents the total number of sample pairs in a training batch. Represents the binary category label of the i-th sample pair; This represents the preset safety boundary value. Let Euclidean distance be the distance between the two feature vectors of the i-th sample pair.

[0035] According to one aspect of this specification, a cable partial discharge signal identification system integrating a channel attention twin network and adaptive threshold optimization is provided, for implementing the aforementioned cable partial discharge signal identification method integrating a channel attention twin network and adaptive threshold optimization, comprising:

[0036] The first processing module is used to obtain the pre-trained Siamese network and the preset optimal adaptive distance threshold.

[0037] The second processing module is used to randomly select a set number of pure partial discharge pulse waveforms as support set reference signals based on the pure partial discharge pulse signal sequence, input the preprocessed support set reference signals into the twin network, output high-dimensional intrinsic feature vectors, and perform spatial mean aggregation on the high-dimensional intrinsic feature vectors to obtain partial discharge feature prototype anchor points.

[0038] The third processing module is used to input the acquired original signal of the cable under test into the twin network, output the high-dimensional feature vector of the original signal of the cable under test, and calculate the spatial Euclidean distance between the high-dimensional feature vector and the partial discharge feature prototype anchor point.

[0039] The fourth processing module is used to perform a hard logic numerical comparison between the spatial Euclidean distance and the preset optimal adaptive distance threshold: if the spatial Euclidean distance is less than or equal to the preset optimal adaptive distance threshold, the original signal of the cable under test is determined to be a partial discharge signal.

[0040] Compared with the prior art, the beneficial effects of the present invention are:

[0041] 1. This invention integrates multiple noise perturbation enhancements with partial discharge feature prototype anchor points into the problem of weak partial discharge signal detection, overcoming the limitations of traditional supervised learning classifiers in terms of weak feature expression ability and rigid discrimination thresholds under extremely low signal-to-noise ratios, and realizing the identification of weak partial discharge signals in complex and strong interference environments.

[0042] 2. This invention effectively overcomes the interference of complex mixed noise on weak signals by introducing a twin network of channel attention module to extract noise invariance eigenvalues.

[0043] 3. The present invention calculates the Youden index based on the ROC curve and determines the optimal adaptive distance threshold. It can adaptively adjust the judgment criteria according to the environment. While significantly improving the detection rate of partial discharge defects, it realizes adaptive identification under extremely low signal-to-noise ratio conditions, effectively reduces the false alarm rate of the system, and enhances the reliability of high-voltage cable insulation condition monitoring. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 The flowchart illustrates the cable partial discharge signal identification method using a fusion channel attention twin network and adaptive threshold optimization, as provided in this embodiment of the invention.

[0046] Figure 2 The following are time-domain waveform diagrams of three signals provided in embodiments of the present invention.

[0047] Figure 3 The image shows the convergence curve of dynamic comparative loss of the twin network provided in the embodiments of the present invention.

[0048] Figure 4 This is a schematic diagram of the Euclidean distance distribution and adaptive threshold from the sample to the feature prototype anchor point provided in an embodiment of the present invention.

[0049] Figure 5 This is a schematic diagram of the ROC curve and optimal operating point provided for an embodiment of the present invention. Detailed Implementation

[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0051] like Figure 1 As shown, this invention proposes a method for identifying cable partial discharge signals by fusing a channel attention twin network with adaptive threshold optimization, including: Step 1: Constructing a training sample pair dataset based on a pure partial discharge pulse signal sequence and random mixed noise, and training the constructed twin network using the training sample pair dataset to obtain a trained twin network, enabling the twin network to adaptively lock the noise-invariant intrinsic features of the partial discharge pulses during spatial mapping. Step 2: Randomly selecting a set number of pure partial discharge pulse waveforms as support set reference signals based on the pure partial discharge pulse signal sequence, inputting the preprocessed support set reference signals into the trained twin network, outputting a high-dimensional intrinsic feature vector, and performing spatial mean aggregation on the high-dimensional intrinsic feature vector to obtain the prototype anchor point of the partial discharge feature. Step 3: Constructing a validation set and generating ROC curves and calculating the Youden index to determine the optimal adaptive distance threshold. Step 4: Inputting the acquired original signal of the cable under test into the trained twin network, outputting the high-dimensional feature vector of the original signal of the cable under test, and calculating the spatial Euclidean distance between the high-dimensional feature vector and the prototype anchor point of the partial discharge feature. Step 5: Compare the spatial Euclidean distance with the optimal adaptive distance threshold using hard logic values: If the spatial Euclidean distance is less than or equal to the optimal adaptive distance threshold, then the original signal of the cable under test is determined to be a partial discharge signal.

[0052] Specifically, step 1 includes the following:

[0053] 1. Construct a training sample pair dataset.

[0054] 1.1 To eliminate the influence of amplitude dimensions on model convergence and enhance the model's robustness under complex noise, the acquired pure partial discharge pulse signal sequence is first standardized. Let the pure partial discharge pulse signal sequence be... After zero-mean and standard deviation normalization, the calculation formula is as follows:

[0055] (1)

[0056] in, The mean of the signal. Standard deviation, To prevent extremely small constants with a denominator of zero, This is a sequence of purified partial discharge pulse signals after standardization.

[0057] 1.2 For the same pure partial discharge pulse signal sequence Two different random mixed noises were injected respectively. Construct a partial discharge waveform with superimposed mixed noise from two paths, i.e., a positive sample pair. Set the labels of the positive sample pairs to By constructing positive sample pairs with the same source but different noise, the subsequent network is forced to learn the pulse eigenvalues ​​that remain stable under different noise masking conditions.

[0058]

[0059] Among them, each random mixed noise It is generated by combining Gaussian white noise, narrowband interference and / or random impulse noise in random type, amplitude and signal-to-noise ratio.

[0060] 1.3. Construct negative sample pairs using the partial discharge waveform with arbitrary superimposed mixed noise and pure complex mixed background noise. These negative sample pairs are used to enable the subsequent network to distinguish between partial discharge pulse features and pure complex mixed background noise features. The labels for these negative sample pairs are set to... The training sample pair dataset is constructed from positive and negative sample pairs, and Y is the relation label of the training sample pair dataset.

[0061] Time-domain waveforms of various signals are as follows Figure 2 As shown. Figure 2 (a) represents a pure partial discharge pulse waveform. Figure 2 (b) represents the noisy partial discharge pulse waveform obtained by superimposing mixed noise on a pure partial discharge pulse, which still contains partial discharge pulse components; Figure 2 (c) indicates a pure complex mixed background noise consisting only of various background noises, without any partial discharge pulse components.

[0062] 2. Construct a twin network.

[0063] A lightweight backbone network containing convolutional layers and channel attention modules is constructed as the feature extraction branch of the Siamese network.

[0064] 2.1 One-dimensional convolutional layer.

[0065] A two-layer one-dimensional convolutional (1D-CNN) structure is adopted. The first layer has a kernel width of 15 to capture the macroscopic morphological features of pulse signals; the second layer has a kernel width of 7 to extract fine temporal abrupt change features. Each one-dimensional convolutional layer is followed by a batch normalization (BN) layer and a ReLU activation function. The training sample dataset is input into the one-dimensional convolutional layer, and the feature map is obtained after convolution processing.

[0066] 2.2 One-dimensional channel attention module.

[0067] A channel attention module (Squeeze-and-Excitation) is introduced after the one-dimensional convolutional layer. This module adaptively calculates the feature channel weights to suppress channels containing pure noise and amplify channels containing transient features of partial discharge. Specifically, the feature map is compressed to a smaller size using global average pooling. C represents the number of feature channels in the feature map. The non-linear dependencies between channels are learned using two fully connected layers, and the resulting weight coefficients are used to reweight the feature channels.

[0068]

[0069] Where σ represents the Sigmoid activation function, This represents the feature map of the input channel attention module. This represents the feature map after channel attention weighting. Let represent the channel transformation function consisting of two fully connected layers, and z represent the channel description vector obtained by global average pooling. This represents the set of trainable weights for two fully connected layers.

[0070] The channel attention module enables the network to adaptively suppress channels containing random noise and automatically lock onto key feature channels containing partial discharge pulse transient energy.

[0071] 3. Based on dynamic contrastive loss, the constructed Siamese network is trained using metric learning.

[0072] The two signals from the i-th sample pair in the training sample pair dataset are input into two feature extraction branches of the Siamese network that share parameters and have the same structure, and the output is two sets of 32-dimensional high-dimensional feature vectors. and Calculate the Euclidean distance between two high-dimensional eigenvectors in the feature space. The expression is as follows:

[0073]

[0074] To achieve adaptive discrimination capabilities, a dynamic contrastive loss function is constructed to guide network optimization:

[0075]

[0076] in, denoted by , i represents the index of the i-th sample pair in the current training batch; N represents the total number of sample pairs in a training batch. Represents the binary category label of the i-th sample pair; This represents the preset safety boundary value (2.0 in this embodiment). Let Euclidean distance be the distance between the two feature vectors of the i-th sample pair.

[0077] During the training of the Siamese network, the error backpropagation algorithm is used for continuous iteration. For positive sample pairs ( 1) The loss function forces The value tends towards 0, causing the network to ignore noise interference and lock the noise-invariant eigenvalues ​​of the partial discharge pulse; for negative sample pairs ( 0), the loss function forces Increase it above the boundary value. After sufficient training (on the validation set, the dynamic contrastive loss no longer decreases significantly over multiple training epochs, and the recognition performance metric tends to stabilize), select the network weights corresponding to the optimal performance on the validation set as the trained Siamese network. This Siamese network has the ability to map any noisy signal into a high-discriminative intrinsic feature vector. For example... Figure 3 As shown, through continuous iteration, the dynamic contrastive loss of the Siamese network no longer decreases significantly after multiple training rounds, and the recognition performance index tends to stabilize, proving that the Siamese network has successfully learned the intrinsic features of the partial discharge.

[0078] Specifically, step 2 includes the following:

[0079] 1. Selection and preprocessing of support set reference signals.

[0080] In this embodiment of the invention, a small number of random samples (such as...) are selected from a pure partial discharge pulse signal sequence. In this embodiment The pure partial discharge pulse waveform is used as the support set reference signal, denoted as... .

[0081] To ensure consistency in feature extraction, for each original pulse signal within the support set... Perform the same zero-mean and standard deviation normalization preprocessing as during the training phase to obtain the preprocessed support set reference signal. :

[0082]

[0083] in, and The first The mean and standard deviation of each pulse signal. To prevent extremely small constants with a denominator of zero.

[0084] 2. Extract high-dimensional intrinsic eigenvectors.

[0085] After training, network parameter updates are stopped, and the Siamese network is switched to evaluation mode, allowing the batch normalization layers to use fixed statistical parameters obtained during training. Gradient calculation is simultaneously disabled, and high-dimensional intrinsic feature vectors are extracted from the trained network weights. The preprocessed support set reference signal is then used. Each parameter is input into any parameter-shared feature extraction branch of the trained Siamese network. middle.

[0086] Using the one-dimensional convolutional layer and channel attention module within the feature extraction branch, the preprocessed support set reference signal is mapped to... Dimension (in this embodiment) The high-dimensional feature space is used to output high-dimensional eigenvectors that correspond one-to-one with each group of pulse waveforms. :

[0087]

[0088] in, Represents the set of real numbers, here the eigenvectors. The apparent differences in amplitude and phase have been stripped away, and the physical properties of the partial discharge signal have been highly condensed.

[0089] 3. Spatial aggregation calculation and prototype anchor point generation.

[0090] To eliminate potential random biases from a single reference sample and obtain the most representative intrinsic properties of partial discharge, this embodiment performs spatial mean aggregation on the extracted K d-dimensional intrinsic feature vectors, calculates their arithmetic mean / geometric center vector, and defines it as the partial discharge feature prototype anchor point. :

[0091]

[0092] in, Let K represent the d-dimensional intrinsic eigenvector corresponding to the i-th support set reference signal; K represents the number of typical pure partial discharge pulse waveforms within the support set (K≤8 in this embodiment); and d represents the dimension of the eigenvector (d=32 in this embodiment). This prototype anchor point... It is a dimension with size The vectors, aggregated by spatial mean, not only further smoothed the subtle waveform differences between individual partial discharge pulses, but also established the most stable prototype anchor point for this type of partial discharge in the feature space. In the subsequent online inference phase, regardless of changes in field noise, this prototype anchor point of partial discharge characteristics will be used as the absolute physical benchmark for measuring the original signal of the cable under test.

[0093] Specifically, step 3 includes the following:

[0094] 1. Construct the validation set and calculate the spatial Euclidean distance distribution set of the validation set.

[0095] During the offline threshold calibration phase, samples containing typical mixed background noise (negative class, with class label set to) are constructed. The total number of samples is ) and partial discharge samples under extreme and harsh operating conditions (positive class, category label set as The total number of samples is The validation set is constructed from partial discharge samples and background noise samples that are not repeated in the training sample dataset.

[0096] The samples in the validation set are input one by one into the trained Siamese network, which outputs a high-dimensional feature vector. The Euclidean distance metric is then used to calculate the distance from the high-dimensional feature vector of each sample to the partial discharge feature prototype anchor point. The spatial Euclidean distance between them yields the set of spatial Euclidean distance distributions for the validation set. ,in M represents the total number of samples in the validation set. This represents the number of positive partial discharge samples. This represents the number of negative class samples representing pure background noise.

[0097] 2. Generate ROC curves.

[0098] Based on the spatial Euclidean distance distribution set of the validation set, the ROC curve is plotted by traversing all possible distance boundaries, as follows:

[0099] 2.1 Generate candidate threshold sequences.

[0100] Set of spatial Euclidean distance distributions All distance values ​​are sorted from smallest to largest, and duplicate values ​​are removed to form a candidate threshold sequence. .

[0101] 2.2 Sliding classification judgment.

[0102] For each candidate threshold in the candidate threshold sequence Strictly perform classification judgment on the validation set: if the distance of a sample is... If so, it is determined to be a partial discharge signal; if If it is, then it is judged as background noise.

[0103] 2.3 Calculation of basic statistics.

[0104] Based on the classification results, at the current candidate threshold Below, we will analyze the following four basic classification evaluation indicators:

[0105] Real example ( ): In reality, it is partial discharge and the distance is determined. The number of samples;

[0106] False counterexamples ( ): Actually, it's partial discharge, but the distance is determined. The number of samples;

[0107] False positives ( ): Actually background noise, but the distance is determined The number of samples;

[0108] True counterexamples ( ): Actually background noise and the distance is determined The number of samples.

[0109] 2.4 Coordinate Point Mapping and Drawing

[0110] Calculate the current candidate threshold The detection rate (True Response Rate, TPR) and false positive rate (False Positive Rate, FPR) are as follows:

[0111] (9)

[0112] false alarm rate The horizontal axis represents the detection rate. Using the vertical axis as the ordinate, a series of coordinate points are obtained after traversing and calculating all candidate thresholds. Plotting these curves on a two-dimensional plane and connecting them sequentially generates a complete ROC curve.

[0113] 2.5 Calculate the Youden index to determine the optimal adaptive distance threshold.

[0114] To maximize the capture of subtle defects while strictly controlling false alarms in the field, the Youden index is calculated for each candidate threshold based on the detection rate and false alarm rate. :

[0115] (10)

[0116] In the ROC curve, we find the optimal distance threshold that makes the Yuden exponent reach its global maximum, and strictly define it as the optimal adaptive distance threshold under the current electromagnetic conditions. :

[0117] (11)

[0118] like Figure 4 As shown, the Euclidean distances between positive and negative samples in the feature space exhibit significant differences in distribution; combined with Figure 5 It can be seen that by traversing and plotting the ROC curve, when the distance threshold at the global maximum of the Youden index is selected as the optimal adaptive distance threshold, an extremely high detection rate can be achieved while strictly controlling the false alarm rate.

[0119] Specifically, step 4 includes the following:

[0120] 1. Preprocessing of original signal interception and normalization of the cable under test on site.

[0121] During the online inference phase of the actual cable line, unknown abrupt electrical signals are captured in real time. Let the captured unknown abrupt electrical signal be the original signal of the cable under test, with the captured length consistent with the standardized signal size, denoted as . .

[0122] Because baseline drift may occur in the field acquisition equipment, and the amplitude of partial discharge signals varies greatly depending on their severity, it is necessary to perform zero-mean and standard deviation normalization operations on the original signal of the cable under test, which are completely consistent with the twin network training phase and the phase of constructing partial discharge characteristic prototype anchor points.

[0123] (12)

[0124] in, These represent the mean and standard deviation of the original signal sequence of the cable under test, respectively. To prevent extremely small constants with a denominator of zero.

[0125] 2. Obtain the high-dimensional feature vector of the original signal of the cable under test.

[0126] During the online inference phase, the Siamese network does not need to perform complex pairwise sample construction and contrastive loss calculation; it only needs to activate a single feature extraction branch. The preprocessed raw signal from the cable under test... Input to any feature extraction branch of the Siamese network that has been trained and whose weights have been frozen. middle.

[0127] After the raw signal of the cable under test is input into the feature extraction branch, it first passes through a one-dimensional convolutional layer for sliding window scanning to extract the transient edge change features of the time-domain waveform. Then, it enters a one-dimensional channel attention module, which adaptively allocates weights to each feature channel based on pre-learned knowledge, dynamically suppressing feature channels containing high-frequency white noise or narrowband interference, and amplifying channels that may contain partial discharge information. Finally, it outputs a dimension... high-dimensional feature vectors :

[0128] (13)

[0129] in, It represents the set of real numbers.

[0130] 3. Measurement and calculation of spatial Euclidean distance.

[0131] During the online inference phase, the Siamese network does not directly output classification probability values. Instead, it transforms the raw signal of the cable under test into a feature space distance metric problem. It then uses the Euclidean distance metric function to calculate the high-dimensional feature vector. Anchor point of partial discharge characteristic prototype Spatial Euclidean distance between :

[0132] (14)

[0133] in, and These two vectors represent the first two vectors in the second position. Element values ​​in each dimension.

[0134] Spatial Euclidean distance An absolute discriminant that characterizes the similarity between the inherent physical properties of the original signal of the cable under test and the intrinsic properties of standard partial discharge. Distance The smaller the value, the closer the skeleton shape of the original signal of the cable under test is to the actual partial discharge after filtering out surface noise; distance The larger the value, the more likely the original signal of the cable under test is essentially pulse interference or background noise from the environment. The spatial Euclidean distance will be used directly as the sole input for adaptive discrimination in step 4.

[0135] Specifically, step 5 includes the following:

[0136] In actual online monitoring of high-voltage cable insulation status, the spatial Euclidean distance from the original signal of the cable under test to the prototype anchor point is obtained and calculated in real time. The Euclidean distance in this space is compared with the optimal adaptive distance threshold established through optimization. Perform a hard logic numerical comparison:

[0137] like This indicates that after filtering out surface interference, the core physical morphology of the original signal of the cable under test is similar to the intrinsic characteristics of partial discharge. Therefore, the original signal of the cable under test is determined to be a partial discharge signal, and the defect warning mechanism is triggered.

[0138] like This indicates that the original signal of the cable under test has deviated significantly from the intrinsic characteristic space of partial discharge, and belongs to environmental interference with no physical connection. The original signal of the cable under test is determined to be background noise interference and is thus silently filtered out.

[0139] The implementation of the various embodiments of this invention is based on programmed processing by a device with processor functionality. Therefore, in practical engineering, the technical solutions and functions of the various embodiments of this invention are encapsulated into various modules. Based on this reality, and building upon the above embodiments, the embodiments of this invention provide a cable partial discharge signal identification system that integrates a channel attention twin network and adaptive threshold optimization. This system is used to execute a cable partial discharge signal identification method that integrates a channel attention twin network and adaptive threshold optimization as described in the above method embodiments.

[0140] The system includes: a first processing module for acquiring a pre-trained twin network and a preset optimal adaptive distance threshold; a second processing module for randomly selecting a set number of pure partial discharge pulse waveforms as support set reference signals based on a pure partial discharge pulse signal sequence, inputting the pre-processed support set reference signals into the twin network, outputting a high-dimensional intrinsic feature vector, and performing spatial mean aggregation on the high-dimensional intrinsic feature vector to obtain partial discharge feature prototype anchor points; a third processing module for inputting the acquired original signal of the cable under test into the twin network, outputting a high-dimensional feature vector of the original signal of the cable under test, and calculating the spatial Euclidean distance between the high-dimensional feature vector and the partial discharge feature prototype anchor points; and a fourth processing module for performing a hard logic numerical comparison between the spatial Euclidean distance and the preset optimal adaptive distance threshold: if the spatial Euclidean distance is less than or equal to the preset optimal adaptive distance threshold, then the original signal of the cable under test is determined to be a partial discharge signal.

[0141] This invention provides a cable partial discharge signal recognition system that integrates a channel attention twin network and adaptive threshold optimization. Addressing the technical problems of existing technologies, such as difficulty in extracting partial discharge features in strong noise environments, susceptibility of conventional twin networks to interference from irrelevant channel noise, low recognition accuracy of traditional models under low signal-to-noise ratio (SNR), and low detection rate or high false alarm rate due to the lack of environmental adaptability of fixed discrimination thresholds, this invention offers a method for cable partial discharge signal recognition that integrates a channel attention twin network and adaptive threshold optimization. Different types and intensities of noise are injected into the partial discharge reference signal to construct positive and negative sample pairs. The twin network is trained using a training sample pair dataset through metric learning. Feature vectors are extracted from a small number of clean partial discharge reference samples and aggregated to form partial discharge feature prototype anchor points. The distance between the feature vector of the original signal of the cable under test and the prototype anchor points is calculated, and an adaptive distance threshold determined based on the ROC curve of the validation set is used to determine whether the original signal of the cable under test is a partial discharge signal. This invention can reduce the impact of complex noise environments on cable partial discharge recognition, improve the partial discharge detection rate under low SNR conditions, and reduce the false alarm rate.

[0142] Finally, it should be noted that the above specific embodiments are merely representative examples of the present invention. Obviously, the present invention is not limited to the above specific embodiments and many variations are possible. Any simple modifications, equivalent changes, and alterations made to the above specific embodiments based on the technical essence of the present invention should be considered within the protection scope of the present invention.

Claims

1. A cable partial discharge signal recognition method fusing channel attention twin neural network and adaptive threshold optimization, characterized in that, include: Obtain a pre-trained Siamese network and a preset optimal adaptive distance threshold; Based on the pure partial discharge pulse signal sequence, a set number of pure partial discharge pulse waveforms are randomly selected as support set reference signals. The preprocessed support set reference signals are input into the twin network, and a high-dimensional intrinsic feature vector is output. The high-dimensional intrinsic feature vector is spatially averaged to obtain the partial discharge feature prototype anchor point. The original signal of the cable under test is obtained and input into the twin network. The high-dimensional feature vector of the original signal of the cable under test is output. The spatial Euclidean distance between the high-dimensional feature vector and the anchor point of the partial discharge feature prototype is calculated. The spatial Euclidean distance is compared with the preset optimal adaptive distance threshold using hard logic. If the spatial Euclidean distance is less than or equal to the preset optimal adaptive distance threshold, the original signal of the cable under test is determined to be a partial discharge signal.

2. The cable partial discharge signal recognition method of claim 1, wherein The training of the twin network includes: A training sample pair dataset was constructed based on a pure partial discharge pulse signal sequence and random mixed noise. Construct a Siamese network; the Siamese network includes two feature extraction branches with shared parameters and identical structures; the feature extraction branches include: a one-dimensional convolutional layer, used to convolve the training samples onto the dataset to obtain feature maps; and a one-dimensional channel attention module, used to perform global average pooling and reweighting on the feature maps, and output the weighted feature maps. By combining the dynamic contrastive loss function, the constructed Siamese network is trained on the dataset using the constructed training samples, resulting in the trained Siamese network.

3. The cable partial discharge signal recognition method of claim 2, wherein, A training sample pair dataset was constructed based on a pure partial discharge pulse signal sequence and random mixed noise, including: Based on the same pure partial discharge pulse signal sequence, two different random mixed noises are injected to construct two superimposed mixed noise partial discharge waveforms as positive sample pairs; Negative sample pairs are constructed using the partial discharge waveform of any superimposed mixed noise and the pure complex mixed background noise; The training sample pair dataset is constructed from the positive sample pairs and the negative sample pairs.

4. The cable partial discharge signal recognition method of claim 1, wherein, The preset optimal adaptive distance threshold is obtained in advance in the following way: The constructed validation set is input into the trained Siamese network, and the high-dimensional feature vector of each sample in the validation set is output. Calculate the spatial Euclidean distance between the high-dimensional feature vector of each sample in the validation set and the anchor point of the partial discharge feature prototype to obtain the spatial Euclidean distance distribution set. The ROC curve is generated based on the spatial Euclidean distance distribution set, and the Youden index is calculated to determine the optimal adaptive distance threshold.

5. The cable partial discharge signal recognition method of claim 4, wherein, Generating ROC curves includes: Sort all distance values ​​in the spatial Euclidean distance distribution set from smallest to largest, remove duplicate values, and form a candidate threshold sequence; For each candidate threshold in the candidate threshold sequence, a classification judgment is performed on the validation set: if the spatial Euclidean distance of a sample in the validation set is less than or equal to the candidate threshold, it is judged as a partial discharge signal; if the spatial Euclidean distance of a sample in the validation set is greater than the candidate threshold, it is judged as background noise. Based on the classification results, the four basic classification evaluation indicators of the current candidate threshold are statistically analyzed, and the detection rate and false alarm rate of the current candidate threshold are calculated. Plotting the false alarm rate on the horizontal axis and the detection rate on the vertical axis, the coordinate points obtained after traversing and calculating all candidate thresholds are plotted and connected sequentially to generate the ROC curve.

6. The cable partial discharge signal recognition method of claim 4, wherein, The calculation of the Youden index includes: The Youden index of the candidate threshold is calculated based on the detection rate and false alarm rate of the candidate threshold.

7. The cable partial discharge signal recognition method of claim 4, wherein, Determining the optimal adaptive distance threshold includes: In the ROC curve, find the distance threshold that makes the Yuden index reach its global maximum value, and define it as the current optimal adaptive distance threshold.

8. The cable partial discharge signal recognition method of claim 1, wherein, If the spatial Euclidean distance is greater than the preset optimal adaptive distance threshold, the original signal of the cable under test is determined to be background noise interference.

9. The cable partial discharge signal recognition method of claim 2, wherein, The expression for the dynamic contrastive loss function is: , wherein, represents a dynamic contrast loss function, i represents the index of the i-th sample pair in the current training batch; N represents the total number of sample pairs contained in a training batch; represents the binary class label of the i-th sample pair; represents a preset safety boundary value, represents the Euclidean distance between the two groups of feature vectors of the i-th sample pair.

10. A cable partial discharge signal identification system integrating channel attention twin network and adaptive threshold optimization, characterized in that, A cable partial discharge signal identification method that integrates a channel attention twin network and adaptive threshold optimization as described in any one of claims 1-9 includes: The first processing module is used to obtain the pre-trained Siamese network and the preset optimal adaptive distance threshold. The second processing module is used to randomly select a set number of pure partial discharge pulse waveforms as support set reference signals based on the pure partial discharge pulse signal sequence, input the preprocessed support set reference signals into the twin network, output high-dimensional intrinsic feature vectors, and perform spatial mean aggregation on the high-dimensional intrinsic feature vectors to obtain partial discharge feature prototype anchor points. The third processing module is used to input the acquired original signal of the cable under test into the twin network, output the high-dimensional feature vector of the original signal of the cable under test, and calculate the spatial Euclidean distance between the high-dimensional feature vector and the partial discharge feature prototype anchor point. The fourth processing module is used to perform a hard logic numerical comparison between the spatial Euclidean distance and the preset optimal adaptive distance threshold: if the spatial Euclidean distance is less than or equal to the preset optimal adaptive distance threshold, the original signal of the cable under test is determined to be a partial discharge signal.