Space-time attention wavelet transfer network-based fault diagnosis method for rolling bearings under different working conditions

By using a spatiotemporal attention wavelet transfer network, combined with wavelet fusion convolution and composite domain alignment techniques, the problem of fault diagnosis of rolling bearings under complex working conditions is solved, achieving high-precision and high-robust fault identification, and adapting to variable speed, variable load and strong noise environments.

CN123179177APending Publication Date: 2026-11-27SHANDONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611673515.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing rolling bearing fault diagnosis methods are difficult to adapt to complex working conditions such as variable speed, variable load and strong noise environment, resulting in insufficient feature robustness. In addition, traditional methods are difficult to effectively extract multi-scale time-frequency features and suppress noise interference, which affects the accuracy and stability of diagnosis.

Method used

A spatiotemporal attention wavelet transfer network is adopted to extract multi-scale non-stationary transient features through wavelet fusion convolution. Combined with spectral channel recalibration and transient sensing time correlation, noise is suppressed and fault impact is located. Composite domain alignment is performed through domain adversarial loss, center loss and triplet loss to form class discriminative features.

Benefits of technology

It achieves high-precision and robust fault diagnosis under various operating conditions, improves diagnostic accuracy and stability, adapts to complex and variable operating conditions and high-noise environments, and provides reliable fault diagnosis support for mechanical systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179177A_ABST
    Figure CN123179177A_ABST
Patent Text Reader

Abstract

The application discloses a kind of spatiotemporal attention wavelet migration network cross-condition rolling bearing fault diagnosis method, it is related to rolling bearing intelligent fault diagnosis technical field, and the vibration signal of source domain and target domain rolling bearing under different conditions is acquired and pretreated;STAWTC network is constructed, and multi-level wavelet decomposition is executed to vibration signal, frequency perception convolution and wavelet reconstruction are carried out, and multi-scale non-stationary transient feature is extracted;Spectrum channel recalibration and transient perception time correlation, inhibit noise dominant band and locate fault impact;Combined with domain adversarial loss, center loss and triplet loss, composite domain alignment training is implemented, and the vibration signal to be diagnosed is input into the network after training, and the output rolling bearing health state and diagnostic result.The application can realize high-precision, high-stability fault diagnosis migration under variable speed and strong background noise conditions, and the average accuracy on two data sets of HUST and NWPU reaches 99.45% and 98.12% respectively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent fault diagnosis technology for rolling bearings, and in particular to a method for cross-condition rolling bearing fault diagnosis using a spatiotemporal attention wavelet transfer network. Background Technology

[0002] In the context of intelligent manufacturing and industrial equipment health monitoring, rolling bearings, as key support components in rotating machinery systems, directly affect equipment safety, production continuity, and maintenance costs. Because bearings operate under high-speed rotation, variable loads, strong impacts, and complex noise environments, critical components such as the inner ring, outer ring, and rolling elements are prone to cracks, wear, and spalling. If these faults are not identified in time, they can lead to equipment performance degradation and downtime for maintenance, or even system-level failures and safety accidents. Therefore, developing an intelligent diagnostic method that can adapt to complex operating conditions, effectively extract subtle fault characteristics, and possess stable generalization capabilities has become an important research direction in the field of rotating machinery fault diagnosis.

[0003] Existing methods for rolling bearing fault diagnosis mainly include traditional signal processing methods, model-driven methods, and deep learning methods. Traditional signal processing methods typically rely on techniques such as wavelet transform, empirical mode decomposition, and envelope spectrum analysis to extract features from vibration signals. While these methods can reveal the time-frequency structure and impact components in non-stationary signals to some extent, their diagnostic performance is highly dependent on human experience and parameter selection, making it difficult to adapt to the dynamic changes in fault characteristics under complex operating conditions. Model-driven methods can establish physical interpretations by combining bearing dynamics mechanisms, but in actual industrial environments, due to complex equipment structures, uncertain boundary conditions, and significant noise interference, accurate modeling is difficult, limiting their application scope. In recent years, deep learning methods such as convolutional neural networks have achieved good results in bearing fault diagnosis tasks due to their end-to-end feature learning capabilities. However, traditional convolutional structures typically use fixed receptive fields, making it difficult to fully capture the multi-scale time-frequency features of fault impact signals under varying speeds and loads, easily leading to insufficient fault representation and inadequate feature robustness.

[0004] Transfer learning and domain adaptation methods offer effective solutions to the distribution offset problem in cross-condition diagnostics. These methods, by leveraging source domain knowledge to assist target domain diagnosis, can mitigate performance degradation caused by inconsistent data distributions under different speeds, loads, or noise levels. Among them, adversarial learning-based domain adaptation methods, by introducing domain discriminators and gradient inversion layers, achieve global alignment of feature distributions between the source and target domains, and have been widely applied in cross-domain fault diagnosis. However, existing methods still suffer from two main problems: first, strong background noise and non-stationary dynamic interference can mask weak periodic fault impacts, making deep networks prone to learning pseudo-correlated features unrelated to the fault mechanism; second, most domain adaptation methods primarily focus on global edge distribution alignment, neglecting local geometric structures and class discrimination boundaries in the feature space, easily leading to inter-class feature aliasing, boundary sample misjudgment, and negative transfer phenomena.

