Malicious node identification method for federated learning based on blockchain

By introducing blockchain technology and malicious node screening module into the federated learning system, malicious nodes are identified and eliminated, which solves the problem of malicious node attacks in the federated learning system, improves the security and accuracy of the system, and achieves decentralization. The training method avoids single node manipulation.

CN114418092BActive Publication Date: 2024-09-06CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210055714.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2024-09-06
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

The existing federated learning system cannot effectively identify and handle malicious node attacks, resulting in performance degradation and global model errors, and lacks a recovery mechanism.

Method used

The blockchain-based federated learning malicious node screening method is adopted. By deploying the federated learning module, blockchain ledger and malicious node screening module on each node, the training process is recorded, the distance between models is calculated, voting screening is performed and malicious nodes are eliminated. Securing model transmission using homomorphic encryption.

Benefits of technology

It improves the security and accuracy of the federated learning system, achieves effective identification and elimination of malicious nodes, ensures the security and auditability of model transmission, and avoids the risk of single-node manipulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114418092B
    Figure CN114418092B
Patent Text Reader

Abstract

The present invention discloses a method for identifying malicious nodes in federated learning based on blockchain, which uses blockchain account books to record the federated learning process and verify whether the model is consistent, thereby protecting the security of the federated learning process and achieving auditability, so that the influence of malicious nodes can be eliminated when encountering malicious nodes, using the distance between models to represent the difference of models, using the method of global voting on outlier models to identify and eliminate malicious nodes, and using a decentralized training method to evenly distribute the power of each node in the entire federated learning process, so that the entire federated learning process avoids being too centralized and controlled by one node. The problem of being unable to circumvent, identify attacks and recover from malicious attacks to normal training in the federated learning process is solved, and the overall security of the federated learning system is improved by using blockchain to prevent the model from being maliciously tampered with during the transmission process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning technology, and more specifically to a method for identifying malicious nodes in federated learning based on blockchain. Background Art

[0002] At present, with the introduction of the concept of edge intelligence, more and more intelligent applications will be trained and executed on the edge side. Traditional cloud intelligence adopts the method of uploading raw data to the cloud center for model training, which has disadvantages such as high transmission latency and user privacy leakage. To solve this problem, a distributed model training architecture based on federated learning (FL) came into being. Under the FL-based distributed training architecture, edge-side terminal devices can use their own collected data to perform training tasks locally, and then upload the trained local model parameters to the cloud server for model aggregation. Compared with directly uploading the original training data, this architecture chooses to upload the model parameters after training, which can effectively reduce the data transmission cost while protecting user privacy.

[0003] However, the edge terminal devices are not completely trustworthy. There are some malicious nodes that tamper with the training results. Uploading wrong parameters will reduce FL performance. In the existing federated learning, the training models from each node are not verified, which can be easily intercepted and modified by malicious people during the transmission process, resulting in the performance of the entire federated learning system. In serious cases, the global model cannot be fitted. In addition, there is no process for identifying and processing malicious models generated by malicious nodes in the existing federated learning, which can easily lead to incorrect judgments of some small number of categories in the global model. At the same time, after an attack occurs, in the existing federated learning, even if the attack is discovered, there is no effective means to recover from the wrong model.

[0004] Therefore, how to combat malicious attacks against federated learning nodes to improve the efficiency and accuracy of federated learning is an urgent problem that technicians in this field need to solve. Summary of the invention

[0005] In view of this, the present invention provides a method for identifying malicious nodes in federated learning based on blockchain, which solves the problem that malicious nodes cannot be effectively identified during the federated learning process, and that federated learning cannot smoothly avoid the attack and recover from the malicious attack to normal training after the malicious node attack occurs. The present invention uses blockchain to improve the overall security of the federated learning system and prevent the model from being maliciously tampered with during the transmission process.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] A method for identifying malicious nodes in federated learning based on blockchain includes the following specific steps:

[0008] Step 1: Deploy the federated learning module, the federated learning process blockchain ledger, and the malicious node identification module on each node, and start and run them simultaneously;

