A method, device, equipment and storage medium for identifying defects in electric power equipment
By optimizing the partial discharge state characteristic parameters and constructing a power equipment defect identification model library, the problem of inaccurate partial discharge identification of power equipment in the existing technology is solved, and more efficient and accurate defect type identification is achieved.
Patent Information
- Application Number
- CN202211383622.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-11-07
AI Technical Summary
The existing technology has inaccuracy problems in pattern recognition of partial discharge ultrasonic signals of power equipment, and it is difficult to effectively identify the types of partial discharge defects in power equipment.
By acquiring the original voice signal, filtering and generating ultrasonic signals, extracting partial discharge state characteristic parameters, and building a power equipment defect identification model library based on the optimized characteristic parameters, the characteristic parameters of the measured signals are matched with the model library to determine the defect type.
It improves the identification efficiency and accuracy of partial discharge defect types in power equipment, simplifies the feature dimension, and enhances the ability to identify power equipment defects.
Smart Images

Figure CN115659248B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power equipment defect identification, and in particular to a power equipment defect identification method, device, equipment and storage medium. Background Art
[0002] Power transformers and reactors are key equipment in the power grid, and transformer status assessment and fault diagnosis are of great significance. When a transformer is subjected to impact and internal insulation defects occur, partial discharge will occur. Detecting partial discharge can characterize insulation performance.
[0003] The existing pattern recognition methods for partial discharge ultrasonic signals include phase spectrum method, frequency component method and time of flight method; among them, the phase spectrum method is similar to the diagnostic idea of the traditional electrical method, extracting the power frequency phase and pulse peak of the ultrasonic pulse, drawing the PRPD (Phase Resolved Partial Discharge) spectrum, and judging the discharge type based on the spectrum shape characteristics of the partial discharge ultrasonic signal, using image similarity analysis, or neural network and other methods. Since the ultrasonic signal lasts for a long time, up to the ms (milliseconds) level, a large number of oscillations and refraction and reflection signals are superimposed on each other, so its phase spectrum is very different from the phase spectrum of the electrical signal, and the difference in the ultrasonic phase spectrum of different defects is not obvious, so it is not suitable for pattern recognition of discharge type based on the phase spectrum of the ultrasonic signal.
[0004] The frequency component method is used to detect and identify internal discharge defects in equipment such as transformers and GIS (Geographic Information System). The amplitude of the ultrasonic signal and the size of the 50 / 100Hz (Hertz) component can be used to qualitatively analyze the type of defects. For example, corona discharge has a significant power frequency cycle correlation, while positive and negative half-cycle symmetrical discharge has a significant 100Hz correlation, while non-discharge signals mostly show phase-independent characteristics. However, this method cannot make a detailed classification of the types of discharge defects.
[0005] The time-of-flight method is mainly applicable to the pattern recognition of GIS free metal particle defects. Free foreign particles in the GIS will jump to a certain extent under the action of force. Each time the particles hit the shell, a transient pulse of a certain width will be generated. The ultrasonic partial discharge tester can detect the above ultrasonic signal and present a special flight characteristic spectrum in the pulse mode, which is called the pulse spectrum. The ultrasonic partial discharge detection time domain diagram reflects the movement behavior of foreign particles in the GIS equipment. By extracting the time difference and pulse amplitude information in the ultrasonic partial discharge detection time domain diagram, the pulse spectrum composed of (Δt1, Δt2, Δt3,) on the x-axis and (h1, h2, h3,) on the y-axis is called the flight time diagram. The flight time reflects the jumping height of foreign particles to a certain extent, and the amplitude reflects the degree of partial discharge of foreign particles to a certain extent. Based on the two-dimensional image of the flight time spectrum, the discharge type is identified by various pattern recognition methods such as neural network, support vector machine, fuzzy clustering, etc. The type diagnosis based on the flight time spectrum is mainly aimed at free particle defects. For other types of insulation defects, the fault diagnosis effect is not obvious and the universality is poor. Summary of the invention
[0006] Therefore, the technical problem to be solved by the present invention is to overcome the defect of inaccurate identification of partial discharge of power equipment by the existing pattern recognition method of partial discharge ultrasonic signal, thereby providing a method and device for identifying defects of power equipment.
[0007] An embodiment of the present invention provides a method for identifying defects in electric power equipment, comprising:
[0008] Acquire an original voice signal, filter the original voice signal, and generate an ultrasonic signal;
[0009] Extracting characteristic parameters of the local discharge state in the ultrasonic signal, and optimizing the characteristic parameters of the local discharge state;
[0010] Using the optimized partial discharge state characteristic parameters to construct a power equipment defect recognition model library; wherein the power equipment defect recognition model library includes defect detection models corresponding to different power equipment defect types;
[0011] Acquire a measured signal, perform preprocessing and feature parameter extraction on the measured signal, and generate measured feature parameters;
[0012] The measured characteristic parameters are matched with the defect detection model in the electric power equipment defect identification model library, and the defect type of the electric power equipment is determined based on the matching result.
[0013] The present invention provides a method for identifying defects in electric equipment, which optimizes characteristic parameters of partial discharge states, and constructs a model library for identifying defects in electric equipment based on the optimized characteristic parameters of partial discharge states. The method uses characteristic parameters of measured signals to infer which Gaussian mixture model in the model library is used to determine the defect type, thereby streamlining the dimension of characteristic quantities and improving the efficiency and accuracy of identifying the types of partial discharge defects in electric equipment.
[0014] Optionally, the partial discharge state characteristic parameters include:
[0015] Initial frame length, initial frequency adjustment coefficient, initial number of filters and initial number of Gaussian components.
[0016] Optionally, the extracting the local discharge state characteristic parameter in the ultrasonic signal and optimizing the local discharge state characteristic parameter includes:
[0017] Encoding the initial frame length, the initial frequency adjustment coefficient, the initial number of filters and the initial number of Gaussian components to determine a plurality of Gaussian mixture models;
[0018] Determine a multidimensional feature vector based on the ultrasonic signal, and determine a model parameter sequence corresponding to a plurality of Gaussian mixture models based on the multidimensional feature vector;
[0019] Determine a plurality of posterior probabilities based on the multidimensional feature vector and the model parameter sequence, and select the largest posterior probability as the fitness function value;
[0020] The fitness function value is used as the genetic weight, and the initial frame length, the initial frequency adjustment coefficient, the initial number of filters and the initial number of Gaussian components are subjected to cross-mutation processing to generate an optimal frame length, an optimal frequency adjustment coefficient, an optimal number of filters and an optimal number of Gaussian components.
[0021] Optionally, the use of the optimized partial discharge state characteristic parameters to construct a power equipment defect recognition model library includes:
[0022] Determine a characteristic parameter of a discharge ultrasonic signal based on the optimal frame length and the optimal frequency adjustment coefficient;
[0023] Determine Gaussian mixture model parameters based on the optimal number of Gaussian components, and perform model training based on the Gaussian mixture model parameters to generate a defect detection model;
[0024] The characteristic parameters of the discharge ultrasonic signal are bound to the defect detection model, and the electric power equipment defect recognition model library is constructed based on the defect detection model.
[0025] Optionally, determining the characteristic parameter of the discharge ultrasonic signal based on the optimal frame length and the optimal frequency adjustment coefficient includes:
[0026] The ultrasonic signal is windowed and framed based on the optimal frame length and the optimal frequency adjustment coefficient to generate a multi-frame defective speech sequence, and based on the multi-frame defective speech sequence, the characteristic parameters of the discharge ultrasonic signal are determined using the optimal number of filters.
[0027] Optionally, preprocessing the measured signal and extracting characteristic parameters to generate measured characteristic parameters includes:
[0028] The measured signal is subjected to pre-emphasis processing, frame processing and windowing processing to generate a multi-frame time domain signal;
[0029] Converting the multi-frame time domain signals into multi-frame linear spectrum signals using a fast Fourier transform algorithm;
[0030] Using a Mel frequency filter bank to convert the multi-frame linear spectrum signal into a Mel frequency spectrum signal;
[0031] The measured characteristic parameters are determined based on the multiple frames of linear spectrum signals and the Mel spectrum signals.
[0032] Optionally, matching the measured characteristic parameter with a defect detection model in the electric power equipment defect recognition model library, and determining the electric power equipment defect type based on the matching result includes:
[0033] The measured characteristic parameters are matched with the discharge ultrasonic signal characteristic parameters corresponding to the defect detection model in the electric equipment defect identification model library using the maximum likelihood estimation algorithm, and the defect detection model corresponding to the discharge ultrasonic signal characteristic parameters that are the same as the measured characteristic parameters is selected to determine the defect type of the electric equipment.
[0034] In a second aspect of the present application, a device for identifying defects in electric power equipment is also proposed, comprising:
[0035] A screening module, used for acquiring an original voice signal, screening the original voice signal, and generating an ultrasonic signal;
[0036] An optimization module, used for extracting characteristic parameters of the partial discharge state in the ultrasonic signal and optimizing the characteristic parameters of the partial discharge state;
[0037] A construction module is used to construct a power equipment defect recognition model library using the optimized partial discharge state characteristic parameters; wherein the power equipment defect recognition model library includes defect detection models corresponding to different power equipment defect types;
[0038] A generation module, used for acquiring a measured signal, preprocessing the measured signal and extracting characteristic parameters, and generating measured characteristic parameters;
[0039] The matching module is used to match the measured characteristic parameters with the defect detection model in the power equipment defect identification model library, and determine the power equipment defect type based on the matching result.
[0040] Optionally, the partial discharge state characteristic parameters include:
[0041] Initial frame length, initial frequency adjustment coefficient, initial number of filters and initial number of Gaussian components.
[0042] Optionally, the optimization module includes:
[0043] An encoding unit, used for encoding the initial frame length, the initial frequency adjustment coefficient, the initial number of filters and the initial number of Gaussian components to determine a plurality of Gaussian mixture models;
[0044] a first determining unit, configured to determine a multidimensional feature vector based on the ultrasonic signal, and determine a model parameter sequence corresponding to a plurality of Gaussian mixture models based on the multidimensional feature vector;
[0045] A selection unit, configured to determine a plurality of posterior probabilities based on the multidimensional feature vector and the model parameter sequence, and select the maximum posterior probability as the fitness function value;
[0046] The processing unit is used to use the fitness function value as a genetic weight, perform cross-mutation processing on the initial frame length, the initial frequency adjustment coefficient, the initial number of filters and the initial number of Gaussian components, and generate an optimal frame length, an optimal frequency adjustment coefficient, an optimal number of filters and an optimal number of Gaussian components.
[0047] Optionally, the building block includes:
[0048] A second determination unit, configured to determine a characteristic parameter of a discharge ultrasonic signal based on the optimal frame length and the optimal frequency adjustment coefficient;
[0049] A training unit, used to determine Gaussian mixture model parameters based on the optimal number of Gaussian components, and perform model training based on the Gaussian mixture model parameters to generate a defect detection model;
[0050] A construction unit is used to bind the characteristic parameters of the discharge ultrasonic signal with the defect detection model, and to construct the electric power equipment defect recognition model library based on the defect detection model.
[0051] Optionally, the second determination unit is also used to window and frame the ultrasonic signal based on the optimal frame length and the optimal frequency adjustment coefficient to generate a multi-frame defective speech sequence, and based on the multi-frame defective speech sequence, determine the characteristic parameters of the discharge ultrasonic signal using the optimal number of filters.
[0052] Optionally, the generating module includes:
[0053] A first generating unit, configured to perform pre-emphasis processing, frame processing and windowing processing on the measured signal to generate a multi-frame time domain signal;
[0054] A first conversion unit, configured to convert the multi-frame time domain signals into multi-frame linear spectrum signals by using a fast Fourier transform algorithm;
[0055] A second conversion unit, configured to convert the multi-frame linear spectrum signals into Mel spectrum signals by using a Mel frequency filter bank;
[0056] The second generating unit is used to determine the measured characteristic parameter based on the multi-frame linear spectrum signal and the Mel spectrum signal.
[0057] Optionally, the matching module is also used to match the measured characteristic parameters with the discharge ultrasonic signal characteristic parameters corresponding to the defect detection model in the power equipment defect identification model library using a maximum likelihood estimation algorithm, and select the defect detection model corresponding to the discharge ultrasonic signal characteristic parameters that are the same as the measured characteristic parameters to determine the defect type of the power equipment.
[0058] In the third aspect of the present application, a computer device is also proposed, including a processor and a memory, wherein the memory is used to store a computer program, the computer program includes a program, and the processor is configured to call the computer program to execute the method of the first aspect above.
[0059] In a fourth aspect of the present application, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, and the computer program is executed by a processor to implement the method of the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0061] Figure 1This is a flow chart of a method for identifying defects in electric power equipment in Embodiment 1 of the present invention;
[0062] Figure 2 This is a schematic diagram of the training and identification process of the power equipment defect identification model library in Example 1 of the present invention;
[0063] Figure 3 Schematic diagram of an original voice signal before being screened by a power failure detection algorithm in Embodiment 1 of the present invention;
[0064] Figure 4 This is a schematic diagram of an ultrasonic signal after being screened by a power failure detection algorithm in Example 1 of the present invention;
[0065] Figure 5 This is a flowchart of step S102 in Example 1 of the present invention;
[0066] Figure 6 Schematic diagram of the crossover mutation of the mth and nth chromosomes of the i-th generation population in Example 1 of the present invention;
[0067] Figure 7 This is a flowchart of step S103 in Example 1 of the present invention;
[0068] Figure 8 Schematic diagram of the MFCC extraction steps in Example 1 of the present invention;
[0069] Fig. 9 This is a flowchart of step S104 in Example 1 of the present invention;
[0070] Fig.10 This is a principle block diagram of an electric power equipment defect identification device in Example 2 of the present invention. DETAILED DESCRIPTION
[0071] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. 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.
[0072] In the description of the present invention, it should be noted that the terms “first”, “second” and “third” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0073] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0074] Example 1
[0075] This embodiment provides a method for identifying defects in electric power equipment, such as Figure 1-2 As shown, the following steps are included:
[0076] S101. Acquire an original voice signal, filter the original voice signal, and generate an ultrasonic signal.
[0077] Specifically, the steps of using the power failure detection algorithm to screen the original speech signal are as follows: divide the original speech signal X(n) into many small segments, distinguish the speech segments from the non-speech segments through endpoint detection, and mark the start time and end time of each speech segment in the signal, and delete the non-speech segment (silence or noise) according to the mark. The endpoint is the critical point between the speech segment and the non-speech segment.
[0078] For example, Figure 3 As shown in the figure, the single-channel ultrasonic signal time-frequency diagram of the speaker speaking the numbers 1 to 10 at intervals. The ultrasonic signal has 20 endpoints. The endpoint detection operation needs to compare whether the energy of each frame is greater than twice the background noise energy. If it is true, the frame is retained. If not, the frame is deleted to generate the filtered ultrasonic signal, as shown in Figure 4 shown.
[0079] S102: extracting characteristic parameters of the local discharge state from the ultrasonic signal, and optimizing the characteristic parameters of the local discharge state.
[0080] Specifically, the above-mentioned partial discharge state characteristic parameters include: initial frame length, initial frequency adjustment coefficient, initial filter number and initial Gaussian component number.
[0081] Furthermore, the characteristic parameters of the partial discharge state of the transformer are extracted based on the ultrasonic signal, among which the initial frame length, the initial frequency adjustment coefficient, the initial number of filters (i.e., the dimension of the initial characteristic parameters) and the initial number of Gaussian components are the core parameters that determine the computational efficiency and recognition accuracy of the recognition algorithm. Then, the improved genetic algorithm is used to optimize the characteristic parameters of the partial discharge state of the transformer (e.g., Figure 2 The genetic algorithm optimization model in the paper is used to determine the specific values of the above-mentioned transformer partial discharge state characteristic parameters by taking the recognition accuracy of the recognition system after the transformer partial discharge state characteristic parameters change as the optimization target.
[0082] S103. Construct a power equipment defect recognition model library using the optimized partial discharge state characteristic parameters; wherein the power equipment defect recognition model library includes defect detection models corresponding to different power equipment defect types.
[0083] S104, obtaining a measured signal, preprocessing the measured signal and extracting characteristic parameters to generate measured characteristic parameters.
[0084] Specifically, a Gaussian mixture model is used to transform the problem of matching the test ultrasonic signal with the training ultrasonic signal into a problem of model establishment and probability calculation, and the characteristic parameters of the measured signal are used to infer which Gaussian mixture model in the model library is used to determine the defect type.
[0085] S105: Match the measured characteristic parameters with the defect detection model in the power equipment defect identification model library, and determine the power equipment defect type based on the matching result.
[0086] Specifically, the maximum likelihood estimation algorithm is used to match the above-mentioned measured characteristic parameters with the discharge ultrasonic signal characteristic parameters corresponding to the defect detection model in the above-mentioned power equipment defect identification model library, and the defect detection model corresponding to the discharge ultrasonic signal characteristic parameters that are the same as the above-mentioned measured characteristic parameters is selected to determine the defect type of the above-mentioned power equipment.
[0087] Furthermore, a likelihood function is calculated based on the measured characteristic parameters and the characteristic parameters of the discharge ultrasonic signal corresponding to the defect detection model, and then the logarithmic derivative of the likelihood function is taken, and finally the likelihood function is solved to generate the similarity between the measured characteristic parameters and the characteristic parameters of the discharge ultrasonic signal corresponding to the defect detection model. When the similarity between the two is less than a preset threshold, the defect type of the defect detection model is used as the defect type of the measured signal. When the similarity between the two is greater than the preset threshold, there is no defect detection model matching the measured characteristic parameters in the power equipment defect recognition model library, and a new defect is generated based on the measured characteristic parameters and the corresponding measured signal, and the new defect is stored in the power equipment defect recognition model library.
[0088] The above-mentioned method for identifying defects in power equipment optimizes the characteristic parameters of the partial discharge state, and constructs a power equipment defect identification model library based on the optimized characteristic parameters of the partial discharge state, and uses the characteristic parameters of the measured signal to infer which Gaussian mixture model in the model library is used to determine the defect type, thereby simplifying the dimension of the characteristic quantity and improving the recognition efficiency and accuracy of the partial discharge defect type of the power equipment.
[0089] Preferably, if Figure 5 As shown, in step S102, the local discharge state characteristic parameters in the ultrasonic signal are extracted, and the local discharge state characteristic parameters are optimized, including:
[0090] S1021. Encode the initial frame length, the initial frequency adjustment coefficient, the initial number of filters and the initial number of Gaussian components (number of GMM components) to determine a plurality of Gaussian mixture models.
[0091] Specifically, decimal values are used for encoding, and chromosomes (i.e., Gaussian mixture model parameters) are randomly generated after encoding, and then different Gaussian mixture models are randomly generated based on the chromosomes, where the chromosome Gy can be expressed as: Gy = initial frame length | initial frequency adjustment coefficient | initial filter dimension | initial number of GMM components, where decimal values are used for encoding as shown in Table 1 below.
[0092] Table 1
[0093]
[0094] Furthermore, when decimal values are used for encoding, the steps for selecting the numerical ranges of the initial frame length, the initial frequency adjustment coefficient, the initial number of filters, and the initial number of Gaussian components are as follows:
[0095] (1) Initial frame length: In speech analysis, based on the short-term stability of speech and the duration of phonemes, the frame length is generally selected to be 20 to 50 ms. Ultrasonic signals change faster than audio signals. In accordance with the requirement of short-term stability, the frame length of ultrasound should be several times shorter than that of audio. If the frame length is too long, the data does not meet the requirement of short-term stability. If the frame length is too short, the speech features of the frame are not representative. Therefore, it is necessary to select an appropriate frame length for recognition. Since the analog bandwidth of the ultrasonic acquisition system is 200 kHz, the sampling rate is 1 MS / s, and the data accuracy is 16 bits, considering the efficiency of system data processing, the minimum frame length is 1 ms and the maximum frame length is set to 1 s, that is, 50 power frequency cycles, which fully meets the requirements of covering ultrasonic pulse signals.
[0096] (2) Initial frequency adjustment coefficient: Due to the voiceprint parameters MFCC (Mel Frequency Cepstrum Coefficient) and GFCC (Gamma Frequency Cepstrum Coefficient, gamma frequency cepstrum coefficient) is proposed based on the human hearing characteristics. The human hearing range is 16Hz to 20kHz, and the frequency range of transformer partial discharge ultrasonic signals is 50kHz to 200kHz, so it is necessary to make the ultrasonic signal audible; wherein, the frequency adjustment coefficient refers to the coefficient divided by the sampling frequency, that is, the coefficient multiplied by the time series of the original data. After multiplying with the frequency adjustment coefficient, the sound signal is "stretched", that is, the frequency is reduced by a multiple; the initial frequency adjustment coefficient value range is set based on: the audio file sampling frequency is generally 48kHz, so the maximum frequency adjustment coefficient selected is the quotient of the ultrasonic sampling frequency divided by the audio sampling frequency, which is about 20, and the minimum frequency adjustment coefficient is 1. The physical explanation of the frequency adjustment coefficient of 1 is to extend the human hearing characteristics to 200kHz, the frequency adjustment coefficient of 10 means to reduce the frequency of the ultrasonic signal to the human hearing range, and the frequency adjustment coefficient of 20 means to observe the reduction of the frequency of the partial discharge ultrasonic signal to the human voice frequency range; the frequency adjustment coefficient will affect the determination of the center frequency of the filter group and the filter interval, and also affect the frame length.
[0097] (3) Number of initial filters: Weighted dimensionality reduction refers to evaluating the recognition contribution rate of each dimension after determining the dimension and weighting each dimension according to the evaluation result. During recognition, due to the redundant feature parameter data, the recognition time is long, and some dimensions in the feature parameters do not contribute much to recognition, and may even reduce the recognition rate. Therefore, in order to shorten the recognition time, reduce the data redundancy, and improve the recognition efficiency and effect, it is necessary to reduce the dimension of the feature quantity. The weighted dimensionality reduction of the feature parameter includes determining the appropriate feature dimension and dimensionality reduction; the value range of the initial filter number is set to 2 0 -2 10 , using the binary increment principle of integer powers of 2. According to the current experience in the field of speech processing, this value is generally selected not to exceed 32. In order to further expand the optimization range, the maximum setting is more than 20 times, and the maximum is 1024, which has exceeded the frequency variation range of ultrasound to audible sound and meets the maximum optimization requirements. Among them, the change in the number of filters does not change the number of frames, but changes the number of columns of the coefficient matrix, so that the extraction of the cepstral coefficients of each frame is more refined, and the change in dimension will cause the cepstral value to change.
[0098] (4) Initial number of Gaussian components: The number of Gaussian components of GMM is an important parameter in GMM, which will affect the performance of the recognition system. When the number of components of the model is large, the amount of parameter calculation of each model increases, and the amount of calculation during recognition increases, making the recognition time longer; when the number of Gaussian components is small, the GMM obtained during training cannot effectively describe the voiceprint, which will lead to a decrease in the recognition effect of the system; therefore, in voiceprint recognition, selecting an appropriate number of model components can not only improve the recognition rate of the recognition system, but also reduce the amount of calculation during training and recognition; the algorithm test based on the STM32 chip hardware shows that when the number of Gaussian components is 100, the algorithm execution time reaches 3.82s, resulting in significant delay waiting, so the upper limit of the initial Gaussian component is set to 99.
[0099] S1022. Determine a multidimensional feature vector based on the ultrasonic signal, and determine a model parameter sequence corresponding to a plurality of Gaussian mixture models based on the multidimensional feature vector.
[0100] Specifically, the voiceprint observation sequence corresponding to the original speech signal is X'=x'1,x'2,...,x' f ,...,x' F , the subscript f represents the fth frame in the ultrasonic signal, and there are F frames in total. Then, the sequences with low signal-to-noise ratio in the original ultrasonic signal are screened and eliminated to form the n-dimensional feature vector X corresponding to the ultrasonic signal. Then, the Gaussian distribution parameter model is shown as follows:
[0101]
[0102] Where μ represents the mean of the n-dimensional feature vector, ∑ represents an n×n covariance matrix, x represents the voiceprint signal frame to be identified, which contains a total of n data points, T represents transposition, |∑| is the determinant of ∑, and the element c in the covariance matrix ij The calculation formula is as follows:
[0103] c ij =E[x i -E(x i )][x j -E(x i )]
[0104] Here, E represents mathematical expectation.
[0105] Furthermore, the Gaussian mixture model obtained by linearly superposing k Gaussian distribution parameter models, the model parameter sequence P(x) corresponding to the Gaussian mixture model can be expressed by the following formula:
[0106]
[0107] Where K represents the number of Gaussian distribution parameter models in the Gaussian mixture model, k = 1, 2, ..., K, π k Represents the mixing coefficient, 0≤π k ≤1, and must meet
[0108] S1023. Determine multiple posterior probabilities based on the multidimensional feature vector and the model parameter sequence, and select the largest posterior probability as the fitness function value.
[0109] Specifically, the model parameter sequence is the characteristic parameter extracted from the ultrasonic signal. The posterior probability of the model parameter (chromosome) of a certain Gaussian mixture model is the largest. The posterior probability is taken as the fitness function value S of the corresponding chromosome Gy. The calculation formula is as follows:
[0110]
[0111] Among them, g k represents the kth Gaussian mixture model, P(g k |x) represents the probability that the voiceprint signal frame x to be identified belongs to the kth Gaussian mixture model, P(x|g k ) represents the probability that the kth Gaussian mixture model contains the voiceprint signal frame x to be identified, P(g k ) represents the prior probability.
[0112] Furthermore, let the prior probability P(g k ) are the same, both are 1 / s, and since P(x) is independent of the model and is fixed, the fitness function value S can be expressed as:
[0113] S=arg max 1≤k≤S P(x|g k )
[0114] Furthermore, logarithmic operation is performed on the above formula. Since each frame signal is independent of each other, that is, the observation sequence X is independent, the fitness function value S can be expressed as:
[0115]
[0116] S1024. Using the fitness function value as a genetic weight, the initial frame length, the initial frequency adjustment coefficient, the initial number of filters and the initial number of Gaussian components are cross-mutated to generate an optimal frame length, an optimal frequency adjustment coefficient, an optimal number of filters and an optimal number of Gaussian components.
[0117] Specifically, Figure 6As shown, for each chromosome vector sequence, the initial frame length, initial frequency adjustment coefficient, initial number of filters and initial number of Gaussian components are extracted for crossover mutation operation, the chromosome fitness function value is used as the genetic weight, and the product with the random number Rnd (0-1 uniform distribution) is used as the genetic mutation operator. The above steps are iterated, and the calculation is terminated when the number of iterations or the fitness function value error is <0.01, and the optimal frame length, optimal frequency adjustment coefficient, optimal number of filters and optimal number of Gaussian components are output, and then the optimal Gaussian mixture model is determined based on the optimal frame length, optimal frequency adjustment coefficient, optimal number of filters and optimal number of Gaussian components.
[0118] Preferably, if Figure 7 As shown, in step S103, the optimized partial discharge state characteristic parameters are used to construct a power equipment defect recognition model library, including:
[0119] S1031. Determine characteristic parameters of the discharge ultrasonic signal based on the above-mentioned optimal frame length and the above-mentioned optimal frequency adjustment coefficient.
[0120] Specifically, the ultrasonic signal is windowed and framed based on the optimal frame length and the optimal frequency adjustment coefficient to generate a multi-frame defective speech sequence, and based on the multi-frame defective speech sequence, the characteristic parameters of the discharge ultrasonic signal are determined using the optimal number of filters.
[0121] Furthermore, the ultrasonic signal is framed using the optimal frame length, and the optimal frequency adjustment coefficient is used for windowing to generate a multi-frame defective speech sequence; and based on the principle of the MFCC feature parameter extraction algorithm of the human ear auditory response, some parameters of the multi-frame defective speech sequence are transformed to realize the extraction of the characteristic parameters of the discharge ultrasonic signal, such as Figure 8 As shown in the figure, the extraction steps are as follows: to extract the Mel frequency cepstral coefficient (MFCC), the multi-frame defective speech sequence needs to be subjected to Fourier transform (FFT), the spectrum of the signal is converted into a Mel spectrum through a Mel filter bank, the Mel spectrum is logarithmically operated to improve the robustness of the system, and finally the cepstral is obtained through cosine discrete cosine transform (DCT) to generate the characteristic parameters MFCCs of the discharge ultrasonic signal, where Xi(m) represents the multi-frame defective speech sequence after frame segmentation and windowing.
[0122] S1032. Determine Gaussian mixture model parameters based on the above-mentioned optimal number of Gaussian components, and perform model training based on the above-mentioned Gaussian mixture model parameters to generate a defect detection model.
[0123] The specific GMM contains hidden variables, and the maximum expectation algorithm is used to train the GMM parameters. The three parameters of GMM are: mean, weight and variance. The steps of the maximum expectation algorithm are as follows:
[0124] Step 1: Define the optimal number of Gaussian components as i and determine the mean μ for each component i , weight π i and variance Σ i .
[0125] Step 2: Calculate the data x based on the current parameters of each component l The posterior probability of belonging to the i-th optimal Gaussian component is:
[0126]
[0127] In the above formula, z li Represents data x l The total probability of belonging to all optimal Gaussian components, μ j represents the mean of the jth optimal Gaussian component, Σ j represents the variance of the jth optimal Gaussian component, N(x l |μ i ,Σ i ) represents the mean μ i and variance Σ i Gaussian distribution function, N(x l |μ j ,Σ j ) represents the mean μ j , Variance Σ j Gaussian distribution function.
[0128] Step 3: Based on the data x l The posterior probability of belonging to the i-th optimal Gaussian mixture model recalculates the model parameter weight π' i , mean μ' i and covariance Σ' i , and its calculation formula is as follows:
[0129]
[0130]
[0131]
[0132] Step 4: Based on weight π' i , mean μ' i and covariance Σ' i With mean μ i , weight π i and variance Σ i Calculate the log-likelihood function of the GMM model, and determine whether the model converges based on the log-likelihood function. If the model converges at this time, stop the calculation and obtain the defect detection model. If it does not converge, return to step 2 and continue iterating.
[0133] Among them, when estimating the GMM parameters according to the above steps, it is first necessary to determine the number of components K and the initial parameters of the model. If the K value is too large, the parameters may not converge. If the K value is too small, the voiceprint features may not be accurately represented, affecting the recognition effect.
[0134] S1033, binding the above-mentioned discharge ultrasonic signal characteristic parameters with the above-mentioned defect detection model, and constructing the above-mentioned power equipment defect recognition model library based on the above-mentioned defect detection model.
[0135] Preferably, if Fig. 9 As shown, in step S104, the measured signal is preprocessed and characteristic parameters are extracted to generate measured characteristic parameters, including:
[0136] S1041 . Perform pre-emphasis processing, frame processing and windowing processing on the measured signal to generate a multi-frame time domain signal.
[0137] Specifically, pre-emphasis in speech recognition is because lip radiation has a 3dB (decibel) reduction effect on ultrasonic signals or the background noise in the environment is large, thus affecting recognition. Therefore, it is necessary to distinguish between speech segments and non-speech segments, strengthen speech segments, and weaken non-speech segments; framing is the algorithm mentioned above for extracting ultrasonic pulse signal segments through speech endpoint detection; windowing is to avoid the Gibbs effect caused by discrete signals, set the amplitude at both ends of each frame signal to 0, and at the same time fill in the information that disappears at both ends of each frame after windowing. Windowing will cause signal loss at both ends, which is not conducive to feature extraction. Therefore, during the frame operation, there are repeated parts at both ends of a frame and the adjacent frames before and after (the end segment of the previous frame, the starting segment of the next frame), and the adjacent frames are not completely independent. The signals at both ends of a frame that disappear due to windowing will be retained in the two adjacent frames. The time difference between the starting point of a frame and its adjacent previous frame is defined as frame shift, and the frame shift is generally 40% to 60% of the frame length.
[0138] S1042: Convert the multi-frame time domain signals into multi-frame linear spectrum signals using a fast Fourier transform algorithm.
[0139] Specifically, the multi-frame time domain signal is converted into a multi-frame linear spectrum signal Y(z) after fast Fourier transform, and the calculation formula is as follows:
[0140]
[0141] Among them, N represents the total number of points (signal length) of the multi-frame time domain signal, that is, the total number of frequency points of the Fourier transform, m represents the number of frames of the time domain signal, and z represents the discrete frequency point.
[0142] S1043: Use a Mel frequency filter bank to convert the multi-frame linear spectrum signals into Mel frequency spectrum signals.
[0143] Specifically, the converted multi-frame spectrum signal is transformed through a Mel frequency filter bank, and the linear spectrum is converted into a Mel spectrum through the transformation. The Mel frequency filter bank is composed of triangular bandpass filters. The higher the center frequency of these filters, the wider the bandwidth. The transfer function of each filter is as follows:
[0144]
[0145] In the above formula, D represents the number of filters, also known as the dimension of the filter bank, f(d) is the center frequency of the d-th filter, f(d-1) is the center frequency of the d-1th filter, and f(d+1) is the center frequency of the d+1th filter. When the d value increases, the distance between the center frequencies of the two filters also increases, and when the d value decreases, the distance between the center frequencies decreases.
[0146] Furthermore, in order to improve the robustness of the recognition system and avoid the situation where the recognition results of the same sample vary greatly, the logarithm of the Mel spectrum is usually taken. The calculation formula from multi-frame linear spectrum signals to logarithmic Mel spectrum is as follows:
[0147]
[0148] S1044: Determine the measured characteristic parameters based on the multi-frame linear spectrum signals and the Mel spectrum signals.
[0149] Specifically, the transformed spectrum s(d) is subjected to discrete cosine transform to obtain MFCC, and the calculation formula of MFCC is as follows:
[0150]
[0151] Example 2
[0152] This embodiment provides a device for identifying defects in electric power equipment, such as Fig.10 As shown, including:
[0153] The screening module 101 is used to obtain an original voice signal, screen the original voice signal, and generate an ultrasonic signal.
[0154] Specifically, the steps of using the power failure detection algorithm to screen the original speech signal are as follows: divide the original speech signal X(n) into many small segments, distinguish the speech segments from the non-speech segments through endpoint detection, and mark the start time and end time of each speech segment in the signal, and delete the non-speech segment (silence or noise) according to the mark. The endpoint is the critical point between the speech segment and the non-speech segment.
[0155] The optimization module 102 is used to extract the local discharge state characteristic parameters in the ultrasonic signal and optimize the local discharge state characteristic parameters.
[0156] Specifically, the above-mentioned partial discharge state characteristic parameters include: initial frame length, initial frequency adjustment coefficient, initial filter number and initial Gaussian component number.
[0157] Furthermore, the characteristic parameters of the partial discharge state of the transformer are extracted based on the ultrasonic signal, among which the initial frame length, the initial frequency adjustment coefficient, the initial number of filters (i.e., the dimension of the initial characteristic parameters) and the initial number of Gaussian components are the core parameters that determine the computational efficiency and recognition accuracy of the recognition algorithm. Then, the improved genetic algorithm is used to optimize the characteristic parameters of the partial discharge state of the transformer (e.g., Figure 2 The genetic algorithm optimization model in the paper is used to determine the specific values of the above-mentioned transformer partial discharge state characteristic parameters by taking the recognition accuracy of the recognition system after the transformer partial discharge state characteristic parameters change as the optimization target.
[0158] The construction module 103 is used to construct a power equipment defect recognition model library using the optimized partial discharge state characteristic parameters; wherein the power equipment defect recognition model library includes defect detection models corresponding to different power equipment defect types.
[0159] The generating module 104 is used to obtain the measured signal, perform preprocessing and feature parameter extraction on the measured signal, and generate measured feature parameters.
[0160] Specifically, a Gaussian mixture model is used to transform the problem of matching the test ultrasonic signal with the training ultrasonic signal into a problem of model establishment and probability calculation, and the characteristic parameters of the measured signal are used to infer which Gaussian mixture model in the model library is used to determine the defect type.
[0161] The matching module 105 is used to match the above-mentioned measured characteristic parameters with the defect detection model in the above-mentioned power equipment defect identification model library, and determine the power equipment defect type based on the matching result.
[0162] Specifically, the maximum likelihood estimation algorithm is used to match the above-mentioned measured characteristic parameters with the discharge ultrasonic signal characteristic parameters corresponding to the defect detection model in the above-mentioned power equipment defect identification model library, and the defect detection model corresponding to the discharge ultrasonic signal characteristic parameters that are the same as the above-mentioned measured characteristic parameters is selected to determine the defect type of the above-mentioned power equipment.
[0163] Furthermore, a likelihood function is calculated based on the measured characteristic parameters and the characteristic parameters of the discharge ultrasonic signal corresponding to the defect detection model, and then the logarithmic derivative of the likelihood function is taken, and finally the likelihood function is solved to generate the similarity between the measured characteristic parameters and the characteristic parameters of the discharge ultrasonic signal corresponding to the defect detection model. When the similarity between the two is less than a preset threshold, the defect type of the defect detection model is used as the defect type of the measured signal. When the similarity between the two is greater than the preset threshold, there is no defect detection model matching the measured characteristic parameters in the power equipment defect recognition model library, and a new defect is generated based on the measured characteristic parameters and the corresponding measured signal, and the new defect is stored in the power equipment defect recognition model library.
[0164] The above-mentioned power equipment defect identification device optimizes the characteristic parameters of the partial discharge state, and constructs a power equipment defect identification model library based on the optimized partial discharge state characteristic parameters, and uses the characteristic parameters of the measured signal to infer which Gaussian mixture model in the model library is used to determine the defect type, thereby simplifying the dimension of the characteristic quantity and improving the recognition efficiency and accuracy of the partial discharge defect type of the power equipment.
[0165] Preferably, the optimization module 102 includes:
[0166] The encoding unit 1021 is used to encode the initial frame length, the initial frequency adjustment coefficient, the initial number of filters and the initial number of Gaussian components to determine multiple Gaussian mixture models.
[0167] Specifically, decimal values are used for encoding, and chromosomes (i.e., Gaussian mixture model parameters) are randomly generated after encoding, and then different Gaussian mixture models are randomly generated based on the chromosomes, where the chromosome Gy can be expressed as: Gy = initial frame length | initial frequency adjustment coefficient | initial filter dimension | initial number of GMM components.
[0168] Furthermore, when decimal values are used for encoding, the steps for selecting the numerical ranges of the initial frame length, the initial frequency adjustment coefficient, the initial number of filters, and the initial number of Gaussian components are as follows:
[0169] (1) Initial frame length: In speech analysis, based on the short-term stability of speech and the duration of phonemes, the frame length is generally selected to be 20 to 50 ms. Ultrasonic signals change faster than audio signals. In accordance with the requirement of short-term stability, the frame length of ultrasound should be several times shorter than that of audio. If the frame length is too long, the data does not meet the requirement of short-term stability. If the frame length is too short, the speech features of the frame are not representative. Therefore, it is necessary to select an appropriate frame length for recognition. Since the analog bandwidth of the ultrasonic acquisition system is 200 kHz, the sampling rate is 1 MS / s, and the data accuracy is 16 bits, considering the efficiency of system data processing, the minimum frame length is 1 ms and the maximum frame length is set to 1 s, that is, 50 power frequency cycles, which fully meets the requirements of covering ultrasonic pulse signals.
[0170] (2) Initial frequency adjustment coefficient: Due to the voiceprint parameters MFCC (Mel Frequency Cepstrum Coefficient) and GFCC (Gamma Frequency Cepstrum Coefficient, gamma frequency cepstrum coefficient) is proposed based on the human hearing characteristics. The human hearing range is 16Hz to 20kHz, and the frequency range of transformer partial discharge ultrasonic signals is 50kHz to 200kHz, so it is necessary to make the ultrasonic signal audible; wherein, the frequency adjustment coefficient refers to the coefficient divided by the sampling frequency, that is, the coefficient multiplied by the time series of the original data. After multiplying with the frequency adjustment coefficient, the sound signal is "stretched", that is, the frequency is reduced by a multiple; the initial frequency adjustment coefficient value range is set based on: the audio file sampling frequency is generally 48kHz, so the maximum frequency adjustment coefficient selected is the quotient of the ultrasonic sampling frequency divided by the audio sampling frequency, which is about 20, and the minimum frequency adjustment coefficient is 1. The physical explanation of the frequency adjustment coefficient of 1 is to extend the human hearing characteristics to 200kHz, the frequency adjustment coefficient of 10 means to reduce the frequency of the ultrasonic signal to the human hearing range, and the frequency adjustment coefficient of 20 means to observe the reduction of the frequency of the partial discharge ultrasonic signal to the human voice frequency range; the frequency adjustment coefficient will affect the determination of the center frequency of the filter group and the filter interval, and also affect the frame length.
[0171] (3) Number of initial filters: Weighted dimensionality reduction refers to evaluating the recognition contribution rate of each dimension after determining the dimension and weighting each dimension according to the evaluation result. During recognition, due to the redundant feature parameter data, the recognition time is long, and some dimensions in the feature parameters do not contribute much to recognition, and may even reduce the recognition rate. Therefore, in order to shorten the recognition time, reduce the data redundancy, and improve the recognition efficiency and effect, it is necessary to reduce the dimension of the feature quantity. The weighted dimensionality reduction of the feature parameter includes determining the appropriate feature dimension and dimensionality reduction; the value range of the initial filter number is set to 2 0 -2 10 , using the binary increment principle of integer powers of 2. According to the current experience in the field of speech processing, this value is generally selected not to exceed 32. In order to further expand the optimization range, the maximum setting is more than 20 times, and the maximum is 1024, which has exceeded the frequency variation range of ultrasound to audible sound and meets the maximum optimization requirements. Among them, the change in the number of filters does not change the number of frames, but changes the number of columns of the coefficient matrix, so that the extraction of the cepstral coefficients of each frame is more refined, and the change in dimension will cause the cepstral value to change.
[0172] (4) Initial number of Gaussian components: The number of Gaussian components of GMM is an important parameter in GMM, which will affect the performance of the recognition system. When the number of components of the model is large, the amount of parameter calculation of each model increases, and the amount of calculation during recognition increases, making the recognition time longer; when the number of Gaussian components is small, the GMM obtained during training cannot effectively describe the voiceprint, which will lead to a decrease in the recognition effect of the system; therefore, in voiceprint recognition, selecting an appropriate number of model components can not only improve the recognition rate of the recognition system, but also reduce the amount of calculation during training and recognition; the algorithm test based on the STM32 chip hardware shows that when the number of Gaussian components is 100, the algorithm execution time reaches 3.82s, resulting in significant delay waiting, so the upper limit of the initial Gaussian component is set to 99.
[0173] The first determination unit 1022 is used to determine a multi-dimensional feature vector based on the ultrasonic signal, and determine a model parameter sequence corresponding to a plurality of Gaussian mixture models based on the multi-dimensional feature vector.
[0174] Specifically, the voiceprint observation sequence corresponding to the original speech signal is X'=x'1,x'2,...,x' f ,...,x' F , the subscript f represents the fth frame in the ultrasonic signal, and there are F frames in total. Then, the sequences with low signal-to-noise ratio in the original ultrasonic signal are screened and eliminated to form the n-dimensional feature vector X corresponding to the ultrasonic signal. Then, the Gaussian distribution parameter model is shown as follows:
[0175]
[0176] Where μ represents the mean of the n-dimensional feature vector, ∑ represents an n×n covariance matrix, x represents the voiceprint signal frame to be identified, which contains a total of n data points, T represents transposition, |∑| is the determinant of ∑, and the element c in the covariance matrix ij The calculation formula is as follows:
[0177] c ij =E[x i -E(x i )][x j -E(x i )]
[0178] Here, E represents mathematical expectation.
[0179] Furthermore, the Gaussian mixture model obtained by linearly superposing k Gaussian distribution parameter models, the model parameter sequence P(x) corresponding to the Gaussian mixture model can be expressed by the following formula:
[0180]
[0181] Where K represents the number of Gaussian distribution parameter models in the Gaussian mixture model, k = 1, 2, ..., K, π k Represents the mixing coefficient, 0≤π k ≤1, and must meet
[0182] The selection unit 1023 is used to determine multiple posterior probabilities based on the multi-dimensional feature vector and the model parameter sequence, and select the largest posterior probability as the fitness function value.
[0183] Specifically, the model parameter sequence is the characteristic parameter extracted from the ultrasonic signal. The posterior probability of the model parameter (chromosome) of a certain Gaussian mixture model is the largest. The posterior probability is taken as the fitness function value S of the corresponding chromosome Gy. The calculation formula is as follows:
[0184]
[0185] Among them, g k represents the kth Gaussian mixture model, P(g k |x) represents the probability that the voiceprint signal frame x to be identified belongs to the kth Gaussian mixture model, P(x|g k ) represents the probability that the kth Gaussian mixture model contains the voiceprint signal frame x to be identified, P(g k ) represents the prior probability.
[0186] Furthermore, let the prior probability P(g k) are the same, both are 1 / s, and since P(x) is independent of the model and is fixed, the fitness function value S can be expressed as:
[0187] S=arg max 1≤k≤S P(x|g k )
[0188] Furthermore, logarithmic operation is performed on the above formula. Since each frame signal is independent of each other, that is, the observation sequence X is independent, the fitness function value S can be expressed as:
[0189]
[0190] The processing unit 1024 is used to use the above fitness function value as the genetic weight, and perform cross-mutation processing on the above initial frame length, the above initial frequency adjustment coefficient, the above initial number of filters and the above initial number of Gaussian components to generate an optimal frame length, an optimal frequency adjustment coefficient, an optimal number of filters and an optimal number of Gaussian components.
[0191] Specifically, for each chromosome vector sequence, the initial frame length, initial frequency adjustment coefficient, initial number of filters and initial number of Gaussian components are extracted for crossover mutation operation, the chromosome fitness function value is used as the genetic weight, and the product with the random number Rnd (0-1 uniform distribution) is used as the genetic mutation operator. The above steps are iterated, and the calculation is terminated when the number of iterations or the fitness function value error is <0.01, and the optimal frame length, optimal frequency adjustment coefficient, optimal number of filters and optimal number of Gaussian components are output, and then the optimal Gaussian mixture model is determined based on the optimal frame length, optimal frequency adjustment coefficient, optimal number of filters and optimal number of Gaussian components.
[0192] Preferably, the building block 103 includes:
[0193] The second determining unit 1031 is used to determine the characteristic parameters of the discharge ultrasonic signal based on the above-mentioned optimal frame length and the above-mentioned optimal frequency adjustment coefficient.
[0194] Specifically, the ultrasonic signal is windowed and framed based on the optimal frame length and the optimal frequency adjustment coefficient to generate a multi-frame defective speech sequence, and based on the multi-frame defective speech sequence, the characteristic parameters of the discharge ultrasonic signal are determined using the optimal number of filters.
[0195] Furthermore, the ultrasonic signal is framed using an optimal frame length, and is windowed using an optimal frequency adjustment coefficient to generate a multi-frame defective speech sequence; and based on the MFCC feature parameter extraction algorithm principle of the human ear auditory response, some parameters of the multi-frame defective speech sequence are transformed to achieve the extraction of characteristic parameters of the discharge ultrasonic signal, and the extraction steps are as follows: extraction of Mel frequency cepstral coefficients (MFCC), which requires Fourier transform of the multi-frame defective speech sequence, and the spectrum of the signal is converted into a Mel spectrum through a Mel filter group. In order to improve the robustness of the system, the Mel spectrum is logarithmically operated, and finally the cepstral is obtained through a cosine discrete transform to generate the discharge ultrasonic signal characteristic parameter MFCCs, where Xi(m) represents the multi-frame defective speech sequence after framing and windowing.
[0196] The training unit 1032 is used to determine the parameters of the Gaussian mixture model based on the above-mentioned optimal number of Gaussian components, and perform model training based on the above-mentioned Gaussian mixture model parameters to generate a defect detection model.
[0197] The specific GMM contains hidden variables, and the maximum expectation algorithm is used to train the GMM parameters. The three parameters of GMM are: mean, weight and variance. The steps of the maximum expectation algorithm are as follows:
[0198] Step 1: Define the optimal number of Gaussian components as i and determine the mean μ for each component i , weight π i and variance Σ i .
[0199] Step 2: Calculate the data x based on the current parameters of each component l The posterior probability of belonging to the i-th optimal Gaussian component is:
[0200]
[0201] In the above formula, z li Represents data x l The total probability of belonging to all optimal Gaussian components, μ j represents the mean of the jth optimal Gaussian component, Σ j represents the variance of the jth optimal Gaussian component, N(x l |μ i ,Σ i ) represents the mean μ i and variance Σ i Gaussian distribution function, N(x l |μ j ,Σ j ) represents the mean μ j , Variance Σ j Gaussian distribution function.
[0202] Step 3: Based on the data xl The posterior probability of belonging to the i-th optimal Gaussian mixture model recalculates the model parameter weight π' i , mean μ' i and covariance Σ' i , and its calculation formula is as follows:
[0203]
[0204]
[0205]
[0206] Step 4: Based on weight π' i , mean μ' i and covariance Σ' i With mean μ i , weight π i and variance Σ i Calculate the log-likelihood function of the GMM model, and determine whether the model converges based on the log-likelihood function. If the model converges at this time, stop the calculation and obtain the defect detection model. If it does not converge, return to step 2 and continue iterating.
[0207] Among them, when estimating the GMM parameters according to the above steps, it is first necessary to determine the number of components K and the initial parameters of the model. If the K value is too large, the parameters may not converge. If the K value is too small, the voiceprint features may not be accurately represented, affecting the recognition effect.
[0208] The construction unit 1033 is used to bind the above-mentioned discharge ultrasonic signal characteristic parameters with the above-mentioned defect detection model, and construct the above-mentioned power equipment defect recognition model library based on the above-mentioned defect detection model.
[0209] Preferably, the generating module 104 includes:
[0210] The first generating unit 1041 is used to perform pre-emphasis processing, frame processing and windowing processing on the above-mentioned measured signal to generate a multi-frame time domain signal.
[0211] Specifically, pre-emphasis in speech recognition is because lip radiation has a 3dB (decibel) reduction effect on ultrasonic signals or the background noise in the environment is large, thus affecting recognition. Therefore, it is necessary to distinguish between speech segments and non-speech segments, strengthen speech segments, and weaken non-speech segments; framing is the algorithm mentioned above for extracting ultrasonic pulse signal segments through speech endpoint detection; windowing is to avoid the Gibbs effect caused by discrete signals, set the amplitude at both ends of each frame signal to 0, and at the same time fill in the information that disappears at both ends of each frame after windowing. Windowing will cause signal loss at both ends, which is not conducive to feature extraction. Therefore, during the frame operation, there are repeated parts at both ends of a frame and the adjacent frames before and after (the end segment of the previous frame, the starting segment of the next frame), and the adjacent frames are not completely independent. The signals at both ends of a frame that disappear due to windowing will be retained in the two adjacent frames. The time difference between the starting point of a frame and its adjacent previous frame is defined as frame shift, and the frame shift is generally 40% to 60% of the frame length.
[0212] The first conversion unit 1042 is used to convert the multi-frame time domain signals into multi-frame linear spectrum signals by using a fast Fourier transform algorithm.
[0213] Specifically, the multi-frame time domain signal is converted into a multi-frame linear spectrum signal Y(z) after fast Fourier transform, and the calculation formula is as follows:
[0214]
[0215] Among them, N represents the total number of points (signal length) of the multi-frame time domain signal, that is, the total number of frequency points of the Fourier transform, m represents the number of frames of the time domain signal, and z represents the discrete frequency point.
[0216] The second conversion unit 1043 is configured to convert the multi-frame linear spectrum signals into Mel spectrum signals by using a Mel frequency filter bank.
[0217] Specifically, the converted multi-frame spectrum signal is transformed through a Mel frequency filter bank, and the linear spectrum is converted into a Mel spectrum through the transformation. The Mel frequency filter bank is composed of triangular bandpass filters. The higher the center frequency of these filters, the wider the bandwidth. The transfer function of each filter is as follows:
[0218]
[0219] In the above formula, D represents the number of filters, also known as the dimension of the filter bank, f(d) is the center frequency of the d-th filter, f(d-1) is the center frequency of the d-1th filter, and f(d+1) is the center frequency of the d+1th filter. When the d value increases, the distance between the center frequencies of the two filters also increases, and when the d value decreases, the distance between the center frequencies decreases.
[0220] Furthermore, in order to improve the robustness of the recognition system and avoid the situation where the recognition results of the same sample vary greatly, the logarithm of the Mel spectrum is usually taken. The calculation formula from multi-frame linear spectrum signals to logarithmic Mel spectrum is as follows:
[0221]
[0222] The second generating unit 1044 is configured to determine the measured characteristic parameter based on the multi-frame linear spectrum signal and the Mel spectrum signal.
[0223] Specifically, the transformed spectrum s(d) is subjected to discrete cosine transform to obtain MFCC, and the calculation formula of MFCC is as follows:
[0224]
[0225] Example 3
[0226] This embodiment provides a computer device, including a memory and a processor, wherein the processor is used to read instructions stored in the memory to execute a method for identifying defects in electric power equipment in any of the above method embodiments.
[0227] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0228] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0229] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0230] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0231] Example 4
[0232] This embodiment provides a computer-readable storage medium, wherein the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute a method for identifying defects in power equipment in any of the above method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD), or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memories.
[0233] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. A method for identifying defects in electric power equipment, characterized in that: include: Acquire an original voice signal, filter the original voice signal, and generate an ultrasonic signal; Extracting local discharge state characteristic parameters from the ultrasonic signal and optimizing the local discharge state characteristic parameters; the local discharge state characteristic parameters include: initial frame length, initial frequency adjustment coefficient, initial filter number and initial Gaussian component number; Using the optimized partial discharge state characteristic parameters to construct a power equipment defect recognition model library; wherein the power equipment defect recognition model library includes defect detection models corresponding to different power equipment defect types; Acquire a measured signal, perform preprocessing and feature parameter extraction on the measured signal, and generate measured feature parameters; Matching the measured characteristic parameters with the defect detection model in the power equipment defect recognition model library, and determining the power equipment defect type based on the matching result; The extracting the local discharge state characteristic parameter in the ultrasonic signal and optimizing the local discharge state characteristic parameter comprises: Encoding the initial frame length, the initial frequency adjustment coefficient, the initial number of filters and the initial number of Gaussian components to determine a plurality of Gaussian mixture models; Determine a multidimensional feature vector based on the ultrasonic signal, and determine a model parameter sequence corresponding to a plurality of Gaussian mixture models based on the multidimensional feature vector; Determine a plurality of posterior probabilities based on the multidimensional feature vector and the model parameter sequence, and select the largest posterior probability as the fitness function value; Using the fitness function value as a genetic weight, performing crossover mutation processing on the initial frame length, the initial frequency adjustment coefficient, the initial number of filters, and the initial number of Gaussian components to generate an optimal frame length, an optimal frequency adjustment coefficient, an optimal number of filters, and an optimal number of Gaussian components; The method of constructing a power equipment defect recognition model library using the optimized partial discharge state characteristic parameters includes: Determine a characteristic parameter of a discharge ultrasonic signal based on the optimal frame length and the optimal frequency adjustment coefficient; Determine Gaussian mixture model parameters based on the optimal number of Gaussian components, and perform model training based on the Gaussian mixture model parameters to generate a defect detection model; The characteristic parameters of the discharge ultrasonic signal are bound to the defect detection model and the electric power equipment defect recognition model library is constructed based on the defect detection model.
2. A method for identifying defects in electric power equipment according to claim 1, characterized in that: The determining of the characteristic parameters of the discharge ultrasonic signal based on the optimal frame length and the optimal frequency adjustment coefficient includes: The ultrasonic signal is windowed and framed based on the optimal frame length and the optimal frequency adjustment coefficient to generate a multi-frame defective speech sequence, and based on the multi-frame defective speech sequence, the characteristic parameters of the discharge ultrasonic signal are determined using the optimal number of filters.
3. A method for identifying defects in electric power equipment according to claim 1, characterized in that: The step of preprocessing the measured signal and extracting characteristic parameters to generate measured characteristic parameters includes: The measured signal is subjected to pre-emphasis processing, frame processing and windowing processing to generate a multi-frame time domain signal; Converting the multi-frame time domain signals into multi-frame linear spectrum signals using a fast Fourier transform algorithm; Using a Mel frequency filter bank to convert the multi-frame linear spectrum signal into a Mel frequency spectrum signal; The measured characteristic parameters are determined based on the multiple frames of linear spectrum signals and the Mel spectrum signals.
4. A method for identifying defects in electric power equipment according to claim 1, characterized in that: The step of matching the measured characteristic parameters with the defect detection model in the electric power equipment defect recognition model library, and determining the electric power equipment defect type based on the matching result, includes: The measured characteristic parameters are matched with the discharge ultrasonic signal characteristic parameters corresponding to the defect detection model in the electric equipment defect identification model library using the maximum likelihood estimation algorithm, and the defect detection model corresponding to the discharge ultrasonic signal characteristic parameters that are the same as the measured characteristic parameters is selected to determine the defect type of the electric equipment.
5. A device for identifying defects in electric power equipment, characterized in that: include: A screening module, used for acquiring an original voice signal, screening the original voice signal, and generating an ultrasonic signal; An optimization module, used for extracting characteristic parameters of the partial discharge state in the ultrasonic signal and optimizing the characteristic parameters of the partial discharge state; the characteristic parameters of the partial discharge state include: an initial frame length, an initial frequency adjustment coefficient, an initial number of filters and an initial number of Gaussian components; A construction module is used to construct a power equipment defect recognition model library using the optimized partial discharge state characteristic parameters; wherein the power equipment defect recognition model library includes defect detection models corresponding to different power equipment defect types; A generation module is used to obtain a measured signal, preprocess the measured signal and extract characteristic parameters to generate measured characteristic parameters; A matching module, used to match the measured characteristic parameters with the defect detection model in the power equipment defect recognition model library, and determine the power equipment defect type based on the matching result; The optimization module comprises: An encoding unit, used for encoding the initial frame length, the initial frequency adjustment coefficient, the initial number of filters and the initial number of Gaussian components to determine a plurality of Gaussian mixture models; a first determining unit, configured to determine a multidimensional feature vector based on the ultrasonic signal, and determine a model parameter sequence corresponding to a plurality of Gaussian mixture models based on the multidimensional feature vector; A selection unit, configured to determine a plurality of posterior probabilities based on the multidimensional feature vector and the model parameter sequence, and select the maximum posterior probability as the fitness function value; A processing unit, configured to use the fitness function value as a genetic weight, perform crossover mutation processing on the initial frame length, the initial frequency adjustment coefficient, the initial number of filters, and the initial number of Gaussian components, and generate an optimal frame length, an optimal frequency adjustment coefficient, an optimal number of filters, and an optimal number of Gaussian components; The building blocks include: A second determining unit, configured to determine a characteristic parameter of a discharge ultrasonic signal based on the optimal frame length and the optimal frequency adjustment coefficient; A training unit, used to determine Gaussian mixture model parameters based on the optimal number of Gaussian components, and perform model training based on the Gaussian mixture model parameters to generate a defect detection model; A construction unit is used to bind the characteristic parameters of the discharge ultrasonic signal with the defect detection model, and to construct the power equipment defect recognition model library based on the defect detection model.
6. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is configured to call the computer program to execute the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Cross-shaped ultrasonic array sensor and method for partial discharge localization in transformers
CN102279354A
Full-waveform laser radar echo data gaussian decomposition method based on genetic algorithm
CN103217679A
In-depth learning-based partial discharge ultrasonic audio frequency identification method and system
CN106546892A
Device insulation defect identification method and system based on multi-sensor signal characteristics
CN107728014A
DNN algorithm-based analysis method of audio signal of power equipment
CN109357749A
