Federal learning-based equipment fault detection model training method and system

Through the federated learning method, feature matching and weighted aggregation technology are used to improve the accuracy and reliability of the distributed equipment fault detection model, solve the problem of model performance degradation in the existing technology, and achieve effective processing of heterogeneous data. and data privacy protection.

CN118690138APending Publication Date: 2024-09-24HEYUAN POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410819537.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, when fault detection models for distributed devices are trained, the accuracy and reliability are insufficient. Especially when processing complex time series data, the centralized training model is difficult to distinguish the cycle modes of different batteries, resulting in a decline in model performance.

Method used

Using a method based on federated learning, the local parameters and training data of the local model are obtained from the client, feature matching and weighted aggregation are performed, global parameters are generated, and sent to the client to update the local model to ensure that the model is handling heterogeneous Maintain accuracy and reliability when using data.

Benefits of technology

Effectively integrates the features of complex models, improves the accuracy and reliability of fault detection models, is suitable for processing different models with heterogeneous data, and ensures data privacy and security in power equipment fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690138A
    Figure CN118690138A
Patent Text Reader

Abstract

The invention discloses an equipment fault detection model training method and system based on federated learning, and the method comprises the following steps: obtaining a local parameter of each local model and a first feature of training data from a client, carrying out the normalization processing and dimension transformation of the first feature, obtaining a second feature, carrying out the feature matching according to the second feature, and obtaining a training model; and obtaining local models of the same type, performing weighted aggregation on local parameters of the local models of the same type to obtain global parameters, and issuing the global parameters to the client, so that the client updates the local models according to the global parameters. The method can improve the accuracy and reliability of the fault detection model, and can be widely applied to the technical field of equipment fault detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment fault detection, and in particular to a method and system for training an equipment fault detection model based on federated learning. Background Art

[0002] With the advancement of science and technology and the development of distributed devices, the intelligent and real-time fault diagnosis system of equipment between different business systems has gradually become a hot spot for industry research and application. For example, in the existing technology, the power equipment in different areas of the power system has its own fault detection model. The training data between each detection model is independent, the data volume is small and not suitable for the combination with the training data. Moreover, if the training data of different business systems are uploaded to the same server for training, the security and privacy of the data in each business system cannot be guaranteed.

[0003] In the prior art, when distributed devices are trained uniformly, the accuracy and reliability of the fault detection model are insufficient. In addition, for time series prediction tasks, such as the health status and remaining useful life estimation (RUL) of power equipment, deep neural networks such as LSTM perform better because they can capture long-term dependencies, but the prior art cannot effectively integrate the features of these complex models, resulting in reduced model performance. In particular, when processing cycle data (such as lithium-ion battery capacity decay data), the centralized training model may have difficulty distinguishing the cycle patterns of different batteries, and the accuracy and reliability of the fault detection model may be reduced. Summary of the invention

[0004] In order to solve one of the above problems, the purpose of the present invention is to provide a method and system for training a device fault detection model based on federated learning, which can improve the accuracy and reliability of the fault detection model.

[0005] In one aspect, the present invention provides a method for training a device fault detection model based on federated learning, which is applied to a server, wherein the device fault detection model includes at least one local model, and the local model is located on a client, and comprises the following steps:

[0006] Acquire local parameters of each local model and a first feature of the training data from the client, perform normalization processing and dimension transformation on the first feature, and obtain a second feature;

[0007] Perform feature matching according to the second feature to obtain the local model of the same type;

[0008] Performing weighted aggregation on the local parameters of the local models of the same type to obtain global parameters;

[0009] The global parameters are sent to the client, so that the client updates the local model according to the global parameters.

[0010] Optionally, the performing normalization and dimension transformation on the first feature to obtain the second feature specifically includes:

[0011] Determine a mean and a standard deviation of the first feature, and normalize the first feature according to the mean and the standard deviation to obtain a normalized first feature;

[0012] The normalized first feature is transformed in dimension using a feature selection and / or mapping algorithm to obtain the second feature with the same dimension.

[0013] Optionally, performing feature matching according to the second feature to obtain the local model of the same type specifically includes:

[0014] Calculating the similarity of the second feature;

[0015] The local model corresponding to the second feature whose similarity is greater than a preset value is taken as the local model of the same type.

[0016] Optionally, performing weighted aggregation on the local parameters of the local models of the same type to obtain global parameters specifically includes:

[0017] Adding the local parameters of the local models of the same type to obtain a first sum, and taking an average value of the first sum as the global parameter;

