A switch cabinet voiceprint fault detection method based on deep neural network

The k-means clustering method is used to divide and prune neural network nodes, which solves the problems of pruning uncertainty and loss of important nodes in the existing technology, and achieves more accurate network optimization and resource utilization.

CN117219124BActive Publication Date: 2024-10-18STATE GRID HUBEI EXTRA HIGH VOLTAGE CO
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311292612.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-08
Publication Date
2024-10-18
Estimated Expiration
2043-10-08

AI Technical Summary

Technical Problem

In the existing technology, neural network pruning based on weight values ​​requires artificially setting thresholds, and the degree of pruning cannot be accurately controlled, resulting in uncertainty and the loss of important nodes.

Method used

The k-means clustering method is used to divide the nodes in the residual neural network, cluster according to the weight values ​​and gradient values ​​of the nodes, and train after pruning to accurately control network performance and avoid the loss of important nodes.

Benefits of technology

It eliminates the uncertainty of artificially setting thresholds, accurately controls the degree of pruning through clustering results, avoids pruning important nodes, and improves network performance and resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117219124B_ABST
    Figure CN117219124B_ABST
Patent Text Reader

Abstract

The present invention discloses a switch cabinet voiceprint fault detection method based on a deep neural network, and relates to the field of neural network technology. It includes: collecting the observed voiceprint signal of the switch cabinet to construct a data set; constructing an initial residual neural network for switch cabinet voiceprint fault detection; according to the weight value and gradient value of all nodes of the residual module, using the k-means clustering method to divide all nodes of the residual module into different classes; setting the weight values ​​of the nodes in the class to which the smallest class center belongs to all to 0, and obtaining the pruned residual neural network. The present invention performs pruning according to the k-means clustering results, eliminating the uncertainty of artificially determining the threshold in the pruning strategy based on the size of the weight value. Since the nodes in the class with the smallest cluster center have the smallest contribution to the performance of the residual neural network, the pruning degree can be accurately controlled by pruning this class of low-contribution nodes, avoiding pruning important nodes with small weight values ​​but large gradient values ​​to affect network performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning technology, and in particular to a switch cabinet voiceprint fault detection method based on deep neural network. Background Art

[0002] Switchgear is an important equipment in the power system, and the failure of the switchgear will affect the normal operation of the power system and the reliability of the equipment. In order to improve the efficiency and accuracy of fault detection, researchers have begun to pay attention to the application of voiceprint technology in switchgear fault detection.

[0003] Voiceprint technology is based on the characteristics of sound signals to identify and classify faults. It can detect faults in switch cabinets by analyzing and comparing parameters such as the frequency, amplitude, and harmonics of sound signals. Voiceprint technology is a non-invasive detection method that does not require destructive or contact detection of equipment. It can detect faults by simply collecting the sound signals generated by the equipment, which means that detection can be performed while the equipment is operating normally, without shutting down or disassembling the equipment. In addition, voiceprint technology can collect and analyze the sound signals of the equipment in real time, and can detect and diagnose switch cabinet faults before partial discharge and overheating occur, giving early warning of potential faults and avoiding production stops or accidents caused by equipment failures.

[0004] Existing voiceprint technologies include the use of deep learning, such as residual neural networks, convolutional neural networks, recurrent neural networks, etc. to perform end-to-end modeling and classification of sound signals. Although deep learning has shown excellent performance, the cost of neural networks in terms of computing power, memory or energy consumption is also very high, especially now that the industry's demand for accuracy is getting higher and higher, the scale of the neural network used is getting larger and larger, and it is impossible to deploy too large a model on a resource-constrained hardware platform.

[0005] To solve this problem, researchers have proposed various model compression methods, such as model pruning technology, which can remove unimportant connections or nodes in the network, thereby reducing the number of model parameters and the amount of calculation. Among them, pruning based on weight value thresholds is one of the common pruning technology methods. Its workflow is to set the node weights whose absolute values ​​are less than the threshold to zero according to a pre-set threshold, thereby achieving pruning.

