A participant determination method and device, electronic equipment and readable storage medium

By acquiring and calculating the data distribution information of candidate datasets, target participants that are more similar to the demand side datasets are selected, which solves the problem of poor modeling results caused by differences in data distribution in federated learning, and achieves more efficient modeling results and data privacy protection.

CN117521840BActive Publication Date: 2026-11-27CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210891577.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-27
Publication Date
2026-11-27
Estimated Expiration
2042-07-27

AI Technical Summary

Technical Problem

In federated learning, the large differences in data distribution among participants lead to poor modeling results, and existing technologies struggle to effectively select participants that meet the needs of the stakeholders.

Method used

By obtaining the data distribution information of the demand-side dataset, the similarity of data distribution, feature matching degree, and label balance between the candidate dataset and the demand-side dataset are calculated. The candidate dataset that is more similar to the demand-side dataset is selected as the target participant to participate in federated learning.

Benefits of technology

It reduces the data distribution differences among participants, improves modeling effectiveness, ensures data privacy and security, and meets the modeling needs of the requesting parties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117521840B_ABST
    Figure CN117521840B_ABST
Patent Text Reader

Abstract

The application provides a participant determination method and device, electronic equipment and a readable storage medium. The method is applied to a demand side device and includes: obtaining a demand side data set; obtaining data distribution information of M candidate data sets participating in federated learning with the demand side data set based on the demand side data set, an Nth candidate data set in the M candidate data sets corresponding to an Nth candidate participant device, and the data distribution information of the M candidate data sets being used to represent data distribution of the M candidate data sets on the demand side data set; determining a target participant device for federated learning with the demand side device based on the data distribution information, the target participant device including at least one participant device in M candidate participant devices corresponding to the M candidate data sets; wherein M is a positive integer, and N is a positive integer less than or equal to M. The application can improve the modeling effect of federated learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to a method, apparatus, electronic device, and readable storage medium for determining participants. Background Technology

[0002] To protect user privacy and data security, federated learning algorithms can be used to build high-performance models shared by multiple participants. Specific methods include joint modeling using data from multiple parties, ensuring that each party's data does not leave its local storage or expose itself to other participating parties during the modeling process, thereby protecting user privacy and data security while building a high-performance model using data from all parties.

[0003] Because each participant uses local data to train a local model during federated learning, and the local data of each party is kept confidential, if there is a large difference between the data of the participants and the data required by the requesting party, it is easy to lead to poor modeling results. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, and readable storage medium for determining participants to address the problem of poor modeling results.

[0005] In a first aspect, embodiments of this application provide a method for determining participants, applied to a demand-side device, including:

[0006] Obtain the demand-side dataset;

[0007] Based on the demand-side dataset, data distribution information of M candidate datasets participating in federated learning with the demand-side dataset is obtained. The Nth candidate dataset in the M candidate datasets corresponds to the Nth candidate participating device. The data distribution information of the M candidate datasets is used to characterize the data distribution of the M candidate datasets on the demand-side dataset.

[0008] Based on the data distribution information, the target participating device of the demand side is determined, and the target participating device includes at least one participating device among the M candidate participating devices corresponding to the M candidate datasets;

[0009] Where M is a positive integer and N is a positive integer less than or equal to M.

[0010] Secondly, embodiments of this application also provide a participant determination device, comprising:

[0011] The first acquisition module is used to acquire the demand-side dataset;

[0012] The second acquisition module is used to acquire data distribution information of M candidate datasets that participate in federated learning with the demand-side dataset based on the demand-side dataset. The Nth candidate dataset in the M candidate datasets corresponds to the Nth candidate participating device. The data distribution information of the M candidate datasets is used to characterize the data distribution of the M candidate datasets on the demand-side dataset.

[0013] The determination module is used to determine the target participating device for federated learning with the demand-side device based on the data distribution information. The target participating device includes at least one participating device among the M candidate participating devices corresponding to the M candidate datasets.

[0014] Where M is a positive integer and N is a positive integer less than or equal to M.

[0015] Thirdly, embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the participant determination method as described in the first aspect.

[0016] Fourthly, embodiments of this application also provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the participant determination method as described in the first aspect.

[0017] In this embodiment, based on the demand-side dataset, data distribution information of M candidate datasets is obtained. This ensures the privacy of data from each participant in federated learning. Furthermore, based on the obtained data distribution information of the M candidate datasets, target participant devices are determined. These target participant devices include at least one participant device from among the M candidate participant devices corresponding to the M candidate datasets. The selection of the M candidate datasets is based on the data distribution of each candidate dataset on the demand-side dataset, thereby determining the target participant for federated learning with the demand-side device. This means determining candidate datasets with data distributions more similar to the demand-side dataset, reducing the data distribution differences among the participants in federated learning. The target participant can then provide data that better meets the needs of the demand-side device during the federated learning process, thus improving the modeling effect. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of this application, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart illustrating a method for determining participants provided in an embodiment of this application;

[0020] Figure 2 This is a flowchart illustrating a participant selection method provided in an embodiment of this application;

[0021] Figure 3 This is a schematic diagram of the structure of a participant determination device provided in an embodiment of this application;

[0022] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] The terms "first," "second," etc., used in the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices. Additionally, the use of "and / or" in this application indicates at least one of the connected objects, such as A and / or B and / or C, representing seven possibilities: including A alone, B alone, C alone, and the presence of both A and B, both B and C, both A and C, and the presence of A, B, and C.

[0025] In federated learning, the demand-side device can initiate federated learning. Then, each participating device uses local data to train a local model and transmits the parameters to the coordinating device. The coordinating device merges the model parameters uploaded by each party into a global model, and then transmits the global model to each participating device for local updates to obtain a model that meets the needs of the demand-side device.

[0026] Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for determining participants provided in an embodiment of this application, applied to the demand-side equipment, such as... Figure 1 As shown, it includes the following steps:

[0027] Step 101: Obtain the demand side dataset.

[0028] In this context, the demand-side device can be understood as the device that initiates federated learning. Based on the federated learning initiated by the demand-side device, the demand-side device uses a local demand-side dataset that meets the requirements, while other participating devices use their respective local datasets to perform federated learning, so as to obtain a model and model parameters that are adapted to the requirements of the demand-side device.

[0029] It is understandable that the aforementioned demand-side dataset is a dataset that is suitable for the purpose of federated learning. However, if only the aforementioned demand-side dataset is used for model training, the amount of data is relatively small. Therefore, federated learning can be used to jointly model and train without exposing each other's data privacy.

