Asynchronous aggregation federated learning intelligent inspection method and system based on domain self-adaption

By adopting a field-adaptive asynchronous aggregation of federated learning method in oil leakage detection of power equipment, the uneven data distribution and privacy security problems in traditional methods are solved, and efficient and accurate intelligent inspection is achieved, suitable for power systems and other Intelligent inspection scenario.

CN119046564AActive Publication Date: 2024-11-29ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD

Patent Information

Application Number
CN202411029040.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-29
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Traditional smart grid inspection methods face uneven data distribution, poor model generalization capabilities, and data privacy and security risks in the detection of oil leakage of power equipment, and it is difficult to update in real time to adapt to the dynamic environment.

Method used

Adopting the asynchronous aggregation federated learning method based on domain adaptation, the global model is received through the edge server, the local power equipment leakage detection model is initialized and updated, and the updated model is transmitted to the cloud server within the specified time window to realize the model's Iterate and share.

Benefits of technology

It improves the accuracy and efficiency of oil leakage detection of power equipment, ensures data privacy and security, adapts to different fields of characteristics, enhances the stability and reliability of the system, and is suitable for a wide range of intelligent inspection scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046564A_ABST
    Figure CN119046564A_ABST
Patent Text Reader

Abstract

The invention discloses an asynchronous aggregation federated learning intelligent inspection method and an asynchronous aggregation federated learning intelligent inspection system based on domain self-adaption, which are characterized by high efficiency, accuracy and expandability of the asynchronous aggregation federated learning intelligent inspection method and the asynchronous aggregation federated learning intelligent inspection system based on domain self-adaption. The advantages enable the robot to be outstanding in the field of intelligent inspection. According to the method, the learning strategy can be automatically adjusted according to different field characteristics, so that the inspection accuracy is improved while the learning effect is ensured. In addition, due to the asynchronous aggregation characteristic, all the inspection nodes can work independently and can effectively cooperate with each other, and the stability and reliability of the system are greatly improved. The method and the system are very wide in application range, and can be applied to various intelligent inspection scenes, such as power systems, industrial manufacturing, city management and the like. The appearance of the system not only brings a new development opportunity for the field of intelligent inspection, but also provides powerful technical support for the development of related fields.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power grid intelligent inspection, and in particular to an asynchronous aggregation federated learning intelligent inspection method and system based on domain adaptation. Background Art

[0002] In the context of intelligent power grid inspection, oil leakage detection of power equipment is a significant but challenging task. Oil leakage often occurs in various complex power equipment, such as transformers and circuit breakers, which are widely distributed and subject to diverse environmental conditions.

[0003] Traditional centralized detection methods face the following difficulties: due to the uneven distribution and heterogeneity of data from each device, the model generalization ability is poor; at the same time, directly uploading a large amount of data with sensitive information to the central server for centralized processing poses obvious privacy and security risks. In addition, the dynamic changes in the operating environment of power equipment require that the detection model can be updated in real time and maintain high accuracy and high efficiency. Summary of the invention

[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0005] In view of the above existing problems, the present invention is proposed.

[0006] Therefore, the present invention provides an asynchronous aggregation federated learning intelligent inspection method and system based on domain adaptation, which can solve the problems mentioned in the background technology.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0008] In a first aspect, the present invention provides an asynchronous aggregation federated learning intelligent inspection method based on domain adaptation, comprising:

[0009] After receiving the global model transmitted from the cloud server, the edge server initializes the local edge model according to the global model;

[0010] The edge server sends the initialized local edge model to the client, and the client trains the power equipment oil leakage detection model according to the initialized local edge model;

[0011] The edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with the asynchronous parameters;

[0012] The edge server transmits the updated power equipment oil leakage detection model to the cloud server after the specified time window;

[0013] The edge server obtains a new round of global model calculated by the cloud server according to the updated power equipment oil leakage detection model, and performs an iterative operation.

[0014] As a preferred solution of the domain-adaptive asynchronous aggregation federated learning intelligent inspection method described in the present invention, after the edge server receives the global model transmitted from the cloud server, initializing the local edge model according to the global model includes:

[0015] When the edge server m receives the current global model x from the cloud server t When , the edge model is initialized as It is expressed as:

[0016]

[0017] Where β represents the global momentum decay factor, K m represents the number of updates of the edge model, η c represents the learning rate of the edge model, and Δt represents the global momentum.

[0018] As a preferred solution of the domain-adaptive asynchronous aggregation federated learning intelligent inspection method described in the present invention, after the edge server receives the global model transmitted from the cloud server, initializing the local edge model according to the global model also includes:

[0019] When the edge server participates in each round of global model aggregation, the global momentum Δt is calculated based on the historical cloud model and is not transmitted from the cloud server, that is:

[0020] Δ t =x t -x t-1

[0021] Among them, x t The current global model, x t-1 Represents the global model of the previous round.

