Bridge sensor time series missing data reconstruction method based on EMD and GRU
By combining empirical mode decomposition and GRU, the problem of complexity and non-smoothness of bridge time series data is solved, efficient data reconstruction is achieved, computing efficiency and training speed are improved, and it is suitable for time series data processing in bridge monitoring.
Patent Information
- Application Number
- CN202410624904.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-20
AI Technical Summary
Existing bridge time series data reconstruction methods perform poorly on complex non-smooth data, have low computational efficiency and low training speed, and are difficult to meet the efficient data processing needs of bridge monitoring.
Methods based on Empirical Mode Decomposition (EMD) and Gated Recurrent Unit (GRU) are used to preprocess and decompose bridge sensor time series data, design an initial prediction model based on GRU, and select optimal hyperparameters through grid search parameter adjustment. , to achieve efficient reconstruction of data.
It improves the efficiency, accuracy and adaptability of data reconstruction, can adaptively decompose nonlinear signals, reduces computing costs and training time, and improves the performance of data reconstruction.
Smart Images

Figure CN118193504B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular to a method for reconstructing bridge sensor time series missing data based on EMD and GRU. Background Art
[0002] Due to the rapid development of science and technology, wireless sensor devices are widely used in bridge data monitoring. The bridge monitoring system consists of electronic sensors, signal transmission networks, computing and storage devices, and the time series data monitored can reflect the actual status of the bridge. Due to the many uncertainties faced by the bridge operation process, factors such as the environment, weather, and long-term continuous work may cause the wireless sensor to receive discontinuous signals during data transmission, which may lead to the risk of data loss. Missing data will reduce the accuracy of bridge health model analysis or algorithms, and may introduce large deviations in certain statistical and data analysis indicators. In order to reduce the erroneous assessment caused by missing data, it is crucial to study how to deal with the missing raw data of the bridge, that is, the data reconstruction method. Therefore, the reconstruction of bridge monitoring data has become a direction of current bridge monitoring technology development.
[0003] In recent years, many researchers have proposed different methods to solve this problem. The existing bridge time series data reconstruction methods can be mainly divided into two categories, one is the traditional mathematical method, and the other is the deep learning method. The traditional mathematical method is simple to implement, but due to the complex characteristics of bridge monitoring data, the reconstruction performance is not ideal. With the rapid development of artificial intelligence, deep learning methods are highly dependent on data and usually perform better in the face of large amounts of data. Bridge monitoring data has the characteristics of a huge amount of data, so deep learning has been widely used in the reconstruction of missing data, and the main network architecture used is LSTM. Although LSTM can capture the long-term and short-term dependencies of time series data, its structure is more complex than traditional mathematical methods, the computational cost is higher, and the training time is longer.
[0004] It can be seen that there is an urgent need for a bridge sensor time series missing data reconstruction method based on EMD and GRU that can perform well on complex non-smooth data while having higher computational efficiency and faster training speed. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method for reconstructing time series missing data of bridge sensors based on EMD and GRU, which at least partially solves the problem of poor data reconstruction efficiency and accuracy in the prior art.
[0006] In a first aspect, an embodiment of the present invention provides a method for reconstructing missing time series data of a bridge sensor based on EMD and GRU, comprising:
[0007] Step 1, obtaining the time series data of the bridge wireless sensor and storing it in the time series database;
[0008] Step 2: preprocess the time series data, identify the timestamps corresponding to the missing data, and divide the time series data into a training set and a test set according to a preset ratio;
[0009] Step 3: Decompose the training set and the test set using the empirical mode decomposition method according to the time scale characteristics, and decompose the time series data that meets the requirements into a linear combination of a finite number of eigenmode sequences;
[0010] Step 4, design an initial prediction model based on the intrinsic mode sequence of GRU, specify the initial prediction model hyperparameter combination and loss function, use the grid search method to train the initial prediction model on the decomposed training set and select the hyperparameters with the best performance to obtain the optimal model;
[0011] Step 5: Obtain the real-time data of the bridge wireless sensor, and determine whether the real-time data is missing based on the timestamp and data content. If there is missing data, call the optimal prediction model to reconstruct the missing data segment and store the reconstructed data in the time series database.
[0012] According to a specific implementation of the embodiment of the present invention, the preprocessing operation is a standardization operation, and the expression of the standardization operation is:
[0013]
[0014] in, is the actual value of the original time series data, is the standardized time series data, is the maximum value of the time series data, is the minimum value of the time series data.
[0015] According to a specific implementation of the embodiment of the present invention, step 3 specifically includes:
[0016] Step 3.1, based on the original signal of the given training set and test set , find all the maximum values and minimum value , and then perform cubic spline interpolation;
[0017] Step 3.2, according to the maximum value Forming the upper envelope curve, the minimum The lower envelope curve is formed, and the average value is calculated based on the upper and lower envelope curves. ;
[0018] Step 3.3, based on time series data and average Calculate intermediate signal ;
[0019] Step 3.4, determine the intermediate signal Does it meet the IMF requirements? If so, As the first IMF component, denoted as If not satisfied, then as the original signal, and recalculate , repeat this process until Satisfy IMF requirements and obtain multiple IMF components;
[0020] Step 3.5, when an IMF component is obtained, calculate the monotonic function , determine the calculation of monotonic function Is it monotonic? If not, return to step 3.4. If it is, stop iterating and set the monotonic function As residual ;
[0021] Step 3.6, from the original signal All IMF components and residuals decomposed in are regarded as linear combinations of the intrinsic mode sequences.
[0022] According to a specific implementation of the embodiment of the present invention, the average value The expression is
[0023] ;
[0024] The intermediate signal The expression is
[0025] ;
[0026] The monotonic function The expression is
[0027] ;
[0028] The linear combination of the eigenmode sequence is expressed as
[0029] .
[0030] According to a specific implementation of the embodiment of the present invention, step 4 specifically includes:
[0031] Step 4.1, use the initial forecast model to forecast each decomposed IMF component and residual, and then combine the forecast results of each part to obtain the final forecast result;
[0032] Step 4.2: Use the grid search method to adjust the GRU parameters, select the optimal hyperparameters, and obtain the optimal model.
[0033] According to a specific implementation of an embodiment of the present invention, the step of calling the optimal prediction model to reconstruct the missing data segment includes:
[0034] The missing data in the real-time data and its corresponding timestamps are input into the optimal prediction model to obtain the predicted missing value results, which are then reversely processed to obtain the actual missing values.
[0035] According to a specific implementation of the embodiment of the present invention, the expression of the reverse processing is:
[0036]
[0037] in, is the predicted value of the model after standardization. is the actual value after reverse processing.
[0038] The scheme for reconstructing missing data of bridge sensor time series based on EMD and GRU in the embodiment of the present invention comprises: step 1, obtaining time series data of bridge wireless sensors and storing them in a time series database; step 2, performing preprocessing operation on the time series data, identifying the timestamp corresponding to the missing data, and dividing the time series data into a training set and a test set according to a preset ratio; step 3, decomposing the training set and the test set using the empirical mode decomposition method according to the time scale characteristics, and decomposing the time series data that meets the requirements into a linear combination of a limited number of intrinsic mode sequences; step 4, designing an initial prediction model of the intrinsic mode sequence based on GRU, specifying the initial prediction model hyperparameter combination and the loss function, using the grid search method to train the initial prediction model on the decomposed training set and selecting the hyperparameter with the best performance to obtain the optimal model; step 5, obtaining the real-time data of the bridge wireless sensor, judging whether the real-time data is missing according to the timestamp and the data content, and if there is missing data, calling the optimal prediction model to reconstruct the missing data segment, and storing the reconstructed data in the time series database.
[0039] The beneficial effects of the embodiments of the present invention are as follows: through the scheme of the present invention, the nonlinear and non-smooth bridge sensor signal data is adaptively decomposed into a smooth intrinsic mode sequence using empirical mode decomposition, making the data features more obvious, and at the same time using GRU to predict and combine the decomposed data, thereby improving the efficiency, accuracy and adaptability of data reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A flow chart of a bridge sensor time series missing data reconstruction method based on EMD and GRU provided in an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of a specific implementation flow of a bridge sensor time series missing data reconstruction method based on EMD and GRU provided in an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of a process for reconstructing data using real-time monitoring data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0045] The following describes the embodiments of the present invention through specific examples, and those skilled in 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 only part of the embodiments of the present invention, rather than all of the embodiments. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0046] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present invention, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0047] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention. The drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0048] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0049] An embodiment of the present invention provides a method for reconstructing missing time series data of a bridge sensor based on EMD and GRU, and the method can be applied in a bridge detection process.
[0050] See also Figure 1 , is a flow chart of a bridge sensor time series missing data reconstruction method based on EMD and GRU provided by an embodiment of the present invention. Figure 1 and Figure 2 As shown, the method mainly comprises the following steps:
[0051] Step 1, obtaining the time series data of the bridge wireless sensor and storing it in the time series database;
[0052] In the specific implementation, for the existing bridge detection system, the time series data on the bridge can be obtained through the HTTP interface and stored using the time series database InfluxDB. The stored time series data structure format is <timestamp, value>. By writing the monitoring component Kapacitor script provided by InfluxDB, the alarm rule service is defined to detect the missing of the acquired time series data. The management information such as the monitored missing data segments and the types of sensors of the bridge is stored using the relational database MySQL.
[0053] Step 2: preprocess the time series data, identify the timestamps corresponding to the missing data, and divide the time series data into a training set and a test set according to a preset ratio;
[0054] Furthermore, the preprocessing operation is a standardization operation, and the expression of the standardization operation is
[0055]
[0056] in, is the actual value of the original time series data, is the standardized time series data, is the maximum value of the time series data, is the minimum value of the time series data.
[0057] In specific implementation, data can be loaded from the InfluxDB database and normalized so that its value is between [-1,1], as shown in the following formula. The purpose of normalization is to improve the accuracy and convergence speed of model prediction and reduce the impact of abnormal samples on data. is the original actual value, is the standardized data, is the maximum value of the training data, is the minimum value of the training data.
[0058] .
[0059] Step 3: Decompose the training set and the test set using the empirical mode decomposition method according to the time scale characteristics, and decompose the time series data that meets the requirements into a linear combination of a finite number of eigenmode sequences;
[0060] Based on the above embodiment, step 3 specifically includes:
[0061] Step 3.1, based on the original signal of the given training set and test set , find all the maximum values and minimum value , and then perform cubic spline interpolation;
[0062] Step 3.2, according to the maximum value Forming the upper envelope curve, the minimum The lower envelope curve is formed, and the average value is calculated based on the upper and lower envelope curves. ;
[0063] Step 3.3, based on time series data and average Calculate intermediate signal ;
[0064] Step 3.4, determine the intermediate signal Does it meet the IMF requirements? If so, As the first IMF component, denoted as If not satisfied, then as the original signal, and recalculate , repeat this process until Satisfy IMF requirements and obtain multiple IMF components;
[0065] Step 3.5, when an IMF component is obtained, calculate the monotonic function , determine the calculation of monotonic function Is it monotonic? If not, return to step 3.4. If it is, stop iterating and set the monotonic function As residual ;
[0066] Step 3.6, from the original signal All IMF components and residuals decomposed in are regarded as linear combinations of the intrinsic mode sequences.
[0067] Furthermore, the average The expression is
[0068] ;
[0069] The intermediate signal The expression is
[0070] ;
[0071] The monotonic function The expression is
[0072] ;
[0073] The expression of the linear combination of the eigenmode sequence is
[0074] .
[0075] In specific implementation, empirical mode decomposition (EMD) is a data decomposition method with adaptive capabilities. It can decompose signals according to the time scale characteristics of the data itself without pre-defining basis functions. This method has a good effect on analyzing time-varying nonlinear and non-stationary bridge monitoring data signals. It can smooth non-stationary data and decompose complex signals into linear combinations of a finite number of intrinsic mode functions (IMFS). Each IMF represents the local characteristics of the original signal at different time scales and has effective local transient feature characterization capabilities. For the time series data of bridge sensors, we first use the given monitoring data , find all the maximum and minimum points, and then perform cubic spline interpolation. Maximum Forming the upper envelope curve, the minimum A lower envelope curve is formed, and then an average value is calculated based on the upper and lower envelopes, as shown in the following formula.
[0076]
[0077] The intermediate signal is calculated from the acquired original signal and the polar envelope as shown in the following formula.
[0078]
[0079] Sure Whether the intrinsic mode function (IMF) requirements are met, wherein the IMF requirements may include two conditions, namely, the symmetry condition: the number of extreme points is equal to the number of zero-crossing points or differs by at most 1; and the zero mean condition: the average value of the upper envelope formed by the local maximum points and the lower envelope formed by the local minimum points is zero. If met, then will become the first IMF, denoted by Otherwise as the original signal, and recalculate , repeat this process until Satisfy the conditions. Then decompose from the original signal , calculate the monotonic function , as shown in the following formula.
[0080]
[0081] Finally, the original signal It can be decomposed into a finite number of IMF components and a residual .in is the original signal, represents the number of IMF components of the signal decomposition, Indicates IMF components.
[0082] .
[0083] Step 4, design an initial prediction model based on the intrinsic mode sequence of GRU, specify the initial prediction model hyperparameter combination and loss function, use the grid search method to train the initial prediction model on the decomposed training set and select the hyperparameters with the best performance to obtain the optimal model;
[0084] Based on the above embodiment, step 4 specifically includes:
[0085] Step 4.1, use the initial forecast model to forecast each decomposed IMF component and residual, and then combine the forecast results of each part to obtain the final forecast result;
[0086] Step 4.2: Use the grid search method to adjust the GRU parameters, select the optimal hyperparameters, and obtain the optimal model.
[0087] In specific implementation, for the IMF components and residuals decomposed by the empirical mode decomposition method, more modal features are obtained from the original signal, effectively reducing the noise in the original signal. Therefore, using GRU to predict the sequence can ensure efficient calculation speed and excellent prediction performance. Use GRU to predict each decomposed IMF component, and then combine the prediction results of each part to get the final prediction result.
[0088] During the evaluation process, the grid search method is used to adjust the parameters of GRU and select the optimal hyperparameters. At the same time, the accuracy of the model is evaluated by calculating the mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE) and determination coefficient (R2) evaluation indicators. Among them, the smaller the mean square error (MSE), root mean square error (RMSE), and mean absolute error (MAE), the higher the prediction accuracy of the method, and the higher the value of the determination coefficient (R2), the stronger the fitting ability of the model. After the above steps, the optimal prediction model is obtained.
[0089] Step 5: Obtain the real-time data of the bridge wireless sensor, and determine whether the real-time data is missing based on the timestamp and data content. If there is missing data, call the optimal prediction model to reconstruct the missing data segment and store the reconstructed data in the time series database.
[0090] Based on the above embodiment, the step of calling the optimal prediction model to reconstruct the missing data segment includes:
[0091] The missing data in the real-time data and its corresponding timestamps are input into the optimal prediction model to obtain the predicted missing value results, which are then reversely processed to obtain the actual missing values.
[0092] Furthermore, the expression of the reverse processing is
[0093]
[0094] in, is the predicted value of the model after standardization. is the actual value after reverse processing.
[0095] When implementing it, Figure 3As shown in the figure, the bridge sensor time series missing data reconstruction model based on EMD and GRU forms a calling module, obtains real-time bridge sensor data through the HTTP interface of the bridge detection system, and determines whether the data has missing values based on the timestamp and data content. If there is missing data, the start and end positions of the missing data segment are marked, and the missing data is predicted and reconstructed by calling the model. The specific reconstruction process is that after obtaining the predicted missing value result, it needs to be reversed to obtain the actual value, as shown in the following formula. Among them, is the predicted value of the model after standardization. is the actual value after reverse processing. The reconstructed data is then stored back into the InfluxDB database.
[0096] The method for reconstructing missing data of bridge sensor time series based on EMD and GRU provided in this embodiment solves the complexity, non-smoothness and nonlinearity problems of bridge time series data by introducing empirical mode decomposition, accelerates the computational efficiency and training speed of data reconstruction based on GRU, and has good adaptability and scalability.
[0097] It should be understood that various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof.
[0098] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A bridge sensor time series missing data reconstruction method based on EMD and GRU, characterized in that: include: Step 1, obtaining the time series data of the bridge wireless sensor and storing it in the time series database; Step 2: preprocess the time series data, identify the timestamps corresponding to the missing data, and divide the time series data into a training set and a test set according to a preset ratio; Step 3: Decompose the training set and the test set using the empirical mode decomposition method according to the time scale characteristics, and decompose the time series data that meets the requirements into a linear combination of a finite number of eigenmode sequences; The step 3 specifically includes: Step 3.1, based on the original signal of the given training set and test set , find all the maximum values and minimum value , and then perform cubic spline interpolation; Step 3.2, according to the maximum value Forming the upper envelope curve, the minimum The lower envelope curve is formed, and the average value is calculated based on the upper and lower envelope curves. ; Step 3.3, based on time series data and average Calculate intermediate signal ; Step 3.4, determine the intermediate signal Does it meet the IMF requirements? If so, As the first IMF component, denoted as If not satisfied, then as the original signal, and recalculate , repeat this process until Satisfy IMF requirements and obtain multiple IMF components; Step 3.5, when an IMF component is obtained, calculate the monotonic function , determine the calculation of monotonic function Is it monotonic? If not, return to step 3.
4. If it is, stop iterating and set the monotonic function As residual ; Step 3.6, from the original signal All IMF components and residuals decomposed in are taken as linear combinations of the intrinsic mode sequences; Step 4, design an initial prediction model based on the intrinsic mode sequence of GRU, specify the initial prediction model hyperparameter combination and loss function, use the grid search method to train the initial prediction model on the decomposed training set and select the hyperparameters with the best performance to obtain the optimal model; The step 4 specifically includes: Step 4.1, use the initial forecast model to forecast each decomposed IMF component and residual, and then combine the forecast results of each part to obtain the final forecast result; Step 4.2: Use the grid search method to adjust the GRU parameters, select the optimal hyperparameters, and obtain the optimal model; Step 5: Obtain the real-time data of the bridge wireless sensor, and determine whether the real-time data is missing based on the timestamp and data content. If there is missing data, call the optimal prediction model to reconstruct the missing data segment, and store the reconstructed data in the time series database; The step of calling the optimal prediction model to reconstruct the missing data segment includes: The missing data in the real-time data and its corresponding timestamps are input into the optimal prediction model to obtain the predicted missing value results.
2. The method according to claim 1, characterized in that , the preprocessing operation is a standardization operation, and the expression of the standardization operation is in, is the actual value of the original time series data, is the standardized time series data, is the maximum value of the time series data, is the minimum value of the time series data.
3. The method according to claim 1, characterized in that , the average value The expression is ; The intermediate signal The expression is ; The monotonic function The expression is ; The linear combination of the eigenmode sequence is expressed as 。
Citation Information
Patent Citations
Log analysis service real-time synchronization system under active-standby environment of databases
CN108897641A
An EMD-GRU short-term power load prediction method based on feature selection
CN109886498A
Building power load multi-step prediction method and system based on deep learning
CN111080002A
Displacement step type reservoir landslide accumulated displacement prediction method based on optimal time scale of EEMD-GRU model
CN114897257A
Method and system for improving time sequence prediction effect
CN114897274A
