Cable defect diagnosis method based on time-frequency image
Through the joint distribution adaptation method and residual connection method, combined with wavelet transform and filter, the shortcomings of the existing cable defect diagnosis model in data feature extraction and distribution alignment are solved, a more efficient cable defect diagnosis is achieved, and the diagnosis is significantly improved. accuracy and feature recognition effect.
Patent Information
- Application Number
- CN202410806071.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-20
AI Technical Summary
The existing domain-adaptive cable defect diagnosis model is difficult to effectively extract deeper information in the original azimuth signal during data feature extraction, resulting in insufficient diagnostic accuracy, and cannot well adjust the comparison of marginal distribution and conditional distribution, affecting the model's performance. Intra-class matching and prediction performance.
The joint distribution adaptation method is used to align the marginal distribution and conditional distribution through the MMD method, and the residual connection method is proposed to construct the residual block. The convolutional neural network is used to build the feature extractor and distribution adaptation module, and the wavelet transform and Savitzky-Golay filtering are combined. The processor performs signal preprocessing and feature extraction to reduce the vanishing gradient problem and improve model performance.
Effectively extracting deep-level features of cable partial discharge data improves the accuracy of cable defect diagnosis and the domain adaptive ability of the model, and significantly improves the diagnosis accuracy and feature recognition effect.
Smart Images

