Multi-scale attention adversarial domain adaptive fault diagnosis method and system for axial plunger pump

By employing a multi-layer bidirectional long short-term memory network and an adaptive weight adjustment multi-scale fault diagnosis method, the problem of fault identification in axial piston pumps under varying operating conditions was solved, achieving high-precision and robust fault diagnosis results.

CN123158328APending Publication Date: 2026-11-24YANSHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611369701.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing methods lack sufficient accuracy in time-domain discrimination and adaptability in domain difference measurement during axial piston pump fault diagnosis, making it difficult to achieve high-precision fault identification under varying operating conditions.

Method used

A multi-layer bidirectional long short-term memory network (ML-BiLSTM) domain discriminator is adopted, which combines one-dimensional wide convolution and two-dimensional multi-scale convolution. Multi-scale fault features are extracted through attention mechanism, and a multi-level temporal adversarial domain adaptive fault diagnosis model is constructed. Adaptive weights are used to adjust the domain difference loss to achieve fault diagnosis across working conditions.

Benefits of technology

It improves the accuracy and robustness of fault diagnosis for axial piston pumps under varying operating conditions, effectively identifying fault modes under different operating conditions, and enhancing the accuracy and generalization ability of fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158328A_ABST
    Figure CN123158328A_ABST
Patent Text Reader

Abstract

This invention provides a multi-scale attention-adversarial domain adaptive fault diagnosis method and system for axial piston pumps, specifically relating to the field of fault diagnosis. It includes: S1, acquiring signals, performing normalization and dataset partitioning; S2, using domain attributes to back-optimize the feature extractor until the feature extractor extracts domain-invariant features that are difficult for a domain discriminator to distinguish; S3, performing domain-adaptive training on the label classifier, enabling the label classifier to learn the mapping relationship between multi-scale fault features and fault categories; S4, constructing a joint loss function as the overall optimization objective of the fault diagnosis model; S5, performing collaborative optimization training on the fault diagnosis model with the goal of minimizing the joint loss function, obtaining the fault diagnosis result. This invention provides a fault diagnosis method that integrates multi-level temporal domain discriminant analysis and multi-dimensional domain difference dynamic alignment, improving the accuracy and robustness of axial piston pump fault diagnosis under varying operating conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of fault diagnosis, specifically to a multi-scale attention-adaptive fault diagnosis method and system for axial piston pumps. Background Technology

[0002] Axial piston pumps are core power components of hydraulic systems, widely used in strategic fields such as aerospace, rail transportation, and military equipment. Their operating status directly affects system safety. Due to long-term operation under extreme conditions such as high speed and high pressure, failures of the three major friction pairs occur frequently. Therefore, implementing high-precision fault diagnosis is crucial to ensuring reliable system operation.

[0003] In recent years, deep learning methods have been widely used in fault diagnosis due to their automatic feature extraction capabilities. To address data distribution shifts caused by varying operating conditions, transfer learning and domain adversarial training have been introduced into cross-condition fault diagnosis. However, existing methods still have the following shortcomings: Existing domain discriminators mostly employ fully connected layers or ordinary convolutional layers, relying solely on features at the current time step for domain discrimination, making it difficult to capture domain differences in temporal evolution patterns. Although some studies have introduced bidirectional long short-term memory networks, they are mostly used as components of feature extraction networks rather than embedded within the domain discriminator for multi-level temporal adversarial training. The domain differences in vibration signals are not only reflected in single-point features but also in temporal evolution patterns. Relying solely on forward temporal information or single-level temporal modeling cannot fully characterize the temporal distribution differences between the source and target domains, resulting in insufficient domain discrimination accuracy.

[0004] Existing methods for measuring domain disparity mostly employ a single criterion. A single criterion can only characterize inter-domain differences from one dimension, making it difficult to comprehensively represent the multi-dimensional differences of complex high-dimensional distributions, resulting in insufficient domain alignment. Although some studies have attempted to combine multiple metrics in a simple way, most of them use fixed weight coefficients, which cannot dynamically adjust the contribution ratio of each metric according to the degree of domain offset under different working conditions and in different batches, making it difficult to adapt to various cross-working-condition migration tasks.

[0005] In summary, existing methods have significant shortcomings in terms of the sufficiency of time-domain discrimination and the adaptive comprehensiveness of domain difference measurement. There is an urgent need for a fault diagnosis method that integrates multi-level time-domain discrimination and dynamic alignment of multi-dimensional domain differences to improve the accuracy and robustness of axial piston pump fault diagnosis under varying operating conditions. Summary of the Invention

[0006] To address the shortcomings of the prior art, the present invention aims to provide a multi-scale attention adversarial domain adaptive fault diagnosis method and system for axial piston pumps, which aims to solve the problems of insufficient accuracy in time-series domain discrimination and lack of adaptability in domain difference measurement in the prior art.

[0007] Specifically, on the one hand, the present invention provides a multi-scale attention-adaptive fault diagnosis method for axial piston pumps, which includes the following steps: S1. Collect vibration signals of the axial piston pump head under different working conditions, normalize and divide the dataset to obtain the source domain training set, target domain training set and test set; based on the state of the piston, slipper, swashplate and distributor plate of the axial piston pump, construct labels to mark the fault categories for the source domain training set. S2. Construct a feature extractor to extract multi-scale fault features of slipper wear, single plunger slipper loosening, adhesive wear, and distributor plate wear from the source domain training set and the target domain training set. Construct a domain discriminator to extract the domain attributes of multi-scale fault features related to the pressure and flow pulsation frequency of the plunger pump. Use the domain attributes to back-optimize the feature extractor, continuously weakening the domain differences under different operating conditions until the feature extractor extracts domain-invariant features. S3. Under the condition that the feature extractor extracts domain-invariant features, the label classifier is trained in a domain-adaptive manner using the source domain training set and the target domain training set, so that the label classifier learns the mapping relationship from multi-scale fault features to fault categories, and a trained label classifier is obtained. S4. Construct a joint loss function consisting of domain difference loss, label classification loss, and domain discriminator loss as the overall optimization objective of the fault diagnosis model; the fault diagnosis model includes a feature extractor, a domain discriminator, and a label classifier; When constructing the domain difference loss, adaptive weights are calculated by introducing a minimum constant. for: ; Where ε is a local constant, For the geometric difference loss, For second-order statistical difference loss, F s F is a set of multi-scale fault features in the source domain. t For the target domain, a multi-scale fault feature set; S5. Using the source domain training set and the target domain training set, with the goal of minimizing the joint loss function, the fault diagnosis model is co-optimized and trained; the test set is input into the trained fault diagnosis model to obtain the fault diagnosis results.

