Aiming at the problem of low fault recognition rate caused by different distribution of training samples and test samples and imbalance of various fault data in bearing fault diagnosis, a domain adaptive fault diagnosis method based on improved residual network ( ResNet ) is designed. In the first layer of the diagnosis network, a multi-dimensional convolution structure is used for feature extraction to obtain fault feature information of different dimensions; the local maximum mean difference (LMMD) is used in the domain adaptive layer to align the distribution of the source domain and the target domain to obtain more fine-grained information; the class balance loss function ( CBLoss ) is used to solve the training problem of unbalanced data, and the Adam optimization network is used to realize fault diagnosis. Experimental results show that the proposed improved method can achieve higher diagnosis results under the imbalance of fault sample categories. Experimental verification is carried out on two bearing data sets and collected wind turbine data. The results show that the proposed improved method has certain advantages. The diagnostic performance of the proposed improved method in the case of unbalanced data samples is better than other deep transfer learning methods, and it can be used as an effective cross-condition fault analysis method.