[0006] However, when pruning based on the weight threshold, it is necessary to manually select the appropriate weight threshold, and the pruning result has strong uncertainty; and when pruning based on the weight threshold, since only the weight value is considered, other information of the node is not considered, it is very likely that important nodes with small weight values ​​but large gradient values ​​will be pruned, and the degree of pruning cannot be accurately controlled. Summary of the invention

[0007] The present invention provides a switch cabinet voiceprint fault detection method based on a deep neural network, which can solve the problem in the prior art that a pruning strategy based on weight values ​​requires artificially setting thresholds and cannot accurately control the degree of pruning.

[0008] The present invention provides a switch cabinet voiceprint fault detection method based on a deep neural network, comprising:

[0009] Collect the observed voiceprint signals of the switch cabinet and build a data set;

[0010] Construct an initial residual neural network architecture for switch cabinet voiceprint fault detection, input the data set into the initial residual neural network architecture for training, and obtain the initial residual neural network;

[0011] The weight values ​​and gradient values ​​of all nodes of the residual module in the initial residual neural network are collected, and the k-means clustering method is used to divide all nodes of the residual module into different classes according to the weight values ​​and gradient values ​​of all nodes of the residual module;

[0012] Calculate the size of each class center, set all the node weights in the class to which the smallest class center belongs to 0, and obtain the pruned residual neural network;

[0013] The data set is input into the pruned residual neural network for training to obtain the final residual neural network, and the voiceprint data of the switch cabinet to be detected is input into the final residual neural network for fault detection.

[0014] Furthermore, collecting the observed voiceprint signal of the switch cabinet and constructing the data set includes:

[0015] Use recording equipment to obtain the voiceprint data of the switch cabinet and construct the original data set;

[0016] Extract the feature vector of each sample data in the original data set;

[0017] The feature vectors of each sample data are sorted into a new data set, and each feature vector in the new data set represents the feature information of a sample.

[0018] Furthermore, extracting the feature vector of each sample data in the original data set includes:

[0019] Use Mono nonlinear hybrid model to denoise voiceprint data;

[0020] Use the generalized S transform to transform the denoised voiceprint data to obtain the time-frequency matrix;

[0021] Principal component analysis was used to extract eigenvectors from the time-frequency matrix.

[0022] Furthermore, the construction of a residual neural network for switch cabinet voiceprint fault detection includes:

[0023] The input layer is used to receive the input voiceprint feature vector;

[0024] The residual module is used for feature extraction. The residual module is composed of several residual blocks connected in series. Each residual block contains a main path and a jump connection. The main path is used to learn the features of the input data, including convolutional layers and activation functions. The jump connection is used to transfer information across layers, bypassing the main path and directly connecting the input voiceprint feature vector to the output.

[0025] A global average pooling layer, which is used to convert the output feature map of the last residual module into a feature vector of fixed length;

[0026] The fully connected layer is used to establish a mapping relationship between the feature vector of the global average pooling layer and the final output category;

[0027] The Softmax layer is used to output the category probability of the voiceprint feature vector.

[0028] Furthermore, the k-means clustering method is used to divide all nodes of the residual module into different classes, including:

[0029] S1. Perform standardization preprocessing on the weight value and gradient value of each node;

[0030] S2. Determine the number of clusters K according to the silhouette coefficient;

[0031] S3. Randomly select K nodes as the initial cluster centers;

[0032] S4. Calculate the distances between all nodes and K cluster centers, and assign all nodes to the class to which the cluster center closest to them belongs;

[0033] S5. Take the center of each class as the new cluster center;

[0034] S6. Repeat steps S4 and S5 until the cluster center no longer changes significantly.

[0035] Further, determining the number of clusters K according to the silhouette coefficient includes:

[0036] Different k values ​​(k = 3, 4, 5, 6) are used to cluster the data and four corresponding clustering results are obtained;

[0037] Calculate the silhouette coefficient for each clustering result:

[0038]

[0039]

[0040] in,

[0041] s k is the silhouette coefficient corresponding to the clustering result;

[0042] is the silhouette coefficient of the ith node;

[0043] is the average distance between the ith node and all other nodes of the same type;

[0044] It is the minimum value of the distance between the i-th node and other different classes;

[0045] Yes The number with the largest median value;

[0046] The k value with the maximum silhouette coefficient is taken as the number of clusters K.

