Random forest classification machine pump fault diagnosis method and device

文档序号:8070 发布日期:2021-09-17 浏览:51次 中文

1. A method for diagnosing the fault of a pump classified by random forests is characterized by comprising the following steps:

acquiring Z-axis vibration signal components of the pump in a fault state and a normal state;

preprocessing the Z-axis vibration component to obtain a frequency domain signal;

training the frequency domain signals by adopting a random forest method, and establishing a relation between the frequency domain signals and a fault state to obtain a fault diagnosis model;

and inputting the frequency domain signal of the pump to be diagnosed into the fault diagnosis model, and judging the fault state of the pump.

2. The method of claim 1, wherein the fault condition of the pump comprises at least: the rotor unbalance fault state, the rotor misalignment fault state, the ball fault state, the bearing fault state, the base looseness fault state, the coupling fault state and the normal state.

3. The method of claim 1, wherein preprocessing the acquired Z-axis vibration signal component to obtain a frequency domain signal comprises:

carrying out fast Fourier transform on the Z-axis vibration signal component to obtain a frequency domain oscillogram;

and calculating 0.5 frequency multiplication amplitude, 1 frequency multiplication amplitude, 1.5 frequency multiplication amplitude, 2 frequency multiplication amplitude, 2.5 frequency multiplication amplitude, 3 frequency multiplication amplitude, 3.5 frequency multiplication amplitude, 4 frequency multiplication amplitude, kurtosis, skewness and total vibration value in the frequency domain oscillogram, and taking the calculated values together as frequency domain signals.

4. The method of claim 1, wherein training the frequency domain signal with a random forest to establish a relationship between a Z-axis vibration signal component and a fault condition to obtain a fault diagnosis model comprises:

the random forest is composed of a plurality of cart classification trees, each node selects a Gini index to select the optimal characteristics and corresponding values for segmentation, and for a frequency domain signal D, the definition of the Gini coefficient isWhere K is the various divisions of the tree, CkRepresents a set of samples belonging to class k in the frequency domain signal D;

and (3) dividing the frequency domain signal according to the characteristic A, wherein the Gini index of the divided sample set is as follows:

d1 and D2 are subsets of the data set after segmentation, and the characteristic A is used as an optimal partition scheme of the cart tree by minimizing the Kiney index;

constructing different training sets to increase the difference between the classification models so as to improve the sequence of the combined classification models, and then forming a multi-classification model system by using the sequence; and under the condition of giving a Z-axis vibration signal component, voting is carried out on each decision tree classification model to determine a final fault state, so that a fault diagnosis model is obtained.

5. The utility model provides a categorised machine pump fault diagnosis device of random forest which characterized in that includes:

the acquisition module is used for acquiring Z-axis vibration signal components in a fault state and a normal state of the pump;

the preprocessing module is used for preprocessing the Z-axis vibration component to obtain a frequency domain signal;

the modeling module is used for training the frequency domain signals by adopting a random forest method, and establishing a relation between the frequency domain signals and a fault state to obtain a fault diagnosis model;

and the diagnosis module is used for inputting the frequency domain signal of the pump to be diagnosed into the fault diagnosis model and judging the fault state of the pump.

6. The apparatus of claim 5, wherein the fault condition of the pump comprises at least: the rotor unbalance fault state, the rotor misalignment fault state, the ball fault state, the bearing fault state, the base looseness fault state, the coupling fault state and the normal state.

7. The apparatus of claim 5, wherein the pre-processing of the acquired Z-axis vibration signal component to obtain a frequency domain signal comprises:

carrying out fast Fourier transform on the Z-axis vibration signal component to obtain a frequency domain oscillogram;

and calculating 0.5 frequency multiplication amplitude, 1 frequency multiplication amplitude, 1.5 frequency multiplication amplitude, 2 frequency multiplication amplitude, 2.5 frequency multiplication amplitude, 3 frequency multiplication amplitude, 3.5 frequency multiplication amplitude, 4 frequency multiplication amplitude, kurtosis, skewness and total vibration value in the frequency domain oscillogram, and taking the calculated values together as frequency domain signals.