[0022] As a preferred solution of the domain-adaptive asynchronous aggregation federated learning intelligent inspection method described in the present invention, the edge server transmits the updated power equipment oil leakage detection model to the cloud server after the specified time window, including:

[0023] After the specified time window, all edge servers upload the standardized model changes to the cloud server. It is expressed as:

[0024]

[0025] in, Indicates K m The edge model after initialization.

[0026] As a preferred solution of the domain-adaptive asynchronous aggregation federated learning intelligent inspection method described in the present invention, the edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with asynchronous parameters, including:

[0027] The update method is:

[0028]

[0029] Among them, τ is the outdatedness of the model, α τ is the client’s contribution to the edge model, α τ The smaller the value, the more times the federated learning is trained. τ The larger the value, the greater the fluctuation in accuracy. represents the edge model after the k+1th initialization, represents the edge model after the kth initialization, Represents the original model of client i.

[0030] As a preferred solution of the domain-adaptive asynchronous aggregation federated learning intelligent inspection method described in the present invention, wherein: the edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with asynchronous parameters, and further includes:

[0031] By adjusting α τ The value of is used to adaptively control the convergence speed and accuracy fluctuation during the model learning process;

[0032] α τ The value of is determined by the following function:

[0033] α τ =α*v τ

[0034] τ=kk i

[0035] Where α∈(0,1) is the weight of the benchmark model, v∈(0,1) is the penalty coefficient of the outdated model, τ is the outdatedness of the client model, k is the clock of the current edge model, and k i Indicates the clock of the client i model.

[0036] As a preferred solution of the domain-adaptive asynchronous aggregation federated learning intelligent inspection method described in the present invention, the edge server obtains a new round of global model calculated by the cloud server according to the updated power equipment oil leakage detection model, and performs iterative operations including:

[0037] Cloud server computing new global model:

[0038] x t+1 =x t -η c Δ t+1

[0039]

[0040] Among them, Δ t+1 is the global pseudo gradient information, M represents the total number of edge servers participating in the iteration, M is equal to N, N is a normalized constant, which is adjusted according to the importance of the change amount uploaded by each edge server, η n Represents a normalization factor used to balance the contribution of edge servers.

[0041] In a second aspect, the present invention provides an asynchronous aggregation federated learning intelligent inspection system based on domain adaptation, comprising:

[0042] A first transmission module, configured to control the edge server to initialize a local edge model according to the global model after receiving the global model transmitted from the cloud server;

[0043] The second transmission module is used to control the edge server to send the initialized local edge model to the client, and the client trains the power equipment oil leakage detection model according to the initialized local edge model;

[0044] The third transmission module is used to control the edge server to receive the trained power equipment oil leakage detection model, and update the trained power equipment oil leakage detection model in combination with the asynchronous parameters;

[0045] A fourth transmission module, used to control the edge server to transmit the updated power equipment oil leakage detection model to the cloud server after a specified time window;

[0046] The fifth transmission module is used to control the edge server to obtain a new round of global model calculated by the cloud server according to the updated power equipment oil leakage detection model, and perform iterative operations.

[0047] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned method when executing the computer program.

[0048] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method described above when executed by a processor.

[0049] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention proposes an intelligent inspection method and system based on domain-adaptive asynchronous aggregation federated learning, which realizes intelligent inspection and updating of the oil leakage detection model of power equipment by utilizing domain-adaptive technology and asynchronous aggregation federated learning algorithm. The intelligent inspection method and system based on domain-adaptive asynchronous aggregation federated learning proposed by the present invention are unique in their high efficiency, accuracy and scalability, which make them the best in the field of intelligent inspection. The method can automatically adjust the learning strategy according to different domain characteristics, thereby improving the accuracy of inspection while ensuring the learning effect. In addition, its asynchronous aggregation characteristics enable each inspection node to work independently and effectively collaborate, greatly improving the stability and reliability of the system. The application scope of this method and system is very wide, and can be applied to various intelligent inspection scenarios, such as power systems, industrial manufacturing, urban management, etc. Its emergence not only brings new development opportunities to the field of intelligent inspection, but also provides strong technical support for the development of related fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0051] Figure 1 A method flow chart of a domain-adaptive asynchronous aggregation federated learning intelligent inspection method and system provided for one embodiment of the present invention;

[0052] Figure 2 An internal structural diagram of a computer device providing a domain-adaptive asynchronous aggregated federated learning intelligent inspection method and system for an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0054] Example 1

[0055] Reference Figure 1-Figure 2 , is the first embodiment of the present invention, which provides an asynchronous aggregation federated learning intelligent inspection method and system based on domain adaptation, including an asynchronous aggregation federated learning intelligent inspection method based on domain adaptation and an asynchronous aggregation federated learning intelligent inspection system based on domain adaptation, wherein an asynchronous aggregation federated learning intelligent inspection method based on domain adaptation includes:

[0056] Before describing the embodiments of the present application in detail, some related concepts are first explained for the sake of clarity.