[0047] Furthermore, the calculation of the distances between all nodes and K cluster centers includes:

[0048]

[0049] in,

[0050] A i is the i-th node, u j is the jth cluster center, j∈{1,2,…,K}, d ij is the distance from the i-th node to the j-th cluster center;

[0051] The i-th node is A The weight value and gradient value of i;

[0052] are the jth cluster center u j The weight value and gradient value of .

[0053] Furthermore, the calculation of the size of each class center includes:

[0054]

[0055] in,

[0056] U j is the jth cluster center after clustering is completed, j∈{1,2,…,K};

[0057] is the jth cluster center U j The weight value and gradient value of .

[0058] The embodiment of the present invention provides a switch cabinet voiceprint fault detection method based on a deep neural network. Compared with the prior art, the beneficial effects thereof are as follows:

[0059] The present invention clusters all nodes of the residual module in the initial residual neural network according to the weight value and gradient value of the node, classifies nodes with similar weight value and gradient value into one category, and then prunes according to the k-means clustering result, eliminating the uncertainty of artificially determining the threshold in the pruning strategy based on the weight value. In addition, since the clustering result can reflect the contribution of different types of nodes to the performance of the residual neural network, the nodes in the category with the smallest cluster center also contribute the least to the performance of the residual neural network. By pruning this type of low-contribution nodes, the degree of pruning can be accurately controlled to avoid pruning important nodes with small weight values ​​but large gradient values ​​that affect network performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0061] In the attached picture:

[0062] Figure 1 It is a flow chart of pruning according to the k-means clustering result of a switch cabinet voiceprint fault detection method based on a deep neural network proposed by the present invention;

[0063] Figure 2 It is a schematic diagram of pruning according to the k-means clustering result of a switch cabinet voiceprint fault detection method based on a deep neural network proposed by the present invention;

[0064] Figure 3 It is a schematic diagram of pruning according to a weight threshold value of a switch cabinet voiceprint fault detection method based on a deep neural network proposed by the present invention;

[0065] Figure 4 It is a schematic diagram of a residual module of a switch cabinet voiceprint fault detection method based on a deep neural network proposed in the present invention. DETAILED DESCRIPTION

[0066] The technical solutions in the embodiments of the present invention are described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. However, it should be understood that the protection scope of the present invention is not limited by the specific implementation methods.

[0067] Example 1

[0068] A switch cabinet voiceprint fault detection method based on deep neural network specifically includes the following steps:

[0069] Step 1: Collect the observed voiceprint data of the switch cabinet, including the observed voiceprint data in normal and fault states, divide the continuous observed voiceprint data into voiceprint segments, classify different types of voiceprint segments, and construct the observed voiceprint data set of the switch cabinet, which specifically includes:

[0070] Step 1.1: Build the original data set, including:

[0071] Use high-quality recording equipment to record the continuous observation voiceprint data generated during the operation of the switchgear, including the observation voiceprint data of the switchgear in normal and fault states;

[0072] The audio analysis tool Praat-Py is used to segment the continuous observed voiceprint data into voiceprint segments, and normal and fault labels are set for different types of observed voiceprint data to classify them;

[0073] The collected data is divided into training set, validation set and test set, with the division ratio being 70% training set, 15% validation set and 15% test set.

[0074] Step 1.2: Extract the feature vector of each data sample, including the following steps:

[0075] Step 1.2.1: Use the Mono nonlinear hybrid model to perform denoising operations on the collected observation voiceprint data to remove redundant information and interference, which helps to improve the accuracy of subsequent feature extraction, including:

[0076] Step 1.2.1.1, using short-time Fourier transform to convert the observed voiceprint signal into the frequency domain, and extract the spectrum of the observed voiceprint signal;

[0077] Step 1.2.1.2, perform spectrogram decomposition on the spectrum of the observed voiceprint signal. The spectrum of the observed voiceprint signal will be decomposed into a source spectrum non-negative matrix W and a mixing coefficient non-negative matrix H, where each column of the source spectrum non-negative matrix W represents the energy distribution of a source signal in the frequency domain, and each row of the mixing coefficient non-negative matrix H represents the mixing coefficient of a time period. These mixing coefficients are used to describe the contribution of each source signal to the observed voiceprint signal;

