A partial discharge identification method for a reactor based on feature optimization coupling
By constructing a PRPD map and optimizing features, and combining a lightweight FT-Transformer and Parzen estimator, the problem of insufficient ability of existing partial discharge identification methods to characterize the interaction relationship of heterogeneous features is solved, and efficient and stable identification of reactor partial discharge is achieved.
Patent Information
- Application Number
- CN202611700461.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
Existing partial discharge identification methods struggle to simultaneously reflect the spatial texture and local structure of reactor insulation, and have limited ability to characterize high-order interactions between heterogeneous features. They require a large number of training samples and computational resources, and the feature selection results are highly random.
By constructing a partial discharge pulse sequence phase distribution PRPD map, multidimensional statistical parameters and local binary mode features are extracted. The features are optimized using a multi-random seed Boruta-RF, and the interaction of heterogeneous features is learned by combining a lightweight FT-Transformer multi-head self-attention and residual normalization network. A tree-structured Parzen estimator is introduced for hyperparameter adaptive optimization, and the probability of partial discharge defects is output.
The adaptability and stability of feature interaction modeling under partial discharge mode are improved, the impact of redundant features and random screening fluctuations on the identification results is reduced, and accurate identification of reactor partial discharge is achieved.
Smart Images

Figure CN123179150A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of insulation condition detection and intelligent fault diagnosis technology for power equipment, specifically a method for identifying partial discharge in reactors based on feature-optimized coupling. Background Technology
[0002] Dry-type air-core reactors are widely used in power systems for current limiting, filtering, and reactive power compensation. Due to manufacturing defects, operating overvoltages, thermal stress, mechanical vibration, and environmental factors such as humidity and pollution, their insulation structure gradually deteriorates, leading to partial discharge. Partial discharge is a crucial early sign of insulation faults progressing from initiation to breakdown. Different defects correspond to different discharge mechanisms and risk levels; therefore, accurately identifying partial discharge modes is essential for equipment condition assessment, fault location, and maintenance decisions.
[0003] Existing partial discharge identification methods typically rely on the analysis of phase-resolved partial discharge maps and their statistical parameters. A single statistical parameter can only describe local information such as discharge amplitude, phase distribution, or pulse count, making it difficult to simultaneously reflect the spatial texture and local structure within the map. Furthermore, manually selected features are susceptible to the influence of experience differences, feature redundancy, and noise interference. When the discharge distributions of different defects overlap or operating conditions change, the discriminative power and stability of fixed feature combinations decrease.
[0004] Traditional support vector machines, decision trees, and shallow neural networks can achieve a certain level of classification, but their ability to characterize high-order interactions between heterogeneous features is limited. While image recognition methods based on convolutional neural networks can learn image textures, they may weaken statistical information with explicit physical meaning and typically require a large number of training samples and computational resources. Furthermore, feature selection and model hyperparameters often rely on a single random partition or human experience, causing the selection results to fluctuate with the random seed, and the model structure is difficult to adaptively adjust for different datasets. Summary of the Invention
[0005] The purpose of this invention is to provide a reactor partial discharge identification method based on feature-optimized coupling, which solves the problems of existing identification methods having limited ability to characterize high-order interaction relationships between heterogeneous features and requiring a large number of training samples and computational resources.
[0006] The technical solution adopted by the present invention to solve its technical problem is: a reactor partial discharge identification method based on feature-optimized coupling, comprising the following steps.
[0007] S1. Signal acquisition was performed on air gap discharge, surface discharge, metal tip discharge, and floating potential discharge defects of dry air-core reactors to obtain partial discharge pulse samples. A phase distribution (PRPD) map of the original pulse sequence was constructed, and a multidimensional statistical parameter factor sta was extracted from it.i Symbol distribution histogram vector H S and discharge intensity histogram vector H M The original composite feature matrix is formed by concatenating and normalizing the matrix. The original composite feature matrix is then divided into a development set and a test set, and the development set is further divided into a training set and a validation set.
[0008] S2. Take the composite feature matrix corresponding to the training set as the input for multi-random seed Boruta-RF feature selection. Construct shadow features through multi-random seed Boruta-RF. Obtain the optimal feature index based on random forest Gini importance, Z score, highest noise discrimination threshold and binomial distribution test. Extract corresponding features from the training set, validation set and test set according to the same index to obtain the preferred scalar feature subset.
[0009] S3. Embed the preferred scalar features in the preferred scalar feature subset one by one and add global category labels. Use the multi-head self-attention, residual normalization and feedforward network of the lightweight FT-Transformer to learn the interaction relationship between heterogeneous features.
[0010] S4. Using the cross-entropy of the validation set as the target, a tree-structured Parzen estimator is introduced to perform nonlinear adaptive optimization of the hyperparameter space of the lightweight FT-Transformer to find the optimal hyperparameter configuration, and output the probability and identification results of four types of partial discharge defects.
[0011] Further, in step S1, the acquired original partial discharge pulse samples are divided into two-dimensional grid intervals according to phase and amplitude. The cumulative frequency of the discharge pulses within each grid is obtained by traversing each partial discharge pulse sample to obtain a frequency matrix. Then, a logarithmic nonlinear mapping is used to map the cumulative frequency to... The grayscale range is used to obtain the grayscale value of the partial discharge frequency under the corresponding coordinates; the mapping formula is: , The value represents the standard pixel grayscale value; `round` is the integer part of the value. It is the cumulative frequency of the original discharge pulses within the grid consisting of the a-th phase interval and the b-th amplitude interval. It is the maximum cumulative frequency within each grid cell; the spectral matrix of the PRPD map. .
[0012] Further, in step S1, partial discharge pulse samples are recorded. , Let n be the phase of the nth pulse in the i-th sample. Let be the amplitude of the nth pulse in the i-th sample. This represents the number of pulses contained in the partial discharge pulse sample; for the Sample iConduct statistical distribution and phase behavior analysis to extract multidimensional statistical parameter factors. ; The mean, amplitude, skewness, and kurtosis statistical characteristic parameters are calculated for the pulse amplitude sequence and pulse phase sequence of the i-th sample.
[0013] Further, in step S1, the PRPD spectral matrix is converted into a symbol feature matrix and an amplitude feature matrix whose elements are binary encoded: for any center pixel gray value in the PRPD spectral matrix Let its radius be... There are P neighboring pixels on the circumference of a circle, and the gray value of the p-th neighboring pixel is... Calculate the grayscale difference between neighboring pixels and the center pixel. Decouple it into symbolic components With amplitude component ; The average value of the absolute value of the grayscale difference , Define the number of center pixel positions involved in the calculation; define a judgment function. , .
[0014] Further, in step S1, the probability distributions of symbol and amplitude microtexture structures satisfying equivalent pattern constraints within each binary encoded element of the statistical symbol feature matrix and amplitude feature matrix are reconstructed to generate... and d S Let d be the dimension of the histogram of symbol distribution. M Let the dimension of the amplitude distribution histogram be denoted by , and concatenate the two to obtain the histogram phasor. , will sta i With H joint The concatenated feature vectors are obtained by concatenating them. The feature data of the concatenated feature vectors are then subjected to min-max normalization according to the feature type to form the original composite feature matrix. . Let be the histogram vector of the sign distribution of the i-th sample; Let be the amplitude distribution histogram vector of the i-th sample.
[0015] Further, in step S2, the Sample i The dataset is divided into a development set and a test set, and the normalized training set feature matrix X is obtained. train =[ , ,… , ], This represents the value of the j-th feature in all training set samples; j = 1, 2, ..., d0, where d0 is the number of original composite features contained in the training set samples; The total number of samples in the training set; For the Nth training set train The specific value of the j-th feature of each sample; for X train The shadow feature matrix is obtained by copying. ,against The noise shadow matrix is obtained by randomly arranging the components of each feature column vector. ;Will and Obtained by horizontal splicing ,Will The input features are used as the input features of the random forest classifier in each round of Boruta-RF.
[0016] Further, in step S2, the subset of partial discharge samples contained in the internal node A to be split is denoted as... , , For the initial training subset; Gini impurity at node A C represents the set of partial discharge defect category labels. Let be the number of samples belonging to the c-th type of defect within node A. Let be the total number of samples at node A; from Iterate through each feature and its corresponding split point, and then split node A's... Divided into left child node sample set and right child node sample set , and The decrease in Gini impurity before and after splitting. Gini (D) L () represents the set of left child nodes obtained after the current node has been partitioned along the boundary. Gini impurity, Gini (D R () represents the set of right child nodes obtained after the current node has undergone boundary partitioning. The impurity of the gin; | | represents the total number of samples in the left child node, | | represents the total number of samples in the right child node, and the optimal selection is made. The feature that reaches the maximum value and the optimal split point are used to split the node, and the split nodes are then... and The data are then fed to the corresponding left and right child nodes, allowing the decision tree to grow recursively from top to bottom. During the growth process, a single feature f is simultaneously defined in a single decision tree. Gini discriminant contribution This is the sum of the Gini impurity reduction values generated by all internal nodes in the tree that are split by feature f. ; express All features f are taken as the set of internal points of the best splitting feature; through integration Using decision trees, we establish a cross-forest feature importance ensemble mapping and calculate the average Gini importance score for each feature in the extended feature matrix across the entire random forest. , The cascaded accumulation of local node sample flow and Gini split gain of a single tree is coupled with the integration of the overall mean across the forest.
[0017] Furthermore, in step S2, the Z-score is constructed as the core statistic for feature discrimination contribution. Z-score , The average Gini importance score for all features across all decision trees; Z-score set. , The shadow feature is obtained after shuffling the d0th feature; the maximum value of the shadow feature Z score is used as the highest noise discrimination threshold.
[0018] Furthermore, in step S2, a binomial distribution probability hypothesis testing model is introduced: Let the probability of a single-round hit of the original partial discharge feature under random conditions be... In N total In the second independent repeated trial, let B j Let B represent the theoretical hit count of the j-th original partial discharge feature under random assumptions, and B j Obtained by parameter N total and binomial distribution, B j Corresponding one-sided cumulative probability F j Let S be the cumulative number of hits of the j-th original partial discharge feature in all S×T rounds, where S is the number of independent random seeds and T is the number of inner Boruta benchmark iteration rounds. The coefficients are binomial coefficients, representing the sum of the coefficients from the original text. The number of combinations that hit ζ times in each independent trial is selected; if , is the absolute reserve region, α accept The feature is significantly better than the receiving threshold of random noise; if , is the absolute elimination region, α reject If the feature cannot be significantly better than the removal threshold for random noise; If it is a secondary discrimination region, then extract this feature in In the next iteration, the median ranking score of the Z-score is used for secondary auxiliary discrimination, retaining the features of those ranked at the top and supported by an insulating physical mechanism.
[0019] Furthermore, in step S2, during the t-th round of decision tree traversal under the s-th random seed, the Z score of the j-th original partial discharge feature is... The highest noise discrimination threshold of the current round Perform a one-by-one comparison, single-round hit indicator function ,but .
[0020] Furthermore, in step S2, feature components falling into the absolute retention region and those filtered through the secondary discriminant region are collected and integrated to formally output the optimal decoupled feature subset vector with compressed dimensions. , Let r be the r-th preferred scalar feature.
[0021] Furthermore, in step S3, the preferred scalar features are mapped to a high-dimensional space to generate corresponding feature embedding vectors. , It is the j-th feature of the i-th sample. It is the specific projection vector of the j-th feature; The bias vector is used to construct the initial feature embedding tensor of the FT-Transformer. = , Label the global category vector. Let be the first preferred feature embedding vector of the i-th sample; Let be the embedding vector of the last preferred feature of the i-th sample.
[0022] Furthermore, in step S3, the following steps will be performed: The signal is fed into the FT-Transformer multi-head self-attention mechanism layer, and the number of self-attention heads is set to [value]. Construct trainable query matrix projection weights for the h-th attention head. Key matrix projection weights Sum Matrix Projection Weights Generate query vectors through linear mapping Key vector Sum value vector ; h=1,2,… Then, the interaction weight matrix containing the category label within the h-th attention head is calculated. h And normalization is performed using the Softmax function: ; This represents the feature dimension of the query, key, and value vector corresponding to the h-th attention head. Subsequently, the Attention... hWe perform weighted empowerment on the value vector and output the self-attention representation result of the h-th attention head. : ; All The output representations of each self-attention head are horizontally concatenated along the column dimension, and a globally combined fully connected weight matrix is introduced. Perform linear fusion and output a multi-domain fusion feature matrix after multi-head self-attention mechanism interaction. =Concat[ , ,… ] .
[0023] Furthermore, in step S3, after the multi-head self-attention layer, a layer-by-layer residual connection and a feedforward neural network layer (FFN) are cascaded. The internal flow of the overall FT-Transformer encoder block consists of two sets of alternating normalized residual cascaded operators. The first set of residual and normalized mathematical recursive formulas is as follows: , This is a multi-domain fusion feature matrix resulting from the interaction of multiple heads' self-attention mechanisms. The layer normalization function is represented. For the intermediate layer transition state tensor; for any labeled vector in the tensor after residual summation and entering the layer normalization module. , , Let z be the mean of the elements inside vector z; Let be the variance of the elements inside vector z; To prevent positive numbers with a denominator of zero; It is a trainable adaptive scaling and translation parameter vector; It represents the Hadamardi (or Hadama) stack.
[0024] Furthermore, in step S3, the FFN employs a lightweight two-layer perceptron structure consisting of two linear fully connected layers sandwiching an adjustable GELU nonlinear activation function, which... The row-by-row nonlinear mapping expression is: , , This is the mapping weight matrix of the feedforward network; , This is the corresponding bias term.
[0025] Furthermore, in step S3, the second set of residuals and normalized outputs ,exist Extract the global category label vector, denoted as the feature decoupling decision vector. Subsequently, the feature decoupling decision vector is mapped to the partial discharge defect classification space to generate a denormalized score vector. , Here is the fully connected weight matrix of the classification head. To correspond to the classification bias vector; a Softmax function is introduced to adjust the score vector. The normalized exponential mapping forcibly transforms the network output into a probability vector for partial discharge defect pattern recognition that conforms to the axiom of probability distribution, where the probability of type c faults is... . Score for air gap discharge; The score is based on surface discharge. Score for metal tip discharge; is the score for floating potential discharge; exp represents an exponential function with the natural constant e as the base.
[0026] Furthermore, in step S4, the joint search space of the heterogeneous hyperparameters to be optimized is defined as follows: Includes encoder layer number L and attention head number Learning rate Dropout ratio and weight decay coefficient Hyperparameter configuration is represented in vector form: θ = ; using the cross-entropy loss function on the validation set The objective function for adaptive optimization of the tree-structured Parsons estimator TPE is as follows: ; The total number of samples in the validation set; The true one-hot encoded label for the i-th validation set sample belonging to the c-th type of defect; In order to be in The predicted probability output by the model; constructing a historical sample set. Introducing quantile thresholds ,in accordance with The historical hyperparameter sample space is divided into a high-quality sample space and a low-quality sample space, and the corresponding conditional probability density distribution is established using nonparametric kernel density estimation. , The probability density function is formed by fitting high-quality parameter samples with historical low loss. The probability density function is formed by fitting high-loss, poor-parameter samples; an expected improvement is introduced. (θ)= As a data acquisition function for spatial propulsion, γ represents the probability that the historical sample loss is below a threshold. Configure the corresponding validation set loss value for the hyperparameters. The probability density function of the validation set loss; by maximizing This allows the hyperparameter search space to expand towards higher potential. Region adaptive shrinkage generates entirely new candidate parameter points. The adaptive iterative evolution process continues until the maximum number of iterations is reached, locking the optimal hyperparameter configuration vector that minimizes the validation set loss throughout the entire search process. .
[0027] The beneficial effects of this invention are: it takes into account both the statistical mechanism of partial discharge and the texture information of the map, which can reduce the impact of redundant features and random screening fluctuations on the recognition results, and improve the adaptability and stability of feature interaction modeling under complex partial discharge modes. Attached Figure Description
[0028] Figure 1 A flowchart of the overall data processing for partial discharge mode identification. Detailed Implementation
[0029] This invention collects partial discharge pulses of air gap discharge, surface discharge, metal tip discharge, and floating potential discharge. A partial discharge phase distribution (PRPD) frequency matrix is constructed based on phase and amplitude, and a grayscale spectrum is generated through logarithmic mapping. Statistical parameters, local binary pattern (CLBP) symbols, and amplitude texture histograms are extracted from the original pulses and the spectrum, and then spliced and normalized to form composite features. Shadow features are constructed using a multi-random seed Boruta-RF method. Robustly optimized scalar feature subsets are obtained based on random forest Gini importance, Z-score, highest noise threshold, and binomial distribution test. These optimized scalar features are embedded one by one and added with global category labels. Multi-head self-attention, residual normalization, and a feedforward network of a lightweight FT-Transformer are used to learn the interaction relationships between heterogeneous features. Using the validation set cross-entropy as the target, a tree-structured Parzen estimator adaptively optimizes the network hyperparameters, outputting the probabilities and identification results of four types of partial discharge defects. This invention takes into account both the statistical mechanism of partial discharge and the information in the spectral texture, which can reduce the impact of redundant features and random selection fluctuations on the recognition results, and improve the adaptability and stability of feature interaction modeling under complex partial discharge modes. Figure 1 As shown, the present invention provides a reactor partial discharge identification method based on feature-optimized coupling, comprising the following steps.
[0030] S1. Signals were acquired from four typical partial discharge defects in dry-type air-core reactors to construct a raw pulse sequence phase distribution (PRPD) dataset. The four typical partial discharge defects include air gap discharge, surface discharge, metal tip discharge, and floating potential discharge.
[0031] Each partial discharge pulse sample collected is denoted as . ,in, Let n be the phase of the nth pulse in the i-th sample; Let be the amplitude of the nth pulse in the i-th sample; This represents the number of pulses contained in the partial discharge pulse sample. Statistical distribution and phase behavior analysis are performed on the partial discharge pulse samples to extract multidimensional statistical parameter factors, denoted as... ; The mean, amplitude, skewness, and kurtosis statistical characteristic parameters are calculated for the pulse amplitude sequence and pulse phase sequence of the i-th sample. The collected raw partial discharge pulse samples are divided into two-dimensional grid intervals according to phase and amplitude, constructing a 255×255 two-dimensional statistical grid. The cumulative frequency of discharge pulses within each grid is obtained by traversing each partial discharge pulse sample. Then, a logarithmic nonlinear mapping is used to map the cumulative frequency to... The grayscale range is represented by matrix elements that are the grayscale values of the partial discharge frequency at the corresponding coordinates. The mapping formula for each original partial discharge pulse sample is: In the formula, The standard pixel grayscale value; round is the integer part of the value. It is the current calculated cumulative frequency of the original discharge pulses within the grid consisting of the a-th phase interval and the b-th amplitude interval; This is the maximum value among the cumulative frequencies of the original discharge pulses within each grid. This generates a single-channel two-dimensional partial discharge grayscale matrix. .
[0032] A local binary mode local texture encoding method is introduced to characterize the local texture structure and grayscale mode of the partial discharge grayscale image at multiple scales, and to extract CLBP texture parameters. For any center pixel in the grayscale image matrix, the grayscale value... Let its radius be... There are P neighboring pixels on the circumference of a circle, and the gray value of the p-th neighboring pixel is denoted as . If a neighboring pixel does not fall on an integer pixel coordinate, its gray value is calculated by interpolation.
[0033] Calculate the grayscale difference between neighboring pixels and the center pixel. Decouple it into symbolic components With amplitude component .in, It maintains the characteristics of the data structure and is used to capture local edge direction information. A neighboring pixel not less than the center pixel is denoted as 1, and a neighboring pixel less than the center pixel is denoted as 0. The amplitude component maintains the data structure characteristics and is used to capture local edge direction information. First, the average value of the absolute values of the grayscale differences of all neighboring pixels in the entire image is obtained. In the formula, This represents the number of center pixel positions involved in the calculation. Define a judgment function. After judging all neighboring points, the data is encoded in binary form. .
[0034] After processing the symbol and amplitude components of all pixels in the grayscale matrix using the above methods, and after binary encoding of the amplitude and symbol components corresponding to each pixel, the original two-dimensional grayscale map matrix is transformed into a symbol feature matrix and amplitude feature matrix with binary encoded elements.
[0035] The symbol feature matrix and amplitude feature matrix are traversed, and an equivalence pattern constraint is introduced to limit the number of binary code transitions corresponding to each element in both matrices to no more than two. Heterogeneous codes that do not meet the constraint are uniformly classified into a mixed noise bucket. The probability distribution of symbol and amplitude micro-texture structures that satisfy the equivalence pattern constraint within each binary code element of the symbol feature matrix and amplitude feature matrix are statistically analyzed, and the symbol distribution histogram vector is reconstructed accordingly. With discharge intensity histogram vector And connect the two in series to obtain . d S d represents the dimension of the symbol distribution histogram, i.e., the number of histogram intervals corresponding to the symbol texture encoding; M The dimension of the amplitude distribution histogram represents the number of histogram intervals corresponding to the amplitude texture encoding. The multidimensional statistical parameter factors obtained from the initial data processing are concatenated with the histogram phasor to obtain the feature vector. Subsequently, the concatenated feature data is subjected to min-max normalization according to feature type to form the original composite feature matrix. . Let be the histogram vector of the sign distribution of the i-th sample; Let be the amplitude distribution histogram vector of the i-th sample.
[0036] Partial discharge pulse signals are collected for reactors with pre-existing faults such as air gap discharge, surface discharge, metal tip discharge, and floating potential discharge. Defect category labels corresponding one-to-one with partial discharge pulse samples are constructed. The original composite feature matrix corresponding to the overall samples is divided into development set and test set using a stratified random sampling method. Within the development set, training set and validation set are further divided. The training set is used for subsequent feature optimization and model learning, the validation set is used for hyperparameter adaptive optimization, and the test set is used for final classification performance evaluation.
[0037] S2. Take the composite feature matrix corresponding to the training set as the input for multi-random seed Boruta-RF feature selection. Construct shadow features through multi-random seed Boruta-RF. Obtain the optimal feature index based on random forest Gini importance, Z score, highest noise discrimination threshold and binomial distribution test. Extract corresponding features from the training set, validation set and test set according to the same index to obtain the preferred scalar feature subset.
[0038] Obtain the normalized training set feature matrix, denoted as the training set feature matrix X. train =[ , ,… , ], j=1,2,…d0, where d0 is the number of original composite features contained in the training set samples. Where, This represents the value of the j-th feature across all training samples; The total number of samples in the training set; For the Nth training set train The specific value of the j-th feature of a sample.
[0039] To break down the relationship between each feature and the partial discharge defect label without disrupting the original probability density distribution of individual features. To establish the correlation between them, the original composite feature matrix is first copied to obtain the shadow feature matrix. ,against The noise shadow matrix is obtained by randomly arranging the components of each feature column vector. .
[0040] The original composite feature matrix X train With noise shadow matrix Obtained by horizontal splicing ,Will The input features are used as the input features of the random forest classifier in each round of Boruta-RF.
[0041] For including Using the original training set of samples, perform random uniform sampling with replacement. Next, construct a dedicated initial training subset for the k-th decision tree. , used as the k-th independent decision tree in the random forest The root node is the initial input sample dataset. By using a sampling with replacement mechanism, sample distribution perturbation is introduced between each decision tree to suppress the overfitting tendency of the base estimator.
[0042] When splitting a specific decision tree node u, the node does not directly split from the entire tree. Instead of searching for the optimal solution among extended features, it randomly draws features without replacement. Each feature constitutes a subset of partial discharge samples. By artificially creating limited feature competition at the nodes, a noise adversarial effect is stimulated between the original partial discharge features and the shadow features.
[0043] As the decision tree recursively splits and grows from top to bottom, the subset of partial discharge samples contained in the current internal node A to be split is denoted as... And satisfy Gini impurity at node A Where C is the set of partial discharge defect category labels; Let be the number of samples belonging to the c-th type of defect within node A; This represents the total number of samples at the current node.
[0044] From partial discharge sample subset Iterate through each feature and its corresponding split point, and then split node A's... Divided into left child node sample set and right child node sample set The boundary conditions satisfy and The decrease in Gini impurity before and after splitting was calculated. Assess the quality of cell division: Gini (D) L () represents the set of left child nodes obtained after the current node has been partitioned along the boundary. Gini impurity; Gini (D R () represents the set of right child nodes obtained after the current node has undergone boundary partitioning. The impurity of the gin. Optimal selection makes... The feature that reaches the maximum value and the optimal split point are used to split the node, and the split nodes are then... and The data are then sent to the corresponding left and right child nodes, allowing the decision tree to grow recursively from top to bottom. By artificially restricting the dimensions of candidate features at local nodes, the real composite features carrying the physical causal mechanism of insulation degradation and the noise shadow features generated by purely random shuffling are allowed to directly collide and compete for impurity in a highly random local space, thereby stimulating the noise adversarial effect between the original partial discharge features and the shadow features.
[0045] During this growth process, a single feature f is simultaneously defined in a single decision tree. Gini discriminant contribution This is the sum of the Gini impurity reduction values generated by all internal nodes in the tree that are split by feature f. In the formula, Represents the k-th decision tree All features f are taken as the set of interior points of the best splitting feature. Through ensemble... For a decision tree trained according to the above mechanism, establish a cross-forest feature importance ensemble mapping, and calculate the average Gini importance score of each feature in the extended feature matrix across the entire random forest. , By coupling the cascaded accumulation of local node sample flow in a single tree and the Gini split gain with the integration of the overall mean across the forest, this invention seamlessly transforms the topological growth process of the classification tree into a quantitative measure of feature discrimination contribution. Since the shadow feature column vector has no substantial physical correlation with the true label, but its numerical distribution is completely consistent with the original partial discharge features, this evaluator can place the original partial discharge features and shadow features in a completely equal competitive environment to conduct quantitative evaluation of classification contribution.
[0046] To eliminate random score fluctuations caused by random sampling within ensemble learning, the average Gini importance score is standardized, and the Z-score is constructed as the core statistic for feature discrimination contribution. For any feature... Z-score In the formula, Calculate the average Gini importance score for all features across all decision trees. Then, calculate the Z-score set including the extended features. back, The shadow feature is obtained after shuffling the d0th feature. The Z-scores of all shadow features are isolated, and the maximum value is extracted and defined as the highest noise discrimination threshold in the current evaluation round. .Will This serves as the physical and statistical boundary between pure random noise interference from power bureaus. Logically, since the sample order of all shadow features has been completely shuffled, its performance is equivalent to white noise interference completely independent of the classification label; if the standardized score of a certain real original partial discharge feature in this round of calculation cannot exceed... Statistically, this feature is considered to have a lower discriminative performance than the noise level of pure random guessing.
[0047] Set up S independent random seeds in the outer layer, and set the inner layer Boruta baseline iteration rounds to T rounds. Under the control of each outer random seed, the inner layer recursively performs T rounds of feature importance calculation and the highest noise discrimination threshold. Extraction is performed to eliminate randomness errors from single-seed runs. A single-feature decision operator is established for each round. In the t-th round of decision tree traversal under the s-th random seed, the Z-score of the j-th original partial discharge feature is extracted. The highest noise discrimination threshold of the current round By comparing them one by one, the single-round hit indicator function is: Count the cumulative hit count for each original partial discharge feature: .
[0048] A binomial distribution probability hypothesis testing model is introduced. Let the probability of a single-round hit on the original partial discharge feature under random conditions be... .exist In the second independent repeated trial, let B j Let B represent the theoretical hit count of the j-th original partial discharge feature under random assumptions, and B j Obtained by parameter N total and The binomial distribution is given. Calculate its corresponding one-sided cumulative probability value. . The binomial coefficients represent the coefficients from N. total Selected from independent trials The number of combinations that hit. N total The total number of judgments made for a single feature; F j Let be the cumulative hit count of the j-th feature across all S×T rounds. , is the absolute reserve region, α accept The threshold for a feature to be significantly better than random noise is the significance criterion for determining whether a feature should be directly retained. If a feature is significantly better than random noise, it is directly assigned to the preferred scalar feature subset. , is the absolute elimination region, α reject The threshold for removing features that are not significantly better than random noise is the probability criterion for determining whether a feature should be directly deleted. If a feature behaves no differently from pure random noise, it is permanently removed. If it is a secondary discrimination region, then extract this feature in In the next iteration, the median ranking score of the Z-score is used for secondary auxiliary discrimination, retaining the features of those ranked at the top and supported by an insulating physical mechanism.
[0049] The feature components that fall into the absolute preservation region and those filtered through the secondary discriminant region are collected and integrated, and the optimal decoupled feature subset vector with compressed dimension is officially output. , For the r-th preferred scalar feature, retain the feature for each sample. , The values of the r optimal features obtained after processing each original sample.
[0050] S3. Pattern recognition based on lightweight FT-Transformer.
[0051] After obtaining the optimal decoupling feature subset vector after optimization, a linear projection weight vector and a bias term are established to map the optimized scalar features to a high-dimensional space, generating the corresponding feature embedding vector. In the formula, It is the j-th feature of the i-th sample; It is the specific projection vector of the j-th feature; Let be the bias vector. In the feature label matrix formed by mapping using the above formula, a trainable global class label vector is explicitly concatenated at the first position, denoted as . Finally, the initial feature embedding tensor of the FT-Transformer is constructed. = , It serves as the global category label vector, used in subsequent self-attention interactions to unbiasedly extract and aggregate cross-discrimination information between heterogeneous physical and texture domain features across all feature channels, serving as the sole core carrier for the final classification decision. Let be the first preferred feature embedding vector of the i-th sample; Let be the embedding vector of the last preferred feature of the i-th sample.
[0052] Embed the constructed initial features into the tensor The input is fed into the FT-Transformer multi-head self-attention mechanism layer. The number of self-attention heads is set to... Each attention head has a scalar dimension of 1. Construct trainable query matrix projection weights for the h-th attention head. Key matrix projection weights Sum Matrix Projection Weights Generate query vectors through linear mapping Key vector Sum value vector . Then, the interaction weight matrix containing the category label within the h-th attention head is calculated. h And normalization is performed using the Softmax function: . This represents the feature dimension of the query, key, and value vector corresponding to the h-th attention head. h The elements in the expression quantitatively characterize the degree of dynamic complementarity and physical synergy between the i-th and j-th partial discharge features. Subsequently, Attention... h We perform weighted empowerment on the value vector and output the self-attention representation result of the h-th attention head. : All The output representations of each self-attention head are horizontally concatenated along the column dimension, and a globally combined fully connected weight matrix is introduced. Perform linear fusion and output a multi-domain fusion feature matrix after multi-head self-attention mechanism interaction. =Concat[ , ,… ] Therefore, by parallel computation of the multi-head self-attention matrix and scaling dot product evolution, this invention forcibly stimulates the correlation mechanism between heterogeneous insulating features within the entire network, realizing high-order semantic interaction between partial discharge parameters and image micro-texture.
[0053] To ensure the nonlinear fitting capability between deep network layers and achieve robust feature transfer, a layer-by-layer residual connection and a feedforward neural network layer (FFN) are cascaded after the multi-head self-attention layer. The internal flow of the overall FT-Transformer encoder block consists of two sets of alternating normalized residual cascaded operators. The first set of residual and normalized mathematical recurrence relation is as follows: In the formula, Embed tensors for the initial input features; This is a multi-domain fusion feature matrix resulting from the interaction of multiple heads' self-attention mechanisms. The layer normalization function is represented. This is used to perform independent mean and variance smoothing on feature vectors in the channel dimension, in order to suppress the phenomenon of shallow parameter perturbations being amplified in the cascade in deep networks. This is a transition state tensor for the intermediate layer. For any labeled row vector in the input tensor... Its standardized calculation formula is: In the formula, Let z be the mean of the elements inside vector z; Let be the variance of the elements inside vector z; To prevent tiny positive numbers with a denominator of zero; It is a trainable adaptive scaling and translation parameter vector; It represents the Hadamardi (or Hadama) stack.
[0054] The feedforward neural network layer FFN employs a lightweight two-layer perceptron structure consisting of two linear fully connected layers sandwiching an adjustable GELU nonlinear activation function. Its tensor... The row-by-row nonlinear mapping expression is: In the formula, , This is the mapping weight matrix of the feedforward network; , This corresponds to the bias term. To maintain the lightweight nature of the classifier for online defect diagnosis, the dimensions of the intermediate hidden layers are limited. This allows for deep nonlinear manifold abstraction of high-order heterogeneous cooperative features under strict parameter constraints. The second set of residuals and normalized outputs... In the final output Extract the global category label vector, denoted as the feature decoupling decision vector. Subsequently, the feature decoupling decision vector is mapped to the partial discharge defect classification space to generate a denormalized score vector. In the formula, This is the fully connected weight matrix for the classification head; This is the corresponding classification bias vector.
[0055] Introducing the Softmax function to the score vector The normalized exponential mapping forcibly transforms the network output into a probability vector for partial discharge defect pattern recognition that conforms to the axiom of probability distribution, where the probability of type c faults is... . Score for air gap discharge; The score is based on surface discharge. Score for metal tip discharge; The score is given for the floating potential discharge. exp represents an exponential function with the natural constant e as the base.
[0056] S4. Hyperparameter adaptive optimization based on tree-structured Parsons estimator TPE.
[0057] To reduce the reliance of deep learning classifiers on manual parameter tuning and ensure optimal manifold matching between the network architecture and specific partial discharge datasets, a tree-structured Parzen estimator is introduced to perform nonlinear adaptive optimization of the hyperparameter space of the lightweight FT-Transformer, establishing a closed-loop optimization pipeline for system performance.
[0058] The joint search space for heterogeneous hyperparameters to be optimized is defined as follows: Includes encoder layer number L and attention head number Learning rate Dropout ratio and weight decay coefficient Any specific hyperparameter configuration is represented in vector form: θ = Using the cross-entropy loss function on the partial discharge validation set. This serves as the objective function for TPE adaptive optimization. Given a configuration vector... Next, the loss is calculated through forward propagation: In the formula, The total number of samples in the validation set; The true one-hot encoded label for the i-th validation set sample belonging to the c-th type of defect; In hyperparameters The predicted probability output by the model. The ultimate technical goal of optimization is to find the optimal hyperparameter configuration.
[0059] Initialize the historical evaluation sequence by collecting the running configurations and their corresponding target loss values to construct a historical sample set. Introduce a dynamic quantile threshold. .in accordance with The historical hyperparameter sample space is divided into a high-quality sample space and a low-quality sample space, and the corresponding conditional probability density distributions are established using nonparametric kernel density estimation: In the formula, The probability density function formed by fitting high-quality parameter samples with historical low loss represents the high-potential search region. The probability density function formed by fitting high-loss, poor-quality parameter samples represents the low-potential noise region.
[0060] To achieve the optimal balance between exploring unknown spaces and making the most of known high-quality spaces, an improved EI (Expected Income Index) is introduced as the acquisition function for space propulsion. The mathematical closed-loop derivation formula of EI is represented as: (θ)= In the formula, γ represents the probability that the historical sample loss is below a threshold. Configure the corresponding validation set loss value for the hyperparameters. Quantile threshold, Let be the probability density function of the loss on the validation set. This is achieved by maximizing... This allows the hyperparameter search space to expand towards higher potential. Region adaptive shrinkage generates entirely new candidate parameter points. The adaptive iterative evolution process continues until the maximum number of iterations is reached, locking the optimal hyperparameter configuration vector that minimizes the validation set loss throughout the entire search process. .
[0061] This invention takes into account both the statistical mechanism of partial discharge and the information of map texture, which can reduce the impact of redundant features and random screening fluctuations on the recognition results and improve the adaptability and stability of feature interaction modeling under complex partial discharge modes.
Claims
1. A method for identifying partial discharge in reactors based on feature-optimized coupling, characterized in that, Includes the following steps: S1. Signal acquisition was performed on air gap discharge, surface discharge, metal tip discharge, and floating potential discharge defects of dry air-core reactors to obtain partial discharge pulse samples. A pulse sequence phase distribution (PRPD) spectrum was constructed, and a multidimensional statistical parameter factor sta was extracted from it. i Symbol distribution histogram vector H S and discharge intensity histogram vector H M The original composite feature matrix is formed by concatenating and normalizing the matrix; the original composite feature matrix is then divided into a development set and a test set, and the development set is further divided into a training set and a validation set. S2. Take the composite feature matrix corresponding to the training set as the input for the multi-random seed Boruta-RF feature selection. Construct shadow features through multi-random seed Boruta-RF. Obtain the optimal feature index based on random forest Gini importance, Z score, highest noise discrimination threshold and binomial distribution test. Extract corresponding features from the training set, validation set and test set according to the same index to obtain the preferred scalar feature subset. S3. Embed the preferred scalar features in the preferred scalar feature subset one by one and add global category labels. Use the multi-head self-attention, residual normalization and feedforward network of lightweight FT-Transformer to learn the interaction relationship between heterogeneous features. S4. Using the cross-entropy of the validation set as the target, a tree-structured Parzen estimator is introduced to perform nonlinear adaptive optimization of the hyperparameter space of the lightweight FT-Transformer to find the optimal hyperparameter configuration, and output the probability and identification results of four types of partial discharge defects.
2. The reactor partial discharge identification method based on feature-optimized coupling according to claim 1, characterized in that, In step S1, the original partial discharge pulse samples are divided into two-dimensional grid intervals according to phase and amplitude. The cumulative frequency of the discharge pulses within each grid is obtained by traversing each partial discharge pulse sample to obtain a frequency matrix. Then, a logarithmic nonlinear mapping is used to map the cumulative frequency to... The grayscale range is used to obtain the grayscale value of the partial discharge frequency under the corresponding coordinates; the mapping formula is: ; The value represents the standard pixel grayscale value; `round` is the integer part of the value. It is the cumulative frequency of the original discharge pulses within the grid consisting of the a-th phase interval and the b-th amplitude interval. It is the maximum value of the cumulative frequency within each grid cell; PRPD map matrix .
3. The reactor partial discharge identification method based on feature-optimized coupling according to claim 2, characterized in that, In step S1, the partial discharge pulse sample is recorded. , Let n be the phase of the nth pulse in the i-th sample. Let be the amplitude of the nth pulse in the i-th sample. This represents the number of pulses contained in the partial discharge pulse sample; for the Sample i Conduct statistical distribution and phase behavior analysis to extract sta i , ; The mean, amplitude, skewness, and kurtosis statistical characteristic parameters are calculated for the pulse amplitude sequence and pulse phase sequence of the i-th sample.
4. The reactor partial discharge identification method based on feature-optimized coupling according to claim 3, characterized in that, In step S1, the PRPD spectral matrix is converted into a symbol feature matrix and an amplitude feature matrix with binary encoded elements: for any center pixel gray value in the PRPD spectral matrix Let its radius be... There are P neighboring pixels on the circumference of a circle, and the gray value of the p-th neighboring pixel is... Calculate the grayscale difference between neighboring pixels and the center pixel. Decouple it into symbolic components With amplitude component ; The average value of the absolute value of grayscale difference , Define the number of center pixel positions involved in the calculation; define a judgment function. , .
5. The reactor partial discharge identification method based on feature-optimized coupling according to claim 4, characterized in that, In step S1, the probability distributions of symbol and amplitude microtexture structures that satisfy the equivalence pattern constraint within each binary encoded element of the statistical symbol feature matrix and amplitude feature matrix are reconstructed to generate... and d S Let d be the dimension of the histogram of symbol distribution. M Let the dimension of the amplitude distribution histogram be denoted by , and concatenate the two to obtain the histogram phasor. , will sta i With H joint The concatenated feature vectors are obtained by concatenating and then performing min-max normalization on the feature data of the concatenated feature vectors according to feature type to form the original composite feature matrix. ; Let be the histogram vector of the sign distribution of the i-th sample; Let be the amplitude distribution histogram vector of the i-th sample.
6. The reactor partial discharge identification method based on feature-optimized coupling according to claim 5, characterized in that, In step S2, the normalized training set feature matrix X train =[ , ,… , ], This represents the value of the j-th feature in all training set samples; j = 1, 2, ..., d0, where d0 is the number of original composite features contained in the training set samples; The total number of samples in the training set; For the Nth training set train The specific value of the j-th feature of each sample; for X train The shadow feature matrix is obtained by copying. ,against The noise shadow matrix is obtained by randomly arranging the components of each feature column vector. ;Will and Obtained by horizontal splicing ,Will The input features are used as the input features of the random forest classifier in each round of Boruta-RF.
7. The reactor partial discharge identification method based on feature-optimized coupling according to claim 6, characterized in that, In step S2, the subset of partial discharge samples contained in the internal node A to be split is denoted as... , , For the initial training subset; Gini impurity at node A C represents the set of partial discharge defect category labels. Let be the number of samples belonging to the c-th type of defect within node A. The total number of samples at node A; from Iterate through each feature and its corresponding split point, and then split node A's... Divided into left child node sample set and right child node sample set , and The decrease in Gini impurity before and after splitting. Gini (D) L () represents the set of left child nodes obtained after the current node has been partitioned along the boundary. Gini impurity, Gini (D R () represents the set of right child nodes obtained after the current node has undergone boundary partitioning. The impurity of the gin; | | represents the total number of samples in the left child node, | | represents the total number of samples in the right child node; the optimal selection is made by... The feature that reaches the maximum value and the optimal split point are used to split the node, and the split nodes are then... and The data are then fed to the corresponding left and right child nodes, allowing the decision tree to grow recursively from top to bottom. During the growth process, a single feature f is simultaneously defined in a single decision tree. Gini discriminant contribution This is the sum of the Gini impurity reduction values generated by all internal nodes in the tree that are split by feature f. ; express All features f are taken as the set of internal points of the best splitting feature; through integration Using decision trees, we establish a cross-forest feature importance ensemble mapping and calculate the average Gini importance score for each feature in the extended feature matrix across the entire random forest. , The cascaded accumulation of local node sample flow and Gini split gain of a single tree is coupled with the integration of the overall mean across the forest.
8. The reactor partial discharge identification method based on feature-optimized coupling according to claim 7, characterized in that, In step S2, the Z-score is constructed as the core statistic for feature discrimination contribution. Z-score , The average Gini importance score for all features across all decision trees; Z-score set. , The shadow feature is obtained after shuffling the d0th feature; the maximum value of the shadow feature Z score is used as the highest noise discrimination threshold.
9. The reactor partial discharge identification method based on feature-optimized coupling according to claim 8, characterized in that, In step S2, the binomial distribution test specifically involves: assuming the probability of a single-round hit on the original partial discharge feature under random conditions... In N total In the second independent repeated trial, let B j Let B represent the theoretical hit count of the j-th original partial discharge feature under random assumptions, and B j Obtained by parameter N total and binomial distribution, B j Corresponding one-sided cumulative probability F j Let be the cumulative number of hits of the j-th original partial discharge feature in all S×T rounds, where S is the number of independent random seeds and T is the number of inner Boruta benchmark iteration rounds; The coefficients are binomial coefficients, representing the sum of the coefficients from the original coefficients. The number of combinations that hit ζ times in each independent trial is selected; if , is the absolute reserve region, α accept The feature is significantly better than the receiving threshold of random noise; if , is the absolute elimination region, α reject If the feature cannot be significantly better than the removal threshold for random noise; If it is a secondary discrimination region, then extract this feature in In the next iteration, the median sort score of the Z score is used for secondary auxiliary discrimination, retaining the features that are ranked first and have the support of an insulating physical mechanism; In the t-th round of decision tree traversal under the s-th random seed, the Z score of the j-th original partial discharge feature is... The highest noise discrimination threshold of the current round Perform a one-by-one comparison, single-round hit indicator function ,but Collect and integrate feature components that fall into the absolute retention region and those filtered through the secondary discriminant region, and formally output the optimal decoupled feature subset vector with compressed dimension. , Let r be the r-th preferred scalar feature.
10. The reactor partial discharge identification method based on feature-optimized coupling according to claim 9, characterized in that, In step S3, the preferred scalar features are mapped to a high-dimensional space to generate corresponding feature embedding vectors. , It is the j-th feature of the i-th sample. It is the specific projection vector of the j-th feature; The bias vector is used to construct the initial feature embedding tensor of the FT-Transformer. = , Label the global category vector. Let be the first preferred feature embedding vector of the i-th sample; Let be the embedding vector of the last preferred feature of the i-th sample.
11. The reactor partial discharge identification method based on feature-optimized coupling according to claim 10, characterized in that, In step S3, The signal is fed into the FT-Transformer multi-head self-attention mechanism layer, and the number of self-attention heads is set to [value]. Construct trainable query matrix projection weights for the h-th attention head. Key matrix projection weights Sum Matrix Projection Weights Generate query vectors through linear mapping Key vector Sum value vector ; ; h=1,2,… Then, the interaction weight matrix containing the category label within the h-th attention head is calculated. h And normalization is performed using the Softmax function: ; This represents the feature dimension of the query, key, and value vector corresponding to the h-th attention head; Then, Attention h We perform weighted empowerment on the value vector and output the self-attention representation result of the h-th attention head. : ; All The output representations of each self-attention head are horizontally concatenated along the column dimension, and a globally combined fully connected weight matrix is introduced. Perform linear fusion and output a multi-domain fusion feature matrix after multi-head self-attention mechanism interaction. =Concat[ , ,… ] .
12. The reactor partial discharge identification method based on feature-optimized coupling according to claim 11, characterized in that, In step S3, after the multi-head self-attention layer, a layer-by-layer residual connection and a feedforward neural network layer (FFN) are cascaded. The internal flow of the overall FT-Transformer encoder block consists of two sets of alternating normalized residual cascaded operators. The first set of residual and normalized mathematical recursive formulas is as follows: , This is a multi-domain fusion feature matrix resulting from the interaction of multiple heads' self-attention mechanisms. The layer normalization function is represented. For the intermediate layer transition state tensor; for any labeled vector in the tensor after residual summation and entering the layer normalization module. , , Let z be the mean of the elements inside vector z; Let be the variance of the elements inside vector z; To prevent positive numbers with a denominator of zero; It is a trainable adaptive scaling and translation parameter vector; The Hadamard product is represented by FFN; FFN employs a lightweight two-layer perceptron structure consisting of two linear fully connected layers sandwiching an adjustable GELU nonlinear activation function, which is effective for... The row-by-row nonlinear mapping expression is: , , This is the mapping weight matrix of the feedforward network; , This is the corresponding bias term.
13. The reactor partial discharge identification method based on feature-optimized coupling according to claim 12, characterized in that, In step S3, the second set of residuals and normalized outputs ,exist Extract the global category label vector, denoted as the feature decoupling decision vector. ; then, Mapping to the partial discharge defect classification space generates a denormalized score vector. , Here is the fully connected weight matrix of the classification head. To correspond to the classification bias vector; a Softmax function is introduced to adjust the score vector. The normalized exponential mapping forcibly transforms the network output into a probability vector for partial discharge defect pattern recognition that conforms to the axiom of probability distribution, where the probability of the c-th type defect is... ; Score for air gap discharge; The score is based on surface discharge. Score for metal tip discharge; is the score for floating potential discharge; exp represents an exponential function with the natural constant e as the base.
14. The reactor partial discharge identification method based on feature-optimized coupling according to claim 13, characterized in that, In step S4, the joint search space of the heterogeneous hyperparameters to be optimized is defined as follows: Includes encoder layer number L and attention head number Learning rate Dropout ratio and weight decay coefficient ; Hyperparameter configuration is represented in vector form: θ= ; using the cross-entropy loss function on the validation set The objective function for adaptive optimization of the tree-structured Parsons estimator TPE is as follows: ; The total number of samples in the validation set; The true one-hot encoded label for the i-th validation set sample belonging to the c-th type of defect; In order to be in The predicted probability output by the model; constructing a historical sample set. Introducing quantile thresholds ,in accordance with The historical hyperparameter sample space is divided into a high-quality sample space and a low-quality sample space, and the corresponding conditional probability density distribution is established using nonparametric kernel density estimation. , The probability density function is formed by fitting high-quality parameter samples with historical low loss. The probability density function is formed by fitting high-loss, poor-parameter samples; an expected improvement is introduced. (θ)= As a data acquisition function for spatial propulsion, γ represents the probability that the historical sample loss is below a threshold. Configure the corresponding validation set loss value for the hyperparameters. The probability density function of the validation set loss; by maximizing This allows the hyperparameter search space to expand towards higher potential. Region adaptive shrinkage generates entirely new candidate parameter points. The adaptive iterative evolution process continues until the maximum number of iterations is reached, locking the optimal hyperparameter configuration vector that minimizes the validation set loss throughout the entire search process. .