[0005] Furthermore, while traditional attention mechanisms can enhance the response to key features, most methods directly operate on abstract feature maps, lacking a clear correspondence with the time-frequency structure of bearing fault signals. Under strong noise conditions, ordinary attention mechanisms may incorrectly amplify noise-dominant frequency bands or accidental impact components, making it difficult to stably locate truly diagnostically significant periodic transient features. Simultaneously, as network depth increases, deep features tend to homogenize. Without effective intra-class compactness and inter-class separation constraints, while the model can achieve domain confusion to some extent, it struggles to form clear and reliable fault category decision boundaries, thus limiting further improvements in diagnostic accuracy, stability, and interpretability.

[0006] Therefore, there is an urgent need for an intelligent fault diagnosis method that integrates signal processing priors, spatiotemporal feature adaptive enhancement, and discriminative domain alignment mechanisms. This method should leverage the advantages of wavelet multi-resolution analysis to extract multi-scale fault impact features from non-stationary vibration signals, suppress noise-dominant components and highlight key transient information through a spatiotemporal attention mechanism, and combine adversarial domain adaptation and metric learning constraints to reduce cross-condition distribution differences while improving intra-class compactness and inter-class separability. This will enable high precision, high robustness, and good generalization ability in the fault diagnosis of rolling bearings under complex variable operating conditions and high noise environments. Summary of the Invention

[0007] This invention discloses a spatiotemporal attention wavelet transfer network for cross-condition rolling bearing fault diagnosis. Multi-scale non-stationary transient features are extracted using wavelet fusion convolution. Noise is suppressed and fault impacts are located sequentially through spectral channel recalibration and transient sensing time correlation. Finally, composite domain alignment is performed using domain adversarial loss, center loss, and triplet loss, thereby forming fault features that possess both domain invariance and class discriminative properties under cross-condition conditions.

[0008] To achieve the above objectives, the present invention adopts the following technical solution: a spatiotemporal attention wavelet transfer network method for cross-condition rolling bearing fault diagnosis, specifically including the following steps: S1, collecting rolling bearing vibration signals under different working conditions, and using a sliding window for sample truncation and standardization to construct labeled source domain data, unlabeled target domain data, a small amount of labeled target domain data, and data to be diagnosed; S2, constructing a wavelet ensemble convolution feature extraction network, and obtaining multi-scale non-stationary transient features through multi-level wavelet decomposition, frequency-aware convolution, and wavelet reconstruction; S3, processing the extracted multi-scale non-stationary transient features according to... The first step involves recalibrating the spectral channels and performing transient sensing time correlation to obtain spatiotemporally refined features after noise suppression. The second step involves training the STAWTC network in three stages based on these spatiotemporally refined features: source domain pre-training using labeled source domain data, composite domain alignment training using labeled source domain data and unlabeled target domain data combined with fault classification loss, domain adversarial loss, center loss, and triplet loss, and target domain fine-tuning using a small amount of labeled target domain data. The third step involves inputting the data to be diagnosed into the trained STAWTC network to output the rolling bearing health status category and fault diagnosis results.

[0009] Further, in step S1, a one-dimensional vibration signal sample is extracted according to a sliding window of a preset length, and standardization processing is performed on each sample; the labeled sample under one working condition is set as source domain data, and the sample under another working condition is set as target domain data, wherein the target domain data includes unlabeled samples and a small number of labeled samples for fine-tuning.

[0010] The process of acquiring rolling bearing vibration signals and constructing the dataset: Multi-sensor signal acquisition, deploying a multi-channel multi-physical quantity sensor array, with sampling frequencies of 25.6kHz and 32kHz for the first bearing test bench and 10.2s and 60s for the second bearing test bench; Sub-sample extraction, using a 2048-length sliding window to extract sub-samples for both test benches, acquiring 500 samples for each state; Dataset construction, using labeled source domain samples, unlabeled target domain samples, and a small number of labeled target domain samples for source domain pre-training, domain adaptation training, and target domain fine-tuning, respectively.

[0011] Further, in step S2, the wavelet ensemble convolutional feature extraction network obtains multi-scale non-stationary transient features through the following steps: Wavelet decomposition: Discrete wavelet transform is used to decompose the input one-dimensional vibration features into multiple levels, dividing the original time-domain signal into low-frequency approximate components and high-frequency detail components. The low-frequency approximate components are then recursively decomposed at the next level to cover both the long-term trend and short-term impact of the fault information. Frequency-aware convolution: The low-frequency approximate components and high-frequency detail components obtained after wavelet decomposition are concatenated along the channel dimension, and convolutional feature extraction is performed in the wavelet domain. First, channel-wise convolution is used to process the features of each frequency band separately to preserve the independent responses of different frequency components. Then, point-wise convolution is used to fuse the correlation information between the low-frequency components and the high-frequency components, enabling the network to learn the nonlinear relationship between the low-frequency trend caused by changes in operating conditions and the high-frequency transient caused by fault impact, thereby obtaining multi-scale fault features with frequency awareness. Wavelet reconstruction: The frequency-aware convolution is then... The processed low-frequency and high-frequency features are re-splitened and restored to their original temporal resolution through inverse wavelet transform, enabling subsequent network layers to continue feature extraction and classification at a unified time scale. A cascaded structure of multi-level wavelet decomposition and reconstruction expands the network's effective receptive field, allowing it to capture long-term dependencies and local transient fault features across operating conditions. The network layer configuration includes an input backbone layer, an improved ResNet-18 backbone network, and multiple wavelet fusion convolutional layers. The input backbone layer is used for shallow feature embedding of one-dimensional vibration samples, while the improved ResNet-18 backbone network is used to extract deep fault features layer by layer. The wavelet fusion convolutional layers include a basic convolutional path and a wavelet convolutional path. The basic convolutional path extracts the original temporal local response, while the wavelet convolutional path extracts multi-band time-frequency responses. The two paths are adaptively weighted and fused using learnable channel-gated weights, outputting multi-scale non-stationary transient features.

