Abstract:Aiming at the problems of poor diagnostic accuracy and poor generalization of the traditional deep learning algorithm applied to rolling bearing fault diagnosis under small sample conditions. A small-sample bearing fault diagnosis algorithm based on hybrid self-attention mechanism and siamese network is proposed. Based on the structure of the siamese neural network, pairs of bearing samples of the same category and different categories are constructed and fed into the siamese network, and the features of the samples are extracted with the help of one-dimensional convolutional unit, and then the hybrid self-attention module is constructed by using the matrix fusion of the positional self-attention mechanism and the channel self-attention mechanism to obtain more discriminative feature information, and the distance metric is used to replace the commonly used Euclidean distance measure with the adaptive network measure, and the global mean distance measure is introduced to replace the commonly used European distance metric. metric, and global mean pooling is introduced to reduce network parameters. The experimental results show that the accuracy of this paper's method is 88.2%, 94.7%, and 96.2% for the number of fault samples of 9, 15, and 30 in each class, comparing with other methods, the algorithm proposed in this paper has a higher diagnostic accuracy under the condition of small samples and has a better generalization performance.