CN113052331A - Block chain-based Internet of things personalized federal learning method - Google Patents
Block chain-based Internet of things personalized federal learning method Download PDFInfo
- Publication number
- CN113052331A CN113052331A CN202110191251.2A CN202110191251A CN113052331A CN 113052331 A CN113052331 A CN 113052331A CN 202110191251 A CN202110191251 A CN 202110191251A CN 113052331 A CN113052331 A CN 113052331A
- Authority
- CN
- China
- Prior art keywords
- model
- block chain
- federal learning
- edge computing
- personalized
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000012549 training Methods 0.000 claims abstract description 29
- 239000011521 glass Substances 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 claims 1
- 238000012806 monitoring device Methods 0.000 claims 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000011478 gradient descent method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000006116 polymerization reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
- G06N20/20—Ensemble learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y30/00—IoT infrastructure
- G16Y30/10—Security thereof
Abstract
The invention discloses an Internet of things personalized federal learning method based on a block chain, which relates to the technical field of the block chain, and comprises the following steps: registering and authenticating terminal equipment and edge computing equipment, registering each terminal equipment and edge computing equipment to a block chain, authenticating each equipment by the block chain, and issuing a certificate; a block chain intelligent contract creates a federal learning task and initializes a training model and parameters; loading a data sample by the terminal equipment, unloading the data sample to the edge computing equipment, and carrying out local model training; after encrypting the local training model parameters, the edge computing equipment uploads the parameters to a block chain, and after the chain link points of the block chain are identified together, a new block is generated; the intelligent contract aggregates the model parameters, aggregates the model parameters and updates the whole model; the intelligent contract judges whether a preset convergence condition of the model is reached, if not, the next round of training is carried out, and if so, the federal learning task is terminated; the edge computing device trains the personalized model based on the global model information in combination with the data of the edge computing device. The method solves the problem that the traditional global model for federal learning cannot meet the heterogeneity of the Internet of things equipment in terms of storage calculation and communication capacity, and improves the security of private data and the Byzantine fault tolerance of the system.
Description
Technical Field
The invention relates to the field of block chains, in particular to a block chain-based Internet of things personalized federal learning method.
Background
The federated learning system is used as a learning method for collaboratively training a unified model by contributing local data by a plurality of clients, and has the limitation that the model only depends on a single central server and is easily influenced by server faults. The purpose of traditional federal learning is to obtain a globally shared model for all participants. However, when the data distribution of each participant is inconsistent, the global model cannot meet the performance requirement of each federal learning participant, and some participants cannot even obtain a model better than a model trained by only using local data.
Based on the method, the personalized federal learning method of the Internet of things based on the block chain is provided, the problem of heterogeneity in the environment of the Internet of things is solved, the federal learning byzantine fault tolerance is improved, and the privacy of data is improved.
Disclosure of Invention
In view of the above defects in the prior art, the technical problem to be solved by the present invention is to provide a personalized federal learning method for internet of things based on a blockchain, which is provided by the present invention, in view of the needs and disadvantages of the current technical development.
Firstly, the invention provides a block chain-based federal learning incentive method, and the technical scheme adopted for solving the technical problems is as follows:
s01, registering and authenticating terminal equipment and edge computing equipment, registering each terminal equipment and edge computing equipment to a block chain, authenticating each equipment by the block chain, and issuing a certificate;
s02, creating a federal learning task by a block chain intelligent contract, and initializing a training model and parameters;
s03, loading the data sample by the terminal equipment, unloading the data sample to the edge computing equipment, and carrying out local model training;
s04, the edge computing equipment encrypts the local training model parameters and uploads the parameters to a block chain, and after the block chain link points are identified together, a new block is generated;
s05, the intelligent contract aggregates the model parameters, aggregates the model parameters and updates the whole model; the intelligent contract judges whether a preset convergence condition of the model is reached, if not, the next round of training is carried out, and if so, the federal learning task is terminated;
and S06, training the personalized model by the edge computing equipment based on the global model information and combining the data of the edge computing equipment.
Specifically, the related internet of things equipment can be various intelligent terminals, such as mobile phones, glasses, watches, cameras, monitoring equipment and the like. The client side is authenticated through the block chain, and the authentication mode can be a digital certificate, token authentication and other authentication modes. The blockchain may be a public chain, a federation chain, or a private chain. The intelligent contracts are run on a block chain, and a user can create a federal learning task through a template. The loading data samples of the terminal equipment are unloaded to the edge computing equipment and are transmitted in an encryption mode, and the local model training is a gradient training method. The encryption mode can be an asymmetric encryption algorithm such as an RSA algorithm, a DSA algorithm, an ECC algorithm, a DH algorithm and the like. The model parameters are aggregated according to the records on the block chain by an intelligent contract, and the integral model is updated. The received model parameter updating method can use weighted average, and can also be median value. And the block chain transmits the updated model to each participating edge computing device, so that a new round of training and learning is started. Each device redefines the global model according to local data of the device to obtain an individualized model, wherein the global model comprises low-level parameters and high-level parameters, and the individualized model learns the specific characteristics of the device by finely adjusting the high-level parameters of the global model through the local data.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter, by way of illustration and not limitation, with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. The objects and features of the present invention will become more apparent in view of the following description taken in conjunction with the accompanying drawings, in which:
fig. 1 is a block chain-based personalized federal learning flow chart of the internet of things.
FIG. 2 is a schematic diagram of the system architecture of the present invention.
Detailed Description
In order to make the present invention more comprehensible with respect to its gist, the present invention will be further described with reference to the accompanying drawings and examples. In the following description, numerous specific details and specific examples are set forth in order to provide a more thorough understanding of the present invention and to provide a thorough understanding of the present invention. While this invention is susceptible of embodiment in many different forms than that described herein, there will be many equivalents to those skilled in the art which incorporate such variations and modifications without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents.
The technology of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with specific embodiments.
The embodiment of the invention provides an Internet of things personalized federal learning method based on a block chain, which comprises the following implementation processes:
s1, terminal devices C1, C2, C3 and C4 and edge computing devices E1, E2, E3 and E4 are respectively registered with a blockchain B, the blockchain B verifies registration information of the devices, and certificates are issued to the devices after the certificates are authenticated.
S2, a user U1 creates an intelligent contract S1 according to the intelligent contract template learned by the federation, the intelligent contract S1 runs on a block chain B, a federated learning task T is created, and a training model M and a parameter omega are initialized.
S3, the edge computing devices E1, E2, E3 and E4 download a training model M and a parameter omega from the block chain B respectively, the terminal devices C1, C2, C3 and C4 load data samples respectively and unload the data samples to the edge computing devices connected respectively, the training is carried out through local computing by executing a program P, a gradient descent method is adopted for training, and the gradient computing formula is as follows:
and locally updating the model parameters omega, and uploading the updated parameters omega to the block chain B in an encrypted manner.
And S4, after encrypting the local training model parameters respectively by the edge computing equipment E1, E2, E3 and E4, uploading the parameters to a block chain B, and after passing consensus, generating a new block.
S5, the intelligent contract S1 aggregates the model parameters, aggregates the model parameters omega, and updates the whole model M; the polymerization formula is as follows:
and the intelligent contract judges whether a preset convergence condition of the model is reached, if not, the next round of training is carried out, and if so, the federal learning task is terminated.
And S6, training the personalized model M by the edge computing devices E1, E2, E3 and E4 based on the information of the global model M and the data of the edge computing devices.
Claims (10)
1. The individualized federated learning method of the Internet of things based on the block chain is characterized in that the implementation process of the method comprises the following steps:
s01, registering and authenticating terminal equipment and edge computing equipment, registering each terminal equipment and edge computing equipment to a block chain, authenticating each equipment by the block chain, and issuing a certificate;
s02, creating a federal learning task by a block chain intelligent contract, and initializing a training model and parameters;
s03, loading the data sample by the terminal equipment, unloading the data sample to the edge computing equipment, and carrying out local model training;
s04, the edge computing equipment encrypts the local training model parameters and uploads the parameters to a block chain, and after the block chain link points are identified together, a new block is generated;
s05, the intelligent contract aggregates the model parameters, aggregates the model parameters and updates the whole model; the intelligent contract judges whether a preset convergence condition of the model is reached, if not, the next round of training is carried out, and if so, the federal learning task is terminated;
and S06, training the personalized model by the edge computing equipment based on the global model information and combining the data of the edge computing equipment.
2. The personalized federal learning method for internet of things based on a blockchain as claimed in claim 1, wherein the internet of things device in the step S01 can be various intelligent terminals, such as mobile phones, glasses, watches, cameras, monitoring devices, and the like.
3. The personalized federal learning method for internet of things based on block chains as claimed in claim 1, wherein the authentication mode in step S01 can be a digital certificate, token authentication, or other authentication modes.
4. The personalized federal learning method for internet of things based on blockchains as claimed in claim 1, wherein the blockchains in step S01 can be public chains, alliance chains, or private chains.
5. The personalized federal learning method for internet of things based on blockchain as claimed in claim 1, wherein the intelligent contract in step S02 is run on blockchain, and the user can create federal learning task through template.
6. The personalized federal learning method for internet of things based on blockchain as claimed in claim 1, wherein the step S03 is to unload the data sample loaded by the terminal device to the edge computing device by means of encryption for transmission, and the local model training is performed by means of gradient training.
7. The personalized federal learning method for internet of things based on blockchain as claimed in claim 1, wherein the encryption manner in step S04 can be an asymmetric encryption algorithm such as RSA algorithm, DSA algorithm, ECC algorithm, DH algorithm, etc.
8. The personalized federal learning method for internet of things based on blockchain as claimed in claim 1, wherein the step S05 is to aggregate the received model parameters by an intelligent contract according to the records on blockchain, and update the whole model. The received model parameter updating method can use weighted average, and can also be median value.
9. The personalized federal learning method for internet of things based on blockchains as claimed in claim 1, wherein in the step S05, in the next round of training, the blockchains issue the updated models to each participating edge computing device, so as to start a new round of training and learning.
10. The personalized federal learning method for internet of things based on blockchains as claimed in claim 1, wherein the step S06 trains a personalized model, each device redefines the global model according to its own local data to obtain the personalized model, wherein the global model includes a lower-level parameter and a higher-level parameter, and the personalized model learns the specific characteristics of the device by fine-tuning the higher-level parameter of the global model through the local data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110191251.2A CN113052331A (en) | 2021-02-19 | 2021-02-19 | Block chain-based Internet of things personalized federal learning method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110191251.2A CN113052331A (en) | 2021-02-19 | 2021-02-19 | Block chain-based Internet of things personalized federal learning method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113052331A true CN113052331A (en) | 2021-06-29 |
Family
ID=76509294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110191251.2A Pending CN113052331A (en) | 2021-02-19 | 2021-02-19 | Block chain-based Internet of things personalized federal learning method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113052331A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113518007A (en) * | 2021-07-06 | 2021-10-19 | 华东师范大学 | Multi-internet-of-things equipment heterogeneous model efficient mutual learning method based on federal learning |
CN113762528A (en) * | 2021-09-10 | 2021-12-07 | 北京航空航天大学 | Block chain-based federal credit assessment method |
CN113782111A (en) * | 2021-09-16 | 2021-12-10 | 平安科技(深圳)有限公司 | Drug research and development model-based collaborative training method, system and storage medium |
CN113852601A (en) * | 2021-08-11 | 2021-12-28 | 杭州师范大学 | Internet of vehicles matrix calculation safety unloading verifiable method based on intelligent contract |
CN114219097A (en) * | 2021-11-30 | 2022-03-22 | 华南理工大学 | Federal learning training and prediction method and system based on heterogeneous resources |
CN114580009A (en) * | 2022-01-13 | 2022-06-03 | 吉林省元依科技有限公司 | Block chain data management method, system and storage medium based on federal learning |
CN114978893A (en) * | 2022-04-18 | 2022-08-30 | 西安交通大学 | Decentralized federal learning method and system based on block chain |
CN114996762A (en) * | 2022-07-19 | 2022-09-02 | 山东省计算中心(国家超级计算济南中心) | Medical data sharing and privacy protection method and system based on federal learning |
CN115376031A (en) * | 2022-10-24 | 2022-11-22 | 江西省科学院能源研究所 | Road unmanned aerial vehicle routing inspection data processing method based on federal adaptive learning |
CN116489163A (en) * | 2023-06-16 | 2023-07-25 | 清华大学 | Edge personalized collaborative learning method and device based on multiple chains |
CN117610644A (en) * | 2024-01-19 | 2024-02-27 | 南京邮电大学 | Federal learning optimization method based on block chain |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569033A (en) * | 2019-09-12 | 2019-12-13 | 北京工商大学 | method for generating basic code of digital transaction type intelligent contract |
CN111212110A (en) * | 2019-12-13 | 2020-05-29 | 清华大学深圳国际研究生院 | Block chain-based federal learning system and method |
CN111368319A (en) * | 2020-03-04 | 2020-07-03 | 西安电子科技大学 | Block chain-based data security access method in federated learning environment |
CN111552986A (en) * | 2020-07-10 | 2020-08-18 | 鹏城实验室 | Block chain-based federal modeling method, device, equipment and storage medium |
CN111698322A (en) * | 2020-06-11 | 2020-09-22 | 福州数据技术研究院有限公司 | Medical data safety sharing method based on block chain and federal learning |
CN112118295A (en) * | 2020-08-21 | 2020-12-22 | 深圳大学 | File caching method and device, edge node and computer readable storage medium |
CN112202928A (en) * | 2020-11-16 | 2021-01-08 | 绍兴文理学院 | Credible unloading cooperative node selection system and method for sensing edge cloud block chain network |
-
2021
- 2021-02-19 CN CN202110191251.2A patent/CN113052331A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569033A (en) * | 2019-09-12 | 2019-12-13 | 北京工商大学 | method for generating basic code of digital transaction type intelligent contract |
CN111212110A (en) * | 2019-12-13 | 2020-05-29 | 清华大学深圳国际研究生院 | Block chain-based federal learning system and method |
CN111368319A (en) * | 2020-03-04 | 2020-07-03 | 西安电子科技大学 | Block chain-based data security access method in federated learning environment |
CN111698322A (en) * | 2020-06-11 | 2020-09-22 | 福州数据技术研究院有限公司 | Medical data safety sharing method based on block chain and federal learning |
CN111552986A (en) * | 2020-07-10 | 2020-08-18 | 鹏城实验室 | Block chain-based federal modeling method, device, equipment and storage medium |
CN112118295A (en) * | 2020-08-21 | 2020-12-22 | 深圳大学 | File caching method and device, edge node and computer readable storage medium |
CN112202928A (en) * | 2020-11-16 | 2021-01-08 | 绍兴文理学院 | Credible unloading cooperative node selection system and method for sensing edge cloud block chain network |
Non-Patent Citations (4)
Title |
---|
KIM H, ET AL: "Blockchained on-device federated learning", IEEE COMMUNICATIONS LETTERS, pages 1279 - 1283 * |
方俊杰等: "面向边缘人工智能计算的区块链技术综述", 应用科学学报, pages 1 - 21 * |
蔡维德等: "基于区块链的应用系统开发方法研究", 软件学报, pages 1474 - 1487 * |
蔡维德等: "能源区块链应用的基础设施互链网技术研究", 电力信息与通信技术, pages 23 - 29 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113518007A (en) * | 2021-07-06 | 2021-10-19 | 华东师范大学 | Multi-internet-of-things equipment heterogeneous model efficient mutual learning method based on federal learning |
CN113852601B (en) * | 2021-08-11 | 2023-04-28 | 杭州师范大学 | Intelligent contract-based internet of vehicles matrix computing security unloading verifiable method |
CN113852601A (en) * | 2021-08-11 | 2021-12-28 | 杭州师范大学 | Internet of vehicles matrix calculation safety unloading verifiable method based on intelligent contract |
CN113762528A (en) * | 2021-09-10 | 2021-12-07 | 北京航空航天大学 | Block chain-based federal credit assessment method |
WO2023040149A1 (en) * | 2021-09-16 | 2023-03-23 | 平安科技(深圳)有限公司 | Cooperative training method and system based on drug research and development model and storage medium |
CN113782111A (en) * | 2021-09-16 | 2021-12-10 | 平安科技(深圳)有限公司 | Drug research and development model-based collaborative training method, system and storage medium |
CN113782111B (en) * | 2021-09-16 | 2023-07-18 | 平安科技(深圳)有限公司 | Collaborative training method, system and storage medium based on drug development model |
CN114219097A (en) * | 2021-11-30 | 2022-03-22 | 华南理工大学 | Federal learning training and prediction method and system based on heterogeneous resources |
CN114219097B (en) * | 2021-11-30 | 2024-04-09 | 华南理工大学 | Federal learning training and predicting method and system based on heterogeneous resources |
CN114580009A (en) * | 2022-01-13 | 2022-06-03 | 吉林省元依科技有限公司 | Block chain data management method, system and storage medium based on federal learning |
CN114978893A (en) * | 2022-04-18 | 2022-08-30 | 西安交通大学 | Decentralized federal learning method and system based on block chain |
CN114978893B (en) * | 2022-04-18 | 2024-04-12 | 西安交通大学 | Block chain-based decentralization federation learning method and system |
CN114996762A (en) * | 2022-07-19 | 2022-09-02 | 山东省计算中心(国家超级计算济南中心) | Medical data sharing and privacy protection method and system based on federal learning |
CN115376031A (en) * | 2022-10-24 | 2022-11-22 | 江西省科学院能源研究所 | Road unmanned aerial vehicle routing inspection data processing method based on federal adaptive learning |
CN116489163B (en) * | 2023-06-16 | 2023-09-19 | 清华大学 | Edge personalized collaborative learning method and device based on multiple chains |
CN116489163A (en) * | 2023-06-16 | 2023-07-25 | 清华大学 | Edge personalized collaborative learning method and device based on multiple chains |
CN117610644A (en) * | 2024-01-19 | 2024-02-27 | 南京邮电大学 | Federal learning optimization method based on block chain |
CN117610644B (en) * | 2024-01-19 | 2024-04-16 | 南京邮电大学 | Federal learning optimization method based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113052331A (en) | Block chain-based Internet of things personalized federal learning method | |
CN112861152B (en) | Federal learning incentive method and system based on license chain | |
US11153101B2 (en) | Scalable certificate management system architectures | |
CN110300969B (en) | Voting-consensus distributed account book | |
CN111543070A (en) | Trusted IOT device configuration and loading | |
Sinha et al. | Building an E Ective IoT Ecosystem for Your Business | |
CN108197891B (en) | Electronic signing device and method based on block chain | |
US20190012592A1 (en) | Secure federated neural networks | |
US20200366493A1 (en) | Distributed self sovereign identities for network function virtualization | |
CN111681007B (en) | Credit scoring method, transaction method and related device for blockchain | |
US20220075893A1 (en) | System and method for maintaining graphs having a policy engine and blockchain | |
US11218463B2 (en) | Trust establishment to deploy servers in data centers | |
CN112527912A (en) | Data processing method and device based on block chain network and computer equipment | |
US20150067667A1 (en) | Validating availability of firmware updates for client devices | |
CN113221183A (en) | Method, device and system for realizing privacy protection of multi-party collaborative update model | |
CN113746638B (en) | NFT storage method, NFT restoration method, computer device, and storage medium | |
US20210232981A1 (en) | Method and system for incremental training of machine learning models on edge devices | |
CN112446039A (en) | Block chain transaction processing method, device, equipment and storage medium | |
CN114978635A (en) | Cross-domain authentication method and device, and user registration method and device | |
CN111880919A (en) | Data scheduling method, system and computer equipment | |
US11431493B1 (en) | Systems and methods for secure authentication | |
CN114553440A (en) | Cross-data center identity authentication method and system based on block chain and attribute signature | |
US11622252B2 (en) | Methods and systems for management and control of communication network | |
CN112100145A (en) | Digital model sharing learning system and method | |
JP2023120287A (en) | Scalable certificate management system architecture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210629 |
|
WD01 | Invention patent application deemed withdrawn after publication |