[0030] Step 102: Based on the demand-side dataset, obtain the data distribution information of M candidate datasets that participate in federated learning with the demand-side dataset. The Nth candidate dataset in the M candidate datasets corresponds to the Nth candidate participant device. The data distribution information of the M candidate datasets is used to characterize the data distribution of the M candidate datasets on the demand-side dataset.

[0031] Since federated learning is conducted on the basis of not exposing each other's data privacy, the data of each participant's device does not leave its local machine or is not exposed to other participants' devices. Therefore, if the data distribution of each participant is too different or does not meet the requirements of federated learning, it is impossible to filter the data of each participant, which can easily lead to poor modeling results.

[0032] In this embodiment of the application, the above M candidate datasets are the local data of each candidate participant device. It can be understood that there is a one-to-one correspondence between the candidate datasets and the candidate participant devices, that is, each candidate participant device has one candidate dataset. In federated learning, the candidate participant device can use the local candidate dataset to participate in federated learning.

[0033] It should be noted that each of the above M candidate datasets has data distribution information. The data distribution information can be used to characterize the differences in data distribution between the above candidate datasets and the above demand-side datasets. For example, the similarity between the data distribution in the above candidate datasets and the data distribution in the above demand-side datasets, the matching degree between the data features in the above candidate datasets and the data features in the above demand-side datasets, and the balance of data labels in the above candidate datasets, etc.

[0034] Specifically, the candidate datasets actually used for participating in federated learning can be determined from the aforementioned M candidate datasets, thereby determining the participating devices corresponding to the candidate datasets actually used for participating in federated learning.

[0035] Step 103: Based on the data distribution information, determine the target participating device for federated learning with the demand-side device. The target participating device includes at least one participating device among the M candidate participating devices corresponding to the M candidate datasets.

[0036] Where M is a positive integer and N is a positive integer less than or equal to M.

[0037] It can be understood that each candidate dataset corresponds to a participating device. In step 103 above, determining the target participating device is equivalent to determining the candidate dataset for the target participating device. Specifically, by comparing the data distribution information of the M candidate datasets, one or more candidate datasets with the smallest data distribution difference from the aforementioned demand-side dataset are selected. The candidate participating device corresponding to these one or more candidate datasets is then determined as the aforementioned target participating device. In this way, in federated learning, selecting only the target participating device from the M candidate participating devices reduces the data distribution difference involved in modeling, thereby improving modeling accuracy.

[0038] In this embodiment, based on the demand-side dataset, data distribution information of M candidate datasets is obtained. This ensures the privacy of data from each participant in federated learning. Furthermore, based on the obtained data distribution information of the M candidate datasets, target participant devices are determined. These target participant devices include at least one participant device from among the M candidate participant devices corresponding to the M candidate datasets. The selection of the M candidate datasets is based on the data distribution of each candidate dataset on the demand-side dataset, thereby determining the target participant for federated learning with the demand-side device. This means determining candidate datasets with data distributions more similar to the demand-side dataset, reducing the data distribution differences among the participants in federated learning. The target participant can then provide data that better meets the needs of the demand-side device during the federated learning process, thus improving the modeling effect.

[0039] Furthermore, the target participating device is determined based on the data distribution information of the M candidate datasets. That is, the M candidate datasets can be filtered using the data distribution information of the M candidate datasets. The data distribution information of the M candidate datasets is determined based on the demand-side dataset, which can reflect the demand-side device's need to initiate federated learning. Filtering the candidate datasets using the data distribution information can ensure that the data participating in federated learning meets the needs of federated learning as much as possible, thereby improving the effectiveness of data selection.

[0040] Optionally, the data distribution information includes at least one of the following:

[0041] Data distribution similarity;

[0042] Data feature matching degree;

[0043] The balance of data labels.

[0044] The aforementioned data distribution similarity can characterize the similarity between the candidate dataset and the aforementioned demand-side dataset from the perspective of data distribution. Thus, based on the target participant device determined by the data distribution similarity, a candidate dataset with a high data distribution similarity to the demand-side dataset can be selected, avoiding large differences in the data distribution provided by the participants in federated learning.

[0045] Among them, the above-mentioned data feature matching degree can characterize the matching degree between the candidate dataset and the above-mentioned demand-side dataset from the perspective of data features. It can represent the data categories in the dataset through data features, thereby selecting candidate datasets with higher matching degree.

[0046] The balance of the aforementioned data labels can characterize the data distribution between the candidate dataset and the aforementioned demand-side dataset from the perspective of label category distribution, thereby selecting candidate datasets with smaller differences in label category distribution, as well as corresponding candidate participant devices.

[0047] Optionally, the data distribution information includes data distribution similarity;

[0048] Step 102, which involves obtaining the data distribution information of M candidate datasets participating in federated learning with the demand-side dataset, includes:

[0049] Obtain the first data distribution vector of the demand-side dataset;

[0050] Based on the first data distribution vector, the first encrypted data is obtained and sent to the Nth candidate participant device;

[0051] Receive the second encrypted data sent by the Nth candidate participant device;

[0052] Based on the first data distribution vector and the second encrypted data, the similarity of the data distribution between the Nth candidate dataset and the demand-side dataset is determined;

[0053] The second encrypted data is obtained by the Nth candidate participant device through encryption based on the first encrypted data and the second data distribution vector of the Nth candidate dataset. The second data distribution vector is obtained by the Nth candidate participant device based on the Nth candidate dataset.

[0054] The first data distribution vector can be used to characterize the data distribution of the demand-side dataset, and the second data distribution vector can be used to characterize the data distribution of the Nth candidate dataset. When calculating the data distribution similarity between the Nth candidate dataset and the demand-side dataset, it can be indirectly calculated through the first data distribution vector and the second data distribution vector, without exposing the original data in the demand-side dataset and the Nth candidate dataset.

[0055] Furthermore, when calculating the data distribution similarity between the Nth candidate dataset and the demand dataset using the first data distribution vector of the demand-side device and the second data distribution vector of the Nth candidate participant device, the first data distribution vector is kept secret from the Nth candidate participant device, and the second data distribution vector is kept secret from the demand-side device.

[0056] In the process of calculating the data distribution similarity between the Nth candidate dataset and the demand-side dataset, the aforementioned demand-side device and the aforementioned Nth candidate participant device can communicate through encryption algorithms, such as the privacy-preserving Manhattan distance algorithm, Euclidean distance based on homomorphic encryption algorithms, etc.

