Driver head dynamics prediction method, device and equipment based on LSTM

Through the driver's head dynamics prediction method based on LSTM, the problems of difficulty in obtaining material parameters, simplified model assumptions and long calculation time of the finite element method in occupant injury prediction are solved, and a deep-level mapping of material parameters with zero dependence is achieved. and millisecond-level predictions, meeting the requirements for accurate description and real-time performance of complex scenarios.

CN118643729APending Publication Date: 2024-09-13CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410282438.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-13
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

The finite element method has problems in obtaining material parameters, simplified model assumptions and long calculation time in occupant injury prediction, making it difficult to meet the accurate description and real-time requirements of complex scenes.

Method used

The driver's head dynamics prediction method based on LSTM is used to achieve accurate prediction of the driver's head dynamics behavior by constructing and training the LSTM model, using vehicle data for data preprocessing and model training, and avoiding the need to build a finite element model. needs.

Benefits of technology

It achieves zero-dependent end-to-end prediction of material parameters, can perform deep mapping of complex situations, meets the real-time requirements of millisecond-level prediction speed, and significantly improves prediction accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643729A
    Figure CN118643729A
Patent Text Reader

Abstract

The invention discloses a driver head dynamics prediction method, device and equipment based on LSTM (Long Short Term Memory). The method comprises the following steps: acquiring vehicle data of different experiments under the same working condition; cleaning, normalizing and de-noising the collected vehicle data; dividing the preprocessed data set into a training set and a test set; constructing an LSTM (Long Short Term Memory) model; carrying out LSTM model training based on the training set, judging whether the model is convergent through a loss curve of model training, and if the model is not convergent, carrying out model training again after parameter optimization; performing model prediction precision evaluation on the driver head acceleration curve based on the test set; for the LSTM model meeting the precision test, directly outputting the model; and for the LSTM model which does not meet the precision test, carrying out model optimization and then carrying out model training again.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of driver head injury simulation prediction, and specifically relates to a driver head dynamics prediction method, device and equipment based on LSTM. Background Art

[0002] In vehicle accidents, occupant injury prediction is an important research issue. The finite element method is a common method to solve this problem. This method uses the vehicle body dynamics behavior as input, predicts the occupant's dynamics behavior by establishing a finite element model, and then calculates the occupant's injury. The finite element method can simulate the movement trajectory and collision process of the vehicle and occupants more accurately, so it has a good application effect in some specific scenarios. However, the finite element method has three serious problems:

[0003] 1) The modeling of finite element models requires a large number of material parameters, and the acquisition and verification of these parameters require a lot of experiments and data support.

[0004] 2) The finite element model has certain assumptions and simplification principles, which makes it difficult to accurately describe and predict complex situations.

[0005] The solution of the finite element method requires a long time of solution calculation and it is difficult to meet the real-time requirements. Summary of the invention

[0006] In order to solve the above problems in the prior art, the present invention provides a driver head dynamics prediction method based on LSTM, constructs an LSTM model and performs model training. The tested LSTM model can accurately predict the driver's head dynamics behavior during a vehicle collision, and then calculate the driver's injuries.

[0007] The objective of the present invention is achieved through the following technical solutions:

[0008] As one aspect of the present invention, a method for predicting driver head dynamics based on LSTM is provided, comprising:

[0009] S1. Collect vehicle data: Collect vehicle data from different experiments under the same working conditions;

[0010] S2. Data preprocessing: cleaning, normalizing and denoising the vehicle data collected in step S1;

[0011] S3. Sample data division: Divide the data set preprocessed in step S2 into a training set and a test set;

[0012] S4.LSTM model construction;

[0013] S5.LSTM model training: Perform model training based on the training set, and determine whether the model has converged by the loss curve of the model training. If the model has converged, proceed to step S6; otherwise, perform parameter tuning and retrain the model.

[0014] S6. LSTM model test: evaluate the model prediction accuracy of the driver's head acceleration curve based on the test set; for the LSTM model that meets the accuracy test, directly output the model; for the LSTM model that does not meet the accuracy test, perform model tuning and then return to step S5.

