A blockchain-based neural network model hosting training system

Through the blockchain-based neural network model hosting training system, the problem of insufficient data in neural network model training is solved, automatic training and data privacy protection are realized, and the training effect and data security are ensured.

CN113792873BActive Publication Date: 2024-09-17ZHEJIANG DIGITAL QIN TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202110976716.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-24
Publication Date
2024-09-17
Estimated Expiration
2041-08-24

AI Technical Summary

Technical Problem

Existing technologies cannot effectively solve the problem of lack of sufficient high-quality data in practical applications of neural network models, resulting in difficulty in training neural network models.

Method used

A blockchain-based neural network model hosting training system is adopted to receive and store data from multiple data sources in a distributed manner through receiving nodes and data storage nodes. The hosting nodes automatically find and train the target neural network model to ensure data privacy protection and in the area. Transaction records are recorded on the blockchain.

Benefits of technology

It realizes the automatic training of neural network models, protects data privacy, avoids multiple billing for the same data, can automatically perform training when the data is not prepared at the same time, does not require manual attendance, and ensures the training effect through backup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113792873B
    Figure CN113792873B
Patent Text Reader

Abstract

The present invention relates to the field of machine learning technology, and in particular to a blockchain-based neural network model hosting training system, including: a receiving node, which assigns batch numbers and row numbers to data rows; a plurality of data storage nodes, which store data rows in a dispersed manner; a hosting node, which obtains a target neural network model, obtains the row numbers of data rows containing input fields and output fields of the target neural network model, requests to call data rows with corresponding row numbers, generates bills, uses a test data set to obtain the accuracy of the target neural network model, and if the accuracy meets the preset accuracy requirements, sends the bill to the user, and after the user transfers the token corresponding to the bill to the virtual account of the hosting node, the hosting node provides the trained neural network model to the user. The substantial effect of the present invention is: automatically matching the target neural network model and data, and protecting the privacy of the data.
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 in particular to a blockchain-based neural network model hosting training system. Background Art

[0002] Neural network is a complex network system formed by a large number of simple processing units, called neurons, which are widely interconnected. It is a highly complex nonlinear dynamic learning system. The neural network model consists of three parts: input layer, intermediate layer or hidden layer, and output layer. Neuron is an information processing unit with multiple inputs and single output, and it is nonlinear. In engineering, neurons are abstracted as a simple mathematical model, that is, the output value of the previous level of neurons is weighted summed as a threshold, and the threshold is substituted into the activation function to obtain the output of the neuron. Neural networks have large-scale parallel, distributed storage and processing, self-organization, self-adaptation and self-learning capabilities, and are particularly suitable for dealing with imprecise and fuzzy information processing problems that require considering many factors and conditions at the same time. Reasonably designed and well-trained neural network models have good results in dealing with these complex problems. Neural network technology has been widely used in the fields of automatic control, combinatorial optimization problems, pattern recognition, image processing, signal processing, robot control, and health care. At present, the theory of neural network models has developed rapidly, but it has also encountered the problem of lack of sufficient high-quality data to train the established neural network models in practical applications. Due to competition and privacy protection, enterprises and institutions cannot directly exchange data. This results in units that build and use neural network models lacking data for training neural networks.

[0003] Chinese patent CN112801292A is the prior art closest to the present application. Its publication date is May 14, 2021. It records a neural network training method and system based on blockchain smart contracts. The method includes: receiving the original data set and bonus submitted by the organization user; dividing the original data set into a training data set and a test data set, and dividing the training data set into A training data subsets, A≥2; responding to the training data acquisition request message sent by B participating users, sending A training data subsets to B participating users respectively, B≥2; receiving C training sub-results sent by B participating users respectively, and summarizing the C training sub-results to obtain the training results; verifying the training results through the test data set, and if the training results pass the verification, paying bonuses to B participating users. It can avoid fraudulent behavior of each node through the designed data distribution and bonus distribution scheme. However, this technical solution can only solve the problem of decentralized computing power in neural network training and improve the efficiency of neural network training, but it cannot solve the problem of lack of training data for neural networks. Summary of the invention