[0008] Preferably, S4 includes: S41. Using covariance distance and Wasserstein distance, calculate the domain difference loss between the source domain training set and the target domain training set. Introduce a minimum constant and calculate adaptive weights based on the current training batch loss to construct the domain difference loss. S42. The fault features classified by the label classifier are divided into fault feature subsets according to the fault type. The L2 distance between the source domain feature mean and the target domain feature mean is calculated within the fault feature subset. Then, the class balance weighted accumulation process is performed to obtain the class conditional alignment loss. S43. Construct a label classification loss by measuring the target domain training set and the source domain training set of the same type using the cross-entropy loss function: S44. Based on the different depths of the feature extraction network, the input features are divided into shallow and deep temporal subsets, which are then input into the domain discriminator and the weighted hierarchical adversarial loss is calculated. Finally, the domain discriminator loss is obtained by summing and averaging the binary cross-entropy. S45. Integrate the domain difference loss, category conditional alignment loss, label classification loss, and domain discriminator loss to construct a joint loss function. : ; in, For label classification loss, For domain difference loss, For category-conditional alignment loss, For the loss of the domain discriminator, The first weighting coefficient is used to adjust the loss relationship. This is the second weighting coefficient for adjusting the loss relationship.

[0009] Preferably, S2 includes: S21. Based on the source domain training set and the target domain training set, a feature extractor is constructed. Through one-dimensional wide convolution and two-dimensional multi-scale convolution, long-term temporal dependency features and local fault features of the source domain training set and the target domain training set are extracted respectively. Multi-scale fault features are obtained through attention mechanism. S22. A domain discriminator is constructed using a multi-layer bidirectional long short-term memory network. By embedding the multi-layer bidirectional long short-term memory network at different depths in the feature extraction network, shallow temporal features and deep high-level temporal features of multi-scale fault features are extracted respectively. Based on the shallow temporal features and high-level temporal features, the domain discrimination probability of each sample belonging to the source domain or the target domain is output, and the domain attributes of the multi-scale fault features are obtained. Domain discriminator loss for: ; ; ; in, For domain adversarial loss, γ1 is the shallow loss weight, and γ2 is the deep loss weight. To mitigate losses at a shallow level, To combat losses more deeply, The number of samples in the source domain. For shallow domain classifiers, For feature extractor, For the i-th source domain sample, The number of samples in the target domain. For the j-th target domain sample, For deep domain classifiers, Let be the high-level temporal features of the i-th source domain sample. The high-level temporal features of the j-th target domain sample; S23. Apply reverse constraints to the feature extractor using the domain attributes of multi-scale fault features, so that the feature extractor can extract domain-invariant features that are difficult to be distinguished by the domain discriminator.

[0010] Preferably, S21 includes: S211. Construct a feature extractor to extract long temporal dependency features between the source domain training set and the target domain training set through one-dimensional wide convolution. S212. Reconstruct long-time-dependent features into two-dimensional feature maps, perform two-dimensional convolution operations using different convolution kernel scales, and extract features through max pooling to obtain multi-scale feature maps. S213 introduces a two-dimensional convolutional block attention module, which enhances the feature response of key channels and key time-frequency regions through the attention mechanism. Channel attention weighting and spatial attention weighting are applied to the multi-scale feature maps in sequence to obtain multi-scale fault features.

[0011] Preferably, the adaptive training process of the label classifier domain in S3 is as follows: First, use the real labels of the source domain training set to supervise the pre-trained classifier through cross-entropy loss to establish a mapping between basic features and faults; Then, a pre-trained label classifier is used to generate fault category pseudo-labels for the training samples in the target domain, and low-confidence samples are filtered out. The source domain training samples with real labels are mixed with the selected target domain training samples with pseudo labels, and the label classifier is trained iteratively. The class conditional alignment loss is used for optimization, so that the label classifier learns the mapping relationship between multi-scale fault features and fault categories.

[0012] Preferably, S41 includes: S411. Using the CORAL function, calculate the difference in second-order statistical properties of multi-scale fault features between the label source domain training set and the target domain training set, and obtain the second-order statistical difference loss: ; Where d is the feature dimension. Let be the source domain characteristic covariance matrix. Let be the feature covariance matrix of the target domain. It is the Frobenius norm; S412. Using the Wasserstein distance function, calculate the distribution distance of multi-scale fault features between the source domain training set and the target domain training set to obtain the distribution geometric difference loss: ; in, Let be the multi-scale fault feature vector of the i-th source domain sample. Let be the multi-scale fault feature vector of the i-th target domain sample. The number of samples in the source domain. The number of samples in the target domain; S413. By normalizing and dynamically adaptively weighting the second-order statistical difference loss and the distribution geometric difference loss, an adaptive weight for the domain difference loss is constructed. S414. By using adaptive weights, the domain difference loss function and the distribution geometric difference loss are fused to obtain the domain difference loss function: .

[0013] Preferably, the category-conditional alignment loss for: ; Where K represents the total number of fault categories, The category balance weights are those corresponding to the z-th type of fault. Let z be the feature set corresponding to the z-th type of fault in the source domain. Let be the feature set corresponding to the z-th type of fault in the target domain.

[0014] Preferably, the loss of the neighborhood discriminator : ; Where N is the total number of samples, It is the probability that a sample comes from the target domain, given by the domain classifier. For the sample given by the l-th domain classifier, The label represents the sample given by the l-th domain classifier.

[0015] Preferably, label classification loss for: ; Where N is the total number of samples, Let be the label of the s-th sample. Let m be the indicator function, and m be the label with the maximum probability. Let be the predicted probability that the s-th sample belongs to the m-th category.