[0057] Specifically, the aforementioned demand-side device and the aforementioned Nth candidate participant device can pre-agree on an encryption algorithm. The demand-side device sends the first encrypted data, obtained by encrypting based on the first data distribution vector, to the aforementioned Nth candidate participant device. Then, the aforementioned Nth candidate participant device encrypts the first encrypted data and the aforementioned second data distribution vector to obtain the second encrypted data, and sends the second encrypted data to the aforementioned demand-side device. Subsequently, the demand-side device can calculate the distance between the first data distribution vector and the second data distribution vector based on the aforementioned second encrypted data and the local first data distribution vector, and use this distance as the data distribution similarity between the aforementioned Nth candidate dataset and the aforementioned demand-side dataset.

[0058] It should be noted that the communication between the aforementioned demand-side device and the aforementioned Nth candidate participant device based on the encryption algorithm may involve more interactive processes. For example, one party may send the generated public key to the other party, or one party may calculate the distance between two vectors and send that distance to the other party. The specific steps can be referred to the selected encryption algorithm.

[0059] In this implementation, the data distribution similarity between the Nth candidate dataset and the demand-side dataset can be determined based on the first data distribution vector of the demand-side dataset and the second data distribution vector of the Nth candidate dataset. During the process of determining the data distribution similarity between the Nth candidate dataset and the demand-side dataset, encrypted first data is obtained based on the first data distribution vector and sent to the Nth candidate participant device; second encrypted data is received from the Nth candidate participant device. The data distribution similarity between the Nth candidate dataset and the demand-side dataset is obtained based on the first data distribution vector and the second encrypted data. That is, the first data distribution vector is kept secret from the Nth candidate participant device, and the second data distribution vector is also kept secret from the demand-side device, thus improving data security and privacy.

[0060] Optionally, obtaining the first data distribution vector of the demand-side dataset includes:

[0061] Based on hash transformation, the data in the demand-side dataset is mapped to at least one first bucket to obtain the first bucket information of the at least one first bucket;

[0062] Retrieve the bucket numbers from the M pieces of information in the second bucket;

[0063] Based on the bucket number in the first bucket information and the bucket numbers in the M second bucket information, a bucket number sequence is obtained, and the bucket number sequence is sent to the M candidate participant devices;

[0064] Based on the first bucket information and the bucket number sequence, obtain the first data distribution vector;

[0065] Wherein, the Nth second bucket information in the M second bucket information is obtained by the Nth candidate participant device by mapping the Nth candidate dataset based on the hash transformation, and the second data distribution vector is obtained by the Nth candidate participant device based on the Nth second bucket information and the bucket number sequence.

[0066] The hash transformation described above can map data that is close to each other into the same bucket, while mapping data that is far apart into different buckets. It can be understood that the above-mentioned first bucket is the bucket obtained after the data in the above-mentioned demand-side dataset has been mapped. Data in the same bucket can be understood as data with high similarity, and the more data in a bucket, the more data of the corresponding data category there is in that bucket.

[0067] The first bucket information mentioned above may include the bucket number of each first bucket and the amount of data in each first bucket. By using the bucket number, it is possible to determine which data categories are in the mapped dataset. Furthermore, by comparing the bucket numbers, it is possible to determine whether there is data of the same data category in the two datasets.

[0068] For example, the data in the aforementioned demand-side dataset can be mapped to buckets numbered 1 and 2, with bucket 1 containing 3 data points and bucket 2 containing 2 data points; the data in the Nth candidate dataset can be mapped to buckets numbered 2 and 3, with bucket 2 containing 2 data points and bucket 3 containing 1 data point; in determining the first data distribution vector of the aforementioned demand-side dataset and the second data distribution vector of the candidate dataset, the bucket numbers are first combined to obtain the bucket number sequence {bucket 1, bucket 2, bucket 3}. Then, according to this sequence, the first data distribution vector is (3,2,0), and the second data distribution vector is (0,2,1). The distance between the first and second data distribution vectors is calculated as follows: Of course, the process of calculating the distance between the first data distribution vector and the second data distribution vector can be performed using the encryption algorithm described above, which will not be elaborated here.

[0069] It should be noted that if M is an integer greater than 1, when obtaining the above bucket number sequence, the bucket numbers obtained by mapping the M candidate datasets need to be combined into a union. For example, if there is data in the Kth candidate dataset that can be mapped to bucket number 4 (K is a positive integer less than or equal to M, and K≠N), and there is 1 data in bucket number 4, then the bucket number sequence is {bucket 1, bucket 2, bucket 3, bucket 4}. Then, according to this sequence, the first data distribution vector is (3,2,0,0), the second data distribution vector of the Nth candidate dataset is (0,2,1,0), and the second data distribution vector of the Kth candidate dataset is (0,0,0,1).

[0070] In this embodiment, obtaining the first data distribution vector of the demand-side dataset includes: mapping the data in the demand-side dataset to at least one first bucket based on a hash transformation to obtain the first bucket information of the at least one first bucket; obtaining the bucket numbers from M second bucket information; obtaining a bucket number sequence based on the bucket numbers in the first bucket information and the bucket numbers in the M second bucket information, and sending the bucket number sequence to the M candidate participant devices; and obtaining the first data distribution vector based on the first bucket information and the bucket number sequence. That is, the first data distribution vector is obtained by encrypting the demand-side dataset, and the second data distribution vector is also obtained by encrypting the corresponding candidate datasets in the M candidate participant devices. In this way, each device can obtain the data distribution vector while ensuring the confidentiality of its local dataset, further improving data privacy.

[0071] It should be noted that for any candidate participant device among the M candidate participant devices, the following steps can be performed:

[0072] Receive first encrypted data sent by the demand-side device, the first encrypted data being encrypted by the demand-side device based on a first data distribution vector, the first data distribution vector being a data distribution vector obtained locally by the demand-side device based on the demand-side dataset;

[0073] Obtain the local candidate dataset;

[0074] Obtain the second data distribution vector of the candidate dataset;

[0075] Based on the first encrypted data and the second data distribution vector, the encrypted second encrypted data is obtained;

[0076] The second encrypted data is sent to the demand-side device, and the second encrypted data is used by the demand-side device to determine the data distribution similarity between the candidate dataset and the demand-side dataset based on the first data distribution vector.