[0078] Step 1.2.1.3, design the objective function, minimize the objective function by gradient descent method, and obtain the non-negative matrix of the target source spectrum that minimizes the objective function and the target mixing coefficient non-negative matrix

[0079] Step 1.2.1.4: Transform the target source spectrum into a non-negative matrix by multiplication inverse spectrum transformation and the target mixing coefficient non-negative matrix Perform product reconstruction to obtain the spectrum of the switch cabinet voiceprint signal after noise separation;

[0080] Step 1.2.1.5, perform inverse short-time Fourier transform on the spectrum of the switch cabinet voiceprint signal after noise separation, and convert the spectrum into a time-domain voiceprint signal. The time-domain voiceprint signal obtained at this time is the denoised voiceprint signal.

[0081] Step 1.2.2: Use the generalized S transform to transform the denoised switch cabinet voiceprint, convert the sound signal from the time domain to the time-frequency domain, and obtain the time-frequency matrix, which specifically includes:

[0082] Step 1.2.2.1, select the Gaussian window function to process the voiceprint signal in sections. The Gaussian window function is used to suppress spectrum leakage so that the signal is stable in each time period;

[0083] Step 1.2.2.2, divide the denoised voiceprint signal into small frames, where the length of each small frame is usually a fixed value, such as 20 milliseconds;

[0084] Step 1.2.2.3, apply the selected window function to each small frame, multiply the time domain signal by the window function weight, and reduce the discontinuity caused by the end of the frame;

[0085] Step 1.2.2.5, perform a generalized S transform on each small frame, and integrate the transformed generalized S transform signals to form a time-frequency matrix. The rows of the time-frequency matrix represent time, the columns represent frequency, and each element of the matrix represents the energy value at a specific time and frequency.

[0086] Step 1.2.3: Use principal component analysis (PCA) to extract eigenvectors from the time-frequency matrix and obtain key features in the switch cabinet voiceprint data, including:

[0087] Step 1.2.3.1. Take the time-frequency matrix as input data, where each row represents a time period and each column represents a frequency;

[0088] Step 1.2.3.2: Standardize the time-frequency matrix by subtracting the column mean from each column and dividing by the standard deviation, so that the mean of each feature is 0 and the variance is 1;

[0089] Step 1.2.3.3, calculate the covariance matrix of the standardized time-frequency matrix to describe the linear correlation between different features;

[0090] Step 1.2.3.4: Perform eigenvalue decomposition on the covariance matrix to obtain the eigenvalues ​​and corresponding eigenvectors. The eigenvectors represent the direction of the maximum variance in the data, also known as principal components.

[0091] Step 1.2.3.5: According to the size of the eigenvalue, select the largest k eigenvectors as the retained features;

[0092] Step 1.2.3.5: Project the standardized time-frequency matrix onto the selected k eigenvectors to obtain the reduced-dimensional feature representation, where each row represents a time period and each column represents a retained feature.

[0093] Step 1.3: Build a new dataset, including:

[0094] The feature vector of each sample is organized into a new data set, which is composed of the feature vectors of the original data samples, and each feature vector represents the feature information of a sample.

[0095] Step 2: Construct the initial residual neural network

[0096] The residual neural network consists of multiple residual blocks, each of which includes a convolutional layer, a batch normalization layer, and a skip connection. By stacking these residual blocks and passing through appropriate pooling and fully connected layers, the input data can be classified. The constructed residual neural network specifically includes:

[0097] Input layer: used to receive the input voiceprint feature vector.

[0098] Residual block: The core component of the residual neural network is the residual block, which is used to solve the gradient vanishing and gradient exploding problems in deep networks. A residual block consists of two main parts: the main path and the skip connection; the main path includes a series of convolutional layers and batch normalization layers for feature extraction of the input; the skip connection is used to transfer information across layers, directly bypassing the main path and adding the input data directly to the output of the residual block. This skip connection allows the network to learn residual information, making it easier to optimize and train deep networks.

[0099] Global average pooling layer: At the end of the residual block, a global average pooling layer is usually used to compress the spatial dimension of the feature map into a one-dimensional vector; the global average pooling layer averages all pixel values ​​on each feature map to obtain a feature vector of fixed length.