[0012] Furthermore, the wavelet decomposition uses the Haar wavelet basis to perform a single-level decomposition of the input sequence x. The specific formula for the decomposition process is as follows: ; ; In the formula, Represents the input sequence; This represents the index of the coefficient position after wavelet decomposition, and The subscripts L and H represent low-frequency and high-frequency components, respectively. and They represent the first A low-frequency approximation coefficient and a high-frequency detail coefficient; Concat indicates splicing along the channel dimension. This indicates the multi-band characteristics after splicing.

[0013] Further, in step S3, the process of spectrum channel recalibration includes: channel statistical feature extraction, performing global average pooling and global max pooling on the multi-scale features output by wavelet fusion convolution to extract the average and peak responses of each channel in the time dimension, obtaining channel description vectors that can characterize the energy distribution and impact intensity of different frequency bands; channel correlation modeling, stacking the channel description vectors and performing linear mapping to form a channel feature sequence labeled by each frequency band channel, and inputting it into the attention encoder to calculate the global correlation between channels of different frequency bands; channel weight generation, inputting the channel correlation features output by the attention encoder into the gating layer, and mapping them to channel weights in the 0-1 interval through the Sigmoid activation function, which are used to represent the importance of different frequency band channels to the fault diagnosis task; frequency band feature reweighting, multiplying the channel weights element-wise with the output features of wavelet fusion convolution to enhance the fault-sensitive frequency bands and suppress the frequency bands dominated by background noise, harmonic interference, and random spikes, obtaining the features after spectrum channel recalibration.

[0014] Further, in step S3, the transient perception time correlation process includes: time marker construction, projecting the recalibrated features of the spectral channel onto the latent feature dimension and rearranging them along the time dimension so that each time position corresponds to a time marker, forming a time marker sequence; time correlation modeling, inputting the time marker sequence into the attention encoder to calculate the correlation between any two time positions and establish a long-distance time dependency in the vibration signal; transient impact localization, enhancing the periodic fault impact and its adjacent response region based on the attention response between time positions, weakening the spurious time correlation caused by isolated noise spikes and accidental disturbances, enabling the network to more stably locate transient impacts related to bearing faults; and spatiotemporal feature output, projecting the time correlation features output by the attention encoder back to the original channel dimension and performing residual connection with the recalibrated features of the spectral channel to obtain spatiotemporally refined features that simultaneously contain frequency band selection information and time impact localization information.

[0015] Furthermore, in step S4, the total loss function of the STAWTC network is: ;in, For classification loss function, For the domain adversarial loss function, For the center loss function, The triplet loss function, , , The weights for each loss term are 0.5, 0.001, and 0.1, respectively. The Adam optimizer is used for training, with three training epochs set to 100, 100, and 100, respectively, and the learning rate for each epoch set to 1×10⁻⁶. -4 3×10 -51×10 -5 Set the batch size to 64.

[0016] The classification loss function, domain adversarial loss function, center loss function, and triplet loss function are as follows: In the formula, This represents the number of source domain samples participating in classification training, where i represents the sample index and j represents the class index. Let C represent the true class label of the i-th sample, and let C represent the total number of health status categories. Indicates the first The sample belongs to the first The predicted probability of a class.

[0017] In the formula, D represents the feature extractor, and D represents the domain classifier. Indicates domain adversarial loss, and These represent the data distributions in the source and target domains, respectively. and These represent samples from the source and target domains, respectively. Represents the mathematical expectation. This represents the predicted probability that a feature originates from the source domain.

[0018] In the formula, represents the squared norm between eigenvectors, i.e., the squared Euclidean distance; m represents the number of source domain samples in the mini-batch; In the formula, Represents the features of the i-th sample. Indicates its category center; , and These represent anchor samples, positive samples of the same class, and negative samples of different classes, respectively. Indicates the triplet interval. This indicates taking the positive part, and N represents the number of triples.

