An enhanced trusted federated learning method and system based on continuous to discrete conversion
By converting the client data in federated learning from continuous to discrete and combining it with the loss function to train the model, the convergence problem and insufficient reliability of federated learning on non-independent and identically distributed data sets are solved, and the remaining usage of the machine is realized. High performance and interpretability in lifespan prediction.
Patent Information
- Application Number
- CN202410904866.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-08
AI Technical Summary
Existing federated learning methods encounter convergence problems and model drift problems on non-independent and identically distributed data sets, and lack reliability and interpretability, making it difficult to adapt to cost-sensitive applications, especially in machine remaining service life prediction. Especially the continuous output of regression tasks increases the difficulty of label distribution estimation.
Adopt an enhanced trusted federated learning method based on continuous to discrete conversion, by extracting client data and converting continuous RUL values into discrete points, using a server-side generator to aggregate local data, and combining the loss function to train the model to improve model performance and evolution Ability to predict the remaining service life of a machine using stochastic and epistemic uncertainty.
Significantly improved performance in different data settings, addressing data heterogeneity issues, improving model reliability and interpretability, and achieving state-of-the-art performance on the C-MAPSS dataset.
Smart Images

Figure CN118446288B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of federated learning and time series processing, and in particular to an enhanced trusted federated learning method and system based on continuous to discrete conversion. Background Art
[0002] Prognostic and Health Management (PHM) is essential for real-time monitoring, prediction and management of equipment and systems, allowing proactive maintenance and minimizing downtime. A key component of PHM is the remaining useful life (RUL) prediction of machines, which optimizes maintenance plans, reduces costs, improves equipment reliability and stability, and mitigates the impact of performance deterioration, malfunctions and sudden failures.
[0003] Currently, machine RUL prediction methods can be roughly divided into two categories: model-based methods and data-based methods. Model-based methods usually require in-depth expertise in industrial systems and model the relationship between sensor data and RUL. However, these methods become infeasible due to the complexity of industrial systems. Compared with model-based methods, data-based methods can be more easily deployed and used to predict RUL by collecting sufficient signal data. Thanks to the progress of deep learning, data-based methods have recently gained significant attention. Existing data-based methods are based on centralized learning and usually require large-scale datasets, which can be labor-intensive. In practical situations, it is difficult to establish such a dataset. One feasible approach is to merge the data collected by some companies and establish a standard dataset. However, due to data confidentiality and commercial privacy reasons, these datasets are usually not made public.
[0004] To address these challenges, Federated Learning (FL) has emerged as a privacy-preserving approach for training models using decentralized data from different institutions. This approach enables models to be trained on client data without direct access to the data. Among existing FL methods, FedAvg is a widely used method that updates the global model by averaging the model parameters of individual clients. However, it encounters difficulties in non-independent and identically distributed (Non-IID) datasets. In Non-IID datasets, the data distribution of local clients is different from that of global data, leading to convergence issues and model drift problems. FedNova improves the model aggregation phase of FedAvg by considering the computing power of participating clients and the size of the dataset. Specifically, it normalizes and scales local updates based on the number of local iterations. However, this approach faces the problem of identified instability.
[0005] To address the above shortcomings, we choose to integrate data-free knowledge distillation into FL. Instead of aggregating parameters of clients, knowledge distillation can be used to improve the server model by transferring knowledge from the local model to the global model without accessing local data. However, these methods usually rely on a proxy dataset, which poses practical challenges in real-world scenarios. The researchers designed a data-free knowledge distillation algorithm called FedGen to address this problem. However, FedGen is designed for classification tasks, where label distribution is used to estimate the global data distribution. In classification tasks, label distribution can be easily collected by calculating the sample counts of each class between clients. On the other hand, RUL prediction is a regression task whose expected output is continuous rather than discrete, which increases the difficulty of estimating label distribution.
[0006] Another limitation of current FL methods is their lack of reliability and interpretability, making them unsuitable for cost-sensitive applications. These models usually assume that the quality of each local model remains stable, resulting in inaccurate predictions, especially in scenarios with ambiguous features, leading to conflicting interpretations between clients. In addition, these models tend to make overconfident predictions without considering uncertainty, which poses a significant problem when local clients make inconsistent decisions due to limited information from their respective datasets, which is particularly harmful in safety-critical applications. Summary of the invention
[0007] In view of the above situation, the main purpose of the present invention is to propose an enhanced trusted federated learning method and system based on continuous to discrete conversion to solve the above technical problems.
[0008] The present invention provides an enhanced trusted federated learning method based on continuous to discrete conversion, the method comprising the following steps:
[0009] Step 1: extract the client data, generate an input data set for training the local model, and convert the continuous RUL values into discrete points with different sampling intervals through continuous discretization operations based on the acquired input data set;
[0010] Step 2: Aggregate the data of the local client using a trainable server-side generator, guide and train the server-side generator by combining the discrete points generated by the input data set and the prediction results of the local model classification network to obtain a global generator, use the global generator to perform data enhancement on the local data set to obtain a data-enhanced data set, and train the local model based on the data-enhanced data set and the global generator in combination with the loss function to improve the performance and evolution capability of the local model;
[0011] Step 3: Use the signal data in the C-MAPSS dataset and combine it with the trained local model to obtain random uncertainty and epistemic uncertainty, and predict the remaining service life of the machine by combining random uncertainty and epistemic uncertainty.
[0012] The present invention also proposes an enhanced trusted federated learning system based on continuous to discrete conversion, the system comprising:
[0013] The discretization module is used to extract the client data and generate the input data set for training the local model. Based on the acquired input data set, the continuous RUL values are converted into discrete points with different sampling intervals through continuous discretization operations.
[0014] The training module uses a trainable server-side generator to aggregate the data of the local client, guides and trains the server-side generator by combining the discrete points generated by the input data set and the prediction results of the local model classification network to obtain a global generator, uses the global generator to perform data enhancement on the local data set to obtain a data-enhanced data set, and trains the local model based on the data-enhanced data set and the global generator in combination with the loss function to improve the performance and evolution capability of the local model;
[0015] The prediction module uses the signal data in the C-MAPSS dataset and combines it with the trained local model to obtain random uncertainty and epistemic uncertainty, and predicts the remaining service life of the machine by combining random uncertainty and epistemic uncertainty.
[0016] Compared with the prior art, the present invention has the following beneficial effects:
[0017] 1. Convert the continuous RUL values into a series of discrete categories by using a specific sampling interval. This enables capturing the approximate discrete distribution of continuous RUL values, as accurately representing the continuous RUL distribution is challenging.
[0018] 2. We train a global generator to aggregate local customer information according to discrete label distribution and broadcast it to local customers as a data augmentation tool with a global data view to address data heterogeneity.
[0019] 3. Extensive experiments are conducted on the C-MAPSS dataset, where FedCov significantly improves the baseline and achieves new state-of-the-art performance in different data settings.
[0020] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or learned through embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1A flowchart of an enhanced trusted federated learning method based on continuous to discrete conversion proposed by the present invention;
[0022] Figure 2 The present invention proposes an overall framework for an enhanced trusted federated learning system based on continuous-to-discrete conversion. DETAILED DESCRIPTION
[0023] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0024] These and other aspects of the embodiments of the present invention will be apparent with reference to the following description and accompanying drawings. In these descriptions and accompanying drawings, some specific implementations of the embodiments of the present invention are specifically disclosed to represent some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited thereto.
[0025] See also Figure 1 The embodiment of the present invention provides an enhanced trusted federated learning method based on continuous to discrete conversion, the method comprising the following steps:
[0026] Step 1: extract the client data, generate an input data set for training the local model, and convert the continuous RUL values into discrete points with different sampling intervals through continuous discretization operations based on the acquired input data set;
[0027] In the above scheme, the client data is extracted to generate the input data set for training the local model. The input data set is expressed as:
[0028] ;
[0029] in, For local datasets, for Client Input signal, For the first Client RUL value.
[0030] In the above scheme, the continuous RUL values are converted into discrete points with different sampling intervals through continuous discretization operations based on the acquired input data set. The relationship between the discrete point generation process is as follows:
[0031] ;
[0032] in, and For continuous RUL values in the interval The minimum and maximum values in To generate a set of discrete points, is the sampling interval.
[0033] Step 2: Aggregate the data of the local client using a trainable server-side generator, guide and train the server-side generator by combining the discrete points generated by the input data set and the prediction results of the local model classification network to obtain a global generator, use the global generator to perform data enhancement on the local data set to obtain a data-enhanced data set, and train the local model based on the data-enhanced data set and the global generator in combination with the loss function to improve the performance and evolution capability of the local model;
[0034] In the above scheme, a trainable server generator is used to aggregate the data of the local client, and the server generator is trained on the latent space by converting the input data set into discrete points with different sampling intervals, combined with the guidance of the prediction results of the local model classification network, to obtain a global generator. The corresponding process has the following relationship:
[0035] ;
[0036] in, is the real RUL value, is the feature generated in the latent space, is the global generator;
[0037] Using the given features generated in the latent space, the conditional probability of the RUL value is calculated. The corresponding process has the following relationship:
[0038] ;
[0039] in, is the optimal solution, is the maximum variable value of the expression, The generator is a function that maps from RUL values to the latent feature space. is the expectation operator, which means taking the average of the prior distribution of the true RUL value; is the expectation operator, which means averaging the spatial distribution of latent space features under the condition of a given true RUL value; is the logarithmic posterior probability, which represents the natural logarithm of the probability of observing the true RUL value under the conditions of the given latent feature space;
[0040] In the above scheme, the global generator is used to perform data augmentation on the local data set to obtain a data augmented data set, and the local model is trained based on the data augmented data set and the global generator. The corresponding process has the following relationship:
[0041] ;
[0042] ;
[0043] in, is the total number of clients, For the The parameters of the client model, is the probability distribution of the true RUL value, For the A client dataset, is the indicator function, is the training data, is the function mapping from training data to true RUL value, is the approximate probability distribution of the true RUL value, is an approximation of the logarithmic posterior probability, is the true RUL given the client model parameters and the features generated in the latent space;
[0044] In the above scheme, when the local model is trained based on the data augmented dataset and the global generator, the parameter update process of the local model is guided by combining the loss function. The loss function in the process is:
[0045] Minimize the negative log-likelihood loss function, expressed as:
[0046] ;
[0047] in, are local model parameters, is the translation parameter, is the scale parameter, is the characteristic factor, is the skew factor, is the true probability distribution of the category, is the gamma function, is the output of the local model, is the shape parameter of the gamma distribution, To minimize the negative log-likelihood loss function, Represents the output of the model prediction;
[0048] Uncertainty loss function, expressed as:
[0049] ;
[0050] in, is the regularization parameter, is the uncertain loss function, is the regularization term;
[0051] The mean square error loss function is expressed as:
[0052] ;
[0053] in, For the The actual RUL value of samples, is determined by the model parameters The predicted RUL value of samples, is the mean square error loss, Parameters used for mean square error;
[0054] The total loss function is obtained as follows:
[0055] ;
[0056] in, To obtain the total loss.
[0057] Step 3: Use the signal data in the C-MAPSS dataset and combine it with the trained local model to obtain random uncertainty and epistemic uncertainty, and predict the remaining service life of the machine by combining random uncertainty and epistemic uncertainty.
[0058] In the above scheme, the specific steps of using the signal data in the C-MAPSS dataset and combining it with the trained local model to obtain random uncertainty and epistemic uncertainty are as follows:
[0059] The likelihood function of the parameter set is constructed based on the signal data in the C-MAPSS data set. The relationship in the process is:
[0060] ;
[0061] in, For sample The observation data, For the The RUL value of the observed data is is the C-MAPSS dataset, is the number of samples, is the joint probability density function of the observed RUL values under the given trained local model parameters and dataset;
[0062] Based on the assumption that the target RUL value comes from a Gaussian distribution, the likelihood function relationship of RUL is:
[0063] ;
[0064] in, is the mean, is a normal distribution, is the variance, is the joint probability density function of all observations under the conditions of given local model parameters, signal data set and fixed variance;
[0065] The higher-order conjugate prior of the Gaussian distribution has the following relationship:
[0066] ;
[0067] in, is the translation parameter of the inverse gamma distribution, is the scale parameter of the inverse gamma distribution;
[0068] Using random uncertainty to represent the inherent variability in the predictions of the trained local model, the relationship between the process is:
[0069] ;
[0070] in, To find the mean;
[0071] Epistemic uncertainty is used to represent the uncertainty of the prediction of the trained local model. The relationship between the process is:
[0072] ;
[0073] in, To find the variance.
[0074] See also Figure 2 The embodiment of the present invention further provides an enhanced trusted federated learning system based on continuous to discrete conversion, the system comprising:
[0075] The discretization module is used to extract the client data and generate the input data set for training the local model. Based on the acquired input data set, the continuous RUL values are converted into discrete points with different sampling intervals through continuous discretization operations.
[0076] The training module uses a trainable server-side generator to aggregate the data of the local client, guides and trains the server-side generator by combining the discrete points generated by the input data set and the prediction results of the local model classification network to obtain a global generator, uses the global generator to perform data enhancement on the local data set to obtain a data-enhanced data set, and trains the local model based on the data-enhanced data set and the global generator in combination with the loss function to improve the performance and evolution capability of the local model;
[0077] The prediction module uses the signal data in the C-MAPSS dataset and combines it with the trained local model to obtain random uncertainty and epistemic uncertainty, and predicts the remaining service life of the machine by combining random uncertainty and epistemic uncertainty.
[0078] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0079] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0080] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. An enhanced trusted federated learning method based on continuous to discrete conversion, characterized in that: The method comprises the following steps: Step 1: extract the client data, generate an input data set for training the local model, and convert the continuous RUL values into discrete points with different sampling intervals through continuous discretization operations based on the acquired input data set; Step 2: Aggregate the data of the local client using a trainable server-side generator, guide and train the server-side generator by combining the discrete points generated by the input data set and the prediction results of the local model classification network to obtain a global generator, use the global generator to perform data enhancement on the local data set to obtain a data-enhanced data set, and train the local model based on the data-enhanced data set and the global generator in combination with the loss function to improve the performance and evolution capability of the local model; Step 3: Using the signal data in the C-MAPSS dataset and the trained local model, we can obtain random uncertainty and epistemic uncertainty, and predict the remaining service life of the machine by combining random uncertainty and epistemic uncertainty. In step 3, the specific steps of obtaining random uncertainty and epistemic uncertainty by using the signal data in the C-MAPSS dataset and combining it with the trained local model are as follows: The likelihood function of the parameter set is constructed based on the signal data in the C-MAPSS data set. The relationship in the process is: ; in, For sample The observation data, For the The RUL value of the observed data is is the C-MAPSS dataset, is the number of samples, is the joint probability density function of the observed RUL values under the given trained local model parameters and dataset; Based on the assumption that the target RUL value comes from a Gaussian distribution, the likelihood function relationship of RUL is: ; in, is the mean, is a normal distribution, is the variance, is the joint probability density function of all observations under the conditions of given local model parameters, signal data set and fixed variance; The higher-order conjugate prior of the Gaussian distribution has the following relationship: ; in, is the translation parameter of the inverse gamma distribution, is the scale parameter of the inverse gamma distribution; Using random uncertainty to represent the inherent variability in the predictions of the trained local model, the relationship between the process is: ; in, To find the mean; Epistemic uncertainty is used to represent the uncertainty of the prediction of the trained local model. The relationship between the process is: ; in, To find the variance.
2. According to claim 1, the enhanced trusted federated learning method based on continuous to discrete conversion is characterized in that: In step 1, the client data is extracted to generate an input data set for training the local model. The input data set is represented as: ; in, For local datasets, for Client Input signal, For the first Client RUL value.
3. The method for enhanced trusted federated learning based on continuous-to-discrete conversion according to claim 2, characterized in that: In step 1, the continuous RUL values are converted into discrete points with different sampling intervals through continuous discretization operations based on the acquired input data set. The relationship in the process of generating discrete points is as follows: ; in, and For continuous RUL values in the interval The minimum and maximum values in To generate a set of discrete points, is the sampling interval.
4. The method for enhanced trusted federated learning based on continuous-to-discrete conversion according to claim 3 is characterized in that: In step 2, a trainable server generator is used to aggregate the data of the local client, and the server generator is trained in the latent space by converting the input data set into discrete points with different sampling intervals, combined with the guidance of the prediction results of the local model classification network, to obtain a global generator. The corresponding process has the following relationship: ; in, is the real RUL value, is the feature generated in the latent space, is the global generator; Using the given features generated in the latent space, the conditional probability of the RUL value is calculated. The corresponding process has the following relationship: ; in, is the optimal solution, is the maximum variable value of the expression, The generator is a function that maps from RUL values to the latent feature space. is the expectation operator, which means taking the average of the prior distribution of the true RUL value; is the expectation operator, which means averaging the spatial distribution of latent space features under the condition of a given true RUL value; is the logarithmic posterior probability, which represents the natural logarithm of the probability of observing the true RUL value under the condition of the given latent feature space.
5. The method for enhanced trusted federated learning based on continuous-to-discrete conversion according to claim 4, characterized in that: In step 2, the local data set is data enhanced by using the global generator to obtain a data-enhanced data set, and the local model is trained based on the data-enhanced data set and the global generator. The corresponding process has the following relationship: ; ; in, is the total number of clients, For the The parameters of the client model, is the probability distribution of the true RUL value, For the A client dataset, is the indicator function, is the training data, is the function mapping from training data to true RUL value, is the approximate probability distribution of the true RUL value, is an approximation of the logarithmic posterior probability, is the true RUL given the client model parameters and the features generated in the latent space.
6. The method for enhanced trusted federated learning based on continuous-to-discrete conversion according to claim 5, characterized in that: In step 2, when the local model is trained based on the data set after data augmentation and the global generator, the parameter update process of the local model is guided by combining the loss function, and the loss function in the process is: Minimize the negative log-likelihood loss function, expressed as: ; in, are local model parameters, is the translation parameter, is the scale parameter, is the characteristic factor, is the skew factor, is the true probability distribution of the category, is the gamma function, is the output of the local model, is the shape parameter of the gamma distribution, To minimize the negative log-likelihood loss function, Represents the output of the model prediction; Uncertainty loss function, expressed as: ; in, is the regularization parameter, is the uncertain loss function, is the regularization term; The mean square error loss function is expressed as: ; in, For the The actual RUL value of samples, is determined by the model parameters The predicted RUL value of samples, is the mean square error loss, Parameters used for mean square error; The total loss function is obtained as follows: ; in, To obtain the total loss.
7. An enhanced trusted federated learning system based on continuous to discrete conversion, characterized in that: The system applies an enhanced trusted federated learning method based on continuous-to-discrete conversion as described in any one of claims 1 to 6, and the system includes: The discretization module is used to extract the client data and generate the input data set for training the local model. Based on the acquired input data set, the continuous RUL values are converted into discrete points with different sampling intervals through continuous discretization operations. The training module uses a trainable server-side generator to aggregate the data of the local client, guides and trains the server-side generator by combining the discrete points generated by the input data set and the prediction results of the local model classification network to obtain a global generator, uses the global generator to perform data enhancement on the local data set to obtain a data-enhanced data set, and trains the local model based on the data-enhanced data set and the global generator in combination with the loss function to improve the performance and evolution capability of the local model; The prediction module uses the signal data in the C-MAPSS dataset and combines it with the trained local model to obtain random uncertainty and epistemic uncertainty, and predicts the remaining service life of the machine by combining random uncertainty and epistemic uncertainty.