[0057] Edge servers: Edge servers are servers that run at the "edge" of the network, closer to data sources and users, such as IoT devices, mobile devices, or sensor networks. In the context of federated learning, edge servers are responsible for processing data from clients, performing parts of model training, and communicating with central cloud servers. Edge servers can reduce latency in data transmission and improve data privacy while also reducing the load on cloud servers.

[0058] Global model: In the federated learning framework, the global model is a central model maintained by the cloud server, which integrates the information provided by all edge servers and clients participating in the training. The goal of the global model is to learn a model with good generalization performance by aggregating the updates of all edge models, which can adapt to the data distribution in different edge environments.

[0059] Local edge model training for power equipment oil leakage detection model: This refers to using local data sets on edge servers to train models for specific tasks (such as power equipment oil leakage detection). The edge server first initializes a local model based on the global model received from the cloud server. The edge server then trains the model using its local data set to adapt it to the data characteristics of a specific domain. After training is complete, the edge server feeds the model update back to the cloud server to further optimize the global model.

[0060] Specify time window: In federated learning, the specified time window refers to the time period for synchronizing model updates between edge servers and cloud servers. During this time window, the edge server can train the model independently and perform multiple iterations until the end of the time window, when it sends its model updates back to the cloud server. This mechanism allows edge servers to train without real-time connection to the cloud, thus achieving asynchronous aggregation and improving the flexibility and efficiency of the system.

[0061] In related technologies, intelligent inspections often rely on a single, centralized model for training and prediction. This approach often faces many challenges when dealing with large-scale, distributed scenarios, such as data transmission delays and difficulties in model update synchronization. In addition, since oil leakage detection of power equipment involves a variety of complex factors, such as equipment model, working environment, and operating time, a single model is often difficult to adapt to all situations, resulting in poor inspection results.

[0062] This application provides an effective solution to the above-mentioned problems. Next, we will combine multiple embodiments to explain in detail how to implement the domain-adaptive asynchronous aggregation federated learning intelligent inspection method.

[0063] Figure 1 A method flow chart of a domain-adaptive asynchronous aggregation federated learning intelligent inspection method and system is shown, including:

[0064] S101, after receiving the global model transmitted from the cloud server, the edge server initializes the local edge model according to the global model;

[0065] Specifically, after the edge server receives the global model transmitted from the cloud server, initializing the local edge model according to the global model includes:

[0066] When the edge server m receives the current global model x from the cloud server t When , the edge model is initialized as It is expressed as:

[0067]

[0068] Where β represents the global momentum decay factor, K m represents the number of updates of the edge model, η c represents the learning rate of the edge model, and Δt represents the global momentum.

[0069] It should be noted that initializing the local edge model through the global model can ensure that each edge server has a consistent model basis in the initial state, which is convenient for subsequent model updates and aggregation. At the same time, by introducing parameters such as the global momentum decay factor, the number of edge model updates, and the learning rate, the model initialization process can be further adjusted and optimized to adapt to different inspection scenarios and requirements.

[0070] In the embodiment of the present application, after the edge server receives the global model transmitted from the cloud server, initializing the local edge model according to the global model further includes:

[0071] When the edge server participates in each round of global model aggregation, the global momentum Δt is calculated based on the historical cloud model and is not transmitted from the cloud server, that is:

[0072] Δ t =x t -x t-1

[0073] Among them, x t The current global model, x t-1 Represents the global model of the previous round.

[0074] It should be noted that global momentum reduces the amount of data transmission between cloud servers and edge servers, improving system efficiency. At the same time, by calculating global momentum locally, edge servers can participate in the model aggregation process more autonomously, enhancing the flexibility and scalability of the system.

[0075] S102, the edge server sends the initialized local edge model to the client, and the client trains a power equipment oil leakage detection model according to the initialized local edge model;

[0076] In an embodiment of the present application, the edge server receives a global model from a cloud server, which is the result of the joint contribution of all edge servers participating in the training. The edge server initializes the local edge model based on the global model. This may involve copying model parameters, initializing weights, and setting other training-related parameters, such as learning rate, momentum, etc. The edge server sends the initialized local edge model to each client through a secure communication channel. The client can be an Internet of Things (IoT) device, a mobile device, or any terminal that can collect and process data installed near the power equipment.

[0077] In an embodiment of the present application, when training the client model, the client collects relevant data of the power equipment, such as temperature, pressure, vibration and other indicators, which are essential for detecting whether the power equipment is leaking oil. After the data is collected, the client will pre-process the data, including cleaning, normalization and format conversion, to meet the requirements of the model input. The client loads the local edge model received from the edge server and performs necessary configurations according to the characteristics of the local data set, such as adjusting the batch size, selecting the loss function, etc. The client trains the model using the local data set. This process usually includes forward propagation, calculating losses, back propagation, and parameter updates. Since the data is only kept locally on the client, this approach helps to protect data privacy. During the training process, the client may periodically evaluate the performance of the model on local data. If the model performs poorly, it may be necessary to adjust hyperparameters or perform data enhancement. Once the local training is completed, the client packages the model updates (usually weight differences) and prepares to upload them to the edge server.