[0100] The fully connected layer is used to establish a mapping relationship between the output of the global average pooling layer and the final output category.

[0101] The Softmax layer is used to output the category probability of the voiceprint feature vector.

[0102] Step 3: Train the initial residual neural network, including:

[0103] The switch cabinet voiceprint signal feature vector in the training set is input into the constructed residual neural network for training, and the parameters of the residual neural network are updated through the back propagation algorithm using the cross entropy loss function and the stochastic gradient descent method. Specifically, it includes:

[0104] Step 3.1: Initialize the parameters of the residual neural network using random initialization.

[0105] Step 3.2: Use the cross entropy loss function as the loss function of the initial residual neural network.

[0106] The meaning of the cross entropy loss function is to measure the performance of the model in the classification task by calculating the difference between the true label and the model prediction: when the predicted result is consistent with the true label, the value of the loss function is small, indicating that the model's prediction is accurate; when the predicted result is inconsistent with the true label, the value of the loss function is large, indicating that the model's prediction is wrong. By minimizing the cross entropy loss function, the model can adjust parameters during the training process so that the model can better classify voiceprint data. The cross entropy loss function can be expressed as the following mathematical formula:

[0107]

[0108] in:

[0109] L represents the cross entropy loss function;

[0110] y is the real label vector, usually a one-hot encoded vector, used to represent the category of voiceprint data;

[0111] is the probability vector predicted by the model, where each element represents the probability that the voiceprint data belongs to a certain category, y and The dimensions are usually the same, which is the number of categories N;

[0112] N is the number of categories. In the present invention, there are 2 categories of voiceprint data.

[0113] Step 3.3: Select an optimization algorithm to update the model parameters and set the learning rate and other hyperparameters of the residual neural network. The specific steps of the iterative training process are as follows:

[0114] Step 3.3.1, randomly select a sample from the training data as the sample of the current iteration;

[0115] Step 3.3.2: Calculate the predicted output of the sample based on the current model parameters and complete the forward propagation;

[0116] Step 3.3.3. Compare the predicted output of the sample with the true label and calculate the value of the cross entropy loss function.

[0117] Step 3.3.4: According to the loss function, calculate the gradient of the parameters relative to the loss, and pass the gradient from the output layer to the input layer through the chain rule and back propagation algorithm;

[0118] Step 3.3.5: Update the model parameters according to the gradient information and learning rate settings. In stochastic gradient descent SGD, the parameter update formula is:

[0119] θ t+1 =θ t -α·g t (2)

[0120] in,

[0121] θ t represents the parameters of the tth iteration;

[0122] α represents the learning rate;

[0123] g t Represents the gradient of the loss function with respect to the parameters;

[0124] Step 3.3.6: Repeat steps 3.3.1 to 3.3.5 until the specified number of iterations is reached or convergence conditions are met;

[0125] Step 3.3.7: Input the samples in the test set, calculate the accuracy, precision, and recall of the residual neural network in the test set, and evaluate the performance indicators of the model on unseen samples;

[0126] Step 3.3.8: According to the feedback of model performance, adjust the hyperparameters such as learning rate and regularization parameter, and retrain and evaluate until the expected performance requirements are met, save the trained model, and obtain the initial residual neural network.

[0127] Step 4: Cluster all nodes of the residual module in the trained initial residual neural network.

[0128] Clustering divides the nodes of the residual module in the residual neural network into different classes. The nodes in each class have similar weight values ​​and gradient change trends, which helps to analyze the role and importance of different nodes and help understand the structure and performance of the network. Since nodes with similar weight values ​​and gradient change trends are classified into the same class, the pruning strategy of pruning low-impact nodes can be determined based on the clustering results, thereby optimizing the structure of the network and reducing redundancy and computational costs. The specific steps include:

[0129] Step 4.1. Data preparation

[0130] Get the weight and gradient values ​​of each node of the residual module from the trained residual neural network:

[0131]

[0132] in,

[0133] A i is the i-th node of the residual module in the trained residual neural network;

[0134] The i-th node A is i Weight value and gradient value of ;

[0135] n is the total number of nodes in the residual module of the trained residual neural network.