[0018] or,

[0019] The data volume of the local model is obtained, the data volume of the local models of the same type is added to obtain a second sum, and the global parameter is obtained according to the second sum, the data volume of the local models of the same type and the local parameters of the local models of the same type.

[0020] Optionally, sending the global parameter to the client specifically includes:

[0021] Compressing the global parameters to obtain compressed global parameters;

[0022] The compressed global parameters are encrypted to obtain the encrypted global parameters, and the encrypted global parameters are sent to the client.

[0023] On the other hand, the present invention provides a method for training a device fault detection model based on federated learning, which is applied to a client, wherein the device fault detection model includes at least one local model, and the local model is located on the client, comprising the following steps:

[0024] Acquire first training data of the local model, preprocess the first training data to obtain second training data, perform mathematical statistics and feature extraction on the second training data to obtain third features;

[0025] Inputting the third feature and the second training data into the local model to obtain an estimated health indicator of the device and features extracted by the local model, establishing a loss function according to the estimated health indicator and the health indicator label, and updating the parameters of the local model according to the loss function to obtain local parameters;

[0026] Using the third feature and / or the feature extracted by the local model as the first feature, and uploading the first feature and the local parameter to the server, so that the server executes the training method applied to the server as described above;

[0027] Receive the global parameters sent by the server, and update the local model according to the global parameters.

[0028] Optionally, preprocessing the first training data to obtain second training data specifically includes:

[0029] Performing data cleaning on the first training data to obtain cleaned first training data;

[0030] The cleaned first training data is augmented to obtain the second training data.

[0031] Optionally, the third feature includes a statistical feature and a time series feature, and the performing mathematical statistics and feature extraction on the second training data to obtain the third feature specifically includes:

[0032] Using a sliding window algorithm to segment the second training data, obtaining data within at least one sliding window;

[0033] Mathematical statistics are performed on the data in each sliding window to obtain statistical characteristics of each sliding window, and Fourier transform is performed on the second training data to obtain time series characteristics.

[0034] Optionally, after updating the local model according to the global parameters, the training method further includes:

[0035] Determining whether the local model is updated successfully;

[0036] If the local model is updated successfully, a confirmation signal is sent to the server, so that the server records the model update status according to the confirmation signal.

[0037] On the other hand, the present invention provides a training system for a device fault detection model, comprising at least one client and a server connected to at least one of the clients; wherein:

[0038] The client is used to implement the training method applied to the client as described above;

[0039] The server is used to implement the training method applied to the server as described above.

[0040] Implementation of the present invention includes the following beneficial effects: the present invention obtains the local parameters of each local model and the first feature of the training data from the client, normalizes and dimensionally transforms the first feature to obtain the second feature, performs feature matching based on the second feature to obtain local models of the same type, performs weighted aggregation on the local parameters of the local models of the same type to obtain global parameters, and sends the global parameters to the client so that the client updates the local model according to the global parameters. The features of the training data are first obtained, and the same or similar local models are found according to the features of the training data. When performing parameter aggregation, only the parameters of these models are aggregated. Different models with heterogeneous data can be well handled, and the features of these complex models can be effectively integrated to improve the accuracy and reliability of the models. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flowchart of the steps of a method for training a device fault detection model based on federated learning provided by the present invention;

[0042] Figure 2 is a flow chart of steps for obtaining the second feature provided by the present invention;

[0043] Figure 3 is a flowchart of steps for obtaining the local model of the same type provided by the present invention;

[0044] Figure 4 It is a flow chart of steps for obtaining global parameters provided by the present invention;

[0045] Figure 5 Another method for training a device fault detection model based on federated learning provided by the present invention;

[0046] Figure 6 It is a structural schematic diagram of a training system for an equipment fault detection model provided by the present invention. DETAILED DESCRIPTION

[0047] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0048] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0049] When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it is necessary to understand that the terms "first / S100", "second / S200", "third / S300", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.

[0050] It is worth noting that in the present invention, A and / or B means that the solution can be A alone, B alone, or a combination of A and B.

[0051] like Figure 1 As shown, Figure 1 The present invention provides a method for training a device fault detection model based on federated learning, which is applied to a server. The device fault detection model includes at least one local model, and includes the following steps:

[0052] S100. Obtain local parameters of each local model and a first feature of the training data from the client, normalize and dimensionally transform the first feature to obtain a second feature.

[0053] Among them, the local model is set on the client, and after the server trains the local model of the client, the local parameters of the local model are uploaded to the server.

