Overhead transmission line fault diagnosis method based on transverse federated learning

Through horizontal federated learning and knowledge distillation technology, a distributed fault diagnosis model is constructed, which solves the problems of data privacy, dispersion and model deployment in fault detection of overhead transmission lines, and achieves efficient and accurate fault diagnosis.

CN118861850APending Publication Date: 2024-10-29MAINTENANCE CO STATE GRID QINGHAI ELECTRIC POWER +2
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410873641.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing overhead transmission line fault detection technologies have problems such as data privacy and security, data dispersion and heterogeneity, model training and deployment challenges, and difficulties in meeting real-time and collaborative requirements.

Method used

An overhead transmission line fault diagnosis method based on horizontal federated learning is adopted. By constructing a fault recording horizontal federated learning model, multiple fault recording clients and fault diagnosis servers are used for data processing and model training to achieve distributed data processing and Model deployment uses knowledge distillation technology to optimize the model and improve the accuracy and efficiency of diagnosis.

Benefits of technology

It improves the accuracy and efficiency of fault diagnosis, solves the challenges of data privacy and security, data dispersion and model training and deployment, meets the needs of real-time and collaboration, and enables multi-fault recording clients to operate without sharing data. Troubleshooting below.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118861850A_ABST
    Figure CN118861850A_ABST
Patent Text Reader

Abstract

The invention relates to an overhead transmission line fault diagnosis method based on transverse federated learning, and belongs to the field of fault detection, the method constructs a fault recording transverse federated learning model, carries out distributed training, comprises a plurality of fault recording clients and a server, and achieves the fault diagnosis of an overhead transmission line through minimizing a common distillation loss function. The method comprises the following steps: firstly, taking a fault recording client model as a teacher model to perform knowledge distillation on a server model to generate a server aggregation model; and taking the server aggregation model as a teacher model to perform knowledge distillation on the fault recording client model, and correcting the fault recording client model. The server aggregation model is trained to an optimal model which can be used as a fault diagnosis method. According to the method, through a bidirectional knowledge distillation structure of transverse federated learning, positive feedback optimization of a transverse federated learning overhead transmission line fault diagnosis model based on knowledge distillation is realized, the generalization ability of the model is improved, and the method is a multi-terminal data island overhead transmission line fault diagnosis method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an overhead power transmission line fault diagnosis method based on horizontal federated learning, and belongs to the technical field of overhead power transmission line fault detection. Background Art

[0002] In the power system, the fault detection technology of overhead transmission lines is of great significance to ensure the stable operation of the power system. Since overhead transmission lines are widely distributed, the environment is complex, and they often need to withstand various natural and man-made challenges, it is critical to accurately and promptly detect and diagnose their faults. Fault recording data is an important part of the power system and contains rich fault information. Existing fault detection technologies often have certain limitations and cannot accurately identify and locate all faults, which is also an important challenge facing the current power system. Traditional fault recording analysis methods often only focus on data from specific overhead transmission lines or specific times, and cannot make full use of data from the entire system. Horizontal federated learning, as an emerging machine learning method, can effectively solve this problem. By jointly analyzing data from different locations and times, it can more comprehensively reveal fault characteristics and improve the accuracy of fault diagnosis. Its technical problems mainly exist in the following points:

[0003] Data privacy and security: Fault recording and overhead transmission line fault diagnosis requires processing a large amount of sensitive data, including current and voltage waveforms. This data may contain users' personal information and corporate trade secrets, so data privacy and security are crucial. Traditional centralized data processing methods are prone to data leakage and attacks, while federated learning uses distributed data processing to protect data privacy and improve data security.

[0004] Data dispersion and heterogeneity: Fault recording and overhead transmission line fault diagnosis involves a large amount of data, which may be scattered across different devices, systems or nodes. In addition, these data may have differences in format, characteristics, etc., making it difficult to merge and share data. Federated learning can adapt to this situation. Through distributed data processing, the data of each node is processed locally, reducing the cost of data transmission and fusion.

[0005] Challenges in model training and deployment: Fault recording and overhead transmission line fault diagnosis require complex model training and deployment. Traditional centralized model training requires a large amount of data to be centralized, which may require a lot of computing resources and storage space. In addition, model updates and optimizations also need to be performed frequently, which may increase the cost of model training and deployment. Federated learning can distribute model training and deployment to various nodes, reducing the overhead caused by centralized processing.

[0006] Real-time and collaborative requirements: Fault recording overhead transmission line fault diagnosis requires real-time data processing and analysis to detect and handle faults in a timely manner. At the same time, each node needs to collaborate and share data and model training results to improve the accuracy and efficiency of diagnosis. Federated learning can meet this real-time and collaborative requirements, and realize real-time online diagnosis of fault recording overhead transmission lines through distributed data processing and model training. Summary of the invention

[0007] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for diagnosing faults in overhead transmission lines based on horizontal federated learning.

[0008] The technical solution of the present invention is as follows:

[0009] A method for diagnosing faults of overhead transmission lines based on horizontal federated learning comprises the following steps:

[0010] (1) Constructing an overhead transmission line fault diagnosis model of fault recording horizontal federated learning line, the overhead transmission line fault diagnosis model includes multiple fault recording clients and a fault diagnosis server;

[0011] (2) Each fault recording client initializes its own fault recording client model and trains an updated fault recording client model using the data of each client;

[0012] (3) After the fault diagnosis server initializes the server model, it trains the server model using the server data;