[0016] On the other hand, the present invention provides a system for a multi-scale attention adversarial domain adaptive fault diagnosis method for axial piston pumps, which includes: a data acquisition and preprocessing module, a diagnosis module, and a visualization module; the data acquisition and preprocessing module includes an acquisition unit and a normalization partitioning unit; the acquisition unit is used to acquire vibration data of axial piston pumps under different working conditions; the normalization partitioning unit is used to normalize the vibration data of axial piston pumps and partition the dataset, and output the normalized dataset. The diagnostic module includes a multi-scale attention feature extraction unit, a temporal domain discrimination unit, a loss calculation co-optimization unit, and a label classification unit. The multi-scale attention feature extraction unit is used to extract multi-scale features from the normalized dataset. The temporal domain discrimination unit is used to perform hierarchical temporal adversarial discrimination. The loss calculation co-optimization unit is used to perform multi-loss co-training. The label classification unit is used to output the fault type. The multi-scale attention feature extraction unit, the temporal domain discrimination unit, the loss calculation co-optimization unit, and the label classification unit work together to output the fault diagnosis result. The visualization module includes a feature dimensionality reduction visualization unit and a classification result visualization unit. The feature dimensionality reduction visualization unit uses tSNE dimensionality reduction technology to visualize the feature clustering distribution. The classification result visualization unit uses a confusion matrix to present the fault diagnosis results.

[0017] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. The multi-layer bidirectional long short-term memory network (ML-BiLSTM) domain discriminator designed in this invention extracts shallow temporal features and deep high-level temporal features of multi-scale fault features by embedding ML-BiLSTM at different depths of the feature extraction network. Compared with the BiLSTM domain discriminator that only relies on the bidirectional processing mechanism, the ML-BiLSTM domain discriminator enables the feature extractor to learn domain-invariant and time-sensitive features through layer-by-layer adversarial training from local to global, generating highly discriminative and robust feature representations, providing a solid foundation for accurate fault state identification.

[0018] 2. This invention introduces a minimal constant to generate adaptive weights for domain difference loss in real time. It dynamically adjusts the contribution ratios of CORAL loss and Wasserstein distance function loss based on the degree of domain shift under different operating conditions and batches, overcoming the limitation of fixed weights in adapting to various cross-operating condition migration tasks. Simultaneously, this adaptive weight mechanism can adaptively adjust the optimization focus at each stage and, combined with adversarial training, encourages the feature extractor to learn domain-invariant features. Therefore, it can comprehensively eliminate cross-operating condition data distribution shifts from multiple dimensions, effectively improving fault diagnosis accuracy and generalization ability under varying operating conditions. Attached Figure Description

[0019] Figure 1This is a flowchart illustrating the multi-scale attention-adaptive fault diagnosis method for axial piston pumps according to the present invention. Figure 2 This is a framework diagram of the fault diagnosis model of the present invention; Figure 3 This is a schematic diagram of feature extraction according to the present invention; Figure 4 This is a schematic diagram of the multilayer bidirectional long short-term memory network of the present invention; Figure 5 This is a flowchart illustrating the detailed fault diagnosis process of the fault diagnosis model of the present invention. Figure 6 This is a sensitivity analysis diagram of the weighting coefficients for adjusting the loss relationship in this invention; Figure 7 This is an ablation experiment diagram of the A10VSO dataset from this invention; Figure 8 This is an ablation experiment diagram of the CY dataset from this invention; Figure 9 This is a confusion matrix diagram for different migration tasks in this invention; Figure 10 This is a visualization of t-SNE under migration task T4 of the present invention; Figure 11 This is a bar chart showing the errors of different migration tasks in this invention; Figure 12 This is an accuracy vs. loss curve for the T4 task of this invention; Figure 13 This is the confusion matrix diagram for migration task L3 of the present invention; Figure 14 This is a visualization of t-SNE under the L3 task of this invention; Figure 15 This is a bar chart comparing the model errors of the present invention; Figure 16 This is a comparison of radar charts for this invention. Detailed Implementation

[0020] The following is for reference Figure 1 as well as Figure 2 The embodiments of the present invention will be described.

[0021] On one hand, the present invention provides a multi-scale attention-adaptive fault diagnosis method for axial piston pumps, comprising the following steps: S1. Collect vibration signals of the axial piston pump head under different working conditions, normalize and divide the dataset to obtain the source domain training set, target domain training set and test set; based on the state of the piston, slipper, swashplate and distribution plate of the axial piston pump, construct labels to mark the fault categories for the source domain training set.

[0022] All source domain data is used for model training, while the target domain data is randomly divided: 50% for training, 20% for validation, and 30% for testing. The source domain training set is labeled, while the target domain training set is unlabeled.

[0023] S2. Construct a feature extractor to extract multi-scale fault features of slipper wear, single plunger slipper loosening, adhesive wear, and distributor plate wear from the source domain training set and the target domain training set. Construct a domain discriminator to extract domain attributes of multi-scale fault features related to the pressure and flow pulsation frequency of the plunger pump. Use the domain attributes to back-optimize the feature extractor, continuously weakening the domain differences under different operating conditions until the feature extractor extracts domain-invariant features.

[0024] S21. Based on the source domain training set and the target domain training set, a feature extractor is constructed. Through one-dimensional wide convolution and two-dimensional multi-scale convolution, long-term temporal dependency features and local fault features of the source domain training set and the target domain training set are extracted respectively. Multi-scale fault features are obtained through attention mechanism.

[0025] Specifically, this invention first constructs a feature extractor and inputs the original vibration time-series signals of the axial plunger pump head from the source domain training set and the target domain training set into the feature extractor. A one-dimensional wide convolution with a large receptive field is used to capture the long-term temporal dependence features of the vibration signals. Then, the one-dimensional features are reconstructed into a two-dimensional feature map and fed into a two-branch two-dimensional multi-scale convolution. Different sized convolution kernels are used in combination with max pooling to extract local fault features such as short-term impacts and wear pulses from different granularities. The output features from the two branches are fed into a 2DCBAM attention module, which adaptively enhances fault-related channels and spatial regions and suppresses noise interference. After feature fusion, a multi-scale fault feature that takes into account both long-term temporal information and multi-granularity local information is output. Specifically, the multi-scale fault features include slipper wear, single plunger slippage, adhesive wear, and distributor plate wear.

[0026] S211. Construct a feature extractor to extract long-term temporal dependency features between the source domain training set and the target domain training set through one-dimensional wide convolution: Specifically, long-term temporal dependency features include source domain long-term temporal dependency features. Long-term temporal dependency features of the target domain .

[0027] ; ; Wherein, Conv1D represents a one-dimensional convolution operation. Represents source domain vibration time series data. This represents unlabeled target domain vibration time series data.

[0028] S212. Reconstruct long-term dependent features into two-dimensional feature maps, perform two-dimensional convolution operations using different convolution kernel scales, and extract features through max pooling to obtain multi-scale feature maps.

[0029] Specifically, multi-scale feature maps include large receptive field feature maps and small receptive field feature maps.