[0054] The training data includes different types of data, such as current data, voltage data, etc.

[0055] The first feature of the training data may include but is not limited to one or more of the statistical features of different training data, the time series features and the features extracted by the local model. The statistical features may include but are not limited to the mean, maximum value, minimum value and standard deviation in each sliding window; the time series features may include but are not limited to global frequency domain features and local frequency domain features. The global frequency domain features may be the frequency domain features of the training data extracted by Fourier transform, and the local frequency domain features may be the time-frequency features extracted by wavelet transform; the features extracted by the local model may be but are not limited to the features extracted from a certain structure in the local model, such as the features generated by the hidden layer of the Transformer model.

[0056] Specifically, different values ​​of the first features of the same training data are extracted to be different. In order to better adapt to machine learning, the mean and standard deviation of all the first features of the same training data are determined, and the first features of the same training data are normalized according to the mean and standard deviation. All the normalized first features of the same training data are combined to obtain the normalized first features;

[0057] The dimensions of the first features of different local model training data are different. Therefore, the dimension of the normalized first features is transformed using feature selection and / or mapping algorithms to transform the first features of different local models into the same dimension to obtain second features with the same dimension.

[0058] S200. Perform feature matching according to the second feature to obtain the local model of the same type.

[0059] Among them, local models of the same type are local models with similar model structures or similar neuron functions.

[0060] Specifically, the similarity between two local models is measured by calculating the cosine similarity of the second features of every two local models, and local models with cosine similarity greater than a preset value are regarded as local models of the same type.

[0061] Feature matching focuses on the distribution and representation of these features, with the goal of enabling local models of different clients to aggregate parameters based on similar features, even if their original data sources and properties may be different. Feature matching makes the aggregation of local parameters meaningful, that is, the aggregated parameters correspond to similar feature extraction functions (local parameters with similar local model structures are aggregated), which can improve the generalization ability and prediction accuracy of the trained local model.

[0062] S300: Perform weighted aggregation on local parameters of the local models of the same type to obtain global parameters.

[0063] The weighted aggregation is performed using one of the following weighting methods:

[0064] 1. Add the local parameters of the same type of local models to obtain a first sum, and use the average value of the first sum as the global parameter. When calculating the first sum, the same local parameter of the same type of local models is added.

[0065] 2. Obtain the data volume of each local model, add the data volumes of local models of the same type to obtain a second sum, and obtain the global parameters based on the second sum, the data volumes of local models of the same type, and the local parameters of local models of the same type.

[0066] S400: Send the global parameters to the client, so that the client updates the local model according to the global parameters.

[0067] Specifically, after feature matching and parameter aggregation are completed, the server will update the global parameters of the previous iteration with the aggregated global parameters. This process involves assigning all the new global parameters obtained by aggregation to the corresponding layers and neurons in the model. Assume that the parameter set of the global parameters is Represented by, where m is the total number of global model parameters, each The parameters of a certain layer of the local model can be a single parameter or a set of parameters. The formula for updating the parameter set of the global parameter can be simplified as shown in formula (1):

[0068]

[0069] Among them, AggregatedParameter(.) represents the aggregated parameter. Can be determined by at least one global parameter Weighted aggregation is obtained, for example, by and Weighted aggregation.

[0070] Send the global parameters to the client. For example, send the global parameters of the same type of local model to the client where the same type of local model is located. After receiving the global parameters, the client will update the parameters of the local model.

[0071] In some embodiments, in order to increase the overhead of global parameter transmission and save communication resources, quantization, pruning or knowledge distillation techniques are used to compress the global parameters to obtain compressed global parameters.

[0072] In order to increase the security of the global parameters during transmission, encryption technology can be used to encrypt the compressed global parameters to obtain the encrypted global parameters, and the encrypted global parameters are sent to the client. The encryption technology includes but is not limited to Secure Sockets Layer (SSL) / Transport Layer Security (TLS) protocol or homomorphic encryption technology.

[0073] In some embodiments, Figure 2 As shown, Figure 2 The flowchart is a step of obtaining a second feature. Step S100 performs normalization and dimension transformation on the first feature to obtain the second feature, specifically including:

[0074] S110. Determine a mean and a standard deviation of the first feature, and normalize the first feature according to the mean and the standard deviation to obtain a normalized first feature.