[0013] (4) The fault diagnosis server receives the updated fault recording client model from all clients. The fault diagnosis server obtains fault recording features from all fault recording clients to form a non-repetitive fault recording feature list. The feature list contains the fault recording features of all participating fault recording client data. The list does not contain the same fault recording features. Different fault recording features in the list are not sorted, and their order is arranged according to the order of acquisition. The same fault recording features are not acquired again. The input layer of the fault diagnosis server model contains all fault recording features on the fault recording feature list.

[0014] And use the server data to train multiple updated fault recording client models again;

[0015] (5) Using the updated fault recording client model as the teacher model and the trained server model as the student model, the knowledge distillation task is performed to obtain the server aggregation model;

[0016] (6) The server-side aggregation model is transmitted back to each fault recording client. At this time, the fault recording client model and the server-side aggregation model are trained with the data of each fault recording client. The server-side aggregation model is used as the teacher model and the fault recording client model is used as the student model to perform knowledge distillation tasks and jointly calibrate the fault recording client model.

[0017] (7) The fault diagnosis server model is trained to an optimal model, which can be used as a fault diagnosis method for comprehensive fault diagnosis of overhead transmission lines of all participants in federated learning.

[0018] Preferably, in step (2), each fault recording client stores its own fault recording client data, and establishes its own fault recording client model, and the data between the fault recording clients are not interoperable;

[0019] The fault diagnosis server stores fault diagnosis server data and establishes a fault diagnosis server model. The fault diagnosis server data is not interoperable with the data of each fault recording client.

[0020] Preferably, in step (2), the client data is a fault recording feature, which describes the data composed of the fault recording features of the voltage, current, power and other power information of the fault recording, including but not limited to a data set composed of frequency, wavelength, waveform, timestamp, sampling, sequence characteristics and other information.

[0021] Preferably, in step (3), the server model is an artificial neural network model, which is composed of an input layer, a hidden layer, and an output layer. Each neuron in the input layer is composed of each feature in the fault recording feature list, and each neuron in the output layer is composed of various overhead transmission line fault types. The number of layers and neurons in the hidden layer are determined by the input layer and the output layer. Generally, the more neurons in the input layer, the more layers in the hidden layer; generally, the number of neurons in the hidden layer is greater than the number of neurons in the input layer; generally, the number of neurons in the intermediate layer from the input layer to the output layer is decreasing;

[0022] Preferably, the fault types include, but are not limited to, overhead transmission line faults including ice damage, bird damage, external damage, hardware quality, lightning strike, wind damage, wet flashover, pollution flashover, tree obstacles, and earthquakes.

[0023] Preferably, the server-side aggregation model is jointly trained by the server-side model and multiple fault recording client models through knowledge distillation. The server-side model and multiple fault recording client models are trained using the fault diagnosis server data at the same time, with multiple fault recording client models as teachers and the fault diagnosis server model as students. The training process includes:

[0024] ① The fault diagnosis server obtains features from all fault recording clients and organizes them into a non-repetitive feature list;

[0025] ② The input layer of the server model contains all the features on the feature list and initializes the fault diagnosis server model to obtain the initial server model;

[0026] The initialization process is:

[0027] On the server side, define n i =*n i1 ,n i2 ,…,n ik + input layer of neurons, n h1 ={n h11 ,n h12 ,…,n h1p},n h2 ={n h21 ,n h22 ,…,n h2p},…,n hj ={n hj1 ,n hj2 ,…,n hjp} hidden layer of neurons, n o ={n o1 ,n o2 ,…,n oq} output layer of neurons. i is the input layer neuron symbol, n ik is the kth input layer neuron, k is the number of input layer neurons; n hj is the symbol of hidden layer neurons, n hj is the jth neuron in the hth hidden layer, where h is the number of hidden layers and j is the number of neurons in the hidden layer; n o is the symbol of the output layer neuron, n oq is the qth output layer neuron, q is the number of output layer neurons. In the fully connected neural network topology, the input layer to hidden layer weight matrix W is initialized using a random initialization method i With the bias matrix B i , the weight matrix W between hidden layers h With the bias matrix B h , hidden layer to output layer weight matrix W o With the bias matrix B o For example, if there are k input layer neurons and j hidden layer first layer neurons, the weight matrix W i =[[w 11 ,w 12 ,…,w 1j ],[w 21 ,w22 ,…,w 2j ],…,[w k1 ,w k2 ,…,w kj ]] and the bias matrix B i =[[b 11 ,b 12 ,…,b 1j ],[b 21 ,b 22 ,…,b 2j ],…,[b k1 ,b k2 ,…,b kj ]], and the parameter matrices between other layers are deduced in the same way;

[0028] ③ Use the fault diagnosis server data to train the initial server model. Only the part with corresponding features is trained. Other default features are not involved in the training, but it does not affect the generation of the final model. The trained server model is obtained.

[0029] ④ Determine whether the preset stop conditions (epoch, metric, etc.) are met. If they are met, the model is considered the optimal model and ends. If not, continue to execute;

[0030] Epochs generally need to consider factors such as data heterogeneity, computing resources and communication costs, convergence speed and stability, etc. For example, 50 rounds are preset, and the convergence is observed without overfitting or increasing the deviation, so as to find an epoch number that can converge quickly without damaging the generalization ability of the model. Generally, an early stopping strategy is used to dynamically determine the number of epochs, that is, training is stopped when the performance on the test set is no longer significantly improved. Finally, the actual constraints of the system are considered, such as computer performance, communication, etc. The performance of the server is generally better, so system constraints usually do not have much impact.