[0019] Further, in step S5, the fault classification and diagnosis output specifically includes: feature input, where the vibration signal to be diagnosed is sampled and normalized according to step S1, and then input into the trained STAWTC network, which sequentially undergoes wavelet fusion convolution feature extraction, spectral channel recalibration, and transient sensing time correlation to obtain the spatiotemporal refined features of the sample to be diagnosed; classification prediction, where the spatiotemporal refined features are input into a fault classifier composed of fully connected layers to calculate the predicted probability of the sample to be diagnosed belonging to each rolling bearing health state category; and result output, where the health state category with the highest predicted probability is used as the fault diagnosis result, and the rolling bearing health state category and corresponding predicted probability are output; the health state category includes one or more of the following fault forms: normal state, inner ring fault, outer ring fault, rolling element fault, etc.

[0020] The beneficial effects of this invention are as follows: This method utilizes wavelet fusion convolution to embed wavelet multi-resolution analysis into a deep convolutional network, enabling the expansion of the effective receptive field and extraction of multi-scale fault features from non-stationary vibration signals with relatively small parameter overhead. The processing sequence of first recalibrating the spectral channels and then sensing the transient temporal correlation conforms to the fault signal analysis logic of first denoising the frequency band and then locating the time, reducing the interference of strong background noise and random impacts on the diagnostic results. Through a composite domain alignment target composed of domain adversarial analysis, center loss, and triplet loss, clear category boundaries are maintained while achieving cross-condition domain invariant representation. The average accuracy on the first and second bearing test benches reaches 99.45% and 98.12%, respectively, while simultaneously considering computational efficiency and engineering applicability, providing reliable technical support for cross-condition fault diagnosis of mechanical systems. Attached Figure Description

[0021] Figure 1 This is a flowchart of the method of the present invention.

[0022] Figure 2 This is a diagram illustrating the overall structure of a spatiotemporal attention-guided wavelet ensemble transfer convolutional network according to an embodiment of the present invention.

[0023] Figure 3 This is a structural diagram of the wavelet fusion convolution module WTConv shown in an embodiment of the present invention.

[0024] Figure 4 This is a comparison chart of the diagnostic accuracy of the first bearing test bench dataset across operating conditions, as shown in an embodiment of the present invention.

[0025] Figure 5 This is a comparison chart of the diagnostic accuracy of the second bearing test bench dataset across operating conditions, as shown in an embodiment of the present invention.

[0026] Figure 6 This is a comparison chart of diagnostic accuracy under different noise environments, as shown in the embodiments of the present invention. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0028] This invention discloses a spatiotemporal attention wavelet transfer network-based method for diagnosing rolling bearing faults across operating conditions, such as... Figure 1 As shown, the specific steps are as follows: (1) Data acquisition and preprocessing. Collect the vibration signals of rolling bearings under different working conditions, use a sliding window to extract samples and normalize them, and construct labeled source domain data, unlabeled target domain data, a small amount of labeled target domain data and data to be diagnosed. In this embodiment, the method of the present invention is verified by the first bearing test bench and the second bearing test bench. The first bearing test bench is the HUST rolling bearing fault diagnosis experimental platform, and the second bearing test bench is the NWPU wind turbine bearing fault diagnosis experimental platform. The HUST rolling bearing experimental platform includes a speed control device, a drive motor, a shaft, the bearing to be tested, an acceleration sensor and a data acquisition module, which are used to collect the vibration signals of rolling bearings under different speed conditions; the NWPU wind turbine bearing fault diagnosis experimental platform includes a wind turbine gearbox test bench, an industrial fan, an industrial blower and faulty bearing components, which are used to simulate complex operating environments such as fixed speed, variable speed, passive fan disturbance and active dynamic noise of the fan.

[0029] Multiple health status signals are collected: The HUST rolling bearing dataset includes six health statuses: normal, moderate damage to the inner ring, severe damage to the inner ring, moderate damage to the outer ring, severe damage to the outer ring, and moderate damage to the rolling elements; the NWPU wind turbine bearing dataset includes normal status as well as fault statuses such as inner ring cracks, outer ring cracks, rolling element cracks, cage fracture, and combined inner and outer ring cracks. Among them, crack faults are used to simulate early damage, and the typical crack size can be set to a width of 0.2 mm and a depth of 0.5 mm.

[0030] A sliding window of length 2048 was used to extract subsamples, with 500 samples obtained for each state. Six cross-condition migration tasks were constructed, including E1→E2, E1→E3, and F1→F2. The source domain samples were divided into training and test sets in a 2:1 ratio, and the target domain samples were also divided into fine-tuning and validation sets in a 2:1 ratio. The parameters of the core components in the experiment are shown in Tables 1 and 2, and the fault data acquisition conditions of the experimental platform are shown in Tables 3 and 4.

[0031] Table 1 HUST Bearing Design Parameters

[0032]

[0033] Table 2 NWPU Bearing Design Parameters

[0034]

[0035] Table 3 HUST Fault Data Acquisition Status

[0036]

[0037] Table 4 NWPU Fault Data Acquisition Status

[0038]

[0039] (2) Multi-scale wavelet fusion feature extraction. The source domain samples and target domain samples processed in step (1) are input into a spatiotemporal attention-guided wavelet ensemble transfer convolutional network. The overall network structure is as follows: Figure 2 As shown, it includes an input backbone layer, an improved ResNet-18 backbone network using wavelet fusion convolution, a spectrum channel recalibration module, a transient sensing time correlation module, a fault classifier, and a domain classifier.