[0015] Furthermore, in step S1, the vehicle data at least includes collision time, vehicle body acceleration and driver head acceleration.

[0016] Furthermore, the step S2 comprises:

[0017] S21. Data cleaning: Using Python programming language and data analysis libraries Pandas and Numpy, the collision time, vehicle acceleration and driver head acceleration in the vehicle data collected in step S2 are automatically batch extracted;

[0018] S22. Data normalization: Using the MinMaxScaler method in the sklearn library, the original data is fitted and transformed linearly to [0,1] so that different features have the same scale;

[0019] S23. Data denoising: CFC60 is used to filter the vehicle acceleration, and CFC1000 is used to filter the driver's head acceleration.

[0020] Furthermore, in step S5, the mean square error (MSE) is used to measure the performance of the LSTM model and guide model training; the MSE calculation formula is as follows:

[0021]

[0022] In the formula, n is the number of samples, y is i is the actual value, is the predicted value.

[0023] Furthermore, in step S6, the calculation formula of the prediction accuracy R is as follows:

[0024] R=0.4·Z+0.2·E P +0.2E M +0.2E S

[0025] Where Z is the channel correlation between the two curves, E Pis the phase correlation between the two curves, E M is the amplitude correlation between the two curves, E S is the slope correlation between the two curves.

[0026] As a second aspect of the present invention, a driver head dynamics prediction device based on LSTM is provided, comprising:

[0027] A data acquisition module, used to collect vehicle data of different experiments under the same working condition, wherein the vehicle data at least includes collision time, vehicle body acceleration and driver head acceleration;

[0028] Data preprocessing module, used to clean, normalize and denoise the collected vehicle data;

[0029] The sample data partitioning module is used to divide the preprocessed data set into a training set and a test set;

[0030] LSTM model building module, used to build LSTM models using PyTorch;

[0031] The LSTM model training module is used to train the LSTM model using the mean square error method based on the training set; and send the trained model to the LSTM model testing module;

[0032] The LSTM model testing module is used to test the LSTM model based on the test set; the LSTM model that meets the test requirements is directly sent to the LSTM model output module; the LSTM model that does not meet the test requirements is returned to the LSTM model training module after parameter optimization;

[0033] The LSTM model output module is used to output an LSTM model that meets the test requirements.

[0034] As a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for predicting driver head dynamics based on LSTM described in the present invention is implemented.

[0035] The present invention has the following beneficial effects:

[0036] 1) The present invention is an end-to-end prediction method, which does not require the establishment of a finite element model and achieves zero dependence on material parameters.

[0037] 2) The present invention learns the deep mapping relationship between occupant dynamics and vehicle body dynamics from historical data without making assumptions or simplifications, and can accurately predict complex situations.

[0038] 3) The prediction method of the present invention can achieve millisecond-level prediction of the driver's head dynamic behavior, meeting the real-time requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 This is a flow chart of a driver head dynamics prediction method based on LSTM according to Embodiment 1 of the present invention;

[0041] Figure 2 It is the basic unit structure of LSTM;

[0042] Figure 3 The LSTM model network structure described in the embodiment of the present invention;

[0043] Figure 4 This is the LSTM model training loss curve in the embodiment of the present invention;

[0044] Figure 5 It is the evaluation index of ISO / TS-18571;

[0045] Figure 6 This is a schematic diagram of the LSTM model test results in an embodiment of the present invention;

[0046] Figure 7 This is a schematic diagram of the structure of a computer device described in Example 3 of the present invention. DETAILED DESCRIPTION

[0047] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0048] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0049] Example 1

[0050] like Figure 1As shown, this embodiment takes a passenger car as an example to introduce a driver head dynamics prediction method based on LSTM, including:

[0051] S1. Collect vehicle data:

[0052] The vehicle data of different experiments under the same working condition (such as a frontal 100% rigid wall collision working condition) are collected, and the vehicle data at least includes the collision time, the vehicle body acceleration and the driver's head acceleration.

[0053] S2. Data preprocessing: Clean, normalize and denoise the vehicle data collected in step S1 to improve the performance and generalization ability of the model, including the following steps:

[0054] S21. Data cleaning: Using Python programming language and data analysis libraries Pandas and Numpy, the collision time, vehicle acceleration and driver head acceleration in the experimental vehicle data are automatically extracted in batches. The extracted sample data are shown in Table 1.

[0055] Table 1 LSTM model sample data

[0056]

[0057] S22. Data normalization / standardization: Use the MinMaxScaler method in the sklearn library to fit and transform the original data linearly to [0,1] so that different features have the same scale.

[0058] S23. Data denoising: CFC60 is used to filter the vehicle acceleration, and CFC1000 is used to filter the driver's head acceleration.

[0059] S3. Sample data division: Divide the data set preprocessed in step S2 into a training set and a test set in a ratio of 8:2 for training or testing the model.

[0060] S4.LSTM model construction: Use PyTorch to build the LSTM model. The LSTM model network structure is as follows Figure 3 As shown in , it includes an input layer, a hidden layer and an output layer. The hidden layer includes an encoding layer, an LSTM network, a FC neural network and a decoding layer in sequence. Figure 2 As shown, the LSTM network includes an input gate, a forget gate, and an output gate.

[0061] The model parameter settings are shown in Table 2:

[0062] Table 2 LSTM model parameter settings

[0063]

[0064] The model training environment settings are shown in Table 3:

[0065] Table 3 LSTM model training environment settings

[0066]

[0067] S5. LSTM model training: Based on the training set, the mean square error (MSE) is used to measure the performance of the LSTM model and guide the model training. The MSE is obtained by calculating the average of the squares of the differences between the predicted values ​​and the actual observed values. The smaller the value, the better the model fitting effect. The MSE calculation formula is as follows:

[0068]

[0069] In the formula, n is the number of samples, y is i is the actual value, is the predicted value.

[0070] The training process is visualized, and the loss curve of the LSTM model training is used to determine whether the model has converged. If the model has converged, proceed to step S6; otherwise, the model is retrained after parameter tuning.

[0071] In this embodiment, the training loss curve of the LSTM model is as follows: Figure 4 As shown. Figure 4 It can be seen that the model has successfully converged to a relatively stable state and can proceed to the next step; if the model does not converge, the parameters can be tuned and the model can be retrained.

[0072] S6.LSTM model test: Based on the test set, the prediction accuracy of the driver's head acceleration curve is evaluated from the aspects of channel, phase, amplitude, slope, etc. using the ISO / TS-18571 standard. The evaluation indicators are as follows: Figure 5 As shown; the calculation formula of prediction accuracy R is as follows:

[0073] R=0.4·Z+0.2·E P +0.2E M +0.2E S

[0074] Where Z is the channel correlation between the two curves, E P is the phase correlation between the two curves, E M is the amplitude correlation between the two curves, E S is the slope correlation between the two curves. For the LSTM model that meets the accuracy test, the model is directly output; for the LSTM model that does not meet the accuracy test, the model is optimized and then the step S5 is returned;

[0075] In this embodiment, the LSTM model test results are as follows: Figure 6 As shown, from Figure 5 It can be seen that the predicted curve of the LSTM model overlaps with the true curve to a certain extent, indicating that the LSTM model can capture the characteristics and trends of the data to a certain extent.

[0076] The LSTM model test evaluation results are shown in Table 4:

[0077] Table 4 LSTM model test evaluation results

[0078]

[0079] From Table 4 we can see that:

[0080] The prediction accuracy of the LSTM model is 0.8579, which is significantly higher than the prediction accuracy of the finite element method (0.7620);

[0081] The prediction speed of the LSTM model is 28ms, which is much higher than the prediction speed of the finite element method (8h).

[0082] In addition, if the prediction accuracy of the LSTM model does not meet the standard, the model will be tuned and returned to the previous step to retrain the LSTM model.

[0083] Example 2

[0084] A driver head dynamics prediction device based on LSTM, comprising:

[0085] A data acquisition module, used to collect vehicle data of different experiments under the same working condition, wherein the vehicle data at least includes collision time, vehicle body acceleration and driver head acceleration;

[0086] Data preprocessing module, used to clean, normalize and denoise the collected vehicle data;