[0136] Step 4.2: Data preprocessing

[0137] Before k-means clustering, the weight values ​​and gradient values ​​of the nodes need to be standardized and preprocessed to ensure the consistency and accuracy of the data:

[0138]

[0139]

[0140] in,

[0141] w i '、g i ' are the weight value and gradient value of the i-th node after standardization;

[0142] w min , g min They are the minimum weight value and the minimum gradient value respectively;

[0143] w max , g max are the maximum weight value and the maximum gradient value respectively.

[0144] Step 4.3: Determine the number of clusters K

[0145] It is unknown how many clusters the nodes are clustered into. The silhouette coefficient can be used to quantify the compactness and separation of the clustering results, thereby helping to select the optimal number of clusters K, including:

[0146] Step 4.3.1: Cluster the data using different k values ​​(k = 3, 4, 5, 6) to obtain four corresponding clustering results;

[0147] Step 4.3.2: For each clustering result, the silhouette coefficient of the corresponding clustering result is obtained by calculating the similarity of all nodes with their class and the dissimilarity with other classes:

[0148]

[0149]

[0150] in,

[0151] s k is the overall silhouette coefficient of the clustering result when all nodes are divided into k categories;

[0152] is the silhouette coefficient of the ith node when all nodes are divided into k categories;

[0153] is the average distance between the ith node and all other nodes of the same class when all nodes are divided into k classes;

[0154] It is the minimum value of the distance between the i-th node and other different classes when all nodes are divided into k classes;

[0155] Yes The number with the largest median value.

[0156] Step 4.3.2, compare the overall silhouette coefficients under different k values, and select the k value with the largest silhouette coefficient as the number of clusters K:

[0157] K = argmax(s k ) (6)

[0158] Among them, argmin(s k ) means that the silhouette coefficient s k The largest k.

[0159] Step 4.4: Initialize cluster centers

[0160] K nodes are randomly selected as the initial cluster centers. Each cluster center represents the center point of a different class and is used to represent the position of the class. It is calculated by the mean of all nodes in the class.

[0161] Step 4.5: Assign the remaining nodes to the nearest cluster center

[0162] Calculate the distance between each node and each cluster center:

[0163]

[0164] in,

[0165] A i is the ith node, The i-th node A is i Weight value and gradient value of ;

[0166] u jis the jth cluster center, are the jth cluster center u j The weight value and gradient value of , j∈{1,2,…,K};

[0167] Assign all nodes to the cluster to which their closest cluster center belongs.

[0168] Step 4.6: Update cluster center points

[0169] For each class, calculate the average value of all nodes in the class and use the average value as the new cluster center.

[0170]

[0171]

[0172] in,

[0173] u j ' is the new cluster center, is the weight value and gradient value of the new cluster center;

[0174] is u j The weight and gradient values ​​of the nodes in the class to which they belong;

[0175] is u j The number of nodes in the class to which it belongs.

[0176] Step 4.7: Repeat steps 4.5 and 4.6 until the cluster center no longer changes significantly.

[0177] Step 5: Prune the residual neural network according to the clustering results, including:

[0178] Step 5.1, calculate the size of each final cluster center:

[0179]

[0180] in,

[0181] U j is the jth cluster center after clustering is completed, j∈{1,2,…,K};

[0182] It's U j Weight value and gradient value of ;

[0183] It is the distance from the jth cluster center to the point (0,0) after clustering is completed.

[0184] Step 5.2: Set the node weight value in the class to which the cluster center closest to point (0,0) belongs to to 0.

[0185] Step 6: Input the data set into the pruned residual neural network to train it, obtain the final residual neural network, and input the voiceprint data of the switch cabinet to be detected into the final residual neural network for fault detection.

[0186] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A switch cabinet voiceprint fault detection method based on deep neural network, It is characterized in that include: Collect the observed voiceprint signals of the switch cabinet and build a data set; Construct an initial residual neural network architecture for switch cabinet voiceprint fault detection, input the data set into the initial residual neural network architecture for training, and obtain the initial residual neural network; The weight values ​​and gradient values ​​of all nodes of the residual module in the initial residual neural network are collected, and the k-means clustering method is used to divide all nodes of the residual module into different classes according to the weight values ​​and gradient values ​​of all nodes of the residual module; Calculate the size of each class center, set all the node weights in the class to which the smallest class center belongs to 0, and obtain the pruned residual neural network; The data set is input into the pruned residual neural network for training to obtain the final residual neural network, and the voiceprint data of the switch cabinet to be detected is input into the final residual neural network for fault detection.

