Plunger Pump Fault Diagnosis Method Based on Wavelet Convolution and Multi-Head Self-Attention Mechanism for Multi-Channel Feature Fusion ()
1. Introduction
As the “power heart” of hydraulic transmission systems, plunger pumps play a crucial role in marine propulsion systems [1]. However, due to the harsh operating environments, internal components of the plunger pump are prone to damage [2]. Coupled with the complexity of the equipment structure, maintenance personnel often struggle to accurately and promptly locate fault positions and analyze their causes. Therefore, during operation, plunger pumps are at risk of efficiency degradation, shutdown, or even safety accidents due to faults, which seriously threatens the system’s stability and personnel safety [3]. To enhance operational reliability and performance, and to reduce economic losses caused by excessive maintenance or faults, research on fault diagnosis methods for plunger pumps has significant practical and application value.
Traditional fault diagnosis methods for plunger pumps are mainly based on signal processing techniques, which help extract features from vibration, acoustic, and other signals while filtering irrelevant noise [4]. Common methods include wavelet-based techniques such as Empirical Wavelet Transform (EWT) [5] and Wavelet Packet Decomposition (WPD) [6], mode decomposition techniques such as Empirical Mode Decomposition (EMD) [7] and Ensemble Empirical Mode Decomposition (EEMD) [8], as well as frequency-domain analysis methods like Short-Time Fourier Transform (STFT) [9] and Hilbert Transform (DCT) [10]. These methods have shown strong capabilities in feature extraction and classification.
With the rise of deep learning, which offers good adaptability and generalization, researchers have introduced convolutional neural networks (CNNs) such as LeNet-5 [11] and AlexNet [12], as well as recurrent neural networks (RNNs) like LSTM [13], into feature extraction tasks. Furthermore, since fault data of plunger pumps are often derived from multiple sensors, multi-source fusion methods like Bayesian networks [14] and Dempster-Shafer (D-S) theory [15] have been applied to integrate features from different signals, thereby improving fault characterization and diagnosis accuracy.
However, existing studies still face three main limitations:
・ Traditional signal processing methods struggle to extract deep features and rely heavily on expert knowledge, which limits the generalization ability of diagnosis models;
・ Classical neural network architectures have inherent shortcomings: CNNs are less effective in capturing global patterns, while RNNs tend to lose temporal details and local information during iteration;
・ Existing multi-channel fusion methods often rely on manually set rules or prior knowledge, lacking the ability to adaptively adjust fusion strategies based on data, thus failing to achieve true adaptive information fusion.
To address the above issues, this paper proposes a fault diagnosis method based on wavelet convolution and a multi-head self-attention mechanism for multi-channel feature fusion. First, wavelet convolution operators are employed to extract local features from each signal channel across different frequency domains, adapting to the non-stationary nature of fault signals. Then, multi-head self-attention is used to adaptively fuse features across channels and enhance the expression of key fault-related information. Experimental results demonstrate that the proposed method can capture critical features within and across channels, improving feature representation and fault classification accuracy.
2. Method
2.1. Overview
As illustrated in Figure 1, the proposed model mainly consists of three parts:
![]()
Figure 1. Structure of the proposed model.
First, the multi-sensor input signals are fed into a multi-channel Haar wavelet and 2D convolution module for initial feature extraction from the vibration signals.
Second, the extracted features are passed into a multi-head self-attention module to establish global dependencies in the time dimension.
Finally, a fully connected layer serves as the classifier to output the plunger pump fault diagnosis results.
2.2. Network Structure
2.2.1. Haar Wavelet Convolution Module
Inspired by the Haar wavelet downsampling method proposed by Xu G. et al. [16], this module introduces the Haar wavelet basis for each channel, performing a first-order Haar wavelet transform to downsample the signal while preserving local features of the original signal. The result of the Haar wavelet transform can be expressed as follows:
(1)
(2)
In Equations (1) and (2),
represents the low-frequency wavelet coefficients, while
represents the high-frequency wavelet coefficients.
The obtained wavelet coefficients are concatenated along the convolution channel dimension and then sequentially passed through two 2D convolution modules. The first convolution module uses 16 kernels along the time dimension to extract features from both low- and high-frequency wavelet coefficients, expanding the signal into 16 channels. Batch normalization and ReLU activation are then applied to ensure training stability and enhance the model's nonlinear representation capacity. The second convolution module is similar to the first, except that the number of convolution channels remains unchanged. The parameters of the two convolutional modules are summarized in Table 1.
After passing through these two modules, the wavelet coefficients are transformed into the final output of the single-channel wavelet convolution module.
![]()
Table 1. Configuration of the convolution modules.
Finally, the wavelet convolution outputs from all channels are concatenated along the signal channel dimension and then merged with the convolutional channels.
The merged dimensions are subsequently transposed with the time dimension, resulting in a matrix of shape Seq × Token, where Seq represents the length of the time sequence and Token represents the feature vector at each time step.
This feature representation is then fed into the self-attention module to enable more expressive and high-level representation learning via the subsequent self-attention structure.
2.2.2. Multi-Head Self-Attention Module
Due to the limited receptive field of convolution kernels, the aforementioned modules can only extract features within local regions of the signal. To capture the global features of plunger pump fault signals, a multi-head self-attention mechanism is introduced in this study.
First, the Token dimension in the Seq × Token matrix is evenly divided into h parts, resulting in vectors
. Then, each
is linearly projected using learned weights
, producing the query, key, and value matrices:
, respectively.
For each head, the attention output is computed as:
(3)
Finally, the outputs from all attention heads are concatenated to obtain the final output of the multi-head self-attention module:
(4)
2.2.3. Classifier
The output of the multi-head self-attention module retains the shape Seq × Token. To further compress the information along the time dimension and extract more discriminative features, a classifier primarily based on fully connected layers is designed.
This classifier first reduces the temporal dimension and then compresses the feature dimension to match the number of target classes num_classes. The specific architecture is shown in Table 2 below:
![]()
Table 2. Structure of the classifier.
3. Experiments and Analysis
3.1. Data Acquisition and Preprocessing
Figure 2 shows the plunger pump fault simulation test bench used in this study. Fourteen vibration measurement channels were arranged as listed in Table 3, using Brüel & Kjær 4514-B accelerometers, with a sampling frequency of 25,600 Hz for all channels.
To obtain fault data of the plunger pump, 12 typical fault types were injected into the test bench as listed in Table 4. For each fault type, data were collected before and after fault injection to obtain both normal and fault-state samples.
To increase the dataset size and improve classification accuracy, each continuous data segment was first split into training and testing sets at a 7:3 ratio over time, and then sliced into 1-second segments with a 0.5-second overlap. Each data slice has a shape of 14 channels × 25,600 samples. The number of samples for each category is summarized in Table 5.
![]()
Figure 2. Plunger pump fault simulation test bench.
![]()
Table 3. Sensor placement information.
![]()
Table 4. Injected fault types and labels for plunger pump.
3.2. Model Training
All neural network models in this section were implemented using Python 3.10.11 and the deep learning framework PyTorch 2.12, and executed on a GeForce RTX 4070 GPU using the CUDA 12.1.66 parallel computing architecture.
After experimental tuning, the training configuration was finalized as follows:
・ Learning rate: 1e−4
・ Batch size: 64
・ Loss function: Cross-entropy loss
・ Optimizer: Adam optimizer (with β1 = 0.9 and β2 = 0.999)
・ Dropout rate: 0.1
During training, early stopping was introduced to prevent overfitting. Specifically, training was terminated early if the validation loss did not decrease within 30 consecutive epochs, and the model was restored to the state with the best validation performance.
As shown in Figure 3 and Figure 4, the model achieved a 99.54% accuracy on the test set at the 28th epoch, with a total training time of 24.07 seconds. At this point, the confusion matrix of the test set is shown in Figure 5, where only one normal sample was misclassified as an overflow regulation failure.
![]()
Figure 3. Accuracy curve of the proposed model.
![]()
Figure 4. Loss curve of the proposed model.
![]()
Figure 5. Confusion matrix of the proposed model on the test set.
3.3. Ablation Study
To verify the effectiveness of the key structural components in the proposed model, two comparative models were designed for ablation analysis against the original architecture:
・ Model A: The Haar wavelet downsampling method is replaced with a simple interpolation method, which only performs shape transformation on the raw input signal.
・ Model B: The multi-head self-attention module in the proposed model is removed. Instead, features extracted by wavelet convolution from each channel are directly pooled and classified, ignoring inter-channel correlations.
All other parameters remain unchanged. The training results are shown in Table 6.
As shown in Figure 6 and Figure 7, Model A fails to converge effectively, while Model B demonstrates a certain level of classification ability but still falls significantly short of the complete model. These results indicate that simple waveform reshaping through interpolation is insufficient for capturing the temporal and spatial features of the signal. Moreover, removing the attention mechanism and ignoring the relationships among channels leads to performance degradation.
![]()
Figure 6. Loss and accuracy curves of Model A.
![]()
Figure 7. Loss and accuracy curves of Model B.
Therefore, the proposed combination of wavelet convolution and multi-head self-attention not only achieves superior accuracy but also improves training efficiency, demonstrating the effectiveness and rationality of the model’s structural design.
3.4. Comparative Experiments
To further validate the effectiveness of the proposed model in processing plunger pump fault signals, this section compares it with several classical convolutional neural network (CNN) models. Since these baseline models require inputs of specific dimensions, the original input signals are first expanded into a three-channel format via 2D convolution. The last two dimensions are then adjusted using reshaping and interpolation techniques to meet the input size requirements.
All models are trained using the same parameter settings and dataset partitions to ensure a fair comparison in terms of classification accuracy and training efficiency. The experimental results are presented in Table 7.
![]()
Table 7. Comparative experiment results.
The results show that although classical CNN models perform well in image recognition tasks, they face challenges such as low training efficiency and suboptimal accuracy when applied to the fault diagnosis of plunger pumps. In contrast, the proposed model achieves comparable or even higher classification accuracy while maintaining a compact architecture and superior training efficiency. These findings demonstrate the proposed model’s effectiveness and practicality in multi-channel temporal signal classification tasks.
4. Conclusions
This paper proposes a fault diagnosis method for plunger pumps based on wavelet convolution and multi-head self-attention mechanisms. The main conclusions are as follows:
・ The proposed model effectively extracts instantaneous feature variations across different frequency bands within individual channels through the wavelet convolution module. Meanwhile, the multi-head self-attention mechanism enhances the model’s ability to adaptively capture key inter-channel features, which helps suppress redundant information and contributes to improved detection accuracy.
・ Experiments conducted on real-world datasets show that the proposed model achieves a classification accuracy of 99.54% on multi-channel vibration signals, with a training time of 24.07 seconds on an RTX 4070 GPU. Compared with classical convolutional models, the proposed approach significantly improves both training efficiency and diagnostic accuracy, demonstrating clear advantages.
This study focuses on multi-channel vibration signals of plunger pumps and achieves effective fault type classification based on the signal characteristics. Future work will explore the integration of real-time signal processing and edge computing to facilitate on-site deployment and real-time application of the proposed method in industrial environments.