[0077] Specifically, obtaining the second data distribution vector of the candidate dataset may include:

[0078] Based on hash transformation, the data in the candidate dataset is mapped to the second bucket to obtain the second bucket information;

[0079] The bucket number in the second bucket information is sent to the demand-side device, and the bucket number in the second bucket information is used by the demand-side device to obtain the bucket number sequence;

[0080] Based on the second bucket information and the bucket number sequence, the second data distribution vector is obtained.

[0081] Optionally, the data distribution information includes data feature matching degree;

[0082] Step 102, which involves obtaining the data distribution information of M candidate datasets participating in federated learning with the demand-side dataset, includes:

[0083] Obtain the data feature sequence of the demand-side dataset and the first feature parameter of each data feature, wherein the data feature sequence includes multiple data features sorted according to data importance;

[0084] Multiple first feature parameters are sent to the M candidate participant devices. The multiple first feature parameters are used by the Nth candidate participant device to determine the matching feature in the Nth candidate dataset that matches the data feature, and the second feature parameter of the matching feature.

[0085] Receive the second feature parameters sent by the M candidate participant devices;

[0086] Based on the second feature parameter and the data feature sequence, the data feature matching degree between the Nth candidate dataset and the demand-side dataset is determined.

[0087] The aforementioned data feature sequence can be obtained by performing feature engineering on the aforementioned demand-side dataset.

[0088] The first feature parameter mentioned above can be used to describe each data feature, such as the name of the data feature and the specific meaning of the data feature.

[0089] For the Nth candidate participant device, the existence and number of matching features in the Nth candidate dataset can be determined by using the first feature parameter of each data feature. For the second feature parameter of the matching feature, the matching first feature parameter can also be used directly, such as the feature name in the matching first feature parameter.

[0090] Specifically, in determining the data feature matching degree between the Nth candidate dataset and the demand-side dataset, this can be determined by the number of data features in the Nth candidate dataset that match the demand-side dataset, and the importance of the matched data features. For example, the importance of a matched data feature can be determined by its position in the data feature sequence. Specifically, the importance of a matched data feature can be represented by its index in the data feature sequence. If the data feature sequence is sorted from largest to smallest importance, then the earlier the matched data feature appears, the higher its importance; the indices of each matched data feature can be summed after reversing the order. If the data feature sequence is sorted from smallest to largest importance, then the earlier the matched data feature appears, the lower its importance; the indices of each matched data feature can be summed directly. For another example, the number of matches can be directly determined by the number of second feature parameters returned by the Nth candidate participant device to the demand-side device.

[0091] In this embodiment, a data feature sequence of the demand-side dataset and a first feature parameter for each data feature are obtained. The data feature sequence includes multiple data features ordered by data importance. The multiple first feature parameters are sent to the M candidate participant devices. These first feature parameters are used by the Nth candidate participant device to determine matching features in the Nth candidate dataset that match the data features, and a second feature parameter for the matching features. The second feature parameters sent by the M candidate participant devices are received. Based on the second feature parameters and the data feature sequence, the data feature matching degree between the Nth candidate dataset and the demand-side dataset is determined. Thus, based on the second feature parameter of the matching feature in the Nth candidate dataset that matches the data features of the demand-side dataset, and the data feature sequence ordered by data importance, the data feature matching degree between the Nth candidate dataset and the demand-side dataset can be evaluated based on the matching features and the importance of the features. This ensures that the obtained data feature matching degree reflects not only the degree of matching between the two datasets but also the importance of the matching features between the two datasets.

[0092] Optionally, the data distribution information includes the balance of data labels;

[0093] Step 102, which involves obtaining the data distribution information of M candidate datasets participating in federated learning with the demand-side dataset, includes:

[0094] Obtain the tag set of the demand-side dataset;

[0095] The tag set is sent to the M candidate participant devices, and the tag set is used by the Nth candidate participant device to calculate the balance of data tags in the Nth candidate dataset;

[0096] The balance of the data tags received from the M candidate participant devices.

[0097] In this implementation, by sending the tag set to the M candidate participant devices, the tag set is used by the Nth candidate participant device to calculate the balance of data tags in the Nth candidate dataset, and the balance of data tags sent by the M candidate participant devices is received. That is, the balance of data tags is calculated by each candidate participant device, and the demand side dataset only needs to inform the candidate participant devices of the tag set, which can ensure that the balance of data tags in the dataset can be obtained without leaving the local machine for the M candidate datasets.

[0098] Optionally, if the data distribution information includes any one of the following: data feature matching degree, data label balance degree, and data distribution similarity, the target participating device for federated learning with the demand-side device can be determined based on any one of the following information.

[0099] For example, when the data distribution information is data distribution similarity, the distance between the second data distribution vector of the Nth candidate dataset and the first data distribution vector of the demand side dataset can be used to characterize the data distribution similarity between the Nth candidate dataset and the demand side dataset. The smaller the distance, the more similar the data distribution of the two datasets. Thus, the participating devices corresponding to multiple candidate datasets with a distance less than a first preset threshold among the M candidate datasets are selected as the target participating devices, or the participating devices corresponding to one or more candidate datasets with the smallest distance among the M candidate datasets are selected as the target participating devices.

[0100] For example, when the data distribution information is the data feature matching degree, the data feature matching degree between each candidate dataset and the demand side dataset can be obtained respectively. The larger the data feature matching degree, the more similar the data distribution of the two datasets is. Thus, the participating devices corresponding to multiple candidate datasets with a data feature matching degree greater than the second preset threshold among the M candidate datasets are selected as the target participating devices, or the participating devices corresponding to one or more candidate datasets with the largest data feature matching degree among the M candidate datasets are selected as the target participating devices.

[0101] For example, when the data distribution information is the balance of data labels, the balance of data labels between each candidate dataset and the demand dataset can be obtained. The greater the balance of data labels, the more similar the data distribution of the two datasets. Thus, the participating devices corresponding to multiple candidate datasets with a data label balance greater than a third preset threshold among the M candidate datasets are selected as target participating devices, or the participating devices corresponding to one or more candidate datasets with the largest data label balance among the M candidate datasets are selected as target participating devices.

[0102] Optionally, the data distribution information includes at least two of the following: data feature matching degree, data label balance, and data distribution similarity.

[0103] Step 103, which involves determining the target participating device for federated learning with the demand-side device based on the data distribution information, includes:

[0104] Based on the at least two pieces of information, the M candidate datasets are comprehensively evaluated to obtain a score for each candidate dataset;