[0030] In a preferred embodiment, a 3×3 convolutional kernel is used to reconstruct long-term time-dependent features, thereby capturing short-term, subtle local fault features such as instantaneous plunger impacts, minute wear pulses, and high-frequency vibration details through max pooling operations. A 7×7 convolutional kernel is used to reconstruct long-term time-dependent features, thereby capturing long-period, global fault evolution features such as long-term fault trends, continuous low-frequency vibration waveforms, and large-scale operating condition fluctuations through max pooling operations.

[0031] =Maxpool(Conv2D 3×3 ( )); =Maxpool(Conv2D 7×7 ( )); =Maxpool(Conv2D 3×3 ( )); =Maxpool(Conv2D 7×7 ( )); in, The source domain features are output by small-scale convolution. The source domain features are the output of large-scale convolution. The target domain features are output by small-scale convolution. The target domain features are output by large-scale convolution, and Maxpool is the maximum pooling operation. Conv2D 3×3 For 2D convolution operations with a kernel size of 3×3, Conv2D 7×7 This is a two-dimensional convolution operation with a kernel size of 7×7.

[0032] S213 introduces a two-dimensional convolutional block attention module, which enhances the feature response of key channels and key time-frequency regions through the attention mechanism. Channel attention weighting and spatial attention weighting are applied to the multi-scale feature maps in sequence to obtain multi-scale fault features.

[0033] Specifically, the channel-related areas include feature channels that store fault information such as plunger wear and impact; the spatial local areas include pixel blocks in the feature map that correspond to fault pulses and periodic vibration waveforms; and channels or pixels with noise or stable no signal belong to irrelevant areas.

[0034] ; ; ; ; in, This represents the first multi-scale fault characteristic in the source domain. This is the second multi-scale fault feature in the source domain. The first multi-scale fault feature in the target domain. The second multi-scale fault feature in the target domain is used, and Attention is the attention operation.

[0035] The multi-scale attention feature extraction network innovatively combines the advantages of one-dimensional wide convolution and two-dimensional multi-scale convolution, significantly enhancing the model's ability to extract features from time-series signals. One-dimensional wide convolution is dedicated to capturing long-term dependencies in signals, while two-dimensional multi-scale convolution focuses on extracting local features at different granularities. This multi-scale feature fusion mechanism enables the model to more comprehensively analyze the complex dynamic characteristics in vibration signals, providing richer feature representations for subsequent fault diagnosis.

[0036] S22. A domain discriminator is constructed using a multi-layer bidirectional long short-term memory network. By embedding the multi-layer bidirectional long short-term memory network at different depths in the feature extraction network, shallow temporal features and deep high-level temporal features of multi-scale fault features are extracted respectively. Based on the shallow and high-level temporal features, the domain discrimination probability of each sample belonging to the source or target domain is output, thus obtaining the domain attributes of the multi-scale fault features, such as... Figure 4 As shown.

[0037] Specifically, the operating condition domain source information carried by multi-scale fault features characterizes whether a sample belongs to the source domain or the target domain.

[0038] In this step, the domain discriminator internally sets up a hierarchical temporally aligned domain adversarial loss. This loss is obtained by a weighted combination of shallow adversarial loss and deep adversarial loss, and is used to apply domain adversarial alignment constraints to the temporal features output at different abstraction levels of the network. It should be noted that this hierarchical temporal alignment domain adversarial loss... This is the internal branch loss of the domain discriminator, focusing on the hierarchical adversarial alignment of temporal evolution patterns at different network depths. It is related to the domain discriminator loss calculated using binary cross-entropy based on all sample domain labels in section S44 below. There are differences; the loss of the neighborhood discriminator The overall loss of the domain discriminator is used to measure the discriminator's overall ability to distinguish between source domain samples and target domain samples.

[0039] ; in, For domain adversarial loss, γ1 is the shallow loss weight, and γ2 is the deep loss weight. To mitigate losses at a shallow level, To combat losses in depth; The temporal adversarial module operates on the shallow temporal features of the network, focusing on learning the domain invariance of low-level temporal structures such as transient impacts and local waveforms in vibration signals. Its shallow loss function is: ; in, The number of samples in the source domain. For shallow domain classifiers, For feature extractor, For the i-th source domain sample, The number of samples in the target domain. Let j be the target domain sample.

[0040] The deep temporal adversarial module operates on the high-level temporal features extracted by the multi-scale module, focusing on cross-domain alignment of high-level semantics such as fault mode evolution trends and state transition patterns. Its deep loss function is: ; in, For deep domain classifiers, H represents high-level temporal features. Let be the high-level temporal features of the i-th source domain sample. Let be the high-level temporal features of the j-th target domain sample.

[0041] S23. Apply reverse constraints to the feature extractor using the domain attributes of multi-scale fault features, so that the feature extractor can extract domain-invariant features that are difficult to be distinguished by the domain discriminator.

[0042] S3. Under the condition that the feature extractor extracts domain-invariant features, the label classifier is trained by domain adaptation using the source domain training set and the target domain training set, so that the label classifier learns the mapping relationship from multi-scale fault features to fault categories, and a trained label classifier is obtained.

[0043] Specifically, under the condition that the feature extractor extracts domain-invariant features, the fault classification knowledge learned by the label classifier is applicable to the target domain data. Its domain-adaptive training process is as follows: a. First, use the real labels of the source domain training set to supervise the pre-trained classifier through cross-entropy loss to establish the basic feature-fault mapping.

[0044] b. Then, a pre-trained label classifier is used to generate fault category pseudo-labels for the training samples in the target domain, and low-confidence samples are filtered out.

[0045] c. Mix the source domain training samples with real labels with the selected target domain training samples with pseudo labels, iteratively train the label classifier, and optimize it using class conditional alignment loss so that the label classifier learns the mapping relationship between multi-scale fault features and fault categories.

[0046] "Domain adaptive training" is a paradigm that uses pseudo-labels for self-training in unlabeled target domains, provided that the feature extractor first outputs domain-invariant features. This method does not require manual labeling of target data, and relies on the domain-invariant features after adversarial training to reduce pseudo-label errors and realize the transfer of fault classification knowledge across working conditions.

[0047] S4. Construct a joint loss function consisting of domain difference loss, label classification loss, and domain discriminator loss as the overall optimization objective of the fault diagnosis model; the fault diagnosis model includes a feature extractor, a domain discriminator, and a label classifier.