[0031] The metric evaluation indicator on the server side refers to the minimization of formula (4). Combined with the above requirements for epochs, if the target (4) is found to have converged at 40 times, the training is stopped.

[0032] ⑤ Receive the fault recording client model trained from all fault recording clients;

[0033] ⑥ Use the server data to retrain all fault recording client models to obtain all retrained fault recording client models;

[0034] ⑦ Set the distillation loss function, set all trained fault recording client models as teacher models, set the objective function of the teacher model, set the retrained server model as the student model, and set the objective function of the student model;

[0035] ⑧Set the distillation loss function, obtain the common objective function of the distillation task according to the teacher model, student model and distillation loss function, and obtain the server-side aggregation model by minimizing the distillation objective function;

[0036] ⑨Update the server aggregation model and send the updated server aggregation model to each fault recording client;

[0037] ⑩ Repeat ④ to ⑨ until the stop condition of ③ is met.

[0038] The objective function of the teacher model is:

[0039]

[0040] Among them, x server is the input of the server data, z is the hidden state of the teacher model, and y is the teacher model's response to input x server Failure prediction, P i (z|x) and P i (y|x) is the conditional probability distribution of the i-th teacher model; Indicates that on the server side, the hidden state z of the teacher model is in the conditional probability distribution P i (z|x server ) under the expected value; P i (z|x server ) means that in the server, given the server input x server The conditional probability of the hidden state z of the teacher model under the condition of; Indicates that on the server side, the teacher model inputs x to the server side server The fault prediction y, in the conditional probability distribution P i (y|x server ) under the expected value; P i (y|x server ) means that in the server, given the server input x server In the case of server The conditional probability of failure prediction y;

[0041] The objective function of the student model is:

[0042]

[0043] Among them, x server is the server data as input, z is the hidden state of the student model, and y is the student model's response to input x. server Fault diagnosis prediction, P s (z|x) and P s (y|x) is the conditional probability distribution of the student model s, P t(y|x) is the conditional probability distribution of the teacher model t, Indicates that on the server side, the hidden state z of the student model is in the conditional probability distribution P s (z|x server ) under the expected value; P s (z|x server ) means that in the server, given the server input x server The conditional probability of the hidden state z of the student model under the condition of; Indicates that on the server side, the student model responds to the server input x server The fault prediction y, in the conditional probability distribution P s (y|x server ) under the expected value; P s (y|x server ) means that in the server, given the server input x server In the case of server The conditional probability of failure prediction y.

[0044] The distillation loss function is:

[0045]

[0046] Among them, P D (X server ) is the server-side data distribution, Indicates that on the server, given the server input X server In the case of P, the data distribution on the server side D (x server ) under the expected value; P t (y t |x server ) means that in the server, given the server input X server In the case of t The conditional probability of s (y s |x server ) means that in the server, given the server input X server In the case of s The conditional probability of

[0047] The common objective function of the distillation task is:

[0048] min(F s (x server )+λ server L server )(4)

[0049] Among them, λ serveris the weight of the server-side distillation loss. It needs to be adjusted according to the training data. server The value range can be from 0 to infinity. In actual training, a smaller value is usually set, such as 0.1 or 0.01. In the server training task, we hope that the model can learn the characteristics of multi-end data while paying attention to the student model. Usually, a more balanced or slightly biased F is selected. s Lambda server Values ​​such as 0.5 or 0.3 can reduce the imbalance caused by the central data advantage of the server. The specific value is generally repeatedly adjusted to the optimal value through cross-validation and other methods.

[0050] Preferably, the fault recording client receives the fault diagnosis aggregation model sent by the fault diagnosis server, and optimizes the fault recording client model through the fault diagnosis aggregation model. The fault recording client initializes the fault recording client model according to the characteristics of the fault recording client data.

[0051] The fault recording client model is an artificial neural network model, which consists of an input layer, a hidden layer, and an output layer. Each neuron in the input layer is composed of the data features of the fault recording client, and each neuron in the output layer is composed of various overhead transmission line fault types, including but not limited to ice damage, bird damage, external damage, hardware quality, lightning strikes, wind damage, wet flashover, pollution flashover, tree barriers, and earthquakes. The number of layers and neurons in the hidden layer are determined by the input layer and the output layer. Generally, the more neurons in the input layer, the more layers in the hidden layer; generally, the number of neurons in the hidden layer is more than the number of neurons in the input layer; generally, the number of neurons in the intermediate layer from the input layer to the output layer is decreasing;

[0052] Preferably, the fault recording client model is trained with minimization of the common objective function of the fault recording client and the fault diagnosis server as the optimization goal. The fault recording client model is jointly trained by the server aggregation model and the fault recording client model through knowledge distillation. The server aggregation model and the fault recording client model are trained using the fault recording client data at the same time, with the server model as a teacher and the fault recording client model as a student.

[0053] Preferably, the process of training the fault recording client model is:

[0054] A. The fault recording client initializes the client model according to the fault recording client data to obtain the initial fault recording client model;

[0055] The initialization process is:

