Life prediction model establishment and prediction method and device, and electronic equipment
By using time-domain convolutional network DAG learning and continuous optimization methods in deep learning to integrate private cloud data, combined with related alignment domain adaptation methods, a lifespan prediction model is generated, which solves the accuracy problem of the prediction model in the case of attacks and data scarcity. High-precision life prediction and data security sharing are achieved.
Patent Information
- Application Number
- CN202410297928.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2024-08-23
AI Technical Summary
In deep learning, it is difficult for prediction models to ensure prediction accuracy when they are attacked and training data is scarce. Especially when data is heterogeneous and non-identically distributed among enterprises and privacy awareness increases, how can we avoid exposing private data? Achieving high-precision life prediction under these conditions becomes a challenge.
By obtaining the local model on the private cloud for time-domain convolutional network DAG learning, integration and optimization, combined with continuous optimization methods and related alignment field adaptation methods, the feature distribution is adjusted to generate the final lifespan prediction model to ensure data privacy and security.
It realizes the comprehensive utilization of private cloud data without exposing private data, reduces the impact of data attacks, improves prediction accuracy, provides scientific basis and decision support, and is suitable for inter-enterprise data faced with data islands and heterogeneous non-identical distribution. environment.
Smart Images

Figure CN118536254A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of deep learning technology, and in particular to a life prediction model establishment and prediction method, device and electronic equipment. Background Art
[0002] In the field of Remaining Useful Life (RUL) prediction using deep learning, rich and high-quality data is the cornerstone and a key factor in promoting model learning and generalization capabilities. However, with the increasing awareness of corporate privacy and potential conflicts of interest between companies, internal corporate data is not allowed to be exposed to the outside world. In addition, due to the different businesses between companies, their data is not independent and identically distributed, and it is difficult to learn useful knowledge expressions from scattered data, which brings great difficulties to model training.
[0003] In today's digital age, the production materials within enterprises are stored through the network, which is extremely vulnerable to attacks by network hackers, bringing great uncertainty to the production safety of enterprises. Therefore, how to ensure the prediction accuracy of the model when the model is attacked and the training data is scarce, and then provide effective decision support for actual production, is an urgent problem to be solved. Summary of the invention
[0004] In view of this, it is necessary to provide a life prediction model establishment and prediction method, device and electronic equipment to solve the problem that the prediction model is difficult to ensure prediction accuracy when it is attacked and training data is scarce.
[0005] In order to solve the above problems, the present invention provides a method for establishing a life prediction model, comprising:
[0006] Acquire a plurality of first partial models uploaded by the private cloud, wherein the plurality of first partial models are generated by the private cloud based on a DAG learning method of a time domain convolutional network;
[0007] Integrate the plurality of first local models based on the public cloud to obtain a first prediction model;
[0008] Optimizing the global structure of the first prediction model based on a continuous optimization method to obtain a second prediction model;
[0009] The feature distribution of the second prediction model is adjusted based on the correlation alignment domain adaptive method to obtain the final life prediction model.
[0010] In a possible implementation, the obtaining of a plurality of first partial models uploaded by the private cloud includes:
[0011] Learning local data based on the DAG learning method on several private clouds to obtain several third prediction models;
[0012] The first layer parameters of each of the third prediction models are extracted to obtain the plurality of first local models.
[0013] In a possible implementation, the above DAG-based learning method is used to learn local data to obtain several third prediction models, including:
[0014] Reconstruct local data based on time-domain convolutional networks on several private clouds;
[0015] Determining a loss function, constraints, and hypervariables for the DAG learning method;
[0016] Establishing the plurality of third prediction models based on the local data and the first formula;
[0017] Wherein, the first formula includes:
[0018]
[0019]
[0020] Among them, θ represents the parameters of all first prediction models, n k represents the sample size of local data in the kth private cloud, X k represents the local data in the kth private cloud, tcn(X k ; θ) represents the reconstruction of the original data using the time domain convolutional network, W represents the weighted adjacency matrix between the variables in the first prediction model, is a continuous equality constraint, which allows the use of continuous optimization methods to learn the DAG.
[0021] In a possible implementation, integrating the first local model based on the public cloud to obtain the second prediction model includes:
[0022] Step 1: Aggregate each of the first local models based on a second formula to obtain a first global model;
[0023] Step 2: Determine whether the current global acyclic constraint item reaches a preset threshold. If not, proceed to step 3; if reached, proceed to step 4.
[0024] Step 3: Replace the first local model with the first global model, optimize the third prediction model based on a third formula, and return to step 1 until the current global acyclic constraint item reaches a preset threshold;
[0025] Step 4: using the first global model as the first prediction model;
[0026] Wherein, the second formula includes:
[0027]
[0028]
[0029] Among them, θ (1) represents the first global model; Represents the first local model in the k-th private cloud.
[0030] The third formula includes:
[0031]
[0032]
[0033] in, Represents a penalty term.
[0034] In a possible implementation, optimizing the global structure of the first prediction model based on a continuous optimization method to obtain a second prediction model includes:
[0035] Obtaining a partial derivative of each variable in the first prediction model to obtain a first weight of each edge in the first prediction model;
[0036] The edges whose first weights are less than a preset weight threshold are pruned to obtain the second prediction model.
[0037] In a possible implementation, the method of adjusting the feature distribution of the second prediction model based on the correlation alignment domain adaptive method to obtain the final life prediction model includes:
[0038] Calculating a loss function of the second prediction model based on a correlation alignment domain adaptation method;
[0039] The feature distribution of the second prediction model is adjusted based on the loss function to obtain the life prediction model.
[0040] The present invention also provides a life prediction method, comprising:
[0041] Acquiring first target data;
[0042] Inputting the first target data into a life prediction model to obtain a prediction result;
[0043] Wherein, the life prediction model is constructed according to the life prediction model establishment method described in any one of the above method items.
[0044] The present invention also provides a life prediction device, comprising:
[0045] A data acquisition module, used for acquiring first target data;
[0046] A prediction module, used for inputting the first target data into a life prediction model to obtain a prediction result;
[0047] The life prediction model is constructed according to the life prediction model establishment method described in any one of the above method items.
[0048] The present invention also provides an electronic device, comprising:
[0049] Memory, used to store programs;
[0050] A processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the life prediction model establishment method in the above-mentioned method items, or the steps in the life prediction method in the above-mentioned method items.
[0051] The beneficial effects of the present invention are as follows: the method for establishing a life prediction model provided by the present invention first extracts only local information from each causal relationship diagram and transmits it to the public cloud for integration and optimization, so that the production data of each private cloud can be comprehensively utilized without exposing private data and insufficient data samples, so as to achieve full data sharing and high-precision life prediction. In addition, the present invention also adjusts the characteristic distribution of data through a related alignment field adaptive method, and can minimize the impact of the "attack" on the model when the prediction model is attacked (the input data of the model is tampered with). Under the premise of ensuring data privacy and security, a prediction model for the remaining service life of equipment is established, which can fully share the data of each private cloud, effectively solve the problem of excessive differences in data dispersion and distribution, and have a certain defense capability against data attacks, thereby providing a scientific basis and decision-making support for the health management of machinery and equipment, and fully considering the fact that there are data islands between enterprises in reality, the data between enterprises may be heterogeneous and non-identical, and the model will be attacked by data tampering, thereby affecting the prediction effect of the model, and solving the problem that the prediction model is difficult to ensure the prediction accuracy when it is attacked and the training data is scarce. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A method flow chart of an embodiment of a method for establishing a life prediction model provided by the present invention;
[0053] Figure 2 for Figure 1 A method flow chart of step S101 in an embodiment;
[0054] Figure 3 for Figure 2A method flow chart of an embodiment of step S201;
[0055] Figure 4 for Figure 1 A method flow chart of an embodiment of step S102;
[0056] Figure 5 for Figure 1 A method flow chart of an embodiment of step S103;
[0057] Figure 6 for Figure 1 A method flow chart of an embodiment of step S104;
[0058] Figure 7 A method flow chart of an embodiment of a life prediction method provided by the present invention;
[0059] Figure 8 A schematic diagram of the structure of an embodiment of a life prediction device provided by the present invention;
[0060] Fig. 9 A schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0062] In the description of the embodiments of the present invention, unless otherwise specified, "multiple" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" may represent three situations: A exists alone, A and B exist at the same time, and B exists alone.
[0063] The descriptions of "first", "second", etc. involved in the embodiments of the present invention are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0064] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment 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 of 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.
[0065] A specific embodiment of the present invention, as Figure 1 As shown, a method for establishing a life prediction model is disclosed, comprising:
[0066] Step S101: obtaining a plurality of first partial models uploaded by a private cloud;
[0067] Step S102: Integrate the first local model based on the public cloud to obtain a first prediction model;
[0068] Step S103: optimizing the global structure of the first prediction model based on a continuous optimization method to obtain a second prediction model;
[0069] Step S104: adjusting the feature distribution of the second prediction model based on the relevant alignment domain adaptive method to obtain a final life prediction model.
[0070] It should be noted that, in this embodiment, each prediction model may be a cause-effect relationship diagram, and the execution entity of this embodiment is a public cloud.
[0071] It can be understood that in this embodiment, the DAG learning method selected by the present invention is a DAG learning method based on continuous optimization (NOTEARS-TCN). NOTEARS-TCN approximates the causal model through a temporal convolutional network, and represents the coupling relationship between the variables in the causal graph through the partial derivatives of the model. The temporal convolutional neural network (TCN) can process time series data efficiently due to its parallelism, and has a larger and more flexible receptive field than the traditional convolutional neural network (CNN), which can better capture the long-term dependencies in the time series.
[0072] In addition, when facing a "data tampering attack", for example, the attacker adds noise, deletes data points, etc., the distribution of the original data will change to a certain extent. Therefore, this embodiment uses the Correlation Alignment (CORAL) loss function to change the characteristic distribution of the attacked private cloud data to make it more similar to the data distribution of other private clouds that have not been attacked, thereby reducing the adverse effects of the "attack" on the model prediction effect.
[0073] Compared with the prior art, the method for establishing a life prediction model provided by the present invention first extracts only local information from each causal relationship diagram and transmits it to the public cloud for integration and optimization, so that the production data of each private cloud can be comprehensively utilized without exposing private data and insufficient data samples, so as to achieve full data sharing and high-precision life prediction. In addition, the present invention also adjusts the characteristic distribution of data through a related alignment field adaptive method, and can minimize the impact of the "attack" on the model when the prediction model is attacked (the input data of the model is tampered). Under the premise of ensuring data privacy and security, a prediction model for the remaining service life of equipment is established, which can fully share the data of each private cloud, effectively solve the problem of excessive differences in data dispersion and distribution, and have a certain defense capability against data attacks, thereby providing a scientific basis and decision-making support for the health management of machinery and equipment, and fully considering the fact that there are data islands between enterprises in reality, the data between enterprises may be heterogeneous and non-identical, and the model will be attacked by data tampering, thereby affecting the prediction effect of the model, and solving the problem that the prediction model is difficult to ensure the prediction accuracy when it is attacked and the training data is scarce.
[0074] In one possible implementation, Figure 2 As shown, step S101 includes:
[0075] Step S201: learning local data based on the DAG learning method on several private clouds to obtain several third prediction models;
[0076] Step S202: extracting the first layer parameters of each third prediction model to obtain a plurality of first local models.
[0077] In one possible implementation, Figure 3 As shown, step S201 includes:
[0078] Step S301: reconstructing local data based on a time domain convolutional network;
[0079] Step S302: Determine the loss function, constraints and hypervariables of the DAG learning method;
[0080] Step S303: establishing a third prediction model on a plurality of private clouds based on local data and the first formula;
[0081] Among them, the first formula includes:
[0082]
[0083] In formula (1), θ represents the parameters of all first prediction models, n k represents the sample size of local data in the kth private cloud, X krepresents the local data in the kth private cloud, tcn(X k ; θ) represents the reconstruction of the original data using the time domain convolutional network, W represents the weighted adjacency matrix between the variables in the first prediction model, is a continuous equality constraint, which allows the use of continuous optimization methods to learn the DAG.
[0084] Specifically, NOTEARS-TCN defines a causal generative model for each variable:
[0085] f={f1,...,f i} (2)
[0086] Obviously, f is true if and only if there is no edge connecting the two nodes in the true causal graph. i The partial derivative with respect to this variable is equal to 0. Therefore, NOTEARS-TCN uses the partial derivative of f to represent the weighted adjacency matrix between variables:
[0087]
[0088] Used to represent the weight information of each edge in the causal graph.
[0089] The parameters of all models are expressed as follows:
[0090]
[0091] In formula (4), represents the hth layer parameters of the dth model. This embodiment uses the first layer parameters of the model To represent the weight matrix, that is This embodiment replaces the original discrete constraint G∈DAGs with a continuous equality constraint:
[0092]
[0093] In addition, this embodiment reconstructs the original data through a time domain convolutional network, namely tcn(X k ; θ), the reconstruction loss can be minimized while ensuring the constraints:
[0094]
[0095]
[0096] In one possible implementation, Figure 4 As shown, step S102 includes:
[0097] Step S401: Aggregate each first local model based on the second formula to obtain a first global model;
[0098] Step S402: Determine whether the current global acyclic constraint item reaches a preset threshold, if not, proceed to step S403; if reached, proceed to step S404;
[0099] Step S403: replacing the first local model in the third prediction model with the first global model, optimizing the third prediction model based on the third formula, and returning to step S401 until the current global acyclic constraint item reaches a preset threshold;
[0100] Step S404: using the first global model as the first prediction model;
[0101] Wherein, the second formula includes:
[0102]
[0103] Among them, θ (1) represents the first global model; Represents the first local model.
[0104] The third formula includes:
[0105]
[0106] in, Represents a penalty term.
[0107] It should be noted that, for the purpose of privacy protection, local data X k Exposure is not allowed. The public cloud model can only obtain the global parameter θ by aggregating local parameters. Since the data of each private cloud is heterogeneous and non-identically distributed, the local parameters may learn the opposite causal relationship from the data, and may even violate the causal acyclicity of the global model. Therefore, this embodiment uses formulas (7)-(8) as the optimization formula to aggregate local parameters while ensuring the acyclicity of the global matrix.
[0108] Since the model only aggregates the first layer parameters of the private cloud model This allows the local model in the private cloud to learn different model parameters from heterogeneous data while ensuring the consistency of the first-layer parameters related to the causal graph, while also reducing communication pressure.
[0109] Then, in step S403, the public cloud model converts the global parameter θ (1) Distribute to each private cloud model and replace its first layer parameters And optimize according to the optimization formula given in formula (8).
[0110] In formula (8), by adding a penalty term in local optimization Making the first-layer parameters of each private cloud's local model more similar to the first-layer parameters of the global model is conducive to the convergence of the private cloud model and the learning of a unified causal graph by the public cloud model. Private clouds and public clouds pass parameters to each other until the global acyclic constraint term is small enough.
[0111] The joint optimization goal of the above optimization process is:
[0112]
[0113] In formula (9), represents all parameters except the first layer parameters in the kth private cloud model. At this time, when the data of each private cloud is homogeneous, the parameters of each private cloud are the same or very similar, the joint optimization objective can be simplified to the following form:
[0114]
[0115] In another case, the data of each private cloud is heterogeneous and non-identically distributed. In this case, the joint optimization objective allows each private cloud model to learn different local parameters. And optimize it into the global parameter θ of the unified public cloud model (1) In layman's terms, such an optimization goal is applicable to both homogeneous data and heterogeneous and non-identically distributed data. When facing possible "data tampering attacks", it can also mitigate the adverse effects of the "attack" to a certain extent.
[0116] In one possible implementation, Figure 5 As shown, step S103 includes:
[0117] Step S501: Obtain the partial derivative of each variable in the first prediction model to obtain the first weight of each edge in the first prediction model;
[0118] Step S502: trim the edges whose first weights are less than a preset weight threshold to obtain a second prediction model.
[0119] It is understandable that there may be some redundant edges in the final global DAG, that is, unnecessary causal connections in the model. The existence of these edges increases the complexity of the global DAG, reduces the interpretability, and makes the learned causal relationship inaccurate. This paper obtains the weight matrix from the public cloud global model through partial derivatives and prunes the edges with weights less than 0.3 to obtain the final global DAG.
[0120] In one possible implementation, Figure 6 As shown, step S104 includes:
[0121] Step S601: Calculating the loss function of the second prediction model based on the relevant alignment domain adaptive method;
[0122] Step S602: adjusting the feature distribution of the second prediction model based on the loss function to obtain a life prediction model.
[0123] Specifically, in step S601, the loss function is as follows:
[0124]
[0125] In formula (11), C s and C t They represent the covariance matrices of the private cloud data features that have not been attacked and the private cloud data features that have been attacked, respectively.
[0126] On the other hand, Figure 7 As shown, the present invention also provides a life prediction method, comprising:
[0127] Step S701: Acquire first target data;
[0128] Step S702: Input the first target data into the prediction model to obtain a prediction result.
[0129] During implementation, in step S702, the prediction model is constructed according to the life prediction model establishment method described in the above-mentioned implementation methods.
[0130] During implementation, the data of the target task is imported into the model after multivariate dynamic causal inference and cross-domain collaborative adaptive adjustment. The model outputs the prediction results to obtain the remaining service life of the equipment, thereby providing a decision-making basis for the preventive maintenance of the equipment.
[0131] On the other hand, Figure 8 As shown, the present invention also provides a life prediction device 80, comprising:
[0132] The data acquisition module 810 is used to acquire first target data;
[0133] The prediction module 820 is used to input the first target data into the prediction model to obtain a prediction result;
[0134] Among them, the life prediction model is constructed according to the life prediction model establishment method described in the above-mentioned implementation methods.
[0135] like Fig. 9 As shown, the present invention also provides an electronic device 90. The electronic device 90 includes a processor 910, a memory 920 and a display 930. Fig. 9Only some of the components of the electronic device 90 are shown, but it should be understood that implementation of all of the shown components is not required, and more or fewer components may be implemented instead.
[0136] In some embodiments, the processor 910 can be a central processing unit (CPU), a microprocessor or other data processing chip, which is used to run the program code or process data stored in the memory 920, such as the pod propulsion parameter optimization method of the present invention.
[0137] In some embodiments, the processor 910 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 910 may be local or remote. In some embodiments, the processor 910 may be implemented in a cloud platform. In one embodiment, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.
[0138] In some embodiments, the memory 920 may be an internal storage unit of the electronic device 90, such as a hard disk or memory of the electronic device 90. In other embodiments, the memory 920 may also be an external storage device of the electronic device 90, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 90.
[0139] Furthermore, the memory 920 may include both an internal storage unit of the electronic device 90 and an external storage device. The memory 920 is used to store application software installed in the electronic device 90 and various data.
[0140] In some embodiments, the display 930 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 930 is used to display information on the electronic device 90 and to display a visual user interface. The components 610-630 of the electronic device 90 communicate with each other via a system bus.
[0141] In one embodiment, when the processor 910 executes the life prediction model building program in the memory 920, the following steps may be implemented:
[0142] Acquire several first partial models uploaded by the private cloud, wherein the several first partial models are generated by the private cloud based on a DAG learning method of a time-domain convolutional network;
[0143] Integrate the plurality of first local models based on the public cloud to obtain a first prediction model;
[0144] Optimizing the global structure of the first prediction model based on a continuous optimization method to obtain a second prediction model;
[0145] The feature distribution of the second prediction model is adjusted based on the correlation alignment domain adaptive method to obtain the final life prediction model.
[0146] In one embodiment, when the processor 910 executes the life prediction program in the memory 920, the following steps may be implemented:
[0147] Acquiring first target data;
[0148] The first target data is input into the prediction model to obtain a prediction result.
[0149] It should be understood that: when the processor 910 executes the prediction model building program and / or prediction program in the memory 920, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiments above.
[0150] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 90 mentioned, and the electronic device 90 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 90 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0151] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0152] The above is a detailed introduction to the establishment of the life prediction model and the prediction method, device and electronic device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for establishing a life prediction model, characterized in that: include: Acquire a plurality of first partial models uploaded by the private cloud, wherein the plurality of first partial models are generated by the private cloud based on a DAG learning method of a time domain convolutional network; Integrate the plurality of first local models based on the public cloud to obtain a first prediction model; Optimizing the global structure of the first prediction model based on a continuous optimization method to obtain a second prediction model; The feature distribution of the second prediction model is adjusted based on the correlation alignment domain adaptive method to obtain the final life prediction model.
2. The prediction model establishment method according to claim 1, characterized in that: The obtaining of a plurality of first partial models uploaded by the private cloud includes: Learning local data based on the DAG learning method on several private clouds to obtain several third prediction models; The first layer parameters of each of the third prediction models are extracted to obtain the plurality of first local models.
3. The prediction model establishment method according to claim 1, characterized in that: The DAG-based learning method is used to learn local data to obtain several third prediction models, including: Reconstruct local data based on time-domain convolutional networks on several private clouds; Determining a loss function, constraints, and hypervariables for the DAG learning method; Establishing the plurality of third prediction models based on the local data and the first formula; Wherein, the first formula includes: Among them, θ represents the parameters of all first prediction models, n k represents the sample size of local data in the kth private cloud, X k represents the local data in the kth private cloud, tcn(X k ; θ) represents the reconstruction of the original data using the time domain convolutional network, W represents the weighted adjacency matrix between the variables in the first prediction model, is a continuous equality constraint, which allows the use of continuous optimization methods to learn the DAG.
4. The prediction model establishment method according to claim 3, characterized in that: The integrating the first local model based on the public cloud to obtain a first prediction model includes: Step 1: Aggregate each of the first local models based on a second formula to obtain a first global model; Step 2: Determine whether the current global acyclic constraint item reaches a preset threshold. If not, proceed to step 3; if reached, proceed to step 4. Step 3: replacing the first local model with the first global model, optimizing the third prediction model based on a third formula, and returning to step 1 until the current global acyclic constraint item reaches a preset threshold; Step 4: using the first global model as the first prediction model; Wherein, the second formula includes: Among them, θ (1) represents the first global model; represents the first local model in the k-th private cloud; The third formula includes: in, Represents a penalty term.
5. The prediction model establishment method according to claim 1, characterized in that: The method of optimizing the global structure of the first prediction model based on the continuous optimization method to obtain the second prediction model includes: Obtaining a partial derivative of each variable in the first prediction model to obtain a first weight of each edge in the first prediction model; The edges whose first weights are less than a preset weight threshold are pruned to obtain the second prediction model.
6. The prediction model establishment method according to claim 1, characterized in that: The method of adjusting the feature distribution of the second prediction model based on the correlation alignment domain adaptive method to obtain the final life prediction model includes: Calculating a loss function of the second prediction model based on a correlation alignment domain adaptation method; The feature distribution of the second prediction model is adjusted based on the loss function to obtain the life prediction model.
7. A life prediction method, characterized in that: include: Acquiring first target data; Inputting the first target data into a life prediction model to obtain a prediction result; Wherein, the life prediction model is constructed according to the life prediction model establishment method according to any one of claims 1-6.
8. A life prediction device, characterized in that: include: A data acquisition module, used for acquiring first target data; A prediction module, used for inputting the first target data into a life prediction model to obtain a prediction result; Wherein, the life prediction model is constructed according to the life prediction model establishment method according to any one of claims 1-5.
9. An electronic device, characterized in that: include: Memory, used to store programs; A processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the life prediction model establishment method as described in claims 1-6, or the steps in the life prediction method as described in claim 7.