[0048] Specifically, the domain difference loss is formed by combining the dynamic adaptive weights and the difference loss; the category conditional alignment loss is formed by the mean of the features of the sources of the fault features after the label classifier is classified.

[0049] S41. Using covariance distance and Wasserstein distance, calculate the domain difference loss between the source domain training set and the target domain training set. Introduce a minimal constant and calculate adaptive weights based on the current training batch loss to construct the domain difference loss.

[0050] S411. Using the CORAL function, calculate the difference in second-order statistical properties of multi-scale fault features between the label source domain training set and the target domain training set, and obtain the second-order statistical difference loss. : ; Where d is the feature dimension. Let be the source domain characteristic covariance matrix. Let be the feature covariance matrix of the target domain. Let F be the Frobenius norm. s F is a set of multi-scale fault features in the source domain. t This is a multi-scale fault feature set for the target domain.

[0051] S412. Using the Wasserstein distance function, calculate the distribution distance of multi-scale fault features between the source domain training set and the target domain training set to obtain the distribution geometric difference loss. : ; in, Let be the multi-scale fault feature vector of the i-th source domain sample. Let be the multi-scale fault feature vector of the i-th target domain sample.

[0052] Specifically, the source domain multi-scale fault feature set and the target domain multi-scale fault feature set can be represented as: ; ; This invention reduces the overall offset of the feature distribution under different operating conditions by constraining the distance between the mean distribution of features in the source domain and the target domain through distribution geometric difference loss.

[0053] S413. By normalizing and dynamically adaptively weighting the second-order statistical difference loss and the distribution geometric difference loss, an adaptive weight for the domain difference loss is constructed. .

[0054] When constructing the adaptive weights for the domain difference loss, a minimum constant is introduced, and the corresponding weights are calculated based on the second-order statistical difference loss and the distribution geometric difference loss: ; Where ε is a minimal constant to prevent the denominator from being zero.

[0055] By introducing adaptive weights The model can automatically adjust the contribution ratio of covariance distance and Wasserstein distance according to the domain difference characteristics of the current batch, avoiding the problem that fixed weights are difficult to adapt to different working conditions and migration tasks.

[0056] Specifically, this invention eliminates the difference in magnitude and dimension between the two types of losses by performing normalization operations on the second-order statistical difference loss and the distribution geometric difference loss respectively; then, it introduces a minimal constant to avoid the denominator from returning to zero, and generates adaptive weights in real time based on the normalized second-order statistical difference loss and distribution geometric difference loss, so as to realize that the model can dynamically adjust the contribution ratio of CORAL loss and Wasserstein distance function loss according to different working conditions and different batches of domain offset, thus overcoming the defect that fixed weights cannot adapt to multiple cross-working condition migration tasks.

[0057] S414. By using adaptive weights, the domain difference loss and the distribution geometric difference loss are fused to obtain the domain difference loss. .

[0058] .

[0059] S42. After the fault features are classified by the label classifier, they are divided into fault feature subsets according to the fault type. Within each fault feature subset, the L2 distance between the source domain feature mean and the target domain feature mean is calculated, and then a class-balanced weighted summation is performed to obtain the class conditional alignment loss. : ; Where K represents the total number of fault categories, The category balance weights are those corresponding to the z-th type of fault. Let z be the feature set corresponding to the z-th type of fault in the source domain. Let be the feature set corresponding to the z-th type of fault in the target domain.

[0060] Specifically, the process of constructing the category conditional alignment loss is as follows: a. Based on the labels of the source domain training set and the pseudo-labels of the target domain training set, a label classifier is used to divide the two to obtain a subset of fault features.

[0061] b. For each subset of fault features, calculate the L2 distance between the mean of the source domain features and the mean of the target domain features within the subset. At the same time, introduce class balancing weights to balance the imbalance of samples of each class and obtain the feature distribution difference of each class.

[0062] c. Weighted summation of the feature distribution differences for each class yields the class conditional alignment loss.

[0063] This loss function enables the convergence of features of similar faults across operating conditions and the separation of features of dissimilar faults, thus compensating for the inability of global domain difference loss to distinguish fault categories.

[0064] S43. Construct a label classification loss by measuring the target domain training set and the source domain training set of the same type using the cross-entropy loss function. : ; Where N is the total number of samples, Let be the label of the s-th sample. Let m be the indicator function, and m be the label with the maximum probability. Let be the predicted probability that the s-th sample belongs to the m-th category.

[0065] S44. Based on the different depths of the feature extraction network, the input features are divided into shallow temporal subsets and deep temporal subsets, which are then input into the domain discriminator respectively, and the weighted hierarchical adversarial loss is calculated. Finally, the domain discriminator loss is obtained by summing and averaging the binary classification cross-entropy. : ; in, It is the probability that a sample comes from the target domain, given by the domain classifier. For the sample given by the l-th domain classifier, The label represents the sample given by the l-th domain classifier; The process of constructing the domain discriminator loss is as follows: a. Based on the different network depths of the feature extraction network, the output of the shallow convolutional layer is extracted to extract the temporal information corresponding to the vibration transient pulse and local waveform, forming a shallow temporal feature subset; then, the high-level output after processing by the multi-scale convolutional module is extracted to extract high-level temporal information such as fault evolution trend and state transition, resulting in a deep temporal feature subset. The shallow and deep temporal feature subsets are then input into the domain discriminator, which outputs the domain discrimination probability of each sample belonging to the source domain and the target domain.

[0066] b. For each feature subset, calculate the shallow adversarial loss and deep adversarial loss respectively, and introduce the loss weight coefficient to obtain the hierarchical temporal alignment loss. Then, combine the true domain labels and domain discrimination output probabilities of all source and target domain samples, and use binary classification cross-entropy to calculate the single sample domain discrimination loss.

[0067] c. Sum and average the domain discrimination losses of all samples to obtain the domain discriminator loss.

[0068] S45. Integrate the domain difference loss, category conditional alignment loss, label classification loss, and domain discriminator loss to construct a joint loss function. : ; in, The first weighting coefficient is used to adjust the loss relationship. This is the second weighting coefficient for adjusting the loss relationship.

[0069] S5. Using the source domain training set and the target domain training set, with the goal of minimizing the joint loss function, the fault diagnosis model is co-optimized and trained; the test set is input into the trained fault diagnosis model to obtain the fault diagnosis results.