[0056] In the client, define n i =*n i1 ,ni2 ,…,n ik + input layer of neurons, n h1 ={n h11 ,n h12 ,…,n h1p},n h2 ={n h21 ,n h22 ,…,n h2p},…,n hj ={n hj1 ,n hj2 ,…,n hjp} hidden layer of neurons, n o ={n o1 ,n o2 ,…,n oq} output layer of neurons. i is the input layer neuron symbol, n ik is the kth input layer neuron, k is the number of input layer neurons; n hj is the symbol of hidden layer neurons, n hj is the jth neuron in the hth hidden layer, where h is the number of hidden layers and j is the number of neurons in the hidden layer; n o is the symbol of the output layer neuron, n oq is the qth output layer neuron, q is the number of output layer neurons. In the fully connected neural network topology, the input layer to hidden layer weight matrix W is initialized using a random initialization method i With the bias matrix B i , the weight matrix W between hidden layers h With the bias matrix B h , hidden layer to output layer weight matrix W o With the bias matrix B o For example, if there are k input layer neurons and j hidden layer first layer neurons, the weight matrix W i =[[w 11 ,w 12 ,…,w 1j ],[w 21 ,w 22 ,…,w 2j ],…,[w k1 ,w k2 ,…,w kj ]] and the bias matrix B i =[[b 11 ,b 12 ,…,b 1j ],[b 21 ,b 22 ,…,b 2j ],…,[bk1 ,b k2 ,…,b kj ]], and the parameter matrices of other layers are similar. Note that the initialization methods of the client and the server are the same, but the topological structures and parameter matrices between clients and between clients and servers are different in most cases, depending on the data, machines, training purposes, and other factors of each client and server. It is only necessary to ensure that the number of neurons in the input and output layers of each client is less than or equal to that of the server.

[0057] B. Set the objective function, use the fault recording client data to train the initial fault recording client model, and obtain the trained fault recording client model;

[0058] C. Determine whether the preset stop condition (epoch, metric, etc.) is met. If it is met, the process ends; if not, the process continues.

[0059] Epoch generally takes into account factors such as data heterogeneity, computing resources and communication costs, convergence speed and stability, etc. For example, 50 rounds are preset, and the convergence is observed without overfitting or increasing deviation, so as to find an epoch number that can converge quickly without damaging the generalization ability of the model. Generally, an early stopping strategy is used to dynamically determine the number of epochs, that is, training is stopped when the performance on the test set is no longer significantly improved. Finally, the actual constraints of the system are considered, such as computer performance, communication, etc. Some clients have insufficient performance, and the convergence speed, convergence state and epoch can be balanced according to the actual situation.

[0060] The metric evaluation indicator in the client refers to the minimization of formula (8). Combined with the above requirements for epochs, if the target (8) is found to have converged at 40 times, the training is stopped. At the same time, different units (clients) may have different requirements for metrics, and other evaluation indicators such as KL divergence and cross entropy can also be used. Of course, these indicators can also be extended to the server according to customer needs.

[0061] D. Send the trained fault recording client model to the fault diagnosis server;

[0062] E. Receive the server-side aggregation model trained from the fault diagnosis server;

[0063] F. Use the fault recording client data to retrain the server aggregation model. Only the part with corresponding features is trained. Other default features are not involved in the training, but they do not affect the generation of the final model. The retrained server aggregation model is obtained.

[0064] G. Set the distillation loss function, set the retrained server aggregation model as the teacher model, set the objective function of the teacher model, set the trained fault recording client model as the student model, and set the objective function of the student model;

[0065] H. Set the distillation loss function, obtain the common objective function of the distillation task according to the teacher model, the student model and the distillation loss function, and obtain the corrected fault recording client model by minimizing the distillation objective function;

[0066] I. Update the fault recording client model;

[0067] J. Repeat CI until the stop condition of C is met.

[0068] The objective function of the teacher model is:

[0069]

[0070] Among them, x client is the input of the server data, z is the hidden state of the teacher model, and y is the teacher model's response to input x client Fault diagnosis prediction, P t (z|x) and P t (y|x) is the conditional probability distribution of the teacher model t; Indicates that in the client, the hidden state z of the teacher model is in the conditional probability distribution P t (z|x client ) under the expected value; P t (z|x client ) means that in the client, given the client input x client The conditional probability of the hidden state z of the teacher model under the condition of; Indicates that in the client, the teacher model responds to the client input x client The fault prediction y, in the conditional probability distribution P t (y|x client ) under the expected value; P t (y|x client ) means that in the client, given the client input x client In the case of client The conditional probability of failure prediction y;

[0071] The objective function of the student model is:

[0072]

[0073] Among them, x client is the client data as input, z is the hidden state of the student model, and y is the student model's response to input x. clientFault prediction of s (z|x) and P s (y|x) is the conditional probability distribution of the student model s, P t (y|x) is the conditional probability distribution of the teacher model t; Indicates that in the client, the hidden state z of the student model is in the conditional probability distribution P s (z|x client ) under the expected value; P s (z|x client ) means that in the client, given the client input x client The conditional probability of the hidden state z of the student model under the condition of; Indicates that in the client, the student model responds to the client input x client The fault prediction y, in the conditional probability distribution P s (y|x client ) under the expected value; P s (y|x client ) means that in the client, given the client input x client In the case of client The conditional probability of failure prediction y.

[0074] The distillation loss function is

[0075]

[0076] Among them, P D (X client ) is the client data distribution, Y t is the prediction of the teacher model, Y s is the prediction of the student model; In the client, given the client input X client In the case of client data distribution P D (x client ) under the expected value; P t (y t |x client ) means that in the client, given the client input X client In the case of t The conditional probability of s (y s |x client ) means that in the client, given the client input X client In the case of s The conditional probability of .

