The invention discloses an unsupervised domain adaptation method based on an adversarial learning loss function, and the method comprises the steps: (1), generating a high-level feature of a source domain image through a feature extraction network G, carrying out the cross entropy loss with a real label through a classifier C, generating a confusion matrix through a domain discriminator D, and correcting a pseudo label into the real label; and (2) generating high-level features of the target domain image through a feature extraction network G, generating pseudo tags through a classifier C, generating a confusion matrix of the high-level features through a domain discriminator D, and correcting the pseudo tags to be in opposite distribution. (3) confronting and optimizing the loss functionby a feature generator and a discriminator. In addition, for the confusion matrix on the target domain, a correction label is generated and serves as a label of the target domain, and the classifier is optimized. By utilizing the method and the device, the noise of the pseudo tag can be corrected in unsupervised domain adaptation, and the distribution difference between the domains is matched, sothat the classification precision of the target domain is improved.