[0040] The input backbone layer performs preliminary dimensionality reduction and shallow feature embedding on the one-dimensional vibration signal, and the output features are fed into the improved ResNet-18 backbone network. The conventional residual convolution in the backbone network is replaced with wavelet fusion convolution to extract low-frequency evolution trends and high-frequency transient impacts at different scales while preserving the local time response.

[0041] like Figure 3 As shown, the wavelet fusion convolution WTConv consists of a base path and a wavelet path. The base path performs a one-dimensional convolution on the input features, while the wavelet path sequentially performs multi-level Haar wavelet decomposition, frequency-aware convolution, and inverse wavelet reconstruction. The outputs of both paths are gated by learnable channel weights generated by a two-layer perceptron and Softmax. and The layers are then fused together and then convolved point by point to form the output of this layer.

[0042] Let the input tensor ,in Input the number of channels. The time length is given. First-order discrete wavelet decomposition is performed using the Haar wavelet basis to obtain the low-frequency approximate components. and high-frequency detail components : ; ; In the formula, Represents the input sequence; ; and They represent the first A low-frequency approximation coefficient and a high-frequency detail coefficient; Concat indicates splicing along the channel dimension. This represents the multi-band characteristics after splicing, and the decomposition simultaneously preserves the operating trend and transient impact of faults.

[0043] right Perform frequency-aware depth-separable convolution. First, process each frequency band separately using channel-wise convolution, and then fuse the correlation between approximate and detail components using pointwise convolution: ; In the formula, This represents channel-wise convolution. This represents pointwise convolution. This represents the activation function. This represents the multi-band features after convolution. This indicates splitting by channel. and These represent the processed low-frequency approximation features and high-frequency detail features, respectively.

[0044] right and Perform an inverse Haar wavelet transform to restore the original time resolution: ; ; In the formula, and These represent the low-frequency and high-frequency coefficients to be reconstructed, respectively. and Indicates adjacent time positions after reconstruction, and IWT represents inverse wavelet transform. This represents the reconstructed output of the wavelet path.

[0045] The low-frequency approximate components recursively enter the next level of wavelet decomposition to form a multi-level wavelet path. Cascading After level, the effective receptive field of the wavelet path Represented as: In the formula, Indicates the depthwise convolution kernel size. Indicates the current decomposition level. This indicates the maximum decomposition level. In this invention... Choose 3. As the decomposition level increases, the effective receptive field expands, enabling the network to simultaneously capture long-term evolution trends and short-term fault impacts.

[0046] (3) Spatiotemporal attention feature refinement. The multi-scale non-stationary transient features output by wavelet fusion convolution are sequentially processed through spectral channel recalibration and transient sensing time correlation. First, noise-dominant channels are suppressed based on global statistics of multi-resolution frequency bands, and then long-range time dependencies are established on the noise-suppressed features. In the spectral channel recalibration stage, global average pooling and global max pooling are performed simultaneously on each channel of the input feature X to compress the time dimension information into a channel description vector. : In the formula, Indicates the channel index. This indicates the time position index within the current channel. ; Indicates the time length of the current feature sequence. This represents the feature value of the c-th channel at the i-th time position. This is the statistical description vector for this channel. The average value reflects the overall energy of the frequency band, and the maximum value reflects the peak impulse.

[0047] Stack the description vectors of each channel into a statistical tensor. Then, a linear projection is performed to form the input of the attention encoder labeled with each frequency channel: In the formula, and These represent the weights and biases of the linear projection, respectively. This represents the input sequence of the attention encoder. The attention encoder establishes global correlations between channels in different frequency bands.

[0048] attention encoding results Input to the gated layer and generate importance weights for each channel using the Sigmoid function. Then multiply it element-wise with the input features: ; In the formula, and These represent the weights and biases of the gated layer, respectively, and σ represents the Sigmoid function. element-wise multiplication This indicates the characteristics of the spectrum channel after recalibration. This process enhances fault-sensitive bands and suppresses background noise and bands dominated by random spikes.

[0049] In the transient sensing time correlation stage, first through input projection Will Mapping from the original channel dimension to the latent feature dimension: In the formula, This represents a 1×1 input projection. This represents the projected temporal features. Each time location is input as an independent label into the attention encoder to compute the correlation between any two time locations.

[0050] Encoded features are projected onto the output. Restore to the original channel dimension, and with Perform residual join: In the formula, TransformerEncoder represents a pre-normalized attention encoder, and the superscript T indicates dimensional transpose. This indicates a 1×1 output projection. This represents spatiotemporal refinement features. Residual connections are used to preserve local information and improve gradient propagation during training.

[0051] (4) Composite domain alignment and three-stage training. Spatiotemporal refined features are input into the fault classifier and the domain classifier respectively, and a gradient inversion layer is set in front of the domain classifier. The fault classifier learns the health status discrimination boundary based on the source domain label, the domain classifier identifies the domain to which the sample belongs, and the gradient inversion layer changes the direction of the domain classification gradient during backpropagation, so that the feature extractor learns the domain-invariant representation.

