Plunger pump fault diagnosis method based on audio signals
Through meta-transfer learning and Gammatone spectrogram technology, the problem of weak audio fault characteristics and insufficient samples of the plunger pump is solved, achieving high-accuracy fault diagnosis in strong noise environments and adapting to the detection of various fault categories.
Patent Information
- Application Number
- CN202310323278.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, the audio fault characteristics of the plunger pump are weak and the fault samples are not easy to obtain, which leads to the problem of low accuracy of audio signal detection in the fault diagnosis of the plunger pump.
Meta-transfer learning is used combined with Gammatone filter and short-time Fourier transform to convert the audio signal into Gammatone spectrogram. A small sample data set is constructed through frame cutting, and the Resnet-12 network is used for training to achieve small sample conditions. Troubleshooting.
It improves the audio signal representation ability in strong noise environments, overcomes the problem of weak audio signal features, realizes adaptive processing of fault diagnosis of various fault categories, and avoids over-fitting.
Smart Images

Figure CN118728707A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of plunger pump mechanical equipment fault diagnosis, and in particular relates to a plunger pump fault diagnosis method based on audio signals. Background Art
[0002] As the core component of the hydraulic system, the reciprocating plunger pump has the advantages of high lifting pressure and economical practicality, so it has a very wide application prospect in the field of oil field production. However, if the failure of the plunger pump is not discovered in time during the well production process, it is easy to cause a series of problems such as reduced life of the plunger pump, increased maintenance costs, long downtime, etc., and even endanger the personal safety of the staff in serious cases.
[0003] Conventional plunger pump fault detection methods mainly use vibration sensors to detect vibration signals at different positions, and at the same time collect voltage, current, pressure, flow and other data for comprehensive analysis. For example: Patent title: A plunger pump fault analysis method and analysis device, application number: CN201811157062.8 The patent application records the following content: A plunger pump fault analysis method and analysis device, by collecting video information when the plunger pump is working, to determine whether the collected data is valid data, and when the data is valid, the audio data in the video information is analyzed to determine the cause of the plunger pump failure. The method is simple, fast and effective. It can not only accurately identify the source of the plunger pump problem through noise analysis, but also help to discover potential faults and problems in the plunger pump in advance, and the collected video information can be used to ensure the validity of the collected data, improve the accuracy of the analyzed cause of the plunger pump failure, and avoid the problem of deviation in the analysis result due to errors in data collection. However, further research revealed that the existing technologies, including the above-mentioned patent documents, require the installation of a large number of sensors, resulting in extremely high maintenance costs for plunger pump fault detection; at the same time, due to the influence of harsh working environments such as vibration and high pressure, the life of the detection instrument will be shortened, the workload of manual maintenance is large, and false alarms are prone to occur. In addition, in the process of processing the above-mentioned plunger pump vibration signals, feature extraction methods such as modal decomposition algorithms, information entropy, and enhanced clustering segmentation need to be widely used. Generally speaking, after extracting feature information, traditional machine learning methods such as support vector machines and generalized regression neural networks are combined for pattern recognition. However, although this type of traditional plunger pump fault diagnosis method has achieved good results, it has certain limitations in practical applications because it strongly relies on the effect of feature extraction and it is usually difficult to ensure generalization ability.
[0004] As a relatively new fault diagnosis and detection method, audio signal detection has the advantages of non-contact measurement and a small number of sensors. However, this technical solution also has some limitations. For example, the inventors found that since audio signals are easily aliased during propagation and the sound field structure of mechanical equipment such as plunger pumps is complex, it is difficult to conduct mechanism analysis on audio signals, resulting in certain restrictions on the application of audio fault diagnosis. In addition, since fault audio data is not easy to obtain, the direct use of deep learning algorithms will cause the trained model to overfit, and the accuracy is not high in actual tests. Therefore, it is urgent for those skilled in the art to further optimize the above-mentioned method of detecting plunger pump faults with audio signals, so as to provide a more reliable plunger pump fault diagnosis method based on audio signals. Summary of the invention
[0005] The present invention provides a plunger pump fault diagnosis method based on audio signals. In view of the problems in the existing plunger pump fault diagnosis technology, such as weak plunger pump audio fault characteristics and difficulty in obtaining fault samples, the plunger pump fault diagnosis under small sample conditions is achieved by combining the plunger pump fault audio signal with meta-transfer learning.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0007] A plunger pump fault diagnosis method based on audio signals comprises the following steps:
[0008] Step 1: Collect the plunger pump fault audio signal containing background noise, and extract the signal characteristics of the plunger pump fault audio signal after filtering;
[0009] Step 2: Using a frame cutting method, the plunger pump fault audio signal is cut into multiple segments of plunger pump fault audio small sample data;
[0010] Step 3: Construct a small sample dataset of plunger pump failure audio;
[0011] Step 4: Train and obtain a fault diagnosis model for the plunger pump fault audio.
[0012] More preferably, it also includes:
[0013] Step 5: Based on the fault diagnosis model of the plunger pump fault audio obtained in step 4, determine the fault classification result of the plunger pump fault audio.
[0014] Preferably, the process of filtering the plunger pump fault audio signal containing background noise in step 1 can be specifically described as follows:
[0015] The Gammatone filter is used to filter the plunger pump fault audio signal containing background noise. The impulse response of the Gammatone filter satisfies:
[0016] h(t)=ct n-1 e -2πbt cos(2πf0t+φ),t>0 (1);
[0017] Where c is the proportional coefficient; n is the filter order; b is the attenuation speed; f0 is the center frequency; φ is the phase.
[0018] Preferably, the process of extracting the signal features of the plunger pump fault audio signal in step 1 can be specifically described as:
[0019] Through short-time Fourier transform, the plunger pump fault audio signal is converted into a Gammatone spectrogram simulating the auditory characteristics of the human cochlea; the Gammatone spectrogram is used to reflect the signal characteristics of the plunger pump fault audio signal, which satisfies:
[0020] Where ω is the normalized angular frequency, τ is the delay coefficient, the window function Ψ(t) uses a Hanning window with a length of 128, and displays the single-sided spectrum of the signal.
[0021] Preferably, each segment of the plunger pump fault audio small sample data cut in step 2 contains at least two reciprocating motions of the plunger pump.
[0022] Preferably, the step three can be specifically described as:
[0023] The plunger pump failure audio small sample data is divided into a training set Dtrain, a validation set Dval and a test set Dtest; among them, except for the plunger pump failure audio small sample data divided into the training set Dtrain, the remaining plunger pump failure audio small sample data is allocated to the validation set Dval: the test set Dtest in a ratio of 6:4.
[0024] Preferably, the step 4 can be specifically described as:
[0025] Select the basic network model according to the MTL method, and use the miniImageNet dataset to pre-train a DNN network as the feature extractor Θ;
[0026] After pre-training on the miniImageNet dataset, a new classifier θ is trained based on a small sample dataset of plunger pump failure audio.
[0027] Based on the feature extractor Θ and the classifier θ, a fault diagnosis model a of the plunger pump fault audio is trained;
[0028] The validation set Dval is used to adjust and train the fault diagnosis model a of the plunger pump fault audio, and the fault diagnosis model b of the plunger pump fault audio is obtained; the network structure and parameters of the fault diagnosis model b of the plunger pump fault audio are kept synchronized with the fault diagnosis model a of the plunger pump fault audio throughout the process;
[0029] Among them, select the Resnet-12 network model as the basic network model, and select the Resnet residual network as the pre-trained DNN network.
[0030] Preferably, the step five can be specifically described as:
[0031] The test sample is input into the fault diagnosis model a of the plunger pump fault audio, and the consistency of the classification results is used to determine whether the test sample belongs to the trained fault category;
[0032] If the judgment result is that the test sample belongs to the trained fault category, the fault classification result is output;
[0033] If the judgment result is that the test sample does not belong to the trained fault category, the test sample is regarded as an unseen class; and according to the MTL method, each frame signal in the test sample is regarded as a new class, assigned a new label number, and combined with other class samples to form a new task to update the fault diagnosis model a of the plunger pump fault audio and the fault diagnosis model b of the plunger pump fault audio;
[0034] The test sample is input into the updated fault diagnosis model b of the plunger pump fault audio for retest classification, and the fault classification result is output.
[0035] Preferably, the classification result consistency judgment standard in step 5 can be specifically described as:
[0036] in, num i is the number of test samples identified as a certain category, num n is the total number of test sample frames; acc th is the judgment threshold set, which is determined according to the performance of the fault diagnosis model a of the plunger pump fault audio in the validation set and meets the acc th <acc min (5);acc min is the accuracy of the lowest class in the validation set.
[0037] The present invention provides a plunger pump fault diagnosis method based on audio signals, which includes collecting a plunger pump fault audio signal containing background noise, extracting the signal features of the plunger pump fault audio signal after filtering; using a frame cutting method to cut the plunger pump fault audio signal into multiple segments of plunger pump fault audio small sample data; constructing a plunger pump fault audio small sample data set; training to obtain a plunger pump fault audio fault diagnosis model and other step features. A plunger pump fault diagnosis method based on audio signals with the above step features converts the plunger pump audio fault diagnosis problem into an image classification problem through a Gammatone spectrogram, effectively improves the characterization capability of the plunger pump audio signal under strong noise interference, and can overcome the difficulty of weak plunger pump audio signal features. In addition, in order to solve the problem of lack of signal samples in the process of plunger pump audio fault diagnosis, meta-transfer learning is combined with plunger pump audio fault diagnosis, so that the plunger pump fault diagnosis method provided by the present invention can adaptively handle various situations, even including untrained fault categories. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0039] Figure 1 A schematic flow chart of a plunger pump fault diagnosis method based on audio signals provided by the present invention;
[0040] Figure 2 It is the spectrogram of the audio signal of the plunger pump failure before filtering (including background noise);
[0041] Figure 3 is the spectrogram of the filtered audio signal of the plunger pump failure;
[0042] Figure 4 Confusion matrix of the fault diagnosis test accuracy for training the fault diagnosis model for the plunger pump fault audio;
[0043] Figure 5 The accuracy curve diagram of the fault diagnosis model for the plunger pump fault audio;
[0044] Figure 6 This is the Loss curve diagram of the fault diagnosis model for the plunger pump fault audio. DETAILED DESCRIPTION
[0045] The present invention provides a plunger pump fault diagnosis method based on audio signals. In view of the problems in the existing plunger pump fault diagnosis technology, such as weak plunger pump audio fault characteristics and difficulty in obtaining fault samples, the plunger pump fault diagnosis under small sample conditions is achieved by combining the plunger pump fault audio signal with meta-transfer learning.
[0046] Embodiment 1
[0047] The present invention provides a plunger pump fault diagnosis method based on audio signals, such as Figure 1 As shown, the following steps are included:
[0048] Step 1: Collect the plunger pump fault audio signal containing background noise, and extract the signal characteristics of the plunger pump fault audio signal after filtering;
[0049] Step 2: Using a frame cutting method, the plunger pump fault audio signal is cut into multiple segments of plunger pump fault audio small sample data;
[0050] Step 3: Construct a small sample dataset of plunger pump failure audio;
[0051] Step 4: Train and obtain a fault diagnosis model for the plunger pump fault audio.
[0052] In addition, as a more preferred embodiment of the present invention, Figure 1 As shown, it also includes: step five, based on the fault diagnosis model of the plunger pump fault audio obtained in step four, determine and obtain the fault classification result of the plunger pump fault audio.
[0053] Embodiment 2
[0054] Embodiment 2 includes all the technical features of Embodiment 1. In addition, Embodiment 2 will explain step 1 recorded in Embodiment 1 in detail as follows.
[0055] Specifically, the process of filtering the plunger pump fault audio signal containing background noise in step 1 can be specifically described as follows:
[0056] The Gammatone filter is used to filter the plunger pump fault audio signal containing background noise. The impulse response of the Gammatone filter satisfies:
[0057] h(t)=ct n-1 e -2πbt cos(2πf0t+φ),t>0 (1);
[0058] Where c is the proportional coefficient; n is the filter order; b is the attenuation speed; f0 is the center frequency; φ is the phase.
[0059] It is worth noting that the reason why the plunger pump fault audio signal needs to be filtered first is because the plunger pump will generate huge noise during operation due to vibration and friction of the mechanical structure. Correspondingly, the sound generated by the plunger pump failure will become relatively weak and easily drowned out by the noise, making it difficult to effectively identify it directly from the audio signal. In order to improve the characterization capability of the plunger pump failure audio signal, the diagnostic method provided by the present invention introduces a Gammatone filter to simulate the auditory characteristics of the human cochlea (the theoretical principle is that the plunger pump failure audio is mostly concentrated in the 20-20KHz frequency range that the human ear can distinguish, and experienced operation and maintenance personnel can judge whether there is a fault by the change in the plunger pump sound), thereby effectively enhancing the spectrogram contrast of the low-frequency band in the plunger pump failure audio signal, thereby enhancing the characterization capability of the plunger pump failure audio signal. Among them, Figure 2 This is the spectrogram of the plunger pump fault audio signal before filtering (including background noise). Figure 3 The spectrogram of the filtered plunger pump fault audio signal.
[0060] The process of extracting the signal features of the plunger pump fault audio signal in step 1 can be specifically described as:
[0061] Through short-time Fourier transform, the plunger pump fault audio signal is converted into a Gammatone spectrogram simulating the auditory characteristics of the human cochlea; the Gammatone spectrogram is used to reflect the signal characteristics of the plunger pump fault audio signal, which satisfies:
[0062] Where ω is the normalized angular frequency, τ is the delay coefficient, the window function Ψ(t) uses a Hanning window with a length of 128, and displays the single-sided spectrum of the signal.
[0063] One point that needs to be supplemented is that after extracting the signal features of the plunger pump fault audio signal, the Gammatone spectrogram is obtained as a signal sample, thereby converting the above-mentioned diagnosis problem of the plunger pump fault audio signal into an image classification problem, and then more mature image classification technology can be introduced to realize the data processing of the plunger pump fault.
[0064] In addition, compared with the linear spectrogram and Mel cepstrum commonly used in existing audio signal processing, the Gammatone spectrogram has a stronger anti-noise performance, and is therefore particularly suitable for use in situations with large background noise, such as plunger pumps. Specifically, taking the three small sample data sets constructed by the applicant as an example, the accuracy comparison experimental results of the Gammatone spectrogram and the existing linear spectrogram and Mel cepstrum can be referred to as shown in the following table:
[0065]
[0066] From the comparison results, we can see that the Gammatone spectrogram has a strong anti-noise performance and achieved the highest accuracy in fault classification in both the validation set and the test set.
[0067] Embodiment 3
[0068] Embodiment 3 includes all the technical features of Embodiment 1. In addition, Embodiment 3 will explain Step 2 and Step 3 recorded in Embodiment 1 in detail as follows.
[0069] It is worth noting that since the collected audio signals of plunger pump failure are limited, data expansion is required to meet the needs of the diagnostic process. In step 2 of this diagnostic method, the plunger pump failure audio signal is cut into multiple segments of plunger pump failure audio small sample data by using the frame cutting method. And in order to allow the signal sample to fully express the dynamic characteristics of the plunger pump, each segment of the plunger pump failure audio small sample data formed by cutting contains at least 2 reciprocating motions of the plunger pump.
[0070] After the plunger pump fault audio signal is cut into multiple segments of plunger pump fault audio small sample data, the cut multiple segments of plunger pump fault audio small sample data are further constructed to form a plunger pump fault audio small sample data set. Specifically, during the construction process, it is necessary to randomly sample various types of data in the plunger pump fault audio small sample data set in order to combine them into multiple tasks for use in subsequent training steps.
[0071] Among them, step three can be specifically described as: dividing the plunger pump fault audio small sample data into a training set Dtrain, a validation set Dval and a test set Dtest. In addition to the plunger pump fault audio small sample data divided into the training set Dtrain, the remaining plunger pump fault audio small sample data is allocated to the validation set Dval: test set Dtest in a ratio of 6:4.
[0072] For example, suppose the experimental target piston pump reciprocates for 280 minutes. -1 Therefore, the duration of each segment of plunger pump fault audio small sample data formed by each cut can be selected as 0.5s. The following 14 types of plunger pump signal samples are collected, each of which contains 20 92×92RGB Gammatone spectrograms obtained from the plunger pump audio signal, forming a total of 280 small samples; then the above small samples are classified to form the training and test sets as follows:
[0073] Training set Test Set 0Normal 9. Valve seat spring is damaged 1. Loose plunger 10. Belt damage 2. Packing seal leakage 11 Pitting of plunger 3. Pump anchor bolts loose 12 Bearing outer ring wear 4. The motor anchor bolts are loose 13. Plunger wear 5. Motor eccentricity 6. Valve core is damaged 7. Bearing bracket damage 8. Crosshead wear
[0074] Embodiment 4
[0075] The fourth embodiment includes all the technical features of the first embodiment. In addition, the fourth embodiment will explain the step 4 recorded in the first embodiment in detail as follows.
[0076] As a preferred embodiment of the present invention, the process of obtaining the fault diagnosis model of the plunger pump fault audio by training in step 4 can be specifically described as follows:
[0077] Select the basic network model according to the MTL method, and use the miniImageNet dataset to pre-train a DNN network as the feature extractor Θ;
[0078] After pre-training on the miniImageNet dataset, a new classifier θ is trained based on a small sample dataset of plunger pump failure audio.
[0079] Based on the feature extractor Θ and the classifier θ, a fault diagnosis model a of the plunger pump fault audio is trained;
[0080] The validation set Dval is used to adjust and train the fault diagnosis model a of the plunger pump fault audio, and the fault diagnosis model b of the plunger pump fault audio is obtained; the network structure and parameters of the fault diagnosis model b of the plunger pump fault audio are kept synchronized with the fault diagnosis model a of the plunger pump fault audio throughout the process;
[0081] Among them, select the Resnet-12 network model as the basic network model, and select the Resnet residual network as the pre-trained DNN network.
[0082] It is worth noting that in order to improve the ability of the fault diagnosis model trained to obtain the fault audio of the plunger pump to extract the signal features of the Gammatone spectrogram, without paying attention to the specific content of the Gammatone spectrogram, the fault diagnosis model of the fault audio of the plunger pump can be iterated multiple times. For example: The process of training the fault diagnosis model of the fault audio of the plunger pump went through 10,000 iterations in total. Among them, the validation set was used for validation once every 100 iterations. Figure 4 As shown, Figure 4 The confusion matrix of the fault diagnosis test accuracy of a fault diagnosis model for a training plunger pump fault audio is shown. From the above matrix, it can be found that after 3000 iterations, it gradually converges, and the loss values of the model in the training set Dtrain and the validation set Dval tend to converge at similar positions, which can be judged that the model has not been overfitted or underfitted.
[0083] In conventional supervised learning, if the fault diagnosis of the plunger pump fault audio does not stop iteration after convergence, overfitting is likely to occur. However, since the present invention combines the MTL training method, it can effectively avoid overfitting of the model on the training data. This can also be seen from Figure 5 and Figure 6 The accuracy and loss curve of Figure 5 is the accuracy curve of the fault diagnosis model of the plunger pump fault audio. Figure 6 The Loss curve of the fault diagnosis model of the plunger pump fault audio. A specific analysis shows that the training set Dtrain has basically stabilized at 100% fault diagnosis accuracy around 1000 iterations; while the accuracy of the verification set is still rising slowly, and the highest accuracy of the verification set is 91.41%, which occurs at the 6100th iteration. The above phenomena can all illustrate that the fault diagnosis model of the plunger pump fault audio provided by the present invention is still adapting to tasks outside the training set and does not produce overfitting.
[0084] Embodiment 5
[0085] The fifth embodiment includes all the technical features of the first embodiment. In addition, the fifth embodiment will explain the step 5 recorded in the first embodiment in detail as follows.
[0086] It is worth noting that although the fault diagnosis model of the plunger pump fault audio obtained through the training of the above steps has basically acquired the ability to identify faults, the model still needs to be input in the form of tasks, and if the test signal belongs to a new fault class that has not been trained, it is still necessary to provide the fault diagnosis model of the plunger pump fault audio with samples of the same category label for re-learning. However, in the actual implementation of fault diagnosis, it is difficult to meet the above conditions, so it is necessary to adaptively process and improve the trained model so that the diagnostic method provided by the present invention has the means to adaptively handle new fault classes.
[0087] Specifically, as a preferred implementation of the present invention, step five can be specifically described as:
[0088] The test sample is input into the fault diagnosis model a of the plunger pump fault audio, and the consistency of the classification results is used to determine whether the test sample belongs to the trained fault category;
[0089] If the judgment result is that the test sample belongs to the trained fault category, the fault classification result is output;
[0090] If the judgment result is that the test sample does not belong to the trained fault category, the test sample is regarded as an unseen class; and according to the MTL method, each frame signal in the test sample is regarded as a new class, assigned a new label number, and combined with other class samples to form a new task to update the fault diagnosis model a of the plunger pump fault audio and the fault diagnosis model b of the plunger pump fault audio;
[0091] The test sample is input into the updated fault diagnosis model b of the plunger pump fault audio for retest classification, and the fault classification result is output.
[0092] One point that needs to be supplemented is that the reason for using two parameter-synchronized fault diagnosis models for plunger pump fault audio is because the applicant intends to enable the present invention to achieve adaptive processing of new fault types for plunger pump fault diagnosis through the combination of the above two models. The specific implementation process is: use one of the models (fault diagnosis model a for plunger pump fault audio) to make judgments for known fault types, and output fault diagnosis results based on trained fault categories. Use another model (fault diagnosis model b for plunger pump fault audio) to reassign untrained fault categories, so that untrained fault category test samples are used as new categories, thereby achieving updates to the fault diagnosis model a for plunger pump fault audio and the fault diagnosis model b for plunger pump fault audio.
[0093] For example: In order to test the process of updating the fault diagnosis model of the plunger pump fault audio and simulate the actual test situation of fault diagnosis, the applicant deleted the labels of 5 categories of samples in the test set and tested them as unknown samples. According to the above steps provided by the present invention, the test samples are used as new categories to update the fault diagnosis model a of the plunger pump fault audio and the fault diagnosis model b of the plunger pump fault audio; and the test samples are input into the updated fault diagnosis model b of the plunger pump fault audio for retesting and classification. Among them, the results of retesting and classifying the above 5 categories of data can be referred to as follows:
[0094]
[0095] In this process, the judgment criteria for the consistency of classification results can be specifically described as:
[0096]
[0097] in, num i is the number of test samples identified as a certain category, num n is the total number of frames of the test sample; acc th is the judgment threshold set, which is determined according to the performance of the fault diagnosis model a of the plunger pump fault audio in the validation set and meets the acc th <acc min (5);acc min is the accuracy of the lowest class in the validation set.
[0098] Corresponding to the above table, it can be found that acc min is 69.11%, set acc th After retesting and classification, the five types of test samples were all judged as new fault types. The test samples were combined into new tasks and re-entered into the MTL classification model for re-learning. Figure 4 , the test samples of faults 0-8 come from the validation set of known classes in the training phase, and faults 9-13 come from the test set of unknown classes in the training phase. It can be seen that even if the test samples are classes that have not been seen in the training phase, the fault diagnosis model of the plunger pump fault audio provided by the present invention can adaptively adjust the network structure and parameters. The fine-tuned network can identify new fault categories and still achieve an average fault diagnosis accuracy of 89.64%.
[0099] So far, the present invention provides a plunger pump fault diagnosis method based on audio signals, which realizes the whole process of plunger pump fault diagnosis based on plunger pump fault audio signals, and proves that the plunger pump fault diagnosis method can adaptively handle various situations, even including untrained fault categories.
[0100] The present invention provides a plunger pump fault diagnosis method based on audio signals, which includes collecting a plunger pump fault audio signal containing background noise, extracting the signal features of the plunger pump fault audio signal after filtering; using a frame cutting method to cut the plunger pump fault audio signal into multiple segments of plunger pump fault audio small sample data; constructing a plunger pump fault audio small sample data set; training to obtain a plunger pump fault audio fault diagnosis model and other step features. A plunger pump fault diagnosis method based on audio signals with the above step features converts the plunger pump audio fault diagnosis problem into an image classification problem through a Gammatone spectrogram, effectively improves the characterization capability of the plunger pump audio signal under strong noise interference, and can overcome the difficulty of weak plunger pump audio signal features. In addition, in order to solve the problem of lack of signal samples in the process of plunger pump audio fault diagnosis, meta-transfer learning is combined with plunger pump audio fault diagnosis, so that the plunger pump fault diagnosis method provided by the present invention can adaptively handle various situations, even including untrained fault categories.
[0101] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A plunger pump fault diagnosis method based on audio signals, It is characterized in that The steps include: Step 1: Collect the plunger pump fault audio signal containing background noise, and extract the signal characteristics of the plunger pump fault audio signal after filtering; Step 2: Using a frame cutting method, the plunger pump fault audio signal is cut into multiple segments of plunger pump fault audio small sample data; Step 3: Construct a small sample dataset of plunger pump failure audio; Step 4: Train and obtain a fault diagnosis model for the plunger pump fault audio.
2. A plunger pump fault diagnosis method based on audio signals according to claim 1, It is characterized in that Also included are: Step 5: Based on the fault diagnosis model of the plunger pump fault audio obtained in step 4, determine the fault classification result of the plunger pump fault audio.
3. A plunger pump fault diagnosis method based on audio signals according to claim 1, It is characterized in that The process of filtering the plunger pump fault audio signal containing background noise in step 1 can be specifically described as follows: The Gammatone filter is used to filter the plunger pump fault audio signal containing background noise. The impulse response of the Gammatone filter satisfies: h(t)=ct n-1 e -2πbt cos(2πf 0 t+φ),t>0 (1); In the formula, c is the proportional coefficient; n is the filter order; b is the attenuation speed; f 0 is the center frequency; φ is the phase.
4. A plunger pump fault diagnosis method based on audio signals according to claim 1, It is characterized in that The process of extracting the signal features of the plunger pump fault audio signal in step 1 can be specifically described as follows: Through short-time Fourier transform, the plunger pump fault audio signal is converted into a Gamma tone spectrogram simulating the auditory characteristics of the human cochlea; the Gamma tone spectrogram is used to reflect the signal characteristics of the plunger pump fault audio signal, which satisfies: Where ω is the normalized angular frequency, τ is the delay coefficient, the window function Ψ(t) uses a Hanning window with a length of 128, and displays the single-sided spectrum of the signal.
5. A plunger pump fault diagnosis method based on audio signals according to claim 1, It is characterized in that Each segment of the plunger pump fault audio small sample data cut in step 2 contains at least two reciprocating motions of the plunger pump.
6. A plunger pump fault diagnosis method based on audio signals according to claim 1, It is characterized in that The step three can be specifically described as: The plunger pump failure audio small sample data is divided into a training set Dt rain, a validation set Dval and a test set Dtes t; among them, except for the plunger pump failure audio small sample data divided into the training set Dt rain, the remaining plunger pump failure audio small sample data is allocated to the validation set Dval: test set Dtes t in a ratio of 6:
4.
7. A plunger pump fault diagnosis method based on audio signals according to claim 1, It is characterized in that The step 4 can be specifically described as: Select the basic network model according to the MTL method, and use the miniImageNet dataset to pre-train a DNN network as the feature extractor Θ; After pre-training on the miniImageNet dataset, a new classifier θ is trained based on a small sample dataset of plunger pump failure audio. Based on the feature extractor Θ and the classifier θ, a fault diagnosis model a of the plunger pump fault audio is trained; The validation set Dval is used to adjust and train the fault diagnosis model a of the plunger pump fault audio, and the fault diagnosis model b of the plunger pump fault audio is obtained; the network structure and parameters of the fault diagnosis model b of the plunger pump fault audio are kept synchronized with the fault diagnosis model a of the plunger pump fault audio throughout the process; Among them, the network model of type Res net-12 is selected as the basic network model, and the Res net residual network is selected as the pre-trained DNN network.
8. A plunger pump fault diagnosis method based on audio signals according to claim 2, It is characterized in that The step five can be specifically described as: The test sample is input into the fault diagnosis model a of the plunger pump fault audio, and the consistency of the classification results is used to determine whether the test sample belongs to the trained fault category; If the judgment result is that the test sample belongs to the trained fault category, the fault classification result is output; If the judgment result is that the test sample does not belong to the trained fault category, the test sample is regarded as an unseen class; According to the MTL method, each frame signal in the test sample is taken as a new class, assigned a new label number, and combined with other class samples to form a new task to update the fault diagnosis model a of the plunger pump fault audio and the fault diagnosis model b of the plunger pump fault audio; The test sample is input into the updated fault diagnosis model b of the plunger pump fault audio for retest classification, and the fault classification result is output.
9. A plunger pump fault diagnosis method based on audio signals according to claim 8, It is characterized in that The judgment criteria for the consistency of the classification results in step 5 can be specifically described as: in, num i is the number of test samples identified as a certain category, num n is the total number of test sample frames; acc th is the judgment threshold set, which is determined according to the performance of the fault diagnosis model a of the plunger pump fault audio in the validation set and meets the acc th <acc min (5);acc min is the accuracy of the lowest class in the validation set.
Citation Information
Cited By
Plunger pump fault online monitoring method and system based on multi-modal data
CN120626475A