[0105] The target participant device is determined based on the scores of M candidate datasets.

[0106] One approach is to pre-set a threshold, select candidate datasets with scores greater than or equal to the threshold as target datasets, and determine the candidate participating devices corresponding to the target datasets as target participating devices; alternatively, the scores of the M candidate datasets can be sorted, and the top J candidate datasets (J is a positive integer less than M) can be selected, and the J candidate participating devices corresponding to these J candidate datasets can be determined as target participating devices.

[0107] Specifically, a comprehensive evaluation of each candidate dataset can be conducted based on at least two of the following: data distribution similarity, data feature matching degree, and data label balance. That is, the evaluation can be based on the data distribution similarity and data feature matching degree, or on the data distribution similarity and data label balance, or on the data feature matching degree and data label balance, or on the data distribution similarity, data feature matching degree, and data label balance.

[0108] For example, when comprehensively evaluating any two of the data distribution similarity, data feature matching degree, and data label balance of the candidate dataset, the weight of each piece of information used can be determined first, and then the data distribution of the above M candidate datasets can be evaluated according to the corresponding weights.

[0109] In the process of comprehensively evaluating each of the above candidate datasets, comprehensive evaluation algorithms can be used, such as the comprehensive index method, the technique for order preference by similarity to an ideal solution (TOPSIS), the rank-sum ratio (RSR) method, and other algorithms.

[0110] Specifically, taking the comprehensive evaluation of the candidate dataset using TOPSIS based on three evaluation dimensions—data distribution similarity, data feature matching degree, and data label balance—an evaluation matrix is ​​constructed based on the data distribution similarity, data feature matching degree, and data label balance of M candidate parameter sets. This evaluation matrix includes the value of each candidate parameter set in each dimension, with each row corresponding to an evaluation vector for a candidate parameter set. It can be understood that the parameters used in this matrix are all standardized values. Then, based on this evaluation matrix, the optimal value for each indicator is obtained as the optimal vector for that indicator, and the worst value for each indicator is obtained as the worst vector for that indicator. The distance between the evaluation vector of each candidate parameter set and the optimal and worst vectors is calculated, thus obtaining the relative closeness between the evaluation vector of each candidate parameter set and the optimal vector. The greater the closeness, the smaller the data distribution difference between the candidate parameter set and the demand side dataset. Therefore, one or more candidate parameter sets with the highest closeness are selected. The one or more candidate participant devices corresponding to the one or more candidate parameter sets with the highest closeness are the aforementioned target participant devices.

[0111] In this implementation, based on the at least two pieces of information, the M candidate datasets are comprehensively evaluated to obtain a score for each candidate dataset; and based on the scores of the M candidate datasets, the target participant device is determined. The M candidate datasets can be comprehensively evaluated, thereby selecting the target participant device based on the scores of the M candidate datasets.

[0112] For better understanding, a specific example is as follows:

[0113] Step S1: Evaluate the feature matching degree between the data provided by the data provider and the data from the demand side;

[0114] Step S1 specifically includes the following process:

[0115] (1) The demand side first performs feature engineering on the demand side data to obtain data features sorted by data importance;

[0116] (2) The data feature names of the data published by the demand side and the specific meaning of each data feature;

[0117] (3) The data provider sends the feature names in the data provider's data that match the data features of the demander to the data provider;

[0118] (4) After receiving the data, the requesting party will comprehensively evaluate the modeling features based on both importance ranking and the number of matching features, and give a matching score. The specific steps are as follows:

[0119] Importance ranking reversal: Each matching feature has its importance ranking in the original feature engineering of the demand side. Let the ranking number be {1,2,……,M}. Reverse the order of each number, denoted as:

[0120] k1 = M - k + 1;

[0121] Where k1 is the sequence number after reversal, M represents the total number of demand-side features, and k represents the original sequence number of the feature.

[0122] Calculate the sum of the inversion indices of all matching features. For example, if there are 5 matching features with inversion indices n1, n2, ..., n5, then calculate the sum of all 5 inversion indices. Let this be denoted as the matching value x from the data provider;

[0123] Standardize the matching values ​​from all data providers:

[0124] Where, x max x is the maximum value among the matching values ​​from all data providers. min The minimum value among all matching values ​​from all data providers, where x is the matching value from any data provider;

[0125] Step S2: Evaluate the data label balance of the participants' data;

[0126] Step S2 specifically includes the following process:

[0127] (1) The data requester publishes a complete list of data tags and a method for calculating the data tag distribution balance. For example, the data tag distribution balance can be calculated using the following formula:

[0128]

[0129] Where n represents the total number of data labels, p k This indicates the data distribution across different label categories.

[0130] (2) The data provider calculates the local data label balance value according to the above formula;

[0131] (3) Standardize the data label balance value of the data provider. The specific standardization method can be referred to step S1 above.

[0132] Step S3: Assess the similarity between the provider's data and the demander's data;

[0133] Step S3 specifically includes the following process:

[0134] (1) Perform Locality Sensitive Hashing (LSH) transformation on the demand data, divide the data into buckets, and record the label of each bucket and the amount of data in the corresponding bucket in the hash table;

[0135] LSH (Local Sensitive Hashing) maps closely spaced data into the same bucket, while mapping distant data into different buckets. A suitable hash function is Exact Euclidean Locality Sensitive Hashing (E2LSH).

[0136]

[0137] Among them, h ab (v): R d →Z represents mapping a d-dimensional vector v to a set of integers, where a is a d-dimensional random vector whose components are independent random variables following a p-stable distribution; b is a random variable uniformly distributed on [0, w]; and w is a random variable set according to experience and the needs of the actual problem.

[0138] (2) The data from each data provider also undergoes the same LSH transformation, and the bucket number and the amount of data in the corresponding bucket are recorded in the corresponding Hash table;

[0139] (3) The data provider sends all the bucket numbers after local LSH transformation to the data demander, and the demander calculates the union and sends it to each provider.

[0140] (4) The data requester calculates the data similarity between the data requester and the data provider. The specific process is as follows:

[0141] Each data owner, following the union of bucket numbers in the hash table, constructs a vector representing the amount of local data that falls into each bucket after hash transformation, which serves as its data distribution vector.

[0142] The distance between the data distribution vectors of the requester and the provider is calculated using an encrypted distance calculation method, serving as a basis for measuring the similarity of their data. Here, the privacy-preserving Manhattan distance calculation method can be employed, enabling the calculation of the distance between the data distribution vectors of both parties without knowing the other's data distribution.

