The invention relates to a medical block chain
data sharing method based on dual quality thresholds and
federated learning, and belongs to the technical field of computers. The method comprises the following steps that: 1, a publishing node publishes a task and establishes a committee; 2, a participating node downloads
global model parameters from the block chain, and local model training is carried out in combination with
random response and a
differential privacy technology; 3, the trained nodes upload local
model parameters to the block chain, the committee elects mining nodes to download all transactions from the block chain and calculates the quality, and only nodes passing a quality threshold can participate in
model aggregation and calculate contribution values as aggregation weights; 4, updating the reputation information of each node by the mining node, and packaging the reputation information and the
global model parameters into a new block; and 5, other committee nodes verify the new block, the new block is chained after
verification is passed, and the committee composition is adjusted at the same time. According to the method, the poisoning
attack problem existing in
federated learning can be resisted, meanwhile, data privacy is protected, and the influence of
noise on model performance is reduced.