[0004] The technical problem to be solved by the present invention is that there is currently a lack of a neural network model training method suitable for multiple data sources. A blockchain-based neural network model hosting training system is proposed. The system can integrate data from multiple data sources and perform hosting training on the target neural network model.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: a blockchain-based neural network model hosting training system, including: a receiving node, receiving a target neural network model, a test data set and data rows uploaded by a data source in batches, assigning batch numbers and row numbers to the data rows, associating the fields of the data rows with the row numbers and making them public; a plurality of data storage nodes, connected to the receiving node, wherein the receiving node stores the data rows in a dispersed manner on the plurality of data storage nodes; a hosting node, connected to the receiving node, obtaining the target neural network model, obtaining the input field and output field of the target neural network model, obtaining the row number of the data row containing the input field and output field of the target neural network model, requesting to call the data row with the corresponding row number from the plurality of data storage nodes, and generating a bill, using the test data set to obtain the accuracy of the target neural network model, and if the accuracy meets the preset accuracy requirement, sending the bill to the user, after the user transfers the token corresponding to the bill to the virtual account of the hosting node, the hosting node provides the trained neural network model to the user, and transfers the token to the virtual account of the data source, and if the accuracy does not meet the preset accuracy requirement, waiting for the receiving node to receive a new data row containing the input field and output field of the target neural network model.

[0006] Preferably, the hosting node establishes a history record table for the target neural network model, and the history record table records the row hash values ​​of the data rows substituted into the target neural network model for training. Before the hosting node substitutes the new data row into the target neural network model, it extracts the row hash value of the new data row and queries it in the history record table. If the row hash value already exists in the history record table, the data row is skipped and not included in the bill. If the row hash value does not exist in the history record table, the data row is substituted into the target neural network model for training, the row hash value is added to the history record table, and included in the bill.

[0007] Preferably, the receiving node assigns a model number to the target neural network model, the data storage node establishes a call record table, and when the hosting node calls data from the data storage node, it sends the row number and model number to the data storage node. When the data storage node receives the call request, it records the row number and model number in the call record table in association with the timestamp. The data storage node periodically extracts the hash value of the newly added records in the call record table and uploads it to the blockchain storage, and the hosting node periodically uploads the hash value of the historical record table in association with the model number to the blockchain storage.

[0008] Preferably, the hosting node backs up the current target neural network model and records the accuracy of the current neural network model before substituting the batch data rows. After the data rows of the batch data are input into the neural network training, the accuracy of the target neural network model is obtained using the test data set. If the accuracy increases, the backed-up target neural network model is discarded. If the accuracy decreases, the target application network model is returned to the backup.

[0009] Preferably, when the hosting node substitutes the data row into the target neural network model training, it periodically generates backup points and uses the test data set to obtain the accuracy of the target neural network model at the backup point. If the accuracy corresponding to the current backup point is lower than that of the previous backup point, the target neural network model is rolled back to the previous backup point.

[0010] Preferably, when the receiving node receives a data row, it creates several copies of the data row, the number of copies matches the number of data storage nodes, converts non-numeric fields in the data row into numeric fields, splits the true value of the numeric field into several addends, the number of addends matches the number of copies, and distributes the several addends to several copies for storage. When the hosting node requests to call the data row with the corresponding row number, the data storage node submits the corresponding data row to the hosting node. After the hosting node restores the data row and substitutes it into the target neural network model, it destroys the restored data row.

[0011] Preferably, when the receiving node receives a data row, it creates several copies for the data row, the number of copies matches the number of data storage nodes, converts non-numeric fields in the data row into numeric fields, splits the true value of the numeric field into several addends, the number of addends matches the number of copies, and distributes the several addends to several copies for storage. When the hosting node requests to call the data row with the corresponding row number, it sends the row number of the data row and the input number calculation formula of the neuron of the target neural network model directly involving the data row field to several data storage nodes. The data storage node substitutes the stored addend into the input number calculation formula and sends the obtained input number to the hosting node. The hosting node sums all the received input numbers as the final input number of the neuron, substitutes the input number into the activation function, obtains the output of the neuron, and the hosting node continues to solve the output of the target neural network model.