8. The apparatus of claim 5, wherein the frequency domain signal is trained using a random forest, and a relationship between a Z-axis vibration signal component and a fault state is established to obtain a fault diagnosis model, comprising:

the random forest is composed of a plurality of cart classification trees, each node selects a Gini index to select the optimal characteristics and corresponding values for segmentation, and for a frequency domain signal D, the definition of the Gini coefficient isWhere K is the various divisions of the tree, CkRepresents a set of samples belonging to class k in the frequency domain signal D;

and (3) dividing the frequency domain signal according to the characteristic A, wherein the Gini index of the divided sample set is as follows:

d1 and D2 are subsets of the data set after segmentation, and the characteristic A is used as an optimal partition scheme of the cart tree by minimizing the Kiney index;

constructing different training sets to increase the difference between the classification models so as to improve the sequence of the combined classification models, and then forming a multi-classification model system by using the sequence; and under the condition of giving a Z-axis vibration signal component, voting is carried out on each decision tree classification model to determine a final fault state, so that a fault diagnosis model is obtained.

9. An electronic device, comprising:

one or more processors;

a memory for storing one or more programs;

when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.

10. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 4.

Background

Device status monitoring and fault diagnosis techniques were initiated in the 60's of the 20 th century. Under the large background that the industrial production is gradually updated and automated, the research and development aiming at the rotary mechanical failure diagnosis technology is abnormally active and rapidly developed.

The equipment investment is large in process industry, the continuous production process is long, the loss caused by the fault of mechanical equipment is large, the state evaluation of the fault equipment is effectively, quickly and accurately realized by means of fault diagnosis, the abnormal condition of the equipment is found as early as possible, and the abnormal condition or the fault of the equipment is timely and effectively processed.

The existing industrial water pump fault diagnosis technology is based on data signal acquisition of various vibration temperature sensors in different communication modes, utilizes a signal analysis theory to obtain various characteristic vectors of a system in a deep level in a time domain and a frequency domain, and utilizes the relation between the characteristic vectors and a system fault source to judge the position of the fault source, so that fault early warning and fault diagnosis are carried out.

In recent years, artificial intelligence research is deepened, and an artificial intelligence method is applied to fault diagnosis.

The existing water pump fault diagnosis algorithm mainly utilizes a BP neural network to carry out nonlinear relation modeling of each operation characteristic value and fault type of the water pump so as to predict faults. The disadvantage is that sufficient learning samples are required to ensure the reliability of the diagnosis. When a complex system is diagnosed, the practicability of the neural network is often reduced due to the problems of excessively large network scale, too long learning training time and the like. When used in industrial fields, the feedback may not be timely or the diagnosis may not be accurate, so that the purpose cannot be achieved.

Disclosure of Invention

The embodiment of the invention aims to provide a machine pump diagnosis method and device based on random forest classification, and aims to solve the technical problem that quick and accurate diagnosis of machine pump faults cannot be realized in the related technology.

According to a first aspect of embodiments of the present application, there is provided a method for diagnosing a pump fault by random forest classification, including:

acquiring Z-axis vibration signal components of the pump in a fault state and a normal state;

preprocessing the Z-axis vibration component to obtain a frequency domain signal;

training the frequency domain signals by adopting a random forest method, and establishing a relation between the frequency domain signals and a fault state to obtain a fault diagnosis model;

and inputting the frequency domain signal of the pump to be diagnosed into the fault diagnosis model, and judging the fault state of the pump.

Further, the fault condition of the pump includes at least: the rotor unbalance fault state, the rotor misalignment fault state, the ball fault state, the bearing fault state, the base looseness fault state, the coupling fault state and the normal state.

Further, after preprocessing the acquired Z-axis vibration signal component, a frequency domain signal is obtained, which includes:

carrying out fast Fourier transform on the Z-axis vibration signal component to obtain a frequency domain oscillogram;