[0078] In the embodiment of the present application, the specific steps of the client performing model training are as follows:

[0079] Data preprocessing, in addition to basic missing value processing, uses more complex statistical methods to identify outliers, such as Z-score or IQR method. Z-score outlier identification is expressed as:

[0080]

[0081] Among them, z i is the Z-score of the ith sample, μ is the sample mean, and σ is the sample standard deviation. i >k or z i <-k (k is usually 3), then x is considered i is an outlier.

[0082] Furthermore, the data is normalized using Min-Maxl and combined with regularization terms to prevent overfitting.

[0083] Normalization can be expressed as:

[0084]

[0085] Among them, r is the random perturbation term and λ is the regularization strength, which helps to increase the diversity of the data.

[0086] Furthermore, format conversion uses an embedding layer to process categorical features to capture potential semantic relationships.

[0087] Furthermore, the traditional Adam algorithm may cause the norm of the weights to gradually increase over time, even if the learning rate is close to zero. This application solves this problem by improving the Adam algorithm to separate weight decay and gradient update. The update rules of the improved Adam algorithm in this application are as follows:

[0088] m t =β1m t-1 +(1-β1)g t

[0089]

[0090]

[0091] Among them, m t and v t are the first-order and second-order moment estimates of the gradient, β1 and β2 are the decay rates, α is the learning rate, ∈ is a very small value to prevent division by zero, and λ is the weight decay coefficient, which is independent of the gradient update and acts directly on the weight, thus avoiding the problem of weight expansion over time.

[0092] Going further, forward propagation: Using a deep neural network for forward propagation, the output of each layer can be expressed as:

[0093] h (l) =σ(W (l) h (l-1) +b (l) )

[0094] Among them, h (l) is the output of layer l, W (l) and b (l) are the weight matrix and bias vector of the layer respectively, and σ is the nonlinear activation function;

[0095] Furthermore, the improved loss function of this application slightly smoothes the label distribution during the training process to reduce the model's overconfidence in the training data, thereby improving the generalization ability. The improved loss function is defined as:

[0096]

[0097] Where C is the total number of categories, ∈ is a smoothing factor, which is usually a small positive value (such as 0.1). In this way, even if the label is 1, its target probability will be slightly reduced to 1-∈, while the target probabilities of other categories will increase accordingly, w i is the weight of the i-th sample, p i is the predicted probability of the model for the i-th sample.

[0098] Furthermore, the back-propagation algorithm is used to calculate the gradient of the loss function with respect to the model parameters.

[0099] Furthermore, the improved Adam algorithm is used for parameter updating as described above.

[0100] Furthermore, the client only uploads the differences in parameters, rather than the complete parameter set, which can further reduce the amount of data transmitted through compression techniques:

[0101] Δθ=θ new -θ old

[0102] Quantization and differential coding can also be used, which can be expressed as:

[0103] Δθ q =Q(Δθ)

[0104] Here, Q is the quantization function, which converts floating-point numbers into integers with fewer bits to reduce transmission overhead.

[0105] In an optional embodiment, the client can dynamically generate additional data during training, such as rotation, flipping, or adding noise, to enhance the generalization ability of the model. This can be achieved by randomly transforming the matrix T

[0106] x′=T(x)

[0107] It should be noted that through local training, the client can adapt to the characteristics of the local data set more quickly because the model training is based on real-time, local data. Data privacy is protected because all data is kept locally on the client and not directly transmitted to external servers. This meets the current strict requirements for privacy protection and data security, especially when dealing with sensitive data (such as medical records, personal financial information, etc.). This helps to improve the accuracy and real-time performance of the model.

[0108] Secondly, by improving the Adam algorithm and separating weight decay and gradient update, this application effectively solves the problem of weight expansion over time. This helps maintain the stability and reliability of the model and prevents the model from experiencing performance degradation or instability during training.

[0109] In addition, this application introduces an improved loss function that slightly smoothes the label distribution during training to reduce the model's overconfidence in the training data. This helps improve the model's generalization ability and enables the model to perform well on unseen data.

[0110] Finally, the client only uploads the difference of parameters instead of the complete parameter set, which greatly reduces the amount of data transmitted. By combining compression techniques (such as quantization and differential coding), the transmission overhead can be further reduced and the efficiency of data transmission can be improved.

[0111] In summary, the method in the embodiment of the present application not only protects data privacy, but also improves the training efficiency and performance of the model through a series of optimization measures. This makes the method have broad application prospects in fields such as distributed learning and edge computing.

[0112] S103, the edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with the asynchronous parameters;

[0113] The edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with the asynchronous parameters, including:

[0114] Specifically, the update method is:

[0115]