[0012] The substantial effects of the present invention are as follows: by receiving data provided by a data source through a receiving node and a data storage node, data accumulation for training a neural network model is provided; the hosting node automatically searches for data that meets the requirements and substitutes the data into the target neural network model for training, so that the training of the target neural network can be carried out automatically, and the target neural network model and data can be automatically matched; after the neural network training is completed, only the trained neural network model is exported, and the data of the data source will not be leaked, thereby effectively protecting the privacy of the data; the training data can be automatically waited for and searched for without manual supervision when the training data are not ready at the same time; the data has the ability to distinguish, thereby avoiding multiple billings for the same data; the training effect of the neural network model is guaranteed by backup; and improved multi-party computing through multiple data storage nodes can more effectively protect the privacy of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is a schematic diagram of the structure of the neural network model hosting training system according to Example 1.

[0014] Figure 2 This is a schematic diagram of a historical record collection in accordance with Embodiment 1.

[0015] Figure 3 This is a schematic diagram of data row storage in embodiment 1.

[0016] Among them: 10, target neural network model, 20, test data set, 30, data source, 31, data row, 32, replacement number table, 33, addend, 34, replica, 40, receiving node, 50, hosting node, 51, history table, 52, row hash value, 53, model number, 60, data storage node, 61, call record table, 62, timestamp. DETAILED DESCRIPTION

[0017] The specific implementation of the present invention will be further described below through specific examples in conjunction with the accompanying drawings.

[0018] Embodiment 1:

[0019] A blockchain-based neural network model hosting training system, please see the attached Figure 1, this embodiment includes: a receiving node 40, which receives the target neural network model 10, the test data set 20 and the data rows 31 uploaded by the data source 30 in batches, assigns batch numbers and row numbers to the data rows 31, associates the fields of the data rows 31 with the row numbers and makes them public; a plurality of data storage nodes 60, which are connected to the receiving node 40, and the receiving node 40 stores the data rows 31 in a dispersed manner on the plurality of data storage nodes 60; a hosting node 50, which is connected to the receiving node 40, obtains the target neural network model 10, obtains the input fields and output fields of the target neural network model 10, and obtains a The row number of the data row 31 is requested to call the data row 31 with the corresponding row number from several data storage nodes 60, and a bill is generated. The accuracy of the target neural network model 10 is obtained using the test data set 20. If the accuracy meets the preset accuracy requirement, the bill is sent to the user. After the user transfers the token corresponding to the bill to the virtual account of the escrow node 50, the escrow node 50 provides the trained neural network model to the user and transfers the token to the virtual account of the data source 30. If the accuracy does not meet the preset accuracy requirement, the receiving node 40 is waited for to receive the new data row 31 containing the input field and output field of the target neural network model 10. The best implementation method of this embodiment is that the escrow user establishes the structure, loss function and gradient function of the neural network, assigns the initial value of the weight coefficient, and then hands it over to this embodiment for escrow training. The escrow node 50 in this embodiment will actively find the data row 31 that meets the conditions, substitute it into the neural network model, obtain the loss function value and gradient value, and update the weight coefficient of the neural network model according to the gradient value. After training with a certain amount of data rows 31, the neural network model will have an accuracy that meets the preset conditions. It can be delivered to the escrow user to complete the task of escrow training.

[0020] For example, the customer churn warning model established by Bank A is used to determine whether there is a risk of churn of customers, so as to remind bank staff to contact customers in time, understand the business status, and recover customer churn. In this embodiment, customer churn refers to the termination and cancellation of all business of the bank by customers. However, a specific business department can define the termination behavior of customers in all or some businesses of the department separately. This embodiment takes the churn warning of credit card customers as an example for illustration. Since there is an annual fee for credit cards, once a customer no longer uses a credit card of a certain bank, the credit card will usually be cancelled in a relatively timely manner. Therefore, in this embodiment, credit card cancellation customers are identified as churned customers. The input fields of this neural network are: the customer's age, gender, education, city of residence, average interval time of credit card transactions, average amount of credit card transactions, number of participation in credit card promotion activities, whether there is a debit card of this bank, and the time from the last credit card transaction to the present. Bank A, Bank B and Bank C all have data covering the above input fields.