[0143] The distance between the data distribution vectors of all data providers and demanders is standardized to obtain a data distribution similarity score.

[0144] Among them, steps S1, S2 and S3 can be executed simultaneously or sequentially.

[0145] Step S4: Select participants from the data providers;

[0146] Step S4 specifically includes the following process:

[0147] Based on the data feature matching score in step S1, the data balance score in step S2, and the data distribution similarity score between the provider and the demander in step S3, the TOPSIS comprehensive evaluation method is used to rank the data from all data providers, ultimately determining which datasets to select. The specific process is as follows:

[0148] (1) As mentioned above, there are 3 data quality assessment dimensions and K data providers. The data assessment values ​​of each party for each dimension constitute a standardized K-dimensional vector, and all K-dimensional vectors constitute a K×3 assessment matrix:

[0149]

[0150] Each row represents an evaluation vector for a dataset. All the above metrics are positive, meaning that the higher the evaluation value, the better the quality of the relevant dimension.

[0151] (2) Normalize each column of matrix T:

[0152]

[0153] The normalized matrix is ​​obtained as follows:

[0154]

[0155] in, j = 1, 2, 3;

[0156] (3) Add a weight to each dimension according to the actual evaluation needs to form an evaluation matrix:

[0157]

[0158] Among them, e ij =wj s ij i = 1, 2, ..., K; j = 1, 2, 3, and 0 ≤ w j ≤1,

[0159] (4) Construct the optimal value vector and the worst value vector:

[0160] M i ,m i If i = 1, 2, 3 are the optimal and worst values ​​in the three dimensions, then the optimal vector E is obtained. + = {M1, M2, M3}, the worst-case vector E - ={m1,m2,m3};

[0161] (5)d) Calculate the distance between the evaluation vector of each data provider and the best and worst vectors:

[0162]

[0163]

[0164] Where i = 1, 2, ..., K;

[0165] (6) Calculate the relative proximity between each evaluation vector and the optimal vector:

[0166]

[0167] (7) According to r i The value to be selected is the dataset.

[0168] Under the aforementioned evaluation system, r i The larger the value, the closer the dataset is to the requirements of the data requester.

[0169] Among them, r can be selected i Several large datasets are selected, along with the corresponding data providers for those datasets, to facilitate the selection of participants.

[0170] See Figure 3 , Figure 3 This is a schematic diagram of a participant determination device provided in an embodiment of this application. As shown in Figure 3, the participant determination device 300 includes:

[0171] The first acquisition module 301 is used to acquire the demand-side dataset;

[0172] The second acquisition module 302 is used to acquire data distribution information of M candidate datasets that participate in federated learning with the demand-side dataset based on the demand-side dataset. The Nth candidate dataset in the M candidate datasets corresponds to the Nth candidate participating device. The data distribution information of the M candidate datasets is used to characterize the data distribution of the M candidate datasets on the demand-side dataset.

[0173] The determination module 303 is used to determine the target participating device for federated learning with the demand-side device based on the data distribution information. The target participating device includes at least one participating device among the M candidate participating devices corresponding to the M candidate datasets.

[0174] Where M is a positive integer and N is a positive integer less than or equal to M.

[0175] Optionally, the data distribution information includes at least one of the following:

[0176] Data distribution similarity;

[0177] Data feature matching degree;

[0178] The balance of data labels.

[0179] Optionally, the data distribution information includes data distribution similarity;

[0180] The second acquisition module 302 includes:

[0181] The first acquisition unit is used to acquire the first data distribution vector of the demand-side dataset;

[0182] An encryption unit is configured to obtain encrypted first data based on the first data distribution vector and send the first encrypted data to the Nth candidate participant device.

[0183] The first receiving unit is configured to receive the second encrypted data sent by the Nth candidate participant device;

[0184] The first determining unit is used to determine the data distribution similarity between the Nth candidate dataset and the demand-side dataset based on the first data distribution vector and the second encrypted data.

[0185] The second encrypted data is obtained by the Nth candidate participant device through encryption based on the first encrypted data and the second data distribution vector of the Nth candidate dataset. The second data distribution vector is obtained by the Nth candidate participant device based on the Nth candidate dataset.

[0186] Optionally, the first acquisition unit includes:

[0187] The mapping subunit is used to map the data in the demand-side dataset to at least one first bucket based on hash transformation, so as to obtain the first bucket information of the at least one first bucket;

[0188] The first acquisition subunit is used to acquire the bucket number from the M pieces of information about the second bucket;

[0189] The second acquisition subunit is used to acquire a bucket number sequence based on the bucket number in the first bucket information and the bucket numbers in the M second bucket information, and send the bucket number sequence to the M candidate participant devices;

[0190] The third acquisition subunit is used to acquire the first data distribution vector based on the first bucket information and the bucket number sequence;

[0191] Wherein, the Nth second bucket information in the M second bucket information is obtained by the Nth candidate participant device by mapping the Nth candidate dataset based on the hash transformation, and the second data distribution vector is obtained by the Nth candidate participant device based on the Nth second bucket information and the bucket number sequence.

[0192] Optionally, the data distribution information includes data feature matching degree;

[0193] The second acquisition module 302 includes:

[0194] The second acquisition unit is used to acquire the data feature sequence of the demand-side dataset and the first feature parameter of each data feature, wherein the data feature sequence includes multiple data features sorted according to data importance;

[0195] The first sending unit is configured to send a plurality of first feature parameters to the M candidate participant devices, wherein the plurality of first feature parameters are used by the Nth candidate participant device to determine the matching feature in the Nth candidate data set that matches the data feature, and the second feature parameter of the matching feature;

[0196] The second receiving unit is used to receive the second feature parameters sent by the M candidate participant devices;

[0197] The second determining unit is used to determine the data feature matching degree between the Nth candidate dataset and the demand-side dataset based on the second feature parameter and the data feature sequence.

[0198] Optionally, the data distribution information includes the balance of data labels;

[0199] The second acquisition module 302 includes:

[0200] The third acquisition unit is used to acquire the tag set of the demand-side dataset;

[0201] The second sending unit is used to send the tag set to the M candidate participant devices, and the tag set is used by the Nth candidate participant device to calculate the balance of data tags in the Nth candidate dataset;

[0202] The third receiving unit is used to receive the balance of the data tags sent by the M candidate participant devices.