and calculating 0.5 frequency multiplication amplitude, 1 frequency multiplication amplitude, 1.5 frequency multiplication amplitude, 2 frequency multiplication amplitude, 2.5 frequency multiplication amplitude, 3 frequency multiplication amplitude, 3.5 frequency multiplication amplitude, 4 frequency multiplication amplitude, kurtosis, skewness and total vibration value in the frequency domain oscillogram, and taking the calculated values together as frequency domain signals.

Further, training the frequency domain signal by adopting a random forest, establishing a relation between a Z-axis vibration signal component and a fault state, and obtaining a fault diagnosis model, wherein the method comprises the following steps:

the random forest is composed of a plurality of cart classification trees, each node selects a Gini index to select the optimal characteristics and corresponding values for segmentation, and for a frequency domain signal D, the definition of the Gini coefficient isWhere K is the various divisions of the tree, CkRepresents a set of samples belonging to class k in the frequency domain signal D;

and (3) dividing the frequency domain signal according to the characteristic A, wherein the Gini index of the divided sample set is as follows:

d1 and D2 are subsets of the data set after segmentation, and the characteristic A is used as an optimal partition scheme of the cart tree by minimizing the Kiney index;

constructing different training sets to increase the difference between the classification models so as to improve the sequence of the combined classification models, and then forming a multi-classification model system by using the sequence; and under the condition of giving a Z-axis vibration signal component, voting is carried out on each decision tree classification model to determine a final fault state, so that a fault diagnosis model is obtained.

According to a second aspect of the embodiments of the present application, there is provided a machine pump fault diagnosis apparatus for random forest classification, including:

the acquisition module is used for acquiring Z-axis vibration signal components in a fault state and a normal state of the pump;

the preprocessing module is used for preprocessing the Z-axis vibration component to obtain a frequency domain signal;

the modeling module is used for training the frequency domain signals by adopting a random forest method, and establishing a relation between the frequency domain signals and a fault state to obtain a fault diagnosis model;

and the diagnosis module is used for inputting the frequency domain signal of the pump to be diagnosed into the fault diagnosis model and judging the fault state of the pump.

According to a third aspect of embodiments of the present application, there is provided an electronic apparatus, including: one or more processors; a memory for storing one or more programs; when executed by the one or more processors, cause the one or more processors to implement a method as described in the first aspect.

According to a fourth aspect of embodiments herein, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method according to the first aspect.

The technical scheme provided by the embodiment of the application can have the following beneficial effects:

according to the embodiments, the method and the device for diagnosing the machine pump fault are provided, the method comprises the steps of firstly obtaining Z-axis vibration signal components in a fault state and a normal state of the machine pump, then preprocessing the Z-axis vibration components to obtain frequency domain signals, then training the frequency domain signals by adopting a random forest method, and establishing a relation between the frequency domain signals and the fault state to obtain a fault diagnosis model; the method of random forest is adopted, the problem of low training speed by using a neural network method in the prior art is solved, and the training can be efficiently completed. The method has better robustness, overcomes the uncertainty of industrial field data acquisition during data processing, and can obtain a test set for diagnosis by utilizing source data processing with missing items and heavy items.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.

FIG. 1 is a flow diagram illustrating a method for machine pump diagnosis for random forest classification according to an exemplary embodiment.

FIG. 2 is a flow diagram illustrating random forest training resulting in a fault diagnosis model in accordance with an exemplary embodiment.

Fig. 3 is a schematic diagram illustrating a structure of a random forest classification pump diagnosis apparatus according to an exemplary embodiment.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

Fig. 1 is a flow chart illustrating a method for diagnosing a pump by random forest classification according to an exemplary embodiment, where the method is applied to a terminal and may include the following steps:

step S11, acquiring Z-axis vibration signal components of the pump in a fault state and a normal state;

step S12, preprocessing the Z-axis vibration component to obtain a frequency domain signal;