[0087] The sample data partitioning module is used to divide the preprocessed data set into a training set and a test set;

[0088] LSTM model building module, used to build LSTM models using PyTorch;

[0089] The LSTM model training module is used to train the LSTM model using the mean square error method based on the training set; and send the trained model to the LSTM model testing module;

[0090] The LSTM model testing module is used to test the LSTM model based on the test set; the LSTM model that meets the test requirements is directly sent to the LSTM model output module; the LSTM model that does not meet the test requirements is returned to the LSTM model training module after parameter optimization;

[0091] The LSTM model output module is used to output an LSTM model that meets the test requirements.

[0092] Example 3

[0093] Figure 7 This is a schematic diagram of the structure of a computer device in Example 3 of the present invention. Figure 7 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 7 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0094] like Figure 7 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0095] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0096] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0097] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0098] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0099] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 12, and / or communicate with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the computer device 12 in this embodiment, the display 24 does not exist as an independent individual, but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. In addition, the computer device 12 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the computer device 12 through a bus 18. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0100] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing a driver head dynamics prediction method based on LSTM provided in an embodiment of the present invention.

[0101] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A driver head dynamics prediction method based on LSTM, It is characterized in that include: S1. Collect vehicle data: Collect vehicle data from different experiments under the same working conditions; S2. Data preprocessing: cleaning, normalizing and denoising the vehicle data collected in step S1; S3. Sample data division: Divide the data set preprocessed in step S2 into a training set and a test set; S4.LSTM model construction; S5.LSTM model training: Perform model training based on the training set, and determine whether the model has converged by the loss curve of the model training. If the model has converged, proceed to step S6; otherwise, perform parameter tuning and retrain the model. S6. LSTM model test: evaluate the model prediction accuracy of the driver's head acceleration curve based on the test set; for the LSTM model that meets the accuracy test, directly output the model; for the LSTM model that does not meet the accuracy test, perform model tuning and then return to step S5.

2. A driver head dynamics prediction method based on LSTM as claimed in claim 1, It is characterized in that In the step S1, the vehicle data at least includes collision time, vehicle body acceleration and driver head acceleration.

3. A driver head dynamics prediction method based on LSTM as claimed in claim 1, It is characterized in that The step S2 comprises: S21. Data cleaning, removing or repairing errors, losses or outliers in the data set; S22. Data normalization: Use the MinMaxScaler method in the sklearn library to fit and transform the original data linearly to [0,1] so that different features have the same scale; S23. Data denoising, removing noise from data by filtering.

4. A driver head dynamics prediction method based on LSTM as claimed in claim 1, It is characterized in that In step S5, the mean square error (MSE) is used to measure the performance of the LSTM model and guide the model training; the MSE calculation formula is as follows: In the formula, n is the number of samples, y is i is the actual value, is the predicted value.

5. A driver head dynamics prediction method based on LSTM as claimed in claim 1, It is characterized in that In step S6, the calculation formula of the prediction accuracy R is as follows: R=0.4·Z+0.2·E P +0.2E M +0.2E S Where Z is the channel correlation between the two curves, E P is the phase correlation between the two curves, E M is the amplitude correlation between the two curves, E S is the slope correlation between the two curves.

6. A driver head dynamics prediction device based on LSTM, It is characterized in that include: A data acquisition module, used to collect vehicle data of different experiments under the same working condition, wherein the vehicle data at least includes collision time, vehicle body acceleration and driver head acceleration; Data preprocessing module, used to clean, normalize and denoise the collected vehicle data; The sample data partitioning module is used to divide the preprocessed data set into a training set and a test set; LSTM model building module, used to build LSTM models using PyTorch; The LSTM model training module is used to train the LSTM model based on the training set using the mean square error method; and send the trained model to the LSTM model testing module; The LSTM model testing module is used to test the LSTM model based on the test set; the LSTM model that meets the test requirements is directly sent to the LSTM model output module; the LSTM model that does not meet the test requirements is returned to the LSTM model training module after parameter optimization; The LSTM model output module is used to output an LSTM model that meets the test requirements.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the driver head dynamics prediction method based on LSTM is implemented as described in any one of claims 1-5.