[0009] Step 2: Get the task. Each node sends a task request to the task issuing node and initializes the training round. After receiving the task request, the task issuing node sends the task content, task model and current central node to all non-central nodes. The first node that sends a task acquisition request to the task issuing node will be designated as the central node for the first round of training. Non-central nodes are all other nodes except the central node.

[0010] Step 3: After receiving the task content, task model and training information, each node starts to perform federated learning training in its federated learning module. The current central node does not perform model training but is in a listening state, waiting to receive the neural network model sent by all non-central nodes. All non-central nodes that are not central nodes use the local training set in the local data to train to obtain the neural network model; the blockchain account book of the federated learning process of all the nodes records the training process; the training information includes deep learning training parameters such as training rounds and learning rates, addresses of other nodes in the network and the central node; local data includes local test sets and local training sets;

[0011] Step 4: After the current central node receives the neural network model from all non-central nodes, it performs federated average fusion to obtain a global model, and the current central node sends the global model to all non-central nodes. The malicious node identification module of the central node is activated to identify malicious nodes, and the identified nodes are recorded with malicious node labels in the blockchain account book of the federated learning process and are removed; at the same time, the training round is increased by 1;

[0012] Step 5: If the training round is less than or equal to the set value, the current central node of this round tests the accuracy of the neural network model trained by all non-central nodes, sorts the calculated accuracy from high to low, and arbitrarily selects any node corresponding to the accuracy in the top 20% as the central node for the next round of training, and returns to step 3; otherwise, the training ends. The global model of the current central node is the final model of training. The local test set in the local data of the current central node is input into the neural network model to obtain the prediction result. The prediction result is compared with the true value to determine whether it is correct and the number of correct judgments is counted. Accuracy = number of correct judgments / total number.

[0013] Preferably, the federated learning module is used in the process of training using a local training set in the federated learning framework; the federated learning process blockchain ledger is used in the federated learning framework to record the entire training process using blockchain, and the ledgers on all nodes in the federated learning network are synchronized through the blockchain to complete the recording of each process in the federated learning by the entire blockchain; the malicious node identification module is independent of the federated learning module and the federated learning process blockchain ledger. When the node acts as the central node of a round of federated learning, the module takes effect, tests the models uploaded by each node using a local test set, and calculates the distance between the models, that is, obtains the bulldozer distance between the two neural network models, selects models with low accuracy and outliers, and after selecting the models that meet the requirements, completes the voting process to further identify malicious nodes.

[0014] Preferably, when the external environment requires the federated learning network to train a task, the task publishing node will publish the task content and model to the node; during formal training, each federated learning node pulls the task content and task model from the task publishing node, downloads them locally, and starts federated learning training.

[0015] Preferably, when the federated learning training is performed, the federated learning process blockchain ledger records the entire federated learning process, and each blockchain contains the following contents: block number, hash value of the block, hash value of the previous block, timestamp and learning process information; wherein the learning process information is a json string, and contains the following information: the round of the federated learning training, the action sender, the action receiver and the hash value of the model involved in the action;

[0016] When the node generates the following operations, they are recorded in the blockchain account book of the federated learning process, including: the node receives the task from the task issuing node, the non-central node sends the neural network model to the central node, the central node sends the global model to all non-central nodes, the central node performs model fusion, and replaces the central node.

[0017] Preferably, the federated learning training round is defined as counting from 1. When the federated learning process information recorded in the blockchain ledger of the federated learning process is to receive a task from the task issuing node, the training round is set to 0.

[0018] Preferably, each node synchronizes the block to all other nodes in the system except the node whenever it adds a block to the blockchain ledger. Each node in the entire federated learning training network has all copies of the blockchain ledger of the federated learning process.

[0019] Preferably, the malicious node identification module of the central node is activated to perform malicious node identification, and the specific process is as follows:

[0020] Step 41: the central node receives the neural network model sent by each node, and uses the local test set in the local data to test each neural network model to obtain the accuracy of each neural network model;

[0021] Step 42: The central node calculates the earth moving average distance (EMD) between each pair of the neural network models to form a model distance table, in which the rows and columns are the model numbers transmitted by each node, and the intersection of each row and column is the distance between the models corresponding to the row and column;