[0021] Since Bank A has been engaged in credit card business for a short period of time and has less credit card user data, it is difficult to effectively train the customer churn warning model. Therefore, after establishing the structure of the target neural network model 10, determining the initial weight coefficient, loss function and gradient function, the target neural network model 10 is submitted to the hosting node 50, and part of its existing credit card customer data is submitted to the hosting node 50 as test data. If Bank A does not submit test data, the hosting node 50 specifies several data rows 31 from the data source 30 to test the accuracy of the target neural network. The hosting node 50 analyzes the target neural network to obtain its input field and output field, and the output field is the result of whether the user cancels the account. Bank B uploads its data to the receiving node 40 to share its data and earn revenue at the same time. The use pricing of a single data row 31 is not discussed in this embodiment. After receiving the data submitted by Bank B, the receiving node 40 makes the field structure and row number of the data public. The hosting node 50 queries the field structure and finds that the data submitted by Bank B can be used for training the target neural network. And through the public row number, the data row 31 can be accurately specified. The hosting node 50 requests to call the data row 31 with the row number, and sends the row number to the data storage node 60. Several data storage nodes 60 restore the credit card data provided by Bank B that is stored in a decentralized manner, substitute it into the target neural network model 10, and obtain the output of the neural network model. Compare it with the result of whether the customer cancels the account in data row 31, obtain the loss function value, and then obtain the gradient value. Use the gradient value to update the weight coefficient of the target neural network model 10. Then specify the row number of the next data row 31 again, and initiate a call request to the data storage node 60 again. In this way, the target neural network will continue to be trained and optimized. When all the data provided by Bank B are substituted in, a test is performed, and it is found that it is still not enough to achieve the preset accuracy, that is, more data is needed for training.

[0022] After that, after waiting for a while, Bank C uploaded a batch of credit card customers' card usage data, which also included all the fields of the target neural network model 10. The hosting node 50 also performed data call training in the aforementioned manner. After all the data submitted by Bank C were called, the accuracy was tested and found to meet the preset accuracy requirements. The target neural network model 10 was then delivered to the hosting user. If the hosting user wants to continue the hosting training to further improve the prediction accuracy, the hosting node 50 can continue to wait for new qualified data to be submitted to the receiving node 40.

[0023] The fees incurred during the training process are transferred by the custodian user to the virtual account of the custodian node 50 by exchanging tokens. After the custodian node 50 and the receiving node 40 reconcile, payment is automatically made.

[0024] The hosting node 50 establishes a history record table 51 for the target neural network model 10. Figure 2 , the history record table 51 records the row hash value 52 of the data row 31 that is substituted into the target neural network model 10 for training. Before the hosting node 50 substitutes the new data row 31 into the target neural network model 10, it extracts the row hash value 52 of the new data row 31 and queries it in the history record table 51. If the row hash value 52 already exists in the history record table 51, the data row 31 is skipped and not included in the bill. If the row hash value 52 does not exist in the history record table 51, the data row 31 is substituted into the target neural network model 10 for training, the row hash value 52 is added to the history record table 51, and it is included in the bill. The receiving node 40 assigns a model number 53 to the target neural network model 10, and the data storage node 60 establishes a call record table 61. When the hosting node 50 calls data from the data storage node 60, it sends the row number and model number 53 to the data storage node 60. When the data storage node 60 receives the call request, it records the row number and model number 53 in association with the timestamp 62 in the call record table 61. The data storage node 60 periodically extracts the hash value of the newly added records in the call record table 61 and uploads it to the blockchain storage. The hosting node 50 periodically uploads the hash value of the historical record table 51 in association with the model number 53 to the blockchain storage.

[0025] For example, after a period of time, Bank B submits data again. These data overlap with the data submitted last time, and there are also new data rows 31. At the same time, Bank B counts and normalizes certain data fields on its own, but still contains all the fields of the customer churn warning model. The receiving node 40 assigns a row number to the data row 31 submitted again by Bank B. However, some of the data is repeated, but has different row numbers. Therefore, when calling, the hosting node 50 compares the hash value of the data row 31 and determines that the data has been called and paid, so it skips the data row 31.

