Abstract
Bearing fault diagnosis is an important research field for rotating machinery health monitoring. Recently, many intelligent fault diagnosis methods driven by big data, such as transfer learning, have been studied. However, there are two shortcomings for the prior transfer learning method in industry application. First, it is necessary to design a complex loss function to enhance the similarity between the two domains further. Second, previous studies required big data both in source and target task, without considering the lack of sufficient training samples. Inspired by relevant research work, this article proposes a local joint distribution discrepancy to increase similar features. A sub-domain adaptive transfer learning is designed to detect bearing faults based on the residual network. Two kinds of transfer experiments are designed to verify the method effectiveness. After that, the impact of small training samples and noise on the results is explored. The proposed method reaches high accuracy.
Keywords
1. Introduction
As modern industrial equipment becomes large-scale, automatic, and complex, links between industrial equipment are getting closer. This raises higher requirements for health monitoring of the production process. Therefore, it is necessary to develop efficient methods to diagnose faults. As an important component of rotating equipment, healthy bearing plays an important role in ensuring normal operation of equipment and is an important research object in fault diagnosis (Cerrada et al., 2018).
On the other hand, in order to deal with the growing data, establishing a fast, flexible, and high-precision diagnostic model, and liberating people from the tedious work of extracting features in the past, researchers tried to design an end-to-end diagnostic model. Among them, data-driven intelligent fault diagnosis represented by deep learning has made great progress (Lei et al., 2020; Zhao et al., 2019). For example, the convolutional neural network (CNN) is widely used in fault diagnosis of different rotating components (Zhu et al., 2019; Jiang et al., 2019; Zhang et al., 2018; Ince et al., 2016). The common character of these research studies is to design a CNN frame–based method to solve the problems for different components. Taking different types of rotating components as research objects, CNN-based methods achieve higher accuracy than traditional methods.
Two problems must be solved for fault diagnosis in actual industrial scenarios. First, limited by different operating conditions, different units, the interference of equipment wear, and environmental noise, the same type of fault characteristics for similar components is different, which causes a sharp decline in diagnostic performance for most methods. Second, labeled data are generally collected in the laboratory or test equipment; such data are usually quite different from the target data to be detected. In order to enable target tasks to be diagnosed by the model trained on labeled data efficiently, the method of retraining or fine-tuning (Tong et al., 2019) is adopted in training. However, it is essential for the target task to collect and label large amounts of data. If the target task is to detect the fault of actual unit components, it will be difficult, costly, and even impossible to collect massively labeled data.
Transfer learning is a method of applying knowledge learned from a domain or task to different but relevant domains or tasks (Pan and Yang, 2010). At present, more and more studies (Li et al., 2020a) adopt feature-based transfer learning methods to solve the problems mentioned above. The core idea of a feature-based transfer learning method is to find similar features between source domain and target domain. Appropriate metrics are designed to increase the similarity of features between the two domains. We conclude by reviewing literature in the fault diagnosis research, that the metrics can be divided into three categories: feature discrepancy based, generative adversarial based, joint generative adversarial and feature discrepancy based. The method based on feature discrepancy is mainly to add an adaptive layer in the network and use a simple formula as a measurement criterion to shorten source and target domains as close as possible after mapping, so it is simple and efficient. Wen et al. (2019) proposed a transfer learning method based on sparse automatic encoder machine (SAE) and used the maximum mean discrepancy (MMD) as a metric criterion to realize the fault transfer of bearings between different working conditions. Yang et al. (2019) used the multi-kernel MMD (MK-MMD) as the metric criterion to transfer laboratory bearing faults to real bearing faults. The method based on adversarial is to replace the adaptive layer and the traditional metric by designing the discriminant network and the discriminant loss function. It overcomes the problem that traditional domain adaptation can only select fixed features and has greater flexibility. (Cheng et al., 2020) explored the fault transfer of bearings under different working conditions and different sensor measuring location by using Wasserstein generative adversarial networks (WGAN) to learn the similar features in the two domains. Li et al. (2020b) studied the problem that the source domain fault category is far more than that of the target domain based on the partial domain generative adversarial. The method based on joint adversarial and feature discrepancy combines the above advantages, but it needs to balance multiple loss, which is more complex. Based on a convolutional neural network, Guo et al. (2019) designed a domain classifier to assist in extracting the similar features between source domain and target domain. MMD was also adopted in Guo’s research. Based on the residual network, Jiao et al. (2020) used joint distribution discrepancy (JDD) as the metric criterion and adopted adversarial to enhance similar features in two domains.
Through the above literature research, it can be seen that in order to increase the feature similarity between the two domains, different methods were adopted to design metrics. However, there are two shortcomings in the above research.
First, in order to increase the feature similarity between the two domains, a single (Wen et al., 2019) or multiple global loss functions (Li et al., 2020b; Guo et al., 2019; Yang et al., 2019) are usually designed; the similarity within each category (finer granularity information) is seldom paid attention. Although adversarial based methods can focus on local similarity, it needs to design discriminant network and discriminant loss function and balance the strong and weak relationship between them. When the design is unreasonable, it is difficult to converge. Second, requirement that both source domain and target domain have large amounts of data was needed in the existing research, but the lack of training samples was not considered fully. In fact, in order to achieve rapid deployment, it may be difficult to collect massive source and target domain data within a short time. To solve these problems, some related work has been carried out. In the field of image recognition, Zhu et al. (2021) designed the local maximum mean difference (LMMD), which divides the global features into multiple subspaces to measure the local similarity of the two domain features based on the classification while retaining the simplicity. This method does not need to resort to adversarial methods, and only a simple division method is used to focus on the local information of data. For the second problem, the influence on minor labeled auxiliary samples in source on transfer results was discussed in literature (Wu et al., 2020). However, according to the literature investigation, it is necessary to supplement the research on local features of transfer. And the research on the impact of training sample size on transfer learning is not comprehensive. Furthermore, this article uses the deep convolution residual network proposed by Kaiming et al. (2016) as standard and then designs the network on this basis. Research on fault diagnosis and the residual network has been proved to be effective in bearing (Zhang et al., 2019), gear (Ma et al., 2019), transfer fault diagnosis (Wang et al., 2021), and so on.
A sub-domain adaptive transfer learning for the fault diagnosis method is proposed in this research. The main contributions are as follows: A local joint distribution discrepancy is designed to increase similar features, and a transfer method is proposed. The effects of the method are studied from two perspectives. The transfer learning between different degrees of failure under different working conditions and the transfer learning between different types of faulty bearings. The impact of the training sample size on the diagnosis result is comprehensively studied, especially when training with small samples. The adaptability and robustness of this transfer method to noise are studied in detail.
The remaining organizations of article are as follows. The related work of deep neural networks is introduced in section 2. The method is introduced in section 3. The performance of this method is explored in section 4. The mechanism of the method to achieve high precision is analyzed in section 5. Finally, the summaries and prospects is introduced in section 6.
2. Related works
2.1. Convolution neural network
The convolutional neural network has been universally adopted to automatically extract fault features in the diagnosis recently. Compared with the original residual network model, this article replaces two-dimensional convolution with one-dimensional convolution and reduces the number of residual units to 4. The structure of the convolutional network in this article is shown in Figure 1. The key network parameters of each part are shown in Table 1. Architecture of the method. Details of the method.
2.2. Feature extraction based on convolution neural network
Let
The batch sample is normalized as follows
The non-linear activation function ReLU is usually added to increase non-linearity between the neural network layers
An average pooling layer before the classifier can effectively reduce the feature dimension and prevent overfitting to a certain extent
2.3. Classifier
The high-level features extracted by the upper convolution layer will be flattened to regular dimension before being sent to the classifier, and then the probability distribution of the input data is calculated through the softmax function
3. The proposed method
3.1. Joint distribution discrepancy
For a domain containing random variables
3.2. Local joint distribution discrepancy
In most feature-based transfer learning methods, MMD is used to reduce the feature difference between the source domain Feature adaptive indication with different methods: (a) domain adaption with MMD, (b) domain adaption with JDD, and (c) the proposed method.