[0052] The fault classifier uses cross-entropy loss to classify health states. The classification loss function is expressed as: In the formula, Represents classification loss. This indicates the number of source domain samples used in classification training. Indicates the sample index. This represents the category index, where C represents the total number of health status categories. Indicates the first The true class label of each sample Indicates the first The sample belongs to the first The predicted probability of a class.

[0053] Domain confrontation loss Represented as: In the formula, D represents the feature extractor, and D represents the domain classifier. Indicates domain adversarial loss, and These represent the data distributions in the source and target domains, respectively. and These represent samples from the source and target domains, respectively. Represents the mathematical expectation. This represents the predicted probability that a feature originates from the source domain.

[0054] To cluster similar fault features and increase the distance between different fault categories, a center loss and a triplet loss are applied simultaneously to the source domain features: ; In the formula, m represents the number of samples in the intrinsic domain of the mini-batch. Represents the features of the i-th sample. Indicates its category center; , and These represent anchor samples, positive samples of the same class, and negative samples of different classes, respectively. Indicates the triplet interval. This indicates taking the positive part, and N represents the number of triples.

[0055] Therefore, the final composite objective function is: In the formula, Indicates the total loss. Represents classification loss. Indicates domain adversarial loss, Indicates the loss at the center. Indicates the loss of the triplet; , , represents the weights of the domain adversarial, center, and triplet losses, respectively, which were set to 0.5, 0.001, and 0.1 in the experiment.

[0056] The training process consists of three phases. The first phase freezes the wavelet filter and pre-trains the feature extractor and fault classifier using labeled source domain data. The second phase loads the optimal model from the first phase, unfreezes the parameters, and calculates the classification loss, domain adversarial loss, center loss, and triplet loss using labeled source domain data and unlabeled target domain data. These losses are then jointly updated to update the feature extractor, fault classifier, domain classifier, and class centers. The third phase loads the optimal model from the second phase and fine-tunes the feature extractor and fault classifier using a small amount of labeled target domain data.

[0057] (5) Fault diagnosis output. The vibration signal of the rolling bearing to be diagnosed is subjected to sliding window truncation and standardization processing according to step S1, and input into the trained STAWTC network. It is then processed sequentially through wavelet fusion convolution, spectral channel recalibration and transient sensing time correlation to obtain the spatiotemporal refinement features of the sample to be diagnosed.

[0058] The spatiotemporal refined features are input into the fault classifier to calculate the predicted probability of the sample to be diagnosed belonging to each health state category. The health state category with the highest predicted probability is taken as the fault diagnosis result, and the corresponding predicted probability is output. The categories of the HUST dataset include normal state, moderate damage to the inner ring, severe damage to the inner ring, moderate damage to the outer ring, severe damage to the outer ring, and moderate damage to the rolling element; the categories of the NWPU dataset include normal state, cracked inner ring, cracked outer ring, cracked rolling element, cage fracture, and combined cracks of the inner and outer rings.

[0059] To verify the method of this invention, six cross-operational condition transfer tasks were constructed on the HUST and NWPU datasets, respectively, and compared with ResNet-18, DANN, CDAN, DSAN, DDTLN, MSFA-Trans, and AMSAAN. The correspondence between the transfer tasks and operating conditions is shown in Table 5, and the average accuracy of each method on the two datasets is shown in Tables 6 and 7.

[0060] like Figure 4 As shown, in the six cross-condition migration tasks T1 to T6 of the HUST dataset, the STAWTC method of this invention achieved a high fault diagnosis accuracy, with an average accuracy of 99.45%; Figure 5 As shown, in the six cross-condition migration tasks L1 to L6 of the NWPU dataset, the STAWTC method of this invention also exhibits high diagnostic accuracy, with an average accuracy of 98.12%. These results demonstrate that the method of this invention possesses high diagnostic accuracy and stability under different cross-condition migration tasks.

[0061] Table 5. Correspondence between Migration Tasks and Operating Conditions

[0062]

[0063] Table 6. Diagnostic accuracy of different methods on the HUST dataset transfer task.

[0064]

[0065] Table 7. Diagnostic accuracy of different methods on the NWPU dataset transfer task.

[0066]

[0067] Furthermore, Gaussian white noise was added to the original signals in the NWPU dataset to construct mixed signals with different signal-to-noise ratios. For example... Figure 6 As shown, the accuracy of each method decreases with increasing noise, but STAWTC achieves an average accuracy of over 95% under all signal-to-noise ratio conditions. This indicates that it can suppress the noise-dominant frequency band by using spectral channel recalibration and retain periodic fault impacts through transient sensing time correlation.

[0068] Ablation experiments show that removing metric learning constraints reduces accuracy by 13.73% and 17.40% on the HUST and NWPU datasets, respectively; removing spatiotemporal attention reduces accuracy by 7.99% and 8.30%, respectively; and replacing wavelet fusion convolution with ordinary convolution reduces accuracy by 5.27% and 9.00%, respectively. Furthermore, both time-first and parallel attention structures are less efficient than the cascaded structure that prioritizes channels over time, indicating that the module combination and processing order employed in this invention have a synergistic effect on cross-condition rolling bearing fault diagnosis.