[0022] Step 43: Calculate the distance reference value between the model and other models according to the model spacing table; the sum of all distances in each row in the table is the model distance corresponding to the row and the other distance reference value, that is, the sum of the distances between a model and all other models is used as the distance reference value between the model and other models;

[0023] Step 44: Select a neural network model whose distance reference value is greater than 50% of the average distance reference value of all models, and check whether the accuracy is lower than 50% of the average accuracy of all models. If so, send the neural network model to all non-central nodes for voting; if not, all non-central nodes are judged as non-malicious nodes, and enter the step 5;

[0024] Step 45: After receiving the neural network model to be voted, each node in the non-central node uses the local test set to test and obtain the accuracy rate. If the accuracy rate is 50% lower than the neural network model trained by the node in this round, the received neural network model is voted as a malicious model;

[0025] Step 46: If more than or equal to two-thirds of all non-central nodes determine that the neural network model that needs to be voted is the malicious model, the node corresponding to the malicious model is recorded as a malicious node and recorded in the blockchain account book of the federated learning process, and in the next round of training, the malicious node is removed from the node list;

[0026] Step 47: After all nodes read the identification record of the malicious node in the blockchain ledger of the federated learning process, they remove the node from the local node list. The node list records which nodes in the network have participated in the training, which is convenient for model transmission and blockchain ledger synchronization; the identification record is read at the beginning of each round of training; the identification record refers to the information marked as a malicious node in the blockchain ledger of the federated learning process of the malicious node.

[0027] Preferably, before performing federal average fusion, other security verification methods are first used to verify whether the model is accurate. The specific process is: after the central node of this round receives the neural network model of each non-central node, the hash value of the neural network model is calculated, and compared with the model hash value in the blockchain ledger of the federated learning process, and the Python library is called to implement the model hash value calculation; if they are consistent, the neural network model has not been tampered with; if they are inconsistent, the neural network model has been tampered with during the transmission process, and the current neural network model is discarded, and the corresponding node is required to resend; if the hash value still cannot match after more than five requests for resending, the corresponding node is identified as a malicious node, and the federated learning process blockchain ledger is recorded, so that the node is removed from the node list of all nodes in the entire network including the central node and the non-central node except the malicious node.

[0028] Preferably, when the central node transmits the neural network model to all other non-central nodes in each round of training, homomorphic encryption is used to prevent the model from being intercepted during transmission, resulting in leakage of model information content.

[0029] Preferably, when the central node finds a malicious node in each round of training, the neural network model of the malicious node begins to be eliminated in the federal average fusion of this round, and the historical operation information of the malicious node is found from the blockchain network, and the historical operation of the malicious node is rolled back, that is, if the current round of fusion already includes a malicious node, the central node removes the node and re-integrates.

[0030] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a method for identifying malicious nodes in federated learning based on blockchain, which uses a blockchain account book to record the federated learning process to verify whether the model is consistent, thereby protecting the security of the federated learning process and achieving auditability, so that the influence of malicious nodes can be eliminated when encountering malicious nodes; the distance between models is used to represent the difference between models, and a global voting method for outlier models is adopted to identify and eliminate malicious nodes; a decentralized training method is adopted to evenly distribute the power of each node in the entire federated learning process, so that the entire federated learning process is prevented from being overly concentrated and controlled by one node. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0032] Figure 1 The accompanying figure is a flow chart of a method for identifying malicious nodes in federated learning based on blockchain provided by the present invention;

[0033] Figure 2 The accompanying drawing is a malicious node identification flow chart provided by the present invention. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] The embodiment of the present invention discloses a method for identifying malicious nodes in federated learning based on blockchain, comprising the following specific steps:

[0036] S1: Deploy the federated learning module, the federated learning process blockchain ledger, and the malicious node identification module on each node, and start and run them simultaneously;

[0037] S2: Get the task. Each node sends a task request to the task issuing node and initializes the training round. After receiving the task request, the task issuing node sends the task content, task model and current central node to all non-central nodes. The first node that sends a task acquisition request to the task issuing node will be designated as the central node for the first round of training. Non-central nodes are all other nodes except the central node.