2. According to the switch cabinet voiceprint fault detection method based on deep neural network according to claim 1, It is characterized in that The collecting of the observed voiceprint signal of the switch cabinet and constructing the data set includes: Use recording equipment to obtain the voiceprint data of the switch cabinet and construct the original data set; Extract the feature vector of each sample data in the original data set; The feature vectors of each sample data are sorted into a new data set, and each feature vector in the new data set represents the feature information of a sample.

3. According to the switch cabinet voiceprint fault detection method based on deep neural network according to claim 2, It is characterized in that The step of extracting a feature vector of each sample data in the original data set includes: Use Mono nonlinear hybrid model to denoise voiceprint data; Use the generalized S transform to transform the denoised voiceprint data to obtain the time-frequency matrix; Principal component analysis was used to extract eigenvectors from the time-frequency matrix.

4. According to the switch cabinet voiceprint fault detection method based on deep neural network according to claim 1, It is characterized in that The method of constructing a residual neural network for switch cabinet voiceprint fault detection includes: The input layer is used to receive the input voiceprint feature vector; The residual module is used for feature extraction. The residual module is composed of several residual blocks connected in series. Each residual block contains a main path and a jump connection. The main path is used to learn the features of the input data, including convolutional layers and activation functions. The jump connection is used to transfer information across layers, bypassing the main path and directly connecting the input voiceprint feature vector to the output. A global average pooling layer, which is used to convert the output feature map of the last residual module into a feature vector of fixed length; The fully connected layer is used to establish a mapping relationship between the feature vector of the global average pooling layer and the final output category; The Softmax layer is used to output the category probability of the voiceprint feature vector.

5. According to the switch cabinet voiceprint fault detection method based on deep neural network according to claim 1, It is characterized in that The k-means clustering method is used to divide all nodes of the residual module into different classes, including: S1. Perform standardization preprocessing on the weight value and gradient value of each node; S2. Determine the number of clusters K according to the silhouette coefficient; S3. Randomly select K nodes as the initial cluster centers; S4. Calculate the distances between all nodes and K cluster centers, and assign all nodes to the class to which the cluster center closest to them belongs; S5. Take the center of each class as the new cluster center; S6. Repeat steps S4 and S5 until the cluster center no longer changes significantly.

6. According to claim 5, a switch cabinet voiceprint fault detection method based on deep neural network, It is characterized in that Determining the number of clusters K according to the silhouette coefficient includes: Different k values ​​(k = 3, 4, 5, 6) are used to cluster the data and four corresponding clustering results are obtained; Calculate the silhouette coefficient for each clustering result: in, s k is the silhouette coefficient corresponding to the clustering result; is the silhouette coefficient of the ith node; is the average distance between the ith node and all other nodes of the same type; It is the minimum value of the distance between the i-th node and other different classes; Yes The number with the largest median value; The k value with the maximum silhouette coefficient is taken as the number of clusters K.

7. According to claim 5, a switch cabinet voiceprint fault detection method based on deep neural network, It is characterized in that The calculation of the distances between all nodes and K cluster centers includes: in, A i is the i-th node, u j is the jth cluster center, j∈{1,2,…,K}, d ij is the distance from the i-th node to the j-th cluster center; The i-th node A is i Weight value and gradient value of ; are the jth cluster center u j The weight value and gradient value of .

8. According to claim 1, a switch cabinet voiceprint fault detection method based on deep neural network, It is characterized in that The calculation of the size of each class center includes: in, U j is the jth cluster center after clustering is completed, j∈{1,2,…,K}; is the jth cluster center U j The weight value and gradient value of .

Citation Information

Patent Citations

  • Deep neural network compression method considering matrix correlation

    CN107729999A

  • Cell image segmentation method based on improved SLIC algorithm

    CN113744241A