[0075] Specifically, the first feature of the same local model may include different features of multiple data, such as statistical features, time series features, and features extracted by the local model of current data, statistical features, time series features, and features extracted by the local model of voltage data, etc. When calculating the second feature, the mean and standard deviation of different features of the same type of data are calculated, such as the statistical features, time series features, and features extracted by the local model of current data.

[0076] The first feature is normalized according to the mean and standard deviation to obtain the normalized first feature, as shown in formula (2):

[0077]

[0078] Among them, z is the first feature after normalization, x is the first feature before normalization, μ is the mean, and σ is the standard deviation.

[0079] S120: Perform dimension transformation on the normalized first feature using a feature selection and / or mapping algorithm to obtain a second feature with the same dimension.

[0080] The mapping algorithm includes but is not limited to principal component analysis (PCA) or feature hashing algorithm.

[0081] Specifically, although the first features of different local models are similar, their data volume, dimensions, etc. are different. When calculating the cosine similarity, the dimensions of the first features should be the same. Therefore, a feature selection method can be used to screen some features and / or a mapping algorithm can be used to convert the dimensions of the first features to the same dimension to obtain the second feature.

[0082] In some embodiments, Figure 3 As shown, Figure 3 The method is a flowchart of steps for obtaining the local model of the same type. Step S200 performs feature matching according to the second feature to obtain the local model of the same type, specifically including:

[0083] S210: Calculate the similarity of the second feature.

[0084] Specifically, the similarity of the second feature is obtained according to formula (3):

[0085]

[0086] Among them, COS(A, B) represents the similarity between A and B, wherein A represents the second feature of a local model (a feature matrix), B represents the second feature of a local model (a feature matrix), and ∥∥ represents the modulus of the matrix.

[0087] S220. The local model corresponding to the second feature whose similarity is greater than a preset value is taken as the local model of the same type.

[0088] In some embodiments, Figure 4 As shown, Figure 4 The flowchart is a step of obtaining a global parameter. Step S300 performs weighted aggregation on the local parameters of the local models of the same type to obtain a global parameter, specifically including:

[0089] S310a. Add the local parameters of the local models of the same type to obtain a first sum, and use an average value of the first sum as the global parameter.

[0090] Specifically, assume that the local parameters of the local model of the jth client are Wj = {wj1, wj2, ..., wjn}, where n is the number of parameters of the jth local model and wj1 is the first parameter of the local model. According to formula (4), for the same i-th parameter of the same type of local model, the global parameter of the i-th parameter is obtained:

[0091]

[0092] Here, K is the number of local models of the same type.

[0093] S310b. Obtain the data volume of the local model, add the data volumes of local models of the same type to obtain a second sum, and obtain the global parameter according to the second sum, the data volume of the local models of the same type, and the local parameters of the local models of the same type.

[0094] Specifically, in order to further improve the model performance, a weighted parameter aggregation strategy can be introduced to dynamically adjust the weight according to the data volume or data quality of the local model. For example, if Dj represents the data volume of the jth local model, then according to formula (5), the global parameter of the i-th parameter is

[0095]

[0096] This formula shows that the weight of the local parameters of each local model in the global parameters is proportional to its data volume. The larger the data volume of the local model, the greater the influence of its local parameters on the global parameters.

[0097] In some embodiments, Figure 5 As shown, Figure 5 Another method for training a device fault detection model based on federated learning is applied to a client, wherein the device fault detection model includes at least one local model, and includes the following steps:

[0098] S500, obtaining first training data of a local model, preprocessing the first training data to obtain second training data, performing mathematical statistics and feature extraction on the second training data to obtain third features.

[0099] Specifically, preprocessing the first training data mainly includes the following steps:

[0100] S510: Perform data cleaning on the first training data to obtain cleaned first training data.

[0101] Specifically, firstly, the first training data is cleaned and formatted to obtain cleaned first training data.

[0102] S520: Perform augmentation processing on the cleaned first training data to obtain the second training data.

[0103] Specifically, the cleaned first training data is augmented by interpolation and cropping to simulate the difference in data distribution between different local models, which can also alleviate the problem of data heterogeneity and improve the accuracy of the model.

[0104] Performing mathematical statistics and feature extraction on the second training data to obtain the third feature mainly includes the following steps:

[0105] S530: Use a sliding window algorithm to segment the second training data to obtain data within at least one sliding window.

[0106] Specifically, for the second training data with non-periodic degradation, the sliding window method is used for segmentation. The length of the sliding window is λ, and the step size is Δτ=1. For a time series data, at least one data X[τ:τ+λ] in the sliding window can be generated, and the corresponding health indicator label (for example, RUL) is set to Y[τ+λ]. The data pairs in at least one sliding window after segmentation are abbreviated as (X, Y) for training the local model.