[0070] a) Input the labeled source domain training set and the unlabeled target domain training set into the feature extractor to extract deep features; input the deep features of the source domain data into the labeled classifier for classification to obtain the classification loss. After the fault features are classified by the label classifier, they are divided into fault feature subsets according to the fault type. Within each fault feature subset, the L2 distance between the source domain feature mean and the target domain feature mean is calculated to obtain the class conditional alignment loss. Then, the covariance distance and Wasserstein distance are used to calculate the distribution difference between the features of the source and target domains, and the distribution difference loss is obtained. Simultaneously, the features are input into the domain discriminator to calculate the domain discrimination loss. Use these four losses to construct the total loss function. Finally, the model is trained iteratively to minimize the classification loss. Category-based alignment loss and distribution difference loss Simultaneously maximize the domain discriminant loss To achieve this goal, optimize the fault diagnosis model.

[0071] b. The model is evaluated by inputting the test set into the feature extractor and label predictor to perform actual fault diagnosis, thereby verifying the diagnostic effectiveness of the proposed method.

[0072] On the other hand, the present invention also provides a system for a multi-scale attention-adversarial domain adaptive fault diagnosis method for axial piston pumps, which includes: a data acquisition and preprocessing module, a diagnosis module, and a visualization module; the data acquisition and preprocessing module includes an acquisition unit and a normalization partitioning unit; the acquisition unit is used to acquire vibration data of axial piston pumps under different working conditions; the normalization partitioning unit is used to normalize the vibration data of axial piston pumps and partition the dataset, and output the normalized dataset.

[0073] The diagnostic module includes a multi-scale attention feature extraction unit, a temporal domain discrimination unit, a loss calculation co-optimization unit, and a label classification unit. The multi-scale attention feature extraction unit is used to extract multi-scale features from the normalized dataset. The temporal domain discrimination unit is used to perform hierarchical temporal adversarial discrimination. The loss calculation co-optimization unit is used to perform multi-loss co-training. The label classification unit is used to output the fault type. The multi-scale attention feature extraction unit, the temporal domain discrimination unit, the loss calculation co-optimization unit, and the label classification unit work together to output the fault diagnosis results.

[0074] The visualization module includes a feature dimensionality reduction visualization unit and a classification result visualization unit. The feature dimensionality reduction visualization unit uses tSNE dimensionality reduction technology to visualize the feature clustering distribution. The classification result visualization unit uses a confusion matrix to present the fault diagnosis results.

[0075] Specifically, the present invention also provides an embodiment of a multi-scale attention-adaptive fault diagnosis method for axial piston pumps.

[0076] The axial piston pump fault diagnosis method in this invention is based on the fault mechanism of the key friction pair of the axial piston pump. It uses vibration signals as the characteristic data source and achieves adaptive diagnosis across operating conditions through a multi-scale attention adversarial network. The specific implementation process is as follows: S1. Collect vibration signals of the axial piston pump head under different working conditions, normalize and divide the dataset to obtain the source domain training set, target domain training set and test set; based on the state of the piston, slipper, swashplate and distribution plate of the axial piston pump, construct labels to mark the fault categories for the source domain training set.

[0077] The A10VSO and CY type axial piston pumps are used, which are mainly composed of swashplate, slipper, piston, cylinder block, distributor plate, drive shaft and variable control valve. The sampling frequency is 10kHz. The pump speed is 1500~2200r / min, the working pressure is 5~35MPa, and five different working load conditions are set. The typical faults are covered, including normal (NC), slipper wear (SW), single piston slipper loose (LB), adhesive wear (AW), distributor plate wear (VPW), and center spring failure (CSF). 500 samples are collected for each condition, and each sample contains 1024 data points.

[0078] Data preprocessing: such as Figure 5 As shown, the collected vibration data is normalized and divided into source domain training set, target domain training set and test set according to a certain ratio; the preprocessed data needs to meet the input requirements of the multi-scale attention feature extraction network to lay the foundation for subsequent feature extraction.

[0079] S2. Construct a feature extractor to extract multi-scale fault features of slipper wear, single plunger slipper loosening, adhesive wear, and distributor plate wear from the source domain training set and the target domain training set. Construct a domain discriminator to extract domain attributes of multi-scale fault features related to the pressure and flow pulsation frequency of the plunger pump. Use the domain attributes to back-optimize the feature extractor, continuously weakening the domain differences under different operating conditions until the feature extractor extracts domain-invariant features.

[0080] Multi-scale attention feature extraction: One-dimensional wide convolution is used to capture long temporal information, and two-dimensional multi-branch convolution is used to extract local impact and global evolution features respectively. Then, 2D-CBAM attention is used to enhance key fault features and suppress noise to obtain multi-scale fault features.

[0081] Hierarchical temporal domain discrimination: The domain discriminator identifies the domain source of shallow transient waveforms and deep fault evolution semantics at different network depths, and integrates the domain attributes of deep and shallow adversarial loss judgment features to make up for the shortcomings of traditional discriminators that ignore temporal differences.

[0082] Reverse adversarial constraint optimization: The domain attributes output by the discriminator are fed back to update the feature extractor, forcing the network to discard the domain-specific information related to the working conditions, and retain the domain-invariant features that are strongly correlated with the fault and are not affected by the working conditions. This makes the similar fault features in the source domain and the target domain converge in the feature space, laying the foundation for subsequent fault classification in the target domain.

[0083] S3. Under the condition that the feature extractor extracts domain-invariant features, the label classifier is trained by domain adaptation using the source domain training set and the target domain training set, so that the label classifier learns the mapping relationship from multi-scale fault features to fault categories, and a trained label classifier is obtained.

[0084] First, a classifier is pre-trained using the source domain labeled data and cross-entropy loss to establish a preliminary feature-fault mapping. Then, pseudo-labels are generated for the unlabeled target domain using the pre-trained model to filter low-confidence samples and suppress pseudo-label noise. The source domain real-label samples and the filtered target domain high-confidence pseudo-label samples are mixed and iteratively trained, and the mapping relationship is optimized by combining the category conditional alignment loss.

[0085] S4. Construct a joint loss function consisting of domain difference loss, label classification loss, and domain discriminator loss as the overall optimization objective of the fault diagnosis model; the fault diagnosis model includes a feature extractor, a domain discriminator, and a label classifier.