[0077] The common objective function of the distillation task is:

[0078] min(F s (x client )+λ client L client )(8)

[0079] where λ client is the weight of the client distillation loss, which needs to be adjusted according to the training data. client The value range of λ can be from 0 to infinity. In actual training, a smaller value is usually set, such as 0.1 or 0.01. In the client training task, we hope that the client model can better learn the characteristics of the server data. Usually, a larger λ is selected. client Values ​​such as 0.6 or even 0.9 can make the client pay more attention to the impact of server data. client The value is usually repeatedly adjusted to the optimal value through cross-validation and other methods, and usually the λ of each client is client are all different.

[0080] The interface of the fault recording horizontal federated learning method for overhead transmission line fault diagnosis is a set of all features on the feature list. Each feature is used as the input of an input layer neuron in the interface. The input unit and input order of the interface are the same as the feature set.

[0081] The fault type of the overhead transmission line is taken as the output result, and the output of the output layer neuron is the probability of the corresponding fault type.

[0082] For any details not provided in the present invention, please refer to the prior art.

[0083] The beneficial effects of the present invention are:

[0084] The present invention adopts the bidirectional knowledge distillation structure of horizontal federated learning, uses knowledge distillation to continuously train better server-side aggregation models with each fault recording client, and simultaneously reversely optimizes the fault recording client model with the server-side aggregation model through knowledge distillation, thereby realizing the optimization positive feedback of the horizontal federated learning overhead transmission line fault diagnosis model based on knowledge distillation, improving the generalization ability of the horizontal federated learning overhead transmission line fault diagnosis model, and can solve the problem of multiple fault recording clients obtaining a large fault diagnosis model without sharing data. The present invention is a multi-terminal data island overhead transmission line fault diagnosis method. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] The drawings in the specification, which constitute a part of the present application, are used to provide further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0086] Figure 1It is a schematic diagram of the overall process of the overhead transmission line fault diagnosis method based on horizontal federated learning;

[0087] Figure 2 Model update model diagram for overhead transmission line fault diagnosis model based on fault recording lateral federated learning;

[0088] Figure 3 Figure 1. The process of feature selection for overhead transmission line fault diagnosis based on horizontal federated learning of fault recording.

[0089] Figure 4 Training flow chart of overhead transmission line fault diagnosis service for horizontal federated learning of fault recording;

[0090] Figure 5 Flowchart for training the client side of overhead transmission line fault diagnosis based on horizontal federated learning of fault recordings. DETAILED DESCRIPTION

[0091] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the drawings in the implementation of this specification, but are not limited to this. Anything not fully described in the present invention shall be based on the conventional technology in the art.

[0092] The present invention proposes a method for diagnosing overhead transmission line faults based on horizontal federated learning. Taking the existing overhead transmission line fault recording data as an example, a fault recording horizontal federated learning model is constructed, and the client and server of the overhead transmission line fault diagnosis model of the fault recording horizontal federated learning are trained respectively, and the process is explained.

[0093] A method for diagnosing faults of overhead transmission lines based on horizontal federated learning comprises the following steps:

[0094] (1) Constructing an overhead transmission line fault diagnosis model of fault recording horizontal federated learning line, the overhead transmission line fault diagnosis model includes multiple fault recording clients and a fault diagnosis server;

[0095] (2) Each fault recording client initializes its own fault recording client model and trains an updated fault recording client model using the data of its own client;

[0096] (3) After the fault diagnosis server initializes the server model, it trains the server model using the server data;

[0097] (4) The fault diagnosis server receives the updated fault recording client model from all clients. The fault diagnosis server obtains fault recording features from all fault recording clients to form a non-repetitive fault recording feature list. The feature list contains the fault recording features of all participating fault recording client data. The list does not contain the same fault recording features. Different fault recording features in the list are not sorted, and their order is arranged according to the order of acquisition. The same fault recording features are not acquired again. The input layer of the fault diagnosis server model contains all fault recording features on the fault recording feature list.

[0098] And use the server data to train multiple updated fault recording client models again;

[0099] (5) Using the updated fault recording client model as the teacher model and the trained server model as the student model, the knowledge distillation task is performed to obtain the server aggregation model;

[0100] (6) The server-side aggregation model is transmitted back to each fault recording client. At this time, the fault recording client model and the server-side aggregation model are trained with the data of each fault recording client. The server-side aggregation model is used as the teacher model and the fault recording client model is used as the student model to perform knowledge distillation tasks and jointly calibrate the fault recording client model.

[0101] (7) The fault diagnosis server model is trained to an optimal model, which can be used as a fault diagnosis method for comprehensive fault diagnosis of overhead transmission lines of all participants in federated learning.