[0203] Optionally, the data distribution information includes at least two of the following: data feature matching degree, data label balance, and data distribution similarity.

[0204] The determining module 303 includes:

[0205] An evaluation unit is used to comprehensively evaluate the M candidate datasets based on the at least two pieces of information, and obtain a score for each candidate dataset;

[0206] The third determining unit is used to determine the target participant device based on the scores of M candidate datasets.

[0207] The participant determination device 300 can achieve the functions described in the embodiments of this application. Figure 1 The various processes in the method embodiments, and the ways to achieve the same beneficial effects, will not be repeated here to avoid repetition.

[0208] This application also provides an electronic device. Because the principle by which the electronic device solves the problem is similar to that in the embodiments of this application... Figure 1 The methods for determining the participating parties are similar, therefore the implementation of this electronic device can be found in the implementation of the method, and repeated details will not be elaborated further. For example... Figure 4 As shown, the electronic device in this application embodiment includes a memory 420, a transceiver 410, and a processor 400;

[0209] The memory 420 is used to store computer programs; the transceiver 410 is used to send and receive data under the control of the processor 400; the processor 400 is used to read the computer programs in the memory 420 and perform the following operations:

[0210] Obtain the demand-side dataset;

[0211] Based on the demand-side dataset, data distribution information of M candidate datasets participating in federated learning with the demand-side dataset is obtained. The Nth candidate dataset in the M candidate datasets corresponds to the Nth candidate participating device. The data distribution information of the M candidate datasets is used to characterize the data distribution of the M candidate datasets on the demand-side dataset.

[0212] Based on the data distribution information, target participating devices for federated learning with the demand-side devices are determined, and the target participating devices include at least one participating device among the M candidate participating devices corresponding to the M candidate datasets;

[0213] Where M is a positive integer and N is a positive integer less than or equal to M.

[0214] Among them, Figure 4 In this context, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 400) and memory (memory 420). The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. A bus interface provides an interface. Transceiver 410 may be multiple elements, including transmitters and transceivers, providing a unit for communicating with various other devices over a transmission medium. Processor 400 is responsible for managing the bus architecture and general processing, and memory 420 may store data used by processor 400 during operation.

[0215] The processor 400 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a complex programmable logic device (CPLD). The processor can also adopt a multi-core architecture.

[0216] Optionally, the data distribution information includes at least one of the following:

[0217] Data distribution similarity;

[0218] Data feature matching degree;

[0219] The balance of data labels.

[0220] Optionally, the data distribution information includes data distribution similarity;

[0221] The step of obtaining data distribution information for M candidate datasets participating in federated learning with the demand-side dataset based on the demand-side dataset includes:

[0222] Obtain the first data distribution vector of the demand-side dataset;

[0223] Based on the first data distribution vector, the first encrypted data is obtained and sent to the Nth candidate participant device;

[0224] Receive the second encrypted data sent by the Nth candidate participant device;

[0225] Based on the first data distribution vector and the second encrypted data, the similarity of the data distribution between the Nth candidate dataset and the demand-side dataset is determined;

[0226] The second encrypted data is obtained by the Nth candidate participant device through encryption based on the first encrypted data and the second data distribution vector of the Nth candidate dataset. The second data distribution vector is obtained by the Nth candidate participant device based on the Nth candidate dataset.

[0227] Optionally, obtaining the first data distribution vector of the demand-side dataset includes:

[0228] Based on hash transformation, the data in the demand-side dataset is mapped to at least one first bucket to obtain the first bucket information of the at least one first bucket;

[0229] Retrieve the bucket numbers from the M pieces of information in the second bucket;

[0230] Based on the bucket number in the first bucket information and the bucket numbers in the M second bucket information, a bucket number sequence is obtained, and the bucket number sequence is sent to the M candidate participant devices;

[0231] Based on the first bucket information and the bucket number sequence, obtain the first data distribution vector;

[0232] Wherein, the Nth second bucket information in the M second bucket information is obtained by the Nth candidate participant device by mapping the Nth candidate dataset based on the hash transformation, and the second data distribution vector is obtained by the Nth candidate participant device based on the Nth second bucket information and the bucket number sequence.

[0233] Optionally, the data distribution information includes data feature matching degree;

[0234] The step of obtaining data distribution information for M candidate datasets participating in federated learning with the demand-side dataset based on the demand-side dataset includes:

[0235] Obtain the data feature sequence of the demand-side dataset and the first feature parameter of each data feature, wherein the data feature sequence includes multiple data features sorted according to data importance;

[0236] Multiple first feature parameters are sent to the M candidate participant devices. The multiple first feature parameters are used by the Nth candidate participant device to determine the matching feature in the Nth candidate dataset that matches the data feature, and the second feature parameter of the matching feature.

[0237] Receive the second feature parameters sent by the M candidate participant devices;

[0238] Based on the second feature parameter and the data feature sequence, the data feature matching degree between the Nth candidate dataset and the demand-side dataset is determined.

[0239] Optionally, the data distribution information includes the balance of data labels;

[0240] The step of obtaining data distribution information for M candidate datasets participating in federated learning with the demand-side dataset based on the demand-side dataset includes:

[0241] Obtain the tag set of the demand-side dataset;

[0242] The tag set is sent to the M candidate participant devices, and the tag set is used by the Nth candidate participant device to calculate the balance of data tags in the Nth candidate dataset;

[0243] The balance of the data tags received from the M candidate participant devices.

[0244] Optionally, the data distribution information includes at least two of the following: data feature matching degree, data label balance, and data distribution similarity.

[0245] The step of determining the target participating devices for federated learning with the demand-side devices based on the data distribution information includes:

[0246] Based on the at least two pieces of information, the M candidate datasets are comprehensively evaluated to obtain a score for each candidate dataset;

[0247] The target participant device is determined based on the scores of M candidate datasets.

[0248] The electronic device provided in this application embodiment can perform the above-described functions. Figure 1 The method embodiments shown are similar in principle and technical effect, and will not be described again here.

[0249] This application embodiment also provides a readable storage medium storing a program or instructions that, when executed by a processor, implement the above-described functionality. Figure 1 The various processes in the method embodiments described herein can achieve the same technical effect, and will not be repeated here to avoid repetition.

[0250] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0251] This application embodiment also provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the above. Figure 1 The various processes in the method embodiments described herein can achieve the same technical effect, and will not be repeated here to avoid repetition.