[0086] The labeled source domain training set and the unlabeled target domain training set are input into a shared feature extractor to extract deep features; the deep features of the source domain data are then input into a labeled classifier for classification, yielding the classification loss. After the fault features are classified by the label classifier, they are divided into fault feature subsets according to the fault type. Within each fault feature subset, the L2 distance between the source domain feature mean and the target domain feature mean is calculated to obtain the class conditional alignment loss. Then, the covariance distance and Wasserstein distance are used to calculate the distribution difference between the features of the source and target domains, and the distribution difference loss is obtained. Simultaneously, the features are input into the domain discriminator to calculate the domain discrimination loss. Use these four losses to construct the total loss function. Finally, iteratively train the model, such as... Figure 6 As shown, to minimize the classification loss Category-based alignment loss and distribution difference loss Simultaneously maximize the domain discriminant loss .

[0087] S5. Using the source domain training set and the target domain training set, with the goal of minimizing the joint loss function, the fault diagnosis model is co-optimized and trained; the test set is input into the trained fault diagnosis model to obtain the fault diagnosis results.

[0088] 1. Testing phase: Domain adaptive fault diagnosis; Data preprocessing: Normalize the test data in the target domain to ensure that the data format is consistent with the training data.

[0089] Feature extraction: such as Figure 3 As shown, the preprocessed test data is input into the trained MSAABN model, and domain-invariant features are extracted through a multi-scale attention feature extraction network, and the effective features are enhanced by a two-dimensional convolutional block attention module.

[0090] Domain Dissimilarity Alignment: The feature distribution is further optimized by combining the domain dissimilarity loss and domain discriminant loss in the joint loss function to ensure cross-domain feature alignment. The alignment effect is then visualized and verified using t-SNE. Figure 10 as well as Figure 14 As shown, this makes the clustering of similar fault characteristics more concentrated.

[0091] Fault Diagnosis: The label predictor receives aligned domain-invariant features, outputs the fault category probability distribution for each test sample, and takes the category corresponding to the maximum probability as the final diagnosis result. The diagnostic accuracy is then calculated. Figure 9 and Figure 13 As shown, the diagnostic results can be intuitively displayed through the confusion matrix, showing the identification of various faults and clarifying the types and proportions of misjudgments.

[0092] 2. Experimental verification; Six cross-condition migration experiments were set up on the A10VSO pump and CY pump datasets, such as... Figure 12 As shown, the diagnostic performance of MSAABN is compared with that of traditional domain adaptive methods such as DSAN, DCN, DeepCoral, MDAN, and DANN.

[0093] The effectiveness of the three core components—multi-scale feature extraction network, domain discriminator, and dynamic joint loss function—was verified through ablation experiments; the results show that... Figure 7 and Figure 8 As shown, removing any component will lead to a significant decrease in diagnostic accuracy, and the synergistic effect of the three is the key to the model achieving high-precision diagnosis.

[0094] Performance comparisons verified that MSAABN consistently achieved a diagnostic accuracy rate above 99% across all migration tasks, reaching a maximum of 99.43%. Figure 11 , Figure 15 as well as Figure 16 As shown, it improves by an average of 5-10% compared to traditional methods.

[0095] Verification through t-SNE feature visualization shows that MSAABN can effectively align the feature distributions of the source and target domains, and has a better clustering effect for similar fault features.

[0096] This invention solves the problems of low accuracy and poor adaptability in fault diagnosis of axial piston pumps under varying working conditions by multi-scale feature extraction, efficient domain discrimination and full domain difference alignment, providing reliable technical support for the health management of hydraulic systems.

[0097] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made by those skilled in the art to the technical solutions of the present invention without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.

Claims

1. A multi-scale attention adversarial domain adaptation method for fault diagnosis of an axial plunger pump, characterized in that, It includes: S1. Collect vibration signals of the axial piston pump head under different working conditions, normalize and divide the dataset to obtain the source domain training set, target domain training set and test set; Based on the state of the plunger, slipper, swashplate, and distributor plate of the axial piston pump, labels are constructed to mark the fault categories for the source domain training set; S2. Construct a feature extractor to extract multi-scale fault features of slipper wear, single plunger slipper loosening, adhesive wear, and distributor plate wear from the source domain training set and the target domain training set. Construct a domain discriminator to extract the domain attributes of the multi-scale fault features related to the pressure and flow pulsation frequency of the plunger pump. Use the domain attributes to back-optimize the feature extractor, weaken the domain differences under different operating conditions, until the feature extractor extracts domain-invariant features. S3. Under the condition that the feature extractor extracts domain-invariant features, the label classifier is trained in a domain-adaptive manner using the source domain training set and the target domain training set, so that the label classifier learns the mapping relationship from multi-scale fault features to fault categories, and a trained label classifier is obtained. S4. Construct a joint loss function consisting of domain difference loss, label classification loss, and domain discriminator loss as the overall optimization objective of the fault diagnosis model; the fault diagnosis model includes a feature extractor, a domain discriminator, and a label classifier; In constructing the domain discrepancy loss, an adaptive weight is calculated by introducing a small constant is: ; wherein ε is a small constant, is a distribution geometry difference loss, is a second-order statistics difference loss, F s is a source domain multi-scale fault feature set, F t is a target domain multi-scale fault feature set; S5. Using the source domain training set and the target domain training set, with the goal of minimizing the joint loss function, the fault diagnosis model is co-optimized and trained; the test set is input into the trained fault diagnosis model to obtain the fault diagnosis results.

2. The method of claim 1, wherein S4 include: S41. Using covariance distance and Wasserstein distance, calculate the domain difference loss between the source domain training set and the target domain training set. Introduce a minimum constant and calculate adaptive weights based on the current training batch loss to construct the domain difference loss. S42. The fault features classified by the label classifier are divided into fault feature subsets according to the fault type. The L2 distance between the source domain feature mean and the target domain feature mean is calculated within the fault feature subset. Then, the class balance weighted accumulation process is performed to obtain the class conditional alignment loss. S43. Use the cross-entropy loss function to measure the target domain training set and the source domain training set of the same type, and construct the label classification loss. S44. Based on the different depths of the feature extraction network, the input features are divided into shallow and deep temporal subsets, which are then input into the domain discriminator and the weighted hierarchical adversarial loss is calculated. Finally, the domain discriminator loss is obtained by summing and averaging the binary cross-entropy. S45, fuse the domain difference loss, the category condition alignment loss, the label classification loss and the domain discriminator loss to construct a joint loss function : ; wherein, is a label classification loss, is a domain difference loss, is a class condition alignment loss, is a domain discriminator loss, is a first weight coefficient for adjusting the loss relationship, is a second weight coefficient for adjusting the loss relationship.