[0102] according to Figure 1 As shown, the models and data represented by client A, client B, and client C are not exactly the same, and only three clients are taken as an example. In fact, there can be any number of clients other than zero. Figure 1The model building processes represented by the arrow lines of different colors in are different. Taking client A as an example, after client A initializes the model of A, the updated model of A is trained through the data of client A (i.e., the data composed of the fault recording characteristics of the voltage, current, power and other power information of the fault recording in the client, including but not limited to the frequency, wavelength, waveform, timestamp, sampling, sequence characteristics and other information). In parallel, the same is true for client B and client C. Taking client A as an example, client A sends the updated model of A to the server, and in parallel, the same is true for client B and client C. After the server initializes the server model, the server model is trained through the data of the server (i.e., the data composed of the fault recording characteristics of the voltage, current, power and other power information of the fault recording in the server, including but not limited to the frequency, wavelength, waveform, timestamp, sampling, sequence characteristics and other information). At this time, the server already has the updated model of A, the updated model of B, and the updated model of C. The server data is used to train the updated model of A, the updated model of B, the updated model of C, and the server model at the same time, and the updated model of A, the updated model of B, and the updated model of C are used as the teacher model and the server model is used as the student model for knowledge distillation tasks, and are aggregated into the server aggregate model. The server aggregate model is then transmitted back to client A, client B, and client C respectively. At this time, client A, client B, and client C each have their own client model and the same server aggregate model. Taking client A as an example, the server aggregate model is trained using the data of A on client A, and the same is true for client B and client C in parallel. Taking client A as an example, the client data is used to train the A model and the server model at the same time, and the server model is used as the teacher model and the client model is used as the student model for knowledge distillation tasks, and the updated model of A is jointly corrected, and the same is true for client B and client C in parallel. The above content implements the fault recording horizontal federated learning overhead transmission line fault diagnosis model.

[0103] according to Figure 2 As shown, combined Figure 1 The complete model example of , its model update process is, first, assign the client data on the client to the client model to train the client-updated model, and train the server model with the server data in parallel, and then send the client-updated model to the server; the second step, use the server data to train the client-updated model on the server, take the server model as the student model and the client-updated model on the server as the teacher model for knowledge distillation, train and aggregate into a server-side aggregate model, and send the server-side aggregate model to the client; the third step, use the client data to train the server-side aggregate model, take the server-side aggregate model as the teacher model and the client model as the student model for knowledge distillation, and train again to correct it into the client-updated model.

[0104] according to Figure 3 As shown in the figure, since the data features of the client and the server are different, and the feature list obtained by the server contains all the features, the number of data features of both the server and the client can only be less than or equal to the number of features in the feature list. When the data features do not match the features in the feature list, you only need to Figure 3 The feature selection process shown is completed.

[0105] Figure 3 In the figure, the known data has no feature A, but has feature B, but no feature C, etc., and compared with the feature list, taking feature A as an example, the feature list contains all features. In the absence of feature A, the model's neuron corresponding to input feature A is empty, and is 0 during calculation. For the topological structure, although this neuron exists, it is always 0, which is equivalent to feature A not participating in the calculation, so it is represented by a dotted line. For the neural network, even if the neurons and links of feature A are removed, it does not affect the training of the entire model. Feature B corresponds to feature B in the feature list, and participates in model training normally. This is analogous to the entire feature list, and feature selection is completed.

[0106] according to Figure 4 As shown, in order to better demonstrate the training process on the server side, a dotted sub-process part is added, and the connected modules represent the content generated, entered, and interacted by the current process; at the same time, the sub-process modules with exactly the same color and content represent different locations of the same object. Figure 4 The server-side flowchart can be summarized as follows:

[0107] ① The fault diagnosis server obtains features from all fault recording clients and organizes them into a non-repetitive feature list;

[0108] ② The input layer of the server model contains all the features on the feature list and initializes the fault diagnosis server model to obtain the initial server model;

[0109] ③ Use the fault diagnosis server data to train the initial server model. Only the part with corresponding features is trained. Other default features are not involved in the training, but it does not affect the generation of the final model. The trained server model is obtained.

[0110] ④ Determine whether the preset stop conditions (epoch, metric, etc.) are met. If they are met, the model is considered the optimal model and ends. If not, the execution continues;

[0111] In this embodiment, the number of epochs is preset to 50 rounds.

[0112] ⑤ Receive the fault recording client model trained from all fault recording clients;

[0113] ⑥ Use the server data to retrain all fault recording client models to obtain all retrained fault recording client models;

[0114] ⑦ Set the distillation loss function, set all trained fault recording client models as teacher models, set the objective function of the teacher model, set the retrained server model as the student model, and set the objective function of the student model;

[0115] ⑧Set the distillation loss function, obtain the common objective function of the distillation task according to the teacher model, student model and distillation loss function, and obtain the server-side aggregation model by minimizing the distillation objective function;

[0116] ⑨Update the server aggregation model and send the updated server aggregation model to each fault recording client;

[0117] ⑩ Repeat ④ to ⑨ until the stop condition of ③ is met.

[0118] according to Figure 5 As shown, in order to better demonstrate the training process of the client, a dotted sub-process part is added, and the connected modules represent the content generated, entered, and interacted by the current process; at the same time, the sub-process modules with exactly the same color and content represent different locations of the same object. Figure 5 The client flow chart can be summarized as the following process:

[0119] A. The fault recording client initializes the client model according to the fault recording client data to obtain the initial fault recording client model;

[0120] B. Set the objective function, use the fault recording client data to train the initial fault recording client model, and obtain the trained fault recording client model;

[0121] C. Determine whether the preset stop condition (epoch, metric, etc.) is met. If it is met, the process ends; if not, the process continues.

[0122] D. Send the trained fault recording client model to the fault diagnosis server;

[0123] E. Receive the server-side aggregation model trained from the fault diagnosis server;

[0124] F. Use the fault recording client data to retrain the server aggregation model. Only the part with corresponding features is trained. Other default features are not involved in the training, but they do not affect the generation of the final model. The retrained server aggregation model is obtained.