step S13, training the frequency domain signal by adopting a random forest method, establishing a relation between the frequency domain signal and a fault state, and obtaining a fault diagnosis model;

and step S14, inputting the frequency domain signal of the pump to be diagnosed into the fault diagnosis model, and judging the fault state of the pump.

According to the embodiment, the Z-axis vibration signal components of the pump in the fault state and the normal state are obtained firstly, then the Z-axis vibration components are preprocessed to obtain frequency domain signals, then the frequency domain signals are trained by adopting a random forest method, the relationship between the frequency domain signals and the fault state is established, a fault diagnosis model is obtained, the training can be efficiently completed, and the problem that the training speed is low by utilizing a neural network method in the prior art is solved; the method has better robustness, overcomes the uncertainty of industrial field data acquisition during data processing, and can obtain a test set for diagnosis by utilizing source data processing with missing items and heavy items.

In the specific implementation of the step S11, the Z-axis vibration signal components in the failure state and the normal state of the pump are obtained;

specifically, in the present embodiment, six of the most common fault conditions (rotor imbalance fault condition, rotor misalignment fault condition, ball fault condition, bearing fault condition, base loosening fault condition, coupling fault condition) and normal operating conditions were selected for simulation and data collection. The distance from the three sampling points to the fault occurrence position is different, the vibration acceleration in the Z-axis direction is acquired by the sensor, and the sampling rate is 3200 Hz. In this embodiment, data of three pump rotation speeds are collected: 1800rpm, 2400rpm, 3000rpm are all the commonly used rotational speeds in industrial field, can make the simulation result more accurate. Each fault condition and normal condition was collected for 500s at each speed. This embodiment collects enough data for the following data processing and training.

In the specific implementation of step S12, after the Z-axis vibration component is preprocessed, a frequency domain signal is obtained;

specifically, since the vibration signals obtained in step S11 are all time domain signals, in this embodiment, a frequency domain signal that can better represent the fault characteristics is obtained by using Fast Fourier Transform (FFT) and a series of calculations. Specifically, the step S12 includes:

carrying out fast Fourier transform on the Z-axis vibration signal component to obtain a frequency domain oscillogram; and calculating 0.5 frequency multiplication amplitude, 1 frequency multiplication amplitude, 1.5 frequency multiplication amplitude, 2 frequency multiplication amplitude, 2.5 frequency multiplication amplitude, 3 frequency multiplication amplitude, 3.5 frequency multiplication amplitude, 4 frequency multiplication amplitude, kurtosis, skewness and total vibration value in the frequency domain oscillogram, and taking the calculated values together as frequency domain signals.

Specifically, for every 1024 pairs of data, a spectrogram of 0-1600 Hz is obtained by FFT. Calculating spectral line values of 0.5X, 1.0X, 1.5X, 2.0X, 2.5X, 3.0X, 3.5X, 4.0X and >4.0X power frequency by taking 50Hz as power frequency;

if the first eight types of the spectral lines are directly calculated, only one spectral line is provided, the data value is very small, in order to ensure the accuracy, the sum of the spectral line values of 8 nearby spectral lines and the spectral line is calculated in the embodiment as the spectral line value of the spectral line, and the data are ensured to be in an order of magnitude;

and simultaneously, calculating a kurtosis value, a skewness value, a total vibration value 1 of the target spectral line and a total vibration value 2 of all spectral lines by using the spectrogram, wherein the four parameters and the 9 spectral line values are used as 13 parameter variables of the frequency domain signal.

In the specific implementation of the step S13, training the frequency domain signal by using a random forest method, and establishing a relationship between the frequency domain signal and a fault state to obtain a fault diagnosis model;

specifically, the random forest is composed of a plurality of cart classification trees, each node selects a kini index to select the optimal feature and the corresponding value to carry out segmentation, and for the frequency domain signal D, the definition of the kini coefficient is as followsWhere K is the various divisions of the tree, CkRepresents a set of samples belonging to class k in the frequency domain signal D;