Take the result of equation (6) into (11)
The definition of weight
For the source domain
3.3. Loss function and training process
The classification loss function is
The distribution difference of the advanced features learned by the deep network from the two domains is measured by equation (12); let
The final optimization objection is
The parameter λ is calculated as follows
The Adaptive Moment Estimation optimizer (Kingma and Ba, 2014) is adopted to train the network. In this article, the learning rate
4. Case study
4.1. Dataset description
CWRU Bearing Fault Dataset (Smith and Randall, 2015): In the CWRU bearing failure test, SKF6205 bearings are installed on the driven end. The data collected at 12 kHz sampling frequency are selected in this research. These data contain four different bearing states: health, inner race failure, rolling failure, and outer race failure (at 3 o’clock, 6 o’clock, and 12 o’clock). The failure status includes three different failure levels (fault diameters are 0.007 inches, 0.014 inches, and 0.021 inches, respectively).
IMS Bearing Fault Dataset (Qiu et al., 2006): IMS bearing failure test adopts ZA-2115 bearing and collects data at 20 kHz sampling frequency. These data contain three datasets; each one describes a run-to-failure experiment of one bearing, including inner race failure, rolling failure, and outer race failure. Therefore, four near-real states of bearing can be obtained from this dataset.
4.2. Case designing
Case1 A more practical task is to collect data to train the model under a safe condition, such as the condition of incipient fault and low load, and then to identify the data collected under the condition of severe fault and high load. Therefore, in the CWRU dataset, 0.007 inches fault diameter, 0 hp, and 1797 rpm are used as dataset A, and 0.021 inches fault diameter, 3 hp, and 1730 rpm are used as dataset B, and the transfer task is designed: A→B, B→A.
Case2 It is significant research to study the transfer learning from artificial fault bearings to real fault bearings. In the CWRU dataset, 0.007 inches fault diameter, 2 hp, and 1750 rpm are selected as the dataset C. The failure signal segment is selected on the IMS as the dataset D. The transfer task is designed: C→D, D→C. Guo et al. (2019) studied the transfer learning between CWRU and IMS previously, and the average accuracy was 89.8%. This article will use the proposed method to study this transfer task. The specific description of dataset is shown in Table 2.
Details of datasets.
4.3. Data augmentation
In order to obtain sufficient samples in the CWRU and IMS datasets, overlap sampling techniques are used to expand the data. The overlap sampling technique is shown in Figure 3. A fixed-length window is used to slide along time sequence direction. There may be overlapping parts between adjacent segments. Along the time sequence direction, the purple line (splitter) divides the long signal into two equal segments. Taking the first Tr segment as the training set and the last Te segment as the test set. The advantage of dividing training samples and test samples in this way is to avoid cross interference between training samples and test samples, which can use historical information to diagnose possible failures in the future. Especially, the data from source domain or target domain are both divided into training set and test set. Thus, the source domain training set participates in supervised training, while the test set evaluates the training accuracy. The target domain training set participates in unsupervised training, while the test set evaluates the final accuracy. Data augment with overlap.
The window size is 1024 and Tr and Te is 200 in this article; thus, a dataset is divided into 800 samples; each category contains 200 samples.
4.4. The influence of batch size and the comparison of different methods
In section 3, two important hyperparameters λ and The effect of batch size.
Accuracy on different transfer tasks.
4.5. The effect of training sample size on results
It is well known that the properties of detection methods based on deep learning are closely related to the training sample size and data quality. In transfer learning, samples from the source domain participate in supervised learning and domain adaptive unsupervised learning, while samples from the target domain only participate in domain adaptive unsupervised learning. In fact, in a transfer task, there may be fewer training samples from the target domain. Another corresponding scenario is that the number of labeled source domains may be small, while a large number of samples exist in the target domain to be detected.
Assuming that all samples in the source domain participate in training, α is the ratio of samples participating in training to the total samples in the target domain. In the target domain, 5%, 10%, 15%, 25%, 35%, 45%, and 50% samples of α are selected. The test sample is a total sample of all target domains. Figure 5 shows that when fewer target domain samples are involved in training, the average accuracy is lower and stability is poor. When α = 5%, the detection effect is the worst. Among them, the average detection accuracy of C→D and D→C is the lowest and the result is unstable, and the detection accuracy is even far less than 80% in the results. When α ≥ 45%, the detection accuracy distribution of multiple calculations has been relatively stable. The minimum detection accuracy is higher than 98%, and the average detection accuracy is higher than 99%. With the increase of α, the average detection accuracy is obviously improved. When α ≥ 15%, the average detection accuracy of the 4 tasks is higher than 99%. The effect of training sample size from target domain on results.
Supposing that all samples in the target domain participate in training, β is the ratio of samples participating in training to the total samples in the source domain. β is taken as 5%, 15%, 25%, 35%, 45%, and 50% in the source domain for training. Figure 6 shows that the accuracy of all tasks is higher than 90%, and task C → D is greatly affected by β. Compared with the accuracy and variance of the other three tasks, task C → D has the lowest accuracy and larger variance. When β increases, the average accuracy decreases slightly, but it is much higher than 99%. The effect of training sample size from source domain on results.
In general case, only part of samples in both source domain and target domain participated in training, α = {5%, 15%, 25%, 35%, 45%, 50%, 100%} and β = {5%, 15%, 25%, 35%, 45%, 50%, 100%}; the average accuracy and variance of the four tasks under different parameter combinations are shown in Figure 7. The effect of training sample size from source domain and target domain on results: (a) accuracy and (b) variance.
The transition color in Figure 7 (a) brightens from the lower left corner to the upper right corner. The color of upper right corner in Figure 7 is lighter, which indicates that increasing the training sample size of source and target domains at the same time will significantly improve the accuracy of the model and ensure the stability of the results. The reason for this phenomenon is that increasing the training sample simultaneously can enhance the generalization ability of the model. Figure 7 (b) shows that the transition color darkens from the upper left corner to the lower right corner with the largest variance in the lower right corner. Correspondingly, the lower right corner in Figure 7 (a) has the darkest color and the lowest accuracy, which indicates that reducing the training sample size of the target domain while increasing the training sample size of the source domain will lead to instability of the result and decline of the detection accuracy because only increasing the training samples in the source domain will strengthen the supervised learning ability of the model to the classification knowledge, but weaken the unsupervised learning ability of the transfer knowledge, and then further weaken the generalization ability of the model. In addition, it can be seen intuitively from Figure 7 that most areas are light-colored, indicating the model has high accuracy under the combination of most sample sizes, and the model has good performance.
4.6. The influence of noise in the target domain on the result
This section discusses the detection accuracy of the current method under a noisy environment. In a real industrial scenario, researchers can perform pre-processing on the source domain data such as noise reduction or feature enhancement to improve the quality, while the target domain data may contain a lot of noise. Different degrees of Gaussian noise are added to the original target domain data in order to approximating the actual data. The definition of signal-to-noise ratios is as follows
Figure 8 shows the accuracy of different transfer tasks under different signal-to-noise ratios. It shows that when the signal-to-noise ratio is high, the classification accuracy of all tasks is very high. When SNR ≥ 2 dB, the average accuracy will exceed 99%, and the accuracy of C→D is the lowest, but it is also higher than 98%. When SNR is less than or equal to 0 dB, the accuracy of C→D drops significantly, lower than 90%. The effect of SNR.
5. Why works?
In order to quantify the distribution differences between two domains, α-distance (Ben-David et al., 2010) is generally adopted to estimate the difference between different distributions
Figure 9 shows the α-distance values of different methods and the proposed method in this article on different tasks. It shows that the α-distance value of the proposed method is the smallest, which is significantly lower than the values of other methods. It indicates that if the extracted features both from the source domain and target domain are very similar, the linear classifier is difficult to distinguish domain features. TICNN and ResNet have the worst performance on tasks because α-distance value of them is the highest. This indicates that the extracted features are not similar and are easily distinguished by linear classifiers. α-distance on different task.
The features of network learning are clustered and displayed by the t-SNE algorithm (Van der Maaten and Hinton, 2008). Taking task C→D as an example, as shown in Figure 10. Figure 10 (a) shows the source and target domain features distribution scatter diagram extracted by this method. It can be seen from Figure 10 (a) that the category features are well separated, with almost no overlap, and the feature scatters of the same category from source domain and target domain are almost overlapped. It can be seen from Figure 10 (b)–(e) that the feature scatters in the source domain are well separated, but the features in the target domain are not well separated, and the features of the target domain and the source domain do not overlap. It can be seen from Figure 10 (f) that the feature scatters of source domain and target domain are well separated, and only littles of samples overlap on the source domain. Feature visualization via t-SNE on task C→D: (a) ours, (b) TICNN, (c) ResNet, (d) TCA, (e) JDA, and (f) DDC.
Taking task C → D as an example, the feature map of last convolutional layer for dataset D is extracted, as shown in Figure 11. It shows only a few bright color bands on the feature spectrum of the four categories, which means that the features extracted by the neural network are sparse. From the perspective of signal analysis, the method based on deep learning transforms the fault signal from the original space to a new space in the training process. In the new space, if the signal has only a small amount of non-zero values, it is sparse in this new space, and this space is named a good sparse domain. The sparsely expressed features will improve the robustness of the model. Feature map of the last convolution layer: (a) health, (b) roller fault, (c) inner fault, and (d) outer fault.
6. Conclusion
Aiming at diagnosing bearing faults, a method based on local joint distribution discrepancy is proposed in this article to increase similar features. And a sub-domain adaptive transfer learning method is designed based on the residual network. This article studies the transfer learning of bearings under different working conditions and different fault degrees and studies the fault transfer learning of different types of bearings. The results show that compared with other methods, the method proposed achieves the highest accuracy in various tasks. The influence of noise and training sample size on the proposed method is further studied. The results show that the method has a certain anti-noise ability and good generalization ability.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The authors gratefully acknowledge the financial support by the 111 Project P.R.China (Grant No. B16038).
