Material data model federated learning method and device
By performing federated learning among multiple nodes in the material chain and aggregating data models, the problem of data islands in the materials industry is solved, safe and efficient training of material data models is achieved, and development efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202410433970.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-04-11
AI Technical Summary
In the materials industry, due to data privacy issues, material data cannot be shared across enterprises or institutions, forming multiple data islands, making it impossible to train global data models, which affects the development efficiency and accuracy of materials data models.
By determining the target node that meets the preset requirements among multiple nodes in the target material chain, sending a federated learning request to the supervision node, obtaining and aggregating the data model of each node, realizing federated learning of the material data model, avoiding high security requirements The data is transferred across nodes.
It achieves safe and efficient training and aggregation of material data models, ensures the security of data at each node, improves the development efficiency and accuracy of material data models, and avoids the problem of data islands.
Smart Images

Figure CN118052302B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and more specifically, to a material data model federated learning method and device. Background Art
[0002] Data-driven material discovery relies on high-performance computing power, data transmission capabilities, data storage capabilities, etc., and uses technologies such as big data and machine learning to achieve applications such as material design, composition-process-performance optimization / prediction, and gradually replaces trial and error to become a new model for material research and development, effectively improving research and development efficiency and reducing research and development costs.
[0003] The traditional method of acquiring data for machine learning is data submission. Institutions send material data to a third-party platform, which manages and shares the data in a unified manner. However, material data is an important resource for enterprises and R&D institutions, and it involves product privacy. Most enterprises are reluctant to send data to external platforms. Therefore, although the materials industry has accumulated a large amount of data, it has formed multiple data islands, making it impossible to train material data models based on all the data. Summary of the invention
[0004] In view of this, the present application provides a material data model federated learning method and device as follows:
[0005] A material data model federated learning method, applied to a first node, includes:
[0006] Determining at least two target nodes that meet preset requirements among at least two nodes in the target material chain;
[0007] Sending a federated learning request of a training material data model to a supervisory node, so that the supervisory node feeds back the original data model to the at least two target nodes based on the federated learning request and identification information of the target nodes, wherein the federated learning request includes identification information of the at least two target nodes, target shared material information of each target node, and original data model information;
[0008] Based on the target node including the first node, receiving the original data model sent by the supervisory node;
[0009] Training the original data model based on first material data corresponding to the target shared material information in the first node to obtain a first data model, wherein the security requirement of the first material data is higher than the security requirement of the target shared material information;
[0010] Sending the first data model to a supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model;
[0011] Receive the material data model sent by the supervision node.
[0012] Optionally, in the above method, determining at least two target nodes that meet preset requirements from at least two nodes in the target material chain includes:
[0013] Obtaining a data record of a target material chain, the data record comprising shared material information of at least two nodes, the shared material information comprising at least the target shared material information, the shared material information being material information shared by corresponding nodes, and the node also comprising unshared material data;
[0014] Based on the preset shared material information and the data record, at least two target nodes are determined from the at least two nodes in the target material chain, and at least a portion of the shared material information of the target nodes matches the preset shared material information.
[0015] Optionally, the above method, obtaining the training shared material information of at least two nodes in the target material chain, includes:
[0016] Based on the data discovery contract of the target material chain, a data record in the target material chain is obtained, wherein the data record includes the training shared material information of at least two nodes in the target material chain.
[0017] Optionally, the above method further includes:
[0018] receiving first material information;
[0019] Update the data record of the target material chain in the first node with the first material information;
[0020] Based on a preset synchronization rule, the data records of other nodes in the target material chain except the first node are controlled to be updated.
[0021] Optionally, the above method, before determining at least two target nodes that meet preset requirements among at least two nodes in the target material chain, further comprises:
[0022] generating an authentication request, wherein the authentication request includes at least shared material information of the first node;
[0023] An authentication request is sent to a supervision node, so that the supervision node determines that the first node belongs to a target material chain based on the shared material information of the first node, and adds the first node to the target material chain.
[0024] A material data model federated learning method, applied to a supervisory node, includes:
[0025] Receiving a federated learning request for a training material data model sent by a first node, wherein the federated learning request includes identification information of at least two target nodes that meet preset requirements, target shared material information of each target node, and original data model information;
[0026] Sending original data models to at least two target nodes respectively based on the federated learning request and identification information of the target node, so that the target nodes train the original data models based on material data corresponding to the target shared material information stored locally, and obtain at least two data models respectively;
[0027] Receiving and aggregating the at least two data models to obtain a material data model;
[0028] The material data model is sent to the at least two target nodes respectively.
[0029] Optionally, the above method, before receiving the federated learning request for the training material data model sent by the first node, further includes:
[0030] receiving an authentication request from a first node, the authentication request including at least shared material information of the first node;
[0031] Based on the authentication request, determining that the first node belongs to a target material chain;
[0032] Adding the first node to the target material chain.
[0033] Optionally, the above method, after sending the material data model to the at least two target nodes respectively, further includes:
[0034] Respectively obtaining the number of samples used when the at least two target nodes train the original data model, wherein the number of samples corresponds to the target shared material information;
[0035] Based on the number of samples, the contribution of the at least two target nodes is determined.
[0036] A material data model federated learning device, applied to a first node, comprising:
[0037] A determination module, used to determine at least two target nodes that meet preset requirements among at least two nodes in the target material chain;
[0038] A first sending module is used to send a federated learning request of a training material data model to a supervision node, so that the supervision node feeds back the original data model to the at least two target nodes based on the federated learning request and the identification information of the target nodes, wherein the federated learning request includes the identification information of the at least two target nodes, the target shared material information of each target node, and the original data model information;
[0039] A first receiving module, configured to receive an original data model sent by the supervisory node based on the target node including the first node;
[0040] a training module, configured to train the original data model based on first material data corresponding to the target shared material information in the first node to obtain a first data model, wherein a security requirement of the first material data is higher than a security requirement of the target shared material information;
[0041] A second sending module, configured to send the first data model to a supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model;
[0042] The second receiving module is used to receive the material data model sent by the supervision node.
[0043] A material data model federated learning device, applied to a supervision node, comprising:
[0044] A third receiving module is used to receive a federated learning request for a training material data model sent by the first node, wherein the federated learning request includes identification information of at least two target nodes that meet preset requirements, target shared material information of each target node, and original data model information;
[0045] A third sending module is used to send the original data model to at least two target nodes respectively based on the federated learning request and the identification information of the target node, so that the target node trains the original data model based on the material data corresponding to the target shared material information stored locally, and obtains at least two data models respectively;
[0046] A fourth receiving module, configured to receive and aggregate the at least two data models to obtain a material data model;
[0047] The fourth sending module is used to send the material data model to the at least two target nodes respectively.
[0048] In summary, the present application provides a material data model federated learning method and device, including: determining at least two target nodes that meet preset requirements among at least two nodes in a target material chain; sending a federated learning request for training a material data model to a supervisory node, the federated learning request containing identification information of the at least two target nodes, target shared material information of each target node, and original data model information, so that the supervisory node feeds back the original data model to the at least two target nodes based on the federated learning request and the identification information of the target node; receiving the original data model sent by the supervisory node based on the target node including the first node; training the original data model based on the first material data corresponding to the target shared material information in the first node to obtain a first data model; sending the first data model to the supervisory node, so that the supervisory node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model; receiving the material data model sent by the supervisory node. In this embodiment, multiple target nodes that meet preset requirements are determined in the target material chain, and the multiple target nodes are requested to perform federated learning from the supervision node. Each node participating in the federated learning trains the original data model based on the material data corresponding to the shared material information stored locally to obtain a first data model and a second data model. The first data model is obtained by training the first node, and the second data model is obtained by training the second node. The supervision node aggregates the first data model and the second data model to obtain a material data model, and feeds it back to each target node. There is no need for each node to send the material data with higher data security requirements to one node, nor is it necessary to upload it to the supervision node, thereby ensuring the material data security of each node. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work.
[0050] Figure 1 is a flow chart of a material data model federated learning method provided in Example 1 of the present application;
[0051] Figure 2 is a flow chart of a material data model federated learning method provided in Example 2 of the present application;
[0052] Figure 3 is a flow chart of a material data model federated learning method provided in Example 3 of the present application;
[0053] Figure 4 is a flow chart of a material data model federated learning method provided in Example 4 of the present application;
[0054] Figure 5 is a flow chart of a material data model federated learning method provided in Example 5 of the present application;
[0055] Figure 6 This is a schematic diagram of a material chain in a material data model federated learning method provided in Example 5 of the present application;
[0056] Figure 7 is a flow chart of a material data model federated learning method provided in Example 6 of the present application;
[0057] Figure 8 is a flow chart of a material data model federated learning method provided in Example 7 of the present application;
[0058] Fig. 9 is a flow chart of a material data model federated learning method provided in Example 8 of the present application;
[0059] Fig.10 It is a structural diagram of Example 1 of a material data model federated learning device provided by the present application;
[0060] Fig.11 It is a structural diagram of Example 2 of a material data model federated learning device provided in this application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] like Figure 1 The figure is a flow chart of Embodiment 1 of a material data model federated learning method provided by the present application. The method is applied to an electronic device, which is a first node of a data source providing shared material information. The method comprises the following steps:
[0063] Step S101: determining at least two target nodes that meet preset requirements among at least two nodes in the target material chain;
[0064] The target node includes a first node and at least one second node, or the target node includes at least two second nodes.
[0065] It should be noted that the first node and the second node are only used to distinguish different nodes. The first node is the node that requests federated learning this time, and the second node is the node that only participates in federated learning this time.
[0066] Among them, the target node meets the preset requirement, which is that the node can provide the material data required for training in this federated learning.
[0067] The target material chain is one of several material chains, specifically a material chain to which the first node belongs.
[0068] Among them, each node serves as a data source, storing a large amount of shared material information and material data. The shared material information is information that can be shared with other nodes, and the material data is data with high security requirements, which is only stored locally in the node and not shared.
[0069] Among them, the material data stored in the nodes in the same material chain belongs to the same type of material, and the stored data can be used as training samples to train the model. However, the shared material information on different nodes may be the same or different.
[0070] Specifically, the material chain is divided based on different material categories, such as steel materials, high-temperature alloys, corrosion-resistant alloys, aluminum alloys, metal functional materials, titanium alloys, etc. Of course, the types of material chains in specific implementations are not limited to this, and there may be other types, which are not limited in this application.
[0071] Among them, the nodes in the same material chain involve the same material type. For example, each node in the high-temperature alloy material chain provides high-temperature alloy material information and material data. The material information and material plasticizer are information that can be used to train the material data model.
[0072] In the specific implementation, the several material chains form a material alliance chain, which is uniformly managed by a supervision node.
[0073] For example, a material alliance chain includes: material chain A, material chain B, material chain C and a supervision node, where material chain A, material chain B and material chain C are different materials respectively.
[0074] For example, the first node is a high temperature material node, such as data equipment in a steel plant. Correspondingly, the target material chain is a high temperature material chain, and each node in the high temperature material chain is a different high temperature material enterprise, scientific research unit, etc.
[0075] It should be noted that the process of determining the target node will be described in detail in the subsequent embodiments, and will not be described in detail in this embodiment.
[0076] Step S102: sending a federated learning request of a training material data model to a supervisory node, so that the supervisory node feeds back the original data model to the at least two target nodes respectively based on the federated learning request and identification information of the target nodes;
[0077] The federated learning request includes identification information of the at least two target nodes, target shared material information of each target node, and original data model information.
[0078] Therein, the first node requests a training material data model.
[0079] The first node, as a requester for a training material data model, generates a federated learning request and sends the federated learning request to a supervisory node to start the training process.
[0080] In a specific implementation, the federated learning request can be sent to the supervisory node in the form of a contract. The supervisory node sends the contract to the target node corresponding to the federated learning request. The target node accepts the contract for federated learning. If the target node does not accept the contract, federated learning will not be performed.
[0081] Among them, the federated learning request includes identification information of each target node, and each target node belongs to the same material chain. Moreover, the federated learning request also includes target shared material information, and the target shared material information is shared material information corresponding to the material data stored in each target node.
[0082] It should be noted that the target shared material information of different target nodes may be different, and the target shared material information of a target node may also be different from the shared material information shared by it.
[0083] For example, 20 target shared material information in node A meet the current training requirements, and 30 target shared material information in node B meet the current training requirements.
[0084] For example, there are 80 pieces of data in node A that are shared with each node in the target material chain, of which 20 pieces of target shared material information meet the current training requirements. Accordingly, the federated learning request carries relevant messages about the 20 pieces of target shared material information in node A that meet the current training requirements.
[0085] It should be noted that the target material chain may include only the first node and the second node, and may include other nodes in addition to the first node and the second node. The process of determining the target node will be described in detail in subsequent embodiments and will not be described in detail in this embodiment.
[0086] Among them, different material chains have different characteristic data, the shared material information and material data respectively include parts of the characteristic data, and the target shared material information represents the prediction direction corresponding to the training material data model.
[0087] Specifically, the federated learning request includes the original data model information. Accordingly, the supervision node can determine which original data model to be trained based on the federated learning request, and send the original data model to each target node.
[0088] Among them, several original data models are stored in the supervision node, providing a training basis for the multiple material chains it supervises.
[0089] Step S103: Based on the target node including the first node, receiving the original data model sent by the supervisory node;
[0090] The supervisory node sends the determined original data model to each target node respectively.
[0091] When the target node includes the first node, the first node receives the original data model sent by the supervisory node, and correspondingly, the second node also receives the original data model.
[0092] In a specific implementation, if the target node only includes the second node but not the first node, the supervision node only sends the original data model to each second node but not to the first node. The first node does not execute steps S103-105 but directly executes step S106.
[0093] Step S104: training the original data model based on the first material data corresponding to the target shared material information in the first node to obtain a first data model;
[0094] Among them, the security requirement of the first material data is higher than the security requirement of the target shared material information.
[0095] The first node locally stores shared material information and material data, and the security requirement of the shared material information is higher than the security requirement of the material data.
[0096] In a specific implementation, the shared material information and material data may be data information of different dimensions for the same material.
[0097] For example, for an alloy material, its shared material information includes components A, B and C, and the content of each of components A, B and C. Its material data may also include component D and the content of component D, the production process of the alloy material and the corresponding effects, etc.
[0098] Specifically, the shared material information may include material data structure, material data samples, etc. The present application does not limit the content of the shared material information and material data. In specific implementations, the specific content of the shared material information and material data can be set according to actual conditions.
[0099] This application does not limit the specific content of shared material information and material data.
[0100] It should be noted that the data security requirements for shared material information are not high and can be shared with other nodes; while the data security requirements for material data are high and are not known to other nodes. They are only stored locally on each node to ensure data security.
[0101] After receiving the original data model, the first node trains the original data model based on the first material data corresponding to the locally stored target shared material information and the target shared material to obtain the first data model.
[0102] Correspondingly, after receiving the original data model, each second node trains the original data model based on the second material data corresponding to the locally stored target shared material information and the target shared material to obtain a second data model.
[0103] It should be noted that, since the shared material information and material data in each node are different, the data models obtained through training are also different.
[0104] Step S105: sending the first data model to a supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model;
[0105] After the first node obtains the first data model through training and the second node obtains the second data model through training, the first data model and the second data model are sent to the supervision node respectively.
[0106] The supervision node aggregates the first data model and the second data model to obtain a material data model for federated learning.
[0107] Specifically, the method for aggregating the first data model and the second data model may adopt a Federated Averaging (FedAvg) algorithm. Of course, other algorithms may also be adopted, which is not limited in the present application.
[0108] For example, the federated average algorithm is based on a continuous iterative process. Each node uses the original data model for local training (the first node gets the first data model, and the second node gets the second data model). After the local model is trained, the updated model and parameters are passed to the supervisory node. Repeat the above steps until the model reaches the ideal convergence effect.
[0109] Step S106: Receive the material data model sent by the supervision node.
[0110] Among them, after the supervision node obtains the material data model, the material data module is fed back to each node participating in the federated learning, specifically including the first node and each second node.
[0111] It should be noted that the federated learning process in this application is that each data source node trains the original data model locally, and aggregates the data models trained by each node at the supervision node to obtain the material data model. There is no need for each node to send data to the federated learning terminal, which can ensure the data security of each node.
[0112] In summary, the present embodiment provides a material data model federated learning method, including: determining at least two target nodes that meet preset requirements among at least two nodes in a target material chain, the target nodes including a first node and a second node; sending a federated learning request for training a material data model to a supervisory node, the federated learning request including identification information of the at least two target nodes, target shared material information of each target node, and original data model information, so that the supervisory node feeds back the original data model to the at least two target nodes based on the federated learning request and the identification information of the target node; based on the target node including the first node, receiving the original data model sent by the supervisory node; training the original data model based on the first material data corresponding to the target shared material information in the first node to obtain a first data model; sending the first data model to the supervisory node, so that the supervisory node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model; receiving the material data model sent by the supervisory node. In this embodiment, multiple target nodes that meet preset requirements are determined in the target material chain, and the target nodes include a first node and a second node. The multiple target nodes are requested to perform federated learning from the supervision node, and each node participating in the federated learning trains the original data model based on the material data corresponding to the shared material information stored locally to obtain a first data model and a second data model. The first data model is obtained by training the first node, and the second data model is obtained by training the second node. The supervision node aggregates the first data model and the second data model to obtain a material data model, and feeds it back to each target node. There is no need for each node to send the material data with higher data security requirements to one node, nor is it necessary to upload it to the supervision node, thereby ensuring the material data security of each node.
[0113] like Figure 2 The figure is a flow chart of Embodiment 2 of a material data model federated learning method provided by the present application, and the method comprises the following steps:
[0114] Step S201: obtaining data records of a target material chain;
[0115] The data record includes shared material information of at least two nodes, the shared material information includes at least the target shared material information, the shared material information is shared material information shared by the corresponding nodes, and the node also includes unshared material data.
[0116] Among them, the shared material information in each node in the same material chain is not completely the same, but partially the same.
[0117] Among them, the shared material information in each node in the same material chain is stored in a blockchain manner. Each node is used as a node in a blockchain, and the material index sample parameters of each node in the material chain are stored separately.
[0118] It should be noted that the blockchain only stores the shared material information of each node, and the material data corresponding to the shared material information of each node is only stored on the node serving as the data source, and is not stored in a blockchain manner.
[0119] Among them, the characteristic of blockchain is that each node has complete blockchain ledger data, which in this embodiment is the data record of the target material chain.
[0120] The first node, which is a node in the target material chain, also stores data records of the target material chain, and obtaining the data records provides a basis for the subsequent selection of the second node.
[0121] Step S202: determining at least two target nodes from at least two nodes in the target material chain based on the preset shared material information and the data record;
[0122] Wherein, at least part of the target shared material information of the target node matches the preset shared material information;
[0123] The target shared material information of the second node and the target shared material information of the first node meet a preset similarity condition.
[0124] Among them, the first node selects the preset shared material information required for predicting the content based on the content it wants to predict, and then based on the preset shared material information, determines the second node in the target material chain that is close / related to the preset shared material information.
[0125] Among them, the data record includes the shared material information of each node. The shared material information is specifically the index information of the data subject in the node. Each node uploads its shared material information to the material chain in the form of metadata, material characteristic data and data subject hash value, and each node in the material chain shares it.
[0126] Herein, the data subject specifically refers to the data subject of the material data.
[0127] The metadata includes unique identification, material name, data owner, data source type, and timestamp, which is used to mark the copyright information of the data. Material characteristic data includes at least one of composition and performance data, and may also include structure, process, shape, size, and usage data, which can be used as shared material information in the blockchain to achieve cross-node data discovery.
[0128] It should be noted that the data subject itself is also stored in the private cloud or local service of the original node to which the shared material information belongs.
[0129] Among them, the target shared material information can be the shared material information of a certain material in the first node, or it can be the shared material information of multiple materials. It can be set according to actual conditions and is not limited in this application.
[0130] Among them, the shared material information included in each node in the target material chain is recorded in the data record, and the first node determines the target node in the data record based on the preset shared material information determined by it.
[0131] Specifically, the target node is a node whose partial or entire shared material information meets similarity conditions with the preset shared material information.
[0132] In a specific implementation, the first node calculates the similarity between the shared material information in each node in the target material chain and the preset shared material information based on the data record, and then sorts each node from high to low according to the similarity, and selects some of the nodes as target nodes.
[0133] The selection basis may be similarity or a set number of nodes.
[0134] Table 1 below shows a sorted list.
[0135] Table 1
[0136]
[0137] In a specific implementation, the first node can be any company in the list, such as Company A. The nodes of the N top-ranked data owners can be selected as target nodes according to similarity, or the nodes of data owners whose similarity is within a preset threshold can be selected as target nodes. This application does not limit the specific method of selecting the target node.
[0138] It should be noted that if the first node is among the N top-ranked nodes, or among the nodes whose similarity is within the preset threshold, the first node will subsequently participate in federated learning. If the first node is not among the N top-ranked nodes, or among the nodes whose similarity is not within the preset threshold, only the second node will be used for federated learning.
[0139] It should be noted that, since each node in each material chain shares its various shared material information, in this step, the target node screened out is the node that stores the shared material information sample that meets the requirements of this training, and the second node also has other shared material information. Therefore, after determining the target node, when the first node sends a training request to the supervisory node, the target shared material information in the target node that meets the requirements of this training is sent to the supervisory node, so that the supervisory node notifies the second node to train the data model based on the material data corresponding to its target shared material information to obtain the second data model.
[0140] Step S203: Sending a federated learning request for a training material data model to a supervisory node;
[0141] Step S204: Based on the target node including the first node, receiving the original data model sent by the supervisory node;
[0142] Step S205: training the original data model based on the first material data corresponding to the target shared material information in the first node to obtain a first data model;
[0143] Step S206: sending the first data model to a supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model;
[0144] Step S207: Receive the material data model sent by the supervision node.
[0145] Among them, steps S203-207 are consistent with the corresponding steps in Example 1 and are not described in detail in this embodiment.
[0146] In summary, the present embodiment provides a method for federated learning of a material data model, including: obtaining a data record of a target material chain, the data record including shared material information of at least two nodes, the shared material information at least including the target shared material information, the shared material information is shared material information shared by the corresponding nodes, and the node also includes unshared material data; based on the preset shared material information and the data record, determining at least two target nodes from at least two nodes in the target material chain, wherein at least part of the shared material information of the target nodes matches the preset shared material information. In the present embodiment, the shared material information of each node in the target material chain is uniformly recorded in the data record, and the target node that meets similar conditions to the preset shared material information is determined in the data record based on the shared material information of each node, and the second node is screened based on the preset shared material information, providing a basis for subsequent federated learning training of the material data model.
[0147] like Figure 3 The figure is a flow chart of Embodiment 3 of a material data model federated learning method provided by the present application, and the method comprises the following steps:
[0148] Step S301: Based on the data discovery contract of the target material chain, obtain data records in the target material chain, wherein the data records include training shared material information of at least two nodes in the target material chain;
[0149] Among them, each node in the same material chain pre-agrees on a data discovery contract, based on which it is guaranteed that each node belonging to the same material chain can form a blockchain.
[0150] Among them, each node that constitutes the blockchain stores the data records in the material chain, and each node can view the data records.
[0151] Specifically, in order to subsequently implement the federated learning training material data model, the first node, as the node requesting learning, first discovers the contract based on the data in the target material chain and obtains the data record of the target material chain stored therein.
[0152] Specifically, the data discovery contract of the target material chain can be a data discovery request sent by the first node to the supervision node, calling the data discovery contract, which includes the shared material information requested in the data discovery request and the material discovery function / model. The supervision node sends the data discovery contract to each node in the target material chain to reach a consensus with each node. If each node reaches a consensus based on the data discovery contract, the data discovery contract takes effect.
[0153] It should be noted that different materials have different characteristic data. For example, the characteristic data of steel materials are composition (C\Si\Mn\P\S\Cr\Ni\Mo\Ni\V\Ti, etc.) + mechanical properties (tensile strength\yield strength\impact energy, etc.), and the characteristic data of aluminum alloys are composition (Si / Fe / Cu / Mn / Mg / Zn / Ti / Al, etc.) + mechanical properties (tensile strength / elongation, etc.). Different materials have different material discovery functions / models and use different algorithms.
[0154] It should be noted that the determination of the target node in the subsequent steps and the participation of the target node in the training to obtain the data model are all based on the implementation of the data discovery contract.
[0155] Step S302: determining at least two target nodes from at least two nodes in the target material chain based on the preset shared material information and the data record;
[0156] Step S303: Sending a federated learning request for a training material data model to a supervisory node;
[0157] Step S304: Based on the target node including the first node, receiving the original data model sent by the supervisory node;
[0158] Step S305: training the original data model based on the first material data corresponding to the target shared material information in the first node to obtain a first data model;
[0159] Step S306: sending the first data model to a supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model;
[0160] Step S307: Receive the material data model sent by the supervision node.
[0161] Among them, steps S302-307 are consistent with the corresponding steps in Example 2 and are not repeated in this embodiment.
[0162] In summary, the present embodiment provides a method for federated learning of a material data model, including: based on the data discovery contract of the target material chain, obtaining a data record in the target material chain, wherein the data record includes training shared material information of at least two nodes in the target material chain. In the present embodiment, based on the data discovery contract agreed upon by each node in the target material chain, the first node obtains the data record in the target material chain to determine the second node that can participate in the federated learning based on the data record, thereby providing a basis for subsequent federated learning training of the material data model.
[0163] like Figure 4 The figure is a flow chart of Embodiment 4 of a material data model federated learning method provided by the present application, and the method comprises the following steps:
[0164] Step S401: receiving first material information;
[0165] Among them, each node in the target material chain serves as a node of the blockchain. Therefore, if the shared material information in the characteristic data of a certain node changes, the change needs to be updated to the target material chain.
[0166] In this embodiment, the update of shared material information in the first node is taken as an example for explanation, and the update of shared material information recorded in the data records of each node in the target material chain is similar.
[0167] If the shared material information in the first node is updated, the updated first shared material information is obtained.
[0168] In a specific implementation, the first shared material information may be newly added shared material information, or may be a modification of old shared material information.
[0169] For example, in node A, the first shared material information includes shared material information of synthetic material A and synthetic material B, and synthetic material C is added, or the components of synthetic material A are modified.
[0170] Step S402: updating the data record of the target material chain in the first node with the first material information;
[0171] The first node stores a data record of the target material chain, and the data record records the shared material information of each node in the target material chain.
[0172] Wherein, the corresponding record of the first node in the data record of the target material chain is updated based on the first shared material information.
[0173] Specifically, the first shared material information is updated with a data record, and the first node converts the first shared material information in the form of metadata, material characteristic data, and a hash value of the material data subject, and uploads the metadata, material characteristic data, and the hash value of the material data subject to the blockchain. The material data subject itself also exists in the private cloud or local service of the first node. Among them, the metadata includes a unique identifier, material name, data owner, data source type, and a timestamp, which is used to mark the copyright information of the data. The material characteristic data includes at least one of the composition and performance data, and may also include structure, process, shape, size, and use data, which is used as a data index in the blockchain to realize cross-node data discovery.
[0174] Step S403: Based on a preset synchronization rule, controlling the update of data records of other nodes in the target material chain except the first node;
[0175] Among them, each node in the same material chain has a synchronization rule. If the data record of one node changes, the data records of the remaining nodes need to be synchronized.
[0176] Wherein, based on the data record of the target material chain updated in the first node, the data records of other nodes in the target material chain are updated so that the data records in the target material chain are consistent.
[0177] In a specific implementation, the first node may finish updating the data record of the target material chain, triggering the update of data records of other nodes, or each node may be polled periodically, and if a difference is found, it will be updated. This application does not limit the update method of the target material chain.
[0178] Step S404: obtaining data records of the target material chain;
[0179] Step S405: determining at least two target nodes from at least two nodes in the target material chain based on the preset shared material information and the data record;
[0180] Step S406: Sending a federated learning request for a training material data model to a supervisory node;
[0181] Step S407: Based on the target node including the first node, receiving the original data model sent by the supervisory node;
[0182] Step S408: training the original data model based on the first material data corresponding to the target shared material information in the first node to obtain a first data model;
[0183] Step S409: sending the first data model to a supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model;
[0184] Step S410: receiving the material data model sent by the supervision node.
[0185] Among them, steps S404-410 are consistent with the corresponding steps in Example 2 and are not described in detail in this embodiment.
[0186] In summary, the present embodiment provides a method for federated learning of a material data model, including: receiving first shared material information; updating the data record of the target material chain in the first node with the first shared material information; and controlling the update of the data records of other nodes in the target material chain except the first node based on a preset synchronization rule. In the present embodiment, based on the update of the first shared material information of the first node, the data record of the target material chain stored in it is updated, and the data records of other nodes in the target material chain are also updated accordingly, so as to ensure the unity of the data records of each node in the target material chain as a blockchain, and provide a basis for training the material data model of each node.
[0187] like Figure 5 The figure is a flow chart of Embodiment 5 of a material data model federated learning method provided by the present application, and the method comprises the following steps:
[0188] Step S501: Generate an authentication request;
[0189] The authentication request at least includes the shared material information of the first node.
[0190] Among them, this embodiment describes the process of adding a node to a material chain.
[0191] The first node target joins the material chain and generates an authentication request, which includes the shared material information of the first node.
[0192] Among them, the shared material information may include material data structure, material data samples, etc., as well as the material chain to be added, node industry chain type, node information, etc. The node industry chain type includes: material research and development institutions, material production enterprises, equipment manufacturing enterprises, material application enterprises, etc.
[0193] Step S502: sending an authentication request to a supervision node, so that the supervision node determines that the first node belongs to a target material chain based on the shared material information of the first node, and adds the first node to the target material chain;
[0194] Among them, the supervision node is used to manage the nodes in each material chain, and is specifically used to review and verify the certification requests for joining the material chain.
[0195] Specifically, the authentication request is sent to the supervision node, so that the supervision node determines the target material chain to which the first node belongs based on the shared material information of the first node, and adds the first node to the target material chain.
[0196] Among them, the first node joins the target material chain, and the shared material information and other information of the first node are shared with each node in the target material chain to realize information storage in a blockchain manner.
[0197] The first node is added to the target material chain, and the information in the authentication request, such as material sample parameters, node industry chain type, node information, etc., is added to the data record of the target material chain.
[0198] like Figure 6 The material chain schematic diagram shown includes three material chains: a steel material chain, an aluminum alloy material chain and a high-temperature alloy material chain. The schematic diagram also includes supervision nodes, wherein each material chain includes multiple nodes, each node in any material chain is connected, and each node is connected to the supervision node.
[0199] Step S503: determining at least two target nodes that meet preset requirements from at least two nodes in the target material chain;
[0200] Step S504: Sending a federated learning request for a training material data model to a supervisory node;
[0201] Step S505: Based on the target node including the first node, receiving the original data model sent by the supervisory node;
[0202] Step S506: training the original data model based on the first material data corresponding to the target shared material information in the first node to obtain a first data model;
[0203] Step S507: sending the first data model to a supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model;
[0204] Step S508: Receive the material data model sent by the supervision node.
[0205] Among them, steps S503-S508 are consistent with the corresponding steps in Example 1 and are not described in detail in this embodiment.
[0206] In summary, the present embodiment provides a material data model federated learning method, further comprising: generating an authentication request, the authentication request including at least the shared material information of the first node; sending the authentication request to the supervisory node, so that the supervisory node determines that the first node belongs to the target material chain based on the shared material information of the first node, and adds the first node to the target material chain. In this embodiment, when the first node joins the material chain, the generated authentication request is sent to the supervisory node, so that the supervisory node determines the material chain to which it belongs, and controls the first node to join, thereby realizing the process of building the material chain.
[0207] Corresponding to the above-mentioned embodiment of a material data model federated learning method applied to a first node provided in the present application, the present application also provides an embodiment of a material data model federated learning method applied to a supervision node.
[0208] like Figure 7 The figure is a flow chart of Embodiment 6 of a material data model federated learning method provided by the present application. The method is applied to a server of a supervisory node, and the method includes the following steps:
[0209] Step S701: receiving a federated learning request for a training material data model sent by a first node;
[0210] The federated learning request includes target shared material information and original data model information of at least two target nodes that meet preset requirements.
[0211] The federated learning request also includes identification information of each target node, so that the supervisory node can determine which node participates in this federated learning based on the identification information.
[0212] Among them, the first node, as the requester, requests the supervisory node to perform federated learning to train the material data model, and sends the federated learning request to the supervisory node to start the training process.
[0213] It should be noted that the first node and the second node are only used to distinguish different nodes. The first node is a node that requests federated learning, and the second node is a node that only participates in federated learning.
[0214] Among them, the federated learning request includes identification information of each target node, and each target node belongs to the same material chain. Moreover, the federated learning request also includes target shared material information of each target node, and the target shared material information is shared material information corresponding to the material data stored in each target node.
[0215] It should be noted that the target shared material information of different target nodes may be different, and the target shared material information of a target node may also be different from the shared material information shared by it.
[0216] Among them, different material chains have different characteristic data, the shared material information and material data respectively include parts of the characteristic data, and the target shared material information represents the prediction direction corresponding to the training material data model.
[0217] Specifically, the federated learning request also includes original data model information. Accordingly, the supervisory node can determine which original data model to be trained based on the federated learning request, and send the original data model to the target node.
[0218] Among them, several original data models are stored in the supervision node, providing a training basis for the multiple material chains it supervises.
[0219] Step S702: sending original data models to at least two target nodes respectively based on the federated learning request and the identification information of the target node, so that the target node trains the original data model based on the material data corresponding to the target shared material information stored locally, and obtains at least two data models respectively;
[0220] Among them, the target node meets the preset requirement, which is that the node can provide the material data required for training in this federated learning.
[0221] The supervision node obtains the original data model based on the original data model in the federated learning request, and feeds back the original data model to the first node and each second node respectively.
[0222] Among them, each node serves as a data source, storing a large amount of shared material information and material data. The shared material information is information that can be shared with other nodes, and the material data is data with high security requirements, which is only stored locally in the node and not shared.
[0223] Among them, the material data stored in the nodes in the same material chain belongs to the same type of material, and the stored data can be used as training samples to train the model. However, the shared material information on different nodes may be the same or different.
[0224] Among them, each node of the target material chain locally stores shared material information and material data, and the security requirement of the shared material information is higher than the security requirement of the material data.
[0225] In a specific implementation, the shared material information and material data may be data information of different dimensions for the same material.
[0226] Specifically, the shared material information may include material data structure, material data samples, etc. The present application does not limit the content of the shared material information and material data. In specific implementations, the specific content of the shared material information and material data can be set according to actual conditions.
[0227] This application does not limit the specific content of shared material information and material data.
[0228] It should be noted that the data security requirements for shared material information are not high and can be shared with other nodes; while the data security requirements for material data are high and are not known to other nodes. They are only stored locally on each node to ensure data security.
[0229] After receiving the original data model, the first node trains the original data model based on the first material data corresponding to the locally stored target shared material information and the target shared material to obtain the first data model.
[0230] Correspondingly, after receiving the original data model, each second node trains the original data model based on the second material data corresponding to the locally stored target shared material information and the target shared material to obtain a second data model.
[0231] It should be noted that, since the shared material information and material data in each node are different, the data models obtained through training are also different.
[0232] Step S703: receiving and aggregating the at least two data models to obtain a material data model;
[0233] Among them, at least two target nodes are trained to obtain a corresponding number of data models, and the data models are sent to the supervision node.
[0234] Specifically, the method for aggregating the multiple data models may adopt a federated average algorithm. Of course, other algorithms may also be adopted, which is not limited in this application.
[0235] Step S704: Send the material data model to the at least two second nodes.
[0236] Among them, the material data model is obtained through federated learning training. Therefore, it combines the training results of each target node and has higher accuracy than training each node separately.
[0237] Among them, after the supervision node obtains the material data model, the material data module is fed back to each node participating in the federated learning, specifically the at least two target nodes.
[0238] It should be noted that the federated learning process in this application is that each data source node trains the original data model locally, and aggregates the data models trained by each node at the supervision node to obtain the material data model. There is no need for each node to send data to the federated learning terminal, which can ensure the data security of each node.
[0239] In summary, a material data model federated learning method provided in this embodiment includes: receiving a federated learning request for training a material data model sent by a first node, wherein the federated learning request includes identification information of at least two target nodes that meet preset requirements, target shared material information of each target node, and original data model information; sending original data models to at least two target nodes based on the federated learning request and the identification information of the target node, so that the target node trains the original data model based on the material data corresponding to the locally stored target shared material information, and obtains at least two data models respectively; receiving and aggregating the at least two data models to obtain a material data model; and sending the material data model to the at least two target nodes respectively. In this embodiment, the supervisory node requests federated learning based on a node in a material chain, and sends the original data model to each target node of the federated learning. Each target node participating in the federated learning trains the original data model based on the locally stored material data to obtain a data model. The supervisory node aggregates the data models trained by each target node to obtain a material data model, and feeds it back to each target node. There is no need for each node to uniformly send the material data with high data security requirements to one node, nor to upload it to the supervisory node, thereby ensuring the material data security of each node.
[0240] like Figure 8The figure is a flow chart of Embodiment 7 of a material data model federated learning method provided by the present application. The method is applied to a server of a supervisory node, and the method includes the following steps:
[0241] Step S801: receiving an authentication request from a first node;
[0242] The authentication request at least includes the shared material information of the first node.
[0243] Among them, this embodiment describes the process of adding a node to a material chain.
[0244] The first node target joins the material chain and generates an authentication request, which includes the shared material information of the first node.
[0245] Among them, the shared material information may include material data structure, material data samples, etc., as well as the material chain to be added, node industry chain type, node information, etc. The node industry chain type includes: material research and development institutions, material production enterprises, equipment manufacturing enterprises, material application enterprises, etc.
[0246] The supervision node receives an authentication request from the first node.
[0247] Table 2 below shows a list of information in the authentication request.
[0248] Table 2
[0249]
[0250] Step S802: Based on the authentication request, determining that the first node belongs to a target material chain;
[0251] Among them, the supervision node is used to manage the nodes in each material chain, and is specifically used to review and verify the certification requests for joining the material chain.
[0252] Specifically, the supervision node determines the target material chain to which the first node belongs based on the shared material information of the first node, and adds the first node to the target material chain.
[0253] Among them, the first node joins the target material chain, and the shared material information and other information of the first node are shared with each node in the target material chain to realize information storage in a blockchain manner.
[0254] The first node is added to the target material chain, and the information in the authentication request, such as material sample parameters, node industry chain type, node information, etc., is added to the data record of the target material chain.
[0255] Step S803: adding the first node to the target material chain;
[0256] Based on the first node belonging to the target material chain, the first node is controlled to be added to the target material chain.
[0257] Specifically, the shared material information of the first node is sent to other nodes in the target material chain so that the other nodes record the relevant information of the first node.
[0258] Step S804: receiving a federated learning request for a training material data model sent by the first node;
[0259] Step S805: sending original data models to at least two target nodes respectively based on the federated learning request and the identification information of the target node, so that the target node trains the original data model based on the material data corresponding to the target shared material information stored locally, and obtains at least two data models respectively;
[0260] Step S806: receiving and aggregating the at least two data models to obtain a material data model;
[0261] Step S807: Send the material data model to the at least two second nodes.
[0262] Among them, steps S804-807 are consistent with the corresponding steps in Example 6 and are not repeated in this embodiment.
[0263] In summary, the present embodiment provides a method for federated learning of a material data model, further comprising: receiving an authentication request from a first node, the authentication request at least including the shared material information of the first node; determining that the first node belongs to a target material chain based on the authentication request; and adding the first node to the target material chain. In the present embodiment, when the first node joins the material chain, the generated authentication request is sent to the supervisory node, the supervisory node determines the material chain to which it belongs, and controls the first node to join, thereby realizing the process of building a material chain.
[0264] like Fig. 9 The figure is a flow chart of Embodiment 8 of a material data model federated learning method provided by the present application, and the method comprises the following steps:
[0265] Step S901: receiving a federated learning request for a training material data model sent by a first node;
[0266] Step S902: sending original data models to at least two target nodes respectively based on the federated learning request and the identification information of the target node, so that the target node trains the original data model based on the material data corresponding to the target shared material information stored locally, and obtains at least two data models respectively;
[0267] Step S903: receiving and aggregating the at least two data models to obtain a material data model;
[0268] Step S904: sending the material data model to the at least two second nodes;
[0269] Among them, steps S901-904 are consistent with the corresponding steps in Example 6 and are not repeated in this embodiment.
[0270] Step S905: respectively obtaining the number of samples used when the at least two target nodes train the original data model, wherein the number of samples corresponds to the target shared material information;
[0271] When the first node and the second node train the original data model, different numbers of samples can be provided for training. The larger the number of samples, the more precise the data model obtained through training and the higher the accuracy.
[0272] The supervision node calculates the contribution of each node in training the original data model based on the number of samples.
[0273] Among them, the material data in the target node that participates in training the original data model is information of a different dimension from the material information, and together with the material information constitutes a training sample. Therefore, the number of samples used in training the material data model corresponds to the target shared material information.
[0274] Specifically, each node may send the number of samples used to train its original data model to the supervision node.
[0275] Step S906: Based on the number of samples, determine the contribution of the at least two target nodes.
[0276] Among them, the more samples provided, the greater the contribution to the training material data model, and the greater the computing power required from the node.
[0277] In the specific implementation, the contribution degree is also recorded to provide a basis for the subsequent distribution of benefits.
[0278] For example, in this federated learning process, participant A contributed 100 pieces of data, participant B contributed 50 pieces of data, and participant C contributed 80 pieces of data. In this case, participant A has the highest contribution, and a contribution index can be calculated. After each federated learning, this contribution will be accumulated, and if the data generates economic benefits in the future, it can provide a credible basis for the distribution of benefits.
[0279] In summary, the present embodiment provides a material data model federated learning method, further comprising: obtaining the number of samples used when training the original data model of the at least two target nodes, respectively, the number of samples corresponding to the target shared material information; based on the number of samples, determining the contribution of the at least two target nodes. In the present embodiment, statistics are also performed based on the number of samples used to train the original data model for each target node, so as to calculate the contribution of each node based on the number of samples, providing a basis for the subsequent distribution of economic benefits.
[0280] Corresponding to the above-mentioned embodiment of a material data model federated learning method provided by the present application, the present application also provides an embodiment of a device applying the material data model federated learning method.
[0281] like Fig.10 The structure diagram of Embodiment 1 of a material data model federated learning device provided by the present application is shown, and the device includes the following structures: a determination module 1001, a first sending module 1002, a first receiving module 1003, a training module 1004, a second sending module 1005 and a second receiving module 1006;
[0282] The determination module 1001 is used to determine at least two target nodes that meet preset requirements among at least two nodes in the target material chain;
[0283] The first sending module 1002 is used to send a federated learning request of a training material data model to a supervision node, so that the supervision node feeds back the original data model to the at least two target nodes based on the federated learning request and the identification information of the target nodes, wherein the federated learning request includes the identification information of the at least two target nodes, the target shared material information of each target node, and the original data model information;
[0284] The first receiving module 1003 is configured to receive the original data model sent by the supervisory node based on the target node including the first node;
[0285] The training module 1004 is used to train the original data model based on the first material data corresponding to the target shared material information in the first node to obtain a first data model, wherein the security requirement of the first material data is higher than the security requirement of the target shared material information;
[0286] The second sending module 1005 is used to send the first data model to the supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model;
[0287] The second receiving module 1006 is used to receive the material data model sent by the supervision node.
[0288] Optionally, determine the modules, including:
[0289] An obtaining unit, configured to obtain a data record of a target material chain, wherein the data record includes shared material information of at least two nodes, wherein the shared material information includes at least the target shared material information, wherein the shared material information is material information shared by corresponding nodes, and wherein the node also includes unshared material data;
[0290] A determination unit is used to determine at least two target nodes among at least two nodes in the target material chain based on the preset shared material information and the data record, wherein at least part of the shared material information of the target nodes matches the preset shared material information.
[0291] Optionally, obtain a unit, specifically for:
[0292] Based on the data discovery contract of the target material chain, a data record in the target material chain is obtained, wherein the data record includes the training shared material information of at least two nodes in the target material chain.
[0293] Optionally, also include:
[0294] An attribute receiving module, used for receiving first material information;
[0295] An updating module, used for updating the data record of the target material chain in the first node with the first material information;
[0296] The synchronization module is used to control the update of data records of other nodes in the target material chain except the first node based on preset synchronization rules.
[0297] Optionally, also include:
[0298] an authentication request module, generating an authentication request before determining at least one second node that meets preset requirements among at least two nodes in the target material chain, wherein the authentication request at least includes shared material information of the first node;
[0299] The authentication request sending module is used to send an authentication request to the supervision node, so that the supervision node determines that the first node belongs to the target material chain based on the shared material information of the first node, and adds the first node to the target material chain.
[0300] It should be noted that, for the various structural functions in a material data model federated learning device provided in this embodiment, please refer to the explanation in the aforementioned method embodiment, and will not be repeated in this embodiment.
[0301] In summary, the present embodiment provides a material data model federated learning device, comprising: a determination module, used to determine at least two target nodes that meet preset requirements among at least two nodes in a target material chain; a first sending module, used to send a federated learning request for training a material data model to a supervision node, so that the supervision node feeds back the original data model to the at least two target nodes based on the federated learning request and the identification information of the target node, respectively, wherein the federated learning request includes the identification information of the at least two target nodes, the target shared material information of each target node, and the original data model information; a first receiving module, used to receive the original data model sent by the supervision node based on the target node including the first node; a training module, used to train the original data model based on the first material data corresponding to the target shared material information in the first node to obtain a first data model, wherein the security requirement of the first material data is higher than the security requirement of the target shared material information; a second sending module, used to send the first data model to the supervision node, so that the supervision node aggregates the first data model of the first node and the second data model obtained by training the second node based on the second material data corresponding to the target shared material information to obtain a material data model; a second receiving module, used to receive the material data model sent by the supervision node. In this embodiment, multiple target nodes that meet preset requirements are determined in the target material chain, and the target nodes include a first node and a second node. The multiple target nodes are requested to perform federated learning from the supervision node, and each node participating in the federated learning trains the original data model based on the material data corresponding to the shared material information stored locally to obtain a first data model and a second data model. The first data model is obtained by training the first node, and the second data model is obtained by training the second node. The supervision node aggregates the first data model and the second data model to obtain a material data model, and feeds it back to each target node. There is no need for each node to send the material data with higher data security requirements to one node, nor is it necessary to upload it to the supervision node, thereby ensuring the material data security of each node.
[0302] like Fig.11 The structure diagram of Embodiment 2 of a material data model federated learning device provided by the present application is shown, and the device includes the following structures: a third receiving module 1101, a third sending module 1102, a fourth receiving module 1103 and a fourth sending module 1104;
[0303] The third receiving module 1101 is used to receive a federated learning request for a training material data model sent by the first node, wherein the federated learning request includes identification information of at least two target nodes that meet preset requirements, target shared material information of each target node, and original data model information;
[0304] The third sending module 1102 is used to send the original data model to at least two target nodes based on the federated learning request and the identification information of the target node, so that the target node trains the original data model based on the material data corresponding to the target shared material information stored locally, and obtains at least two data models respectively;
[0305] The fourth receiving module 1103 is used to receive and aggregate the at least two data models to obtain a material data model;
[0306] The fourth sending module 1104 is used to send the material data model to the at least two target nodes respectively.
[0307] Optionally, also include:
[0308] an authentication request receiving module, configured to receive an authentication request from the first node before receiving the federated learning request for the training material data model sent by the first node, wherein the authentication request at least includes the shared material information of the first node;
[0309] a material chain determination module, configured to determine, based on the authentication request, that the first node belongs to a target material chain;
[0310] A joining module is used to add the first node to the target material chain.
[0311] Optionally, also include:
[0312] An acquisition module, configured to respectively acquire the number of samples used by the at least two target nodes when training the original data model after sending the material data model to the at least two target nodes respectively, wherein the number of samples corresponds to the target shared material information;
[0313] A contribution determination module is used to determine the contribution of the at least two target nodes based on the number of samples.
[0314] It should be noted that, for the various structural functions in a material data model federated learning device provided in this embodiment, please refer to the explanation in the aforementioned method embodiment, and will not be repeated in this embodiment.
[0315] In summary, a material data model federated learning device provided in this embodiment includes: a third receiving module, used to receive a federated learning request for training a material data model sent by a first node, the federated learning request containing identification information of at least two target nodes that meet preset requirements, target shared material information of each target node, and original data model information; a third sending module, used to send the original data model to at least two target nodes respectively based on the federated learning request and the identification information of the target node, so that the target node trains the original data model based on the material data corresponding to the target shared material information stored locally, and obtains at least two data models respectively; a fourth receiving module, used to receive and aggregate the at least two data models to obtain a material data model; and a fourth sending module, used to send the material data model to the at least two target nodes respectively. In this embodiment, the supervision node requests federated learning based on a node in a material chain, and sends the original data model to each target node of the federated learning. Each target node participating in the federated learning trains the original data model based on the locally stored material data to obtain a data model. The supervision node aggregates the data models trained by each target node to obtain a material data model, and feeds back to each target node. There is no need for each node to send the material data with higher data security requirements to one node, nor to upload it to the supervision node, thereby ensuring the material data security of each node.
[0316] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0317] The above description of the embodiments provided enables professionals and technicians in the field to implement or use the present application. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features provided herein.
Claims
1. A material data model federated learning method, characterized in that: Applied to the first node, including: Determining at least two target nodes that meet preset requirements from at least two nodes in the target material chain, wherein material data of each node in the target material chain belongs to the same type of material; Sending a federated learning request of a training material data model to a supervisory node, so that the supervisory node feeds back the original data model to the at least two target nodes based on the federated learning request and identification information of the target nodes, wherein the federated learning request includes identification information of the at least two target nodes, target shared material information of each target node, and original data model information; Based on the target node including the first node, receiving the original data model sent by the supervisory node; Training the original data model based on first material data corresponding to the target shared material information in the first node to obtain a first data model, wherein the security requirement of the first material data is higher than the security requirement of the target shared material information; Sending the first data model to a supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model; Receiving a material data model sent by the supervision node; Among them, determining at least two target nodes that meet preset requirements from at least two nodes in the target material chain includes: Obtaining a data record of a target material chain, the data record comprising shared material information of each node in the target material chain, the shared material information comprising at least the target shared material information, the shared material information being material information shared by the corresponding node, the node also comprising unshared material data, the data record in the target material chain being stored in each node in the target material chain; Based on preset shared material information and the data record, at least two target nodes are determined among at least two nodes in the target material chain, wherein the preset shared material information is material information required by the first node to request federated learning, and at least part of the shared material information of the target node matches the preset shared material information.
2. The method according to claim 1, characterized in that Obtain training shared material information of at least two nodes in the target material chain, including: Based on the data discovery contract of the target material chain, a data record in the target material chain is obtained, wherein the data record includes the training shared material information of at least two nodes in the target material chain.
3. The method according to claim 1, characterized in that Also includes: receiving first material information; Update the data record of the target material chain in the first node with the first material information; Based on a preset synchronization rule, the data records of other nodes in the target material chain except the first node are controlled to be updated.
4. The method according to claim 1, characterized in that Before determining at least two target nodes that meet preset requirements among at least two nodes in the target material chain, the method further includes: generating an authentication request, wherein the authentication request includes at least shared material information of the first node; An authentication request is sent to a supervision node, so that the supervision node determines that the first node belongs to a target material chain based on the shared material information of the first node, and adds the first node to the target material chain.
5. A material data model federated learning method, characterized in that: Applied to supervisory nodes, including: Receiving a federated learning request for a training material data model sent by a first node, wherein the federated learning request includes identification information of at least two target nodes that meet preset requirements, target shared material information of each target node, and original data model information; Sending original data models to at least two target nodes respectively based on the federated learning request and identification information of the target node, so that the target nodes train the original data models based on material data corresponding to the target shared material information stored locally, and obtain at least two data models respectively; Receiving and aggregating the at least two data models to obtain a material data model; Sending the material data model to the at least two target nodes respectively; The at least two target nodes that meet the preset requirements are determined by the first node from at least two nodes in the target material chain, and the determination process includes: Obtaining a data record of a target material chain, wherein the material data of each node in the target material chain belongs to the same type of material, the data record includes shared material information of each node in the target material chain, the shared material information at least includes the target shared material information, the shared material information is material information shared by the corresponding nodes, the node also includes unshared material data, and the data record in the target material chain is stored in each node in the target material chain; Based on preset shared material information and the data record, at least two target nodes are determined among at least two nodes in the target material chain, wherein the preset shared material information is material information required by the first node to request federated learning, and at least part of the shared material information of the target node matches the preset shared material information.
6. The method according to claim 5, characterized in that Before receiving the federated learning request for the training material data model sent by the first node, the method further includes: receiving an authentication request from a first node, the authentication request including at least shared material information of the first node; Based on the authentication request, determining that the first node belongs to a target material chain; Adding the first node to the target material chain.
7. The method according to claim 5, characterized in that After sending the material data model to the at least two target nodes respectively, the method further includes: Respectively obtaining the number of samples used when the at least two target nodes train the original data model, wherein the number of samples corresponds to the target shared material information; Based on the number of samples, the contribution of the at least two target nodes is determined.
8. A material data model federated learning device, characterized in that: Applied to the first node, including: A determination module, used to determine at least two target nodes that meet preset requirements from at least two nodes in the target material chain, wherein the material data of each node in the target material chain belongs to the same type of material; A first sending module is used to send a federated learning request of a training material data model to a supervision node, so that the supervision node feeds back the original data model to the at least two target nodes based on the federated learning request and the identification information of the target nodes, wherein the federated learning request includes the identification information of the at least two target nodes, the target shared material information of each target node, and the original data model information; A first receiving module, configured to receive an original data model sent by the supervisory node based on the target node including the first node; a training module, configured to train the original data model based on first material data corresponding to the target shared material information in the first node to obtain a first data model, wherein a security requirement of the first material data is higher than a security requirement of the target shared material information; A second sending module, configured to send the first data model to a supervision node, so that the supervision node aggregates the first data model of the first node and the second data model trained by the second node based on the second material data corresponding to the target shared material information to obtain a material data model; A second receiving module, used to receive the material data model sent by the supervision node; Wherein, the determination module is used to obtain data records of the target material chain, the data records include shared material information of each node in the target material chain, the shared material information at least includes the target shared material information, the shared material information is the material information shared by the corresponding node, the node also includes unshared material data, and the data records in the target material chain are stored in each node in the target material chain; based on the preset shared material information and the data records, at least two target nodes are determined from at least two nodes in the target material chain, the preset shared material information is the material information required for the first node to request federated learning, and at least part of the shared material information of the target node matches the preset shared material information.
9. A material data model federated learning device, characterized in that: Applied to supervisory nodes, including: A third receiving module is used to receive a federated learning request for a training material data model sent by the first node, wherein the federated learning request includes identification information of at least two target nodes that meet preset requirements, target shared material information of each target node, and original data model information; A third sending module is used to send the original data model to at least two target nodes respectively based on the federated learning request and the identification information of the target node, so that the target node trains the original data model based on the material data corresponding to the target shared material information stored locally, and obtains at least two data models respectively; A fourth receiving module, configured to receive and aggregate the at least two data models to obtain a material data model; A fourth sending module, used to send the material data model to the at least two target nodes respectively; The at least two target nodes that meet the preset requirements are determined by the first node from at least two nodes in the target material chain, and the determination process includes: Obtaining a data record of a target material chain, wherein the material data of each node in the target material chain belongs to the same type of material, the data record includes shared material information of each node in the target material chain, the shared material information at least includes the target shared material information, the shared material information is material information shared by the corresponding nodes, the node also includes unshared material data, and the data record in the target material chain is stored in each node in the target material chain; Based on preset shared material information and the data record, at least two target nodes are determined among at least two nodes in the target material chain, wherein the preset shared material information is material information required by the first node to request federated learning, and at least part of the shared material information of the target node matches the preset shared material information.