[0026] In this embodiment, the data row 31 submitted by Bank B may have a different hash value for data row 31 due to the addition of fields or changes in the values ​​of fields that are not needed by the customer churn warning model. However, the values ​​of the fields needed by the customer churn warning model have not changed. Although the same sample data is substituted into the target neural network model 10 twice, it can still generate loss function values ​​and gradient values, but this embodiment actively avoids paying for the same data twice for transaction fairness. Therefore, in this embodiment, the hash value of data row 31 stored by the hosting node 50 is a hash value extracted together with only the fields that need to be used. When calling a new data row 31, only the hash values ​​of the fields that need to be used are extracted together for comparison.

[0027] Before the hosting node 50 substitutes the batch data row 31, it backs up the current target neural network model 10 and records the accuracy of the current neural network model. After the data row 31 of the batch data is input into the neural network training, the test data set 20 is used to obtain the accuracy of the target neural network model 10. If the accuracy increases, the backup target neural network model 10 is discarded. If the accuracy decreases, the target application network model is returned to the backup. When a batch of data rows are substituted into the target neural network model 10 for training, the final result actually reduces the accuracy of the target neural network model 10 on the target test set, and it should be returned to the backup. In this embodiment, the batch data will not be charged. In actual implementation, it can be changed to a charge or a discount charge.

[0028] As an alternative implementation, when the hosting node 50 substitutes the data row 31 into the target neural network model training, a backup point is periodically generated, and the accuracy of the target neural network model 10 at the backup point is obtained using the test data set 20. If the accuracy corresponding to the current backup point is lower than that of the previous backup point, the target neural network model 10 is returned to the previous backup point. In fact, only high-quality data can improve the accuracy of the target neural network model 10. However, there is currently a lack of more accurate methods for judging whether the data is high-quality before training. This embodiment uses a post-substitution verification method to make a judgment. If the target neural network model 10 is substituted with poor data for training, resulting in the accuracy of the target neural network model 10 decreasing instead of increasing, it will return to the backup point.

[0029] Please refer to the attached Figure 3 When the receiving node 40 receives the data row 31, it creates several copies 34 for the data row 31. The number of copies 34 matches the number of data storage nodes 60. It creates a substitute number table 32. The substitute number table 32 records the mapping relationship between non-numeric fields and substitute numbers. For text fields, such as notes, detailed addresses, etc., they have little effect on the training of the neural network. This embodiment ignores such text fields that do not have a certain value range, converts the non-numeric fields in the data row 31 into numeric fields, and splits the true value of the numeric field into several addends 33. The number of addends 33 matches the number of copies 34. The several addends 33 are allocated to several copies 34 for storage. When the hosting node 50 requests to call the data row 31 with the corresponding row number, the data storage node 60 submits the corresponding data row 31 to the hosting node 50. After the hosting node 50 restores the data row 31 and substitutes it into the target neural network model 10, the restored data row 31 is destroyed. Splitting the data row 31 into copies 34 for storage can effectively improve the security of the data storage node 60 during the data storage process, is suitable for long-term storage of the data row 31, helps the data storage node 60 accumulate a large amount of data, and facilitates the subsequent training of the neural network model.

[0030] The beneficial technical effects of this embodiment are as follows: by receiving the data provided by the data source through the receiving node 40 and the data storage node 60, providing data accumulation for training the neural network model, the hosting node 50 automatically finds the data that meets the requirements and substitutes it into the target neural network model 10 for training, so that the training of the target neural network can be carried out automatically, and it has the effect of automatically matching the target neural network model 10 and the data; after the neural network training is completed, only the trained neural network model is exported, and the data of the data source will not be leaked, so as to effectively protect the privacy of the data; it can automatically wait for and find the training data when the training data are not ready at the same time, without the need for manual supervision; it has the ability to distinguish data to avoid multiple billings for the same data; the training effect of the neural network model is guaranteed by backup; improved multi-party computing through multiple data storage nodes 60 can more effectively protect the privacy of the data.

[0031] Embodiment 2:

