The invention relates to a model training method and device,
computer equipment, a computer readable storage medium and a
computer program product. The method comprises the steps of receiving multiple groups of first
model parameters fed back by multiple clients, determining the first
model parameters as sample points to obtain a sample
data set, determining distance inverse
number density of the sample points for each sample point based on the distance between the sample point and adjacent sample points of the sample point, and determining the distance inverse
number density of the sample points based on the distance inverse
number density. The method comprises the following steps: determining a local density correction term of a sample point, clustering a sample
data set based on the distance inverse number density and the local density correction term, determining the local density of the sample point, and based on the local density of each sample point, dividing clients with similar data distribution into the same
client set to obtain a plurality of
client sets, and scheduling the plurality of clients. Clients in the same
client set share
model parameters, and the model is jointly trained in a federal learning mode. By adopting the method, the model training precision can be improved.