[0116] Among them, τ is the outdatedness of the model (i.e., asynchronous parameter), α τ is the client’s contribution to the edge model, α τ The smaller the value, the more times the federated learning is trained. τ The larger the value, the greater the fluctuation in accuracy. represents the edge model after the k+1th initialization, represents the edge model after the kth initialization, Represents the original model of client i.

[0117] Furthermore, the edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with the asynchronous parameters, and further includes:

[0118] By adjusting α τ The value of is used to adaptively control the convergence speed and accuracy fluctuation during the model learning process;

[0119] α τ The value of is determined by the following function:

[0120] α τ =α*v τ

[0121] τ=kk i

[0122] Where α∈(0,1) is the weight of the benchmark model, v∈(0,1) is the penalty coefficient of the outdated model, τ is the outdatedness of the client model, k is the clock of the current edge model, and k i Indicates the clock of the client i model.

[0123] S104, the edge server transmits the updated power equipment oil leakage detection model to the cloud server after the specified time window;

[0124] The edge server transmits the updated power equipment oil leakage detection model to the cloud server after the specified time window, including:

[0125] After the specified time window, all edge servers upload the standardized model changes to the cloud server. It is expressed as:

[0126]

[0127] in, Indicates K m The edge model after initialization.

[0128] It should be noted that by regularly transmitting the updated power equipment oil leakage detection model from the edge server to the cloud server, the global update and sharing of the model is achieved. This has several significant advantages:

[0129] First, as a centralized storage and processing platform, the cloud server has powerful computing and data storage capabilities. By transmitting the updated model to the cloud server, it can ensure that all edge servers can obtain the latest and optimized model, thereby further improving the accuracy and efficiency of oil leakage detection of power equipment.

[0130] Secondly, through the global update and sharing of the cloud server, the model can be quickly synchronized and deployed between different edge servers. When a new power equipment oil leakage detection model is developed or optimized, it only needs to be transmitted to the cloud server, and then the cloud server distributes the updated model to each edge server to achieve rapid deployment and application of the model.

[0131] In addition, through the global update and sharing of cloud servers, continuous learning and optimization of models can be achieved. In the distributed learning framework, each edge server will train the model based on local data and upload the training results to the cloud server. The cloud server can globally optimize and update the model based on these training results, and then distribute the updated model to each edge server again, forming a closed loop of continuous learning and optimization.

[0132] Finally, through the global update and sharing of the cloud server, the model can also be applied across regions and devices. In the power system, power equipment may be distributed in different geographical locations and on different devices. By transmitting the updated model to the cloud server, it can be ensured that the power equipment in all geographical locations and devices can use the latest and optimized model, thereby realizing cross-regional and cross-device power equipment oil leakage detection.

[0133] S105, the edge server obtains a new round of global model calculated by the cloud server according to the updated power equipment oil leakage detection model, and performs an iterative operation.

[0134] The edge server obtains a new round of global models calculated by the cloud server based on the updated power equipment oil leakage detection model, and performs iterative operations including:

[0135] Cloud server computing new global model:

[0136] x t+1 =x t -η c Δ t+1

[0137]

[0138] Among them, Δ t+1 is the global pseudo gradient information, M represents the total number of edge servers participating in the iteration, M is equal to N, N is a normalized constant, which is adjusted according to the importance of the change amount uploaded by each edge server, η n Represents a normalization factor used to balance the contribution of edge servers.

[0139] In an optional embodiment, the edge server may continuously monitor the client's upload frequency and training quality, and adjust the update frequency and iteration strategy of the global model as needed.

[0140] To ensure the stability and performance of the distributed learning system, the edge server will continuously monitor the upload frequency and training quality of each client. If it is found that the upload frequency of a client is too low or the training quality is poor, the edge server will make timely adjustments, such as increasing the client's upload frequency, adjusting its training data set, or optimizing its training strategy. At the same time, the edge server will also adjust the update frequency and iteration strategy of the global model in a timely manner according to the performance of the global model to ensure continuous optimization and improvement of the entire system.

[0141] In an optional embodiment, the edge server regularly collects the upload time and training quality report of each client. Use statistical methods to analyze the data and identify abnormal patterns and performance bottlenecks. According to the above monitoring logic, execute the corresponding adjustment strategy. After the adjustment is implemented, continue to monitor the system performance and evaluate the effect of the adjustment. Based on the evaluation results, continuously fine-tune the monitoring logic and adjustment strategy to achieve the optimal system performance.

[0142] In an optional embodiment, a reasonable upload frequency threshold is set, such as uploading an update every 30 minutes. If the client does not upload updates for more than the threshold time, the edge server should mark the client as abnormal. If it is judged to be abnormal, a warning message is sent to remind the client to check the network connection or hardware status. Increase the priority of the client and try to request updates frequently. If the problem persists, consider temporarily excluding the client from the current iteration to avoid slowing down the overall process.

[0143] Use accuracy, loss function value, AUC and other indicators to evaluate training quality. Set a minimum training quality standard. Clients below this standard are considered to have poor training quality. If the quality is considered poor, provide more detailed training guidelines or parameter recommendations to the client. Adjust the client's training data set to add more representative or challenging samples. Consider reinitializing the client's local model or providing a better model version as a starting point.