[0032] A blockchain-based neural network model hosting training system. Based on the first embodiment, this embodiment further improves the way in which the hosting node 50 calls the data row 31. In this embodiment, when the receiving node 40 receives the data row 31, it establishes several copies 34 for the data row 31, the number of copies 34 matches the number of data storage nodes 60, converts the non-numeric fields in the data row 31 into numeric fields, splits the true value of the numeric field into several addends 33, the number of addends 33 matches the number of copies 34, and distributes the several addends 33 to several copies 34 for storage. When the hosting node 50 requests to call the data row 31 with the corresponding row number, the row number of the data row 31 and the input number calculation formula of the neuron of the target neural network model 10 directly involving the data row 31 field are sent to several data storage nodes 60. The data storage node 60 substitutes the stored addend 33 into the input number calculation formula, and sends the obtained input number to the hosting node 50. The hosting node 50 sums all the received input numbers as the final input number of the neuron, substitutes the input number into the activation function, obtains the output of the neuron, and the hosting node 50 continues to solve the output of the target neural network model 10.

[0033] In another target neural network model 10, one of the neurons in the first layer is connected to three neurons in the input layer. The connected input layer neurons correspond to the customer's age, the average interval time of credit card transactions and the average amount of credit card transactions respectively. The excitation function is the sigmod function, the weight coefficients are represented by a11, a12 and a13, and the offset is represented by b1. Then its output y is equal to sigmod(x). Among them, the first layer of neurons is fully connected, then x= a11*age+ a12*average interval time+a13*average transaction amount+b1.

[0034] The specific deposit data of depositors in Bank A are: age 33, average interval time 10 days, and average transaction amount 260 yuan.

[0035] The four addends 33 generated for the depositor's age 33 are: 33=-12+13+14+18, and the values ​​assigned to the four replicas 34 are: -12, 13, 14, 18. The four addends 33 generated with an average interval of 10 days are stored in the four replicas 34: 10=-3+2+5+6, and the values ​​assigned to the four replicas 34 are: -3, 2, 5, 6. The addends 33 generated for the average transaction amount 260 are: 260=20+50+80+110, and the values ​​assigned to the four replicas 34 are: 20, 50, 80, 110. After the data is randomly assigned to the four replicas 34, assume that the data stored in the first replica 34 is: -12, -3, 20.

[0036] The data of the replica 34 stored in the first data storage node 60 is: -12, -3, 20, then the sum calculated by the first data storage node 60 is: a11*-12+ a12*-3+ a13*20, and so on. The sum sent by all four data storage nodes 60 is summed up, and the result is: a11*(-12+13+14+18)+ a12*(-3+2+5+6)+ a13*(20+50+80+110). That is: a11*33+a12*10+a13*260, plus the offset value b1, the value of x is obtained, and the output y of the neuron is obtained by substituting it into the sigmod(x) function. During the calculation process, the original true value is mixed in multiple addends 33, so it is hidden and difficult to be accurately discovered, which improves the privacy and security of the data.

[0037] Compared with the first embodiment, in the process of calling the data row 31, the present embodiment does not need to restore the original data row 31, and can complete the substitution of the data row 31 into the target neural network model 10 for training to obtain the loss function value and the gradient value. Since the original data row 31 does not need to be restored, the security and privacy of the data row 31 are greatly improved.

[0038] The above embodiment is only a preferred solution of the present invention and does not limit the present invention in any form. There are other variations and modifications without exceeding the technical solution described in the claims.

Claims

1. A blockchain-based neural network model hosting training system, characterized in that: include: A receiving node receives the target neural network model, the test data set, and data rows uploaded by multiple data sources in batches, assigns batch numbers and row numbers to the data rows, associates the fields of the data rows with the row numbers, and makes them public; Several data storage nodes are connected to the receiving node, and the receiving node stores the data rows in a dispersed manner on the several data storage nodes; The hosting node is connected to the receiving node, obtains the target neural network model, obtains the input field and output field of the target neural network model, obtains the row number of the data row containing the input field and output field of the target neural network model, requests several data storage nodes to call the data row with the corresponding row number, generates a bill, uses the test data set to obtain the accuracy of the target neural network model, and if the accuracy meets the preset accuracy requirement, sends the bill to the user. After the user transfers the token corresponding to the bill to the virtual account of the hosting node, the hosting node provides the trained neural network model to the user and transfers the token to the virtual account of the data source. If the accuracy does not meet the preset accuracy requirement, wait for the receiving node to receive new data rows containing the input field and output field of the target neural network model.