[0107] S540, performing mathematical statistics on the data in each sliding window to obtain statistical features of each sliding window, and performing Fourier transform on the second training data to obtain time series features.

[0108] Specifically, for the data X[τ:τ+λ] in at least one sliding window, mathematical statistics are performed on the data in each sliding window respectively, for example, mathematical statistics of X[τ1:τ1+λ] are calculated to obtain the mean, maximum, minimum and standard deviation of the sliding window.

[0109] These statistical features are then used as feature inputs to the local model, helping the local model understand the changing trends and anomalies of the data in a short period of time. This processing method helps the model capture the changes in the operating status of the equipment in a short period of time, which is crucial for diagnosing equipment failures, because failures often manifest as sudden changes or anomalies in data distribution.

[0110] Perform Fourier transform on the second training data, convert the time signal into a frequency domain signal, analyze the frequency domain signal, and obtain time series features. The Fourier transform can be performed by using a traditional Fourier transform method to transform the second training data, or by adding a sliding window to perform a wavelet transform to transform the second training data to obtain time-frequency local features.

[0111] S600. Input the third feature and the second training data into the local model to obtain the estimated health indicator of the device and the features extracted by the local model, establish a loss function based on the estimated health indicator and the health indicator label, update the parameters of the local model according to the loss function, and obtain local parameters.

[0112] The third feature includes but is not limited to statistical features and time series features, and the explanations of the statistical features and time series features are the same as those in the above step S100.

[0113] Specifically, a local model with several layers, such as a Q-layer Transformers network, is constructed for the health prediction task, where Q is the number of network layers of the local model. For the local model of the j-th client, the third feature and (X, Y) are input into the local model, and the prediction function of the local model is Get the features extracted by the local model and the estimated health indicators, and establish the cross entropy loss function based on the estimated health indicators and health indicator labels Y

[0114] In order to find the optimal parameter Wj, the gradient descent method or other optimization algorithms are used to iteratively update the parameters until the stopping condition is met (such as reaching a predetermined number of iterations or the performance on the validation set no longer improves). The update rule is based on the gradient direction and the learning rate η. For the weight Wj and the bias b, the update formula is shown in formula (6):

[0115]

[0116] in, is the value of Wj in the previous iteration, is the value of bias b in the previous iteration.

[0117] S700. Use the third feature and / or the feature extracted by the local model as the first feature, and upload the first feature and the local parameter to the server, so that the server executes the training method applied to the server as described above.

[0118] Specifically, the third feature and / or the feature extracted by the local model is integrated as the first feature, and the first feature and the local parameters are uploaded to the server. When the server receives these data, it executes the previous training method applied to the server to obtain the global parameters.

[0119] S800: Receive global parameters sent by the server, and update the local model according to the global parameters.

[0120] Specifically, if the global parameters are compressed and encrypted, each client C j After receiving the encrypted global parameters, the global parameters are decrypted and the local parameters of the local model are replaced or updated according to formula (7):

[0121] Wj←D(E(W′ * )) (7)

[0122] Where D(.) represents the decryption function, E(W′ * ) represents the encrypted global parameter, W′ * Indicates the compressed global parameters.

[0123] In some embodiments, after the client receives and decrypts the global parameters, it needs to merge them with the local parameters or directly replace them. The specific strategy depends on the implementation details of federated learning. If merged, the local parameters before uploading and the received global parameters can be merged according to the weight of the local parameters and the weight of the global parameters to update the local parameters.

[0124] After the client confirms that the local model has been updated successfully, it usually sends a confirmation signal to the server so that the server can track the local model update status and prepare for the next round of federated learning iterations.

[0125] Through the above steps, the update and distribution of global parameters not only ensures the continuous optimization of the local model, but also maintains the security and privacy of client data, providing a solid foundation for the application of federated learning in power equipment fault diagnosis.

[0126] The implementation of the present invention includes the following beneficial effects: the present invention first obtains the features of the training data, finds the same or similar local models according to the features of the training data, and only aggregates the parameters of these models when performing parameter aggregation, which means that only the parameters of neurons that are similar in feature extraction function will be averaged, while those neurons with large differences maintain their uniqueness, thereby retaining the characteristics of the local model, being able to handle different models with heterogeneous data well, and being able to effectively integrate the features of these complex models to improve the accuracy and reliability of the model.

