Method and device for reconstructing partial discharge signal based on compressed sensing
Using two sensors to monitor the transformer discharge signal, combined with wavelet transform, sparse decomposition and clustering algorithms, the efficient reconstruction of the transformer partial discharge signal is achieved, solving the problems of high cost and frequency requirements.
Patent Information
- Application Number
- CN202410763339.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, the reconstruction cost of the transformer partial discharge signal is high and the sampling frequency is less than twice the frequency of the partial discharge source signal and the original signal cannot be restored.
By using two sensors to monitor the discharge signals at different positions of the transformer, wavelet transform and sparse decomposition are performed, the signal element ratio is calculated, the OPTICS and K-means clustering algorithms are applied to determine the number of partial discharge sources, and the signals are analyzed through the orthogonal matching pursuit algorithm. Refactor.
It achieves efficient reconstruction of the transformer partial discharge signal, reduces costs, and does not need to meet the requirement that the sampling frequency be higher than twice the frequency of the partial discharge source signal.
Smart Images

Figure CN118777801A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal processing technology, and in particular to a method, device, computer-readable storage medium and power system for reconstructing a partial discharge signal based on compressed sensing. Background Art
[0002] The transformer is one of the important equipment in the power system. Transformers that have been running for a long time will have problems such as aging and deterioration. Once a transformer fails, it will cause great losses. By installing multiple partial discharge sensors on the transformer equipment to detect the partial discharge signal of the transformer, the insulation failure problem of the transformer can be discovered early. However, after the partial discharge sensor is installed to detect the partial discharge signal, it is difficult to decompose the total number of partial discharge sources in the transformer and determine the signal of each partial discharge source. The existing technology mostly increases the number of sensors to ensure that the number of sensors is greater than the number of partial discharge sources to separate the partial discharge source signals.
[0003] In addition, the existing technology has the problem that the original signal cannot be restored when the sampling frequency is lower than twice the frequency of the local discharge source signal. In order to meet the requirements of the number of sensors and sampling frequency, the cost of signal reconstruction is high and it is not easy to deploy. Summary of the invention
[0004] The main purpose of the present application is to provide a method, device, computer-readable storage medium and power system for reconstructing partial discharge signals based on compressed sensing, so as to at least solve the problem of high cost of reconstructing partial discharge signals of transformers in the prior art.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for reconstructing a partial discharge signal based on compressed sensing is provided, comprising: monitoring the discharge signals at different positions of the transformer by means of a first sensor and a second sensor respectively to obtain a first signal and a second signal; processing the first signal and the second signal by means of wavelet transform respectively to eliminate noise to obtain a third signal and a fourth signal, and sparsely decomposing the third signal and the fourth signal to obtain a fifth signal and a sixth signal; obtaining a target sequence according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, clustering the target sequence by means of an OPTICS clustering algorithm to obtain a number of clusters, clustering the fifth signal and the sixth signal based on the number of clusters by means of a K-means clustering algorithm and constructing an estimated mixing matrix according to the clustering results; reconstructing the signal by means of an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal, wherein the target signal is the actual discharge signal of the transformer.
[0006] Optionally, the first signal and the second signal are respectively processed by wavelet transform to eliminate noise to obtain a third signal and a fourth signal, including: obtaining multiple wavelet transform scales, and processing the first signal and the second signal based on each wavelet transform scale to obtain corresponding wavelet transform signals; and performing inverse wavelet transform on the corresponding wavelet transform signals to obtain the third signal and the fourth signal.
[0007] Optionally, performing sparse decomposition on the third signal and the fourth signal to obtain the fifth signal and the sixth signal includes: obtaining a preset step size, and performing the sparse decomposition on the third signal by short-time Fourier transform according to the preset step size to obtain the fifth signal: Wherein, ω is the preset step size, x1(i) is the fifth signal, is the third signal, w(im) is a window function; and the fourth signal is sparsely decomposed by short-time Fourier transform according to the preset step size to obtain the sixth signal: Wherein, x2(i) is the sixth signal, is the fourth signal.
[0008] Optionally, obtaining a target sequence according to a ratio of each element of the fifth signal and the sixth signal includes: sequentially calculating a ratio of each element in the fifth signal to a corresponding element in the sixth signal to obtain a plurality of target values: Among them, C 21 (i) is the target value, a 11 and a 21 are elements in the mixing matrix; and a corresponding sequence is constructed according to each of the target values to obtain the target sequence.
[0009] Optionally, clustering is performed according to the target sequence using an OPTICS clustering algorithm to obtain the number of clusters, including: determining each ratio in the target sequence as a sample point to obtain a first data set; obtaining a first neighborhood radius and a first target point number, traversing the sample points in the first data set according to the first neighborhood radius and the first target point number, and determining the sample point as a core point when the number of sample points in the neighborhood corresponding to the sample point is greater than the first target point number; calculating the core distance between the sample point and the core point, and determining the corresponding reachable distance according to the core distance corresponding to each sample point; sorting each sample point according to the reachable distance, determining the clustering structure according to the sorting result, and determining the number of clusters according to the clustering structure.
[0010] Optionally, clustering the fifth signal and the sixth signal based on the number of clusters by a K-means clustering algorithm and constructing an estimated mixing matrix according to the clustering result includes: normalizing the fifth signal and the sixth signal: Wherein, x'1(i) is the fifth signal, x2(i) is the sixth signal, x'1(i) is the normalized fifth signal, and x'2(i) is the normalized sixth signal; each element in the normalized fifth signal is used as the x-axis coordinate, and each element in the normalized sixth signal is used as the y-axis coordinate to draw a scatter plot; the target axis is determined according to the preset coordinates, and the scatter plot is updated by mirroring with either side of the target axis as the reference: (|x'1(i)||x'2(i)|); the cluster center is determined according to the scatter plot and the number of clusters by the K-means clustering algorithm, and clustering is performed based on the cluster center by the K-means clustering algorithm until the number of iterations reaches the preset number; the estimated mixing matrix is constructed according to the updated cluster center: in, is the estimated mixing matrix, h 11 …h 2M is the horizontal coordinate or vertical coordinate of the cluster center.
[0011] Optionally, performing signal reconstruction by an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal includes: constructing a target formula according to the fifth signal, the sixth signal and the estimated mixing matrix: X=AS; Wherein, X is a matrix representation of the fifth signal and the sixth signal, A is a mixing matrix, and S is a partial discharge signal of the transformer; a diagonal matrix is constructed according to the estimated mixing matrix: The fifth signal and the sixth signal are reconstructed according to the diagonal matrix and the target formula:
[0012] According to another aspect of the present application, a device for reconstructing partial discharge signals based on compressed sensing is provided, the device comprising: an acquisition unit, for monitoring discharge signals at different positions of a transformer by means of a first sensor and a second sensor, respectively, to obtain a first signal and a second signal; a first calculation unit, for processing the first signal and the second signal by means of wavelet transform to eliminate noise, respectively, to obtain a third signal and a fourth signal, and sparsely decomposing the third signal and the fourth signal to obtain a fifth signal and a sixth signal; a second calculation unit, for obtaining a target sequence according to a ratio of each element of the fifth signal to a corresponding element of the sixth signal, clustering the target sequence by means of an OPTICS clustering algorithm to obtain a number of clusters, clustering the fifth signal and the sixth signal by means of a K-means clustering algorithm based on the number of clusters, and constructing an estimated mixing matrix according to the clustering results; a third calculation unit, for performing signal reconstruction by means of an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal, wherein the target signal is an actual discharge signal of the transformer.
[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0014] According to another aspect of the present application, there is provided a power system, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.
[0015] Applying the technical solution of the present application, in the above-mentioned method for reconstructing partial discharge signals based on compressed sensing, first, the discharge signals at different positions of the transformer are monitored respectively by the first sensor and the second sensor to obtain the first signal and the second signal; then, the first signal and the second signal are processed by wavelet transform to eliminate noise respectively to obtain the third signal and the fourth signal, and the third signal and the fourth signal are sparsely decomposed to obtain the fifth signal and the sixth signal; thereafter, a target sequence is obtained according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, and the target sequence is clustered by the OPTICS clustering algorithm to obtain the number of clusters, and the fifth signal and the sixth signal are clustered by the K-means clustering algorithm based on the number of clusters and an estimated mixing matrix is constructed according to the clustering results; finally, the signal is reconstructed by the orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain the target signal, and the target signal is the actual discharge signal of the transformer. The present application monitors a signal sequence through two sensors distributed at different positions, performs sparseness on the signal sequence, divides the signal sequence to obtain a sequence of quotients, determines the number of clusters based on the sequence of quotients through a data density clustering algorithm OPTICS, obtains the number of local discharge sources, and then determines an estimation matrix based on the number of local discharge sources through K-means clustering, reconstructs the sensor signal through the estimation matrix through a compressed sensing algorithm and an orthogonal matching pursuit algorithm to obtain a transformer local discharge signal. The method uses only two sensors and does not require a sampling frequency that is higher than twice the frequency of the local discharge source signal to restore the original signal, thereby solving the problem of high cost of transformer local discharge signal reconstruction in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A hardware structure block diagram of a mobile terminal according to a method for reconstructing a partial discharge signal based on compressed sensing provided in an embodiment of the present application is shown;
[0017] Figure 2 A schematic flow chart of a method for reconstructing a partial discharge signal based on compressed sensing according to an embodiment of the present application is shown;
[0018] Figure 3 A structural block diagram of a partial discharge signal reconstruction device based on compressed sensing provided according to an embodiment of the present application is shown.
[0019] The above drawings include the following reference numerals:
[0020] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0021] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] As introduced in the background technology, in the prior art, the number of sensors is increased to ensure that the number of sensors is greater than the number of local discharge sources and the sampling frequency is increased to separate the local discharge source signals. In order to solve the problem of high cost of reconstructing the local discharge signal of the transformer in the prior art, the embodiments of the present application provide a method, device, computer-readable storage medium and power system for reconstructing the local discharge signal based on compressed sensing.
[0025] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0026] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a method for reconstructing a partial discharge signal based on compressed sensing according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0028] In this embodiment, a method for reconstructing a local discharge signal based on compressed sensing that runs on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0029] Figure 2 It is a flowchart of a method for reconstructing a local discharge signal based on compressed sensing according to an embodiment of the present application.
[0030] like Figure 2 As shown, the method comprises the following steps:
[0031] Step S201, respectively monitoring discharge signals at different positions of the transformer by means of a first sensor and a second sensor to obtain a first signal and a second signal;
[0032] Specifically, two local discharge source sensors, namely the first sensor and the second sensor, are used to monitor the local discharge signal of the transformer to obtain the first signal and the second signal
[0033] Step S202, processing the first signal and the second signal by wavelet transform to eliminate noise, respectively, to obtain a third signal and a fourth signal, and performing sparse decomposition on the third signal and the fourth signal to obtain a fifth signal and a sixth signal;
[0034] Specifically, the noise signals mainly existing in the partial discharge signal are caused by mechanical vibration of the transformer, operation of other electrical equipment near the transformer, communication noise or Gaussian noise. Wavelet transform is used to determine the frequency of the signal changing with the observation sequence and the amplitude distribution at different frequencies, and then noise reduction is achieved to obtain the third signal and the fourth signal, and then based on the different frequencies of different partial discharge sources, the third signal and the fourth signal are sparsely decomposed to obtain the fifth signal and the sixth signal.
[0035] Step S203, obtaining a target sequence according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, clustering the target sequence using the OPTICS clustering algorithm to obtain a cluster number, clustering the fifth signal and the sixth signal based on the cluster number using the K-means clustering algorithm, and constructing an estimated mixing matrix according to the clustering results;
[0036] Specifically, a sequence of ratios obtained by dividing the discretized fifth signal and the sixth signal, i.e., the target sequence, is obtained, and then the number of clusters of the sequence of quotients, i.e., the number of local discharge sources, is analyzed based on the data density clustering algorithm OPTICS clustering algorithm, and then the fifth signal and the sixth signal are clustered based on the number of local discharge sources through the K-means clustering algorithm, and an estimated mixing matrix is constructed according to the clustering results.
[0037] Step S204, performing signal reconstruction by using an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal, where the target signal is an actual discharge signal of the transformer.
[0038] Specifically, based on the above-mentioned estimated mixing matrix, the fifth signal and the sixth signal are expressed in a mixed form in vector form, and the expression result is reconstructed by an orthogonal matching pursuit algorithm to obtain the target signal, that is, the actual discharge signal of the transformer is extracted.
[0039] Through this embodiment, first, the discharge signals at different positions of the transformer are monitored respectively by the first sensor and the second sensor to obtain the first signal and the second signal; then, the first signal and the second signal are processed by wavelet transform to eliminate noise respectively to obtain the third signal and the fourth signal, and the third signal and the fourth signal are sparsely decomposed to obtain the fifth signal and the sixth signal; thereafter, a target sequence is obtained according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, and the target sequence is clustered by the OPTICS clustering algorithm to obtain the number of clusters, the fifth signal and the sixth signal are clustered based on the number of clusters by the K-means clustering algorithm, and an estimated mixing matrix is constructed according to the clustering results; finally, the signal is reconstructed by the orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain the target signal, and the target signal is the actual discharge signal of the transformer. The present application monitors a signal sequence through two sensors distributed at different positions, performs sparseness on the signal sequence, divides the signal sequence to obtain a sequence of quotients, determines the number of clusters based on the sequence of quotients through a data density clustering algorithm OPTICS, obtains the number of local discharge sources, and then determines an estimation matrix based on the number of local discharge sources through K-means clustering, reconstructs the sensor signal through the estimation matrix through a compressed sensing algorithm and an orthogonal matching pursuit algorithm to obtain a transformer local discharge signal. The method uses only two sensors and does not require a sampling frequency that is higher than twice the frequency of the local discharge source signal to restore the original signal, thereby solving the problem of high cost of transformer local discharge signal reconstruction in the prior art.
[0040] In order to obtain the third signal and the fourth signal, in an optional implementation manner, the step S202 includes:
[0041] Step S2021, obtaining a plurality of wavelet transform scales, and processing the first signal and the second signal based on each of the wavelet transform scales to obtain corresponding wavelet transform signals;
[0042] In the specific implementation, the interference sources of partial discharge signals are noise signals of mechanical vibration of transformers, noise signals of operation of other electrical equipment near transformers, communication noise and Gaussian noise. Among them, the frequency of mechanical vibration noise is relatively low, generally below 50kHz, while the frequency of corona noise is relatively high, basically above MHz, and the frequency of communication interference noise is above 500kHz. The characteristic of Gaussian noise is that its energy density distribution is the same in all frequency bands. Wavelet transform can analyze the frequency of the collected signal as the measurement sequence changes, as well as the distribution of amplitude at different frequencies, and can filter out the above noise.
[0043] Specifically, the first signal and the second signal are decomposed by each of the wavelet transform scales, and the wavelet coefficients at each scale are denoised to obtain the wavelet transform signal.
[0044] Step S2022: performing inverse wavelet transform on the corresponding wavelet transform signal to obtain the third signal and the fourth signal.
[0045] Specifically, the wavelet inverse transform is performed on the wavelet transformed signal to obtain the third signal and the fourth signal mentioned above
[0046] In order to obtain the fifth signal and the sixth signal, in an optional implementation manner, the step S202 further includes:
[0047] Step S2023, obtaining a preset step length, and performing the sparse decomposition on the third signal through short-time Fourier transform according to the preset step length to obtain the fifth signal:
[0048]
[0049] Wherein, ω is the preset step size, x1(i) is the fifth signal, is the third signal, w(im) is the window function;
[0050] Specifically, since the frequencies of the local discharge source signals are different, short-time Fourier transform can be used to sparsely decompose the sampled signals and decompose the signals into discrete signals, wherein the formula for decomposing the third signal to obtain the fifth signal is shown above, and in one embodiment, the window function uses a Hamming window.
[0051] Step S2024, performing the sparse decomposition on the fourth signal by short-time Fourier transform according to the preset step size to obtain the sixth signal:
[0052]
[0053] Wherein, x2(i) is the sixth signal mentioned above, This is the fourth signal mentioned above.
[0054] Specifically, similarly, the sampled signal is sparsely decomposed based on short-time Fourier transform to decompose the signal into discrete signals, wherein the formula for decomposing the fourth signal to obtain the sixth signal is as shown above.
[0055] In order to obtain the above target sequence, in an optional implementation, the above step S203 includes:
[0056] Step S20301, sequentially calculating the ratio of each of the above elements in the above fifth signal to the corresponding element in the above sixth signal to obtain multiple target values:
[0057]
[0058] Among them, C 21 (i) is the above target value, a 11 and a 21 is the element in the above mixing matrix;
[0059] Specifically, the present application sets a method for calculating the ratio of each element in the fifth signal to the corresponding element in the sixth signal to obtain multiple target values C 21 (i).
[0060] Step S20302: construct a corresponding sequence according to each of the above target values to obtain the above target sequence.
[0061] Specifically, a corresponding sequence is constructed according to the order and ratio of each element to obtain the above target sequence.
[0062] In the above embodiment, after the signal is sparsely processed, it can be considered that at any time, there is only one partial discharge source signal, and the other partial discharge sources are not discharged. The signal at this time satisfies or Then we can determine C 21 (i) When there are N values, it is determined that there are N partial discharge source signals.
[0063] Furthermore, due to the presence of noise interference, the C 21 The value of (i) may not be able to be accurately taken as N values, so this application sets a clustering algorithm to determine C 21 (i) The number of classifications is determined as the number of partial discharge source signals.
[0064] In order to determine the number of partial discharge sources, in an optional implementation, the above step S203 further includes:
[0065] Step S20303, determining each of the above ratios in the above target sequence as a sample point to obtain a first data set;
[0066] Specifically, based on C 21 (i) Construct sample points to obtain the first data set.
[0067] Step S20304, obtaining a first neighborhood radius and a first target point number, traversing the sample point in the first data set according to the first neighborhood radius and the first target point number, and determining the sample point as a core point when the number of sample points in the neighborhood corresponding to the sample point is greater than the first target point number;
[0068] Specifically, a neighborhood radius is set and a parameter value is set to obtain the first target point number, and all sample points in the first data set are judged according to the neighborhood radius and the first target point number to determine the core point.
[0069] Step S20305, calculating the core distance between the sample point and the core point, and determining the corresponding reachable distance according to the core distance corresponding to each sample point;
[0070] Specifically, the core distance and the reachable distance are determined according to the core points and the sample points, respectively.
[0071] Step S20306: sort the sample points according to the reachable distances, determine a clustering structure according to the sorting results, and determine the number of clusters according to the clustering structure.
[0072] Specifically, the affiliation between the sample points and the core points is further determined by sorting the reachable distances corresponding to the above sample points, determining the clustering structure according to the sorting results, and then completing clustering to determine the above cluster number, that is, the number of local discharge sources.
[0073] In order to determine the estimated mixing matrix, in an optional implementation, the step S203 further includes:
[0074] Step S20307, normalizing the fifth signal and the sixth signal:
[0075]
[0076] Wherein, x'1(i) is the fifth signal, x2(i) is the sixth signal, x'1(i) is the normalized fifth signal, and x'2(i) is the normalized sixth signal;
[0077] Specifically, in order to reduce the computational complexity, the fifth signal x'1(i) and the sixth signal x2(i) are normalized as shown in the above formula.
[0078] Step S20308, drawing a scatter plot with each of the elements in the normalized fifth signal as an x-axis coordinate and each of the elements in the normalized sixth signal as a y-axis coordinate;
[0079] Specifically, a scatter plot is drawn in an orthogonal coordinate system with the normalized fifth signal x'1(i) as the x-axis coordinate parameter and the normalized sixth signal x'2(i) as the y-axis coordinate parameter. At this time, all the scattered signals are distributed within a unit circle.
[0080] Step S20309, determine the target axis according to the preset coordinates, and update the scatter plot by mirroring based on any side of the target axis:
[0081] (|x'1(i)||x'2(i)|);
[0082] Specifically, the scatter plot located in the lower semicircle is mirrored to the upper semicircle, and the scatter plot coordinates can be expressed according to the above formula.
[0083] Step S20310, determining the cluster center according to the scatter plot and the number of clusters by using the K-means clustering algorithm, and performing clustering based on the cluster center by using the K-means clustering algorithm until the number of iterations reaches a preset number;
[0084] Specifically, the cluster center of the scatter point distribution is calculated according to the updated scatter plot by using the K-means clustering algorithm, the number of clusters is determined to be M according to the number of source signals M, and the K-means clustering algorithm is iterated until a preset maximum number of iterations is reached.
[0085] Step S20311, construct the estimated mixing matrix according to the updated cluster centers:
[0086]
[0087] in, is the estimated mixing matrix, h 11 …h 2M is the horizontal or vertical coordinate of the above cluster center.
[0088] Specifically, after the K-means clustering algorithm is iterated, M cluster centers are obtained, which are expressed as (h 11 ,h 12 ), (h21, h 22 )…(h M1 ,h M2). Then, the estimated mixing matrix is constructed according to the above cluster centers as shown above.
[0089] In order to reconstruct the fifth signal and the sixth signal, in an optional implementation manner, the step S204 includes:
[0090] Step S2041, constructing a target formula according to the fifth signal, the sixth signal and the estimated mixing matrix:
[0091] X = AS;
[0092]
[0093] Wherein, X is a matrix representation of the fifth signal and the sixth signal, A is a mixed matrix, and S is a partial discharge signal of the transformer;
[0094] Specifically, assuming there are three local discharge sources, the signal monitored by the sensor can be expressed as:
[0095]
[0096] Among them, s1(i), s2(i), and s3(i) represent the signals emitted by three local discharge sources, and L is the signal length, which is then converted into a matrix representation: X = AS, a 11 、a 12 、a 13 、a 21 、a 22 、a 23 Represents the elements of the mixing matrix, substituted into the above estimated mixing matrix That's it.
[0097] Step S2042, construct a diagonal matrix based on the above estimated mixing matrix:
[0098]
[0099] Specifically, a diagonal matrix is constructed according to the above estimated mixing matrix as shown in the above formula.
[0100] Step S2043, reconstructing the fifth signal and the sixth signal according to the diagonal matrix and the target formula:
[0101]
[0102] Specifically, based on the above, the above diagonal matrix is substituted into the expression of the signal monitored by the above sensor to be matrixed as shown above, and further based on the above matrix, the source signal is reconstructed by the orthogonal matching pursuit algorithm to obtain the above target signal.
[0103] In one embodiment of the present application, reconstructing a source signal by using an orthogonal matching pursuit algorithm includes:
[0104] 1. Set the residual matrix r0, the number of iterations and an empty matrix to complete the algorithm initialization;
[0105] 2. Find the column n in the Θ matrix that maximizes the residual correlation k ;
[0106] 3. Use the least squares method to find an approximate solution, ensure the minimum residual, and update the coefficients;
[0107] 4. Update the residual, and then repeat steps 2 to 4 until the number of iterations reaches the maximum.
[0108] Output coefficient vector, that is, the above vector s.
[0109] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for reconstructing partial discharge signals based on compressed sensing of the present application will be described in detail below in combination with specific embodiments.
[0110] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0111] The embodiment of the present application also provides a reconstruction device for a local discharge signal based on compressed sensing. It should be noted that the reconstruction device for a local discharge signal based on compressed sensing in the embodiment of the present application can be used to execute the reconstruction method for a local discharge signal based on compressed sensing provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceived.
[0112] The following is an introduction to a partial discharge signal reconstruction device based on compressed sensing provided in an embodiment of the present application.
[0113] Figure 3 is a structural block diagram of a partial discharge signal reconstruction device based on compressed sensing according to an embodiment of the present application. Figure 3 As shown, the device comprises:
[0114] An acquisition unit 10 is used to monitor the discharge signals at different positions of the transformer through a first sensor and a second sensor respectively to obtain a first signal and a second signal;
[0115] Specifically, two local discharge source sensors, namely the first sensor and the second sensor, are used to monitor the local discharge signal of the transformer to obtain the first signal and the second signal
[0116] A first computing unit 20 is configured to process the first signal and the second signal respectively by wavelet transform to eliminate noise, thereby obtaining a third signal and a fourth signal, and to perform sparse decomposition on the third signal and the fourth signal to obtain a fifth signal and a sixth signal;
[0117] Specifically, the noise signals mainly existing in the partial discharge signal are caused by mechanical vibration of the transformer, operation of other electrical equipment near the transformer, communication noise or Gaussian noise. Wavelet transform is used to determine the frequency of the signal changing with the observation sequence and the amplitude distribution at different frequencies, and then noise reduction is achieved to obtain the third signal and the fourth signal, and then based on the different frequencies of different partial discharge sources, the third signal and the fourth signal are sparsely decomposed to obtain the fifth signal and the sixth signal.
[0118] a second calculation unit 30, configured to obtain a target sequence according to a ratio of each element of the fifth signal to a corresponding element of the sixth signal, cluster the target sequence using an OPTICS clustering algorithm to obtain a number of clusters, cluster the fifth signal and the sixth signal based on the number of clusters using a K-means clustering algorithm, and construct an estimated mixing matrix according to the clustering result;
[0119] Specifically, a sequence of ratios obtained by dividing the discretized fifth signal and the sixth signal, i.e., the target sequence, is obtained, and then the number of clusters of the sequence of quotients, i.e., the number of local discharge sources, is analyzed based on the data density clustering algorithm OPTICS clustering algorithm, and then the fifth signal and the sixth signal are clustered based on the number of local discharge sources through the K-means clustering algorithm, and an estimated mixing matrix is constructed according to the clustering results.
[0120] The third calculation unit 40 is used to perform signal reconstruction according to the estimated mixing matrix, the fifth signal and the sixth signal through an orthogonal matching pursuit algorithm to obtain a target signal, where the target signal is an actual discharge signal of the transformer.
[0121] Specifically, based on the above-mentioned estimated mixing matrix, the fifth signal and the sixth signal are expressed in a mixed form in vector form, and the expression result is reconstructed by an orthogonal matching pursuit algorithm to obtain the target signal, that is, the actual discharge signal of the transformer is extracted.
[0122] Through this embodiment, the acquisition unit monitors the discharge signals at different positions of the transformer through the first sensor and the second sensor respectively to obtain the first signal and the second signal; the first calculation unit processes the first signal and the second signal through wavelet transform to eliminate noise respectively to obtain the third signal and the fourth signal, and sparsely decomposes the third signal and the fourth signal to obtain the fifth signal and the sixth signal; the second calculation unit obtains the target sequence according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, and clusters the target sequence through the OPTICS clustering algorithm to obtain the number of clusters, clusters the fifth signal and the sixth signal based on the number of clusters through the K-means clustering algorithm and constructs an estimated mixing matrix according to the clustering results; the third calculation unit reconstructs the signal through the orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain the target signal, and the target signal is the actual discharge signal of the transformer. The present application monitors a signal sequence through two sensors distributed at different positions, performs sparseness on the signal sequence, divides the signal sequence to obtain a sequence of quotients, determines the number of clusters based on the sequence of quotients through a data density clustering algorithm OPTICS, obtains the number of local discharge sources, and then determines an estimation matrix based on the number of local discharge sources through K-means clustering, reconstructs the sensor signal through the estimation matrix through a compressed sensing algorithm and an orthogonal matching pursuit algorithm to obtain a transformer local discharge signal. The method uses only two sensors and does not require a sampling frequency that is higher than twice the frequency of the local discharge source signal to restore the original signal, thereby solving the problem of high cost of transformer local discharge signal reconstruction in the prior art.
[0123] In order to obtain the third signal and the fourth signal, in an optional implementation manner, the first calculation unit includes:
[0124] A first acquisition module is used to acquire multiple wavelet transform scales, and process the first signal and the second signal based on each of the wavelet transform scales to obtain corresponding wavelet transform signals;
[0125] In the specific implementation, the interference sources of partial discharge signals are noise signals of mechanical vibration of transformers, noise signals of operation of other electrical equipment near transformers, communication noise and Gaussian noise. Among them, the frequency of mechanical vibration noise is relatively low, generally below 50kHz, while the frequency of corona noise is relatively high, basically above MHz, and the frequency of communication interference noise is above 500kHz. The characteristic of Gaussian noise is that its energy density distribution is the same in all frequency bands. Wavelet transform can analyze the frequency of the collected signal as the measurement sequence changes, as well as the distribution of amplitude at different frequencies, and can filter out the above noise.
[0126] Specifically, the first signal and the second signal are decomposed by each of the wavelet transform scales, and the wavelet coefficients at each scale are denoised to obtain the wavelet transform signal.
[0127] The first calculation module is used to perform inverse wavelet transform on the corresponding wavelet transform signal to obtain the third signal and the fourth signal.
[0128] Specifically, the wavelet inverse transform is performed on the wavelet transformed signal to obtain the third signal and the fourth signal mentioned above
[0129] In order to obtain the fifth signal and the sixth signal, in an optional implementation manner, the first calculation unit further includes:
[0130] The second acquisition module is used to obtain a preset step length, and to perform the sparse decomposition of the third signal by short-time Fourier transform according to the preset step length to obtain the fifth signal:
[0131]
[0132] Wherein, ω is the preset step size, x1(i) is the fifth signal, is the third signal, w(im) is the window function;
[0133] Specifically, since the frequencies of the local discharge source signals are different, short-time Fourier transform can be used to sparsely decompose the sampled signals and decompose the signals into discrete signals, wherein the formula for decomposing the third signal to obtain the fifth signal is shown above, and in one embodiment, the window function uses a Hamming window.
[0134] The second calculation module is used to perform the sparse decomposition on the fourth signal through short-time Fourier transform according to the preset step size to obtain the sixth signal:
[0135]
[0136] Wherein, x2(i) is the sixth signal mentioned above, This is the fourth signal mentioned above.
[0137] Specifically, similarly, the sampled signal is sparsely decomposed based on short-time Fourier transform to decompose the signal into discrete signals, wherein the formula for decomposing the fourth signal to obtain the sixth signal is as shown above.
[0138] In order to obtain the above target sequence, in an optional implementation, the above second calculation unit includes:
[0139] The third calculation module is used to sequentially calculate the ratio of each of the above elements in the above fifth signal to the corresponding element in the above sixth signal to obtain multiple target values:
[0140]
[0141] Among them, C 21 (i) is the above target value, a 11 and a 21 is the element in the above mixing matrix;
[0142] Specifically, the present application sets a method for calculating the ratio of each element in the fifth signal to the corresponding element in the sixth signal to obtain multiple target values C 21 (i).
[0143] The first construction module is used to construct a corresponding sequence according to each of the above target values to obtain the above target sequence.
[0144] Specifically, a corresponding sequence is constructed according to the order and ratio of each element to obtain the above target sequence.
[0145] In the above embodiment, after the signal is sparsely processed, it can be considered that at any time, there is only one partial discharge source signal, and the other partial discharge sources are not discharged. The signal at this time satisfies or Then we can determine C 21 (i) When there are N values, it is determined that there are N partial discharge source signals.
[0146] Furthermore, due to the presence of noise interference, the C 21 The value of (i) may not be able to be accurately taken as N values, so this application sets a clustering algorithm to determine C 21 (i) The number of classifications is determined as the number of partial discharge source signals.
[0147] In order to determine the number of partial discharge sources, in an optional implementation, the second calculation unit further includes:
[0148] A first determination module, used for determining each of the above ratios in the above target sequence as a sample point to obtain a first data set;
[0149] Specifically, based on C 21 (i) Construct sample points to obtain the first data set.
[0150] A third acquisition module is used to obtain a first neighborhood radius and a first target point number, traverse the sample point in the first data set according to the first neighborhood radius and the first target point number, and determine the sample point as a core point when the number of sample points in the neighborhood corresponding to the sample point is greater than the first target point number;
[0151] Specifically, a neighborhood radius is set and a parameter value is set to obtain the first target point number, and all sample points in the first data set are judged according to the neighborhood radius and the first target point number to determine the core point.
[0152] A fourth calculation module, used to calculate the core distance between the sample point and the core point, and determine the corresponding reachable distance according to the core distance corresponding to each of the sample points;
[0153] Specifically, the core distance and the reachable distance are determined according to the core points and the sample points, respectively.
[0154] The second determination module is used to sort the sample points according to the reachable distance, determine the cluster structure according to the sorting result, and determine the number of clusters according to the cluster structure.
[0155] Specifically, the affiliation between the sample points and the core points is further determined by sorting the reachable distances corresponding to the above sample points, determining the clustering structure according to the sorting results, and then completing clustering to determine the above cluster number, that is, the number of local discharge sources.
[0156] In order to determine the estimated mixing matrix, in an optional implementation, the second calculation unit further includes:
[0157] A fifth calculation module is used to perform normalization processing on the fifth signal and the sixth signal:
[0158]
[0159] Wherein, x'1(i) is the fifth signal, x2(i) is the sixth signal, x'1(i) is the normalized fifth signal, and x'2(i) is the normalized sixth signal;
[0160] Specifically, in order to reduce the computational complexity, the fifth signal x'1(i) and the sixth signal x2(i) are normalized as shown in the above formula.
[0161] A drawing module, used for drawing a scatter plot by taking each of the above elements in the normalized fifth signal as an x-axis coordinate and each of the above elements in the normalized sixth signal as a y-axis coordinate;
[0162] Specifically, a scatter plot is drawn in an orthogonal coordinate system with the normalized fifth signal x'1(i) as the x-axis coordinate parameter and the normalized sixth signal x'2(i) as the y-axis coordinate parameter. At this time, all the scattered signals are distributed within a unit circle.
[0163] The sixth calculation module is used to determine the target axis according to the preset coordinates, and update the scatter plot by mirroring based on any side of the target axis:
[0164] (|x'1(i)||x'2(i)|);
[0165] Specifically, the scatter plot located in the lower semicircle is mirrored to the upper semicircle, and the scatter plot coordinates can be expressed according to the above formula.
[0166] A clustering module, used to determine the cluster center according to the scatter plot and the number of clusters by using a K-means clustering algorithm, and perform clustering based on the cluster center by using the K-means clustering algorithm until the number of iterations reaches a preset number;
[0167] Specifically, the cluster center of the scatter point distribution is calculated according to the updated scatter plot by using the K-means clustering algorithm, the number of clusters is determined to be M according to the number of source signals M, and the K-means clustering algorithm is iterated until a preset maximum number of iterations is reached.
[0168] The second construction module is used to construct the estimated mixing matrix according to the updated cluster centers:
[0169]
[0170] in, is the estimated mixing matrix, h 11 …h 2M is the horizontal or vertical coordinate of the above cluster center.
[0171] Specifically, after the K-means clustering algorithm is iterated, M cluster centers are obtained, which are expressed as (h 11 ,h 12 ), (h21, h 22 )…(h M1 ,h M2 ). Then, the estimated mixing matrix is constructed according to the above cluster centers as shown above.
[0172] In order to reconstruct the fifth signal and the sixth signal, in an optional implementation manner, the third calculation unit includes:
[0173] The third building module is used to build a target formula according to the fifth signal, the sixth signal and the estimated mixing matrix:
[0174] X = AS;
[0175]
[0176] Wherein, X is a matrix representation of the fifth signal and the sixth signal, A is a mixed matrix, and S is a partial discharge signal of the transformer;
[0177] Specifically, assuming there are three local discharge sources, the signal monitored by the sensor can be expressed as:
[0178]
[0179] Among them, s1(i), s2(i), and s3(i) represent the signals emitted by three local discharge sources, and L is the signal length, which is then converted into a matrix representation: X = AS, a 11 、a 12 、a 13 、a 21 、a 22 、a 23 Represents the elements of the mixing matrix, substituted into the above estimated mixing matrix That's it.
[0180] The fourth building block is used to construct a diagonal matrix based on the above estimated mixing matrix:
[0181]
[0182] Specifically, a diagonal matrix is constructed according to the above estimated mixing matrix as shown in the above formula.
[0183] A fifth building block is used to reconstruct the fifth signal and the sixth signal according to the diagonal matrix and the target formula:
[0184]
[0185] Specifically, based on the above, the above diagonal matrix is substituted into the expression of the signal monitored by the above sensor to be matrixed as shown above, and further based on the above matrix, the source signal is reconstructed by the orthogonal matching pursuit algorithm to obtain the above target signal.
[0186] In one embodiment of the present application, reconstructing a source signal by using an orthogonal matching pursuit algorithm includes:
[0187] 1. Set the residual matrix r0, the number of iterations and an empty matrix to complete the algorithm initialization;
[0188] 2. Find the column n in the Θ matrix that maximizes the residual correlation k ;
[0189] 3. Use the least squares method to find an approximate solution, ensure the minimum residual, and update the coefficients;
[0190] 4. Update the residual, and then repeat steps 2 to 4 until the number of iterations reaches the maximum.
[0191] Output coefficient vector, that is, the above vector s.
[0192] The above-mentioned reconstruction device of partial discharge signal based on compressed sensing includes a processor and a memory, and the above-mentioned acquisition unit, the first calculation unit, the second calculation unit and the third calculation unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in the form of any combination.
[0193] The processor includes a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be set, and the cost of signal reconstruction of the transformer electric signal can be reduced by adjusting the kernel parameters.
[0194] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0195] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program. When the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for reconstructing partial discharge signals based on compressed sensing.
[0196] Specifically, the reconstruction method of partial discharge signal based on compressed sensing includes:
[0197] Step S201, respectively monitoring discharge signals at different positions of the transformer by means of a first sensor and a second sensor to obtain a first signal and a second signal;
[0198] Specifically, two local discharge source sensors, namely the first sensor and the second sensor, are used to monitor the local discharge signal of the transformer to obtain the first signal and the second signal
[0199] Step S202, processing the first signal and the second signal by wavelet transform to eliminate noise, respectively, to obtain a third signal and a fourth signal, and performing sparse decomposition on the third signal and the fourth signal to obtain a fifth signal and a sixth signal;
[0200] Specifically, the noise signals mainly existing in the partial discharge signal are caused by mechanical vibration of the transformer, operation of other electrical equipment near the transformer, communication noise or Gaussian noise. Wavelet transform is used to determine the frequency of the signal changing with the observation sequence and the amplitude distribution at different frequencies, and then noise reduction is achieved to obtain the third signal and the fourth signal, and then based on the different frequencies of different partial discharge sources, the third signal and the fourth signal are sparsely decomposed to obtain the fifth signal and the sixth signal.
[0201] Step S203, obtaining a target sequence according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, clustering the target sequence using the OPTICS clustering algorithm to obtain a cluster number, clustering the fifth signal and the sixth signal based on the cluster number using the K-means clustering algorithm, and constructing an estimated mixing matrix according to the clustering results;
[0202] Specifically, a sequence of ratios obtained by dividing the discretized fifth signal and the sixth signal, i.e., the target sequence, is obtained, and then the number of clusters of the sequence of quotients, i.e., the number of local discharge sources, is analyzed based on the data density clustering algorithm OPTICS clustering algorithm, and then the fifth signal and the sixth signal are clustered based on the number of local discharge sources through the K-means clustering algorithm, and an estimated mixing matrix is constructed according to the clustering results.
[0203] Step S204, performing signal reconstruction by using an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal, where the target signal is an actual discharge signal of the transformer.
[0204] Specifically, based on the above-mentioned estimated mixing matrix, the fifth signal and the sixth signal are expressed in a mixed form in vector form, and the expression result is reconstructed by an orthogonal matching pursuit algorithm to obtain the target signal, that is, the actual discharge signal of the transformer is extracted.
[0205] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the program executes the above-mentioned method for reconstructing partial discharge signals based on compressed sensing when running.
[0206] Specifically, the reconstruction method of partial discharge signal based on compressed sensing includes:
[0207] Step S201, respectively monitoring discharge signals at different positions of the transformer by means of a first sensor and a second sensor to obtain a first signal and a second signal;
[0208] Specifically, two local discharge source sensors, namely the first sensor and the second sensor, are used to monitor the local discharge signal of the transformer to obtain the first signal and the second signal
[0209] Step S202, processing the first signal and the second signal by wavelet transform to eliminate noise, respectively, to obtain a third signal and a fourth signal, and performing sparse decomposition on the third signal and the fourth signal to obtain a fifth signal and a sixth signal;
[0210] Specifically, the noise signals mainly existing in the partial discharge signal are caused by mechanical vibration of the transformer, operation of other electrical equipment near the transformer, communication noise or Gaussian noise. Wavelet transform is used to determine the frequency of the signal changing with the observation sequence and the amplitude distribution at different frequencies, and then noise reduction is achieved to obtain the third signal and the fourth signal, and then based on the different frequencies of different partial discharge sources, the third signal and the fourth signal are sparsely decomposed to obtain the fifth signal and the sixth signal.
[0211] Step S203, obtaining a target sequence according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, clustering the target sequence using the OPTICS clustering algorithm to obtain a cluster number, clustering the fifth signal and the sixth signal based on the cluster number using the K-means clustering algorithm, and constructing an estimated mixing matrix according to the clustering results;
[0212] Specifically, a sequence of ratios obtained by dividing the discretized fifth signal and the sixth signal, i.e., the target sequence, is obtained, and then the number of clusters of the sequence of quotients, i.e., the number of local discharge sources, is analyzed based on the data density clustering algorithm OPTICS clustering algorithm, and then the fifth signal and the sixth signal are clustered based on the number of local discharge sources through the K-means clustering algorithm, and an estimated mixing matrix is constructed according to the clustering results.
[0213] Step S204, performing signal reconstruction by using an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal, where the target signal is an actual discharge signal of the transformer.
[0214] Specifically, based on the above-mentioned estimated mixing matrix, the fifth signal and the sixth signal are expressed in a mixed form in vector form, and the expression result is reconstructed by an orthogonal matching pursuit algorithm to obtain the target signal, that is, the actual discharge signal of the transformer is extracted.
[0215] An embodiment of the present invention provides a power system, the power system comprising a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0216] Step S201, respectively monitoring discharge signals at different positions of the transformer by means of a first sensor and a second sensor to obtain a first signal and a second signal;
[0217] Specifically, two local discharge source sensors, namely the first sensor and the second sensor, are used to monitor the local discharge signal of the transformer to obtain the first signal and the second signal
[0218] Step S202, processing the first signal and the second signal by wavelet transform to eliminate noise, respectively, to obtain a third signal and a fourth signal, and performing sparse decomposition on the third signal and the fourth signal to obtain a fifth signal and a sixth signal;
[0219] Specifically, the noise signals mainly existing in the partial discharge signal are caused by mechanical vibration of the transformer, operation of other electrical equipment near the transformer, communication noise or Gaussian noise. Wavelet transform is used to determine the frequency of the signal changing with the observation sequence and the amplitude distribution at different frequencies, and then noise reduction is achieved to obtain the third signal and the fourth signal, and then based on the different frequencies of different partial discharge sources, the third signal and the fourth signal are sparsely decomposed to obtain the fifth signal and the sixth signal.
[0220] Step S203, obtaining a target sequence according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, clustering the target sequence using the OPTICS clustering algorithm to obtain a cluster number, clustering the fifth signal and the sixth signal based on the cluster number using the K-means clustering algorithm, and constructing an estimated mixing matrix according to the clustering results;
[0221] Specifically, a sequence of ratios obtained by dividing the discretized fifth signal and the sixth signal, i.e., the target sequence, is obtained, and then the number of clusters of the sequence of quotients, i.e., the number of local discharge sources, is analyzed based on the data density clustering algorithm OPTICS clustering algorithm, and then the fifth signal and the sixth signal are clustered based on the number of local discharge sources through the K-means clustering algorithm, and an estimated mixing matrix is constructed according to the clustering results.
[0222] Step S204, performing signal reconstruction by using an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal, where the target signal is an actual discharge signal of the transformer.
[0223] Specifically, based on the above-mentioned estimated mixing matrix, the fifth signal and the sixth signal are expressed in a mixed form in vector form, and the expression result is reconstructed by an orthogonal matching pursuit algorithm to obtain the target signal, that is, the actual discharge signal of the transformer is extracted.
[0224] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0225] Step S201, respectively monitoring discharge signals at different positions of the transformer by means of a first sensor and a second sensor to obtain a first signal and a second signal;
[0226] Specifically, two local discharge source sensors, namely the first sensor and the second sensor, are used to monitor the local discharge signal of the transformer to obtain the first signal and the second signal
[0227] Step S202, processing the first signal and the second signal by wavelet transform to eliminate noise, respectively, to obtain a third signal and a fourth signal, and performing sparse decomposition on the third signal and the fourth signal to obtain a fifth signal and a sixth signal;
[0228] Specifically, the noise signals mainly existing in the partial discharge signal are caused by mechanical vibration of the transformer, operation of other electrical equipment near the transformer, communication noise or Gaussian noise. Wavelet transform is used to determine the frequency of the signal changing with the observation sequence and the amplitude distribution at different frequencies, and then noise reduction is achieved to obtain the third signal and the fourth signal, and then based on the different frequencies of different partial discharge sources, the third signal and the fourth signal are sparsely decomposed to obtain the fifth signal and the sixth signal.
[0229] Step S203, obtaining a target sequence according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, clustering the target sequence using the OPTICS clustering algorithm to obtain a cluster number, clustering the fifth signal and the sixth signal based on the cluster number using the K-means clustering algorithm, and constructing an estimated mixing matrix according to the clustering results;
[0230] Specifically, a sequence of ratios obtained by dividing the discretized fifth signal and the sixth signal, i.e., the target sequence, is obtained, and then the number of clusters of the sequence of quotients, i.e., the number of local discharge sources, is analyzed based on the data density clustering algorithm OPTICS clustering algorithm, and then the fifth signal and the sixth signal are clustered based on the number of local discharge sources through the K-means clustering algorithm, and an estimated mixing matrix is constructed according to the clustering results.
[0231] Step S204, performing signal reconstruction by using an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal, where the target signal is an actual discharge signal of the transformer.
[0232] Specifically, based on the above-mentioned estimated mixing matrix, the fifth signal and the sixth signal are expressed in a mixed form in vector form, and the expression result is reconstructed by an orthogonal matching pursuit algorithm to obtain the target signal, that is, the actual discharge signal of the transformer is extracted.
[0233] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0234] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0235] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.
[0236] 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.
[0237] 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.
[0238] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0239] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0240] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0241] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0242] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0243] 1) The method for reconstructing partial discharge signals based on compressed sensing of the present application, first, monitor the discharge signals at different positions of the transformer by means of a first sensor and a second sensor respectively, and obtain a first signal and a second signal; then, process the first signal and the second signal by means of wavelet transform respectively to eliminate noise, and obtain a third signal and a fourth signal, and sparsely decompose the third signal and the fourth signal to obtain a fifth signal and a sixth signal; thereafter, obtain a target sequence according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, and cluster the target sequence by means of the OPTICS clustering algorithm to obtain the number of clusters, cluster the fifth signal and the sixth signal by means of the K-means clustering algorithm based on the number of clusters, and construct an estimated mixing matrix according to the clustering results; finally, reconstruct the signal by means of the orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain the target signal, and the target signal is the actual discharge signal of the transformer. The present application monitors a signal sequence through two sensors distributed at different positions, performs sparseness on the signal sequence, divides the signal sequence to obtain a sequence of quotients, determines the number of clusters based on the sequence of quotients through a data density clustering algorithm OPTICS, obtains the number of local discharge sources, and then determines an estimation matrix based on the number of local discharge sources through K-means clustering, reconstructs the sensor signal through the estimation matrix through a compressed sensing algorithm and an orthogonal matching pursuit algorithm to obtain a transformer local discharge signal. The method uses only two sensors and does not require a sampling frequency that is higher than twice the frequency of the local discharge source signal to restore the original signal, thereby solving the problem of high cost of transformer local discharge signal reconstruction in the prior art.
[0244] 2) The device for reconstructing partial discharge signals based on compressed sensing of the present application comprises: an acquisition unit that monitors discharge signals at different positions of the transformer through a first sensor and a second sensor respectively to obtain a first signal and a second signal; a first calculation unit that processes the first signal and the second signal through wavelet transform to eliminate noise respectively to obtain a third signal and a fourth signal, and sparsely decomposes the third signal and the fourth signal to obtain a fifth signal and a sixth signal; a second calculation unit that obtains a target sequence according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, and clusters the target sequence through the OPTICS clustering algorithm to obtain the number of clusters, clusters the fifth signal and the sixth signal based on the number of clusters through the K-means clustering algorithm, and constructs an estimated mixing matrix according to the clustering results; a third calculation unit that reconstructs the signal through an orthogonal matching pursuit algorithm based on the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal, and the target signal is the actual discharge signal of the transformer. The present application monitors a signal sequence through two sensors distributed at different positions, performs sparseness on the signal sequence, divides the signal sequence to obtain a sequence of quotients, determines the number of clusters based on the sequence of quotients through a data density clustering algorithm OPTICS, obtains the number of local discharge sources, and then determines an estimation matrix based on the number of local discharge sources through K-means clustering, reconstructs the sensor signal through the estimation matrix through a compressed sensing algorithm and an orthogonal matching pursuit algorithm to obtain a transformer local discharge signal. The method uses only two sensors and does not require a sampling frequency that is higher than twice the frequency of the local discharge source signal to restore the original signal, thereby solving the problem of high cost of transformer local discharge signal reconstruction in the prior art.
[0245] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for reconstructing partial discharge signals based on compressed sensing, characterized in that: include: The discharge signals at different positions of the transformer are respectively monitored by the first sensor and the second sensor to obtain the first signal and the second signal; Processing the first signal and the second signal respectively by wavelet transform to eliminate noise to obtain a third signal and a fourth signal, and performing sparse decomposition on the third signal and the fourth signal to obtain a fifth signal and a sixth signal; A target sequence is obtained according to the ratio of each element of the fifth signal to the corresponding element of the sixth signal, and the target sequence is clustered by an OPTICS clustering algorithm to obtain a cluster number, and the fifth signal and the sixth signal are clustered based on the cluster number by a K-means clustering algorithm, and an estimated mixing matrix is constructed according to the clustering result; A target signal is obtained by performing signal reconstruction based on the estimated mixing matrix, the fifth signal and the sixth signal through an orthogonal matching pursuit algorithm. The target signal is an actual discharge signal of the transformer.
2. The method according to claim 1, characterized in that: The first signal and the second signal are processed by wavelet transform to eliminate noise, respectively, to obtain a third signal and a fourth signal, including: Acquire multiple wavelet transform scales, and process the first signal and the second signal based on each of the wavelet transform scales to obtain corresponding wavelet transform signals; The third signal and the fourth signal are obtained by performing inverse wavelet transform on the corresponding wavelet transform signal.
3. The method according to claim 1, characterized in that Sparsely decomposing the third signal and the fourth signal to obtain a fifth signal and a sixth signal, comprising: Obtain a preset step size, and perform the sparse decomposition on the third signal by short-time Fourier transform according to the preset step size to obtain the fifth signal: Wherein, ω is the preset step size, x1(i) is the fifth signal, is the third signal, w(im) is the window function; The sixth signal is obtained by performing the sparse decomposition on the fourth signal through short-time Fourier transform according to the preset step size: Wherein, x2(i) is the sixth signal, is the fourth signal.
4. The method according to claim 1, characterized in that: A target sequence is obtained according to the ratio of each element of the fifth signal and the sixth signal, including: The ratios of each of the elements in the fifth signal to the corresponding elements in the sixth signal are calculated in sequence to obtain a plurality of target values: Among them, C 21 (i) is the target value, a 11 and a 21 is an element in the mixing matrix; A corresponding sequence is constructed according to each of the target values to obtain the target sequence.
5. The method according to claim 1, characterized in that: The target sequence is clustered by the OPTICS clustering algorithm to obtain the number of clusters, including: Determine each of the ratios in the target sequence as a sample point to obtain a first data set; Obtaining a first neighborhood radius and a first target point number, traversing the sample point in the first data set according to the first neighborhood radius and the first target point number, and determining the sample point as a core point when the number of sample points in the neighborhood corresponding to the sample point is greater than the first target point number; Calculating the core distance between the sample point and the core point, and determining the corresponding reachable distance according to the core distance corresponding to each sample point; The sample points are sorted according to the reachable distances, a clustering structure is determined according to the sorting result, and the number of clusters is determined according to the clustering structure.
6. The method according to claim 1, characterized in that Clustering the fifth signal and the sixth signal based on the number of clusters by using a K-means clustering algorithm and constructing an estimated mixing matrix according to the clustering result, including: The fifth signal and the sixth signal are normalized: Wherein, x′1(i) is the fifth signal, x2(i) is the sixth signal, x′1(i) is the normalized fifth signal, and x′2(i) is the normalized sixth signal; Draw a scatter plot by taking each element in the normalized fifth signal as an x-axis coordinate and each element in the normalized sixth signal as a y-axis coordinate; Determine the target axis according to the preset coordinates, and update the scatter plot by mirroring based on any side of the target axis: (|x′1(i)| |x′2(i)|); Determining a cluster center according to the scatter plot and the number of clusters by using a K-means clustering algorithm, and performing clustering based on the cluster center by using the K-means clustering algorithm until the number of iterations reaches a preset number; Construct the estimated mixing matrix according to the updated cluster centers: in, is the estimated mixing matrix, h 11 …h 2M is the horizontal coordinate or vertical coordinate of the cluster center.
7. The method according to claim 1, characterized in that Reconstructing a target signal by using an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal, and the sixth signal includes: A target formula is constructed according to the fifth signal, the sixth signal and the estimated mixing matrix: X = AS; Wherein, X is a matrix representation of the fifth signal and the sixth signal, A is a mixing matrix, and S is a partial discharge signal of the transformer; Construct a diagonal matrix based on the estimated mixing matrix: The fifth signal and the sixth signal are reconstructed according to the diagonal matrix and the target formula:
8. A device for reconstructing partial discharge signals based on compressed sensing, characterized in that: The device comprises: An acquisition unit, configured to respectively monitor discharge signals at different positions of the transformer through a first sensor and a second sensor to obtain a first signal and a second signal; A first computing unit is configured to process the first signal and the second signal respectively by wavelet transform to eliminate noise, thereby obtaining a third signal and a fourth signal, and to perform sparse decomposition on the third signal and the fourth signal to obtain a fifth signal and a sixth signal; a second calculation unit, configured to obtain a target sequence according to a ratio of each element of the fifth signal to a corresponding element of the sixth signal, cluster the target sequence using an OPTICS clustering algorithm to obtain a number of clusters, cluster the fifth signal and the sixth signal based on the number of clusters using a K-means clustering algorithm, and construct an estimated mixing matrix according to the clustering result; The third calculation unit is used to perform signal reconstruction through an orthogonal matching pursuit algorithm according to the estimated mixing matrix, the fifth signal and the sixth signal to obtain a target signal, where the target signal is an actual discharge signal of the transformer.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. A power system, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.