[0125] G. Set the distillation loss function, set the retrained server aggregation model as the teacher model, set the objective function of the teacher model, set the trained fault recording client model as the student model, and set the objective function of the student model;

[0126] H. Set the distillation loss function, obtain the common objective function of the distillation task according to the teacher model, the student model and the distillation loss function, and obtain the corrected fault recording client model by minimizing the distillation objective function;

[0127] I. Update the fault recording client model;

[0128] J. Repeat CI until the stop condition of C is met.

[0129] After the above-mentioned server and client training process is completed, the termination condition of the process is met, which means that the server aggregation model has been obtained through the present invention, that is, the overhead transmission line fault diagnosis model of fault recording horizontal federated learning. Based on this model, the corresponding fault type can be obtained by using new data input again, realizing the function of overhead transmission line fault diagnosis.

[0130] In summary, compared with the prior art, the technical solution proposed by the present invention has at least the following advantages:

[0131] Through the bidirectional knowledge distillation structure of horizontal federated learning, each fault recording client is used to continuously train a better fault diagnosis server aggregation model through knowledge distillation. At the same time, the fault diagnosis server aggregation model is used to reversely optimize the fault recording client model through knowledge distillation, realizing the optimization positive feedback of the overhead transmission line fault diagnosis model based on horizontal federated learning based on knowledge distillation.

[0132] The generalization ability of the horizontal federated learning overhead transmission line fault diagnosis model is improved, which can solve the problem that the multi-fault recording client obtains a large fault diagnosis model without sharing data. It is a multi-terminal data island overhead transmission line fault diagnosis method.

[0133] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for fault diagnosis of overhead transmission lines based on horizontal federated learning, characterized in that: The steps include: (1) Constructing an overhead transmission line fault diagnosis model of fault recording horizontal federated learning line, the overhead transmission line fault diagnosis model includes multiple fault recording clients and a fault diagnosis server; (2) Each fault recording client initializes its own fault recording client model and trains an updated fault recording client model using the data of its own client; (3) After the fault diagnosis server initializes the server model, it trains the server model using the server data; (4) The fault diagnosis server receives the updated fault recording client models from all clients, and uses the data from the server to train multiple updated fault recording client models again; (5) Using the updated fault recording client model as the teacher model and the trained server model as the student model, the knowledge distillation task is performed to obtain the server aggregation model; (6) The server-side aggregation model is transmitted back to each fault recording client. At this time, the fault recording client model and the server-side aggregation model are trained with the data of each fault recording client. The server-side aggregation model is used as the teacher model and the fault recording client model is used as the student model to perform knowledge distillation tasks and jointly calibrate the fault recording client model. (7) The fault diagnosis server model is trained to an optimal model, which can be used as a fault diagnosis method for comprehensive fault diagnosis of overhead transmission lines of all participants in federated learning.

2. The overhead transmission line fault diagnosis method based on horizontal federated learning according to claim 1 is characterized in that: In step (2), each fault recording client stores its own fault recording client data, and establishes its own fault recording client model, and the data between the fault recording clients are not interoperable; The fault diagnosis server stores fault diagnosis server data and establishes a fault diagnosis server model. The fault diagnosis server data is not interoperable with the data of each fault recording client.

3. The overhead transmission line fault diagnosis method based on horizontal federated learning according to claim 1 is characterized in that: In step (2), the data of the client is the fault recording characteristics, which include but are not limited to a data set consisting of information such as frequency, wavelength, waveform, timestamp, sampling, and sequence characteristics.

4. The overhead transmission line fault diagnosis method based on horizontal federated learning according to claim 3 is characterized in that: In step (3), the server model is an artificial neural network model, which is composed of an input layer, a hidden layer, and an output layer. Each neuron in the input layer is composed of each feature in the fault recording feature list, and each neuron in the output layer is composed of various overhead transmission line fault types. The number of layers and neurons in the hidden layer is determined by the input layer and the output layer. Preferably, the fault types include, but are not limited to, overhead transmission line faults including ice damage, bird damage, external damage, hardware quality, lightning strike, wind damage, wet flashover, pollution flashover, tree obstacles, and earthquakes.

5. The overhead power transmission line fault diagnosis method based on horizontal federated learning according to claim 4 is characterized in that: The server-side aggregation model is trained by the server-side model and multiple fault recording client models through knowledge distillation. The server-side model and multiple fault recording client models are trained using the fault diagnosis server data at the same time, with multiple fault recording client models as teachers and the fault diagnosis server model as students. The training process includes: ① The fault diagnosis server obtains features from all fault recording clients and organizes them into a non-repetitive feature list; ② The input layer of the server model contains all the features on the feature list and initializes the fault diagnosis server model to obtain the initial server model; ③ Use the fault diagnosis server data to train the initial server model. Only the part with corresponding features is trained. Other default features are not involved in the training. The trained server model is obtained. ④ Determine whether the preset stop condition is met. If it is met, the model is considered as the optimal model and ends. If it is not met, continue to execute; ⑤ Receive the fault recording client model trained from all fault recording clients; ⑥ Use the server data to retrain all fault recording client models to obtain all retrained fault recording client models; ⑦ Set the distillation loss function, set all trained fault recording client models as teacher models, set the objective function of the teacher model, set the retrained server model as the student model, and set the objective function of the student model; ⑧Set the distillation loss function, obtain the common objective function of the distillation task according to the teacher model, student model and distillation loss function, and obtain the server-side aggregation model by minimizing the distillation objective function; ⑨Update the server aggregation model and send the updated server aggregation model to each fault recording client; ⑩ Repeat ④ to ⑨ until the stop condition of ③ is met.