[0144] Use the performance indicators on the validation set to evaluate the performance of the global model. Track the trend of performance indicators to determine whether the model is stable or has room for improvement. Set a performance goal, such as an accuracy of 95%, or a loss function value below a certain threshold. If iteration is required, there are two iteration methods to choose from: Fast iteration: If the model performance improves rapidly, you can increase the update frequency appropriately to speed up the model optimization process. Stable iteration: If the model performance tends to be stable, reduce the update frequency to avoid unnecessary computing and communication overhead.

[0145] If the existing iteration strategy cannot meet the performance goals, consider introducing new optimization algorithms, such as different gradient descent methods or regularization techniques. Dynamically adjust the learning rate of the global model according to the model convergence speed to accelerate early learning and refine later adjustments. If the model performs poorly in certain categories, consider increasing the weight of the data in this category or introducing additional data sources.

[0146] It should be noted that by introducing the iterative operation of the global model, the accuracy and generalization ability of the oil leakage detection model of power equipment are further improved. The global model is calculated based on the model changes uploaded by all edge servers, which means that it integrates the local learning results of each edge server, so that it can more comprehensively reflect the actual operation of the power equipment and the oil leakage risk. Through iterative operations, the global model can be continuously updated and optimized based on new data and experience, further improving the accuracy and efficiency of oil leakage detection of power equipment.

[0147] In addition, the iterative operation of the global model also helps to achieve rapid deployment and updating of the model. When the new power equipment oil leakage detection model is calculated, the cloud server can quickly distribute it to each edge server, and the edge server can directly load and use this global model to detect power equipment oil leakage. This method not only reduces the overhead of model transmission, but also improves the efficiency of model deployment, allowing power equipment oil leakage detection to respond to changes in actual operating conditions more quickly and accurately.

[0148] Finally, the iterative operation of the global model also helps to achieve continuous learning and optimization of the model. Under the distributed learning framework, each edge server will train the model based on local data and upload the training results to the cloud server. Through the iterative operation of the global model, these training results can be effectively integrated to form a more accurate and comprehensive power equipment oil leakage detection model. At the same time, with the continuous addition of new data and the continuous iterative update of the model, the accuracy and generalization ability of the model can be continuously improved, and the continuous learning and optimization of the model can be achieved.

[0149] In summary, the present invention proposes a domain-adaptive asynchronous aggregation federated learning intelligent inspection method and system, which realizes the intelligent inspection and update of the oil leakage detection model of power equipment by utilizing domain adaptation technology and asynchronous aggregation federated learning algorithm. The domain-adaptive asynchronous aggregation federated learning intelligent inspection method and system proposed in the present invention are unique in their high efficiency, accuracy and scalability, which make them the best in the field of intelligent inspection. The method can automatically adjust the learning strategy according to different domain characteristics, thereby improving the accuracy of inspection while ensuring the learning effect. In addition, its asynchronous aggregation characteristics enable each inspection node to work independently and effectively collaborate, greatly improving the stability and reliability of the system. The application scope of this method and system is very wide, and can be applied to various intelligent inspection scenarios, such as power systems, industrial manufacturing, urban management, etc. Its emergence not only brings new development opportunities to the field of intelligent inspection, but also provides strong technical support for the development of related fields.

[0150] This embodiment also provides an asynchronous aggregation federated learning intelligent inspection system based on domain adaptation, including:

[0151] A first transmission module, configured to control the edge server to initialize a local edge model according to the global model after receiving the global model transmitted from the cloud server;

[0152] The second transmission module is used to control the edge server to send the initialized local edge model to the client, and the client trains the power equipment oil leakage detection model according to the initialized local edge model;

[0153] The third transmission module is used to control the edge server to receive the trained power equipment oil leakage detection model, and update the trained power equipment oil leakage detection model in combination with the asynchronous parameters;

[0154] A fourth transmission module, used to control the edge server to transmit the updated power equipment oil leakage detection model to the cloud server after a specified time window;

[0155] The fifth transmission module is used to control the edge server to obtain a new round of global model calculated by the cloud server according to the updated power equipment oil leakage detection model, and perform iterative operations.

[0156] The above-mentioned unit modules may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above-mentioned modules.

[0157] This embodiment also provides a computer device, which may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 2 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an asynchronous aggregation federated learning intelligent inspection method based on domain adaptation is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse.

[0158] This embodiment further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0159] After receiving the global model transmitted from the cloud server, the edge server initializes the local edge model according to the global model;

[0160] The edge server sends the initialized local edge model to the client, and the client trains the power equipment oil leakage detection model based on the initialized local edge model;

[0161] The edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with the asynchronous parameters;

[0162] The edge server transmits the updated power equipment oil leakage detection model to the cloud server after the specified time window;