2. According to claim 1, a blockchain-based neural network model hosting training system is characterized in that: The hosting node establishes a history record table for the target neural network model, and the history record table records the row hash values ​​of the data rows substituted into the target neural network model for training. Before the hosting node substitutes the new data row into the target neural network model, it extracts the row hash value of the new data row and queries it in the history record table. If the row hash value already exists in the history record table, the data row is skipped and not included in the bill. If the row hash value does not exist in the history record table, the data row is substituted into the target neural network model for training, the row hash value is added to the history record table, and included in the bill.

3. According to a blockchain-based neural network model hosting training system according to claim 2, it is characterized in that: The receiving node assigns a model number to the target neural network model, the data storage node establishes a call record table, and when the hosting node calls data from the data storage node, it sends the row number and model number to the data storage node. When the data storage node receives the call request, it records the row number and model number in the call record table in association with the timestamp. The data storage node periodically extracts the hash value of the newly added records in the call record table and uploads it to the blockchain storage. The hosting node periodically uploads the hash value of the historical record table in association with the model number to the blockchain storage.

4. A blockchain-based neural network model hosting training system according to any one of claims 1 to 3, characterized in that: Before the hosting node substitutes the batch data rows, it backs up the current target neural network model and records the accuracy of the current neural network model. After the data rows of the batch data are input into the neural network training, the accuracy of the target neural network model is obtained using the test data set. If the accuracy increases, the backed up target neural network model is discarded. If the accuracy decreases, the target application network model is returned to the backup.

5. A blockchain-based neural network model hosting training system according to any one of claims 1 to 3, characterized in that: When the hosting node substitutes the data row into the target neural network model training, it periodically generates backup points and uses the test data set to obtain the accuracy of the target neural network model at the backup point. If the accuracy corresponding to the current backup point is lower than that of the previous backup point, the target neural network model is rolled back to the previous backup point.

6. A blockchain-based neural network model hosting training system according to any one of claims 1 to 3, characterized in that: When the receiving node receives a data row, it creates several copies of the data row, the number of copies matches the number of data storage nodes, converts the non-numeric fields in the data row into numeric fields, splits the true value of the numeric field into several addends, the number of addends matches the number of copies, and distributes the several addends to several copies for storage. When the hosting node requests to call the data row with the corresponding row number, the data storage node submits the corresponding data row to the hosting node. After the hosting node restores the data row and substitutes it into the target neural network model, it destroys the restored data row.

7. A blockchain-based neural network model hosting training system according to any one of claims 1 to 3, characterized in that: When the receiving node receives a data row, it creates several copies of the data row, the number of copies matches the number of data storage nodes, converts the non-numeric fields in the data row into numeric fields, splits the true value of the numeric field into several addends, the number of addends matches the number of copies, and distributes the several addends to several copies for storage. When the hosting node requests to call the data row with the corresponding row number, it sends the row number of the data row and the input number calculation formula of the neuron of the target neural network model that directly involves the data row field to several data storage nodes. The data storage node substitutes the stored addend into the input number calculation formula and sends the obtained input number to the hosting node. The hosting node sums all the received input numbers as the final input number of the neuron, substitutes the input number into the activation function, obtains the output of the neuron, and the hosting node continues to solve the output of the target neural network model.

Citation Information

Patent Citations

  • Neural network training method and system based on blockchain smart contract

    CN112801292A

  • Automatically assigning cryptographic tokens to cryptocurrency wallet addresses via a smart contract in response to analysis of transaction data

    AU2019201798A1

  • Method and device for neural network training based on block chain, and medium

    CN108898219A

  • Federated learning method and device based on block chain and electronic equipment

    CN111539731A

  • Data processing method and data processing device for block and computer equipment

    CN111698315A