6. The overhead power transmission line fault diagnosis method based on horizontal federated learning according to claim 5, characterized in that: The objective function of the teacher model is: Among them, x server is the input of the server data, z is the hidden state of the teacher model, and y is the teacher model's response to input x server Failure prediction, Indicates that on the server side, the hidden state z of the teacher model is in the conditional probability distribution P i (z|x server ) under the expected value; P i (z|x server ) means that in the server, given the server input x server The conditional probability of the hidden state z of the teacher model under the condition of; Indicates that on the server side, the teacher model inputs x to the server side server The fault prediction y, in the conditional probability distribution P i (y|x server ) under the expected value; P i (y|x server ) means that in the server, given the server input x server In the case of server The conditional probability of failure prediction y; The objective function of the student model is: in, Indicates that on the server side, the hidden state z of the student model is in the conditional probability distribution P s (z|x server ) under the expected value; P s (z|x server ) means that in the server, given the server input x server The conditional probability of the hidden state z of the student model under the condition of; Indicates that on the server side, the student model responds to the server input x server The fault prediction y, in the conditional probability distribution P s (y|x server ) under the expected value; P s (y|x server ) means that in the server, given the server input x server In the case of server The conditional probability of failure prediction y.

7. The method for diagnosing faults of overhead power transmission lines based on horizontal federated learning according to claim 6, characterized in that: The distillation loss function is: Among them, P D (X server ) is the server-side data distribution, Indicates that on the server, given the server input X server In the case of P, the data distribution on the server side D (x server ) under the expected value; P t (y t |x server ) means that in the server, given the server input X server In the case of t The conditional probability of s (y s |x server ) means that in the server, given the server input X server In the case of s The conditional probability of The common objective function of the distillation task is: min(F s (x server )+λ server L server )(4) Among them, λ server is the weight of the server-side distillation loss.

8. The method for diagnosing faults of overhead power transmission lines based on horizontal federated learning according to claim 7, characterized in that: The fault recording client model is an artificial neural network model, which consists of an input layer, a hidden layer, and an output layer. Each neuron in the input layer is composed of the data features of the fault recording client, and each neuron in the output layer is composed of various overhead transmission line fault types, including but not limited to ice damage, bird damage, external damage, hardware quality, lightning strikes, wind damage, wet flashover, pollution flashover, tree obstacles, and earthquakes. The number of layers and neurons in the hidden layer is determined by the input layer and the output layer. Preferably, the process of training the fault recording client model is: A. The fault recording client initializes the client model according to the fault recording client data to obtain the initial fault recording client model; B. Set the objective function, use the fault recording client data to train the initial fault recording client model, and obtain the trained fault recording client model; C. Determine whether the preset stop condition is met. If it is met, the process ends; if not, the process continues. D. Send the trained fault recording client model to the fault diagnosis server; E. Receive the server-side aggregation model trained from the fault diagnosis server; F. Use the fault recording client data to retrain the server aggregation model to obtain a retrained server aggregation model; G. Set the distillation loss function, set the retrained server aggregation model as the teacher model, set the objective function of the teacher model, set the trained fault recording client model as the student model, and set the objective function of the student model; H. Set the distillation loss function, obtain the common objective function of the distillation task according to the teacher model, the student model and the distillation loss function, and obtain the corrected fault recording client model by minimizing the distillation objective function; I. Update the fault recording client model; J. Repeat CI until the stop condition of C is met.

9. The method for diagnosing faults of overhead power transmission lines based on horizontal federated learning according to claim 8, characterized in that: The objective function of the teacher model is: Among them, x client It is the input of server data. Indicates that in the client, the hidden state z of the teacher model is in the conditional probability distribution P t (z|x client ) under the expected value; P t (z|x client ) means that in the client, given the client input x client The conditional probability of the hidden state z of the teacher model under the condition of; Indicates that in the client, the teacher model responds to the client input x client The fault prediction y, in the conditional probability distribution P t (y|x client ) under the expected value; P t (y|x client ) means that in the client, given the client input x client In the case of client The conditional probability of failure prediction y; The objective function of the student model is: in, Indicates that in the client, the hidden state z of the student model is in the conditional probability distribution P s (z|x client ) under the expected value; P s (z|x client ) means that in the client, given the client input x client The conditional probability of the hidden state z of the student model under the condition of; Indicates that in the client, the student model responds to the client input x client The fault prediction y, in the conditional probability distribution P s (y|x client ) under the expected value; P s (y|x client ) means that in the client, given the client input x client In the case of client The conditional probability of failure prediction y.

10. The overhead power transmission line fault diagnosis method based on horizontal federated learning according to claim 9, characterized in that: The distillation loss function is: Among them, P D (X client ) is the client data distribution, In the client, given the client input X client In the case of client data distribution P D (x client ) under the expected value; P t (y t |x client ) means that in the client, given the client input X client In the case of t The conditional probability of s (y s |x client ) means that in the client, given the client input X client In the case of s The conditional probability of The common objective function of the distillation task is: min(F s (x client )+λ client L client (8) where λ client is the weight of the client-side distillation loss.

Citation Information

Cited By

  • External damage detection method and system for power line

    CN119861261A

  • An external damage detection method and system for a power line

    CN119861261B