The application discloses a
data processing method and related device, obtains a training sample matrix composed of labeled image samples of a source domain and unlabeled image samples of a target domain, a
sample label of the labeled image samples is used for identifying category information of the labeled image samples, an initial field alignment matrix, an initial global
similarity matrix and an initial predicted
label matrix are updated according to the training sample matrix, a target alignment matrix, a target global
similarity matrix and a target predicted
label matrix are obtained, a check parameter is constructed according to the training sample matrix, the target alignment matrix, the target global
similarity matrix, the target predicted
label matrix and a source domain
sample label matrix, if the check parameter does not satisfy a first convergence condition, iterative updating is performed until the first convergence condition is satisfied, and it is considered that training of an image recognition model of the target domain is completed.
Label propagation can make the labeled image samples of the source domain be used in image recognition of the target domain, and improve training efficiency of the image recognition model of the target domain.