3. The multi-scale attention-based adaptive fault diagnosis method for axial piston pumps according to claim 1, characterized in that, S2 include: S21. Based on the source domain training set and the target domain training set, a feature extractor is constructed. Through one-dimensional wide convolution and two-dimensional multi-scale convolution, long-term temporal dependency features and local fault features of the source domain training set and the target domain training set are extracted respectively. Multi-scale fault features are obtained through attention mechanism. S22. A domain discriminator is constructed using a multi-layer bidirectional long short-term memory network. By embedding the multi-layer bidirectional long short-term memory network at different depths in the feature extraction network, shallow temporal features and deep high-level temporal features of multi-scale fault features are extracted respectively. Based on the shallow temporal features and high-level temporal features, the domain discrimination probability of each sample belonging to the source domain or the target domain is output, and the domain attributes of the multi-scale fault features are obtained. Domain discriminator loss for: ; ; ; in, For domain adversarial loss, γ1 is the shallow loss weight, and γ2 is the deep loss weight. To mitigate losses at a shallow level, To combat losses more deeply, The number of samples in the source domain. For shallow domain classifiers, For feature extractor, For the i-th source domain sample, The number of samples in the target domain. For the j-th target domain sample, For deep domain classifiers, Let be the high-level temporal features of the i-th source domain sample. The high-level temporal features of the j-th target domain sample; S23. Apply reverse constraints to the feature extractor using the domain attributes of multi-scale fault features, so that the feature extractor can extract domain-invariant features that are difficult to be distinguished by the domain discriminator.

4. The multi-scale attention-adaptive fault diagnosis method for axial piston pumps according to claim 3, characterized in that, S21 includes: S211. Construct a feature extractor to extract long temporal dependency features between the source domain training set and the target domain training set through one-dimensional wide convolution. S212. Reconstruct long-time-dependent features into two-dimensional feature maps, perform two-dimensional convolution operations using different convolution kernel scales, and extract features through max pooling to obtain multi-scale feature maps. S213 introduces a two-dimensional convolutional block attention module, which enhances the feature response of key channels and key time-frequency regions through the attention mechanism. Channel attention weighting and spatial attention weighting are applied to the multi-scale feature maps in sequence to obtain multi-scale fault features.

5. The multi-scale attention-adaptive fault diagnosis method for axial piston pumps according to claim 2, characterized in that, The domain adaptive training process for the label classifier in S3 is as follows: First, use the real labels of the source domain training set to supervise the pre-trained classifier through cross-entropy loss to establish a mapping between basic features and faults; Then, a pre-trained label classifier is used to generate fault category pseudo-labels for the training samples in the target domain, and low-confidence samples are filtered out. The source domain training samples with real labels are mixed with the selected target domain training samples with pseudo labels, and the label classifier is trained iteratively. The class conditional alignment loss is used for optimization, so that the label classifier learns the mapping relationship between multi-scale fault features and fault categories.

6. The multi-scale attention-adaptive fault diagnosis method for axial piston pumps according to claim 2, characterized in that, S41 includes: S411. Using the CORAL function, calculate the difference in second-order statistical properties of multi-scale fault features between the label source domain training set and the target domain training set, and obtain the second-order statistical difference loss: ; Where d is the feature dimension. Let be the source domain characteristic covariance matrix. Let be the feature covariance matrix of the target domain. It is the Frobenius norm; S412. Using the Wasserstein distance function, calculate the distribution distance of multi-scale fault features between the source domain training set and the target domain training set to obtain the distribution geometric difference loss: ; in, Let be the multi-scale fault feature vector of the i-th source domain sample. Let be the multi-scale fault feature vector of the i-th target domain sample. The number of samples in the source domain. The number of samples in the target domain; S413. By normalizing and dynamically adaptively weighting the second-order statistical difference loss and the distribution geometric difference loss, an adaptive weight for the domain difference loss is constructed. S414. By using adaptive weights, the domain difference loss function and the distribution geometric difference loss are fused to obtain the domain difference loss function: 。 7. The multi-scale attention-adaptive fault diagnosis method for axial piston pumps according to claim 2, characterized in that, Category Conditional Alignment Loss for: ; Where K represents the total number of fault categories, The category balance weights are those corresponding to the z-th type of fault. Let z be the feature set corresponding to the z-th type of fault in the source domain. Let be the feature set corresponding to the z-th type of fault in the target domain.

8. The multi-scale attention-adaptive fault diagnosis method for axial piston pumps according to claim 2, characterized in that, Domain discriminator loss : ; Where N is the total number of samples, It is the probability that a sample comes from the target domain, given by the domain classifier. For the sample given by the l-th domain classifier, The label represents the sample given by the l-th domain classifier.

9. The multi-scale attention-adaptive fault diagnosis method for axial piston pumps according to claim 2, characterized in that, Label classification loss for: ; Where N is the total number of samples, Let be the label of the s-th sample. Let m be the indicator function, and m be the label with the maximum probability. Let be the predicted probability that the s-th sample belongs to the m-th category.

10. A system for a multi-scale attention-adaptive fault diagnosis method for axial piston pumps according to any one of claims 1 to 9, characterized in that, It includes: Data acquisition and preprocessing module, diagnostic module, and visualization module; The data acquisition and preprocessing module includes an acquisition unit and a normalization partitioning unit; The acquisition unit is used to collect vibration data of axial piston pumps under different operating conditions; The normalization partitioning unit is used to normalize and partition the axial piston pump vibration data, and output the normalized dataset. The diagnostic module includes a multi-scale attention feature extraction unit, a temporal domain discrimination unit, a loss calculation and co-optimization unit, and a label classification unit; the multi-scale attention feature extraction unit is used to extract multi-scale features from the normalized dataset; The temporal domain discrimination unit is used to complete hierarchical temporal adversarial discrimination; the loss calculation and co-optimization unit is used to perform multi-loss co-training; the label classification unit is used to output the fault type; the multi-scale attention feature extraction unit, the temporal domain discrimination unit, the loss calculation and co-optimization unit and the label classification unit work together to output the fault diagnosis result. The visualization module includes a feature dimensionality reduction visualization unit and a classification result visualization unit; The feature dimensionality reduction visualization unit uses tSNE dimensionality reduction technology to visualize the feature clustering distribution; The classification result visualization unit uses a confusion matrix to present the fault diagnosis results.