[0163] The edge server obtains a new round of global model calculated by the cloud server based on the updated power equipment oil leakage detection model, and performs iterative operations.

[0164] Example 2

[0165] Reference Figure 1-Figure 2 , which is an embodiment of the present invention, provides an asynchronous aggregation federated learning intelligent inspection method and system based on domain adaptation. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through experiments.

[0166] In a specific embodiment, a smart grid maintenance system for a power company is established. In this system, edge servers are located in each substation and are responsible for collecting and analyzing status data of power equipment, especially focusing on oil leakage of power equipment, which is crucial to preventing power failures.

[0167] The system architecture is as follows:

[0168] Cloud server: Located in the data center, responsible for the management of the global model, including model initialization, update and iteration. Edge server: Deployed in each substation, responsible for the training and update of the local model. Client: It is the IoT sensor installed on the power equipment, which collects data and participates in the model training process.

[0169] Specific steps:

[0170] The cloud server prepares an initial global model and distributes it to all edge servers.

[0171] The edge servers initialize their respective local edge models based on the global model;

[0172] Client sensors collect data related to oil leakage from power equipment and send it to the nearest edge server.

[0173] The edge server trains the collected data using the local edge model to optimize the model parameters to adapt to the specific environmental conditions of the substation where it is located.

[0174] After the edge server completes local training, it updates the model based on the asynchronous parameters. This involves evaluating how outdated the model is and how much the client has contributed to the model.

[0175] The updated model is normalized and stored on the edge server.

[0176] After the specified time window ends, the edge server sends the updated model changes to the cloud server.

[0177] The cloud server uses the changes uploaded by all edge servers to calculate the new global model. A weighted average is used here, where the weight reflects the contribution of each edge server and the importance of the model update.

[0178] The new round of global model calculated by the cloud server is distributed back to all edge servers to start the next round of iteration.

[0179] This process is repeated until a predetermined number of iterations is reached or the model converges to a satisfactory performance level.

[0180] The results are as follows:

[0181] Table 1: Training progress and model update of edge servers

[0182]

[0183] Table 2: Performance comparison of edge server model before and after update

[0184] Edge Server ID Initial model accuracy Model accuracy after update Performance improvement percentage E1 85.0% 90.2% 5.2% E2 82.5% 88.7% 6.2% ... ... ... ...

[0185] Table 3: Relationship between asynchronous parameter τ and model outdatedness

[0186] Edge Server ID τ(model outdatedness) Model update frequency Accuracy fluctuation E1 0.05 Once every hour Small E2 0.10 Every two hours middle ... ... ... ...

[0187] Table 4: Cloud server global model iteration record

[0188] Iterations Global model accuracy Number of participating edge servers Convergence state 1 80.0% 10 Not converged 2 83.5% 10 Not converged ... ... ... ... 10 92.3% 10 Converged

[0189] Table 5: Overview of model changes uploaded to edge servers

[0190] Edge Server ID Last upload time This upload time Model change amount Upload delay E1 2024-03-22 09:35 2024-03-22 10:35 1.2MB 0ms E2 2024-03-22 09:45 2024-03-22 10:45 1.5MB 50ms ... ... ... ... ...

[0191] Table 6: Relationship between model learning rate and accuracy fluctuation

[0192]

[0193]

[0194] Table 7: Dynamic model update and edge model learning rate adjustment

[0195] Edge Server ID Initial learning rate Learning rate after update Update basis (τ, model outdatedness, etc.) E1 0.01 0.009 τ=0.05, low model outdatedness E2 0.01 0.007 τ=0.10, the model is moderately outdated ... ... ... ...

[0196] Table 8: Model training and oil leakage detection case of power equipment

[0197] Detection case ID Edge Server ID Test results Actual Results True / False C1 E1 Oil leakage Oil leakage correct C2 E2 No leakage No leakage correct ... ... ... ... ...

[0198] As iterations progressed, the global model gradually adapted to the oil leakage detection needs of power equipment in different substations, improving the accuracy and efficiency of intelligent inspections. Data privacy was protected because sensitive power equipment data never left the network boundaries where the substations were located.

[0199] This example demonstrates how federated learning can be used in real-world applications to optimize the maintenance of power equipment, especially when dealing with large-scale and decentralized power grid infrastructure.

[0200] In summary, the domain-adaptive asynchronous aggregation federated learning intelligent inspection method and system proposed in the present invention are unique in its high efficiency, accuracy and scalability, which make it a leader in the field of intelligent inspection. The method can automatically adjust the learning strategy according to different domain characteristics, thereby improving the accuracy of inspection while ensuring the learning effect. In addition, its asynchronous aggregation characteristics enable each inspection node to work independently and effectively collaborate, greatly improving the stability and reliability of the system. The application scope of this method and system is very wide, and can be applied to various intelligent inspection scenarios, such as power systems, industrial manufacturing, urban management, etc. Its emergence not only brings new development opportunities to the field of intelligent inspection, but also provides strong technical support for the development of related fields.

[0201] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