[0038] S3: After receiving the task content, task model and training information, each node starts to conduct federated learning training in its federated learning module. The current central node does not conduct model training but is in a listening state, waiting to receive the neural network model sent by all non-central nodes. All non-central nodes that are not central nodes use the local training set in the local data to train and obtain the neural network model; the blockchain ledger of the federated learning process of all nodes records the training process; local data includes local test sets and local training sets;

[0039] S4: After the current central node receives the neural network models sent by all non-central nodes, it performs federated average fusion to obtain the global model, and the current central node sends the global model to all non-central nodes. The malicious node identification module of the central node is activated to identify malicious nodes. The identified nodes are recorded with malicious node labels in the blockchain account book of the federated learning process and are removed. At the same time, the training round is increased by 1;

[0040] S41: The central node receives the neural network models sent by each node, and uses the local test set in the local data to test each neural network model to obtain the accuracy of each neural network model;

[0041] S42: The central node calculates the earth moving average distance (EMD) between each pair of neural network models to form a model distance table, in which the rows and columns are the model numbers transmitted by each node, and the intersection of each row and column is the distance between the models corresponding to the row and column;

[0042] S43: Calculate the distance reference value between the model and other models according to the model spacing table; the sum of all distances in each row in the table is the model distance and other distance reference value corresponding to the row;

[0043] S44: Select a neural network model whose distance reference value is greater than 50% of the average value of all distance reference values, and check whether the accuracy is lower than 50% of the average accuracy of all models. If so, send the neural network model to all non-central nodes for voting; if not, all non-central nodes are judged as non-malicious nodes and enter S5;

[0044] S45: After receiving the neural network model to be voted, each node in the non-central node uses the local test set to test and obtain the accuracy. If the accuracy is 50% lower than the neural network model trained by the node in this round, the received neural network model is voted as a malicious model;

[0045] S46: If more than or equal to two-thirds of all non-central nodes determine that the neural network model that needs to be voted is a malicious model, the node corresponding to the malicious model is recorded as a malicious node and recorded in the blockchain ledger of the federated learning process, and in the next round of training, the malicious node is removed from the node list;

[0046] S47: After all nodes read the identification record of the malicious node in the blockchain ledger of the federated learning process, they remove the node from the local node list.

[0047] S5: If the training round is less than or equal to the set value, the current central node of this round tests the accuracy of the neural network models trained by all non-central nodes, sorts the calculated accuracy from high to low, and selects any node in the top 20% of the accuracy corresponding nodes as the central node of the next round of training, and returns to S3; otherwise, the training ends. The global model of the current central node is the final model of the training.

[0048] In order to further optimize the above technical solutions, the federated learning module is used in the process of training using the local training set in the federated learning framework; the federated learning process blockchain ledger is used in the federated learning framework to record the entire training process using the blockchain, and the ledgers on all nodes in the federated learning network are synchronized through the blockchain to complete the recording of each process in the federated learning by the entire blockchain; the malicious node identification module is independent of the federated learning module and the federated learning process blockchain ledger. When the node acts as the central node of a round of federated learning, this module will take effect, test the models uploaded by each node using the local test set, calculate the distance between models, select models with low accuracy and outliers, and complete the voting process after selecting the models that meet the requirements, so as to further identify malicious nodes.

[0049] In order to further optimize the above technical solution, when the external environment requires the federated learning network to train a task, the task publishing node will publish the task content and model to the node; during formal training, each federated learning node will pull the task content and task model from the task publishing node, download them locally, and start federated learning training.

[0050] In order to further optimize the above technical solution, during the federated learning training, the federated learning process blockchain ledger records the entire federated learning process. Each blockchain contains the following contents: block number, hash value of the block, hash value of the previous block, timestamp and learning process information; among them, the learning process information is a json string, which contains the following information: the round of federated learning training, the sender of the action, the receiver of the action and the hash value of the model involved in the action;

[0051] When a node generates the following operations, they are recorded in the blockchain ledger of the federated learning process, including: the node receives tasks from the task publishing node, the non-central node sends the neural network model to the central node, the central node sends the global model to all non-central nodes, the central node performs model fusion, and replaces the central node.