Figure CN118674986A
Abstract
Description
Technical Field
[0001] The present application relates to a cable defect diagnosis method, and in particular to a cable defect diagnosis method based on time-frequency images. Background Art
[0002] Assessing the aging and insulation degradation of cables is very important for observing and tracking their conditions during operation. Partial discharge activity diagnosis is an effective way to evaluate the health of cable insulation. When the dielectric strength of the local insulation part decreases, partial discharge activity begins. The intensity of partial discharge activity increases over time and may lead to insulation failure.
[0003] With the advancement of computer technology, deep learning methods have gradually emerged. Due to their excellent nonlinear representation capabilities, they have been widely used in the field of cable defect diagnosis research. Domain adaptation methods are used to solve the problem of cable defect diagnosis. The core concept is to achieve unsupervised prediction of the target domain by aligning the feature distribution between the source domain and the target domain data and fully learning the approximate information between the source domain and the target domain data.
[0004] The degree of variation between the marginal distribution and conditional distribution of defect data may vary from data to data. Pseudo-annotation of target domain data is often used in the calculation of conditional distribution. Correct pseudo-annotation is the key to whether the model can perform correct intra-class matching. Existing domain adaptive diagnosis models mostly use simple superposition of multi-layer convolutional neural networks in data feature extraction, which cannot well extract deeper information from the original signal, thereby providing distinct features for subsequent domain adaptation. Summary of the invention
[0005] In cable defect diagnosis, it is necessary to consider adaptively adjusting the marginal distribution and conditional distribution, and adopt a joint distribution adaptation method to consider the comparison of marginal distribution and conditional distribution for the comparison of conditional distribution; use the MMD method to align the marginal distribution and conditional distribution; use the Wasserstein distance to consider the actual data flow between the two distributions, not just the distance between data points or the relative information of the distribution.
[0006] In order to achieve the above purpose, a residual connection method is proposed, and a residual block is constructed. The main idea is to transform the input into a residual function by fitting a constant mapping function with multiple nonlinear layers. It is easier to fit the network model to the residual mapping than to fit the constant mapping function, which effectively avoids the problem that the network gradient disappears with the increase of depth.
[0007] A cable defect diagnosis method based on time-frequency images comprises the following steps: S1: Preprocess the obtained cable historical partial discharge dataset to obtain the signal time-frequency image source domain dataset, and obtain the time-frequency image target domain dataset after the cable partial discharge dataset to be diagnosed is preprocessed in the same way; S2: Divide the time-frequency images into three different datasets according to a specific ratio, namely, training dataset, validation dataset and test dataset; S3: Build a feature extractor consisting of a convolutional neural network, and build a feature distribution aligner consisting of a marginal distribution adaptation module and a conditional distribution adaptation module; S4: Use the training data set to train the diagnostic model to determine the highest diagnostic accuracy, then save the model and use the test data set to evaluate the defect diagnosis ability of the optimal model, and then generate the diagnostic results.
[0008] Furthermore, S1 includes: preprocessing the cable partial discharge data; the specific process is: phase aligning the three-phase signal, flattening the signal and estimating the overall noise level; using synchronous compression wavelet denoising to identify the pulse with the highest amplitude value of the signal and extract the single-wave pulse; normalizing the extracted pulse amplitude and generating a time-frequency image.
[0009] Furthermore, in order to better highlight the high-frequency part, the Savitzky-Golay filter is used for smoothing, which is used to fit and remove the low-frequency part of the signal. The filter coefficient is convolved with the original signal to obtain the smoothed signal: where c k is the corresponding filter coefficient, y i+k is the smoothed value.
[0010] Furthermore, the time-frequency diagram is an image showing the changes of the signal in two dimensions, time and frequency. First, the corresponding wavelet function is selected, the decomposition level is 6, and then the signal is subjected to wavelet transformation to obtain the representation of the signal in different scales and time. The calculation process is: Where Ψ is the wavelet function, a is the scale parameter, and b is the translation parameter.
[0011] Furthermore, the time-frequency matrix is converted into an image, and the intensity of the frequency component is represented by color or grayscale. The horizontal axis represents time, the vertical axis represents frequency, and the color or grayscale represents the amplitude or energy of the signal. For better visualization, the intensity values of the time-frequency matrix are normalized, and a logarithmic scale is used to enhance the contrast: Among them, |T ij | is the intensity value of the time-frequency matrix, is the normalized intensity value.
[0012] Furthermore, the marginal distribution adaptation and conditional distribution adaptation modules include: Marginal distribution adaptation solves the problem of different marginal probability distributions in the source domain and the target domain, learns the correlation between the marginal distributions of the two domains, and shortens the marginal probability distribution distance between the source data and the target data; distribution adaptation assumes that the source domain and the target domain have the same marginal probability distribution and different conditional probability distributions, and matches the class distribution of the source domain as much as possible, thereby reducing the classification error and improving the model defect recognition effect.
[0013] Furthermore, the training process is as follows: divided into training set, test set and validation set, divided in 7:2:1; in the training stage, both source domain and target domain data are labeled data, the label of the former is used to update the model, while the label of the latter is only used to calculate the accuracy of model recognition; in the inference defect diagnosis stage, the model stops training and directly inputs cable data of unknown category for diagnosis.
[0014] Furthermore, model hyperparameters are parameters predefined by the user before the training process begins and are not learned during the training process. They play a vital role in determining the performance of deep learning models. The three most critical hyperparameters of the model are the basic wavelet type in wavelet transform and the image resolution size.
[0015] Furthermore, its model structure consists of a feature extractor, a classifier, a discriminator, an encoder, and a generator, wherein the generator integrates encoding and decoding functions into a continuous architecture to reduce the model complexity.
[0016] Furthermore, the feature extractor, classifier, discriminator, encoder, and generator are composed, and are characterized in that: the feature extractor is composed of a convolutional layer, a convolutional layer-flattening, and a fully connected layer, and the classifier, discriminator, encoder, and generator are all composed of a fully connected layer. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of a cable defect diagnosis method according to an embodiment of the present invention;
[0018] Figure 2 is a diagram showing how the error value of training varies with the number of iterations in an embodiment of the present invention;
[0019] Figure 3 is a visualization diagram of high-dimensional data dimensionality reduction for training in an embodiment of the present invention; DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution will be clearly and completely described below in combination with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] See also Figure 1 , Figure 1 This is a flow chart of the cable defect diagnosis method of the present application.
[0022] The cable defect diagnosis and prediction method based on time-frequency image provided by the present invention may specifically include the following steps:
[0023] The collected cable historical data is preprocessed and the time-frequency images are obtained as source domain data.
[0024] In the embodiment of the present invention, the cable history data can be obtained through two channels: one is obtained by the laboratory through reasonable experiments, and the other is provided by relevant cable manufacturers and a cable use history database is established.
[0025] In the embodiment of the present invention, the visual defects are classified according to the degree of cable defects, and are divided into healthy, slight defects, moderate defects and severe defects. Moderate defects and above can be considered for replacement as appropriate.
[0026] In the training phase, both the source domain and target domain data are labeled data. The labels of the former are used to update the classifier, while the labels of the latter are only used to calculate the accuracy of model recognition. In the inference defect diagnosis phase, the model stops training, the discriminator does not need to work, and the cable data of unknown categories are directly input for diagnosis. In order to verify the model effect, after training and testing the model, multiple groups of comparative experiments are carried out.
[0027] The training process is to minimize the loss function, where θ f ,θ c ,θ d are the parameters of the feature extractor, classifier, and domain λ~β(α,α) discriminator, is the loss function for generating the domain adaptation network module, represents the outer product operation, λ d Is an adjustment hyperparameter term, and the loss function expression is:
[0028] See also Figure 2 , Figure 2 This is a diagram showing how the error value of training changes with the number of iterations for this application. The discriminator loss value curve of the defect diagnosis model fluctuates little, showing good domain adaptation capability.
[0029] See also Figure 3 ,T-SNE helps to identify and classify the characteristic patterns and ,distribution of defect data by reducing the high-dimensional data ,to 2D or 3D for visualization.,Not only the position defect types are aligned, but also the ,features of different defect data are separated from each other and ,clustered with obvious boundaries of each cluster, indicating that this method has the potential to ,accurately identify defect data.
Claims
1. A cable defect diagnosis method based on time-frequency images, characterized in that: The steps include: S1: Preprocess the obtained cable historical partial discharge dataset to obtain the signal time-frequency image source domain dataset, and obtain the time-frequency image target domain dataset after the cable partial discharge dataset to be diagnosed is preprocessed in the same way; S2: Divide the time-frequency images into three different datasets according to a specific ratio, namely, training dataset, validation dataset and test dataset; S3: Build a feature extractor consisting of a convolutional neural network, and build a feature distribution aligner consisting of a marginal distribution adaptation module and a conditional distribution adaptation module; S4: Use the training data set to train the diagnostic model to determine the highest diagnostic accuracy, then save the model and use the test data set to evaluate the defect diagnosis ability of the optimal model, and then generate the diagnostic results.
2. The cable defect diagnosis method based on time-frequency images according to claim 1, characterized in that: The S1 includes: preprocessing the cable partial discharge data; the specific process is: phase aligning the three-phase signal, flattening the signal and estimating the overall noise level; using synchronous compression wavelet denoising to identify the pulse with the highest amplitude value of the signal and extract the single-wave pulse; normalizing the extracted pulse amplitude and generating a time-frequency image.
3. The cable defect diagnosis method based on time-frequency image according to claim 1, characterized in that: In order to better highlight the high-frequency part, the Savitzky-Golay filter is used for smoothing, which is used to fit and remove the low-frequency part of the signal. The filter coefficient is convolved with the original signal to obtain the smoothed signal: where c k is the corresponding filter coefficient, y i+k is the smoothed value.
4. The cable defect diagnosis method based on time-frequency image according to claim 1, characterized in that: The time-frequency diagram is an image showing the changes of a signal in two dimensions, time and frequency. First, the corresponding wavelet function is selected, the decomposition level is 6, and then the signal is subjected to wavelet transformation to obtain the representation of the signal in different scales and time. The calculation process is: Where Ψ is the wavelet function, a is the scale parameter, and b is the translation parameter.
5. A time-frequency image as claimed in claim 4, characterized in that: Convert the time-frequency matrix to an image, use color or grayscale to represent the intensity of the frequency component, the horizontal axis represents time, the vertical axis represents frequency, and the color or grayscale represents the amplitude or energy of the signal. For better visualization, the intensity values of the time-frequency matrix are normalized, and a logarithmic scale is used to enhance the contrast: Among them, |T ij | is the intensity value of the time-frequency matrix, is the normalized intensity value.
6. The cable defect diagnosis method based on time-frequency image according to claim 1, characterized in that: The marginal distribution adaptation and conditional distribution adaptation modules include: Marginal distribution adaptation solves the problem of different marginal probability distributions in the source domain and the target domain, learns the correlation between the marginal distributions of the two domains, and shortens the marginal probability distribution distance between the source data and the target data; distribution adaptation assumes that the source domain and the target domain have the same marginal probability distribution and different conditional probability distributions, and matches the class distribution of the source domain as much as possible, thereby reducing the classification error and improving the model defect recognition effect.
7. The cable defect diagnosis method based on time-frequency image according to claim 1, characterized in that: The training process is as follows: the dataset is divided into a training set, a test set, and a validation set, which are divided into 7:2:
1. In the training phase, both the source domain and the target domain data are labeled data. The labels of the former are used to update the model, while the labels of the latter are only used to calculate the accuracy of model recognition. In the inference defect diagnosis stage, the model stops training and directly inputs cable data with unknown categories for diagnosis.
8. The wavelet function as described in claim 4, as a model hyperparameter, is a parameter predefined by the user before the training process begins and will not be learned during the training process. The three most critical hyperparameters of the model are the basic wavelet type in the wavelet transform and the image resolution size.
9. The cable defect diagnosis method based on time-frequency image according to claim 1, characterized in that: Its model structure consists of a feature extractor, a classifier, a discriminator, an encoder, and a generator. The generator integrates encoding and decoding functions into a continuous architecture to reduce model complexity.
10. The feature extractor, classifier, discriminator, encoder, and generator according to claim 9, characterized in that: The feature extractor is composed of convolutional layers, convolutional layers-flattened, and fully connected layers, and the classifier, discriminator, encoder, and generator are all composed of fully connected layers.
