A heavy vehicle rollover warning method based on LSTM-DTW
Through LSTM neural network and DTW template matching technology, combined with S-G filtering and noise reduction, the rollover curve template is extracted, which solves the time limitations and high false alarm rate of traditional rollover warning methods, and achieves more accurate rollover warning and Improved security.
Patent Information
- Application Number
- CN202211030898.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-08-26
AI Technical Summary
Traditional rollover warning methods have time limitations in rescuing rollover accidents, and have a high false alarm rate, making it difficult to detect vehicle rollover danger in advance, reducing the safety of drivers and vehicles.
The LSTM neural network is used to predict the trend of vehicle motion parameters, combined with DTW template matching, and the rollover curve template is extracted through S-G filtering and denoising of the vehicle roll angle velocity to achieve prediction of the future state of the vehicle and rollover identification.
It improves the accuracy of rollover warning, reduces the false alarm rate, senses rollover danger in advance, gives the driver more time to take measures to avoid accidents, and enhances vehicle safety.
Smart Images

Figure CN115285137B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of early warning methods, and specifically to performing SG filtering on the roll angular velocity of a vehicle motion parameter to effectively reduce noise and use an LSTM neural network to perform trend prediction on the premise of maintaining original signal information, performing DTW template matching on the predicted curve and a standard template to finally realize rollover recognition. Background Art
[0002] With the rapid development of my country's economy, heavy-duty transport vehicles are closely related to the development of the national economy, especially in the fields of logistics and engineering construction. Heavy-duty trucks are the future development direction, which has created the inevitability of heavy-duty vehicle industry demand. However, due to the characteristics of heavy-duty trucks: large structural dimensions, high center of gravity, and large loading capacity, their roll stability is poor and rollover accidents are very likely to occur. Therefore, the transportation conditions of heavy-duty vehicles cannot be ignored for their safe transportation.
[0003] Traditional rollover risk identification methods achieve risk identification by comparing rollover indicators such as lateral acceleration or roll angle to see if they exceed the set threshold. Although vehicle rollover behavior is instantaneous, it has a continuous behavior with time attributes. Due to dynamic changes and unexpected interference, the vehicle rollover identification method cannot confirm whether it has a rollover risk only through parameters at a certain moment. At the same time, due to the instantaneous nature of its rollover behavior, traditional warning methods have time limitations in saving rollover accidents. Summary of the invention
[0004] Purpose of the invention: In order to perceive the danger of vehicle rollover in advance and give the driver more time to avoid rollover accidents, and at the same time to improve the accuracy of rollover warning, reduce the false alarm rate, and enhance the safety of drivers and cars, a heavy vehicle rollover warning method based on LSTM-DTW is proposed.
[0005] Technical solution:
[0006] In order to solve the above technical problems, the present invention is implemented through the following technical solutions:
[0007] Step 1: Obtain the vehicle rollover curve template.
[0008] Step 2: Predict the trend of the vehicle's driving status in the future time period.
[0009] Step 3: Predict curve template matching for rollover recognition.
[0010] The first step is to obtain the vehicle rollover curve template, and the specific method is:
[0011] (1) Carry out rollover tests at different vehicle speeds, loads, and turning radii, and extract the values of the vehicle body lateral acceleration, roll angular velocity, and yaw angular velocity under different conditions.
[0012] (2) Through the correlation analysis method, it is determined that the characteristic changes of the roll angular velocity of the vehicle when it rolls over are relatively consistent, and the roll angular velocity is selected as the prediction object and rollover template.
[0013]
[0014] Where X t , Y t For two time series, this formula describes the mutual coefficient of the two time series. The numerator is the covariance of the X series and the Y series, and the denominator represents the standard deviation of the X series and the Y series respectively. represents the mean of two time series;
[0015] (3) Through the similarity analysis method of dynamic time warping, the template information of the roll angular velocity when the vehicle rolls over under specific conditions is extracted.
[0016] The second step is to predict the trend of the vehicle's driving state in the future time period, and the method of establishing the prediction model is:
[0017] (1) Obtain non-rollover data and rollover data of the vehicle under different driving conditions.
[0018] (2) Perform SG filtering to reduce noise on the acquired data.
[0019] According to the length and order of the training time series, the convolution coefficient is found from the convolution coefficient table, and the edge effect caused by the convolution is improved by the mirror extension method. The result of the mirror extension is convolved with the convolution coefficient, and the middle is truncated according to the frame length. If the training effect is not ideal, the number of smoothing times can be set to make the extracted trajectory information smoother.
[0020] (3) The denoised data is divided into training data and test data, and the preprocessed training data is normalized and divided into input and output according to the sliding window time step and the predicted time step.
[0021] (4) Establish an LSTM deep neural network model, set relevant parameters of the neural network, and establish the optimal LSTM deep neural network.
[0022] The LSTM neural network is set by the number of hidden layer neurons, the number of batch samples, the number of training iterations, and the learning rate to build a LSTM neural network prediction model for vehicle motion parameter trend prediction.
[0023] (5) The trained optimal LSTM deep neural network predicts the future vehicle driving state parameters. The input and output methods of its training data are:
[0024] Set the sampling interval as \(t\), set the length of the data sequence of a certain motion attribute of the vehicle as \(p\), and the predicted future time point as \(q\), requiring \(q < p\); then the input \(x_{train}\) for training = \(\{x(t - p + 1), \ldots, x(t - 1), x(t)\}\), and the output \(y_{train}\) for training = \(\{x(t-(p - q)+1), \ldots, x(t + q - 1), x(t + q)\}\).
[0025] In step three, template matching is performed on the predicted curve to identify whether there is a risk of rollover in the future state curve. The specific rollover recognition method for template matching is as follows:
[0026] (1) According to the characteristics of the rollover curve of the roll angle velocity, define two rollover templates for the roll angle velocity. One is called the working rollover curve, and the other is the auxiliary rollover curve. The slope of the working rollover curve template is greater than that of the auxiliary rollover curve.
[0027] (2) Parameter initialization: Use the dynamic time warping algorithm to calculate the distance between the working rollover curve and the auxiliary rollover curve, denoted as \(W1\), calculate the distance \(dis1\) between the predicted curve and the working rollover curve, calculate the distance \(dis2\) between the predicted curve and the auxiliary rollover curve, and at the same time calculate the distance difference \(diff\). dis :
[0028] \(diff\) dis = \(dis1 - dis2\) (2)
[0029] In addition, it is also necessary to calculate the average distance between the known time series curve in the non-rollover state and the working rollover curve in real time, denoted as \(W2\).
[0030] (3) Compare \(diff(t)\), \(diff(t - 1)\), \(diff(t - 2)\) in real time. When the number of times satisfying formula (3) is greater than 3 and \(diff(t)<W1\), the rollover warning is at level I. At this time, stop calculating the average distance \(W2\) between the known time series and the rollover working curve. dis \(diff\) dis \((t)\), \(diff\) dis \((t - 1)\), \(diff\)
[0031] \(diff\) dis \((t)<diff\) dis \((t - 1)<diff\) dis \((t - 2)\) (3)
[0032] When it is greater than 3 and \(diff(t)<W1\), the rollover warning is at level I. At this time, stop calculating the average distance \(W2\) between the known time series and the rollover working curve. dis (t)<W1, the rollover warning is at level I. At this time, stop calculating the average distance \(W2\) between the known time series and the rollover working curve.
[0033] (4) In the state of level I alarm, when it is found that there is a minimum value in the distance of the working rollover curve when formula (4) is satisfied, enter the state of level II alarm.
[0034] dis1(t - 1) < dis1(t - 2) and dis1(t) > dis1(t - 1) (4)
[0035] (5) In the state of level II alarm, when the formulas (5), (6), and (7) are satisfied, level III alarm is carried out, and at this time the vehicle enters the severe rollover state.
[0036] dis1(t) < dis1(t - 1) < dis1(t - 2) (5)
[0037] dis2(t) < dis2(t - 1) > dis2(t - 2) (6)
[0038] dis1(t) < dis2(t) (7)
[0039] In the state of level II alarm, and if the formula (8) is satisfied
[0040] dis1(t) > dis1(t - 1) > dis1(t - 2) (8)
[0041] and dis1(t) > W2, then the rollover alarm is解除.
[0042] In step (2), the sub - steps of performing S - G filtering on the vehicle motion data are as follows
[0043] 2.1 Design a Savitzky - Golay FIR smoothing filter with a frame length of m and an order of n to obtain a convolution coefficient table, requiring n < m and m to be odd;
[0044] 2.2 Perform mirror extension on the original data to improve the edge effect caused by convolution;
[0045] 2.3 Perform convolution operation on the obtained convolution coefficient table h[m] and the mirror - extended data x[n];
[0046]
[0047] where y[n] is the filtered result, h[m] is the convolution coefficient table designed according to the frame length and order, and x[n] is the result of mirror - extending the original data.
[0048] 2.4 Perform intermediate truncation according to the frame length m;
[0049] 2.5 If the smoothing effect is not ideal, the smoothing times can be set, and cycle the smoothing filtering according to steps 2.2 - 2.4 until the smoothing times are satisfied.
[0050] In step (5), the methods of input and output of the training data are as follows
[0051] It should be noted that in the translation of "and dis1(t) > W2, then the rollover alarm is解除.", the word "解除" in Chinese is not accurately translated as there is no exact English equivalent in this context. A more appropriate expression might be "cancelled" or "terminated", but this translation is based on the original text. Also, please check if there are any specific requirements or corrections needed for this part.Set the sampling interval as t, set the length of the data sequence of a certain motion attribute of the vehicle as p, and the predicted future time point as q, where q < p; then the input for training x_train = {x(t - p + 1), …, x(t - 1), x(t)}, and the output for training y_train = {x(t - (p - q) + 1), …, x(t + q - 1), x(t + q)}.
[0052] According to the distance curves between the prediction curve, the working rollover curve, and the auxiliary rollover curve, the rollover warning can be divided into three levels:
[0053] When the formula (10) is satisfied, the number of times is greater than 3, and diffdis(t) < W1, the rollover warning is at level I;
[0054] diff dis (t) < diff dis (t - 1) < diff dis (t - 2) (10)
[0055] When the formula (11) is satisfied, it enters the level II alarm state;
[0056] dis1(t - 1) < dis1(t - 2) and dis t (t) > dis t (t - 1) (11)
[0057] When the formulas (12)(13)(14) are satisfied, a level III alarm is carried out;
[0058] dis1(t) < dis1(t - 1) < dis t (t - 2) (12)
[0059] dis2(t) > dis2(t - 1) > dis2(t - 2) (13)
[0060] dis1(t) < dis2(t) (14).
[0061] The present invention has the following advantages and positive effects compared with the prior art:
[0062] 1. Compared with the prior art, the present invention analyzes the similarity and correlation of rollover data features, uses the rollover curve of the roll angle velocity under a certain determined condition as the feature template, and performs rollover recognition through the dynamic time warping algorithm. By combining the physical meaning of the dynamic time warping algorithm with the rollover recognition algorithm, it recognizes the future continuous curve changes, thereby improving the accuracy of the rollover warning system.
[0063] 2. Based on historical data, long short-term memory networks are used to achieve long-term predictions of future driving conditions, so that the rollover warning system has good predictive capabilities, can perceive the danger of rollover in advance, and give the driver more time to take remedial measures to avoid the occurrence of rollover danger.
[0064] 3. When the roll angular velocity is used as the research object for model training, the roll angular velocity changes dramatically because it is affected by the roughness of the road surface. It is proposed to use the SG filtering method to pre-process the data. While filtering out the interference signal, the vehicle change trend information gradually becomes clear, reducing the complexity of model prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A schematic flow chart of a vehicle rollover warning method of the present invention is shown.
[0066] Figure 2 The method for obtaining the vehicle rollover curve template is shown.
[0067] Figure 3 A schematic flow chart of a vehicle motion parameter trend prediction method based on an LSTM neural network is shown.
[0068] Figure 4 The SG filtering noise reduction flow chart is shown.
[0069] Figure 5 A comparison chart of SG filtering roll velocity filtering results is shown.
[0070] Figure 6 The steps of data preprocessing are shown.
[0071] Figure 7 A schematic diagram of the input and output partitioning of the training set is shown.
[0072] Figure 8 A flow chart of rollover recognition by predicting curve template matching is shown.
[0073] Fig. 9 The working rollover curve and the auxiliary rollover curve in the simulation template rollover curve are shown.
[0074] Fig.10 A Level I alarm flow chart is shown.
[0075] Fig.11 A Level II alarm flow chart is shown.
[0076] Fig.12 A Level III alarm flow chart is shown.
[0077] Fig.13 A forecast graph showing the fifth moment in the future
[0078] Fig.14 It shows the implementation of level I, II, and III alarms based on the prediction curve. DETAILED DESCRIPTION
[0079] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, which are intended to explain the present invention rather than to limit it.
[0080] The following will be combined with the attached Figure 1 The specific implementation of the technical solution of the present invention is described in detail, and the specific steps are as follows:
[0081] Step 1: Obtain the vehicle rollover curve template.
[0082] Step 2: Predict the trend of the vehicle's driving status in the future time period.
[0083] Step 3: Predict curve template matching for rollover recognition.
[0084] like Figure 2 As shown, the first step is to obtain the vehicle rollover curve template, the purpose of which is to obtain the common characteristics of the vehicle rollover through experiments. The specific method for obtaining the vehicle rollover curve template is:
[0085] Rollover experiments are carried out under different vehicle speeds, loads, and turning radii, and the lateral angular velocity, roll angular velocity, and yaw angular velocity of the vehicle body are collected through sensors.
[0086] Through the correlation analysis method, it is determined that the characteristic changes of the roll angular velocity of the vehicle when it rolls over are relatively consistent, and the roll angular velocity is selected as the prediction object and rollover template.
[0087]
[0088] Where X t , Y t For two time series, this formula describes the mutual coefficient of the two time series. The numerator is the covariance of the X series and the Y series, and the denominator represents the standard deviation of the X series and the Y series respectively. represents the mean of two time series;
[0089] Based on the similarity analysis method of dynamic time warping, similarity analysis is performed on the roll angular velocity collected under different conditions, and it is found that the distance of the rollover curve under the roll angular velocity is smaller than the distance of the rollover curve under other conditions.
[0090] like Figure 3As shown, Step 2 is the trend prediction of the vehicle's driving state parameters in the future. Its purpose is to establish a prediction model for the roll angular velocity parameters in the non-rollover and rollover states of the vehicle through the analysis and training of historical data, and complete the prediction part in the vehicle rollover warning method.
[0091] Obtain the motion parameters of the vehicle during non-rollover driving and rollover driving, specifically as follows:
[0092] Select a driving route that includes various working conditions of the vehicle, such as straight driving, turning, double lane change, etc. The road conditions are required to be complex, and the road surface conditions should also be diverse. Include slopes, potholes, etc., and multiple driving routes can be selected to collect information.
[0093] Perform S-G filtering on the collected data information, select an appropriate window length, fitting order, and smoothing times to ensure that the signal after filtering can not only not lose the original information, but also be conducive to the training and learning of the LSTM neural network. The window length is required to be odd; and the selection of the window length is related to the real-time acquisition frequency. The specific steps of the S-G filtering are as Figure 4 shown.
[0094] 2.1 Design a Savitzky-Golay FIR smoothing filter with a frame length of m and an order of n to obtain a convolution coefficient table, requiring n < m and m to be odd.
[0095] 2.2 Perform mirror extension on the original data to improve the edge effect caused by convolution.
[0096] 2.3 Perform convolution operation on the obtained convolution coefficient table h[m] and the mirror-extended data x[n].
[0097]
[0098] Among them, y[n] is the result after filtering, h[m] is the convolution coefficient table designed according to the frame length and order, and x[n] is the result of mirror extension of the original data.
[0099] 2.4 Perform intermediate truncation according to the frame length m.
[0100] 2.5 If the smoothing effect is not ideal, the smoothing times can be set, and cycle smoothing filtering according to steps 2.2 - 2.4 until the smoothing times are satisfied.
[0101] The S-G filtering comparison chart is as Figure 5 shown.
[0102] When selecting the inputs and outputs of the training set and the test set, it should be noted that the inputs and outputs of the training set and the test set should be consistent with the window length of the S-G filter. Since the vehicle's movement changes in chronological order, it is trained according to the sequence-to-sequence model. This model is better at utilizing sequence information over a longer range and making predictions by synthesizing sequence context. The principle of sequence combination follows that described in 3.2. The predicted future time steps should not exceed the length of the training time series, as excessive length will affect the prediction accuracy. The specific data processing flowchart is as Figure 6 shown.
[0103] 3.1 Normalize the results after S-G filtering
[0104]
[0105] Among them, x* is the normalized data, x is the original data, min is the minimum value of the training set data, and max is the maximum value of the training set data.
[0106] 3.2 Establish an LSTM prediction model based on the historical data of vehicle driving in a certain city. The parameters involved in vehicle rollover defined in this paper are:
[0107] R = (ω x ) T
[0108] Then the time series of the historical data of vehicle driving is:
[0109] R = (ω x ) T
[0110] where n represents the driving data R collected at the nth moment n . In this paper, the filtered vehicle driving data set is used to construct the inputs and outputs of the prediction model. The driving data set is:
[0111] RTS = {RT1, RT2, RT3,... RT m}
[0112] Let the length of the time series be p, and the predicted future moment be q (q < p). Take the vehicle motion parameters R(t - p + 1)... R(t - 1) and R(t) as the training inputs, then R(t - (p - q) + 1)... R(t + q - 1), R(t + q) are the training outputs. Taking the RT1 time series as an example, according to the above method, it is gradually shifted to the right by one time unit. The specific operation is as Figure 7 shown.
[0113] 3.3 Divide the training samples and test samples of the vehicle operation data.
[0114] The number of neurons in the input and output layers of the neural network is determined by the training data. During training, the number of neurons in the LSTM layer, the size of miniBatchSize, and the maxEpochs value will have a significant impact on the prediction accuracy of the network. The root mean square error (RMSE) and correlation coefficient (R) are used as evaluation indicators in model debugging, and the relevant parameters of the network are debugged to optimize the root mean square error and correlation coefficient. The smaller the value of the mean square error, the higher the accuracy of the prediction, and the larger the correlation coefficient, the closer the predicted sequence is to the original sequence.
[0115]
[0116] where observed t is the actual observed time series, predicted t To predict time series
[0117] The trained optimal LSTM deep neural network predicts future vehicle driving state parameters.
[0118] like Figure 8 As shown, step three is the rollover behavior identification stage, and its purpose is to match the prediction curve obtained in step two with the standard template obtained in step one to identify whether there is a rollover risk. The predicted risk is divided into level I, level II, and level III. The specific steps are as follows:
[0119] (1) Fig. 9 The rollover curve of the roll angle velocity during rollover is shown. According to the characteristics of the roll angle velocity rollover curve, two roll angle velocity rollover templates are defined, one is called the working rollover curve, and the other is the auxiliary rollover curve. The slope of the working rollover curve template is greater than that of the auxiliary rollover curve.
[0120] (2) Parameter initialization: Use the dynamic regularization algorithm to calculate the distance between the working rollover curve and the auxiliary rollover curve, recorded as W1, calculate the distance between the predicted curve and the working rollover curve, dis1, calculate the distance between the predicted curve and the auxiliary rollover curve, and calculate the distance difference between the two, diff dis :
[0121] diff dis =dis1-dis2 (5)
[0122] In addition, it is necessary to calculate the average distance between the known time series curve and the working rollover curve in the non-rollover state in real time, which is recorded as W2
[0123] (3) Fig.10 As shown, real-time diff comparison dis (t), diff dis (t-1), diff disThe result of (t - 2), when satisfying the common
[0124] diff dis (t) < diff dis (t - 1) < diff dis (t - 2) (6)
[0125] When the degree of formula (6) is greater than 3 and diff dis (t) < W1, the rollover warning is level I. At this time, stop calculating the average distance W2 between the known time series and the rollover working curve.
[0126] (4) As Fig.11 shown, in the state of level I alarm, when it satisfies formula (7) and a minimum value is found in the distance of the working rollover curve, enter the level II alarm state.
[0127] dis1(t - 1) < dis1(t - 2) and dis1(t) > dis1(t - 1) (7)
[0128] (5) As Fig.12 shown, in the state of level II alarm, when it satisfies formulas (8)(9)(10), conduct a level III alarm. At this time, the vehicle enters a serious rollover state.
[0129] dis1(t) < dis1(t - 1) < dis1(t - 2) (8)
[0130] dis2(t) < dis2(t - 1) > dis2(t - 2) (9)
[0131] dis1(t) < dis2(t) (10)
[0132] In the state of level II alarm, and if it satisfies formula (11)
[0133] dis1(t) > dis1(t - 1) > dis1(t - 2) (11)
[0134] and dis1(t) > W2, then解除 the rollover alarm.
[0135] An embodiment: Through the Trucksim simulation software, when the vehicle speed is 70 km / h to 110 km / h, the load is 20% to 100% of the full load, and the turning radius is 50 m to 90 m, through the similarity analysis method, it is obtained that when the vehicle speed is 90 km / h, the load is 60% of the full load, and the turning radius is 70 m, the distance from it to the rollover curve when rollover occurs under other condition settings is the smallest. Therefore, set the rollover curve of the roll angle speed when the vehicle speed is 90 km / h, the load is 60% of the full load, and the turning radius is 70 m as the rollover template curve. It should be noted that there is an unclear expression "解除" in the original text which might need further clarification in the source language context. I translated it as "解除" for now as it's not clear what specific operation or state it refers to precisely.
[0136] Using Trucksim software to set the double lane shift rollover condition, the vehicle speed is set to 130km / h, and the full load is 100%. The schematic diagram of the vehicle rollover prediction and step-by-step alarm is as follows: Fig.13 , as shown in 14.
[0137] The above implementation is only used to illustrate the present invention, and the order and details of each step may be changed.
Claims
1. A heavy vehicle rollover warning method based on LSTM-DTW, characterized in that: The method comprises the following steps: Step 1: Acquisition of vehicle rollover curve template; Step 2: Predict the trend of the vehicle's driving status in the future time period; Step 3: Prediction curve template matching and rollover recognition; The method for predicting the trend of the vehicle's driving state in the future time period in step 2 is: (1) Obtaining non-rollover data and rollover data of the vehicle under different driving conditions; (2) Perform SG filtering to reduce noise on the acquired data; according to the length and order of the training time series, find the convolution coefficient from the convolution coefficient table, use the mirror extension method to improve the edge effect caused by convolution, perform convolution operation on the result of mirror extension and the convolution coefficient, and perform intermediate truncation according to the frame length. If the training effect is not ideal, the number of smoothing times can be set to make the extracted trajectory information smoother; (3) Divide the denoised data into training data and test data, normalize the preprocessed training data, and divide the input and output according to the sliding window time step and the predicted time step; (4) Establishing an LSTM deep neural network model, setting relevant parameters of the neural network, and establishing an optimal LSTM deep neural network; setting the LSTM neural network by the number of hidden layer neurons, the number of batch samples, the number of training iterations, and the learning rate, and constructing a vehicle motion parameter trend prediction model; setting the network, and constructing an LSTM neural network prediction model for vehicle motion parameter prediction; (5) The trained optimal LSTM deep neural network predicts the future vehicle driving state parameters; The method for predicting the rollover recognition by matching the curve template in step 3 is as follows: (1) According to the characteristics of the rollover curve of the roll angle velocity, two rollover templates of the roll angle velocity are defined, one is the working rollover curve, and the other is the auxiliary rollover curve; the slope of the working rollover curve template is greater than that of the auxiliary rollover curve; (2) Parameter initialization: Use the dynamic regularization algorithm to calculate the distance between the working rollover curve and the auxiliary rollover curve, recorded as W1, calculate the distance between the predicted curve and the working rollover curve, dis1, calculate the distance between the predicted curve and the auxiliary rollover curve, and calculate the distance difference between the two, diff dis : diff dis =dis1-dis2 (2) In addition, the average distance between the known time series curve and the working rollover curve in the non-rollover state needs to be calculated in real time, which is recorded as W2; (3) Real-time diff comparison dis (t), diff dis (t-1), diff dis The result of (t-2) is diff dis (t)<diff dis (t-1)<diff dis (t-2) (3) When the number of times satisfying formula (3) is greater than 3 and diff dis (t) < W1, the rollover warning is at level I; at this time, stop calculating the average distance W2 between the known time series and the rollover working curve; (4) In the state of Level I alarm, when formula (4) is satisfied and it is found that the working rollover curve distance has a minimum value, the Level II alarm state is entered; dis1(t-1)<dis1(t-2) and dis1(t)>dis1(t-1) (4) (5) In the state of Level II alarm, when formulas (5), (6), and (7) are satisfied, a Level III alarm is issued, and the vehicle enters a serious rollover state; dis1(t)<dis1(t-1)<dis1(t-2) (5) dis2(t)<dis2(t-1)>dis2(t-2) (6) dis1(t)<dis2(t) (7) In the II level alarm state, if formula (8) is satisfied dis1(t)>dis1(t-1)>dis1(t-2) (8) And if dis1(t)>W2, the rollover alarm is cancelled.
2. A heavy vehicle rollover warning method based on LSTM-DTW according to claim 1, characterized in that: The method for obtaining the vehicle rollover template in step 1 is: (1) Conduct rollover experiments at different vehicle speeds, load weights, and turning radii, and extract the values of vehicle body lateral acceleration, roll angular velocity, and yaw angular velocity under different conditions. (2) Through the correlation analysis method, it is determined that the characteristic changes of the roll angular velocity are relatively consistent during vehicle rollover. Select the roll angular velocity as the prediction object and rollover template. Where X t , Y t For two time series, this formula describes the mutual coefficient of the two time series. The numerator is the covariance of the X series and the Y series, and the denominator represents the standard deviation of the X series and the Y series respectively. represents the mean of two time series; (3) Through the similarity analysis method of dynamic time warping, extract the template information of the roll angular velocity during vehicle rollover under specific conditions.
3. A heavy vehicle rollover warning method based on LSTM-DTW according to claim 1, characterized in that: In step (2) of step two, the sub-steps of performing S-G filtering on vehicle motion data are as follows: 2.1 Design a Savitzky-Golay FIR smoothing filter with a frame length of m and an order of n to obtain a convolution coefficient table, requiring n < m and m to be odd. 2.2 Perform mirror extension on the original data to improve the edge effect caused by convolution. 2.3 Perform convolution operation on the obtained convolution coefficient table h[m] and the mirror-extended data x[n]. Where y[n] is the filtered result, h[m] is the convolution coefficient table designed according to the frame length and order, and x[n] is the result of mirror extension of the original data. 2.4 Perform middle truncation according to the frame length m. 2.5 If the smoothing effect is not ideal, the smoothing times can be set, and cycle smoothing filtering according to steps 2.2 - 2.4 until the smoothing times are satisfied.
4. A heavy vehicle rollover warning method based on LSTM-DTW according to claim 1, characterized in that: In step (5) of step two, the input and output methods of the training data are as follows: Set the sampling interval as t, set the data sequence length of a certain motion attribute of the vehicle as p, and the predicted future time point as q, requiring q < p; then the training input x_train = {x(t - p + 1), …, x(t - 1), x(t)}, and the training output y_train = {x(t - (p - q) + 1), …, x(t + q - 1), x(t + q)}.