[0052] In order to further optimize the above technical solution, the federated learning training round is defined as starting from 1. When the federated learning process information recorded in the blockchain ledger of the federated learning process is to receive the task from the task issuing node, the training round is set to 0.

[0053] In order to further optimize the above technical solution, every time each node adds a block to the blockchain ledger, it synchronizes the block to all other nodes in the system except this node. Each node in the entire federated learning training network has all copies of the blockchain ledger of the federated learning process.

[0054] In order to further optimize the above technical solution, before performing federal average fusion, other security verification methods are first used to verify whether the model is accurate. The specific process is: after the central node of this round receives the neural network model of each non-central node, the hash value of the neural network model is calculated, and compared with the model hash value in the blockchain ledger of the federated learning process, and the Python library is called to implement the model hash value calculation; if they are consistent, the neural network model has not been tampered with; if they are inconsistent, the neural network model has been tampered with during the transmission process, then the current neural network model is discarded, and the corresponding node is required to resend; if the hash value still cannot match after more than five requests for resending, the corresponding node is identified as a malicious node, and the federated learning process blockchain ledger record is used to remove the node from the node list of all nodes in the entire network, including the central node and the non-central node.

[0055] In order to further optimize the above technical solution, when the central node of each round of training transmits the neural network model to all other non-central nodes, homomorphic encryption is used to prevent the model from being intercepted during transmission and causing the model information content to be leaked.

[0056] In order to further optimize the above technical solution, when the central node finds a malicious node in each round of training, it will start to remove the neural network model of the malicious node in the federal average fusion of this round, and find the historical operation information of the malicious node from the blockchain network, and roll back the historical operations of the malicious node. That is, if the current round of fusion already includes a malicious node, the central node will remove the node and re-integrate it.

[0057] In order to further optimize the above technical solution, the method for calculating the model distance in S42 also includes Euclidean distance, Mahalanobis distance or Manhattan distance.

[0058] Beneficial effects of the present invention:

[0059] (1) Security: Blockchain is used to protect the model from being tampered with, malicious nodes are eliminated to protect the security of the training process, and homomorphic encryption is used to prevent the model from being leaked even if it is intercepted during transmission. The model is encrypted before transmission, and the encryption process is implemented by using Python to call the interface of the relevant package.

[0060] (2) Auditability: The entire federated learning process is recorded using a blockchain ledger, which is also backed up synchronously on each blockchain node. This allows the operator to find the operation record in the ledger when encountering a malicious node, and eliminate the operations performed by the malicious node.

[0061] (3) Power decentralization: A decentralized federated learning method is built on a blockchain-based structure, which avoids the traditional federated learning process in which there is only one central node for training. This can prevent a single node from having too much power in the entire federated learning process and thus controlling the entire federated learning process.

[0062] 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 disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0063] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for identifying malicious nodes in federated learning based on blockchain, characterized in that: The specific steps include: Step 1: Deploy the federated learning module, the federated learning process blockchain ledger, and the malicious node identification module on each node, and start and run them simultaneously; Step 2: Obtain the task. Each node sends a task request to the task publishing node, obtains the task content, task model and central node, and initializes the training round; Step 3: After receiving the task content, task model and training information, each node starts to perform federated learning training in its federated learning module. The current central node is in a listening state, waiting to receive the neural network model sent by all non-central nodes. The non-central node uses the local training set in the local data to train and obtain the neural network model; the blockchain account book of the federated learning process of the non-central node records the training process; Step 4: After the current central node receives the neural network model from all non-central nodes, it performs federated average fusion to obtain a global model, and the current central node sends the global model to all non-central nodes. At the same time, the malicious node identification module of the central node is activated to identify malicious nodes. The identified nodes are recorded with malicious node labels in the blockchain account book of the federated learning process and are removed. The training round is increased by 1. Step 5: If the training round is less than or equal to the set value, the current central node of this round tests the accuracy of the neural network model trained by all non-central nodes, selects the central node for the next round of training according to the accuracy, and returns to step 3; Otherwise, the training is terminated, and the global model of the current central node is the final model of the training.