[0069] Of course, the above description is not intended to limit the present invention, and the present invention is not limited to the examples given above. Any changes, modifications, additions or substitutions made by those skilled in the art within the scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A method for diagnosing rolling bearing faults across operating conditions using a spatiotemporal attention wavelet transfer network, characterized in that: Specifically, the following steps are included: S1 collects rolling bearing vibration signals under different working conditions, and uses a sliding window to perform sample truncation and standardization processing to construct labeled source domain data, unlabeled target domain data, a small amount of labeled target domain data, and data to be diagnosed; S2, construct a wavelet ensemble convolutional feature extraction network, and obtain multi-scale non-stationary transient features through multi-level wavelet decomposition, frequency-aware convolution and wavelet reconstruction; S3, sequentially perform spectral channel recalibration and transient sensing time correlation on the extracted multi-scale non-stationary transient features to obtain spatiotemporally refined features after noise suppression; S4. The STAWTC network is trained in three stages based on spatiotemporal refinement features, including source domain pre-training using labeled source domain data, composite domain alignment training using labeled source domain data and unlabeled target domain data combined with fault classification loss, domain adversarial loss, center loss and triplet loss, and target domain fine-tuning using a small amount of labeled target domain data. S5 inputs the data to be diagnosed into the trained STAWTC network and outputs the rolling bearing health status category and fault diagnosis results.

2. The method for cross-condition rolling bearing fault diagnosis using a spatiotemporal attention wavelet transfer network as described in claim 1, characterized in that, In step S1, a one-dimensional vibration signal sample is extracted according to a sliding window of a preset length, and standardization processing is performed on each sample; the labeled sample under one working condition is set as source domain data, and the sample under another working condition is set as target domain data, wherein the target domain data includes unlabeled samples and a small number of labeled samples for fine-tuning. The process of acquiring rolling bearing vibration signals and constructing the dataset: Multi-sensor signal acquisition: A multi-channel, multi-physical quantity sensor array is deployed. The sampling frequencies of the first bearing test bench and the second bearing test bench are 25.6kHz and 32kHz, respectively, and the sampling durations are 10.2s and 60s, respectively. Subsample extraction: For both experimental platforms, a 2048-length sliding window was used to extract subsamples, with 500 samples obtained for each state. The dataset is constructed by using labeled source domain samples, unlabeled target domain samples, and a small number of labeled target domain samples for source domain pre-training, domain adaptation training, and target domain fine-tuning, respectively.

3. The method for cross-condition rolling bearing fault diagnosis using a spatiotemporal attention wavelet transfer network as described in claim 2, characterized in that, In step S2, the wavelet ensemble convolutional feature extraction network obtains multi-scale non-stationary transient features: Wavelet decomposition uses discrete wavelet transform to decompose the one-dimensional vibration features of the input into multiple levels, dividing the original time-domain signal into low-frequency approximate components and high-frequency detail components. The low-frequency approximate components enter the next level for recursive decomposition, thus achieving coverage of the long-term trend and short-term impact of fault information. Frequency-aware convolution concatenates the low-frequency approximation components and high-frequency detail components obtained after wavelet decomposition along the channel dimension and performs convolutional feature extraction in the wavelet domain. First, channel-wise convolution is used to process the features of each frequency band separately to preserve the independent responses of different frequency components. Then, point-wise convolution is used to fuse the correlation information between low-frequency components and high-frequency components, enabling the network to learn the nonlinear relationship between the low-frequency trend caused by changes in operating conditions and the high-frequency transient caused by fault impact, thereby obtaining multi-scale fault features with frequency awareness. Wavelet reconstruction re-splits the low-frequency and high-frequency features after frequency-aware convolution and restores them to the original time resolution through inverse wavelet transform, enabling subsequent network layers to continue feature extraction and classification at a unified time scale. Through the cascaded structure of multi-level wavelet decomposition and reconstruction, the effective receptive field of the network is expanded, enabling it to capture long-term dependencies and local transient fault features in cross-condition signals. The network layer configuration for wavelet fusion convolutional feature extraction includes an input backbone layer, an improved ResNet-18 backbone network, and multiple wavelet fusion convolutional layers. The input backbone layer is used for shallow feature embedding of one-dimensional vibration samples, the improved ResNet-18 backbone network is used for extracting deep fault features layer by layer, and the wavelet fusion convolutional layers include a basic convolutional path and a wavelet convolutional path. The basic convolutional path extracts the original temporal local response, and the wavelet convolutional path extracts the multi-frequency band time-frequency response. The two paths are adaptively weighted and fused through learnable channel-gated weights to output multi-scale non-stationary transient features.

4. The method for cross-condition rolling bearing fault diagnosis using a spatiotemporal attention wavelet transfer network as described in claim 3, characterized in that, The wavelet decomposition uses the Haar wavelet basis pairs for the input sequence. Perform a single-level decomposition; the decomposition process formula is as follows: ; ; ; In the formula, Represents the input sequence; This represents the index of the coefficient position after wavelet decomposition, and ; and These represent the low-frequency approximate feature components and high-frequency detail feature components formed after Haar wavelet decomposition of each input channel, respectively. and They represent the first A low-frequency approximation coefficient and a high-frequency detail coefficient; Concat indicates splicing along the channel dimension. This indicates the multi-band characteristics after splicing. Represents the set of real numbers. Indicates the length of the input sequence. This is the number of input channels.