[0202] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0203] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0204] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0205] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0206] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0207] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A domain-adaptive asynchronous aggregation federated learning intelligent inspection method, characterized in that: include: After receiving the global model transmitted from the cloud server, the edge server initializes the local edge model according to the global model; The edge server sends the initialized local edge model to the client, and the client trains the power equipment oil leakage detection model according to the initialized local edge model; The edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with the asynchronous parameters; The edge server transmits the updated power equipment oil leakage detection model to the cloud server after the specified time window; The edge server obtains a new round of global model calculated by the cloud server according to the updated power equipment oil leakage detection model, and performs an iterative operation.

2. The domain-adaptive asynchronous aggregation federated learning intelligent inspection method according to claim 1, characterized in that: After the edge server receives the global model transmitted from the cloud server, initializing the local edge model according to the global model includes: When the edge server m receives the current global model x from the cloud server t When , the edge model is initialized as It is expressed as: Where β represents the global momentum decay factor, K m represents the number of updates of the edge model, η c represents the learning rate of the edge model, and Δt represents the global momentum.

3. The domain-adaptive asynchronous aggregation federated learning intelligent inspection method according to claim 2, characterized in that: After the edge server receives the global model transmitted from the cloud server, initializing the local edge model according to the global model also includes: When the edge server participates in each round of global model aggregation, the global momentum Δt is calculated based on the historical cloud model and is not transmitted from the cloud server, that is: Δ t =x t -x t-1 Among them, x t The current global model, x t-1 Represents the global model of the previous round.

4. The domain-adaptive asynchronous aggregation federated learning intelligent inspection method according to claim 3 is characterized in that: The edge server transmits the updated power equipment oil leakage detection model to the cloud server after the specified time window, including: After the specified time window, all edge servers upload the standardized model changes to the cloud server. It is expressed as: in, Indicates K m The edge model after initialization.

5. The domain-adaptive asynchronous aggregation federated learning intelligent inspection method according to claim 4, characterized in that: The edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with the asynchronous parameter, including: The update method is: Among them, τ is the outdatedness of the model, α τ is the client’s contribution to the edge model, α τ The smaller the value, the more times the federated learning is trained. τ The larger the value, the greater the fluctuation in accuracy. represents the edge model after the k+1th initialization, represents the edge model after the kth initialization, Represents the original model of client i.

6. The domain-adaptive asynchronous aggregation federated learning intelligent inspection method according to claim 5, characterized in that: The edge server receives the trained power equipment oil leakage detection model, and updates the trained power equipment oil leakage detection model in combination with the asynchronous parameter, further comprising: By adjusting the value of ατ, the convergence speed and accuracy fluctuation in the model learning process can be adaptively controlled; The value of α is determined by the following function: τ α=α*v τ τ τ=kk i Where α∈(0,1) is the weight of the benchmark model, v∈(0,1) is the penalty coefficient of the outdated model, τ is the outdatedness of the client model, k is the clock of the current edge model, and k i Indicates the clock of the client i model.

7. The domain-adaptive asynchronous aggregation federated learning intelligent inspection method according to claim 6, characterized in that: The edge server obtains a new round of global model calculated by the cloud server according to the updated power equipment oil leakage detection model, and performs iterative operations including: Cloud server computing new round of global model: x t+1 =x t -or c D t+1 Among them, Δ t+1 is the global pseudo gradient information, M represents the total number of edge servers participating in the iteration, M is equal to N, N is a normalized constant, which is adjusted according to the importance of the change amount uploaded by each edge server, η n Represents a normalization factor used to balance the contribution of edge servers.

8. An asynchronous aggregation federated learning intelligent inspection system based on domain adaptation, characterized in that: include: A first transmission module, configured to control the edge server to initialize a local edge model according to the global model after receiving the global model transmitted from the cloud server; The second transmission module is used to control the edge server to send the initialized local edge model to the client, and the client trains the power equipment oil leakage detection model according to the initialized local edge model; The third transmission module is used to control the edge server to receive the trained power equipment oil leakage detection model, and update the trained power equipment oil leakage detection model in combination with the asynchronous parameters; A fourth transmission module, used to control the edge server to transmit the updated power equipment oil leakage detection model to the cloud server after a specified time window; The fifth transmission module is used to control the edge server to obtain a new round of global model calculated by the cloud server according to the updated power equipment oil leakage detection model, and perform iterative operations.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Road unmanned aerial vehicle inspection data processing method based on federal adaptive learning

    CN115376031A

  • Federal learning optimization method and system based on reinforcement learning

    CN116523079A

  • Method and system for detecting abnormal data of smart power grid based on federated learning

    CN117171686A

  • Vehicle networking abnormal flow detection method based on adaptive federated learning

    CN117807496A

Cited By

  • Asynchronous federated learning method and system based on dynamic contribution perception and old adaptation

    CN120633770A

  • Asynchronous federated learning method and system based on dynamic contribution awareness and staleness adaptation

    CN120633770B