2. According to a method for identifying malicious nodes in federated learning based on blockchain according to claim 1, it is characterized in that: When the federated learning training is carried out, the federated learning process blockchain account book records the federated learning process in its entirety. Each blockchain contains the following contents: block number, hash value of the block, hash value of the previous block, timestamp and learning process information; wherein the learning process information is a json string, which contains the following information: the round of the federated learning training, the action sender, the action receiver and the hash value of the model involved in the action; When the node receives the task from the task issuing node, the non-central node sends the neural network model to the central node, the central node sends the global model to all non-central nodes, the central node performs model fusion or replaces the central node, it is recorded in the blockchain account book of the federated learning process.

3. According to a method for identifying malicious nodes in federated learning based on blockchain according to claim 1, it is characterized in that: The federated learning training round is defined as starting from 1. When the federated learning process information recorded in the blockchain ledger of the federated learning process is to receive the task from the task publishing node, the training round is set to 0.

4. According to a method for identifying malicious nodes in federated learning based on blockchain according to claim 1, it is characterized in that: Whenever each node adds a new block to the blockchain ledger, it synchronizes the block to all other nodes except this node. Each node in the entire federated learning training network has all copies of the blockchain ledger of the federated learning process.

5. According to a method for identifying malicious nodes in federated learning based on blockchain according to claim 1, it is characterized in that: The malicious node identification module of the central node is activated to identify malicious nodes. The specific process is as follows: Step 41: the central node receives the neural network model sent by each node, and uses the local test set in the local data to test each neural network model to obtain the accuracy of each neural network model; Step 42: the central node calculates the bulldozer distances between each pair of the neural network models to obtain an inter-model distance table; Step 43: Calculate the distance reference value between the model and other models according to the model spacing table; Step 44: Select a neural network model whose distance reference value is greater than 50% of the average value of all distance reference values, and check whether the accuracy is lower than 50% of the average accuracy of all models. If so, send the neural network model to all non-central nodes for voting; if not, all non-central nodes are judged as non-malicious nodes, and enter the step 5; Step 45: After receiving the neural network model to be voted, the non-central node uses the local test set to test and obtain the accuracy rate. If the accuracy rate is 50% lower than the neural network model trained by the node in this round, the received neural network model is voted as a malicious model; Step 46: If more than or equal to two-thirds of the non-central nodes determine that the neural network model that needs to be voted is the malicious model, the node corresponding to the malicious model is recorded as a malicious node and recorded in the blockchain account book of the federated learning process, and in the next round of training, the malicious node is removed from the node list; Step 47: After all nodes read the identification record of the malicious node in the blockchain ledger of the federated learning process, they remove the node from the local node list.

6. According to a method for identifying malicious nodes in federated learning based on blockchain in claim 1, it is characterized in that: In the step 5, the calculated accuracy rates are sorted from high to low, and any node corresponding to the accuracy rate that is ranked in the top 20% is arbitrarily selected as the central node for the next round of training.

7. According to a method for identifying malicious nodes in federated learning based on blockchain according to claim 1, it is characterized in that: Before the federated average fusion is performed, other security verification methods are first used to verify whether the model is accurate. The specific process is as follows: after the central node of this round receives the neural network model of each non-central node, the hash value of the neural network model is calculated and compared with the model hash value in the blockchain account book of the federated learning process; if they are consistent, the neural network model has not been tampered with; if they are inconsistent, the neural network model has been tampered with during the transmission process, and the current neural network model is discarded, and the corresponding node is required to resend; If the hash value still cannot match after more than five resend requests, the corresponding node is identified as a malicious node, and the blockchain account book is recorded through the federated learning process, so that the node is removed from the node list of all nodes in the entire network.

8. According to a method for identifying malicious nodes in federated learning based on blockchain according to claim 1, it is characterized in that: When the central node transmits the neural network model to all other non-central nodes in each round of training, homomorphic encryption is used to prevent the neural network model from being intercepted during transmission and causing leakage of model information content.

9. According to a method for identifying malicious nodes in federated learning based on blockchain according to claim 1, it is characterized in that: When the central node finds a malicious node in each round of training, it starts to remove the neural network model of the malicious node in the federal average fusion of this round, finds the historical operation information of the malicious node from the blockchain network, and rolls back the historical operations of the malicious node.