5. The method for cross-condition rolling bearing fault diagnosis using a spatiotemporal attention wavelet transfer network as described in claim 4, characterized in that, Step S3 involves the recalibration of the spectrum channels. Channel statistical feature extraction: Global average pooling and global max pooling are performed on the multi-scale features output by wavelet fusion convolution to extract the average and peak responses of each channel in the time dimension, thus obtaining channel description vectors that can characterize the energy distribution and impact intensity of different frequency bands. Channel correlation modeling involves stacking channel description vectors and performing a linear mapping to form a channel feature sequence labeled with each frequency band channel. This sequence is then input into an attention encoder to calculate the global correlation between channels in different frequency bands. Channel weight generation involves inputting the channel association features output by the attention encoder into the gating layer and mapping them to channel weights in the range of 0 to 1 through the Sigmoid activation function. These weights represent the importance of different frequency band channels to the fault diagnosis task. Frequency band features are reweighted by multiplying the channel weights with the wavelet fusion convolution output features element by element to enhance fault-sensitive frequency bands and suppress frequency bands dominated by background noise, harmonic interference and random spikes, thus obtaining the recalibrated features of the spectrum channels.

6. The method for cross-condition rolling bearing fault diagnosis using a spatiotemporal attention wavelet transfer network as described in claim 5, characterized in that, In step S3, the transient sensing time correlation process: The time stamp construction involves projecting the recalibrated features of the spectral channels onto the latent feature dimension and rearranging them along the time dimension so that each time position corresponds to a time stamp, forming a time stamp sequence. Temporal correlation modeling involves inputting the time-marked sequence into an attention encoder to calculate the correlation between any two time positions, thereby establishing long-distance temporal dependencies in the vibration signal. Transient impact localization enhances periodic fault impacts and their adjacent response regions based on attention responses between time locations, while weakening spurious time correlations caused by isolated noise spikes and random disturbances, enabling the network to more stably locate transient impacts related to bearing faults. The spatiotemporal feature output projects the temporal correlation features output by the attention encoder back to the original channel dimension and performs residual connection with the features after recalibration of the spectrum channel to obtain spatiotemporal refined features that simultaneously contain frequency band selection information and temporal impact positioning information.

7. The method for cross-condition rolling bearing fault diagnosis using a spatiotemporal attention wavelet transfer network as described in claim 6, characterized in that, In step S4, a composite training objective is constructed using classification loss function, domain adversarial loss function, center loss function, and triplet loss function. The total loss function of the STAWTC network is defined as: ; in, For classification loss function, For the domain adversarial loss function, For the center loss function, The triplet loss function, , , These are the weighting coefficients for each loss term, with values ​​of 0.5, 0.001, and 0.1 respectively. The Adam optimizer was used for training, with the number of training epochs in the three stages set to 100, 100, and 100 respectively, and the learning rate in each stage set to 1×10. -4 3×10 -5 1×10 -5 Set the batch size to 64; The classification loss function, domain adversarial loss function, center loss function, and triplet loss function are as follows: ; In the formula, This represents the number of source domain samples participating in classification training, where i represents the sample index and j represents the class index. Let C represent the true class label of the i-th sample, and let C represent the total number of health status categories. Indicates the first The sample belongs to the first The predicted probability of a class; ; In the formula, D represents the feature extractor, and D represents the domain classifier. and These represent the data distributions in the source and target domains, respectively. and These represent samples from the source and target domains, respectively. Represents the mathematical expectation. This indicates the predicted probability that a feature originates from the source domain. ; In the formula, The square norm between eigenvectors is represented by the squared Euclidean distance. This indicates the number of samples in the source domain within a small batch; ; In the formula, Represents the features of the i-th sample. Indicates its category center; , and These represent anchor samples, positive samples of the same class, and negative samples of different classes, respectively. Indicates the triplet interval. This indicates taking the positive part, and N represents the number of triples.

8. The method for cross-condition rolling bearing fault diagnosis using a spatiotemporal attention wavelet transfer network as described in claim 7, characterized in that, In step S5, the fault classification and diagnosis output specifically includes: Feature input: The vibration signal to be diagnosed is sampled and normalized according to step S1, and then input into the trained STAWTC network. It is then processed sequentially through wavelet fusion convolution feature extraction, spectral channel recalibration and transient sensing time correlation to obtain the spatiotemporal refined features of the sample to be diagnosed. Classification prediction involves inputting the refined spatiotemporal features into a fault classifier composed of fully connected layers to calculate the predicted probability that the sample to be diagnosed belongs to each rolling bearing health status category. The output results use the health condition category with the highest predicted probability as the fault diagnosis result, and outputs the rolling bearing health condition category and its corresponding predicted probability; the health condition category includes one or more of the following: normal condition, inner ring fault, outer ring fault, and rolling element fault.