[0127] In the present invention, the server does not directly obtain the data of each local model, but obtains the parameters of the local model and some data characteristics, so as to keep the data localized, improve the privacy of local data, and realize the collaborative analysis of distributed power equipment data.

[0128] like Figure 6 As shown, Figure 6 The present invention also provides a training system for a device fault detection model, including at least one client and a server connected to at least one of the clients; wherein:

[0129] The client is used to implement the training method applied to the client as described above;

[0130] The server is used to implement the training method applied to the server described above.

[0131] Specifically, the service end may be a server, etc., and the client end may be a computer, a laptop, or a detection device installed on an electric power device. The client end and the service end may communicate using an agreed communication protocol.

[0132] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0133] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0134] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A method for training a device fault detection model based on federated learning, characterized in that: Applied to the server, the device fault detection model includes at least one local model, and the local model is located on the client, including the following steps: Acquire local parameters of each local model and a first feature of the training data from the client, perform normalization processing and dimension transformation on the first feature, and obtain a second feature; Perform feature matching according to the second feature to obtain the local model of the same type; Performing weighted aggregation on the local parameters of the local models of the same type to obtain global parameters; The global parameters are sent to the client, so that the client updates the local model according to the global parameters.

2. The training method according to claim 1, characterized in that: The step of normalizing and dimensionally transforming the first feature to obtain the second feature specifically includes: Determine a mean and a standard deviation of the first feature, and normalize the first feature according to the mean and the standard deviation to obtain a normalized first feature; The normalized first feature is transformed in dimension using a feature selection and / or mapping algorithm to obtain the second feature with the same dimension.

3. The training method according to claim 1, characterized in that: The performing feature matching according to the second feature to obtain the local model of the same type specifically includes: Calculating the similarity of the second feature; The local model corresponding to the second feature whose similarity is greater than a preset value is taken as the local model of the same type.

4. The training method according to claim 1, characterized in that: The weighted aggregation of the local parameters of the local models of the same type to obtain the global parameters specifically includes: Adding the local parameters of the local models of the same type to obtain a first sum, and taking an average value of the first sum as the global parameter; or, The data volume of the local model is obtained, the data volume of the local models of the same type is added to obtain a second sum, and the global parameter is obtained according to the second sum, the data volume of the local models of the same type and the local parameters of the local models of the same type.

5. The training method according to any one of claims 1 to 4, characterized in that: The sending of the global parameters to the client specifically includes: Compressing the global parameters to obtain compressed global parameters; The compressed global parameters are encrypted to obtain the encrypted global parameters, and the encrypted global parameters are sent to the client.

6. A method for training a device fault detection model based on federated learning, characterized in that: Applied to a client, the device fault detection model includes at least one local model, and the local model is located at the client, including the following steps: Acquire first training data of the local model, preprocess the first training data to obtain second training data, perform mathematical statistics and feature extraction on the second training data to obtain third features; Inputting the third feature and the second training data into the local model to obtain an estimated health indicator of the device and features extracted by the local model, establishing a loss function according to the estimated health indicator and the health indicator label, and updating the parameters of the local model according to the loss function to obtain local parameters; Using the third feature and / or the feature extracted by the local model as the first feature, and uploading the first feature and the local parameter to the server, so that the server executes the training method according to any one of claims 1 to 5; Receive the global parameters sent by the server, and update the local model according to the global parameters.

7. The training method according to claim 6, characterized in that: The preprocessing of the first training data to obtain the second training data specifically includes: Performing data cleaning on the first training data to obtain cleaned first training data; The cleaned first training data is augmented to obtain the second training data.

8. The training method according to claim 6, characterized in that: The third feature includes a statistical feature and a time series feature, and the third feature is obtained by performing mathematical statistics and feature extraction on the second training data, specifically including: Using a sliding window algorithm to segment the second training data, obtaining data within at least one sliding window; Mathematical statistics are performed on the data in each sliding window to obtain statistical characteristics of each sliding window, and Fourier transform is performed on the second training data to obtain time series characteristics.

9. The training method according to claim 6, characterized in that: After updating the local model according to the global parameters, the training method further includes: Determining whether the local model is updated successfully; If the local model is updated successfully, a confirmation signal is sent to the server, so that the server records the model update status according to the confirmation signal.

10. A training system for an equipment fault detection model, characterized in that: It includes at least one client and a server connected to at least one of the clients; wherein, The client is used to implement the training method according to any one of claims 6 to 9; The server is used to implement the training method described in any one of claims 1-5.