and (3) dividing the frequency domain signal according to the characteristic A, wherein the Gini index of the divided sample set is as follows:

d1 and D2 are subsets of the data set after segmentation, and the characteristic A is used as an optimal partition scheme of the cart tree by minimizing the Kiney index;

constructing different training sets to increase the difference between the classification models so as to improve the sequence of the combined classification models, and then forming a multi-classification model system by using the sequence; and under the condition of giving a Z-axis vibration signal component, voting is carried out on each decision tree classification model to determine a final fault state, so that a fault diagnosis model is obtained.

More specifically, as shown in fig. 2, a frequency domain signal is used as a training set, training samples are randomly extracted from the frequency domain signal by using a windowing method by using a bagging method, and the extraction is performed to obtain a divided training set (the divided training sets are independent from each other, and elements may be repeated). Randomly extracting partial frequency domain signal characteristics as characteristics to be selected, determining test characteristics in the characteristics to be selected by utilizing GINI index, and judging whether to generate nodes and whether to stop growing the decision tree. And continuously repeating the steps until the decision tree meets the requirements, and generating a final random forest fault diagnosis model. By using the bagging method, high-dimensional data can be processed without feature selection.

In the specific implementation of step S14, the frequency domain signal of the pump to be diagnosed is input into the fault diagnosis model, and the fault state of the pump is determined.

Specifically, historical data of faults of the industrial field devices can be acquired on an industrial internet platform, fault states of some faults are fed back, and diagnosis of known real fault states can be carried out by using the data. Meanwhile, real-time data of some normally working equipment can be derived for diagnosis.

In this embodiment, a set of normal state pump data is derived according to historical failure data of three known pump fed back by platform staff.

No. 6 water pump-bearing fault state

No. 10 water pump-bearing fault state

2# combustion-supporting fan-coupling fault state

Circulating water pump-derived real-time data (Normal state)

In this embodiment, the data are sequentially subjected to data preprocessing and fault diagnosis, and the specific implementation steps are as follows:

the industrial field data is not identical to the laboratory bench data, and due to uncertainty of the industrial field, NULL phase (NULL) and repeated items (possibly sensor faults) exist in the data, so that data cleaning is required to be carried out firstly, and the data are deleted and deleted.

And after the processing is finished, installing the step of data preprocessing in the S12 to process data to obtain the frequency domain signal of the pump to be diagnosed.

Inputting the frequency domain signal of the pump to be diagnosed into the fault diagnosis model obtained in the step S13 for diagnosis, wherein the diagnosis result is as follows:

the embodiment verifies that the accuracy of the fault diagnosis model reaches more than 95%.

Corresponding to the embodiment of the method for diagnosing the pump fault based on random forest classification, the application also provides an embodiment of a device for diagnosing the pump fault based on random forest classification.

FIG. 3 is a block diagram illustrating a random forest classification pump fault diagnosis apparatus according to an exemplary embodiment. Referring to FIG. 3, the apparatus includes

The acquisition module 21 is used for acquiring Z-axis vibration signal components in a fault state and a normal state of the pump;

the preprocessing module 22 is configured to preprocess the Z-axis vibration component to obtain a frequency domain signal;

the modeling module 23 is configured to train the frequency domain signal by using a random forest method, establish a relationship between the frequency domain signal and a fault state, and obtain a fault diagnosis model;

and the diagnosis module 24 is configured to input the frequency domain signal of the pump to be diagnosed into the fault diagnosis model, and determine a fault state of the pump.

With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.

Correspondingly, the present application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when executed by the one or more processors, cause the one or more processors to implement a method of machine pump fault diagnosis for random forest classification as described above.

Accordingly, the present application also provides a computer readable storage medium having stored thereon computer instructions, wherein the instructions, when executed by a processor, implement the method for diagnosing a pump fault in random forest classification as described above.

Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.

It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种基于最大失效载荷的陶瓷基复合材料与高温合金混合连接结构沉头螺栓尺寸设计方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类