Engine vibration signal trend prediction method and device
By using the LSTM model to analyze vibration signal characteristics in aeroengines, extract and calculate prediction errors and reference thresholds, the problem of hysteresis in vibration fault detection in the existing technology is solved, and efficient fault prediction and early detection are achieved.
Patent Information
- Application Number
- CN202410885879.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-29
AI Technical Summary
The existing technology has hysteresis in the detection of aircraft engine vibration signal faults, and it is impossible to predict possible vibration faults in advance.
By obtaining the vibration signal to be predicted and the reference vibration signal of a preset length, extracting their features, and using the pre-trained long short-term memory network (LSTM) model to calculate the prediction error and reference threshold, it is determined whether the vibration signal to be predicted is a fault signal.
It significantly improves the accuracy and efficiency of engine fault detection, realizes the prediction of vibration signals in the future, provides data support for early detection of faults, and solves the problem of hysteresis in fault prediction.
Smart Images

Figure CN118861925A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of aviation technology, and in particular to a method and device for predicting the trend of engine vibration signals. Background Art
[0002] Aircraft engines are the power source of aircraft. With the development of aircraft engines, faults are also inevitable. With the development of science and technology, the structure of modern equipment is becoming more and more complex, and the functions are becoming more and more diverse. People's requirements for the normal, stable and safe operation of equipment are gradually increasing. In order to save the maintenance cost of aircraft engines, avoid economic losses and environmental pollution caused by failures, and make the use of aircraft engines more efficient and economical, the research on engine fault detection is of great significance.
[0003] Vibration signals are the basic information source for engine system status detection and diagnosis, and are the carrier of engine system operation information. Therefore, vibration signal analysis is an important part of engine system status detection and fault diagnosis. For example, as a vibration source, the vibration of the bearing may be caused by manufacturing errors, its own structure and faults, so early bearing fault detection is usually performed based on vibration signals. In the existing technology, when performing vibration fault detection, fault features are extracted from the vibration signal, and then the fault state is identified. The fault state can only be detected after the fault has occurred. There is a hysteresis, and it is impossible to predict possible vibration faults.
[0004] Therefore, it becomes an urgent problem for technical personnel in this field to provide a method and device for predicting the trend of engine vibration signals, so as to provide data support for early fault detection by predicting the trend of vibration signals and solve the problem of lag in fault prediction. Summary of the invention
[0005] To this end, an embodiment of the present invention provides an engine vibration signal trend prediction method and device, which are used to provide data support for early fault detection through the prediction of vibration signal trends, and solve the problem of lag in fault prediction.
[0006] In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
[0007] A method for predicting a trend of an engine vibration signal, the method comprising:
[0008] Acquire a vibration signal to be predicted and a reference vibration signal of a preset length, and extract features of the vibration signal to be predicted and the reference vibration signal respectively;
[0009] Inputting the extracted features of the reference vibration signal into a pre-trained prediction model to obtain a reference prediction error within the preset length output by the prediction model; inputting the extracted features of the vibration signal to be predicted into a pre-trained prediction model to obtain an error to be predicted within the preset length output by the prediction model;
[0010] Calculate the reference threshold within the preset length according to the reference prediction error, and calculate the mean error within the preset length according to the error to be predicted;
[0011] When the mean error is greater than the calculation reference threshold, it is determined that the vibration signal to be predicted is a fault signal.
[0012] In some embodiments, after determining that the vibration signal to be predicted is a fault signal, the method further includes:
[0013] A distribution diagram of the reference prediction error, the reference threshold, and the error to be predicted is generated.
[0014] In some embodiments, calculating the reference threshold within the preset length according to the reference prediction error specifically includes:
[0015] Calculating prediction error values of multiple target points within the preset length;
[0016] Calculate the mean absolute error of each of the prediction error values;
[0017] The reference threshold is calculated according to the mean absolute error.
[0018] In some embodiments, the expression of the reference threshold λ is:
[0019] λ=x M +3.5MAD / 0.6745
[0020] Among them, x M is the median of the mean absolute error, and MAD is the mean absolute error vs. x M The median of the absolute error, that is, median{|x i -x M |}.
[0021] In some embodiments, the training process of the prediction model specifically includes:
[0022] Acquire vibration signal samples, and calculate feature time series of the vibration signal samples based on pre-screened target features;
[0023] In the characteristic time series, samples are intercepted by sliding window interception to obtain a sample set;
[0024] Dividing the sample set into a training set and a test set;
[0025] Use the training set to train the pre-built LSTM network to obtain the initial model;
[0026] The initial model is optimized using the test set to obtain the prediction model.
[0027] In some embodiments, during the training process, target features are pre-screened, specifically including:
[0028] Get normal signals and known fault signals of the same number of columns;
[0029] Using a sliding window to move on a normal signal and a known fault signal with a preset step length to intercept a signal segment of a preset length;
[0030] Convert normal signals and known fault signals into feature matrices respectively;
[0031] The dynamic time warping algorithm is used to calculate the DTW scores of the two feature matrices column by column;
[0032] The features are sorted from high to low according to the scores to obtain a feature selection sequence, and the first feature in the feature selection sequence is used as the target feature.
[0033] In some embodiments, in the feature time series, samples are intercepted by sliding window interception to obtain a sample set, which specifically includes:
[0034] Based on the first m feature vectors in the sequence, the values of the next p feature vectors are predicted, the sliding window length is m+p, and the sliding step size is 1.
[0035] The present invention also provides an engine vibration signal trend prediction device, the device comprising:
[0036] A signal acquisition unit, used to acquire a vibration signal to be predicted and a reference vibration signal of a preset length, and extract features of the vibration signal to be predicted and the reference vibration signal respectively;
[0037] An error calculation unit is used to input the extracted features of the reference vibration signal into a pre-trained prediction model to obtain a reference prediction error within the preset length output by the prediction model; input the extracted features of the vibration signal to be predicted into a pre-trained prediction model to obtain an error to be predicted within the preset length output by the prediction model;
[0038] a mean error calculation unit, configured to calculate a reference threshold within the preset length according to the reference prediction error, and to calculate a mean error within the preset length according to the error to be predicted;
[0039] The result generating unit is used to determine that the vibration signal to be predicted is a fault signal when the mean error is greater than the calculation reference threshold.
[0040] The present invention also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.
[0041] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.
[0042] The engine vibration signal trend prediction method and device provided by the present invention obtains the vibration signal to be predicted and the reference vibration signal of a preset length, respectively extracts the features of the vibration signal to be predicted and the reference vibration signal; inputs the extracted features of the reference vibration signal into a pre-trained prediction model to obtain the reference prediction error within the preset length output by the prediction model; inputs the extracted features of the vibration signal to be predicted into a pre-trained prediction model to obtain the error to be predicted within the preset length output by the prediction model; calculates the reference threshold within the preset length according to the reference prediction error, and calculates the mean error within the preset length according to the error to be predicted; when the mean error is greater than the calculated reference threshold, determines that the vibration signal to be predicted is a fault signal. In this way, the method and device use the long short-term memory network (LSTM) to accurately analyze the engine vibration signal, has efficient feature extraction and dynamic fault diagnosis capabilities, significantly improves the accuracy and efficiency of engine fault detection, and predicts the vibration signal for a period of time in the future, thereby providing data support for early fault detection through the prediction of the vibration signal trend, and solves the problem of lag in fault prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0044] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0045] Figure 1 One of the flow charts of the engine vibration signal trend prediction method provided by the present invention;
[0046] Figure 2 This is the second flow chart of the engine vibration signal trend prediction method provided by the present invention;
[0047] Figure 3 The third flowchart of the engine vibration signal trend prediction method provided by the present invention;
[0048] Figure 4 This is a structural block diagram of the engine vibration signal trend prediction device provided by the present invention;
[0049] Figure 5 This is a structural block diagram of a computer device provided by the present invention. DETAILED DESCRIPTION
[0050] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] Traditional fault detection methods focus on extracting fault features from vibration signals and then identifying fault states. However, with the continuous increase in data size and the continuous development of machine learning and deep learning, the trend prediction of signals has gradually received attention. Most of the faults in mechanical equipment are time-progressive, and their fault development often undergoes the evolution of occurrence, aggravation, and then deterioration. Observations and statistics show that most of the faults of large rotating equipment, including aircraft engines, show time dependence, so they are predictable faults that can be predicted in advance and their trends can be judged. At the same time, in a typical industrial system, abnormal phenomena are usually rare, and capturing abnormalities by predicting normal signals is more applicable to reality. If a scientific fault research and prediction method can be adopted, the law of faults can be revealed and the development and changes of faults can be predicted, which will help reduce equipment failures and avoid secondary accidents.
[0052] In view of this, the present invention provides a method and device for predicting the trend of engine vibration signals. Generally speaking, the present invention focuses on the accurate fault diagnosis of engine vibration signals, and combines advanced artificial intelligence and machine learning technologies to develop an innovative vibration signal feature extraction and fault prediction algorithm. This algorithm mainly targets the complex vibration signals generated during the actual operation of the engine, and effectively distinguishes between normal and fault states through a series of precise data processing and analysis steps.
[0053] In the data processing stage, the algorithm first uses the sliding window technology to divide the continuous vibration signal into multiple independent samples, and then extracts multidimensional features from each sample, including 18 predefined feature types. By calculating the dynamic time warping (DTW) similarity of these features, the algorithm selects the features with the highest correlation with fault diagnosis, thereby enhancing the accuracy of diagnosis.
[0054] Next, a time series trend prediction model is constructed using a long short-term memory network (LSTM). The model is trained based on the characteristic sequence of normal signals and can accurately predict the future trend of vibration signals. By comparing the model prediction values with the actual observation values, the algorithm can effectively distinguish normal signals from fault signals.
[0055] The algorithm also includes an innovative fault judgment mechanism. By calculating the modified Z-score of the model prediction error and setting a judgment threshold based on the data distribution characteristics, the algorithm can accurately determine whether the signal is abnormal. In the experiment, vibration signal data under multiple different working conditions were used for testing, which proved that the algorithm can effectively control the overall prediction error at a low level while maintaining high robustness.
[0056] Combine the following Figure 1-Figure 3 , the engine vibration signal trend prediction method provided by the present invention is introduced in detail.
[0057] Please refer to Figure 1 , Figure 1 This is one of the flow charts of the engine vibration signal trend prediction method provided by the present invention.
[0058] In a specific embodiment, the engine vibration signal trend prediction method provided by the present invention comprises the following steps:
[0059] S110: Acquire a vibration signal to be predicted and a reference vibration signal of a preset length, and extract features of the vibration signal to be predicted and the reference vibration signal respectively;
[0060] S120: Inputting the extracted features of the reference vibration signal into a pre-trained prediction model to obtain a reference prediction error within the preset length output by the prediction model; inputting the extracted features of the vibration signal to be predicted into a pre-trained prediction model to obtain an error to be predicted within the preset length output by the prediction model;
[0061] S130: Calculating a reference threshold within the preset length according to the reference prediction error, and calculating a mean error within the preset length according to the error to be predicted;
[0062] S140: When the mean error is greater than the calculation reference threshold, determine that the vibration signal to be predicted is a fault signal.
[0063] S150: Generate a distribution diagram of the reference prediction error, the reference threshold, and the error to be predicted.
[0064] In actual usage scenarios, for an unknown signal, a signal sample set is obtained through a sliding window, and then a feature time series is obtained through feature extraction. The feature time series samples are obtained through a sliding window again, input into the prediction model, and the MAE of the predicted value is calculated; each sample will get an MAE, and the mean is taken as the measurement indicator. If the indicator is greater than the benchmark threshold, the unknown signal is judged to be faulty, otherwise it is normal.
[0065] In some embodiments, calculating the reference threshold within the preset length according to the reference prediction error specifically includes:
[0066] Calculating prediction error values of multiple target points within the preset length;
[0067] Calculate the mean absolute error of each of the prediction error values;
[0068] The reference threshold is calculated according to the mean absolute error, and the expression of the reference threshold λ is:
[0069] λ=x M +3.5MAD / 0.6745
[0070] Among them, x M is the median of the mean absolute error, and MAD is the mean absolute error vs. x M The median of the absolute error, that is, median{|x i -x M |}.
[0071] For example, when making predictions on new data, Figure 2As shown in Figure 1, firstly, the process of “sliding window interception-feature extraction-sliding window interception-input LSTM” is applied to the normal signal to obtain a series of prediction errors (measured by MAE); using the series of MAEs calculated from the normal signal, the threshold λ=x is calculated. M +3.5MAD / 0.6745, where x M is the median of the mean absolute error, and MAD is the mean absolute error vs. x M The median of the absolute error, that is, median{|x i -x M |}; Import the unknown signal, for example, in .csv format, the number of columns should be consistent with the normal signal imported previously, both of which are channels; Apply the process of "sliding window interception-feature extraction-sliding window interception-input LSTM" on the unknown signal to obtain a series of MAEs, calculate their mean, and record it as MAE 故障 ;If MAE 故障 >λ, the unknown signal is judged to be faulty, otherwise it is normal; finally, the normal signal MAE, threshold, and MAE are plotted. 故障 Distribution graph to visualize the results.
[0072] In principle, based on the trained prediction model, for any section of the original signal, a signal sample set is obtained through a sliding window, and then a feature time series is obtained through feature extraction, and a feature time series sample is obtained through a sliding window again. After input into the model, the error score between the true value and the output of the model, i.e., the predicted value, can be calculated. In this embodiment, the mean absolute error MAE is used as a measure of the error score. For each sample, the predicted value and the true value are both arrays of p rows and channel columns. An MAE is calculated, and a series of feature sequence samples extracted from normal signals are input into the prediction model to obtain multiple MAEs, which are all instances of the "normal signal MAE distribution". For an unknown signal, if the calculated MAE belongs to the "normal signal MAE distribution", then the signal is normal, otherwise it is a fault, and the MAE of the faulty signal must be larger than the MAE of the normal signal. Therefore, fault judgment is transformed into a hypothesis testing problem. Let the null hypothesis H 0 :The MAE of the unknown signal belongs to the "normal signal MAE distribution". If we are sure to reject the null hypothesis, we will judge the unknown signal as a fault. Otherwise, it is normal. We hope to find a suitable statistic as the threshold. When the MAE of the unknown signal is greater than this threshold, we will reject the null hypothesis. For the normal distribution, μ+3σ is usually used as the standard for testing outliers. However, experiments show that the normal signal MAE does not obey the normal distribution. Among them, H 0 It is the notation for the null hypothesis in hypothesis testing; MAE is the abbreviation for mean absolute error; for skewed distributions, there are the following strategies:
[0073] 1. Take the logarithm to make the data normally distributed;
[0074] 2. Adopting a modified Z-score;
[0075] 3. Use p-quantile;
[0076] 4. Use box plot.
[0077] After experimental verification, the modified Z-score has the best effect, and its calculation formula is: where x M is the median of the known data, and MAD is the difference between the known data and x M The median of the absolute error, that is, median{|x i -x M |}, if the score Z calculated for data point x>3.5, then x is considered an outlier. Thus, the threshold λ=x is calculated. M +3.5MAD / 0.6745, if x>λ, x is considered abnormal.
[0078] A series of characteristic sequence samples extracted from normal signals are input into the prediction model to obtain multiple MAEs. They are all examples in the "normal signal MAE distribution". Based on these MAEs, the threshold λ=x is calculated. M +3.5MAD / 0.6745. Extract characteristic sequence samples from unknown signals and input them into the model to obtain MAE 故障 , if MAE 故障 >λ, the unknown signal is considered abnormal.
[0079] In some embodiments, the training process of the prediction model is as follows: Figure 3 As shown, the specific steps include:
[0080] S310: Obtain vibration signal samples, and calculate the feature time series of the vibration signal samples based on the pre-screened target features; in actual use scenarios, first use a sliding window to extract signal samples from the original signal, and for each sample, obtain a signal sample set through the sliding window, then obtain a feature time series through feature extraction, and obtain feature time series samples through the sliding window again, and use the feature time series samples to train the LSTM time series prediction network. For normal signals, the sliding window intercepts samples, and then only calculates the screened features to obtain the feature time series.
[0081] S320: In the feature time series, samples are intercepted by sliding window interception to obtain a sample set; the values of the next p feature vectors are predicted based on the first m feature vectors in the sequence, the sliding window length is m+p, and the sliding step is 1. For the feature time series, the sliding window intercepts samples to obtain a sample set for training the LSTM prediction model. The LSTM model aims to predict the values of the next p points (feature vectors) based on the first m points (feature vectors) in the sequence, so the sliding window length is set to fsublen=m+p. The sliding step is still 1, and the training data set is required to contain at least fpiece samples, so the length of the feature time series piece must be guaranteed to be greater than or equal to fsublen+fpiece-1. Each feature sequence sample is a matrix with fsublen rows and channel columns (if two features are selected, it is channel×2 columns).
[0082] S330: Divide the sample set into a training set and a test set;
[0083] S340: train the pre-built LSTM network using the training set to obtain an initial model;
[0084] S350: Optimizing the initial model using the test set to obtain the prediction model, and saving the prediction model.
[0085] In a specific usage scenario, during the process of establishing a prediction model, it is assumed that the only feature selected is the mean "Mean", and then a feature sequence sample is constructed for training the model. The sliding window is applied again to extract the feature sequence sample matrix for training the LSTM prediction model from the feature matrix of the normal signal. The LSTM model aims to predict the values of the next p points (feature vectors) based on the first m points (feature vectors) in the sequence, so the sliding window length is set to fsublen=m+p. The sliding step size is still 1. The training data set is required to contain at least fpiece samples, so the length piece of the feature time series must be greater than or equal to fsublen+fpiece-1; each feature sequence sample is a matrix of fsublen rows and channel columns (if two features are selected, it is channel×2 columns), the first m rows and channel columns are used as the input of the sample, and the last p rows and channel columns are used as the output. A total of fpiece samples are used to train the time series prediction model. In this embodiment, a relatively simple LSTM layer + fully connected layer network is used.
[0086] In some embodiments, during the training process, target features are pre-screened, specifically including:
[0087] Get the normal signal and known fault signal with the same number of columns; specifically, import the normal signal and known fault signal in .csv format. The number of columns should be consistent, which is the number of channels.
[0088] Use a sliding window to move on normal signals and known fault signals with a preset step length to intercept signal segments of preset length; for example, use a sliding window of length sublen to move on the original signal with a step length of step=1, and at most N-sublen+1 signal segments can be taken out from the original signal, and the number to be taken is set to piece; each signal segment is a two-dimensional array of sublen×channel. All signal segments form a three-dimensional array of piece×sublen×channel.
[0089] The dynamic time warping algorithm is used to calculate the DTW scores of the two feature matrices column by column; when evaluating signal failures, prediction accuracy is crucial. Therefore, the selected features should have this characteristic: the feature sequences extracted from the fault signal and the normal signal should show large differences. Following this principle, the dynamic time warping (DTW) algorithm is used to measure the similarity between feature sequences, and features with high DTW scores are selected; that is, the normal signal and the known fault signal are converted into feature matrices respectively; each channel of each signal segment can calculate channel×18 features, that is, each signal segment matrix produces a feature vector with a dimension of channel×18. Therefore, each original signal (N rows, channel columns) is converted into a feature time series (piece rows, channel×18 columns) Step 1-4: The dynamic time warping (DTW) algorithm is used to calculate the DTW scores of the two feature matrices column by column. It is worth noting that for a certain feature (such as mean), since a sequence is calculated on each channel (assuming there are three channels, there are chn1_Mean, chn2_Mean, chn3_Mean), each channel has a corresponding DTW score, and the sum of the scores of each channel is taken as the final score of this feature.
[0090] The features are sorted from high to low by scores to obtain a feature selection sequence, and the first feature in the feature selection sequence is used as the target feature; the features are sorted from high to low by scores to obtain a feature selection order, and the first feature is selected by default.
[0091] In a specific usage scenario, when using a sliding window to convert a signal into multiple samples, first assume that the original signal is represented as {x 1 ,x 2 ,...,x N}, where x iis a vector with dimension channel (number of channels). It is represented as a two-dimensional array of N×channel in the program. It needs to be converted into multiple signal segments, and a feature vector is calculated for each signal segment. A sliding window with a length of sublen (sub-signal length) is used to intercept the original signal in sequence. In order to obtain as many samples as possible, the moving step of the window is set to 1. In this way, at most N-sublen+1 signal segments can be taken from the original signal, and the number to be taken is set to piece (number of slices). The length of each signal segment is sublen, and the kth sample (signal segment) is represented by {x k ,x k+1 ,...,x k+sublen-1}, which is a two-dimensional array of sublen×channel in the program. All signal segments form a three-dimensional array of piece×sublen×channel.
[0092] In the above scenario, 18 available features are preset when extracting and filtering features. Since the actual signal acquisition involves multiple measurement points, the data of each measurement point constitutes a signal channel. Therefore, in actual processing, features should be extracted separately for each channel of the signal, and the dimension of the final feature time series is the product of the number of channels and the number of features of the original signal. After the input signal is converted into multiple signal segments using a sliding window, each channel of each signal segment can calculate channel×18 features, that is, each signal segment matrix generates a feature vector with a dimension of channel×18. Therefore, each original signal (N rows, channel columns) is converted into a feature time series (piece rows, channel×18 columns). If the 18-dimensional time series is used as a prediction object, the model will be difficult to converge, so we hope to filter out some features for use. Since the goal is to reflect whether there is a fault through the prediction accuracy, we should hope that the feature time series of the normal signal and the time series of the fault signal are very different. Therefore, for each feature extracted from the normal signal and the fault signal, the similarity of the corresponding features is calculated one by one, and the features with small similarity are preferred. In similarity selection, the dynamic time warping (DTW) algorithm is used to calculate the DTW scores of the two feature matrices column by column. It is worth noting that for a certain feature (such as the mean), since a sequence is calculated on each channel (assuming there are three channels, there are chn1_Mean, chn2_Mean, chn3_Mean), each channel has a corresponding DTW score, and we take the sum of the scores of each channel as the final score of this feature. The features are sorted from high to low by score, and the order of feature selection is obtained. Generally speaking, selecting the first feature is sufficient to distinguish normal from fault signals.
[0093] In the above specific implementation, the engine vibration signal trend prediction method provided by the present invention, by obtaining the vibration signal to be predicted and the reference vibration signal of the preset length, respectively extracting the features of the vibration signal to be predicted and the reference vibration signal; inputting the extracted features of the reference vibration signal into the pre-trained prediction model to obtain the reference prediction error within the preset length output by the prediction model; inputting the extracted features of the vibration signal to be predicted into the pre-trained prediction model to obtain the error to be predicted within the preset length output by the prediction model; calculating the reference threshold within the preset length according to the reference prediction error, and calculating the mean error within the preset length according to the error to be predicted; when the mean error is greater than the calculated reference threshold, determining that the vibration signal to be predicted is a fault signal. In this way, the method uses the long short-term memory network (LSTM) to accurately analyze the engine vibration signal, has efficient feature extraction and dynamic fault diagnosis capabilities, significantly improves the accuracy and efficiency of engine fault detection, and predicts the vibration signal for a period of time in the future, thereby providing data support for early fault detection through the prediction of the vibration signal trend, and solves the problem of lag in fault prediction.
[0094] In addition to the above method, the present invention also provides an engine vibration signal trend prediction device, such as Figure 4 As shown, the device comprises:
[0095] The signal acquisition unit 410 is used to acquire the vibration signal to be predicted and the reference vibration signal of a preset length, and extract the features of the vibration signal to be predicted and the reference vibration signal respectively;
[0096] The error calculation unit 420 is used to input the extracted features of the reference vibration signal into a pre-trained prediction model to obtain a reference prediction error within the preset length output by the prediction model; input the extracted features of the vibration signal to be predicted into a pre-trained prediction model to obtain an error to be predicted within the preset length output by the prediction model;
[0097] A mean error calculation unit 430, configured to calculate a reference threshold within the preset length according to the reference prediction error, and calculate a mean error within the preset length according to the error to be predicted;
[0098] The result generating unit 440 is configured to determine that the vibration signal to be predicted is a fault signal when the mean error is greater than the calculation reference threshold.
[0099] In some embodiments, after determining that the vibration signal to be predicted is a fault signal, the method further includes:
[0100] A distribution diagram of the reference prediction error, the reference threshold, and the error to be predicted is generated.
[0101] In some embodiments, calculating the reference threshold within the preset length according to the reference prediction error specifically includes:
[0102] Calculating prediction error values of multiple target points within the preset length;
[0103] Calculate the mean absolute error of each of the prediction error values;
[0104] The reference threshold is calculated according to the mean absolute error.
[0105] In some embodiments, the expression of the reference threshold λ is:
[0106] λ=x M +3.5MAD / 0.6745
[0107] Among them, x M is the median of the mean absolute error, and MAD is the mean absolute error vs. x M The median of the absolute error, that is, median{|x i -x M |}.
[0108] In some embodiments, the training process of the prediction model specifically includes:
[0109] Acquire vibration signal samples, and calculate feature time series of the vibration signal samples based on pre-screened target features;
[0110] In the characteristic time series, samples are intercepted by sliding window interception to obtain a sample set;
[0111] Dividing the sample set into a training set and a test set;
[0112] Use the training set to train the pre-built LSTM network to obtain the initial model;
[0113] The initial model is optimized using the test set to obtain the prediction model.
[0114] In some embodiments, during the training process, target features are pre-screened, specifically including:
[0115] Get normal signals and known fault signals of the same number of columns;
[0116] Using a sliding window to move on a normal signal and a known fault signal with a preset step length to intercept a signal segment of a preset length;
[0117] Convert normal signals and known fault signals into feature matrices respectively;
[0118] The dynamic time warping algorithm is used to calculate the DTW scores of the two feature matrices column by column;
[0119] The features are sorted from high to low according to the scores to obtain a feature selection sequence, and the first feature in the feature selection sequence is used as the target feature.
[0120] In some embodiments, in the feature time series, samples are intercepted by sliding window interception to obtain a sample set, which specifically includes:
[0121] Based on the first m feature vectors in the sequence, the values of the next p feature vectors are predicted, the sliding window length is m+p, and the sliding step size is 1.
[0122] In the above specific implementation, the engine vibration signal trend prediction device provided by the present invention obtains the vibration signal to be predicted and the reference vibration signal of a preset length, respectively extracts the features of the vibration signal to be predicted and the reference vibration signal; inputs the extracted features of the reference vibration signal into a pre-trained prediction model to obtain the reference prediction error within the preset length output by the prediction model; inputs the extracted features of the vibration signal to be predicted into a pre-trained prediction model to obtain the error to be predicted within the preset length output by the prediction model; calculates the reference threshold within the preset length according to the reference prediction error, and calculates the mean error within the preset length according to the error to be predicted; when the mean error is greater than the calculated reference threshold, the vibration signal to be predicted is determined to be a fault signal. In this way, the device uses a long short-term memory network (LSTM) to accurately analyze engine vibration signals, has efficient feature extraction and dynamic fault diagnosis capabilities, significantly improves the accuracy and efficiency of engine fault detection, and predicts vibration signals for a period of time in the future, thereby providing data support for early fault detection through the prediction of vibration signal trends, and solves the problem of lag in fault prediction.
[0123] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory and a network interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a model prediction. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The model prediction of the computer device is used to store static information and dynamic information data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps in the above method embodiment are implemented.
[0124] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0125] Corresponding to the above embodiment, the embodiment of the present invention further provides a computer storage medium, which contains one or more program instructions, wherein the one or more program instructions are used to execute the above method.
[0126] The present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the above method.
[0127] In the embodiment of the present invention, the processor may be an integrated circuit chip having the ability to process signals. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0128] The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The processor reads the information in the storage medium and completes the steps of the above method in combination with its hardware.
[0129] The storage medium may be a memory, which may be, for example, a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.
[0130] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0131] The volatile memory may be a random access memory (RAM) which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DRRAM).
[0132] The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0133] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention can be implemented using a combination of hardware and software. When software is used, the corresponding functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.
[0134] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for predicting engine vibration signal trend, It is characterized in that The method comprises: Acquire a vibration signal to be predicted and a reference vibration signal of a preset length, and extract features of the vibration signal to be predicted and the reference vibration signal respectively; Inputting the extracted features of the reference vibration signal into a pre-trained prediction model to obtain a reference prediction error within the preset length output by the prediction model; inputting the extracted features of the vibration signal to be predicted into a pre-trained prediction model to obtain an error to be predicted within the preset length output by the prediction model; Calculate the reference threshold within the preset length according to the reference prediction error, and calculate the mean error within the preset length according to the error to be predicted; When the mean error is greater than the calculation reference threshold, it is determined that the vibration signal to be predicted is a fault signal.
2. The engine vibration signal trend prediction method according to claim 1, It is characterized in that After determining that the vibration signal to be predicted is a fault signal, the method further includes: A distribution diagram of the reference prediction error, the reference threshold, and the error to be predicted is generated.
3. The engine vibration signal trend prediction method according to claim 2, It is characterized in that Calculating the reference threshold within the preset length according to the reference prediction error specifically includes: Calculating prediction error values of multiple target points within the preset length; Calculate the mean absolute error of each of the prediction error values; The reference threshold is calculated according to the mean absolute error.
4. The engine vibration signal trend prediction method according to claim 3, It is characterized in that The expression of the reference threshold λ is: λ=x M +3.5MAD / 0.6745 Among them, x M is the median of the mean absolute error, and MAD is the mean absolute error vs. x M The median of the absolute error, that is, median{|x i -x M |}.
5. The engine vibration signal trend prediction method according to claim 1, It is characterized in that The training process of the prediction model specifically includes: Acquire vibration signal samples, and calculate feature time series of the vibration signal samples based on pre-screened target features; In the characteristic time series, samples are intercepted by sliding window interception to obtain a sample set; Dividing the sample set into a training set and a test set; Use the training set to train the pre-built LSTM network to obtain the initial model; The initial model is optimized using the test set to obtain the prediction model.
6. The engine vibration signal trend prediction method according to claim 5, It is characterized in that During the training process, target features are pre-screened, including: Get normal signals and known fault signals of the same number of columns; Using a sliding window to move on a normal signal and a known fault signal with a preset step length to intercept a signal segment of a preset length; Convert normal signals and known fault signals into feature matrices respectively; The dynamic time warping algorithm is used to calculate the DTW scores of the two feature matrices column by column; The features are sorted from high to low according to the scores to obtain a feature selection sequence, and the first feature in the feature selection sequence is used as the target feature.
7. The engine vibration signal trend prediction method according to claim 1, It is characterized in that In the characteristic time series, samples are intercepted by sliding window interception to obtain a sample set, which specifically includes: Based on the first m feature vectors in the sequence, the values of the next p feature vectors are predicted, the sliding window length is m+p, and the sliding step size is 1.
8. An engine vibration signal trend prediction device, It is characterized in that The device comprises: A signal acquisition unit, used to acquire a vibration signal to be predicted and a reference vibration signal of a preset length, and extract features of the vibration signal to be predicted and the reference vibration signal respectively; An error calculation unit is used to input the extracted features of the reference vibration signal into a pre-trained prediction model to obtain a reference prediction error within the preset length output by the prediction model; input the extracted features of the vibration signal to be predicted into a pre-trained prediction model to obtain an error to be predicted within the preset length output by the prediction model; a mean error calculation unit, configured to calculate a reference threshold within the preset length according to the reference prediction error, and to calculate a mean error within the preset length according to the error to be predicted; The result generating unit is used to determine that the vibration signal to be predicted is a fault signal when the mean error is greater than the calculation reference threshold.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
