A real-time abnormality detection method, device, equipment and medium for aviation hydraulic pump station
By segmentally fitting and classifying the historical time series data of the aviation hydraulic pump station, an initial neural network model is constructed, which solves the problem of inability to quickly detect faults in the existing technology, achieves fast and accurate fault detection, and improves aircraft assembly production. efficiency.
Patent Information
- Application Number
- CN202211112811.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-09-13
AI Technical Summary
Existing technology cannot quickly detect failures in aviation hydraulic pump stations, resulting in low aircraft assembly production efficiency.
By obtaining the historical time series data of the aviation hydraulic pump station, performing segmented fitting and classification, building an initial neural network model, and generating a data prediction model, which is used to detect abnormal conditions of the pump station in real time.
It realizes the rapid and accurate detection of the fault location of the aviation hydraulic pump station, improves the aircraft assembly production efficiency and ensures the stable operation of the equipment.
Smart Images

Figure CN115526241B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field, and in particular to a real-time abnormality detection method, device, equipment and medium for an aviation hydraulic pump station. Background Art
[0002] Hydraulic pump stations are widely used in industrial manufacturing. Common hydraulic pump stations mainly include hydraulic oil pumps, control valves, actuators, hydraulic motors and auxiliary devices. In the field of aircraft manufacturing, hydraulic pump stations are an important special equipment in the aircraft assembly process. Their main function is to provide hydraulic energy for the testing of landing gear, speed brake retraction and extension during the aircraft assembly test process.
[0003] Since the aviation hydraulic pump station system has a complex structure and many components, and has high requirements for the working environment, the aviation hydraulic pump station has a high frequency of failure during use, and most of the failure conditions are sudden and accidental, and the failure conditions are difficult to predict. Once the hydraulic pump station fails during use, it may cause mission suspension, plan delay, etc., or even product damage or even operational safety accidents. Therefore, fault detection of aviation hydraulic pump stations is extremely important.
[0004] In the prior art, the equipment management personnel usually inspect and maintain the equipment regularly after professional technical training, or shut down the equipment to investigate and analyze the cause of the failure after a failure occurs. In this way, the failure of the aviation hydraulic pump station cannot be detected quickly, thus affecting the production efficiency of aircraft assembly. Summary of the invention
[0005] The main purpose of this application is to provide a real-time abnormality detection method, device, equipment and medium for an aviation hydraulic pump station, aiming to solve the technical problem in the prior art that the failure of an aviation hydraulic pump station cannot be detected quickly, thereby affecting the aircraft assembly production efficiency.
[0006] To achieve the above objectives, the first aspect of the present application provides a real-time abnormality detection method for an aviation hydraulic pump station, the method comprising:
[0007] Acquire historical time series data of a target aviation hydraulic pump station; wherein the historical time series data is used to characterize the performance of the target aviation hydraulic pump station;
[0008] Performing segmented fitting on the historical time series data to obtain segmentation points;
[0009] Based on the segmentation points, classifying the historical time series data after segmentation fitting to obtain a training set;
[0010] Based on the training set, the constructed initial neural network model is trained to obtain a data prediction model;
[0011] Based on the data prediction model, the real-time time series data of the target aviation hydraulic pump station is detected.
[0012] Optionally, performing segmented fitting on the historical time series data to obtain segmentation points includes:
[0013] Setting a segmentation threshold; wherein the segmentation threshold is a preset error sum of a certain segment of the historical time series data;
[0014] Construct piecewise fitting model;
[0015] Based on the segmentation threshold and the segmentation fitting model, segmentation fitting is performed on the historical time series data to obtain segmentation points.
[0016] Optionally, performing segmented fitting on the historical time series data based on the segmented threshold and the segmented fitting model to obtain segmented points includes:
[0017] When the sum of segmentation errors in the segmentation fitting model is greater than the segmentation threshold, a segmentation point is obtained.
[0018] Optionally, constructing a piecewise fitting model includes:
[0019] The piecewise fitting model is constructed through the following relationship:
[0020]
[0021] in, represents the historical time series data observation value at the i-th moment, represents the fitted linear function, J represents the sum of the segment errors in the segment fitting model, jf represents the end time of segment j, js represents the starting time of segment j, .
[0022] Optionally, the classifying the historical time series data after segmentation fitting based on the segmentation points to obtain a training set includes:
[0023] Segmenting the historical time series data based on the number of segmentation points;
[0024] Based on the working condition types of the historical time series data, the segmented historical time series data is divided into several categories;
[0025] Based on the historical time series data divided into several categories, a training set is obtained.
[0026] Optionally, the training of the constructed initial neural network model based on the training set to obtain a data prediction model includes:
[0027] Obtaining a training time step for each type of the historical time series data; wherein the training time step is the average density of each type of the historical time series data over a certain period of time;
[0028] Based on the BP algorithm, the training set and the training time step, the constructed initial neural network model is trained to obtain a data prediction model.
[0029] Optionally, obtaining a training set based on the historical time series data divided into several categories includes:
[0030] The initial neural network model is constructed through the following relationship:
[0031]
[0032]
[0033]
[0034]
[0035] in, represents the input data at time t, represents the hidden state at time t-1, represents the candidate hidden state at time t, represents the weight coefficient matrix, Indicates the weight corresponding to the updated gate at time t, Indicates that the weight corresponding to the gate is reset at time t, () represents the activation function, represents the hyperbolic tangent function.
[0036] Optionally, the detecting the real-time time series data of the target aviation hydraulic pump station based on the data prediction model includes:
[0037] Obtaining real-time time series data of the target aviation hydraulic pump station;
[0038] Preprocessing the real-time time series data of the target aviation hydraulic pump station;
[0039] Inputting the preprocessed real-time time series data of the target aviation hydraulic pump station into the data prediction model to obtain a predicted value of the target aviation hydraulic pump station;
[0040] Based on inverse normalization, obtaining an actual value of the target aviation hydraulic pump station;
[0041] Based on the predicted value and the actual value of the target aviation hydraulic pump station, the target aviation hydraulic station is detected in real time.
[0042] Optionally, the real-time detection of the target aviation hydraulic station based on the predicted value and the actual value of the target aviation hydraulic pump station includes:
[0043] Obtaining the working status of the target aviation hydraulic pump station;
[0044] Obtaining the standard deviation of each type of historical time series data;
[0045] Obtaining a judgment threshold based on the working state of the target aviation hydraulic pump station and the standard deviation of each type of the historical time series data;
[0046] If the absolute value of the difference between the predicted value and the actual value is greater than the judgment threshold, an abnormality exists in the target aviation hydraulic station.
[0047] Optionally, before the step of performing segmented fitting on the historical time series data to obtain segmentation points, the step further includes:
[0048] Cleaning the historical time series data of the target aviation hydraulic pump station to remove irrelevant historical time series data;
[0049] Normalizing the historical time series data of the cleaned target aviation hydraulic pump station;
[0050] The performing segmented fitting on the historical time series data to obtain segmentation points includes:
[0051] The normalized historical time series data is piecewise fitted to obtain the piecewise points.
[0052] In a second aspect, the present application provides a real-time abnormality detection device for an aviation hydraulic pump station, the device comprising:
[0053] An acquisition module is used to acquire historical time series data of a target aviation hydraulic pump station; wherein the historical time series data is used to characterize the performance of the target aviation hydraulic pump station; a first acquisition module is used to perform segmented fitting on the historical time series data to obtain segmentation points; a second acquisition module is used to classify the segmented fitting historical time series data based on the segmentation points to obtain a training set; a third acquisition module is used to train the constructed initial neural network model based on the training set to obtain a data prediction model; a detection module is used to detect the real-time time series data of the target aviation hydraulic pump station based on the data prediction model.
[0054] In a third aspect, the present application provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in the embodiment.
[0055] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the method described in the embodiment.
[0056] Through the above technical solution, the present application has at least the following beneficial effects:
[0057] The embodiment of the present application proposes a real-time abnormality detection method, device, equipment and medium for aviation hydraulic pump station. The method first obtains the historical time series data of the target aviation hydraulic pump station; wherein the historical time series data is used to characterize the performance of the target aviation hydraulic pump station; then the historical time series data of the target aviation hydraulic pump station is processed; then the historical time series data is segmented and fitted to obtain segmentation points; then based on the segmentation points, the segmented fitting historical time series data is classified to obtain a training set; then based on the training set, the constructed initial neural network model is trained to obtain a data prediction model; finally, based on the data prediction model, the real-time time series data of the target aviation hydraulic pump station is detected. That is, when it is necessary to determine whether the target aviation hydraulic pump has an abnormality, the historical time series data of the target aviation hydraulic pump is first obtained, and then the historical time series data is processed and segmented and fitted to obtain the number of segmentation points, and then the historical time series data is classified, and then the initial neural network model is constructed based on the classified historical time series data. Then, the constructed initial neural network model is trained through historical time series data, and a data prediction model that can predict the real-time data of the target aviation hydraulic pump station is obtained. Finally, after the real-time data of the target aviation hydraulic pump station is input into the data prediction model, the real-time data of the target aviation hydraulic pump station is detected. That is, the present application constructs a data prediction model that can predict or detect the real-time time series data of the target aviation hydraulic pump station based on the historical time series data of the target aviation hydraulic pump station. Since the historical time series data is segmented and classified when constructing the data prediction model, the accuracy of the constructed data prediction model is relatively high. When detecting the target aviation hydraulic pump station, it is only necessary to input the real-time time series data of the target flight hydraulic pump station into the data prediction model, and after making certain comparisons, it can be known whether the real-time time series data of the target aviation hydraulic pump station is abnormal. If the real-time data is detected to be abnormal, it means that the target aviation hydraulic pump is abnormal. In this way, under the premise of ensuring the accuracy of the data prediction model, it is possible to detect more quickly whether there is a fault in the aviation hydraulic pump station. Since the historical time series data is classified, the location of the target aviation hydraulic pump station fault can also be accurately known. Since the location of the target aviation pump station fault can be detected quickly and accurately, the staff can eliminate related faults more efficiently, thereby improving the production efficiency of aircraft assembly. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A schematic diagram of the computer device structure of the hardware operating environment involved in the embodiments of the present application;
[0059] Figure 2 A flowchart of a real-time abnormality detection method for an aviation hydraulic pump station according to an embodiment of the present application;
[0060] Figure 3 A flowchart of a specific execution method of step S20 of the present application;
[0061] Figure 4 A flowchart of a specific execution method of step S30 of the present application;
[0062] Figure 5 A schematic diagram of the structure of the initial neural network model provided in the embodiment of the present application;
[0063] Figure 6 A flowchart of a specific execution method of step S50 of the present application;
[0064] Figure 7 This is a schematic diagram of a real-time abnormality detection device for an aviation hydraulic pump station according to an embodiment of the present application.
[0065] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0066] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0067] Hydraulic pump stations are widely used in the industrial manufacturing industry. Common hydraulic pump stations mainly include hydraulic oil pumps, control valves, actuators, hydraulic motors and auxiliary devices. In the field of aircraft manufacturing, hydraulic pump stations are an important special equipment in the aircraft assembly process. Their main function is to provide hydraulic energy for the testing of landing gear, speed brake retraction and extension during the aircraft assembly test process. The assembly process is a key stage in the formation of the physical and electrical characteristics of the aircraft. The quality of the assembly directly affects the final performance of the aircraft. In order to ensure the stability, reliability and accuracy of the aircraft after delivery, the hydraulic pump station needs to be able to continuously and stably output high pressure in the working state.
[0068] Due to the complex structure and many components of the aviation hydraulic pump station system, as well as the high requirements for the working environment, the aviation hydraulic pump station has a high frequency of failure during use, and most of the failure conditions are sudden and accidental, and the failure conditions are difficult to predict. Once a hydraulic pump station fails during use, it may cause mission suspension, plan delay, etc., or even product damage or even an operational safety accident. In response to this problem, equipment managers usually inspect and maintain the equipment regularly after professional technical training, or shut down the equipment to investigate and analyze the cause of the failure after a failure occurs. Obviously, this method seriously affects the efficiency of aircraft assembly production. Therefore, according to the real-time data of equipment operation, improving the accuracy of real-time inspection of equipment operation abnormalities and other technical means, enhancing the real-time detection capability of aviation hydraulic pump station abnormalities is a key method to ensure the stable operation of equipment and improve the efficiency of equipment use.
[0069] The real-time anomaly detection technology of industrial equipment time series data mainly includes four parts: state temporal data acquisition, data preprocessing, data prediction and anomaly judgment. The data prediction method is the core of the real-time detection technology of equipment anomaly. Accurate analysis and prediction of time series data is the key to improving the accuracy of equipment anomaly detection. Commonly used real-time data prediction methods are mainly divided into two categories: one is supervised convolutional neural network, decision tree and support vector machine algorithms. The other is unsupervised autoregressive moving average (ARMA) and long short-term memory neural network (LSTM) algorithms. In the real-time anomaly detection model of time series data, the supervised time series data anomaly method needs to fully or partially label the data and make judgments by learning the difference between normal data and abnormal data. However, in practical applications, it is difficult and costly to label time series data in most cases, especially to obtain abnormal data in the complex structure of aviation hydraulic pump station system.
[0070] The real-time anomaly detection algorithm based on autoregressive moving average establishes a prediction model by learning the short-term correlation between time series data, and judges the anomaly of the prediction results according to the threshold, which can extract the short-term time series dependency in the data. The autoregressive moving average algorithm is not suitable for non-stable time series data. At the same time, the algorithm cannot capture the nonlinear relationship in the time series data, nor can it learn the long-term dependency in the time series data. The anomaly detection algorithm based on long short-term memory neural network establishes a prediction model by learning the long-term dependency between time series data, and judges the anomaly of the prediction results according to the threshold. Although the algorithm can learn the long-term dependency in the time series data, the detection time of the algorithm is relatively long, and the reconstruction error interval differentiation of normal data and abnormal data in the anomaly detection stage is not obvious enough, resulting in the detection accuracy and real-time performance in industrial applications cannot meet the requirements.
[0071] In summary, currently, the equipment management personnel usually inspect and maintain the equipment regularly after professional technical training, or shut down the equipment to investigate and analyze the cause of the failure after a failure occurs. In this way, the failure of the aviation hydraulic pump station cannot be detected quickly, thus affecting the production efficiency of aircraft assembly.
[0072] In order to solve the above technical problems, the present application provides a real-time abnormality detection method, device, equipment and medium for an aviation hydraulic pump station. Before introducing the specific technical solution of the present application, the hardware operating environment involved in the implementation scheme of the present application is first introduced.
[0073] Reference Figure 1 , Figure 1 A schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present application.
[0074] like Figure 1 As shown, the computer device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0075] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0076] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and an electronic program.
[0077] exist Figure 1In the computer device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the computer device of the present invention can be set in the computer device, and the computer device calls the real-time abnormality detection device of the aviation hydraulic pump station stored in the memory 1005 through the processor 1001, and executes the real-time abnormality detection method of the aviation hydraulic pump station provided in the embodiment of the present application.
[0078] Reference Figure 2 Based on the hardware environment of the aforementioned embodiment, the embodiment of the present application provides a real-time abnormality detection method for an aviation hydraulic pump station, the method comprising:
[0079] S10: Acquire historical time series data of a target aviation hydraulic pump station; wherein the historical time series data is used to characterize the performance of the target aviation hydraulic pump station.
[0080] In the specific implementation process, the target aviation hydraulic pump station refers to the aviation hydraulic pump station that needs to be tested for abnormal problems. Time series data refers to time series data, which is a data column recorded in chronological order with the same unified indicator. Historical time series data refers to time series data before the detection time of the target aviation hydraulic pump station, and these time series data can directly reflect whether there are abnormal problems in the aviation hydraulic pump station. The historical time series data of the target aviation hydraulic pump station includes real-time data such as temperature, pressure and flow of the hydraulic pump station. The real-time data such as temperature, pressure and flow of the hydraulic pump station can just reflect the performance of the target aviation hydraulic pump station, and the real-time data such as temperature, pressure and flow of the hydraulic pump station are easier to obtain, so it is easier to detect abnormal conditions of the target aviation hydraulic pump station.
[0081] S20: Perform segmented fitting on the historical time series data to obtain segmented points.
[0082] In the specific implementation process, the historical time series data obtained is long and needs to be segmented. To segment the historical time series data, it is necessary to obtain segmentation points, and then segment the historical time series data according to the segmentation points.
[0083] S30: Based on the segmentation points, classify the historical time series data after segmentation fitting to obtain a training set.
[0084] In the specific implementation process, the historical time series data is segmented based on the number of segmentation points obtained in step S20, and then the segmented historical time series data is divided into several categories using the K-means algorithm according to the working condition types of the aviation hydraulic pump station data. The historical time series data divided into several categories are then divided into a training set and a test set. The training set based on the classification standard can make the accuracy of the data prediction model for subsequent training higher.
[0085] S40: Based on the training set, the constructed initial neural network model is trained to obtain a data prediction model.
[0086] In the specific implementation process, a sliding window is used to create data samples, and historical time series data is used as data samples. The data samples (classified historical time series data) are divided into training sets and test sets. For example, 70% of the historical time series data is used as the training set, and the remaining 30% of the historical time series data is used as the test set. The initial neural network model is trained with the data of the training set, and then the trained initial neural network model is tested with the data of the test set. After the test passes, a data prediction model that can detect the real-time time series data of the target aviation hydraulic pump station can be obtained.
[0087] S50: Based on the data prediction model, the real-time time series data of the target aviation hydraulic pump station is detected.
[0088] During the specific implementation process, when the real-time time series data of the target aviation hydraulic pump station is detected, the real-time time series data of the target aviation hydraulic pump station is input into the data prediction model, and the data prediction model automatically gives a prediction value. The prediction value can be used to know whether there is an abnormality in the real-time time series data of the target aviation hydraulic pump station. If there is an abnormality in the real-time time series data of the target aviation hydraulic pump station, it is considered that there is an abnormality in the target aviation hydraulic pump station at this time.
[0089] In summary, when it is necessary to determine whether the target aviation hydraulic pump has an abnormal situation, first obtain the historical time series data of the target aviation hydraulic pump, then process the historical time series data and perform segmented fitting to obtain the number of segmented points, then classify the historical time series data, and then construct an initial neural network model based on the classified historical time series data. The constructed initial neural network model is then trained with the historical time series data, and a data prediction model that can predict the real-time data of the target aviation hydraulic pump station is obtained. Finally, the real-time data of the target aviation hydraulic pump station is input into the data prediction model, and the real-time data of the target aviation hydraulic pump station is detected. That is, the present application constructs a data prediction model that can predict or detect the real-time time series data of the target aviation hydraulic pump station based on the historical time series data of the target aviation hydraulic pump station. Since the historical time series data is segmented and classified when constructing the data prediction model, the accuracy of the constructed data prediction model is relatively high. When testing the target aviation hydraulic pump station, it is only necessary to input the real-time time series data of the target flight hydraulic pump station into the data prediction model, and after a certain comparison, it can be known whether the real-time time series data of the target aviation hydraulic pump station is abnormal. If the real-time data is detected to be abnormal, it means that the target aviation hydraulic pump is abnormal. In this way, under the premise of ensuring the accuracy of the data prediction model, it is possible to more quickly detect whether the aviation hydraulic pump station has a fault. Since the historical time series data is classified, it is also possible to accurately know the location of the target aviation hydraulic pump station. Since the location of the target aviation pump station can be quickly and accurately detected, the staff can more efficiently eliminate related faults, thereby improving the production efficiency of aircraft assembly.
[0090] In order to better segment the historical time series data, in some embodiments, Figure 3 As shown, an optional technical solution is provided, that is, the step of performing segmented fitting on the historical time series data to obtain segmentation points includes:
[0091] S111: Setting a segmentation threshold; wherein the segmentation threshold is a preset error sum of a certain segment of the historical time series data.
[0092] In the specific implementation process, the segmentation threshold is preset and can reflect the value of the sum of errors of a certain period of historical time series data.
[0093] S112: Construct a piecewise fitting model.
[0094] In the specific implementation process, the sliding window method is used to perform segmented fitting on the historical time series data to obtain the segmentation points of the data. The segmentation points can be obtained faster and more accurately through the segmented fitting model. Specifically, the segmented fitting model is constructed through the following relationship:
[0095]
[0096] in, represents the historical time series data observation value at the i-th moment, represents the fitted linear function, J represents the sum of the segment errors in the segment fitting model, jf represents the end time of segment j, js represents the starting time of segment j, .
[0097] S113: Based on the segmentation threshold and the segmentation fitting model, perform segmentation fitting on the historical time series data to obtain segmentation points.
[0098] In the specific implementation process, when the sum of the segmentation errors in the segmentation fitting model is greater than the segmentation threshold, a segmentation point is obtained and a new segmentation is started.
[0099] In order to build higher accuracy, in some embodiments, such as Figure 4 As shown, the step of classifying the historical time series data after segmentation fitting based on the segmentation points to obtain a training set includes:
[0100] S121: Segment the historical time series data based on the number of segmentation points.
[0101] In the specific implementation process, for example, if w segmentation points are obtained, the historical time series data can be divided into W+1 segments.
[0102] S122: Based on the working condition type of the historical time series data, the segmented historical time series data is divided into several categories.
[0103] In the specific implementation process, the K-means algorithm is used to divide the historical time series data into several categories according to the working conditions of the target aviation hydraulic pump station data.
[0104] S123: Obtain a training set based on the historical time series data divided into several categories.
[0105] In the specific implementation process, the historical time series data is first segmented, and then the segmented historical time series data is classified. This can provide more accurate data information for the subsequent training of the initial neural network model, so that the initial neural network model can better fit the actual situation, so that the initial neural network model can detect the real-time data of the target aviation hydraulic pump station more accurately.
[0106] Specifically, the initial neural network model is constructed through the following relationship:
[0107]
[0108]
[0109]
[0110]
[0111] in, represents the input data at time t, represents the hidden state at time t-1, represents the candidate hidden state at time t, represents the weight coefficient matrix, Indicates the weight corresponding to the updated gate at time t, Indicates that the weight corresponding to the gate is reset at time t, () represents the activation function, () represents the hyperbolic tangent function.
[0112] The initial neural network model constructed is as follows Figure 5 As shown, Figure 5 A schematic diagram of an initial neural network model provided in an embodiment of the present application, Figure 5 middle, represents the activation function, represents the hyperbolic tangent function, represents the input data at time t, represents the hidden state at time t-1, Represents the candidate hidden state at time t. The initial neural network model preferably uses a GRU neural network, first constructing the input layer, hidden layer and output layer of the GRU neural network, and then determining the number of neurons in each layer and the corresponding activation function.
[0113] In order to better train the initial neural network model, in some embodiments, it is achieved through the following preferred technical solution, that is, the step of training the constructed initial neural network model based on the training set to obtain the data prediction model includes: first obtaining the training time step of each type of historical time series data; wherein the training time step is the average density of each type of historical time series data in a certain period of time; dividing the historical time series data into a training set and a test set; finally, based on the BP algorithm, the training set and the training time step, training the constructed initial neural network model to obtain the data prediction model.
[0114] In this embodiment, the average density of each type of historical time series data within time t is calculated , and the average density of each type of historical time series data is used as the time step for training this type of historical time series data. Use a sliding window to create data samples. Preferably, 70% of the data samples are used as training sets, and the remaining 30% are used as test sets. Then use the BP algorithm to train the GRU initial neural network model. After each data segment is input, it iteratively calculate the network error and update the weight. When the accuracy on the test set no longer improves, terminate the training of the GRU initial neural network model, and save the trained GRU data prediction model to obtain a data prediction model that can be directly used for real-time time series data of aviation hydraulic pump stations.
[0115] When the trained data prediction model is used to predict the real-time time series data of the aviation pump station, such as Figure 6 As shown, a preferred implementation manner is given, that is, the step of detecting the real-time time series data of the target aviation hydraulic pump station based on the data prediction model includes:
[0116] S141: Obtaining real-time time series data of the target aviation hydraulic pump station.
[0117] In the specific implementation process, real-time time series data refers to the current real-time time series data of the target aviation hydraulic pump station. The real-time time series data includes but is not limited to the real-time temperature, pressure and flow of the target aviation hydraulic pump station. The real-time time series data can be obtained by conventional means.
[0118] S142: Preprocessing the real-time time series data of the target aviation hydraulic pump station.
[0119] In a specific implementation process, preprocessing the real-time time series data includes formatting the real-time time series data detected by the hydraulic pump station and normalizing the real-time time series data detected by the hydraulic pump station.
[0120] S143: Inputting the preprocessed real-time time series data of the target aviation hydraulic pump station into the data prediction model to obtain a predicted value of the target aviation hydraulic pump station.
[0121] In the specific implementation process, the processed real-time time series data of the target aviation hydraulic pump station is input into the data prediction model in a conventional manner, and the predicted value of the target aviation hydraulic pump station can be obtained after being processed by the data prediction model.
[0122] S144: Based on inverse normalization, an actual value of the target aviation hydraulic pump station is obtained.
[0123] In the specific implementation process, denormalization is a conventional means. After denormalization, the actual value of the target aviation hydraulic pump station can be obtained. The actual value of the target aviation hydraulic pump station refers to the true value of the real-time time series data of the target aviation hydraulic pump station.
[0124] S145: Based on the predicted value and the actual value of the target aviation hydraulic pump station, perform real-time detection on the target aviation hydraulic station.
[0125] In the specific implementation process, the predicted value obtained by the data prediction model is compared with the actual value obtained after denormalization to detect whether the real-time time series data of the target aviation hydraulic pump station is abnormal. The specific detection method is:
[0126] First, the working status of the target aviation hydraulic pump station is obtained; then the standard deviation of each type of the historical time series data is obtained; then, based on the working status of the target aviation hydraulic pump station and the standard deviation of each type of the historical time series data, a judgment threshold is obtained; finally, if the absolute value of the difference between the predicted value and the actual value is greater than the judgment threshold, an abnormality exists in the target aviation hydraulic station.
[0127] In this embodiment, the current working state of the target hydraulic pump station is determined according to the actual operating state of the current target hydraulic pump station, and then the judgment threshold is determined and selected according to the current working state. The judgment threshold refers to a preset range between the predicted value and the actual value. The absolute value of the difference between the predicted value and the actual value is compared with the judgment threshold according to the current working state. If the absolute value of the difference between the predicted value and the actual value is greater than the judgment threshold, the real-time time series data of the target aviation hydraulic pump station is judged to be abnormal. When the real-time time series data is abnormal, it indicates that there is an abnormality in the target aviation hydraulic pump station; if the absolute value of the difference between the predicted value and the actual value is less than or equal to the judgment threshold, the real-time time series data is judged to be normal.
[0128] In order to better establish a data prediction model for historical time series data, in some embodiments, the following optional technical solution is provided, that is, before the step of performing segmented fitting on the historical time series data to obtain segmentation points, the step also includes:
[0129] First, the historical time series data of the target aviation hydraulic pump station is cleaned to remove irrelevant historical time series data; then, the cleaned historical time series data of the target aviation hydraulic pump station is normalized.
[0130] The step of performing segmented fitting on the historical time series data to obtain segmented points includes: performing segmented fitting on the normalized historical time series data to obtain segmented points.
[0131] In this embodiment, the missing value processing of historical time series data is performed by using the local mean interpolation method. Specifically, it can be processed by the following relationship:
[0132]
[0133] in, represents the estimated value at time t, n represents looking back t times, Represents the observation value at the i-th moment. Then convert the date format data such as time into long integer format data for subsequent calculations. Then remove the meaningless repeated data when the device is in standby state, count the position and number of the standby state data subsequences in the statistics, and only retain C data for the continuous number exceeding the threshold C, and perform denoising on the historical time series data to remove obvious noise data. Finally, the Z-score method is used to normalize the historical time series data so that the historical time series data conforms to the standard normal distribution, so as to accelerate the convergence speed of the historical time series data during training. After processing the historical time series data, some noise data can be removed, thereby improving the efficiency of subsequent construction of the data prediction model and increasing the accuracy of the data prediction model.
[0134] The scheme of the present invention adopts a real-time anomaly detection algorithm for time series data based on a GRU combined with working condition categories based on dynamic time steps. Here is an example of applying the present invention to perform real-time anomaly detection of pressure time series data of an aviation hydraulic pump station. The specific example is:
[0135] 1. Hydraulic pump station time series data preprocessing stage.
[0136] ①First, use Python to obtain key real-time time series data such as pressure, time, and equipment number of the hydraulic pump station from the redis time series database, and save it in the local disk file system in CSV format;
[0137] ② Read the CSV data into a two-dimensional array, where the rows of the array represent the state of the hydraulic pump station pressure at a certain moment, and the columns of the array represent the observed values of a pressure at all times;
[0138] ③ Traverse each element in the array and fill the missing values with the average value of the first 15 data at the current moment;
[0139] ④ Sort the rows of the array in ascending order of time, and convert the time into a timestamp number;
[0140] ⑤ Count the number and position of consecutive zero values in all pressure data, and ensure that the number of consecutive zero value sequences does not exceed 180 according to actual usage;
[0141] ⑥ Perform noise removal on the hydraulic pump station time series data. According to the hydraulic pump station use guidance process file, the data with a value greater than the threshold given in the process file (such as pressure exceeding 54Mpa) is determined to be noise and deleted from the original data set. Data with a value less than the threshold is not processed. Finally, 4000 target data are obtained;
[0142] ⑦ Use the z-score method to normalize the hydraulic pump station pressure time series data.
[0143] 2. Offline training phase.
[0144] ①Use formula , for the target data Perform piecewise linear fitting to obtain the fitting segment points , a total of 39 segmentation points;
[0145] ② Using 39 segmentation points, the 4000 data were divided into 40 segments. According to the five working conditions of the hydraulic pump station (including: preparation, pressure increase, pressure stabilization, pressure reduction and shutdown), the K-means algorithm was used to divide the segmented data into five categories;
[0146] ③Calculate the mean of the data in the above 5 categories and standard deviation ;
[0147] ④ Calculate the average density of each type of data within 30 seconds, and get the average density of the five types of data within 30 seconds , T is used as the time step for training each type of data;
[0148] ⑤Use a sliding window of size 3 to create data samples in each segment. A single training sample is as follows: ,in, is the characteristic attribute, is the sample label, and a total of 3732 sample data are obtained. The number of samples in each segment ;
[0149] ⑥ Use 70% of the 3732 sample data as the training set and the remaining 30% as the test set;
[0150] ⑦ Construct a GRU initial neural network model with an input layer size of 3, a hidden layer size of 48, and an output layer size of 1. The forget gate, input gate, and output gate use the Sigmoid function as the activation function; when generating candidate memories, use the hyperbolic tangent function tanh as the activation function;
[0151] ⑧ General The samples in the form of 40 outputs are output to the GRU initial neural network model, and the time step of each time is Determined by the category of data;
[0152] ⑨ Use back propagation to train the GRU initial neural network model. After the current data segment is input, iteratively calculate the network error and update the weight until all samples are trained. Then test the accuracy on the test set, iterate the training model repeatedly, and finally terminate the network training when the accuracy on the test set no longer improves.
[0153] ⑩Finally, save the trained GRU model.
[0154] 3. Online detection stage.
[0155] ①Real-time data Perform pre-processing;
[0156] ② Load the trained GRU initial neural network model to predict the current value ;
[0157] ③Denormalize the predicted value to get the actual value ;
[0158] ④ Select the judgment threshold according to the current working conditions of the target hydraulic pump station ;
[0159] ⑤Judgment If the inequality is established, it is normal; if it is not established, it is abnormal;
[0160] ⑥ Output the data value detected as abnormal and the corresponding time.
[0161] In summary, before predicting the real-time time series data of the target hydraulic pump station, the historical time series data of the target hydraulic pump station is analyzed and segmented according to the characteristics of the use of the aviation hydraulic pump station and the prior knowledge of the application process, and then classified, which provides more accurate data information for the subsequent training of the initial neural network model, so that the initial neural network model can better fit the actual situation. According to the segmentation of the time series data, the dynamic time step is used to train the neural network, so that the network model is more in line with the actual situation of the time series data change, thereby improving the accuracy of the network prediction. The density, data mean and change trend of the time series data generated by the target aviation hydraulic pump station in different working states are different. Using the same fixed threshold, it is obviously impossible to accurately judge the abnormal situation under different working conditions, and even cause misjudgment. Therefore, according to the working state of the hydraulic pump station, the judgment threshold is dynamically selected in combination with the standard deviation of the data category, which can more accurately judge the abnormal situation of the complex aviation hydraulic pump station under complex conditions.
[0162] In another embodiment, if Figure 7 As shown, based on the same inventive concept as the above-mentioned embodiment, the embodiment of the present application further provides a real-time abnormality detection device for an aviation hydraulic pump station, the device comprising:
[0163] An acquisition module is used to acquire historical time series data of a target aviation hydraulic pump station; wherein the historical time series data is used to characterize the performance of the target aviation hydraulic pump station; a first acquisition module is used to perform segmented fitting on the historical time series data to obtain segmentation points; a second acquisition module is used to classify the segmented fitting historical time series data based on the segmentation points to obtain a training set; a third acquisition module is used to train the constructed initial neural network model based on the training set to obtain a data prediction model; a detection module is used to detect the real-time time series data of the target aviation hydraulic pump station based on the data prediction model.
[0164] It should be noted that each module in the real-time abnormality detection device for aviation hydraulic pump stations in this embodiment corresponds one-to-one to each step in the real-time abnormality detection method for aviation hydraulic pump stations in the aforementioned embodiment. Therefore, the specific implementation method and technical effects achieved by this embodiment can refer to the implementation method of the aforementioned real-time abnormality detection method for aviation hydraulic pump stations, which will not be repeated here.
[0165] In addition, in one embodiment, the present application also provides a computer device, which includes a processor, a memory, and a computer program stored in the memory, and the computer program implements the method in the aforementioned embodiment when executed by the processor.
[0166] In addition, in one embodiment, the present application further provides a computer storage medium, on which a computer program is stored, and the computer program implements the method in the aforementioned embodiment when executed by a processor.
[0167] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0168] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0169] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0170] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0171] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0172] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0173] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0174] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A real-time abnormality detection method for an aviation hydraulic pump station, characterized in that: The method comprises: Acquire historical time series data of a target aviation hydraulic pump station; wherein the historical time series data is used to characterize the performance of the target aviation hydraulic pump station; Performing segmented fitting on the historical time series data to obtain segmentation points; Based on the segmentation points, classifying the historical time series data after segmentation fitting to obtain a training set; Based on the training set, the constructed initial neural network model is trained using a dynamic time step to obtain a data prediction model; each time step is determined according to the category of the data; Obtain the real-time time series data of the target aviation hydraulic pump station; preprocess the real-time time series data of the target aviation hydraulic pump station; input the preprocessed real-time time series data of the target aviation hydraulic pump station into the data prediction model to obtain the predicted value of the target aviation hydraulic pump station; obtain the actual value of the target aviation hydraulic pump station based on inverse normalization; obtain the working status of the target aviation hydraulic pump station; obtain the standard deviation of each type of the historical time series data; obtain a judgment threshold based on the working status of the target aviation hydraulic pump station and the standard deviation of each type of the historical time series data; if the absolute value of the difference between the real-time time series data and the actual value is greater than the judgment threshold, then the target aviation hydraulic station has an abnormality.
2. The real-time abnormality detection method of an aviation hydraulic pump station according to claim 1, characterized in that: The performing segmented fitting on the historical time series data to obtain segmentation points includes: Setting a segmentation threshold; wherein the segmentation threshold is a preset error sum of a certain segment of the historical time series data; Construct piecewise fitting model; Based on the segmentation threshold and the segmentation fitting model, segmentation fitting is performed on the historical time series data to obtain segmentation points.
3. The real-time abnormality detection method of an aviation hydraulic pump station according to claim 2, characterized in that: The performing segmented fitting on the historical time series data based on the segmented threshold and the segmented fitting model to obtain segmented points includes: When the sum of segmentation errors in the segmentation fitting model is greater than the segmentation threshold, a segmentation point is obtained.
4. The real-time abnormality detection method of an aviation hydraulic pump station according to claim 3, characterized in that: The step of constructing a piecewise fitting model comprises: The piecewise fitting model is constructed through the following relationship: in, represents the historical time series data observation value at the i-th moment, represents the fitted linear function, J represents the sum of the segment errors in the segment fitting model, jf represents the end time of segment j, and js represents the starting time of segment j.
5. The real-time abnormality detection method of an aviation hydraulic pump station according to claim 1, characterized in that: The step of classifying the historical time series data after segmentation fitting based on the segmentation points to obtain a training set includes: Segmenting the historical time series data based on the number of segmentation points; Based on the working condition types of the historical time series data, the segmented historical time series data is divided into several categories; Based on the historical time series data divided into several categories, a training set is obtained.
6. The real-time abnormality detection method of an aviation hydraulic pump station according to claim 1, characterized in that: The method of training the constructed initial neural network model based on the training set using a dynamic time step to obtain a data prediction model includes: Obtaining a training time step for each type of the historical time series data; wherein the training time step is the average density of each type of the historical time series data over a certain period of time; Based on the BP algorithm, the training set and the training time step, the constructed initial neural network model is trained to obtain a data prediction model.
7. The real-time abnormality detection method of an aviation hydraulic pump station according to claim 6, characterized in that: The method of training the constructed initial neural network model based on the BP algorithm, the training set and the training time step to obtain a data prediction model includes: The initial neural network model is constructed through the following relationship: in, represents the input data at time t, represents the hidden state at time t-1, represents the candidate hidden state at time t, represents the weight coefficient matrix, Indicates the weight corresponding to the updated gate at time t, Indicates that the weight corresponding to the gate is reset at time t, () represents the activation function, represents the hyperbolic tangent function.
8. The real-time abnormality detection method of an aviation hydraulic pump station according to claim 1, characterized in that: Before the step of performing segmented fitting on the historical time series data to obtain segmentation points, the method further includes: Cleaning the historical time series data of the target aviation hydraulic pump station to remove irrelevant historical time series data; Normalizing the historical time series data of the cleaned target aviation hydraulic pump station; The performing segmented fitting on the historical time series data to obtain segmentation points includes: The normalized historical time series data is piecewise fitted to obtain the piecewise points.
9. A real-time abnormality detection device for an aviation hydraulic pump station, characterized in that: The device comprises: The acquisition module is used to acquire the historical time series data of the target aviation hydraulic pump station; wherein the historical time series data is used to characterize the performance of the target aviation hydraulic pump station; the first acquisition module is used to perform segmented fitting on the historical time series data to obtain segmentation points; the second acquisition module is used to classify the segmented fitting historical time series data based on the segmentation points to obtain a training set; the third acquisition module is used to train the constructed initial neural network model based on the training set using a dynamic time step to obtain a data prediction model; the time step of each time is determined according to the category of the data; the detection module is used to obtain the real-time time series data of the target aviation hydraulic pump station According to the present invention, the real-time time series data of the target aviation hydraulic pump station is preprocessed; the real-time time series data of the target aviation hydraulic pump station after preprocessing is input into the data prediction model to obtain the predicted value of the target aviation hydraulic pump station; based on the inverse normalization, the actual value of the target aviation hydraulic pump station is obtained; the working state of the target aviation hydraulic pump station is obtained; the standard deviation of each type of the historical time series data is obtained; based on the working state of the target aviation hydraulic pump station and the standard deviation of each type of the historical time series data, a judgment threshold is obtained; if the absolute value of the difference between the real-time time series data and the actual value is greater than the judgment threshold, then the target aviation hydraulic station has an abnormal situation.
10. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Hierarchical cluster aviation pump multiple fault diagnostic method based on frequency multiplication relative energy sum
CN101571120A
Astronomical big data optical variable curve abnormity detection method
CN110879874A
Comprehensive energy system equipment variable working condition characteristic modeling method based on segmented data fitting
CN111523707A
Civil aviation engine gas path anomaly detection method based on piecewise fitting analysis and evaluation
CN111598438A
Abnormity detection method and system based on data mining
CN114579397A
