A centrifugal pump compound fault diagnosis method based on improved multi-label meta-learning
By improving the IMAML_ML model of multi-label meta-learning, the problem of the difficulty in representing the coexistence relationship of basic faults in the compound faults of centrifugal pumps is solved, and efficient fault diagnosis is achieved under small sample conditions, improving diagnostic accuracy and generalization ability.
Patent Information
- Application Number
- CN202611139887.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-30
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies are difficult to effectively characterize the coexistence relationship of multiple basic faults in centrifugal pump composite faults, and are prone to overfitting and insufficient generalization in small sample scenarios.
An improved multi-label meta-learning method is adopted. By constructing the IMAML_ML model, the multi-path Sigmoid logistic function is used to replace the Softmax normalization function, decomposing the composite fault diagnosis into multiple independent binary Bernoulli prediction tasks. Binary cross-entropy is used as the loss function, and meta-learning training is carried out in combination with the MAML framework.
Under small sample conditions, rapid adaptation and decoupled diagnosis of compound faults in centrifugal pumps were achieved, improving subset accuracy and AUC index, and enhancing the diagnostic performance of the model.
Smart Images

Figure CN123179113A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of centrifugal pump fault diagnosis and few-sample learning technology, specifically to a centrifugal pump composite fault diagnosis method based on improved multi-label meta-learning. Background Technology
[0002] Model-independent meta-learning leverages prior knowledge from past tasks, enabling models to quickly adapt to new tasks with only a small number of gradient iterations. Most current mainstream meta-learning frameworks are built upon mutually exclusive single-label classification logic, assuming that samples belong only to a specific category. When dealing with complex faults, defining different combinations of basic faults as new categories leads to an expansion of the label space and exacerbates inter-class sample sparsity, while also obscuring the physical connections and feature coupling mechanisms between the basic faults.
[0003] The traditional Softmax normalized exponential function is used to convert the output of each category into a single-label probability distribution where the sum of probabilities is 1. Its constraints exclude the possibility of multiple labels coexisting, making it difficult to characterize the coexistence of multiple basic faults in a centrifugal pump composite fault. The Sigmoid logistic function maps the output of each label to the interval between 0 and 1. Multi-label classification uses this to represent composite faults as a logical combination of independent basic fault labels, and combines this with threshold judgment to achieve independent prediction of each basic fault label.
[0004] In scenarios with small sample sizes, directly supervising training under fixed operating conditions and distributions can easily lead to overfitting and undergeneralization. Therefore, it is necessary to combine multi-label classification with model-independent meta-learning to enable the model to obtain quickly adaptable initialization parameters from the task distribution and to achieve rapid adaptation and decoupled diagnosis of complex faults in centrifugal pumps using a small number of labeled samples. Summary of the Invention
[0005] This invention addresses the problems of scarce samples of compound faults in centrifugal pumps, non-mutually exclusive basic fault labels, and the difficulty of traditional single-label meta-learning in representing the coexistence of compound faults. It proposes a method for diagnosing compound faults in centrifugal pumps based on improved multi-label meta-learning. This method reconstructs the classification adapter and loss function based on the Model-Agnostic Meta-Learning (MAML) framework, constructs an Improved Multi-Label Model-Agnostic Meta-Learning (IMAML_ML) model, replaces the Softmax normalized exponential function with a multi-path Sigmoid logistic function, decomposes the compound fault diagnosis into multiple independent binary Bernoulli prediction tasks, and uses binary cross-entropy as the meta-optimization objective.
[0006] The technical solution of this invention is a method for diagnosing composite faults in centrifugal pumps based on improved multi-label meta-learning, which includes the following steps:
[0007] Step 1: Collect the vibration signal of the centrifugal pump, divide the original vibration signal into one-dimensional samples with a length of 1024 according to the sliding window, and complete the normalization or standardization preprocessing.
[0008] Step 2: Based on the basic fault set, multi-label encoding is performed on each operating state to construct a meta-training set and a meta-test set. The task sampler then extracts the support set and query set in the form of meta-learning task units.
[0009] Step 3: Build the IMAML_ML model; the model input is expanded from (B,1024) to (B,1,1024), where B represents the number of samples in the batch, 1024 represents the sequence length of a single sample, and 1 represents a single channel; the model passes through four convolutional blocks, flattening layers, linear classification layers, and label-by-label sigmoid output layers in sequence.
[0010] Step 4: Replace the Softmax function in single-label classification with the label-by-label Sigmoid function, use a threshold to independently determine each basic fault label, and use binary cross-entropy as the training and evaluation loss function;
[0011] Step 5: Employ a MAML-based meta-learning training strategy. In the inner loop, use the support set to perform one or more gradient updates on the current parameters, calculate the evaluation loss on the query set, and update the initial meta-parameters in the outer loop until the meta-validation metric converges and the optimal initial parameters are saved.
[0012] Step 6: Load the optimal initialization parameters obtained from training, fine-tune the model using a small number of labeled composite fault samples from the new task, and then use the fine-tuned model to independently distinguish each basic fault label of the test sample and combine them to obtain the composite fault diagnosis result.
[0013] Furthermore, in step 3, each convolutional block sequentially includes a one-dimensional convolutional layer, a batch normalization layer, a ReLU activation layer, and a max pooling layer, where ReLU is an abbreviation for Rectified Linear Unit, representing the modified linear unit activation function; the number of convolutional channels in each of the four convolutional blocks is 64, the kernel size is 3, the stride is 1, the padding is 1, and the max pooling kernel size is 2 with a stride of 2; the output of the fourth convolutional block is flattened to obtain 4096-dimensional features, which are then mapped to the basic fault label space through a linear classification layer and output through a Sigmoid logistic function.
[0014] Furthermore, in step 3, the weights of the convolutional layer and the linear classification layer are initialized using Xavier uniform initialization, and the bias is initialized to 0. Xavier uniform initialization means setting the initial weights from a uniform distribution that is adapted to the input and output dimensions of the network. This is used to maintain a reasonable gradient scale and reduce unstable fluctuations in the early stage of training during multiple rounds of internal and external loop updates.
[0015] For the j-th neuron in the output layer, its output is:
[0016] ;
[0017] In the formula, Indicates the serial number of the basic fault label; Represents the feature vectors of the input and output layers; Indicates the first The predicted probability of each label; This represents the Sigmoid logical function; Indicates the first The weight vector of each output neuron. This represents the transpose of the weight vector; " represents the vector dot product; Indicates the first The bias of each output neuron; the Sigmoid logic function maps the output value to the interval between 0 and 1 to represent the probability of the existence of the corresponding fault label;
[0018] For the j-th fault label, the prediction result is:
[0019] ;
[0020] In the formula, Indicates the serial number of the basic fault label; Indicates the first Binary prediction results for each label; This indicates an indicator function that takes the value 1 if the condition within the parentheses is true, and 0 otherwise. Indicates the first The predicted probability of each label; Indicates the first The threshold for judging each label. The threshold is optimized based on the validation set and set to 0.5.
[0021] Furthermore, in step 5, for any meta-learning task, it is divided into a support set and a query set; the inner loop updates the initial meta-parameters using the support set loss as the optimization objective. The first update step is represented as:
[0022] ;
[0023] In the formula, Indicates the sequence number of the meta-learning task; This represents the initial meta-parameters before the inner loop is updated; Indicates the first The parameters of each task are updated after the first step of the inner loop; Indicates the learning rate of the inner loop; Indicates the parameter Find the gradient; Indicates the first Support sets for each task, where the superscript This indicates a support set. This represents the loss function computed on the support set; Indicates by parameters A defined diagnostic model;
[0024] Extending to S-step updates is represented as:
[0025] ;
[0026] In the formula, This represents the index of the inner loop update step, with a value ranging from 0 to... ; This indicates the total number of steps in the inner loop update; and They represent the first The first task Model parameters before and after each update; Indicates the parameters of the current task Calculate the gradient; the meanings of the other symbols are the same as those in the first step of the inner loop update formula.
[0027] After completing the inner loop adaptation, the evaluation loss is calculated on the query set, and its gradient with respect to the initial parameters is used as the meta-update signal. The outer loop update is represented as:
[0028] ;
[0029] In the formula, the symbol " " indicates that the left-hand parameter is updated using the calculation result on the right; This represents the outer loop learning rate; This indicates the number of meta-learning tasks extracted in one outer loop batch; Indicates the task sequence number; This represents the summation of all tasks within a batch; Indicates the first The query set for each task, where the superscript This refers to a query set. Indicates the first The task process The parameters obtained after adapting the inner loop; This represents the estimated loss calculated on the query set; This indicates the loss of this batch of queries relative to the initial meta-parameters. The gradient.
[0030] Furthermore, each basic fault label is treated as an independent Bernoulli distribution output, meaning each label corresponds to either the presence or absence of a fault. Both training and evaluation employ binary cross-entropy loss, defined as:
[0031] ;
[0032] In the formula, The binary cross-entropy loss represents a single sample. Represents the true multi-label vector. This represents the multi-label probability vector output by the model; Indicates the total number of basic fault tags; Indicates the label number; Indicates the first The actual value of each label is either 0 or 1; Indicates the first The predicted probability of each label, with a value ranging from 0 to 1; Represents a logarithmic function; Indicates all The loss terms of each label are summed.
[0033] The present invention has the following beneficial effects:
[0034] 1) Combining multi-label learning with the MAML framework enables convolutional networks to obtain quickly adaptable initialization parameters from task distributions and to quickly fine-tune new tasks using a small number of labeled samples.
[0035] 2) By using label-by-label Sigmoid output and binary cross-entropy loss, the composite fault diagnosis is represented as the independent discrimination of multiple basic fault labels, which can characterize the coexistence relationship of multiple basic faults in the composite fault.
[0036] 3) On the PUMP_1 dataset, as the support set samples increased from 1-shot to 10-shot, the subset accuracy improved from 0.6906 to 0.7885, the macro-mean AUC improved from 0.9332 to 0.9609, and the micro-mean AUC improved from 0.9444 to 0.9697. On the PU_1 dataset, the subset accuracy was 0.9897, the macro-mean AUC was 0.9998, and the micro-mean AUC was 0.9999. Here, PUMP_1 represents a subset of the self-built centrifugal pump composite fault dataset, and PU_1 represents a subset of the public bearing dataset; "shot" represents the number of labeled samples for each class or label in the support set, with 1-shot and 10-shot representing 1 and 10 samples respectively; AUC is an abbreviation for Area Under the Curve, representing the area under the receiver operating characteristic curve. Attached Figure Description
[0037] Figure 1 This is a flowchart of the model-independent meta-learning training process, where T_i represents the i-th meta-learning task and m represents the total number of tasks in one outer loop.
[0038] Figure 2 This is a diagram of multi-label encoding, where X represents the sample set, L represents the label set, x_i represents the i-th sample, l_q represents the q-th label, and Y_i represents the label vector of the i-th sample.
[0039] Figure 3 This is a schematic diagram of a small number of errors in multi-label prediction, where Y represents the true label vector and Y_i represents the predicted label vector of the i-th sample.
[0040] Figure 4 This is a diagram of the meta-learning parameter update mechanism, where θ^0 represents the initial parameters, θ^1 and θ^2 represent the parameters after the first and second updates, respectively, and T_0 and T_1 represent the training data used in the two consecutive updates.
[0041] Figure 5 This is a flowchart of a composite fault diagnosis based on IMAML_ML. The English meanings of the network modules in the flowchart are explained after Table 3 in the specific implementation method.
[0042] Figure 6 This is a 1-shot training process curve graph, where Training Accuracy represents training accuracy, Training Loss represents training loss, and the horizontal axis represents the number of iterations.
[0043] Figure 7 This is a graph showing the 5-shot training process. The meanings of the English coordinates are as follows: Figure 6 same.
[0044] Figure 8 This is a graph showing the 10-shot training process. The meanings of the English coordinates are as follows: Figure 6 same.
[0045] Figure 9 This is a comparison chart of evaluation metrics for the PUMP_1 dataset. The meaning of each English evaluation metric is explained before Table 5 in the specific implementation method.
[0046] Figure 10 This is the ROC plot of IMAML_ML in the PUMP_1 dataset; ROC is an abbreviation for Receiver Operating Characteristic, representing the receiver operating characteristic curve; TPR represents True Positive Rate, FPR represents False Positive Rate, AUC represents the area under the curve, and Random represents the random classification baseline.
[0047] Figure 11 This is a training curve plot for the PU_1 dataset, where the English coordinates have the following meanings: Figure 6 same.
[0048] Figure 12 This is a graph of evaluation metrics for the PU_1 dataset. The meaning of each English evaluation metric is explained in Table 5 before the specific implementation method.
[0049] Figure 13 This is the ROC plot of IMAML_ML on the PU_1 dataset. The meanings of ROC, TPR, FPR, AUC, and Random are as follows: Figure 10 same. Detailed Implementation
[0050] The present invention will be further described below with reference to specific embodiments. This embodiment uses the PUMP_1 centrifugal pump composite fault dataset and the PU_1 public bearing dataset, employing the same multi-label encoding, network structure, meta-learning training strategy, and evaluation results.
[0051] PUMP_1 is derived from a centrifugal pump test bench, collected at 900 rpm using an IHG25-160 centrifugal pump with a sampling frequency of 50 kHz, and includes 7 operating states: N, A, B, C, AB, AC, and BC. PU_1 is a subset of publicly available bearing data collected at 1500 rpm, with a sampling frequency of 64 kHz, and includes 4 operating states: N, A, B, and AB. Here, IHG25-160 represents the centrifugal pump model; rpm is an abbreviation for revolutions per minute; kHz is an abbreviation for kilohertz; N represents the normal state, A represents an inner bearing ring fault, B represents an outer bearing ring fault, C represents impeller deformation, and AB, AC, and BC represent composite states where two corresponding basic faults coexist.
[0052] Table 1 Dataset Partitioning
[0053]
[0054] Step 1: The continuous vibration signal is divided into one-dimensional samples of length 1024 using a non-overlapping sliding window, and the samples are organized into a single-channel input. 500 samples are used for each operating condition in PUMP_1.
[0055] Step 2: Perform multi-hot encoding based on the basic fault labels. PUMP_1 uses a four-dimensional label vector of A, B, C, and N. The normal state and the three types of basic faults each occupy independent label bits, and the composite state is set to 1 by the corresponding basic fault labels.
[0056] Table 2. Correspondence of encoding labels in the PUMP_1 dataset
[0057]
[0058] Step 3: Build the IMAML_ML model. The model input is expanded from (B, 1024) to (B, 1, 1024), and then passes through four convolutional blocks, a flattening layer, a linear classification layer, and a label-by-label sigmoid output layer. The network parameters are as follows.
[0059] Table 3 Specific parameters of the IMAML_ML network
[0060]
[0061] In Table 3, TensorReshape represents tensor dimension rearrangement; Conv1d represents a one-dimensional convolutional layer; BatchNorm1d represents a one-dimensional batch normalization layer; ReLU represents a modified linear unit activation function; MaxPool1d represents a one-dimensional max pooling layer; Flatten represents flattening operation; Linear represents a linear mapping layer; in and out represent the number of input channels and the number of output channels, respectively; K represents the size of the convolutional kernel or pooling kernel; S represents the stride; P represents the padding amount; N represents the number of feature channels in the batch normalization layer; and B represents the number of samples in the batch in the output dimension.
[0062] Step 4: Construct the meta-training task. Task sampling follows the N-way K-shot format, where N-way indicates that a single task contains N categories, and K-shot indicates that each category in the support set contains K labeled samples. This paper's task construction is centered on the basic fault label dimension; PUMP_1 has a basic fault label dimension of 4, and three task types are set: 1-shot, 5-shot, and 10-shot. The outer loop uses the Adam (Adaptive Moment Estimation) optimizer, with an inner loop learning rate of 0.05 and an outer loop learning rate of 0.003.
[0063] Step 5: Complete multiple rounds of meta-task iterations by updating within the support set and updating outside the query set, and use binary cross-entropy to calculate the independent prediction loss of each basic fault label until the meta-validation metric converges.
[0064] Step 6: Load the saved optimal initialization parameters, fine-tune them using a small number of labeled composite fault samples from the new task, and independently distinguish each basic fault label in the query set, with the threshold set to 0.5.
[0065] To quantify prediction capability from the perspective of independent labels, confusion matrices for each label are constructed using TP, FP, FN, and TN from traditional binary classification. Here, TP (True Positive) represents a true positive, FP (False Positive) represents a false positive, FN (False Negative) represents a false negative, and TN (True Negative) represents a true negative.
[0066] Table 4. Characteristics of Traditional Binary Classification Evaluation
[0067]
[0068] The model was evaluated using Hamming Loss (HL), Average Precision Score (APS), Coverage Error (CE), Ranking Loss (RL), Subset Accuracy (SA), Macro-AUC (MaAUC), and Micro-AUC (MiAUC). The results for PUMP_1 under three shot settings are as follows.
[0069] Wherein, HL represents the proportion of incorrectly predicted labels out of all labels; APS represents the average precision of the true labels in the predicted ranking; CE represents the average rank position required to cover all true labels; RL represents the proportion of pairs where irrelevant labels score higher than relevant labels; SA represents the proportion of samples where the predicted label set completely matches the true label set; MaAUC represents the arithmetic mean of the AUCs of each label; and MiAUC represents the overall AUC calculated after summing all label prediction results. Smaller values for HL, CE, and RL indicate better performance, while larger values for APS, SA, MaAUC, and MiAUC indicate better performance.
[0070] Table 5 Comparison of evaluation metrics for the PUMP_1 dataset
[0071]
[0072] As the number of support set samples increases, all indicators show positive changes; the model's prediction AUC for each label of PUMP_1 is higher than 0.9, indicating that IMAML_ML can characterize the multi-label concurrent relationship of centrifugal pump composite faults under small sample conditions.
[0073] In the validation on the PU_1 public dataset, a non-overlapping sliding window was used to obtain samples of length 1024. The basic fault set includes A and B, and the normal state N is retained as an explicit label bit to form a three-dimensional label vector.
[0074] Table 6. Coding label correspondence for the PU_1 dataset
[0075]
[0076] PU_1 was tested using a 1-shot experiment, and the hyperparameters were the same as those in PUMP_1. The evaluation results are as follows.
[0077] Table 7 Evaluation metrics for the PU_1 dataset
[0078]
[0079] The training accuracy and loss of the PU_1 experiment reached a stable convergence phase around the 100th round. The ROC (Receiver Operating Characteristic) curve was close to the upper left corner, indicating that the multi-label discrimination strategy is transferable on public datasets.
Claims
1. A method for diagnosing composite faults in centrifugal pumps based on improved multi-label meta-learning, comprising the following steps: Step 1: Collect the vibration signal of the centrifugal pump, divide the original vibration signal into one-dimensional samples with a length of 1024 according to the sliding window, and complete the normalization or standardization preprocessing. Step 2: Based on the basic fault set, multi-label encoding is performed on each operating state to construct a meta-training set and a meta-test set. The task sampler then extracts the support set and query set in the form of meta-learning task units. Step 3: Build the IMAML_ML model; the model input is expanded from (B,1024) to (B,1,1024), where B represents the number of samples in the batch, 1024 represents the sequence length of a single sample, and 1 represents a single channel; the model passes through four convolutional blocks, flattening layers, linear classification layers, and label-by-label sigmoid output layers in sequence. Step 4: Replace the Softmax function in single-label classification with the label-by-label Sigmoid function, use a threshold to independently determine each basic fault label, and use binary cross-entropy as the training and evaluation loss function; Step 5: Employ a MAML-based meta-learning training strategy. In the inner loop, use the support set to perform one or more gradient updates on the current parameters, calculate the evaluation loss on the query set, and update the initial meta-parameters in the outer loop until the meta-validation metric converges and the optimal initial parameters are saved. Step 6: Load the optimal initialization parameters obtained from training, fine-tune the model using a small number of labeled composite fault samples from the new task, and then use the fine-tuned model to independently distinguish each basic fault label of the test sample and combine them to obtain the composite fault diagnosis result.
2. The centrifugal pump composite fault diagnosis method based on improved multi-label meta-learning as described in claim 1, characterized in that, In step 3, each convolutional block sequentially includes a one-dimensional convolutional layer, a batch normalization layer, a ReLU activation layer, and a max pooling layer. ReLU is an abbreviation for Rectified Linear Unit, representing the modified linear unit activation function. The number of convolutional channels in each of the four convolutional blocks is 64, the kernel size is 3, the stride is 1, the padding is 1, and the max pooling kernel size is 2 with a stride of 2. The output of the fourth convolutional block is flattened to obtain 4096-dimensional features, which are then mapped to the basic fault label space through a linear classification layer and output through a Sigmoid logistic function.
3. The centrifugal pump composite fault diagnosis method based on improved multi-label meta-learning as described in claim 2, characterized in that, In step 3, the weights of the convolutional layer and the linear classification layer are initialized using Xavier uniform initialization, and the bias is initialized to 0. Xavier uniform initialization means setting the initial weights from a uniform distribution that is adapted to the input and output dimensions of the network. This is used to maintain a reasonable gradient scale and reduce unstable fluctuations in the early stage of training during multiple rounds of inner and outer loop updates. For the j-th neuron in the output layer, its output is: ; In the formula, Indicates the serial number of the basic fault label; Represents the feature vectors of the input and output layers; Indicates the first The predicted probability of each label; This represents the Sigmoid logical function; Indicates the first The weight vector of each output neuron. This represents the transpose of the weight vector; " represents the vector dot product; Indicates the first The bias of each output neuron; the Sigmoid logic function maps the output value to the interval between 0 and 1 to represent the probability of the existence of the corresponding fault label; For the j-th fault label, the prediction result is: ; In the formula, Indicates the serial number of the basic fault label; Indicates the first Binary prediction results for each label; This indicates an indicator function that takes the value 1 if the condition within the parentheses is true, and 0 otherwise. Indicates the first The predicted probability of each label; Indicates the first The threshold for judging each label. The threshold is optimized based on the validation set and set to 0.
5.
4. The centrifugal pump composite fault diagnosis method based on improved multi-label meta-learning as described in claim 3, characterized in that, In step 5, for any meta-learning task, it is divided into a support set and a query set; the inner loop updates the initial meta-parameters with gradients based on the support set loss as the optimization objective. The first step update is expressed as: ; In the formula, Indicates the sequence number of the meta-learning task; This represents the initial meta-parameters before the inner loop is updated; Indicates the first The parameters of each task are updated after the first step of the inner loop. Indicates the learning rate of the inner loop; Indicates the parameter Find the gradient; Indicates the first Support sets for each task, where the superscript This indicates a support set. This represents the loss function computed on the support set; Indicates by parameters A defined diagnostic model; Extending to S-step updates is represented as: ; In the formula, This represents the index of the inner loop update step, with a value ranging from 0 to... ; This indicates the total number of steps in the inner loop update; and They represent the first The first task Model parameters before and after each update; Indicates the parameters of the current task Calculate the gradient; the meanings of the other symbols are the same as those in the first step of the inner loop update formula. After completing the inner loop adaptation, the evaluation loss is calculated on the query set, and its gradient with respect to the initial parameters is used as the meta-update signal. The outer loop update is represented as: ; In the formula, the symbol " " indicates that the left-hand parameter is updated using the calculation result on the right; This represents the outer loop learning rate; This indicates the number of meta-learning tasks extracted in one outer loop batch; Indicates the task sequence number; This represents the summation of all tasks within a batch; Indicates the first The query set for each task, where the superscript This refers to a query set. Indicates the first The task process The parameters obtained after adapting the inner loop; This represents the estimated loss calculated on the query set; This indicates the loss of this batch of queries relative to the initial meta-parameters. The gradient.
5. The centrifugal pump composite fault diagnosis method based on improved multi-label meta-learning as described in claim 4, characterized in that, Each basic fault label is treated as an independent Bernoulli distribution output, meaning each label corresponds to either the presence or absence of a fault. Both training and evaluation use binary cross-entropy loss, defined as: ; In the formula, The binary cross-entropy loss represents a single sample. Represents the true multi-label vector. This represents the multi-label probability vector output by the model; Indicates the total number of basic fault tags; Indicates the label number; Indicates the first The actual value of each label is either 0 or 1; Indicates the first The predicted probability of each label, with a value ranging from 0 to 1; Represents a logarithmic function; Indicates all The loss terms of each label are summed.
