A power equipment fault diagnosis method, device and equipment
By constructing a fault diagnosis model with a target feature extraction network and a classifier, the problem of insufficient data correlation in traditional power equipment diagnosis methods is solved, achieving more efficient and accurate fault diagnosis.
Patent Information
- Application Number
- CN202410091189.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-22
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-01-22
AI Technical Summary
Traditional methods for diagnosing power equipment faults cannot fully explore and understand the correlations between complex data in power equipment, resulting in low accuracy of diagnostic results.
A fault diagnosis model is constructed using a target feature extraction network and a target classifier. The model extracts and enhances the features of the operating attribute data of power equipment through a feature extraction layer, a fully connected layer, and a feature interaction layer to generate target latent states. The model is then classified and diagnosed by the target classifier to output the fault diagnosis results.
It improves the accuracy and efficiency of fault diagnosis for power equipment and enhances the ability to understand and process the correlations between complex data.
Smart Images

Figure CN117909902B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of fault diagnosis technology, and in particular to a method, apparatus and equipment for diagnosing faults in power equipment. Background Technology
[0002] With the development of modern society and economy, the huge demand for energy has spurred the rapid development of the power industry, leading to the development of power systems towards large capacity, ultra-high voltage, and inter-regional expansion. However, as system capacity increases and power grid scale expands, the impact of power equipment failures on people's production and modern life is becoming increasingly significant, placing ever higher demands on the stable operation of the system.
[0003] The emergence of fault diagnosis technology has opened up a new avenue for improving equipment reliability and safety. Fault diagnosis technology analyzes equipment operating data to understand its operational status, thereby determining the location and cause of faults and predicting future conditions.
[0004] Traditional power equipment fault diagnosis methods, such as expert system technology and artificial neural networks, require the collection of expert knowledge and experience in related fields to analyze the location and type of fault. However, these detection methods cannot fully explore and understand the correlation between complex data of power equipment, resulting in low accuracy of power equipment diagnosis results. Summary of the Invention
[0005] This invention provides a method, apparatus, and equipment for diagnosing power equipment faults, which addresses the technical problem that traditional power equipment fault diagnosis methods cannot fully explore and understand the correlations between complex data in power equipment, resulting in low accuracy of power equipment diagnosis results.
[0006] The first aspect of this invention provides a method for diagnosing faults in power equipment, comprising:
[0007] Multiple operational attribute data of power equipment to be detected are acquired, and each of the operational attribute data to be detected is input into a preset fault diagnosis model, wherein the preset fault diagnosis model includes a target feature extraction network and a target classifier;
[0008] The target feature extraction network is used to perform feature enhancement extraction operations on each of the detected running attribute data to generate the target hidden state corresponding to each of the detected running attribute data.
[0009] The target classifier classifies and diagnoses the hidden states of each target, and outputs the corresponding fault diagnosis results of the power equipment.
[0010] Optionally, the target feature extraction network includes a feature extraction layer, a fully connected layer, and a feature interaction layer; the step of using the target feature extraction network to perform feature enhancement extraction operations on each of the detected running attribute data to generate the target hidden state corresponding to each of the detected running attribute data includes:
[0011] A feature extraction layer is used to extract features from each of the input running attribute data to be detected, generating corresponding running data feature values;
[0012] Each of the operational data feature values is biased by a fully connected layer, and the weight coefficients corresponding to each of the operational data feature values are output.
[0013] The attention coefficients corresponding to each weight coefficient are determined by normalizing each weight coefficient using a preset Softmax function.
[0014] Sort all the attention coefficients in descending order, and take the running data feature values corresponding to the first preset number of attention coefficients as key feature values.
[0015] Based on the attention coefficients corresponding to each key feature value, the attention coefficients corresponding to each running data feature value, and the preset adjacency matrix function, determine the probability of occurrence of multiple first features and the probability of occurrence of multiple second features;
[0016] The aggregated feature vector is calculated using the occurrence probabilities of each of the first features and each of the second features.
[0017] The initial hidden state corresponding to each key feature value is iteratively updated by the feature interaction layer using a gated loop update mechanism and the aggregated feature vector, and the corresponding intermediate hidden state is output. The number of hidden state update iterations is counted in real time.
[0018] When the number of hidden state update iterations reaches the preset first number, each intermediate hidden state is taken as the corresponding target hidden state.
[0019] Optionally, before the step of acquiring multiple operational attribute data of the power equipment to be detected and inputting each of the operational attribute data to be detected into a preset fault diagnosis model, the following steps are included:
[0020] Acquire multiple training operation attribute data of power equipment, and label each of the training operation attribute data to determine the corresponding labeled operation data;
[0021] The labeled running data are preprocessed to generate corresponding standardized running data;
[0022] Based on a preset generator, determine multiple generated attribute data;
[0023] Based on the preset first gradient checking strategy, the standardized running data and the generated attribute data are input into the initial feature extraction network for training to determine the target feature extraction network and multiple hidden states of the target to be trained.
[0024] Based on the preset second gradient checking strategy, the initial classifier is trained using the hidden states of each target to be trained, and the target classifier is determined.
[0025] The pre-set fault diagnosis model is constructed using the target feature extraction network and the target classifier.
[0026] Optionally, the step of determining the target feature extraction network and multiple target hidden states to be trained by inputting the standardized running data and the generated attribute data into the initial feature extraction network for training based on a preset first gradient checking strategy includes:
[0027] The standardized operating data and the generated attribute data are input into the initial feature extraction network for feature enhancement extraction, and multiple hidden states of the target to be trained are output.
[0028] The hidden states of each target to be trained are input into a preset Softmax classification function to generate the corresponding predicted category to be trained.
[0029] The loss value of the feature extraction network is calculated using the predicted category to be trained, the preset true category, and the preset cross-entropy loss function.
[0030] Based on the preset first gradient checking strategy, the initial learning network parameters in the initial feature extraction network are iteratively updated using the loss value of the feature extraction network, the intermediate learning network parameters are output, and the number of parameter update iterations is counted in real time.
[0031] When the number of parameter update iterations reaches the preset second number, the intermediate learning network parameters are used as the target learning network parameters, and the initial feature extraction network is updated using the target learning network parameters to determine the target feature extraction network.
[0032] Optionally, the step of training the initial classifier using the hidden states of each target to be trained based on a preset second gradient checking strategy to determine the target classifier includes:
[0033] The hidden states of each target to be trained are input into the initial classifier for classification and diagnosis, and the fault diagnosis results to be trained are output.
[0034] The classifier loss value is calculated using the fault diagnosis results to be trained and the preset classifier loss function;
[0035] Based on the preset second gradient checking strategy, the initial classifier weights of the initial classifier are iteratively updated using the classifier loss value, the intermediate classifier weights are output, and the number of iterations of the classifier weights is counted in real time.
[0036] When the number of iterations of the classifier weights reaches the preset third number, the intermediate classifier weights are used as the target classifier weights, and the initial classifier is updated using the target classifier weights to determine the target classifier.
[0037] Optionally, before the step of determining multiple generated attribute data based on a preset generator, the following steps are included:
[0038] Obtain multiple real-world operational attribute data of the power equipment;
[0039] Based on the initial generator, determine the training generation attribute data corresponding to each of the real running attribute data;
[0040] The attribute data to be trained and generated is input into the initial discriminator, and the corresponding attribute data discrimination value is output.
[0041] A preset quality scoring function is used to evaluate the quality of the discriminant values of each attribute data to determine the data quality score.
[0042] The data participation degree is calculated using the real operational attribute data and the attribute data to be generated during training.
[0043] If the data participation is less than the initial participation limit threshold, the initial participation limit threshold is updated using the data quality score, an intermediate participation limit threshold is output, and the generator iteration count is counted in real time.
[0044] Based on the preset generation and discrimination gradient checking strategy, the initial generator weights of the initial generator and the initial discriminator weights of the initial discriminator are updated using the number of generator iterations and the preset cross-entropy loss function to determine the intermediate generator weights and intermediate discriminator weights.
[0045] The initial discriminator is updated using the intermediate discriminator weights to determine the intermediate discriminator; the initial generator is updated using the intermediate generator weights to determine the intermediate generator.
[0046] When the generator iteration count reaches the preset fourth iteration, the intermediate discriminator is used as the target discriminator and the intermediate generator is used as the preset generator.
[0047] Optionally, it also includes:
[0048] When the generator iteration count does not reach the preset fourth count, the intermediate participation limit threshold is used as the new initial participation limit threshold.
[0049] The intermediate discriminator is used as the new initial discriminator, the intermediate generator is used as the new initial generator, and the process jumps to the step of determining the training generation attribute data corresponding to each of the real running attribute data based on the initial generator, until the generator iteration count reaches the preset fourth number.
[0050] A second aspect of the present invention provides a power equipment fault diagnosis device, comprising:
[0051] The acquisition module is used to acquire multiple operational attribute data of power equipment to be detected, and input each of the operational attribute data to be detected into a preset fault diagnosis model, wherein the preset fault diagnosis model includes a target feature extraction network and a target classifier;
[0052] The module is used to perform feature enhancement extraction operations on each of the detected running attribute data using the target feature extraction network, and generate the target hidden state corresponding to each of the detected running attribute data.
[0053] The output module is used to classify and diagnose the hidden states of each target through the target classifier, and output the corresponding fault diagnosis results of the power equipment.
[0054] Optionally, the target feature extraction network includes a feature extraction layer, a fully connected layer, and a feature interaction layer; the adoption module includes:
[0055] The first submodule is used to extract features from the input running attribute data to be detected using a feature extraction layer, and generate corresponding running data feature values;
[0056] The second submodule is used to perform feature biasing on each of the running data feature values through a fully connected layer and output the weight coefficients corresponding to each of the running data feature values.
[0057] The determination submodule is used to normalize each of the weight coefficients using a preset Softmax function to determine the attention coefficient corresponding to each of the weight coefficients.
[0058] The third submodule is used to sort all the attention coefficients in descending order and take the running data feature values corresponding to the attention coefficients of the first preset number of positions as key feature values.
[0059] According to the submodule, it is used to determine the probability of occurrence of multiple first features and the probability of occurrence of multiple second features based on the attention coefficients corresponding to each of the key feature values, the attention coefficients corresponding to each of the running data feature values, and the preset adjacency matrix function;
[0060] The calculation submodule is used to calculate the aggregated feature vector using the occurrence probabilities of each of the first features and each of the second features;
[0061] The statistics submodule is used to iteratively update the initial hidden state corresponding to each key feature value through the feature interaction layer using a gated loop update mechanism and the aggregated feature vector, output the corresponding intermediate hidden state, and count the number of hidden state update iterations in real time.
[0062] The fourth submodule is used to take each intermediate hidden state as the corresponding target hidden state when the number of hidden state update iterations reaches a preset first number.
[0063] A third aspect of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the power equipment fault diagnosis method as described in any of the preceding claims.
[0064] As can be seen from the above technical solutions, the present invention has the following advantages:
[0065] The above-mentioned technical solution of the present invention provides a method for fault diagnosis of power equipment. First, multiple operational attribute data of the power equipment to be detected are acquired, and each operational attribute data to be detected is input into a preset fault diagnosis model, which includes a target feature extraction network and a target classifier. Next, the target feature extraction network is used to perform feature enhancement extraction on each operational attribute data to be detected, generating target latent states corresponding to each operational attribute data. Finally, the target classifier performs classification diagnosis on each target latent state, outputting the corresponding fault diagnosis result of the power equipment. The above solution, by using a target feature extraction network to perform feature enhancement extraction on the operational attribute data to be detected, achieves a more effective understanding and processing of the correlation between complex data of power equipment, enhances the accuracy and efficiency of feature extraction, and further improves the accuracy of power equipment diagnosis results. Attached Figure Description
[0066] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0067] Figure 1 A flowchart illustrating the steps of a power equipment fault diagnosis method provided in an embodiment of the present invention;
[0068] Figure 2 A flowchart illustrating the steps of another power equipment fault diagnosis method provided in an embodiment of the present invention;
[0069] Figure 3 This is a schematic diagram of the target feature extraction network provided in an embodiment of the present invention;
[0070] Figure 4 This is a structural block diagram of a power equipment fault diagnosis device provided in an embodiment of the present invention. Detailed Implementation
[0071] This invention provides a method, apparatus, and device for diagnosing power equipment faults, which addresses the technical problem that traditional power equipment fault diagnosis methods cannot fully explore and understand the correlations between complex data in power equipment, resulting in low accuracy of power equipment diagnosis results.
[0072] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0073] The power industry has an urgent need for efficient and accurate fault diagnosis systems. The complexity of modern power systems and the generation of large-scale data require more advanced technologies to process and analyze data, ensuring stable system operation and reducing economic losses. Traditional fault diagnosis methods have significant limitations in data processing capabilities, feature extraction, generalization ability, model training stability, and adaptability to new technologies. Therefore, this application proposes a power equipment fault diagnosis method, apparatus, and equipment to address the technical problem that traditional power equipment fault diagnosis methods cannot fully explore and understand the correlations between complex power equipment data, resulting in low accuracy of power equipment diagnosis results.
[0074] Please see Figure 1 , Figure 1 A flowchart illustrating the steps of a power equipment fault diagnosis method provided in an embodiment of the present invention.
[0075] This invention provides a method for diagnosing faults in power equipment, comprising:
[0076] Step 101: Obtain multiple operational attribute data of the power equipment to be detected, and input each operational attribute data to be detected into the preset fault diagnosis model. The preset fault diagnosis model includes a target feature extraction network and a target classifier.
[0077] The pre-built fault diagnosis model consists of a target feature extraction network and a target classifier. The target feature extraction network includes a feature extraction layer, a fully connected layer, and a feature interaction layer.
[0078] It should be noted that the multiple operational attribute data to be detected are preprocessed data such as equipment status data, environmental parameters, and operation logs of the power equipment. These data originate from the power equipment's operation records and can form a single power equipment operation record. The power equipment operation record data exists in structured data format, such as tables or databases. The multiple operational attribute data to be detected in the power equipment operation record data include: aX_Voltage (voltage): the voltage value during power equipment operation; aY_Current (current): the current value during power equipment operation; aZ_Temperature (temperature): the temperature of the environment in which the power equipment is located; aA_Humidity; aB_Vibration: The humidity of the environment where the electrical equipment is located; aC_NoiseLevel: The vibration intensity generated by the electrical equipment during operation; aD_OperationTime: The operating time of the electrical equipment since the last maintenance; aE_ErrorCodes: The fault codes generated during the self-test of the electrical equipment; aF_MaintenanceHistory: The maintenance and repair history of the electrical equipment; aG_Load: The load condition of the equipment during operation, as exemplarily shown in Table 1.
[0079] Table 1 Data table of power equipment operation records
[0080]
[0081] In this embodiment, multiple operational attribute data of the power equipment to be detected are acquired, and each operational attribute data to be detected is input into a preset fault diagnosis model. The preset fault diagnosis model includes a target feature extraction network and a target classifier.
[0082] Step 102: Use a target feature extraction network to perform feature enhancement extraction on each running attribute data to be detected, and generate the target hidden state corresponding to each running attribute data to be detected.
[0083] The target feature extraction network consists of a feature extraction layer, a fully connected layer, and a feature interaction layer.
[0084] It should be noted that, firstly, the feature extraction layer extracts features from each of the input running attribute data to be detected, generating corresponding running data feature values. The set of running data feature values can be represented as:
[0085]
[0086] Where x is the set of running data feature values (input features); x1 is the first running data feature value; x r Let x be the feature value of the r-th running data; R Let B be the feature value of the Rth running data; B is the feature dimension; and R is the number of feature values.
[0087] Furthermore, a fully connected layer is used to apply feature bias to each feature value of the running data, and the weight coefficients corresponding to each feature value of the running data are output. The set of weight coefficients can be represented as C = {C1, ..., C2}. r ,…,C R}, where C is the set of weight coefficients; C1 is the first weight coefficient; C r C is the r-th weight coefficient; R For the Rth weight coefficient; the data processing procedure for the fully connected layer (fully connected neural network) is as follows:
[0088] C = Wx + b;
[0089] Where C is the set of weight coefficients; W is the weight; x is the set of feature values of the running data; and b is the bias.
[0090] Furthermore, the attention coefficients are obtained by normalizing each weight coefficient using the Softmax function. Specifically, a preset Softmax function is used to normalize each weight coefficient to determine the attention coefficient corresponding to each weight coefficient.
[0091]
[0092] in, Let R be the attention coefficient corresponding to the r-th weight coefficient; R is the total number of weight coefficients; C i is the attention coefficient corresponding to the i-th weight coefficient; exp() is the exponential operation with the natural logarithm base e as the base; ∑ is the summation function.
[0093] Furthermore, all attention coefficients are sorted in descending order, and the running data feature values corresponding to the first preset number of attention coefficients are used as key feature values. For example, assuming the preset number is K, after obtaining all attention coefficients and sorting them from largest to smallest (descending order), the first K attention coefficients are selected, and the running data feature values corresponding to these K attention coefficients are used as key feature values.
[0094] Furthermore, based on the attention coefficients corresponding to each key feature value, the attention coefficients corresponding to each running data feature value, and the preset adjacency matrix function, the occurrence probabilities of multiple first features and multiple second features are determined; wherein, the occurrence probability of the first feature represents the probability of the key feature value occurring given the running data feature value; the occurrence probability of the second feature represents the probability of the running data feature value occurring given the key feature value; the calculation formula for the occurrence probability of the first feature is as follows:
[0095]
[0096] Among them, A kk′ Given the k′-th running data feature value, let a be the probability of the first feature of the k-th key feature value appearing; k a is the attention coefficient corresponding to the k-th key feature value; k′ The attention coefficient is the value corresponding to the k′-th running data feature; K is the total number of key feature values; a j The attention coefficient is the value corresponding to the j-th key feature.
[0097] The formula for calculating the probability of the second feature occurring is as follows:
[0098]
[0099] Among them, A k′k Let a be the probability of the second feature appearing given the probability of the k′th running data feature value appearing under the condition of the kth key feature value; k a is the attention coefficient corresponding to the k-th key feature value; k′ The attention coefficient corresponding to the k′-th running data feature value; M is the total number of running data feature values; a m Let m be the feature value of the m-th running data.
[0100] Furthermore, an aggregated feature vector is calculated using the occurrence probabilities of each first feature and each second feature. Through a feature interaction layer, a gated loop update mechanism and the aggregated feature vector are used to iteratively update the initial hidden states corresponding to each key feature value, outputting the corresponding intermediate hidden states, and the number of hidden state update iterations is counted in real time. When the number of hidden state update iterations reaches a preset first number T, each intermediate hidden state is taken as the corresponding target hidden state, i.e., the final hidden state. At t=0, the initial hidden state corresponding to the key feature value is initialized using the key feature value, and can be expressed as: in, f is the hidden state at t=0. k These are key feature values; in this step, the preset first number can be set as needed, and no specific limitation is made here.
[0101] Furthermore, the target learning network parameters include first target learning network parameters, second target learning network parameters, third target learning network parameters, fourth target learning network parameters, fifth target learning network parameters, and sixth target learning network parameters; the gated cyclic update mechanism is as follows:
[0102]
[0103] in, Update the gate for temporary variables in the gated loop mechanism; σ() is the Sigmoid function; W g Learn network parameters for the primary objective; For aggregated feature vectors; U g Learn network parameters for the second objective; The initial hidden state is t≥1, where t is an integer; Reset the gate for temporary variables in the gated loop mechanism; W r Learn network parameters for the third objective; U r Learn network parameters for the fourth objective; The hidden state is the candidate hidden state; tanh() is the hyperbolic tangent function; W is the fifth objective learning network parameter; U is the sixth objective learning network parameter; ⊙ is the element-wise multiplication operation; This represents the intermediate hidden state; t represents time t.
[0104] Furthermore, the calculation process for the aggregated feature vector is as follows:
[0105]
[0106] in, For aggregated feature vectors; A kk′ Given the k′-th running data feature value, this represents the probability of the first feature appearing in the k-th key feature value. The hidden state at a historical moment corresponding to the feature value of the running data; A k′k Let be the probability of the second feature occurring given the probability of the occurrence of the k′th running data feature value under the condition of the kth key feature value.
[0107] In this embodiment, a target feature extraction network is used to perform feature enhancement extraction operations on each running attribute data to be detected, generating the target hidden state corresponding to each running attribute data to be detected.
[0108] Step 103: Classify and diagnose the hidden states of each target using a target classifier, and output the corresponding fault diagnosis results for the power equipment.
[0109] It should be noted that the final hidden state obtained will be... The input is fed into the target classifier for classification and diagnosis, and the corresponding fault diagnosis results of the power equipment are output. The fault diagnosis results are the diagnosis results of the power equipment's operating attribute data to be detected, which are represented as: normal operation: label number 0; minor fault: label number 1; moderate fault: label number 2; major fault: label number 3.
[0110] For example, a pre-trained fault diagnosis model is used to perform fault diagnosis on power equipment. Upon receiving new sample data (power equipment operation record data) from the power equipment, the pre-trained fault diagnosis model is applied to predict faults and classify them based on the prediction results. Specifically, let the new sample data be pX, and preprocessing operations (the same preprocessing as in the training phase of the pre-trained fault diagnosis model) are performed on the new sample data pX to obtain preprocessed power equipment operation record data, specifically:
[0111] pX prep =Preprocess(pX);
[0112] Among them, pX prep pX represents the preprocessed power equipment operation record data; pX represents the unprocessed power equipment operation record data; Preprocess() is the preprocessing function.
[0113] Furthermore, the pre-trained fault diagnosis model M is used to process the pre-processed power equipment operation record data pX. prep Feature extraction and fault prediction are performed to obtain fault diagnosis results. The fault diagnosis results are the predicted outputs of the pre-set fault diagnosis model for the fault type. The processing of the pre-set fault diagnosis model can be represented as follows:
[0114] pX pred =M(pX) prep );
[0115] Among them, pY pred The fault diagnosis result is represented by M; M is the preset fault diagnosis model; pX prep This refers to the preprocessed power equipment operation record data.
[0116] In this embodiment, a target classifier is used to classify and diagnose the hidden states of each target, and output the corresponding fault diagnosis results of the power equipment.
[0117] In this embodiment of the invention, a method for diagnosing power equipment faults is provided. First, multiple operational attribute data of the power equipment to be detected are acquired, and each operational attribute data is input into a preset fault diagnosis model, which includes a target feature extraction network and a target classifier. Next, the target feature extraction network is used to perform feature enhancement extraction on each operational attribute data to be detected, generating target latent states corresponding to each operational attribute data. Finally, the target classifier performs classification diagnosis on each target latent state, outputting the corresponding fault diagnosis result of the power equipment. This scheme, by using a target feature extraction network to perform feature enhancement extraction on the operational attribute data to be detected, achieves a more effective understanding and processing of the correlations between complex data of power equipment, enhances the accuracy and efficiency of feature extraction, and further improves the accuracy of power equipment diagnosis results.
[0118] Please see Figure 2 , Figure 2 A flowchart illustrating the steps of another power equipment fault diagnosis method provided in an embodiment of the present invention.
[0119] This invention provides a method for diagnosing faults in power equipment, comprising:
[0120] Step 201: Obtain multiple training operation attribute data of power equipment, and label each training operation attribute data to determine the corresponding labeled operation data.
[0121] It should be noted that the multiple training operational attribute data are equipment status data, environmental parameters, operation logs, etc., of the power equipment. These data originate from the power equipment's operational records, and can form multiple training power equipment operational record datasets. These training power equipment operational record data exist in structured data form, such as tables or databases. The multiple training operational attribute data may include: aX_Voltage (voltage): the voltage value of the power equipment during operation; aY_Current (current): the current value of the power equipment during operation; aZ_Temperature (temperature): the temperature of the environment in which the power equipment is located; aA_Hu midity (humidity): The humidity of the environment where the electrical equipment is located; aB_Vibration (vibration): The intensity of vibration generated by the electrical equipment during operation; aC_NoiseLevel (noise level): The noise level of the electrical equipment during operation; aD_OperationTime (operation time): The operating time of the electrical equipment since the last maintenance; aE_ErrorCodes (error codes): The error codes generated during the self-test of the electrical equipment; aF_MaintenanceHistory (maintenance history): The maintenance and repair history of the electrical equipment; aG_Load (load): The load condition of the equipment during operation.
[0122] Furthermore, the collected training attribute data is labeled manually based on experience. The data labeling categories include: normal operation: label number 0; minor fault: label number 1; moderate fault: label number 2; major fault: label number 3.
[0123] In this embodiment, multiple training operation attribute data of power equipment are obtained, and each training operation attribute data is labeled to determine the corresponding labeled operation data.
[0124] Step 202: Preprocess the labeled running data to generate the corresponding standardized running data.
[0125] It should be noted that the labeled running data undergoes preprocessing to improve its quality and make it more suitable for subsequent model training and analysis. The process of applying standardization (preprocessing) to each attribute (labeled running data) is as follows:
[0126]
[0127] Where, bX′ i For the i-th standardized running data; bX i For the i-th labeled running data; The mean; The standard deviation is denoted as .
[0128] In this embodiment, the labeled running data is preprocessed to generate corresponding standardized running data.
[0129] Step 203: Based on the preset generator, determine multiple generated attribute data.
[0130] It should be noted that the acquisition, labeling, and preprocessing of training data are time-consuming and labor-intensive, and insufficient training samples can easily lead to poor model generalization ability and affect model accuracy. This invention employs a gradient-checking-based generative adversarial network (GAN) algorithm for sample generation, thereby expanding the data and enhancing the diversity and quality of the dataset, thus improving the model training effect. The GAN consists of two parts: a generator (G) and a discriminator (D). The generator is responsible for producing data, and the discriminator is responsible for determining whether the data comes from a real dataset. Through continuous training, the generator learns to produce increasingly realistic data, while the discriminator learns to better distinguish between real and generated data. During training, this invention utilizes a gradient checking strategy to optimize the training process of the GAN. Gradient checking helps identify gradient explosion or vanishing problems during training, ensuring stable training of the GAN. Simultaneously, this invention introduces an engagement constraint mechanism during data generation, controlling the engagement between generated and real data to ensure the diversity and reliability of the generated data.
[0131] Optionally, the training process of the preset generator may include the following steps:
[0132] S01. Obtain multiple real operating attribute data of power equipment.
[0133] It should be noted that G is defined as the representation of the generator (G) part; D is the representation of the discriminator (D) part; W G For generator weights; W D λ is the discriminator weight; θ is the gradient check threshold; z is the participation limit threshold; tanh is the preset random noise input to the generator; tanh is the hyperbolic tangent activation function. P is the gradient of the generator weights; clip is a function; x is a real data sample (multiple real running attribute data can form a real data sample); G(z) is the data sample generated by the generator based on the input z (multiple training attribute data can form a data sample); P div To represent the engagement between generated data and real data; e is the base of the natural logarithm, approximately equal to 2.71828; x i Let G(z) be the i-th real running attribute data (element) in the real data sample; i σ is the i-th element in the data sample generated by the generator (the attribute data to be generated during training); σ is the sigmoid activation function; L is the loss function.
[0134] Furthermore, multiple real-world operational attribute data of the power equipment are obtained, and simultaneously, the weight W of the generator G is... G The weights W of the discriminator D DAll values are initialized to random small values. At the same time, the learning rate, gradient checking threshold λ, and participation limit threshold θ of the generator and discriminator are initialized.
[0135] S02. Based on the initial generator, determine the training generation attribute data corresponding to each real running attribute data.
[0136] It should be noted that the initial generator generates data by compressing the generator output to the range of -1 to 1 using the activation function tanh. This process can be represented as:
[0137]
[0138] Where G(z) represents the attribute data to be generated during training; tanh() is the hyperbolic tangent activation function; z is the preset random noise input; W G For generator weights.
[0139] S03. Input the attribute data to be trained into the initial discriminator and output the corresponding attribute data discrimination value.
[0140] It should be noted that the discriminator can be trained using real data (real running attribute data) and generated data (attribute data to be trained). That is, real or generated data can be input into the discriminator for processing. The activation function σ compresses the discriminator's output to between 0 and 1, representing the probability that the input data is "real". The specific processing procedure is as follows:
[0141]
[0142] Wherein, D(G(z);W D ) represents the attribute data discriminant value; W D σ is the discriminator weight; G(z) is the attribute data to be generated during training; σ() is the Sigmoid activation function.
[0143] S04. Use a preset quality scoring function to evaluate the quality of the discriminant values of each attribute data and determine the data quality score.
[0144] It should be noted that the quality of the generated data is evaluated using a pre-defined quality scoring function Q(G(z)). This function is constructed based on the discriminator's output and can be expressed as:
[0145] Q(G(z))=D(G(z); W D );
[0146] Where Q(G(z)) is the data quality score, and the closer its value is to 1, the higher the quality; D(G(z)); W D ) is the attribute data discrimination value.
[0147] S05. Calculate the data participation degree using real running attribute data and attribute data to be generated during training.
[0148] It should be noted that the generated data application has participation limits to ensure its diversity and difference from real data. Furthermore, the generator's parameters are adjusted based on the participation results. Specifically, the calculation method for data participation between generated data and real data can be expressed as follows:
[0149]
[0150] Among them, P div (x, G(z)) represents the data engagement; x i Let G(z) be the i-th actual running attribute data. i Generate attribute data for the i-th trainable element; |x i -G(z) i | represents the absolute value of the difference between the i-th real running attribute data and the i-th generated attribute data to be trained. This value reflects the difference between the generated data and the real data in each dimension, and measures the overall similarity between the two. ; x represents the real running attribute data; G(z) represents the generated attribute data to be trained.
[0151] S06. If the data participation rate is less than the initial participation rate limit threshold, the initial participation rate limit threshold is updated using the data quality score, the intermediate participation rate limit threshold is output, and the generator iteration count is counted in real time.
[0152] It should be noted that if the data participation rate P div If (x, G(z)) is less than the initial participation limit threshold θ, the initial participation limit threshold θ is dynamically adjusted based on the quality score of the generated data. When the quality score of the generated data is high (Q(G(z)) is close to 1), then θ′ is the initial participation limit threshold θ. When the quality score of the generated data is low, θ′ is decreased, thus more strictly limiting the participation of the generated data. Specifically, the initial participation limit threshold is updated using the data quality score, and an intermediate participation limit threshold is output. This process is as follows:
[0153] θ′=θ·(1-α·(1-Q(G(z))));
[0154] Where θ′ is the intermediate participation limit threshold; θ is the initial participation limit threshold; α is the adjustment factor used to control the sensitivity of threshold adjustment; and Q(G(z)) is the data quality score.
[0155] S07. Based on the preset generation and discrimination gradient checking strategy, the initial generator weights of the initial generator and the initial discriminator weights of the initial discriminator are updated using the number of generator iterations and the preset cross-entropy loss function to determine the intermediate generator weights and intermediate discriminator weights.
[0156] The pre-defined gradient checking strategy for generation and discrimination includes a generator gradient checking strategy and a discriminator gradient checking strategy.
[0157] It should be noted that if the data participation rate P div When (x, G(z)) is less than the initial participation limit threshold θ, while dynamically adjusting the initial participation limit threshold θ, it is also necessary to update the initial generator weights of the initial generator and the initial discriminator weights of the initial discriminator to increase diversity.
[0158] Specifically, in updating the initial generator weights and the initial discriminator weights, this invention uses a progressive learning rate adjustment method to determine the learning rates of the generator and discriminator. The learning rates are dynamically adjusted based on the training stage and model performance to achieve more effective training and faster convergence. Specifically, after initializing the learning rate, an initial learning rate η is set for training the generator and discriminator. During iteration, the learning rate is adjusted based on a function Λ(), which adjusts the learning rate according to the number of training iterations and the current performance metric of the model. This performance metric is the output of the joint loss function of the generator and discriminator. In each training iteration, the learning rate is dynamically adjusted according to the function Λ() and the model performance metric. That is, after dynamically adjusting the initial participation limit threshold θ, the initial learning rates of the generator and discriminator (which are the same) are updated to obtain an intermediate learning rate. This process is as follows:
[0159]
[0160] Where, η new η is the intermediate learning rate; init Λ is the initial learning rate; Λ() is the exponential decay function; P is the model performance index; L(D,G) is the joint loss function of the generator and discriminator.
[0161] Further, after updating the initial learning rates of the generator and discriminator, the initial generator weights and initial discriminator weights are respectively derived using the pre-set cross-entropy loss function L, yielding the corresponding initial generator gradient and initial discriminator gradient. The generator gradient is updated using a generator gradient checking strategy to obtain the intermediate generator gradient; the discriminator gradient is updated using a discriminator gradient checking strategy to obtain the intermediate discriminator gradient; the initial generator weights are updated using the intermediate generator gradient and intermediate learning rate to obtain the intermediate generator weights; and the initial discriminator weights are updated using the intermediate discriminator gradient and intermediate learning rate to obtain the intermediate discriminator weights. The process of updating the initial generator weights can be represented as follows:
[0162]
[0163] Among them, W′ G ′ represents the intermediate generator weights; W G η represents the initial generator weights. new This is the intermediate learning rate; This represents the gradient of the intermediate generator.
[0164] Furthermore, the process of updating the initial discriminator weights can be represented as:
[0165]
[0166] Among them, W′ D ′ represents the weight of the intermediate discriminator; W D η represents the initial discriminator weights. new This is the intermediate learning rate; This represents the gradient of the intermediate discriminator.
[0167] Furthermore, the process of updating the initial generator gradient can be represented as:
[0168]
[0169] in, W represents the initial generator gradient. G The initial generator weights are L; L is the preset cross-entropy loss function. λ is the gradient of the intermediate generator; λ is the gradient checking threshold; clip() is the constraint function that limits the generator gradient to between -λ and λ to prevent gradient explosion. This is a gradient checking strategy for the generator.
[0170] Furthermore, the process of updating the initial discriminator gradient can be represented as:
[0171]
[0172] in, W is the initial discriminator gradient; W is the preset cross-entropy loss function; W D These are the initial discriminator weights; λ is the gradient of the intermediate discriminator; λ is the gradient checking threshold; clip() is the constraint function; This is the gradient checking strategy for the discriminator.
[0173] In this step, the generator is adjusted based on feedback from the discriminator. This process continues until both the generator and discriminator achieve the desired effect. Specifically, the alternating optimization process for the generator and discriminator includes updating W. G To optimize G and update W D To optimize D, repeat this process until G and D reach equilibrium.
[0174] S08. Update the initial discriminator using the intermediate discriminator weights to determine the intermediate discriminator. Update the initial generator using the intermediate generator weights to determine the intermediate generator.
[0175] S09. When the generator iteration count reaches the preset fourth iteration, the intermediate discriminator is used as the target discriminator and the intermediate generator is used as the preset generator.
[0176] It should be noted that when the generator reaches the preset fourth iteration, the iteration update of the generator and discriminator stops. The generator obtained from the current iteration is used as the trained preset generator. The trained preset generator is used to output the attribute data to be trained, thereby training the initial feature extraction network and the initial classifier. The preset fourth iteration can be set as needed and is not specifically limited here.
[0177] In this embodiment, multiple generation attribute data are determined based on a preset generator.
[0178] Step 204: Based on the preset first gradient check strategy, use each standardized running data and each generated attribute data to input into the initial feature extraction network for training, and determine the target feature extraction network and multiple target hidden states to be trained.
[0179] Furthermore, step 204 may include the following sub-steps:
[0180] S41. Input each standardized running data and each generated attribute data into the initial feature extraction network to perform feature enhancement extraction and output multiple hidden states of the target to be trained.
[0181] S42. Input the hidden state of each target to be trained into the preset Softmax classification function to generate the corresponding prediction category to be trained.
[0182] S43. Using each training prediction category, a preset true category, and a preset cross-entropy loss function, calculate the feature extraction network loss value;
[0183] S44. Based on the preset first gradient checking strategy, the initial learning network parameters in the initial feature extraction network are iteratively updated using the feature extraction network loss value, the intermediate learning network parameters are output, and the number of parameter update iterations is counted in real time.
[0184] S45. When the number of parameter update iterations reaches the preset second number, the intermediate learning network parameters are used as the target learning network parameters, and the initial feature extraction network is updated using the target learning network parameters to determine the target feature extraction network.
[0185] The initial learning network parameters include the first initial learning network parameters, the second initial learning network parameters, the third initial learning network parameters, the fourth initial learning network parameters, the fifth initial learning network parameters, and the sixth initial learning network parameters.
[0186] It should be noted that the initial learning network parameters of the untrained initial feature extraction network in this application are updated using a gradient descent-based backpropagation algorithm. The updated loss function is a preset cross-entropy loss function. The loss value corresponding to the cross-entropy loss function is calculated based on the predicted class and the true class obtained by inputting the generated final hidden state (the hidden state of the target to be trained) into a preset Softmax classification function. Then, based on the feature extraction network loss value and the initial learning network parameters, the initial feature extraction gradient is determined. A preset first gradient checking strategy is used to update the initial feature extraction gradient to obtain the intermediate feature extraction gradient. Finally, the initial learning network parameters are updated using the intermediate feature extraction gradient and a preset feature extraction learning rate. That is, based on the preset first gradient checking strategy, the initial learning network parameters in the initial feature extraction network are iteratively updated using the feature extraction network loss value. When the number of iterations reaches a preset threshold (preset second number), iterative training stops, the target learning network parameters are output, and the initial feature extraction network is updated using the target learning network parameters to obtain the trained target feature extraction network. The preset second number can be set as needed and is not specifically limited here.
[0187] Furthermore, the process of updating the initial feature extraction gradient is as follows:
[0188]
[0189] in, The initial feature extraction gradient is L; the preset cross-entropy loss function is W. h To initially learn the network parameters; Gradient extraction is performed for intermediate features; λ is the gradient checking threshold; clip() is the constraint function. This is a pre-defined first-gradient inspection strategy.
[0190] In this embodiment, based on a preset first gradient checking strategy, standardized running data and generated attribute data are input into the initial feature extraction network for training to determine the target feature extraction network and multiple hidden states of the target to be trained.
[0191] Step 205: Based on the preset second gradient checking strategy, train the initial classifier using the hidden states of each target to be trained, and determine the target classifier.
[0192] It should be noted that this application proposes a functionally linked neural network (FRM) classification algorithm based on the decalte algorithm, incorporating an improved gradient checking strategy to achieve more efficient and accurate power equipment fault classification. The FRM structure not only relies on traditional neural network connections but also introduces additional functional links into the network. These links can be non-linear, cross-layer, or custom-defined complex patterns. During the training process of this invention, a gradient checking strategy is introduced to ensure the stability of network training. This strategy helps avoid gradient explosion or vanishing problems during training. Simultaneously, this invention introduces adaptive functional units into the network. These units can automatically adjust their functional form according to data characteristics, thereby improving the network's ability to identify different types of faults.
[0193] Specifically, the training process of the functional link neural network classification algorithm based on decalth is as follows:
[0194] First, define W. i b represents the weight of the u-th neuron (classifier weight); i This is the bias of the i-th neuron; The mean is 0 and the variance is σ. 2 The input data follows a normal distribution; x is the input data or feature vector; f() is the ReLU activation function; o i The output of layer i; u is the functional unit; T(x) is the feature extracted from the input data x; g is the adjustment function; y is the true label or target value; L n The pre-defined classifier loss function; For relative to weight W i The gradient of the loss function (classifier weights); θ is the threshold for gradient clipping; clip is a function (constraint function) used to restrict the input between a given minimum and maximum value; x fusion The output after multimodal feature fusion; x1, x2, ..., x m Input features for different modalities; α iη is the fusion coefficient of the i-th modality feature; η is the learning rate of the preset classifier; C is the total number of categories in the classification task; This represents the probability output of the network output layer corresponding to the i-th category; Importance(x) i ) represents the importance score of the i-th modal feature.
[0195] Furthermore, the parameters of the neural network are initialized, including weights and biases. Specifically, during the initialization of weights and biases, the weight W for each neuron i is... i and bias b i Initialization can be represented as:
[0196]
[0197] Among them, W i The weight of the i-th neuron (classifier weight); This indicates that the mean is 0 and the variance is σ. 2 The normal distribution; b i σ is the bias of the i-th neuron; 2 Let Variance be the variance.
[0198] Furthermore, the normal distribution The density function is:
[0199]
[0200] Where p(x) is the density function value; x is the input data; μ = 0 is the mean; σ 2 Variance is used to control the shape of the distribution.
[0201] Furthermore, by performing forward propagation of the data, the mode of the functional units is adaptively adjusted according to the characteristics of the data. Specifically, let x be the input vector and f be the activation function, then the output of the i-th layer is:
[0202] o i =f(W i ·x+b i );
[0203] Among them, o i The output of the i-th layer is f; f() is the ReLU activation function; W i Let be the weight of the i-th neuron (classifier weights); x be the input vector (input data); b be the weight of the i-th neuron (classifier weights); i This is the bias of the i-th neuron.
[0204] Based on the above, f() is the ReLU activation function, defined as follows:
[0205] ReLU(x) = max(0, x);
[0206] Here, x is the input vector, and when x>0, x is output; otherwise, 0 is output, which is used to introduce nonlinearity; ReLU() is the ReLU activation function.
[0207] Furthermore, during the adaptive adjustment of functional units, for each functional unit u, its behavior is adjusted according to the characteristics T(x) of the input data:
[0208] u′=g(u,T(x));
[0209] Where u′ is the adjusted functional unit; u is the functional unit; T(x) is the feature extracted from the input data x; and g() is the adjustment function.
[0210] Furthermore, data features from different modalities are fused together to form a comprehensive feature representation. Specifically, in the feature fusion process, let x1, x2, ..., x... m For features of different modalities, fuse feature x fusion It can be represented as:
[0211]
[0212] Where, x fusion For fusion features; m is the total number of features; α i x is the fusion coefficient; i Let be the feature of the i-th different mode.
[0213] Furthermore, the fusion coefficient α in multimodal feature fusion i Based on preliminary exploratory data analysis, it can be expressed as:
[0214]
[0215] Where, α i The fusion coefficient; Importance(x) i ) represents the importance score of the i-th modal feature; x j Let be the feature of the j-th different modality; m is the total number of features.
[0216] Furthermore, step 205 may include the following sub-steps:
[0217] S51. Input the hidden states of each target to be trained into the initial classifier for classification and diagnosis, and output the fault diagnosis results to be trained.
[0218] S52. Using the fault diagnosis results to be trained and the preset classifier loss function, calculate the classifier loss value;
[0219] S53. Based on the preset second gradient checking strategy, the initial classifier weights of the initial classifier are iteratively updated using the classifier loss value, the intermediate classifier weights are output, and the number of iterations of the classifier weights is counted in real time.
[0220] S54. When the number of iterations of the classifier weights reaches the preset third number, the intermediate classifier weights are used as the target classifier weights, and the initial classifier is updated using the target classifier weights to determine the target classifier.
[0221] It should be noted that the hidden states of each target to be trained are input into the initial classifier for classification and diagnosis, the output of the fault diagnosis results to be trained is then calculated, and backpropagation is performed. Specifically, let y be the preset true label, the fault diagnosis results to be trained are input into the preset classifier loss function, and the classifier loss value is calculated. This process can be expressed as:
[0222] L n =-∑ylog(o n );
[0223] Among them, L n y is the pre-defined classifier loss function; o is the pre-defined true label; y is the pre-defined true label ... n The results of fault diagnosis are for the training process.
[0224] Furthermore, a gradient checking strategy (pre-set second gradient checking strategy) is adopted during backpropagation. Specifically, the gradient of the pre-set classifier loss function with respect to the weights is calculated, i.e., the partial derivative of the pre-set classifier loss function with respect to the weights of the initial classifier is obtained to obtain the initial classifier gradient. Then, the initial classifier gradient is updated using the pre-set second gradient checking strategy to obtain the intermediate classifier gradient. The initial classifier weights of the initial classifier are updated using the intermediate classifier gradient and the pre-set classifier learning rate to obtain the intermediate classifier weights. The number of iterations of the classifier weights is counted in real time. When the number of iterations of the classifier weights reaches the pre-set third number, the intermediate classifier weights are used as the target classifier weights, and the initial classifier is updated using the target classifier weights to determine the target classifier. The pre-set third number can be set as needed and is not specifically limited here. The update process of the initial classifier gradient can be expressed as follows:
[0225]
[0226] in, W represents the gradient of the initial classifier. i L represents the initial classifier weights; n This is the pre-defined loss function for the classifier.
[0227] Furthermore, the pre-defined second gradient checking strategy can be expressed as:
[0228]
[0229] in, The gradient of the intermediate classifier; θ is the gradient of the initial classifier; θ is the gradient clipping threshold; clip() is the constraint function.
[0230] Furthermore, the `clip` function restricts the input gradient to the interval [a, b] to avoid the gradient being too large or too small, and is defined as:
[0231] clip(x,a,b)=min(max(x,a),b);
[0232] Here, clip() is the constraint function; x is the gradient of the input; a is the value in the first interval; and b is the value in the second interval.
[0233] Furthermore, through multiple iterations, the network parameters and functional link patterns are continuously optimized. Specifically, when updating the initial classifier weights, gradient descent is used to update the weights, which can be expressed as:
[0234]
[0235] Among them, W i new W represents the weights of the intermediate classifier. i η represents the initial classifier weights; η is the preset classifier learning rate. The gradient of the intermediate classifier.
[0236] In this embodiment, based on a preset second gradient checking strategy, the initial classifier is trained using the hidden states of each target to be trained, and the target classifier is determined.
[0237] Step 206: Construct a pre-built fault diagnosis model using a target feature extraction network and a target classifier.
[0238] In this embodiment, a target feature extraction network and a target classifier are used to construct a pre-set fault diagnosis model.
[0239] Step 207: Obtain multiple operational attribute data of the power equipment to be detected, and input each operational attribute data to be detected into the preset fault diagnosis model. The preset fault diagnosis model includes a target feature extraction network and a target classifier.
[0240] In this embodiment, multiple operational attribute data of the power equipment to be detected are acquired, and each operational attribute data to be detected is input into a preset fault diagnosis model. The preset fault diagnosis model includes a target feature extraction network and a target classifier.
[0241] Step 208: Use a target feature extraction network to perform feature enhancement extraction on each running attribute data to be detected, and generate the target hidden state corresponding to each running attribute data to be detected.
[0242] The target feature extraction network consists of a feature extraction layer, a fully connected layer, and a feature interaction layer.
[0243] Furthermore, step 208 may include the following sub-steps:
[0244] S81. A feature extraction layer is used to extract features from each of the input running attribute data to be detected, and corresponding running data feature values are generated.
[0245] S82. The feature values of each running data are biased by the fully connected layer, and the weight coefficients corresponding to each running data feature value are output.
[0246] S83. Use the preset Softmax function to normalize each weight coefficient and determine the attention coefficient corresponding to each weight coefficient.
[0247] S84. Sort all attention coefficients in descending order and take the running data feature values corresponding to the attention coefficients of the first preset number of positions as key feature values.
[0248] S85. Based on the attention coefficients corresponding to each key feature value, the attention coefficients corresponding to each running data feature value, and the preset adjacency matrix function, determine the probability of occurrence of multiple first features and the probability of occurrence of multiple second features.
[0249] S86. Calculate the aggregated feature vector using the occurrence probabilities of each first feature and each second feature;
[0250] S87. The initial hidden state corresponding to each key feature value is iteratively updated by using a gated loop update mechanism and aggregated feature vectors through the feature interaction layer, and the corresponding intermediate hidden state is output. The number of hidden state update iterations is counted in real time.
[0251] S88. When the number of hidden state update iterations reaches the preset first number, each intermediate hidden state is taken as the corresponding target hidden state.
[0252] It should be noted that you should refer to [link / reference]. Figure 3 First, the features output from the feature extraction layer are input into a fully connected layer to learn the attention coefficients for each feature value. The top K (pre-set number of) feature values with the largest attention coefficients are selected as key feature values. Second, a graph neural network is constructed using these key feature values as nodes. Simultaneously, an adjacency matrix is built using the attention coefficients. The graph neural network facilitates interactions between features to obtain the updated features, i.e., the features after feature extraction. The top K largest attention coefficients are denoted as 'a'.k ={a1, ..., a K}, and record the index value of the corresponding feature value ID = {id1, ..., id2}. K}, based on the index value, obtain the corresponding key feature value F = {f1, ..., f}. K These K feature values, having larger attention coefficients, receive more attention from the model and are therefore considered key feature values.
[0253] Furthermore, data with the first K features is input into a feature interaction layer, and a graph neural network is constructed using key feature values as nodes. A gating mechanism is introduced into the graph neural network to achieve information interaction of node features. Specifically, let the constructed graph neural network be G = (V, A), where nodes V = {v1, ..., v} k , ..., v K} represents the key feature value, that is, each key feature value k is associated with a node v. k ∈V are associated. A is a K×K adjacency matrix whose elements are A kk′ The calculation process is as follows:
[0254]
[0255] Among them, A kk′ Given the k′-th running data feature value, let a be the probability of the first feature of the k-th key feature value appearing; k a is the attention coefficient corresponding to the k-th key feature value; k′ The attention coefficient is the value corresponding to the k′-th running data feature; K is the total number of key feature values; a j The attention coefficient is the value corresponding to the j-th key feature.
[0256] Furthermore, inspired by graph propagation, this invention employs a gated cyclic update mechanism to transmit information through the graph and learn the contextual association features. Specifically, for each node v... k ∈V, assume its hidden state at time t is First, use the key feature value f k The hidden state initialized to t=0 can be represented as:
[0257]
[0258] in, Key feature value f k Initialize the hidden state at t=0; f k These are key feature values.
[0259] Furthermore, at time t, a gated loop update mechanism is used, where each node gathers messages from its neighbors based on the aggregated feature vector. and the previous time step Each node updates its hidden state through a gated cyclic update mechanism, which is specifically as follows:
[0260]
[0261] in, Update the gate for temporary variables in the gated loop mechanism; σ() is the Sigmoid function; W g Learn network parameters for the primary objective; For aggregated feature vectors; U g Learn network parameters for the second objective; The initial hidden state is t≥1, where t is an integer; Reset the gate for temporary variables in the gated loop mechanism; W r Learn network parameters for the third objective; U r Learn network parameters for the fourth objective; The hidden state is the candidate hidden state; tanh() is the hyperbolic tangent function; W is the fifth objective learning network parameter; U is the sixth objective learning network parameter; ⊙ is the element-wise multiplication operation; This represents the intermediate hidden state; t represents time t.
[0262] Furthermore, when feature v k With feature v k When there is a high correlation, the graph neural network will pass information between the two; otherwise, it will suppress information passing. The above feature updates are iterated T times (with a preset first iteration number) to generate the final hidden state. (Target hidden state). That is, The output of the target feature extraction network not only encodes feature v k The information also incorporates contextual information from the feature sequence.
[0263] In this embodiment, a target feature extraction network is used to perform feature enhancement extraction operations on each running attribute data to be detected, generating the target hidden state corresponding to each running attribute data to be detected.
[0264] Step 209: Classify and diagnose the hidden states of each target using a target classifier, and output the corresponding fault diagnosis results for the power equipment.
[0265] In this embodiment, a target classifier is used to classify and diagnose the hidden states of each target, and output the corresponding fault diagnosis results of the power equipment.
[0266] As a comparison of technical effectiveness, existing technologies can be used as a reference. Traditional methods may rely on limited and incomplete datasets, which restricts the training and generalization capabilities of the model. A lack of sufficient data samples or data diversity can easily lead to the model's inability to accurately predict unseen fault types. Traditional fault diagnosis methods may not fully utilize advanced feature extraction techniques, resulting in an inability to fully explore and understand the correlations between complex data, thus reducing diagnostic accuracy. Existing technologies may rely more on traditional neural network models, lacking innovative network structures, which limits the model's ability to handle complex and nonlinear problems. Traditional methods may not effectively address the gradient explosion or vanishing problem during model training, which may lead to unstable model training and affect the final diagnostic results. Due to the above-mentioned problems, existing technologies may have limitations in diagnostic efficiency and accuracy, especially when dealing with large-scale, highly complex data. Due to limitations in data diversity and model structure, existing technologies may perform poorly when generalizing to new or unknown fault types.
[0267] To address the aforementioned issues, this application provides a power equipment fault diagnosis method. Through high-quality data and advanced feature extraction methods, it significantly improves the accuracy of fault diagnosis. Data augmentation and innovative network structures enhance the model's ability to handle diverse and novel situations. Optimized feature extraction and classification methods improve the efficiency of the diagnostic process and reduce the possibility of misdiagnosis. The integration of gradient checking strategies ensures the stability of model training and improves the reliability of the final model. Furthermore, in terms of data augmentation, the use of gradient-checked generative adversarial networks not only solves the problem of insufficient training samples but also increases the diversity of the dataset, further improving the model's generalization ability and diagnostic accuracy. Employing graph neural networks for feature extraction allows the model to more effectively understand and process complex relationships between features, enhancing the accuracy and efficiency of feature extraction. The use of decalth-based functional linking neural networks in classifier training, a structure that not only relies on traditional neural network connections but also introduces additional functional links, improves the network's ability to identify different types of faults, especially when dealing with complex and nonlinear problems. The integration of gradient checking strategies throughout the entire model training process effectively prevents gradient explosion or vanishing problems that may occur during training, ensuring the stability of the training process and the reliability of the model.
[0268] In this embodiment of the invention, a method for diagnosing power equipment faults is provided. First, multiple operational attribute data of the power equipment to be detected are acquired, and each operational attribute data is input into a preset fault diagnosis model, which includes a target feature extraction network and a target classifier. Next, the target feature extraction network is used to perform feature enhancement extraction on each operational attribute data to be detected, generating target latent states corresponding to each operational attribute data. Finally, the target classifier performs classification diagnosis on each target latent state, outputting the corresponding fault diagnosis result of the power equipment. This scheme, by using a target feature extraction network to perform feature enhancement extraction on the operational attribute data to be detected, achieves a more effective understanding and processing of the correlations between complex data of power equipment, enhances the accuracy and efficiency of feature extraction, and further improves the accuracy of power equipment diagnosis results.
[0269] Please see Figure 4 , Figure 4 This is a structural block diagram of a power equipment fault diagnosis device provided in an embodiment of the present invention.
[0270] The present invention provides a fault diagnosis device for power equipment, comprising:
[0271] The acquisition module 401 is used to acquire multiple operational attribute data of the power equipment to be detected, and input each operational attribute data to be detected into a preset fault diagnosis model. The preset fault diagnosis model includes a target feature extraction network and a target classifier.
[0272] Module 402 is used to perform feature enhancement extraction on each running attribute data to be detected using a target feature extraction network, and generate the target hidden state corresponding to each running attribute data to be detected.
[0273] The output module 403 is used to classify and diagnose the hidden states of each target through the target classifier and output the corresponding fault diagnosis results of the power equipment.
[0274] Furthermore, the target feature extraction network includes a feature extraction layer, a fully connected layer, and a feature interaction layer; it employs module 402, which includes:
[0275] The first submodule is used to extract features from the input running attribute data to be detected using a feature extraction layer, and generate corresponding running data feature values.
[0276] The second submodule is used to perform feature biasing on each feature value of the running data through a fully connected layer and output the weight coefficients corresponding to each feature value of the running data.
[0277] The determination submodule is used to normalize each weight coefficient using a preset Softmax function to determine the attention coefficient corresponding to each weight coefficient.
[0278] The third submodule is used to sort all attention coefficients in descending order and take the running data feature values corresponding to the attention coefficients of the first preset number of positions as key feature values.
[0279] According to the submodule, it is used to determine the probability of occurrence of multiple first features and multiple second features based on the attention coefficients corresponding to each key feature value, the attention coefficients corresponding to each running data feature value, and the preset adjacency matrix function;
[0280] The calculation submodule is used to calculate the aggregated feature vector using the occurrence probabilities of each first feature and each second feature;
[0281] The statistics submodule is used to iteratively update the initial hidden state corresponding to each key feature value through the feature interaction layer using a gated loop update mechanism and aggregated feature vectors, output the corresponding intermediate hidden state, and count the number of hidden state update iterations in real time.
[0282] The fourth submodule is used to take each intermediate hidden state as the corresponding target hidden state when the number of hidden state update iterations reaches the preset first number.
[0283] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, modules, and sub-modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0284] This invention also provides an electronic device, which includes a processor and a memory:
[0285] The memory is used to store program code and transfer the program code to the processor;
[0286] The processor is used to execute the power equipment fault diagnosis method of the above embodiments of the present invention according to the instructions in the program code.
[0287] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0288] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0289] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions 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 method for diagnosing faults in power equipment, characterized in that, include: Multiple operational attribute data of power equipment to be detected are acquired, and each of the operational attribute data to be detected is input into a preset fault diagnosis model, wherein the preset fault diagnosis model includes a target feature extraction network and a target classifier; The target feature extraction network is used to perform feature enhancement extraction operations on each of the detected running attribute data to generate the target hidden state corresponding to each of the detected running attribute data. The target classifier is used to classify and diagnose the hidden states of each target, and the corresponding fault diagnosis results of the power equipment are output. The target feature extraction network includes a feature extraction layer, a fully connected layer, and a feature interaction layer; the step of using the target feature extraction network to perform feature enhancement extraction operations on each of the detected running attribute data to generate the target hidden state corresponding to each of the detected running attribute data includes: A feature extraction layer is used to extract features from each of the input running attribute data to be detected, generating corresponding running data feature values; Each of the operational data feature values is biased by a fully connected layer, and the weight coefficients corresponding to each of the operational data feature values are output. The attention coefficients corresponding to each weight coefficient are determined by normalizing each weight coefficient using a preset Softmax function. Sort all the attention coefficients in descending order, and take the running data feature values corresponding to the first preset number of attention coefficients as key feature values. Based on the attention coefficients corresponding to each key feature value, the attention coefficients corresponding to each running data feature value, and the preset adjacency matrix function, determine the probability of occurrence of multiple first features and the probability of occurrence of multiple second features; The aggregated feature vector is calculated using the occurrence probabilities of each of the first features and each of the second features. The initial hidden state corresponding to each key feature value is iteratively updated by the feature interaction layer using a gated loop update mechanism and the aggregated feature vector, and the corresponding intermediate hidden state is output. The number of hidden state update iterations is counted in real time. When the number of hidden state update iterations reaches the preset first number, each of the intermediate hidden states is taken as the corresponding target hidden state. Before the step of determining multiple generated attribute data based on a preset generator, the following steps are included: Obtain multiple real-world operational attribute data of the power equipment; Based on the initial generator, determine the training-to-generate attribute data corresponding to each of the real running attribute data; The attribute data to be trained and generated is input into the initial discriminator, and the corresponding attribute data discrimination value is output. A preset quality scoring function is used to evaluate the quality of the discriminant values of each attribute data to determine the data quality score. The data participation degree is calculated using the real operational attribute data and the attribute data to be generated during training. If the data participation is less than the initial participation limit threshold, the initial participation limit threshold is updated using the data quality score, an intermediate participation limit threshold is output, and the generator iteration count is counted in real time. Based on the preset generation and discrimination gradient checking strategy, the initial generator weights of the initial generator and the initial discriminator weights of the initial discriminator are updated using the number of generator iterations and the preset cross-entropy loss function to determine the intermediate generator weights and intermediate discriminator weights. The initial discriminator is updated using the intermediate discriminator weights to determine the intermediate discriminator; the initial generator is updated using the intermediate generator weights to determine the intermediate generator. When the generator iteration count reaches the preset fourth iteration, the intermediate discriminator is used as the target discriminator and the intermediate generator is used as the preset generator.
2. The power equipment fault diagnosis method according to claim 1, characterized in that, Before the step of acquiring multiple operational attribute data of the power equipment to be detected and inputting each of the operational attribute data to be detected into a preset fault diagnosis model, the following steps are included: Acquire multiple training operation attribute data of power equipment, and label each of the training operation attribute data to determine the corresponding labeled operation data; The labeled running data are preprocessed to generate corresponding standardized running data; Based on a preset generator, determine multiple generated attribute data; Based on the preset first gradient checking strategy, the standardized running data and the generated attribute data are input into the initial feature extraction network for training to determine the target feature extraction network and multiple hidden states of the target to be trained. Based on the preset second gradient checking strategy, the initial classifier is trained using the hidden states of each target to be trained, and the target classifier is determined. The pre-set fault diagnosis model is constructed using the target feature extraction network and the target classifier.
3. The power equipment fault diagnosis method according to claim 2, characterized in that, The step of determining the target feature extraction network and multiple target hidden states to be trained, based on a pre-set first gradient checking strategy, by inputting the standardized running data and the generated attribute data into the initial feature extraction network for training, includes: The standardized operating data and the generated attribute data are input into the initial feature extraction network for feature enhancement extraction, and multiple hidden states of the target to be trained are output. The hidden states of each target to be trained are input into a preset Softmax classification function to generate the corresponding predicted category to be trained. The loss value of the feature extraction network is calculated using the predicted category to be trained, the preset true category, and the preset cross-entropy loss function. Based on the preset first gradient checking strategy, the initial learning network parameters in the initial feature extraction network are iteratively updated using the loss value of the feature extraction network, the intermediate learning network parameters are output, and the number of parameter update iterations is counted in real time. When the number of parameter update iterations reaches the preset second number, the intermediate learning network parameters are used as the target learning network parameters, and the initial feature extraction network is updated using the target learning network parameters to determine the target feature extraction network.
4. The power equipment fault diagnosis method according to claim 2, characterized in that, The step of training an initial classifier using the hidden states of each target to be trained, based on a preset second gradient checking strategy, and determining the target classifier includes: The hidden states of each target to be trained are input into the initial classifier for classification and diagnosis, and the fault diagnosis results to be trained are output. The classifier loss value is calculated using the fault diagnosis results to be trained and the preset classifier loss function; Based on the preset second gradient checking strategy, the initial classifier weights of the initial classifier are iteratively updated using the classifier loss value, the intermediate classifier weights are output, and the number of iterations of the classifier weights is counted in real time. When the number of iterations of the classifier weights reaches the preset third number, the intermediate classifier weights are used as the target classifier weights, and the initial classifier is updated using the target classifier weights to determine the target classifier.
5. The power equipment fault diagnosis method according to claim 1, characterized in that, Also includes: When the generator iteration count does not reach the preset fourth count, the intermediate participation limit threshold is used as the new initial participation limit threshold. The intermediate discriminator is used as the new initial discriminator, the intermediate generator is used as the new initial generator, and the process jumps to the step of determining the training generation attribute data corresponding to each of the real running attribute data based on the initial generator, until the generator iteration count reaches the preset fourth number.
6. A power equipment fault diagnosis device, applied to the power equipment fault diagnosis method of claim 1, characterized in that, include: The acquisition module is used to acquire multiple operational attribute data of power equipment to be detected, and input each of the operational attribute data to be detected into a preset fault diagnosis model, wherein the preset fault diagnosis model includes a target feature extraction network and a target classifier; The module is used to perform feature enhancement extraction operations on each of the detected running attribute data using the target feature extraction network, and generate the target hidden state corresponding to each of the detected running attribute data. The output module is used to classify and diagnose the hidden states of each target through the target classifier, and output the corresponding fault diagnosis results of the power equipment.
7. The power equipment fault diagnosis device according to claim 6, characterized in that, The target feature extraction network includes a feature extraction layer, a fully connected layer, and a feature interaction layer; The adopted module includes: The first submodule is used to extract features from the input running attribute data to be detected using a feature extraction layer, and generate corresponding running data feature values; The second submodule is used to perform feature biasing on each of the running data feature values through a fully connected layer and output the weight coefficients corresponding to each of the running data feature values. The determination submodule is used to normalize each of the weight coefficients using a preset Softmax function to determine the attention coefficient corresponding to each of the weight coefficients. The third submodule is used to sort all the attention coefficients in descending order and take the running data feature values corresponding to the attention coefficients of the first preset number of positions as key feature values. According to the submodule, it is used to determine the probability of occurrence of multiple first features and the probability of occurrence of multiple second features based on the attention coefficients corresponding to each of the key feature values, the attention coefficients corresponding to each of the running data feature values, and the preset adjacency matrix function; The calculation submodule is used to calculate the aggregated feature vector using the occurrence probabilities of each of the first features and each of the second features; The statistics submodule is used to iteratively update the initial hidden state corresponding to each key feature value through the feature interaction layer using a gated loop update mechanism and the aggregated feature vector, output the corresponding intermediate hidden state, and count the number of hidden state update iterations in real time. The fourth submodule is used to take each intermediate hidden state as the corresponding target hidden state when the number of hidden state update iterations reaches a preset first number.
8. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform the steps of the power equipment fault diagnosis method as described in any one of claims 1-5.
Citation Information
Patent Citations
Transformer small sample fault diagnosis method based on data enhancement
CN116184061A
