Transformer fault monitoring method and system based on artificial intelligence
Through artificial intelligence technology, the spectrum and phase information of the transformer are used to calculate multi-head attention, combined with the multi-layer perceptron, to improve the accuracy of transformer fault identification and solve the problem of insufficient identification accuracy in the existing technology.
Patent Information
- Application Number
- CN202410946571.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Transformer fault identification in the existing technology is not accurate enough, especially the identification of early or minor faults is difficult, and vibration analysis is greatly affected by noise and the environment.
Using an artificial intelligence-based method, we collect the vibration information of the transformer, perform discrete Fourier transform to obtain the spectrum diagram and phase diagram, use the attention weight of the spectrum matrix and phase matrix to calculate the multi-head attention, and combine it with the multi-layer perceptron to determine the existence of the fault. or not.
The accuracy of transformer fault identification is improved. By combining spectrum and phase information, the impact of noise is reduced and the detection ability of early faults is enhanced.
Smart Images

Figure CN118690329A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a transformer fault monitoring method and system based on artificial intelligence. Background Art
[0002] Transformers are core equipment in power grids. Transformers can increase or decrease voltage, thus achieving long-distance power transmission and safe power distribution. Power plants usually generate high-voltage electricity, and the voltage is increased by step-up transformers so that the electricity can be efficiently transmitted on transmission lines to loads far away from the power plants. After reaching the loads, step-down transformers reduce the voltage to a level suitable for users to ensure the safe and reliable supply of electricity. The operating condition of the transformer directly affects the reliability of the entire power system. Transformer failure may cause power outages, equipment damage, and even cause larger power grid accidents.
[0003] The main fault monitoring methods for transformers include electrical parameter monitoring, oil quality analysis, infrared thermal imaging, and vibration analysis. Although electrical parameter and oil quality analysis can accurately detect the type of fault, it is difficult to identify early or minor faults. Infrared thermal imaging and vibration analysis can help to detect faults early, but they are greatly affected by the environment. For example, infrared thermal imaging is easily affected by weather and temperature. Vibration analysis can detect abnormalities before obvious faults occur in the transformer, and can promptly detect early damage to the internal components of the transformer, such as loose windings and core vibration. The vibration of the transformer provides rich frequency and time domain data, and the fault information in the vibration signal can be deeply mined through spectrum analysis, waveform analysis, etc. However, due to the influence of noise and analysis methods, the fault recognition rate needs to be further improved. Summary of the invention
[0004] In order to improve the accuracy of transformer fault identification, the present invention provides a transformer fault monitoring method based on artificial intelligence, the method comprising the following steps: Collect vibration information of the transformer within a preset time period, divide the vibration information into frames and add windows to obtain each frame of signal, perform discrete Fourier transform on each frame of signal, and then obtain a spectrum diagram and a phase diagram of each frame, sample the spectrum diagram and the phase diagram respectively to obtain a spectrum sequence and a phase sequence of each frame, and splice the normalized spectrum sequences and phase sequences of all frames within the preset time period into a spectrum matrix and a phase matrix respectively; The attention weights of the spectrum matrix and the attention weights of the phase matrix are used to calculate the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix. The input of the preset model is obtained according to the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix. The output of the preset model is used as the input of the multi-layer perceptron. According to the output of the multi-layer perceptron, it is determined whether the transformer is faulty.
[0005] Preferably, the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix are calculated by using the attention weight of the spectrum matrix and the attention weight of the phase matrix, specifically: Calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the spectrum matrix, and calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the phase matrix; Calculate the attention weight and self-attention of each attention head of the spectrum matrix, and calculate the attention weight and self-attention of each attention head of the phase matrix; Get the serial number of each attention head of the spectrum matrix and the serial number of each attention head of the phase matrix, multiply the attention weight of the spectrum matrix attention head with the same serial number and the value matrix of the phase matrix attention head to obtain the spectrum weight attention of the phase matrix, and multiply the attention weight of the phase matrix attention head with the same serial number and the value matrix of the spectrum matrix attention head to obtain the phase weight attention of the spectrum matrix; The self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, and the self-attention and the spectrum weight attention of the phase matrix are fused to obtain the multi-head attention of the phase matrix.
[0006] Preferably, the self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, specifically: The self-attention and the phase weight attention are horizontally concatenated and multiplied with the learnable weight matrix to obtain the multi-head attention of the spectrum matrix.
[0007] Preferably, the self-attention and the spectrum weight attention of the phase matrix are fused to obtain the multi-head attention of the phase matrix, specifically: The self-attention and the spectral weight attention levels are concatenated and multiplied with the learnable weight matrix to obtain a multi-head attention of the phase matrix.
[0008] Preferably, the spectrum diagram and the phase diagram are sampled respectively to obtain a spectrum sequence and a phase sequence of each frame, specifically: The spectrum graph is divided into multiple intervals, and the farther away from the center of the spectrum graph, the wider the interval is; the average value of the spectrum graph in each interval is used as the sampling value to obtain the spectrum sequence of each frame; The phase map is divided into multiple intervals, and the farther away from the center of the phase map, the wider the interval; the average value of the phase map in each interval is used as the sampling value to obtain the phase sequence of each frame.
[0009] On the other hand, the present invention also provides a transformer fault monitoring system based on artificial intelligence, the system comprising the following modules: A vibration collection and processing module is used to collect vibration information of the transformer within a preset time period, divide the vibration information into frames and window it to obtain each frame of signal, perform discrete Fourier transform on each frame of signal to obtain a spectrum diagram and a phase diagram of each frame, sample the spectrum diagram and the phase diagram to obtain a spectrum sequence and a phase sequence of each frame, and splice the normalized spectrum sequences and phase sequences of all frames within the preset time period into a spectrum matrix and a phase matrix respectively; The fault monitoring module is used to calculate the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix using the attention weights of the spectrum matrix and the attention weights of the phase matrix, obtain the input of the preset model based on the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix, use the output of the preset model as the input of the multi-layer perceptron, and determine whether the transformer is faulty based on the output of the multi-layer perceptron.
[0010] Preferably, the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix are calculated by using the attention weight of the spectrum matrix and the attention weight of the phase matrix, specifically: Calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the spectrum matrix, and calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the phase matrix; Calculate the attention weight and self-attention of each attention head of the spectrum matrix, and calculate the attention weight and self-attention of each attention head of the phase matrix; Get the serial number of each attention head of the spectrum matrix and the serial number of each attention head of the phase matrix, multiply the attention weight of the spectrum matrix attention head with the same serial number and the value matrix of the phase matrix attention head to obtain the spectrum weight attention of the phase matrix, and multiply the attention weight of the phase matrix attention head with the same serial number and the value matrix of the spectrum matrix attention head to obtain the phase weight attention of the spectrum matrix; The self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, and the self-attention and the spectrum weight attention of the phase matrix are fused to obtain the multi-head attention of the phase matrix.
[0011] Preferably, the self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, specifically: The self-attention and the phase weight attention are horizontally concatenated and multiplied with the learnable weight matrix to obtain the multi-head attention of the spectrum matrix.
[0012] Preferably, the self-attention and the spectrum weight attention of the phase matrix are fused to obtain the multi-head attention of the phase matrix, specifically: The self-attention and the spectral weight attention levels are concatenated and multiplied with the learnable weight matrix to obtain a multi-head attention of the phase matrix.
[0013] Preferably, the spectrum diagram and the phase diagram are sampled respectively to obtain a spectrum sequence and a phase sequence of each frame, specifically: The spectrum graph is divided into multiple intervals, and the farther away from the center of the spectrum graph, the wider the interval is; the average value of the spectrum graph in each interval is used as the sampling value to obtain the spectrum sequence of each frame; The phase map is divided into multiple intervals, and the farther away from the center of the phase map, the wider the interval; the average value of the phase map in each interval is used as the sampling value to obtain the phase sequence of each frame.
[0014] Finally, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described above is implemented.
[0015] In view of the problem that the vibration signal is not accurate enough in transformer fault identification in the prior art, the present invention not only uses the spectrum information of the vibration signal but also uses the phase information, and uses the attention weight of the spectrum matrix to determine the hotspot of the spectrum matrix, and further pays attention to the corresponding position of the phase matrix according to the hotspot; similarly, the attention weight of the phase matrix is used to determine the hotspot of the phase matrix, and further pays attention to the corresponding position of the spectrum matrix according to the hotspot. The spectrum and phase information of vibration are fully utilized, and the hotspots of the two are combined to improve the accuracy of identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a flow chart of Embodiment 1; Figure 2 This is a schematic diagram of the installation position of the vibration sensor on the transformer; Figure 3 It is a schematic diagram of a waveform diagram, a spectrum diagram, and a phase diagram; Figure 4 This is a structural diagram of the second embodiment. DETAILED DESCRIPTION
[0017] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. 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.
[0019] In the first embodiment, the present invention provides a transformer fault monitoring method based on artificial intelligence, such as Figure 1 As shown, the method comprises the following steps: S1, collecting vibration information of the transformer within a preset time period, dividing the vibration information into frames and adding windows to obtain each frame of signal, performing Fourier transform on each frame of signal, and then obtaining a spectrum diagram and a phase diagram of each frame, sampling the spectrum diagram and the phase diagram respectively to obtain a spectrum sequence and a phase sequence of each frame, and splicing the normalized spectrum sequences and phase sequences of all frames within the preset time period into a spectrum matrix and a phase matrix respectively; Installing a voiceprint sensor or vibration sensor on the transformer can collect the vibration information of the transformer. Figure 2 The installation position of the vibration sensor on the transformer is shown (in the box in the figure). The vibration sensor can also be installed inside the transformer or other parts, which will not be described in detail here. After collecting the vibration information of the transformer, the vibration information is preprocessed. The preprocessing includes but is not limited to denoising, and then the vibration information is framed and windowed. In this way, the signal of each frame can be obtained. The signal is discrete Fourier transformed to obtain the spectrum diagram and phase diagram of each frame. The spectrum diagram contains the frequency information of this frame, and the phase diagram contains the phase information of this frame. Figure 3The waveform diagram, spectrum diagram and phase diagram of a certain frame are shown. Since the data volume of the spectrum diagram and the phase diagram is relatively large, in order to reduce the amount of calculation, the spectrum diagram and the phase diagram are sampled or extracted respectively. There are many sampling methods, including but not limited to random sampling, equal interval sampling, etc., for example, 50 points are randomly extracted. After sampling, the spectrum sequence and phase sequence of each frame are obtained, wherein the frequencies of the same positions of the spectrum sequence and the phase sequence are the same. Among them, the Fourier transform is the FFT transform.
[0020] Since the units of spectrum and phase are different, in order to fuse the features, both are normalized. There are two ways of normalization: one is to normalize all spectrum sequences together and all phase sequences together; the other is to normalize each spectrum sequence and each phase sequence; the first normalization method is preferably used. Each frame corresponds to a spectrum sequence and a phase sequence. All spectrum sequences within the preset time period are organized into a spectrum matrix in chronological order, wherein each row in the spectrum matrix is a spectrum sequence of a frame. Similarly, a phase matrix can be obtained.
[0021] S2, using the attention weights of the spectrum matrix and the attention weights of the phase matrix to calculate the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix, according to the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix, the input of the preset model is obtained, the output of the preset model is used as the input of the multi-layer perceptron, and according to the output of the multi-layer perceptron, it is determined whether the transformer is faulty.
[0022] The phase matrix and spectrum matrix contain the phase information and spectrum information of the vibration respectively. The attention mechanism can dynamically focus on different parts and find important places. The attention mechanism is mainly reflected by the attention weight. The attention weight is calculated for the spectrum matrix and the phase matrix respectively; among which, the attention weight is the dot product of the transposed query matrix and the key matrix, adjusted by the scaling factor, and then obtained by the Softmax function.
[0023] The attention weight of the spectrum matrix focuses on the key points or hot spots in the spectrum, and these hot spots should also be focused on in the phase matrix; similarly, the attention weight of the phase matrix focuses on the key points or hot spots in the phase, and these hot spots should also be focused on in the spectrum matrix. In a specific embodiment, the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix are calculated using the attention weight of the spectrum matrix and the attention weight of the phase matrix, specifically: Calculate the self-attention result of the spectrum matrix, and calculate the attention result of the spectrum matrix with the attention weight of the phase matrix as the attention weight, and use the self-attention result and the attention result as the multi-head attention output of the spectrum matrix; Calculate the self-attention result of the phase matrix, and calculate the attention result of the phase matrix with the attention weight of the spectrum matrix as the attention weight, and use the self-attention result and the attention result as the multi-head attention output of the phase matrix.
[0024] The following is an example of the single-headed attention output of the spectrum matrix. Assuming that the attention weight of the phase matrix is W and the value matrix of the spectrum matrix is V, the attention result of the spectrum matrix with the attention weight of the phase matrix as the attention weight is WV; where W is the dot product of the query matrix of the phase matrix and the transposed key matrix, adjusted by the scaling factor, and then obtained by the Softmax function. After obtaining WV, it is concatenated with the self-attention result of the spectrum matrix to obtain the single-headed attention output. The multi-headed attention output is obtained by passing multiple single-headed attention outputs through the weight matrix, where the weight matrix is a learnable matrix that is continuously learned during training. The multi-headed attention output of the phase matrix is similar to the multi-headed attention output of the spectrum matrix, so it will not be repeated.
[0025] In yet another embodiment, the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix are calculated by using the attention weight of the spectrum matrix and the attention weight of the phase matrix, specifically: Calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the spectrum matrix, and calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the phase matrix; Calculate the attention weight and self-attention of each attention head of the spectrum matrix, and calculate the attention weight and self-attention of each attention head of the phase matrix; Obtain the serial number of each attention head of the spectrum matrix and the serial number of each attention head of the phase matrix, take the average of the attention weights of the spectrum matrix attention heads and the attention weights of the phase matrix with the same serial number as the attention weights, and use the attention weights to calculate the attention of the spectrum matrix and the attention of the phase matrix; Then, the multi-head attention result of the spectrum matrix under each sequence number and the multi-head attention result of the phase matrix under each sequence number are obtained. In this embodiment, the number of attention heads of the spectrum matrix and the number of attention heads of the phase matrix are required to be the same.
[0026] In another more detailed embodiment, the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix are calculated by using the attention weight of the spectrum matrix and the attention weight of the phase matrix, specifically: Calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the spectrum matrix, and calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the phase matrix; Calculate the attention weight and self-attention of each attention head of the spectrum matrix, and calculate the attention weight and self-attention of each attention head of the phase matrix; Get the serial number of each attention head of the spectrum matrix and the serial number of each attention head of the phase matrix, multiply the attention weight of the spectrum matrix attention head with the same serial number and the value matrix of the phase matrix attention head to obtain the spectrum weight attention of the phase matrix, and multiply the attention weight of the phase matrix attention head with the same serial number and the value matrix of the spectrum matrix attention head to obtain the phase weight attention of the spectrum matrix; The self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, and the self-attention and the spectrum weight attention of the phase matrix are fused to obtain the multi-head attention of the phase matrix.
[0027] Assume that the spectrum matrix has 3 attention heads and the phase matrix has 3 attention heads. Each attention head corresponds to a query matrix Q, a key matrix K and a value matrix V. The attention weight and self-attention corresponding to each head can be calculated through QKV. The 3 attention heads of the spectrum matrix correspond to 3 attention weights and 3 self-attentions, and the 3 attention heads of the phase matrix correspond to 3 attention weights and 3 self-attentions.
[0028] The process of multiplying the attention weights of the spectrum matrix attention head and the value matrix of the phase matrix attention head with the same serial number to obtain the spectrum weighted attention of the phase matrix, and multiplying the attention weights of the phase matrix attention head and the value matrix of the spectrum matrix attention head with the same serial number to obtain the phase weighted attention of the spectrum matrix is as follows: assuming the serial number is 1, multiply the attention weight of the first attention head of the spectrum matrix and the value matrix of the first attention head of the phase matrix to obtain a spectrum weighted attention of the phase matrix, and so on, we can get three spectrum weighted attentions of the phase matrix; similarly, we can get three phase weighted attentions of the spectrum matrix.
[0029] Furthermore, the spectrum matrix corresponds to 3 self-attentions and 3 phase weighted attentions, and the phase matrix corresponds to 3 self-attentions and 3 spectrum weighted attentions. Here, 3 is just an example. The number of attention heads in multi-head attention is not limited to 3, and can be any integer greater than 1. The number of attention heads in the spectrum matrix and the number of attention heads in the phase matrix are not required to be the same. For example, the spectrum matrix has 6 attention heads, and the phase matrix has 3 attention heads. The same serial number refers to serial numbers 1-3.
[0030] After obtaining the self-attention and the phase weight attention, the self-attention and the phase weight attention are fused to obtain the multi-head attention result of the spectrum matrix. Similarly, the multi-head attention result of the phase matrix can be obtained. In one embodiment, the self-attention and the phase weight attention are horizontally spliced and multiplied with the learnable weight matrix to obtain the multi-head attention of the spectrum matrix; the self-attention and the spectrum weight attention are horizontally spliced and multiplied with the learnable weight matrix to obtain the multi-head attention of the phase matrix. Among them, the learnable matrix corresponding to the spectrum matrix and the learnable matrix corresponding to the phase matrix are not the same matrix.
[0031] Sampling is directly related to subsequent processing. In a specific embodiment, the spectrum graph is divided into multiple intervals, and the farther the interval is from the center of the spectrum graph, the wider the interval is; the average value of the spectrum graph in each interval is used as the sampling value to obtain the spectrum sequence of each frame; the phase graph is divided into multiple intervals, and the farther the interval is from the center of the phase graph, the wider the interval is; the average value of the phase graph in each interval is used as the sampling value to obtain the phase sequence of each frame.
[0032] After obtaining the multi-head attention results of the spectrum matrix and the multi-head attention results of the phase matrix, the two are input into the preset model. In a more specific embodiment, the preset model includes two branches, the multi-head attention results of the spectrum matrix are input into one of the branches, and the multi-head attention results of the phase matrix are input into the other branch. The results output by the two branches are then fused and passed through MLP to obtain the fault result.
[0033] In another embodiment, the branch adopts the ViT-Base model, the output of each branch is CLS, the CLS outputs of two branches are spliced and input into the MLP, and whether the transformer is faulty is determined according to the output of the MLP.
[0034] In the second embodiment, the present invention also provides a transformer fault monitoring system based on artificial intelligence, such as Figure 4 As shown, the system includes the following modules: A vibration collection and processing module is used to collect vibration information of the transformer within a preset time period, divide the vibration information into frames and window it to obtain each frame of signal, perform discrete Fourier transform on each frame of signal to obtain a spectrum diagram and a phase diagram of each frame, sample the spectrum diagram and the phase diagram to obtain a spectrum sequence and a phase sequence of each frame, and splice the normalized spectrum sequences and phase sequences of all frames within the preset time period into a spectrum matrix and a phase matrix respectively; The fault monitoring module is used to calculate the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix using the attention weights of the spectrum matrix and the attention weights of the phase matrix, obtain the input of the preset model based on the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix, use the output of the preset model as the input of the multi-layer perceptron, and determine whether the transformer is faulty based on the output of the multi-layer perceptron.
[0035] Preferably, the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix are calculated by using the attention weight of the spectrum matrix and the attention weight of the phase matrix, specifically: Calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the spectrum matrix, and calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the phase matrix; Calculate the attention weight and self-attention of each attention head of the spectrum matrix, and calculate the attention weight and self-attention of each attention head of the phase matrix; Get the serial number of each attention head of the spectrum matrix and the serial number of each attention head of the phase matrix, multiply the attention weight of the spectrum matrix attention head with the same serial number and the value matrix of the phase matrix attention head to obtain the spectrum weight attention of the phase matrix, and multiply the attention weight of the phase matrix attention head with the same serial number and the value matrix of the spectrum matrix attention head to obtain the phase weight attention of the spectrum matrix; The self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, and the self-attention and the spectrum weight attention of the phase matrix are fused to obtain the multi-head attention of the phase matrix.
[0036] Preferably, the self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, specifically: The self-attention and the phase weight attention are horizontally concatenated and multiplied with the learnable weight matrix to obtain the multi-head attention of the spectrum matrix.
[0037] Preferably, the self-attention and the spectrum weight attention of the phase matrix are fused to obtain the multi-head attention of the phase matrix, specifically: The self-attention and the spectral weight attention levels are concatenated and multiplied with the learnable weight matrix to obtain a multi-head attention of the phase matrix.
[0038] Preferably, the spectrum diagram and the phase diagram are sampled respectively to obtain a spectrum sequence and a phase sequence of each frame, specifically: If it is the first frame, the area from the beginning of the frame to the center of the frame is divided into multiple equally spaced intervals, and the area from the center of the frame to the end of the frame is divided into multiple intervals, and the farther from the center of the frame, the wider the interval; if it is not the first frame and not the last frame, the spectrum graph is divided into multiple intervals, and the farther from the center of the frame, the wider the interval; if it is the last frame, the area from the center of the frame to the end of the frame is divided into multiple equally spaced intervals, and the area from the beginning of the frame to the center of the frame is divided into multiple intervals, and the farther from the center of the frame, the wider the interval; The average value of the spectrum diagram in each interval is used as the sampling value to obtain the spectrum sequence of each frame; the average value of the phase diagram in each interval is used as the sampling value to obtain the phase sequence of each frame.
[0039] In a third embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first embodiment is implemented.
[0040] In a fourth embodiment, the present invention further provides a computer device, the computer device comprising at least a memory and a processor, a computer program is stored in the memory, and the computer program implements the method described in the first embodiment when executed by the processor.
[0041] Through the description of the above implementation methods, technicians in this field can clearly understand that each implementation method can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in 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 codes. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it, and other embodiments may also be used. Although the present invention has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A transformer fault monitoring method based on artificial intelligence, characterized in that: The method comprises the following steps: Collect vibration information of the transformer within a preset time period, divide the vibration information into frames and add windows to obtain each frame of signal, perform discrete Fourier transform on each frame of signal, and then obtain a spectrum diagram and a phase diagram of each frame, sample the spectrum diagram and the phase diagram respectively to obtain a spectrum sequence and a phase sequence of each frame, and splice the normalized spectrum sequences and phase sequences of all frames within the preset time period into a spectrum matrix and a phase matrix respectively; The attention weights of the spectrum matrix and the attention weights of the phase matrix are used to calculate the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix. The input of the preset model is obtained according to the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix. The output of the preset model is used as the input of the multi-layer perceptron. According to the output of the multi-layer perceptron, it is determined whether the transformer is faulty.
2. The method according to claim 1, characterized in that The multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix are calculated by using the attention weight of the spectrum matrix and the attention weight of the phase matrix, specifically: Calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the spectrum matrix, and calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the phase matrix; Calculate the attention weight and self-attention of each attention head of the spectrum matrix, and calculate the attention weight and self-attention of each attention head of the phase matrix; Get the serial number of each attention head of the spectrum matrix and the serial number of each attention head of the phase matrix, multiply the attention weight of the spectrum matrix attention head with the same serial number and the value matrix of the phase matrix attention head to obtain the spectrum weight attention of the phase matrix, and multiply the attention weight of the phase matrix attention head with the same serial number and the value matrix of the spectrum matrix attention head to obtain the phase weight attention of the spectrum matrix; The self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, and the self-attention and the spectrum weight attention of the phase matrix are fused to obtain the multi-head attention of the phase matrix.
3. The method according to claim 2, characterized in that The self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, specifically: The self-attention and the phase weight attention are horizontally concatenated and multiplied with the learnable weight matrix to obtain the multi-head attention of the spectrum matrix.
4. The method according to claim 2, characterized in that The self-attention of the phase matrix and the spectrum weight attention are fused to obtain the multi-head attention of the phase matrix, specifically: The self-attention and the spectral weight attention levels are concatenated and multiplied with the learnable weight matrix to obtain a multi-head attention of the phase matrix.
5. The method according to claim 1, characterized in that The spectrum diagram and the phase diagram are sampled respectively to obtain the spectrum sequence and the phase sequence of each frame, specifically: The spectrum graph is divided into multiple intervals, and the farther away from the center of the spectrum graph, the wider the interval is; the average value of the spectrum graph in each interval is used as the sampling value to obtain the spectrum sequence of each frame; The phase map is divided into multiple intervals, and the farther away from the center of the phase map, the wider the interval; the average value of the phase map in each interval is used as the sampling value to obtain the phase sequence of each frame.
6. A transformer fault monitoring system based on artificial intelligence, characterized in that: The system includes the following modules: A vibration collection and processing module is used to collect vibration information of the transformer within a preset time period, divide the vibration information into frames and window it to obtain each frame of signal, perform discrete Fourier transform on each frame of signal to obtain a spectrum diagram and a phase diagram of each frame, sample the spectrum diagram and the phase diagram to obtain a spectrum sequence and a phase sequence of each frame, and splice the normalized spectrum sequences and phase sequences of all frames within the preset time period into a spectrum matrix and a phase matrix respectively; The fault monitoring module is used to calculate the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix using the attention weights of the spectrum matrix and the attention weights of the phase matrix, obtain the input of the preset model based on the multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix, use the output of the preset model as the input of the multi-layer perceptron, and determine whether the transformer is faulty based on the output of the multi-layer perceptron.
7. The system according to claim 6, characterized in that The multi-head attention of the spectrum matrix and the multi-head attention of the phase matrix are calculated by using the attention weight of the spectrum matrix and the attention weight of the phase matrix, specifically: Calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the spectrum matrix, and calculate the query matrix, key matrix, and value matrix corresponding to each attention head of the phase matrix; Calculate the attention weight and self-attention of each attention head of the spectrum matrix, and calculate the attention weight and self-attention of each attention head of the phase matrix; Get the serial number of each attention head of the spectrum matrix and the serial number of each attention head of the phase matrix, multiply the attention weight of the spectrum matrix attention head with the same serial number and the value matrix of the phase matrix attention head to obtain the spectrum weight attention of the phase matrix, and multiply the attention weight of the phase matrix attention head with the same serial number and the value matrix of the spectrum matrix attention head to obtain the phase weight attention of the spectrum matrix; The self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, and the self-attention and the spectrum weight attention of the phase matrix are fused to obtain the multi-head attention of the phase matrix.
8. The system according to claim 7, characterized in that The self-attention and the phase weight attention of the spectrum matrix are fused to obtain the multi-head attention of the spectrum matrix, specifically: The self-attention and the phase weight attention are horizontally concatenated and multiplied with the learnable weight matrix to obtain the multi-head attention of the spectrum matrix.
9. The system according to claim 7, characterized in that The self-attention of the phase matrix and the spectrum weight attention are fused to obtain the multi-head attention of the phase matrix, specifically: The self-attention and the spectral weight attention levels are concatenated and multiplied with the learnable weight matrix to obtain a multi-head attention of the phase matrix.
10. A computer storage device, wherein a computer program is stored on the storage device, characterized in that: When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 5.
Citation Information
Cited By
Power distribution equipment self-checking method and system based on intelligent circuit breaker
CN120405355A
A self-test method and system for power distribution equipment based on intelligent circuit breaker
CN120405355B
