Transformer abnormality detection method, device, electronic device and storage medium
By obtaining the voltage, temperature and audio curves of the transformer and combining multi-dimensional detection data, the problem of inaccurate secondary voltage detection in the prior art is solved, and the accuracy of transformer abnormal detection is improved.
Patent Information
- Application Number
- CN202410627968.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-21
AI Technical Summary
In the prior art, the transformer abnormality cannot be accurately detected through the secondary side voltage, because the fluctuation of the primary side voltage will also lead to abnormality of the secondary side voltage, and the secondary side voltage may be normal when the transformer is abnormal.
By obtaining the primary side voltage curve, temperature curve and audio curve of the transformer, input the voltage detection model, temperature detection model and audio detection model respectively, calculate the correlation coefficient and determine the weight of each score, and finally calculate the target score of the transformer in an abnormal state, and judge the Is the transformer abnormal?
The accuracy of transformer abnormal detection is improved, misdiagnosis caused by primary voltage abnormality is avoided, and the correlation between voltage, temperature and audio is taken into account, and multi-dimensional detection is realized.
Smart Images

Figure CN118245954B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of transformer state detection, and in particular to a transformer abnormality detection method, device, electronic equipment and storage medium. Background Art
[0002] The transformer plays the role of voltage regulation in the distribution network, which is mainly achieved by changing the number of turns of the primary and secondary winding coils.
[0003] In the prior art, since the main function of the transformer is to regulate voltage, the status of the transformer is mainly detected by detecting whether the secondary side voltage is abnormal. For example, the difference between the voltage output on the secondary side of the transformer and the standard voltage is detected, and the transformer is determined to be abnormal when the difference is too large. However, when the transformer is normal, primary side voltage fluctuations will also cause secondary side voltage abnormalities, and even the secondary side voltage is normal when the transformer is abnormal. Therefore, transformer abnormalities cannot be accurately detected by the secondary side voltage. Summary of the invention
[0004] The present invention provides a transformer abnormality detection method, device, electronic device and storage medium to solve the problem of inaccurate transformer abnormality detection through secondary side voltage in the prior art.
[0005] In a first aspect, the present invention provides a transformer abnormality detection method, comprising:
[0006] Obtaining a primary side voltage curve, a secondary side voltage curve, a temperature curve and an audio curve of the transformer within a preset time period;
[0007] determining whether a preset abnormality detection condition is met according to the primary side voltage curve;
[0008] If yes, inputting the secondary side voltage curve into a voltage detection model to obtain a first score of the transformer being in an abnormal state;
[0009] Inputting the temperature curve into a temperature detection model to obtain a second score of the transformer being in an abnormal state;
[0010] Inputting the audio curve into an audio detection model to obtain a third score indicating that the transformer is in an abnormal state;
[0011] Calculating a correlation coefficient between a secondary side voltage curve, a temperature curve and an audio curve according to the secondary side voltage curve, the temperature curve and the audio curve;
[0012] Determine the weights of the first score, the second score, and the third score according to the correlation coefficient;
[0013] Calculating a target score for the transformer being in an abnormal state based on the weight, the first score, the second score, and the third score;
[0014] When the target score is greater than a preset score threshold, it is determined that the transformer is abnormal.
[0015] In a second aspect, the present invention provides a transformer abnormality detection device, comprising:
[0016] A transformer curve acquisition module is used to acquire a primary side voltage curve, a secondary side voltage curve, a temperature curve and an audio curve of the transformer within a preset time period;
[0017] A detection condition judgment module, used to judge whether a preset abnormality detection condition is met according to the primary side voltage curve, and if so, execute the voltage curve input module;
[0018] A voltage curve input module, used for inputting the secondary side voltage curve into a voltage detection model to obtain a first score of the transformer being in an abnormal state;
[0019] A temperature curve input module, used for inputting the temperature curve into a temperature detection model to obtain a second score of the transformer being in an abnormal state;
[0020] An audio curve input module, used for inputting the audio curve into an audio detection model to obtain a third score indicating that the transformer is in an abnormal state;
[0021] A correlation coefficient calculation module, used for calculating the correlation coefficient between the secondary side voltage curve, the temperature curve and the audio curve according to the secondary side voltage curve, the temperature curve and the audio curve;
[0022] A weight calculation module, used to determine the weights of the first score, the second score, and the third score according to the correlation coefficient;
[0023] a target score calculation module, configured to calculate a target score for the transformer being in an abnormal state based on the weight, the first score, the second score, and the third score;
[0024] The abnormality determination module is used to determine that the transformer is abnormal when the target score is greater than a preset score threshold.
[0025] In a third aspect, the present invention provides an electronic device, the electronic device comprising:
[0026] at least one processor; and
[0027] a memory communicatively connected to the at least one processor; wherein,
[0028] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the transformer abnormality detection method described in the first aspect of the present invention.
[0029] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the transformer abnormality detection method described in the first aspect of the present invention when executed.
[0030] When the primary-side voltage curve of the transformer meets the abnormality detection condition, the present invention inputs the secondary-side voltage curve, temperature curve and audio curve of the transformer into the voltage detection model, the temperature detection model and the audio detection model respectively to obtain the first score, the second score and the third score, and calculates the correlation coefficient between the secondary-side voltage curve, the temperature curve and the audio curve, further calculates the weights of the first score, the second score and the third score through the correlation coefficient, and finally calculates the target score of the transformer in an abnormal state through the weight, and determines that the transformer is abnormal when the score is greater than the threshold. On the one hand, when the primary-side voltage curve meets the abnormality detection condition, transformer abnormality detection can avoid misdiagnosis caused by primary-side voltage abnormality. On the other hand, transformer abnormality is detected through voltage, temperature and audio, and the correlation between voltage, temperature and audio is measured to calculate the final target score, so that transformer abnormality is detected in combination with multi-dimensional detection data, and the correlation between the secondary-side voltage, temperature and audio of the transformer is considered, thereby improving the accuracy of transformer abnormality detection.
[0031] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 is a flow chart of a transformer abnormality detection method provided in Embodiment 1 of the present invention;
[0034] Figure 2 is a flow chart of a transformer abnormality detection method provided by Embodiment 2 of the present invention;
[0035] Figure 3is a schematic diagram of the structure of a transformer abnormality detection device provided in Embodiment 3 of the present invention;
[0036] Figure 4 It is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below 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 should fall within the scope of protection of the present invention.
[0038] Embodiment 1
[0039] Figure 1 This is a flowchart of a transformer abnormality detection method provided in Embodiment 1 of the present invention. This embodiment can be applied to the case where the transformer is in an abnormal state. The method can be performed by a transformer abnormality detection device. The transformer abnormality detection device can be implemented in the form of hardware and / or software and configured in an electronic device, such as Figure 1 As shown, the transformer abnormality detection method includes:
[0040] S101, obtaining a primary side voltage curve, a secondary side voltage curve, a temperature curve, and an audio curve of a transformer within a preset time period.
[0041] The transformer of this embodiment can be a traditional transformer with windings. The transformer can include a primary winding and a secondary winding, and can also include an iron core. The primary side can refer to the input side of the primary winding, and the secondary side can refer to the output side of the secondary winding. The primary voltage curve can be a curve fitted after sampling the voltage at the input end of the primary winding, and is also the voltage curve of the upper power supply network of the transformer. The secondary voltage curve can be a curve fitted after sampling the voltage at the output end of the secondary winding. The temperature curve can be a curve fitted after sampling the temperature of the primary winding and the secondary winding of the transformer, and can also be a curve fitted after sampling the temperature of the insulating oil in the insulating oil tank of the transformer. The audio curve can be a curve generated after collecting the sound signal of the transformer through an audio sensor, wherein the primary voltage curve, the secondary voltage curve, the temperature curve and the audio curve can be curves fitted after collecting data in the same time period, that is, the primary voltage, the secondary voltage, the temperature and the sound signal can be collected in the same time period to generate the primary voltage curve, the secondary voltage curve, the temperature curve and the audio curve.
[0042] S102: Determine whether a preset abnormality detection condition is met according to the primary side voltage curve.
[0043] The preset abnormality detection condition may be a condition for measuring the quality of the primary-side input voltage of the transformer. For example, the abnormality detection condition may be at least one of the maximum value, minimum value, average value, and voltage fluctuation rate of the primary-side input voltage. At least one of the maximum value, minimum value, average value, and voltage fluctuation rate may be determined based on the primary-side voltage curve to determine whether the preset abnormality detection condition is met. If so, it is determined that the primary-side voltage of the transformer is normal and S103 may be executed. If not, it is determined that the primary-side input voltage is abnormal, which has a greater impact on the transformer abnormality detection and a high probability of misdiagnosis of the transformer abnormality. In this case, the transformer abnormality detection is not performed and the process returns to S101 to continue obtaining the primary-side voltage curve, secondary-side voltage curve, temperature curve, and audio curve of the transformer within a preset time period.
[0044] S103: Input the secondary side voltage curve into a voltage detection model to obtain a first score indicating that the transformer is in an abnormal state.
[0045] In this embodiment, a voltage detection model can be pre-trained. When the secondary side voltage curve of the transformer is input, the voltage detection model predicts the score of the transformer being in an abnormal state. The larger the score, the higher the possibility that the transformer is in an abnormal state. The secondary side voltage curve collected within a preset time period can be input into the voltage detection model to obtain a first score of the transformer being in an abnormal state. The training method of the voltage detection model can refer to the training method of the supervised machine learning model in the prior art, which will not be described in detail here.
[0046] S104. Input the temperature curve into a temperature detection model to obtain a second score indicating that the transformer is in an abnormal state.
[0047] In this embodiment, a temperature detection model can be pre-trained, and the temperature detection model can predict whether the transformer is in an abnormal state through temperature changes. Exemplarily, when the temperature detection model inputs the temperature curve of the insulating oil tank or winding of the transformer, it predicts the score of the transformer in an abnormal state. The larger the score, the higher the possibility that the transformer is in an abnormal state. The temperature curve collected within a preset time period can be input into the temperature detection model to obtain a second score of the transformer in an abnormal state. The training method of the temperature detection model can refer to the training method of the supervised machine learning model in the prior art, which will not be described in detail here.
[0048] S105 . Input the audio curve into the audio detection model to obtain a third score indicating that the transformer is in an abnormal state.
[0049] When the transformer is working, sound is generated due to vibration. The sound generated when the transformer is abnormal has certain characteristics (such as increased amplitude, increased frequency, etc.). Therefore, the present embodiment can pre-train an audio detection model, and the audio detection model can predict whether the transformer is in an abnormal state by changes in the frequency or amplitude of the audio signal. Exemplarily, when the audio curve is input, the audio detection model predicts the score of the transformer in an abnormal state. The larger the score, the higher the possibility that the transformer is in an abnormal state. The audio curve collected within a preset time length can be input into the audio detection model to obtain a third score of the transformer in an abnormal state. Among them, the training method of the audio detection model can refer to the training method of the supervised machine learning model in the prior art, which will not be described in detail here.
[0050] In this embodiment, the machine learning model is divided into independent voltage detection models, temperature detection models, and audio detection models. Compared with inputting the voltage curve, temperature curve, and audio curve into one model to predict the final target score through feature fusion, each model is independent of each other, and there is no need to fuse the features of the voltage curve, temperature curve, and audio curve. The separate small model is small in size and highly efficient, and can be quickly trained and improve the efficiency of prediction.
[0051] S106 , calculating a correlation coefficient among the secondary side voltage curve, the temperature curve and the audio curve according to the secondary side voltage curve, the temperature curve and the audio curve.
[0052] Specifically, the correlation coefficients between the secondary voltage curve and the temperature curve, between the secondary voltage curve and the audio curve, and between the temperature curve and the audio curve can be calculated. The correlation coefficient can be a parameter indicating the degree of correlation between two variables. A correlation coefficient greater than 0 indicates that the two variables are positively correlated, and a correlation coefficient less than 0 indicates that the two variables are negatively correlated. The larger the absolute value of the correlation coefficient, the stronger the degree of correlation between the two variables.
[0053] In one embodiment, a Pearson correlation coefficient (Peason) may be calculated as a correlation coefficient between the secondary side voltage curve and the temperature curve, between the secondary side voltage curve and the audio curve, and between the temperature curve and the audio curve.
[0054] In another embodiment, a rank correlation coefficient (also called Spearman coefficient) may also be calculated as the correlation coefficient between the secondary side voltage curve and the temperature curve, between the secondary side voltage curve and the audio curve, and between the temperature curve and the audio curve.
[0055] Those skilled in the art may also calculate the correlation coefficient by other correlation coefficient algorithms (such as the Kendall correlation coefficient, also called the Kendall rank correlation coefficient). This embodiment does not describe the method for calculating the correlation coefficient.
[0056] S107. Determine the weights of the first score, the second score, and the third score according to the correlation coefficient.
[0057] Since the first score is the score predicted by the secondary voltage curve, the second score is the score predicted by the temperature curve, and the third score is the score predicted by the audio curve, after calculating the correlation coefficients between the secondary voltage curve and the temperature curve, between the secondary voltage curve and the audio curve, and between the temperature curve and the audio curve, for the first score, the weight of the first score can be calculated by the correlation coefficient between the secondary voltage curve and the temperature curve, and the correlation coefficient between the secondary voltage curve and the audio curve. For example, the product, sum, average, etc. of the correlation coefficient between the secondary voltage curve and the temperature curve, and the correlation coefficient between the secondary voltage curve and the audio curve are calculated as the weight of the first score. Similarly, for the second score, the weight of the second score can be calculated by the correlation coefficient between the secondary voltage curve and the temperature curve, and the correlation coefficient between the temperature curve and the audio curve. For example, the product, sum, average, etc. of the correlation coefficient between the secondary voltage curve and the temperature curve, and the correlation coefficient between the temperature curve and the audio curve are calculated as the weight of the second score. The weight of the third score is calculated by analogy.
[0058] S108. Calculate a target score for the transformer being in an abnormal state based on the weight, the first score, the second score, and the third score.
[0059] In one embodiment, after calculating the weights of each score, a weighted sum is calculated using the first score, the second score, the third score, and the corresponding weights to obtain a target score. In another embodiment, a weighted average can be calculated as the target score. The larger the target score, the higher the possibility that the transformer is in an abnormal state.
[0060] S109: When the target score is greater than a preset score threshold, determine that the transformer is abnormal.
[0061] In this embodiment, a score threshold for judging whether the transformer is in an abnormal state can be set. When the calculated target score is greater than or equal to the score threshold, the transformer is determined to be in an abnormal state, and an alarm message of transformer abnormality can be sent to the distribution network platform. If the target score is less than the score threshold, the transformer is determined to be normal, and S101 is returned to continue to obtain various curves to detect the status of the transformer.
[0062] In the embodiment of the present invention, when the primary side voltage curve of the transformer meets the abnormality detection condition, the secondary side voltage curve, temperature curve and audio curve of the transformer are respectively input into the voltage detection model, the temperature detection model and the audio detection model to obtain the first score, the second score and the third score, and the correlation coefficient between the secondary side voltage curve, the temperature curve and the audio curve is calculated, and the weights of the first score, the second score and the third score are further calculated by the correlation coefficient. Finally, the target score of the transformer in an abnormal state is calculated by the weight, and the transformer is determined to be abnormal when the score is greater than the threshold. On the one hand, when the primary side voltage curve meets the abnormality detection condition, transformer abnormality detection can avoid misdiagnosis caused by primary side voltage abnormality. On the other hand, transformer abnormality is detected by voltage, temperature and audio, and the correlation between voltage, temperature and audio is measured to calculate the final target score, so that transformer abnormality is detected by combining multi-dimensional detection data, and the correlation between the secondary side voltage, temperature and audio of the transformer is considered, thereby improving the accuracy of transformer abnormality detection.
[0063] Embodiment 2
[0064] Figure 2 Flow chart of a transformer abnormality detection method provided in Embodiment 2 of the present invention. Embodiment 2 of the present invention is optimized on the basis of Embodiment 1 above. Figure 2 As shown, the transformer abnormality detection method includes:
[0065] S201. Obtain a primary-side voltage curve, a secondary-side voltage curve, a temperature curve, and an audio curve of a transformer within a preset time period.
[0066] Specifically, data can be collected in the same period by using a voltage sensor, a temperature sensor and a microphone to obtain the same number of primary side voltages, secondary side voltages, temperatures, and sound frequencies and amplitudes within the same period of time, and then the primary side voltage curve, secondary side voltage curve, temperature curve and audio curve are fit by using the primary side voltage, secondary side voltage, temperature, and sound frequencies and amplitudes, wherein the primary side voltage curve and the secondary side voltage curve have time as the horizontal coordinate and the voltage as the vertical coordinate, the temperature curve has time as the horizontal coordinate and the temperature value as the vertical coordinate, and the audio curve has time as the horizontal coordinate and the sound frequency or amplitude as the vertical coordinate.
[0067] S202: Determine whether a preset abnormality detection condition is met according to the primary side voltage curve.
[0068] In one embodiment, the maximum voltage (the voltage corresponding to the highest peak in the primary side voltage curve) and the minimum voltage (the voltage corresponding to the lowest trough in the primary side voltage curve) can be determined from the primary side voltage curve, and the first absolute value of the difference between the maximum voltage and the standard voltage (the standard voltage can be an ideal power supply voltage on the primary side, and the standard voltage can be preset) is calculated, and the ratio of the first absolute value to the standard voltage is further calculated to obtain a first fluctuation rate, the second absolute value of the difference between the minimum voltage and the standard voltage is calculated, and the ratio of the second absolute value to the standard voltage is calculated to obtain a second fluctuation rate, and the maximum value of the first fluctuation rate and the second fluctuation rate is taken as the maximum fluctuation rate of the primary side voltage, and the average voltage is calculated according to the primary side voltage curve (the average voltage can be the arithmetic mean of the voltages at multiple moments in the primary side voltage curve), and when the maximum voltage is less than the first voltage threshold, the minimum voltage is greater than the second voltage threshold, the maximum fluctuation rate is less than the fluctuation rate threshold, and the average voltage is within a preset voltage range, it is determined that the preset abnormality detection condition is met.
[0069] This embodiment accurately evaluates the quality of the primary side voltage from data of multiple dimensions such as the maximum voltage, minimum voltage, voltage fluctuation rate, and average voltage of the primary side voltage. If the data of multiple dimensions meet the abnormality detection conditions, it indicates that the primary side power supply voltage of the transformer is normal and transformer abnormality detection can be performed, then S203 is executed. If not, it indicates that the primary side power supply voltage of the transformer is abnormal. At this time, performing transformer abnormality detection may result in misdiagnosis of transformer abnormality, then return to S201 to continue to obtain the primary side voltage curve, secondary side voltage curve, temperature curve and audio curve.
[0070] Of course, in this embodiment, the primary side voltage curve may also be input into a pre-trained power supply voltage detection model to identify whether the primary side voltage satisfies the transformer abnormality detection condition.
[0071] S203: Input the secondary side voltage curve into a voltage detection model to obtain a first score indicating that the transformer is in an abnormal state.
[0072] S204: Input the temperature curve into a temperature detection model to obtain a second score indicating that the transformer is in an abnormal state.
[0073] S205 . Input the audio curve into the audio detection model to obtain a third score indicating that the transformer is in an abnormal state.
[0074] S203-S205 in this embodiment are basically the same as S103-S105 in the first embodiment. For details, please refer to S103-S105 and will not be described in detail here.
[0075] In one embodiment, the voltage detection model, the temperature detection model, and the audio detection model may be jointly trained by the following steps:
[0076] S1. Obtain a training data set, where each training data in the training data set includes a voltage curve sample, a temperature curve sample, and an audio curve sample, and the training data is annotated with a voltage weight, a temperature weight, an audio weight, and a true score.
[0077] The training data set may include multiple training data, each training data consists of a voltage curve sample, a temperature curve sample and an audio curve sample. The voltage curve sample, temperature curve sample and audio curve sample of each training data can be curve samples collected in the same time period when the transformer is abnormal or normal, and the voltage weight, temperature weight and audio weight can be calculated through the voltage curve sample, temperature curve sample and audio curve sample in one training data, and then the weight and the true score are marked. The true score is the score of the transformer in an abnormal state. Among them, the correlation coefficient between the voltage curve sample, the temperature curve sample and the audio curve sample can be calculated first, and then the voltage weight, temperature weight and audio weight are calculated through the correlation coefficient.
[0078] S2. Extract a voltage curve sample from the training data set and input it into the voltage detection model to obtain a first prediction score, input the temperature curve sample into the temperature detection model to obtain a second prediction score, and input the audio curve sample into the audio detection model to obtain a third prediction score.
[0079] Among them, the voltage detection model, the temperature detection model, and the audio detection model can be RNN (Recurrent Neural Network), CNN (Convolutional Neural Networks), DNN (Deep Neural Network), etc. The network structures of the voltage detection model, the temperature detection model, and the audio detection model can be the same or different. This embodiment does not limit the types of network structures of the voltage detection model, the temperature detection model, and the audio detection model and the network results.
[0080] One or more training data can be randomly extracted from the training data set, and the voltage curve samples in each training data can be input into the voltage detection model to obtain a first prediction score, the temperature curve samples can be input into the temperature detection model to obtain a second prediction score, and the audio curve samples can be input into the audio detection model to obtain a third prediction score.
[0081] S3. Calculate a target prediction score using the first prediction score, the second prediction score, the third prediction score, the voltage weight, the temperature weight, and the audio weight.
[0082] Exemplarily, a first product of a first prediction score and a voltage weight is calculated, a second product of a second prediction score and a temperature weight is calculated, a third product of a third prediction score and an audio weight is calculated, and the sum of the first product, the second product, and the third product is calculated as a target prediction score.
[0083] Of course, a weighted average value may also be calculated using the first prediction score, the second prediction score, the third prediction score, the voltage weight, the temperature weight, and the audio weight as the target prediction score.
[0084] S4. Calculate the loss rate using the true score and the target predicted score.
[0085] Exemplarily, the true score and the target predicted score can be substituted into a loss function such as a mean square error loss function, a logarithmic loss function, or an L1 loss function to calculate the loss rate. This embodiment does not limit the function for calculating the loss rate.
[0086] S5. Determine whether the training stop condition is met.
[0087] In this embodiment, the condition for stopping training may be that the number of iterative training times reaches a preset number, or the loss rate is less than the loss rate threshold, or the difference between the loss rate and the loss rate of the previous round of training is less than the threshold. When the condition for stopping training is met, S6 can be executed, and when the condition for stopping training is not met, S7 can be executed.
[0088] S6. Determine the voltage detection model, the temperature detection model, and the audio detection model to complete the training.
[0089] If the conditions for stopping training are met, it is determined that the accuracy of the voltage detection model, temperature detection model and audio detection model is sufficient, and it is possible to accurately determine whether the transformer is in an abnormal state based on the secondary side voltage curve, temperature curve and audio curve of the transformer. The training of the voltage detection model, temperature detection model and audio detection model can be stopped.
[0090] S7. Adjust model parameters of the voltage detection model, the temperature detection model, and the audio detection model according to the loss rate and the voltage weight, the temperature weight, and the audio weight.
[0091] If the stop training condition is not met, the model parameters of the voltage detection model, the temperature detection model, and the audio detection model can be adjusted. In one embodiment, the product of the loss rate and the voltage weight can be calculated to obtain the first loss rate of the voltage detection model, the product of the loss rate and the temperature weight can be calculated to obtain the second loss rate of the temperature detection model, the product of the loss rate and the audio weight can be calculated to obtain the third loss rate of the audio detection model, the first loss rate is used to calculate the first gradient, and the first gradient is used to perform gradient descent on the model parameters of the voltage detection model, the second loss rate is used to calculate the second gradient, and the second gradient is used to perform gradient descent on the model parameters of the temperature detection model, the third loss rate is used to calculate the third gradient, and the third gradient is used to perform gradient descent on the model parameters of the audio detection model, wherein the gradient algorithm can be a random gradient descent, batch gradient descent, or other algorithms, and the prior art can be referred to for adjusting the model parameters by gradient, which will not be described in detail here. After adjusting the model parameters, you can return to S2 to continue training each model until the stop training condition is met.
[0092] In this embodiment, when training the voltage detection model, the temperature detection model, and the audio detection model, the voltage curve, the temperature curve, and the audio curve of the same time period when the transformer is normal or abnormal are taken as samples, and the voltage weight, the temperature weight, the audio weight, and the true score are marked. During training, the predicted score is calculated by the voltage weight, the temperature weight, and the audio weight to calculate the loss rate, and the loss rate of each model is allocated by weight when the model parameters are adjusted. On the one hand, the voltage detection model, the temperature detection model, and the audio detection model are independent of each other, and there is no need to fuse the features of the voltage curve, the temperature curve, and the audio curve, which can reduce the volume of the voltage detection model, the temperature detection model, and the audio detection model, and improve the training speed and prediction efficiency. On the other hand, the voltage weight, the temperature weight, and the audio weight are considered when calculating the loss rate and adjusting the parameters, which can consider the correlation between the voltage, temperature, and audio when the transformer is working, and can focus on adjusting the parameters of the strongly correlated models, thereby improving the accuracy of the scores finally calculated after the voltage detection model, the temperature detection model, and the audio detection model predict the scores.
[0093] After the model training is completed, the secondary side voltage curve can be input into the voltage detection model to obtain the first score of the transformer being in an abnormal state, the temperature curve can be input into the temperature detection model to obtain the second score of the transformer being in an abnormal state, and the audio curve can be input into the audio detection model to obtain the third score of the transformer being in an abnormal state.
[0094] S206 , sampling the secondary side voltage curve, temperature curve and audio curve at multiple time points respectively to obtain the secondary voltage, temperature and audio amplitude at the multiple time points.
[0095] Exemplarily, sampling is performed on the secondary voltage curve according to a preset period to obtain n secondary side voltages (u1, u2, ..., u i ,……,u n-1 ,u n ), sample the temperature curve at the same period and obtain n temperatures (t1, t2, ..., t i ,……,t n-1 , t n ), sample the audio curve at the same period to obtain n audio amplitudes (a1, a2, ..., a i , ..., a n-1 , a n ), i represents the i-th data, and n is the number of data.
[0096] S207, calculate the Pearson correlation coefficient between the secondary voltage and the temperature, and obtain the first correlation coefficient r ut , calculate the Pearson correlation coefficient between the secondary voltage and the audio amplitude, and get the second correlation coefficient r ua , calculate the Pearson correlation coefficient between temperature and audio amplitude, and get the third correlation coefficient r ta .
[0097] The calculation formula of Pearson correlation coefficient is as follows:
[0098]
[0099] Among them, x and y can be any two data of secondary voltage, temperature and audio amplitude, X i , Y i represents the i-th data in data x and y, and They represent the average values of data x and data y respectively. Taking x as voltage and t as temperature as an example, the sampled n secondary voltages (u1, u2, ..., u i ,……,u n-1 ,u n ) and n temperatures (t1, t2, ..., t i ,……,t n-1 , t n ) is substituted into the above Pearson correlation coefficient calculation formula to obtain the first correlation coefficient r ut , similarly, the second correlation coefficient r can be calculated ua , the third correlation coefficient r ta .
[0100] The first correlation coefficient r ut , the second correlation coefficient r ua , the third correlation coefficient r taIt can be a value between [-1,1]. The larger the absolute value of the correlation coefficient, the stronger the correlation between the two data.
[0101] S208. Calculate the weight w1 of the first score by using the first formula, calculate the weight w2 of the second score by using the second formula, and calculate the weight w3 of the third score by using the third formula.
[0102] Among them, the first formula is as follows:
[0103] ;
[0104] The second formula is as follows:
[0105] ;
[0106] The third formula is as follows:
[0107] ;
[0108] in, .
[0109] In another embodiment, the first absolute value of the first correlation coefficient, the second absolute value of the second correlation coefficient, and the third absolute value of the third correlation coefficient can be calculated, the first sum of the first absolute value, the second absolute value, and the third absolute value can be calculated, the sum of the first absolute value and the second absolute value can be calculated, and the ratio of the sum to the first sum can be calculated as the weight of the first score, the sum of the first absolute value and the third absolute value can be calculated, and the ratio of the sum to the first sum can be calculated as the weight of the second score, and the sum of the second absolute value and the third absolute value can be calculated, and the ratio of the sum to the first sum can be calculated as the weight of the third score.
[0110] This embodiment uses a first correlation coefficient between the secondary voltage and temperature, a second correlation coefficient between the secondary voltage and the audio amplitude, and a third correlation coefficient between the temperature and the audio amplitude, and calculates the weights of the first score, the second score, and the third score through the first correlation coefficient, the second correlation coefficient, and the third correlation coefficient, so that the score predicted by the data with a strong correlation has a higher weight, and the score predicted by the data with a weak correlation has a smaller weight, so that the score predicted by the data with a strong correlation when the transformer is working is more important and prominent, thereby improving the accuracy of the target score finally calculated, and the target score more accurately reflects the state of the transformer.
[0111] S209, calculating a target score for the transformer being in an abnormal state based on the weight, the first score, the second score, and the third score.
[0112] In one embodiment, after calculating the weights of each score, a weighted sum is calculated using the first score, the second score, the third score, and the corresponding weights to obtain a target score. In another embodiment, a weighted average can also be calculated as the target score. The larger the target score, the higher the possibility that the transformer is in an abnormal state.
[0113] S210: When the target score is greater than a preset score threshold, determine that the transformer is abnormal.
[0114] In this embodiment, a score threshold for judging whether the transformer is in an abnormal state can be set. When the calculated target score is greater than or equal to the score threshold, the transformer is determined to be in an abnormal state, and an alarm message of transformer abnormality can be sent to the distribution network platform. If the target score is less than the score threshold, the transformer is determined to be normal, and the process returns to S201 to continue to obtain various curves to detect the status of the transformer.
[0115] When the primary side voltage curve of the transformer meets the abnormality detection condition, the present invention inputs the secondary side voltage curve, temperature curve and audio curve of the transformer into the voltage detection model, temperature detection model and audio detection model respectively to obtain a first score, a second score and a third score, and samples the secondary side voltage curve, temperature curve and audio curve to obtain the secondary voltage, temperature and audio amplitude at multiple time points, calculates the Pearson correlation coefficient through the secondary voltage, temperature and audio amplitude, further calculates the weights of the first score, the second score and the third score through the Pearson correlation coefficient, and finally calculates the target score of the transformer in an abnormal state through the weight, and determines that the transformer is abnormal when the score is greater than the threshold. On the one hand, when the primary side voltage curve meets the abnormality detection condition, transformer abnormality detection can avoid misdiagnosis caused by primary side voltage abnormality. On the other hand, transformer abnormality is detected through voltage, temperature and audio, and the correlation between voltage, temperature and audio is measured to calculate the final target score, so that transformer abnormality is detected by combining multi-dimensional detection data, and the correlation between the secondary side voltage, temperature and audio of the transformer is considered, thereby improving the accuracy of transformer abnormality detection.
[0116] Embodiment 3
[0117] Figure 3 This is a schematic diagram of the structure of a transformer abnormality detection device provided in Embodiment 3 of the present invention. Figure 3 As shown, the transformer abnormality detection device includes:
[0118] The transformer curve acquisition module 301 is used to acquire the primary side voltage curve, secondary side voltage curve, temperature curve and audio curve of the transformer within a preset time period;
[0119] A detection condition judgment module 302 is used to judge whether a preset abnormality detection condition is met according to the primary side voltage curve, and if so, execute the voltage curve input module 303;
[0120] A voltage curve input module 303, used for inputting the secondary side voltage curve into a voltage detection model to obtain a first score indicating that the transformer is in an abnormal state;
[0121] A temperature curve input module 304, used for inputting the temperature curve into a temperature detection model to obtain a second score indicating that the transformer is in an abnormal state;
[0122] An audio curve input module 305, used for inputting the audio curve into an audio detection model to obtain a third score indicating that the transformer is in an abnormal state;
[0123] A correlation coefficient calculation module 306, configured to calculate a correlation coefficient between a secondary side voltage curve, a temperature curve and an audio curve according to the secondary side voltage curve, the temperature curve and the audio curve;
[0124] A weight calculation module 307, configured to determine the weights of the first score, the second score, and the third score according to the correlation coefficient;
[0125] A target score calculation module 308, configured to calculate a target score for the transformer being in an abnormal state based on the weight, the first score, the second score, and the third score;
[0126] The abnormality determination module 309 is used to determine that the transformer is abnormal when the target score is greater than a preset score threshold.
[0127] Optionally, the detection condition determination module 302 includes:
[0128] a maximum value and a minimum value determining unit, used to determine a maximum voltage and a minimum voltage from the primary side voltage curve;
[0129] a first fluctuation rate calculation unit, configured to calculate a first absolute value of a difference between the maximum voltage and the standard voltage, and calculate a ratio of the first absolute value to the standard voltage to obtain a first fluctuation rate;
[0130] a second fluctuation rate calculation unit, configured to calculate a second absolute value of a difference between the minimum voltage and the standard voltage, and calculate a ratio of the second absolute value to the standard voltage to obtain a second fluctuation rate;
[0131] a maximum fluctuation rate determining unit, configured to take the maximum value of the first fluctuation rate and the second fluctuation rate as the maximum fluctuation rate of the primary-side voltage;
[0132] an average voltage calculation unit, configured to calculate an average voltage according to the primary side voltage curve;
[0133] The condition satisfaction determination unit is used to determine that a preset abnormality detection condition is satisfied when the maximum voltage is less than a first voltage threshold, the minimum voltage is greater than a second voltage threshold, the maximum fluctuation rate is less than a fluctuation rate threshold, and the average voltage is within a preset voltage range.
[0134] Optionally, the voltage detection model, the temperature detection model and the audio detection model are trained by the following modules:
[0135] A training data set acquisition module, used to acquire a training data set, wherein each piece of training data in the training data set includes a voltage curve sample, a temperature curve sample and an audio curve sample, and the training data is annotated with a voltage weight, a temperature weight and an audio weight as well as a true score;
[0136] A sample input module, used to extract a voltage curve sample in the training data from the training data set and input it into the voltage detection model to obtain a first prediction score, input the temperature curve sample into the temperature detection model to obtain a second prediction score, and input the audio curve sample into the audio detection model to obtain a third prediction score;
[0137] a score calculation module, configured to calculate a target prediction score using the first prediction score, the second prediction score, the third prediction score, the voltage weight, the temperature weight, and the audio weight;
[0138] A loss rate calculation module, used to calculate the loss rate by using the true score and the target predicted score;
[0139] A condition judgment module is used to judge whether the training stop condition is met. If so, the training completion determination module is executed; if not, the parameter adjustment module is executed;
[0140] A training completion determination module is used to determine that the voltage detection model, the temperature detection model, and the audio detection model have completed training;
[0141] A parameter adjustment module is used to adjust the model parameters of the voltage detection model, the temperature detection model and the audio detection model according to the loss rate and the voltage weight, the temperature weight and the audio weight, and return to the sample input module.
[0142] Optionally, the parameter adjustment module includes:
[0143] a first loss rate calculation unit, configured to calculate the product of the loss rate and the voltage weight to obtain a first loss rate of the voltage detection model;
[0144] A second loss rate calculation unit, used for calculating the product of the loss rate and the temperature weight to obtain a second loss rate of the temperature detection model;
[0145] a third loss rate calculation unit, configured to calculate the product of the loss rate and the audio weight to obtain a third loss rate of the audio detection model;
[0146] a first adjustment unit, configured to calculate a first gradient by using the first loss rate, and perform gradient descent on a model parameter of the voltage detection model by using the first gradient;
[0147] a second adjustment unit, configured to calculate a second gradient by using the second loss rate, and perform gradient descent on a model parameter of the temperature detection model by using the second gradient;
[0148] The third adjustment unit is used to calculate a third gradient using the third loss rate, and to perform gradient descent on the model parameters of the audio detection model using the third gradient.
[0149] Optionally, the correlation coefficient calculation module 306 includes:
[0150] A sampling unit, used to sample the secondary voltage curve, the temperature curve and the audio curve at multiple time points respectively, to obtain the secondary voltage, temperature and audio amplitude at multiple time points;
[0151] The first correlation coefficient calculation unit is used to calculate the Pearson correlation coefficient between the secondary voltage and the temperature to obtain a first correlation coefficient r ut ;
[0152] The second correlation coefficient calculation unit is used to calculate the Pearson correlation coefficient between the secondary voltage and the audio amplitude to obtain a second correlation coefficient r ua ;
[0153] The third correlation coefficient calculation unit is used to calculate the Pearson correlation coefficient between the temperature and the audio amplitude to obtain a third correlation coefficient r ta .
[0154] Optionally, the weight calculation module 307 includes:
[0155] The first score weight calculation unit is used to calculate the weight w1 of the first score by using a first formula:
[0156] ;
[0157] The second score weight calculation unit is used to calculate the weight w2 of the second score by a second formula:
[0158] ;
[0159] A third score weight calculation unit is used to calculate the weight w3 of the third score by a third formula:
[0160] ;
[0161] in, .
[0162] Optionally, the weight calculation module 307 includes:
[0163] a correlation coefficient absolute value calculation unit, configured to calculate a first absolute value of the first correlation coefficient, calculate a second absolute value of the second correlation coefficient, and calculate a third absolute value of the third correlation coefficient;
[0164] a sum calculation unit, configured to calculate a first sum of the first absolute value, the second absolute value, and the third absolute value;
[0165] a first ratio calculation unit, configured to calculate a sum of the first absolute value and the second absolute value, and calculate a ratio of the sum to the first sum as a weight of the first score;
[0166] a second ratio calculation unit, which calculates a sum of the first absolute value and the third absolute value, and calculates a ratio of the sum to the first sum as a weight of the second score;
[0167] The third ratio calculation unit calculates the sum of the second absolute value and the third absolute value, and calculates the ratio of the sum to the first sum as the weight of the third score.
[0168] The transformer abnormality detection device provided in the embodiment of the present invention can execute the transformer abnormality detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0169] Embodiment 4
[0170] Figure 4 A schematic diagram of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0171] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0172] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0173] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as a transformer abnormality detection method.
[0174] In some embodiments, the transformer abnormality detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the transformer abnormality detection method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the transformer abnormality detection method in any other appropriate manner (e.g., by means of firmware).
[0175] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0176] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0177] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0178] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0179] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0180] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0181] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0182] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A transformer abnormality detection method, characterized in that: include: Obtaining a primary side voltage curve, a secondary side voltage curve, a temperature curve and an audio curve of the transformer within a preset time period; determining whether the primary side voltage of the transformer meets a preset abnormality detection condition according to the primary side voltage curve; If yes, it is determined that the primary side voltage of the transformer is normal, and the secondary side voltage curve is input into a voltage detection model to obtain a first score of the transformer being in an abnormal state; Inputting the temperature curve into a temperature detection model to obtain a second score of the transformer being in an abnormal state; Inputting the audio curve into an audio detection model to obtain a third score indicating that the transformer is in an abnormal state; Calculating a correlation coefficient between a secondary side voltage curve, a temperature curve and an audio curve according to the secondary side voltage curve, the temperature curve and the audio curve; Determine the weights of the first score, the second score, and the third score according to the correlation coefficient; Calculating a target score for the transformer being in an abnormal state based on the weight, the first score, the second score, and the third score; When the target score is greater than a preset score threshold, determining that the transformer is abnormal; Calculating a correlation coefficient between the secondary side voltage curve, the temperature curve and the audio curve according to the secondary side voltage curve, the temperature curve and the audio curve includes: Sampling the secondary voltage curve, the temperature curve and the audio curve at multiple time points respectively to obtain the secondary voltage, temperature and audio amplitude at multiple time points; Calculate the Pearson correlation coefficient between the secondary voltage and the temperature to obtain the first correlation coefficient r ut ; Calculate the Pearson correlation coefficient between the secondary voltage and the audio amplitude to obtain the second correlation coefficient r ua ; Calculate the Pearson correlation coefficient between the temperature and the audio amplitude to obtain a third correlation coefficient r ta ; Determining weights of the first score, the second score, and the third score according to the correlation coefficient includes: The weight w1 of the first score is calculated by the first formula: ; The weight w2 of the second score is calculated by the second formula: ; The weight w3 of the third score is calculated by the third formula: ; in, .
2. The transformer abnormality detection method according to claim 1, characterized in that: Judging whether the primary side voltage of the transformer meets a preset abnormality detection condition according to the primary side voltage curve includes: determining a maximum voltage and a minimum voltage from the primary voltage curve; Calculating a first absolute value of a difference between the maximum voltage and the standard voltage, and calculating a ratio of the first absolute value to the standard voltage to obtain a first fluctuation rate; Calculating a second absolute value of a difference between the minimum voltage and the standard voltage, and calculating a ratio of the second absolute value to the standard voltage to obtain a second fluctuation rate; Taking the maximum value of the first fluctuation rate and the second fluctuation rate as the maximum fluctuation rate of the primary side voltage; Calculating an average voltage according to the primary side voltage curve; When the maximum voltage is less than the first voltage threshold, the minimum voltage is greater than the second voltage threshold, the maximum fluctuation rate is less than the fluctuation rate threshold, and the average voltage is within a preset voltage range, it is determined that the preset abnormality detection condition is met, and the primary side voltage of the transformer is normal.
3. The transformer abnormality detection method according to claim 1, characterized in that: The voltage detection model, the temperature detection model and the audio detection model are trained in the following manner: Acquire a training data set, wherein each piece of training data in the training data set includes a voltage curve sample, a temperature curve sample, and an audio curve sample, and the training data is annotated with a voltage weight, a temperature weight, an audio weight, and a true score; Extract a voltage curve sample in the training data set and input it into the voltage detection model to obtain a first prediction score, input the temperature curve sample into the temperature detection model to obtain a second prediction score, and input the audio curve sample into the audio detection model to obtain a third prediction score; Calculating a target prediction score using the first prediction score, the second prediction score, the third prediction score, the voltage weight, the temperature weight, and the audio weight; Calculate the loss rate by using the true score and the target predicted score; Determine whether the training stop condition is met; If so, determining that the voltage detection model, the temperature detection model, and the audio detection model have completed training; If not, adjust the model parameters of the voltage detection model, the temperature detection model and the audio detection model according to the loss rate and the voltage weight, the temperature weight and the audio weight, and return to the steps of extracting a voltage curve sample in the training data set and inputting it into the voltage detection model to obtain a first prediction score, inputting the temperature curve sample into the temperature detection model to obtain a second prediction score, and inputting the audio curve sample into the audio detection model to obtain a third prediction score.
4. The transformer abnormality detection method according to claim 3, characterized in that: Adjusting the model parameters of the voltage detection model, the temperature detection model, and the audio detection model according to the loss rate and the voltage weight, the temperature weight, and the audio weight includes: Calculating the product of the loss rate and the voltage weight to obtain a first loss rate of the voltage detection model; Calculating the product of the loss rate and the temperature weight to obtain a second loss rate of the temperature detection model; Calculating the product of the loss rate and the audio weight to obtain a third loss rate of the audio detection model; Calculating a first gradient using the first loss rate, and performing gradient descent on model parameters of the voltage detection model using the first gradient; Using the second loss rate to calculate a second gradient, and using the second gradient to perform gradient descent on model parameters of the temperature detection model; The third loss rate is used to calculate a third gradient, and the third gradient is used to perform gradient descent on the model parameters of the audio detection model.
5. A transformer abnormality detection device, characterized in that: include: A transformer curve acquisition module is used to acquire a primary side voltage curve, a secondary side voltage curve, a temperature curve and an audio curve of the transformer within a preset time period; A detection condition judgment module, used to judge whether the primary side voltage of the transformer meets the preset abnormality detection condition according to the primary side voltage curve, and if so, execute the voltage curve input module; A voltage curve input module, used to determine whether the primary side voltage of the transformer is normal, and input the secondary side voltage curve into a voltage detection model to obtain a first score of the transformer being in an abnormal state; A temperature curve input module, used for inputting the temperature curve into a temperature detection model to obtain a second score of the transformer being in an abnormal state; An audio curve input module, used for inputting the audio curve into an audio detection model to obtain a third score indicating that the transformer is in an abnormal state; A correlation coefficient calculation module, used for calculating the correlation coefficient between the secondary side voltage curve, the temperature curve and the audio curve according to the secondary side voltage curve, the temperature curve and the audio curve; A weight calculation module, used to determine the weights of the first score, the second score, and the third score according to the correlation coefficient; a target score calculation module, configured to calculate a target score for the transformer being in an abnormal state based on the weight, the first score, the second score, and the third score; an abnormality determination module, configured to determine that the transformer is abnormal when the target score is greater than a preset score threshold; The correlation coefficient calculation module includes: A sampling unit, used to sample the secondary voltage curve, the temperature curve and the audio curve at multiple time points respectively, to obtain the secondary voltage, temperature and audio amplitude at multiple time points; The first correlation coefficient calculation unit is used to calculate the Pearson correlation coefficient between the secondary voltage and the temperature to obtain a first correlation coefficient r ut ; The second correlation coefficient calculation unit is used to calculate the Pearson correlation coefficient between the secondary voltage and the audio amplitude to obtain a second correlation coefficient r ua ; The third correlation coefficient calculation unit is used to calculate the Pearson correlation coefficient between the temperature and the audio amplitude to obtain a third correlation coefficient r ta ; The weight calculation module includes: The first score weight calculation unit is used to calculate the weight w1 of the first score by using a first formula: ; The second score weight calculation unit is used to calculate the weight w2 of the second score by a second formula: ; A third score weight calculation unit is used to calculate the weight w3 of the third score by a third formula: ; in, .
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the transformer abnormality detection method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the transformer abnormality detection method according to any one of claims 1 to 4 is implemented.