[0252] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0253] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0254] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0255] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for determining participants, applied to demand-side equipment, characterized in that, include: Obtain the demand-side dataset; Based on the demand-side dataset, data distribution information of M candidate datasets participating in federated learning with the demand-side dataset is obtained. The Nth candidate dataset in the M candidate datasets corresponds to the Nth candidate participating device. The data distribution information of the M candidate datasets is used to characterize the data distribution of the M candidate datasets on the demand-side dataset. Based on the data distribution information, target participating devices for federated learning with the demand-side devices are determined, and the target participating devices include at least one participating device among the M candidate participating devices corresponding to the M candidate datasets; Where M is a positive integer, and N is a positive integer less than or equal to M; The data distribution information includes data distribution similarity; The step of obtaining data distribution information for M candidate datasets participating in federated learning with the demand-side dataset based on the demand-side dataset includes: Obtain the first data distribution vector of the demand-side dataset; Based on the first data distribution vector, the first encrypted data is obtained and sent to the Nth candidate participant device; Receive the second encrypted data sent by the Nth candidate participant device; Based on the first data distribution vector and the second encrypted data, the similarity of the data distribution between the Nth candidate dataset and the demand-side dataset is determined; Wherein, the second encrypted data is obtained by the Nth candidate participant device based on the first encrypted data and the second data distribution vector of the Nth candidate dataset, and the second data distribution vector is obtained by the Nth candidate participant device based on the Nth candidate dataset; Obtaining the first data distribution vector of the demand-side dataset includes: Based on hash transformation, the data in the demand-side dataset is mapped to at least one first bucket to obtain the first bucket information of the at least one first bucket; Retrieve the bucket numbers from the M pieces of information in the second bucket; Based on the bucket number in the first bucket information and the bucket numbers in the M second bucket information, a bucket number sequence is obtained, and the bucket number sequence is sent to the M candidate participant devices; Based on the first bucket information and the bucket number sequence, obtain the first data distribution vector; Wherein, the Nth second bucket information in the M second bucket information is obtained by the Nth candidate participant device by mapping the Nth candidate dataset based on the hash transformation, and the second data distribution vector is obtained by the Nth candidate participant device based on the Nth second bucket information and the bucket number sequence.

2. The method as described in claim 1, characterized in that, The data distribution information includes at least one of the following: Data distribution similarity; Data feature matching degree; The balance of data labels.

3. The method as described in claim 1, characterized in that, The data distribution information includes data feature matching degree; The step of obtaining data distribution information for M candidate datasets participating in federated learning with the demand-side dataset based on the demand-side dataset includes: Obtain the data feature sequence of the demand-side dataset and the first feature parameter of each data feature, wherein the data feature sequence includes multiple data features sorted according to data importance; Multiple first feature parameters are sent to the M candidate participant devices. The multiple first feature parameters are used by the Nth candidate participant device to determine the matching feature in the Nth candidate dataset that matches the data feature, and the second feature parameter of the matching feature. Receive the second feature parameters sent by the M candidate participant devices; Based on the second feature parameter and the data feature sequence, the data feature matching degree between the Nth candidate dataset and the demand-side dataset is determined.

4. The method as described in claim 1, characterized in that, The data distribution information includes the balance of data labels; The step of obtaining data distribution information for M candidate datasets participating in federated learning with the demand-side dataset based on the demand-side dataset includes: Obtain the tag set of the demand-side dataset; The tag set is sent to the M candidate participant devices, and the tag set is used by the Nth candidate participant device to calculate the balance of data tags in the Nth candidate dataset; The balance of the data tags received from the M candidate participant devices.

5. The method as described in claim 1, characterized in that, The data distribution information includes at least two of the following: data feature matching degree, data label balance degree, and data distribution similarity. The step of determining the target participating devices for federated learning with the demand-side devices based on the data distribution information includes: Based on the at least two pieces of information, the M candidate datasets are comprehensively evaluated to obtain a score for each candidate dataset; The target participant device is determined based on the scores of M candidate datasets.

6. A participant determination device, characterized in that, include: The first acquisition module is used to acquire the demand-side dataset; The second acquisition module is used to acquire data distribution information of M candidate datasets that participate in federated learning with the demand-side dataset based on the demand-side dataset. The Nth candidate dataset in the M candidate datasets corresponds to the Nth candidate participating device. The data distribution information of the M candidate datasets is used to characterize the data distribution of the M candidate datasets on the demand-side dataset. The determination module is used to determine the target participating device for federated learning with the demand-side device based on the data distribution information. The target participating device includes at least one participating device among the M candidate participating devices corresponding to the M candidate datasets. Where M is a positive integer, and N is a positive integer less than or equal to M; The data distribution information includes data distribution similarity; The second acquisition module includes: The first acquisition unit is used to acquire the first data distribution vector of the demand-side dataset; An encryption unit is configured to obtain encrypted first data based on the first data distribution vector and send the first encrypted data to the Nth candidate participant device. The first receiving unit is configured to receive the second encrypted data sent by the Nth candidate participant device; The first determining unit is used to determine the data distribution similarity between the Nth candidate dataset and the demand-side dataset based on the first data distribution vector and the second encrypted data. Wherein, the second encrypted data is obtained by the Nth candidate participant device based on the first encrypted data and the second data distribution vector of the Nth candidate dataset, and the second data distribution vector is obtained by the Nth candidate participant device based on the Nth candidate dataset; The first acquisition unit includes: The mapping subunit is used to map the data in the demand-side dataset to at least one first bucket based on hash transformation, so as to obtain the first bucket information of the at least one first bucket; The first acquisition subunit is used to acquire the bucket number from the M pieces of information about the second bucket; The second acquisition subunit is used to acquire a bucket number sequence based on the bucket number in the first bucket information and the bucket numbers in the M second bucket information, and send the bucket number sequence to the M candidate participant devices; The third acquisition subunit is used to acquire the first data distribution vector based on the first bucket information and the bucket number sequence; Wherein, the Nth second bucket information in the M second bucket information is obtained by the Nth candidate participant device by mapping the Nth candidate dataset based on the hash transformation, and the second data distribution vector is obtained by the Nth candidate participant device based on the Nth second bucket information and the bucket number sequence.

7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the participant determination method as described in any one of claims 1 to 5.

8. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the participant determination method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Privacy-protecting controllable lightweight federal learning method and system and detection method

    CN114077755A

  • Federal learning-based data matching method and device

    CN114492852A