A vehicle dynamics data-driven modeling method suitable for IVCPS
By using a hybrid mechanism reference model and a combined GRU-FNN deep learning algorithm in the cyber-physical system of intelligent vehicles, the accuracy and latency issues of vehicle dynamics modeling in the lateral and longitudinal coupling are solved, enabling more efficient data-driven modeling of vehicle dynamics and improving the optimization and control effects in cyberspace.
Patent Information
- Application Number
- CN202311199545.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-18
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-09-18
AI Technical Summary
Existing vehicle dynamics models cannot accurately reflect the actual dynamic characteristics of vehicles in intelligent vehicle cyber-physical systems, especially in terms of low modeling accuracy and high computational latency in lateral and longitudinal coupling, which affects the optimization and control effects in cyberspace.
By employing a multi-time-step state feature sliding window of a hybrid mechanism reference model and a combination of GRU and FNN deep learning algorithms, a vehicle dynamics data-driven modeling method suitable for IVCPS is constructed. High-fidelity dynamic data samples are obtained by abstracting control and state feature vectors through state-space equations, and a deep learning-based surrogate model is built.
It improves the modeling accuracy and computational efficiency of vehicle dynamics models in terms of lateral and longitudinal coupling, reduces the computational latency of the model in cyberspace, and realizes more accurate real-time vehicle control and multi-vehicle cooperative control.
Smart Images

Figure CN116992573B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of intelligent vehicle modeling, specifically relating to a vehicle dynamics data-driven modeling method applicable to IVCPS. Background Technology
[0002] Low-precision, high-latency vehicle dynamics models often fail to accurately and quickly reflect the actual dynamic characteristics of vehicles within the small spatiotemporal scale of Intelligent Vehicle Cyber-Physical Systems (IVCPS), thus affecting the optimization or control effectiveness in cyberspace. At the small spatiotemporal scale of IVCPS, vehicle dynamics models characterize the physical laws governing the vehicle's dynamics, are suitable for computation, analysis, optimization, and decision-making in cyberspace, and play a crucial role in real-time vehicle control and multi-vehicle cooperative control. Overly complex, high-dimensional models consume more computational power, and their characterization may not be accurate. Data-driven proxy models, which are mathematical approximation models constructed using data samples, can more accurately reflect the physical world and consume less computational power. Using data-driven proxy models in cyberspace operations can be considered to meet the requirements of accurate and real-time operation of IVCPS vehicle-cloud collaboration.
[0003] In recent years, the rapid development of technologies such as neural networks and deep learning has promoted research on approximation methods for vehicle dynamics. Existing research mainly uses BP neural networks, fully connected neural networks, or recurrent neural networks as the base network, and the vehicle dynamics models established are mostly unidirectional, that is, lateral or longitudinal.
[0004] A review of relevant patents reveals that patent CN111898199 discloses a data-driven modeling method for vehicle dynamics. This method approximates the Koopman operator using a Deep EDMD network to linearly approximate a strongly coupled, nonlinear vehicle dynamics model. However, it does not adequately consider the high temporal correlation of vehicle dynamics samples. Patent CN113657036 discloses a method for simulating vehicle dynamics using neural networks and physical models. It utilizes neural networks to fit some parameters, but it is essentially based on a vehicle lateral dynamics mechanism model with low degrees of freedom and does not consider the nonlinearity of the actual vehicle model or the coupling in the lateral and longitudinal directions. Summary of the Invention
[0005] In view of this, the purpose of this invention is to provide a vehicle dynamics data-driven modeling method suitable for IVCPS. This invention aims to solve the problems of low accuracy in current vehicle lateral and longitudinal coupling dynamics modeling and high computational latency in cyberspace.
[0006] To achieve the above objectives, this invention provides a vehicle dynamics data-driven modeling method suitable for IVCPS, comprising the following steps:
[0007] S1. The lateral and longitudinal coupling dynamics mechanism model of automobiles is abstracted into a state-space equation expression, thereby determining the control characteristic vector and the state characteristic vector;
[0008] S2. Based on the control feature vector and state feature vector determined in step S1, obtain high-fidelity dynamic data samples;
[0009] S3. Construct a multi-time-step state feature sliding window for a hybrid mechanism reference model;
[0010] S4. Build a vehicle dynamics proxy model;
[0011] S5. Train a deep learning-based vehicle dynamics proxy model.
[0012] Furthermore, in step S1, the expression for the state-space equation is as follows:
[0013]
[0014] In the formula, u is the control feature vector, representing the input of the vehicle dynamics model; x is the state feature vector, representing the output of the vehicle dynamics model; where:
[0015]
[0016] In the formula, η is the throttle valve opening; bk is the brake master cylinder pressure; and ξ is the steering wheel angle.
[0017]
[0018] In the formula, V y For lateral velocity; Ψ represents lateral acceleration; Ψ represents yaw rate. V is the yaw acceleration; x Longitudinal velocity; This is the longitudinal acceleration.
[0019] Furthermore, step S2 includes the following sub-steps:
[0020] S2.1 Configure the vehicle model and its parameters in CarSim;
[0021] S2.2 Configure I / OChannels in CarSim based on the control feature vector and state feature vector determined in step S1;
[0022] S2.3 Constructs an open-loop vehicle control model in Simulink, builds a simulation environment in conjunction with CarSim / Simulink, obtains the state output based on the control input, and obtains the time sequence data sample by sampling according to the time step.
[0023] Furthermore, in step S2.3, the time step is 120s and the sampling period is 10ms.
[0024] Furthermore, step S3 includes the following sub-steps:
[0025] S3.1 Constructs an MTSSF sliding window based on instantaneous horizontal and vertical velocities;
[0026] S3.2 Based on the time series data samples collected in step S2.3, establish a mechanistic reference model.
[0027] S3.3 incorporates the MTSSF sliding window at time p into the forward computation process of the model.
[0028] Furthermore, in step S3.2, the mechanism reference model The dynamic model is a CarSim S-Function or a three-degree-of-freedom model.
[0029] Furthermore, the mechanistic reference model The expression for the three-degree-of-freedom dynamic model is as follows:
[0030]
[0031]
[0032]
[0033] In the formula, m is the vehicle mass; I z Let θ be the moment of inertia; a and b be the distances from the front and rear axles of the vehicle to the center of mass, respectively; θ be the moment of inertia. f The front wheel steering angle; s f and s r C represents the slip ratio of the front and rear wheels. αf and C αr C represents the lateral stiffness of the front and rear wheels. lf and C lr This refers to the longitudinal stiffness of the front and rear wheels.
[0034] Furthermore, step S4 includes the following sub-steps:
[0035] S4.1 The first half of the network, GRNN, is constructed using gated recurrent units (GRUs) as basic units. The control vector at time n obtained in step S3 is the input of the GRNN.
[0036] S4.2 introduces a feedforward neural network (FNN) in the second half of the network. Based on the hidden states of the first half GRNN, the input layer of the FNN is constructed, and the final network is the vehicle dynamics proxy model.
[0037] Furthermore, step S5 includes the following sub-steps:
[0038] S5.1 Take a set of data from step S1, divide it into training and test sets, and standardize the network input data; design the loss function, select the optimizer, and configure the hyperparameters.
[0039] S5.2 Saves the optimal weights of the network.
[0040] Furthermore, the hyperparameters include the learning rate and the number of iterations.
[0041] The beneficial effects of this invention are as follows:
[0042] This invention considers both the temporal correlation of vehicle dynamics samples and the coupling characteristics of lateral and longitudinal state features, and designs a nonlinear surrogate modeling method that combines GRU and FNN deep learning algorithm models, which can better characterize the lateral and longitudinal coupled dynamic behavior of vehicle physical entities.
[0043] This invention also proposes a sliding window method for multi-time step state feature (MTSSF) of hybrid mechanism reference model, which can construct the correlation between the current time information and the state feature information of the previous k time steps, and assist vehicle dynamics data-driven model in associating historical lateral and longitudinal state information to better increase training speed and accuracy.
[0044] Other advantages, objectives, and features of the invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination, or may be learned from practice of the invention. The objectives and other advantages of the invention can be realized and obtained through the following description. Attached Figure Description
[0045] Figure 1 This is a flowchart illustrating a deep learning-based vehicle dynamics proxy modeling method.
[0046] Figure 2 This is a schematic diagram illustrating the acquisition of high-fidelity dynamic data samples.
[0047] Figure 3 This is a schematic diagram of the CarSim / Simulink co-simulation process;
[0048] Figure 4 A schematic diagram of a sliding window for multi-time-step state features;
[0049] Figure 5 This is a schematic diagram of the overall network structure of the deep learning-based vehicle dynamics proxy modeling method. Detailed Implementation
[0050] To make the technical solutions, advantages, and objectives of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention without creative effort are within the protection scope of this application.
[0051] like Figure 1 and Figure 5 As shown, this invention provides a vehicle dynamics data-driven modeling method suitable for IVCPS, comprising the following steps:
[0052] S1. The lateral and longitudinal coupling dynamics mechanism model of automobiles is abstracted into a state-space equation expression, thereby determining the control characteristic vector and the state characteristic vector;
[0053] In intelligent vehicle cyber-physical systems, we consider the intelligent vehicle as a controlled object. Therefore, the input and output of the intelligent vehicle dynamics model are the control variables and state variables. The lateral and longitudinal coupling dynamics mechanism model of the vehicle is abstracted into a state-space equation expression, where the state equation is: The equation of motion is: y = C·x (theoretical model abstraction); where For an unknown nonlinear mapping, the output matrix C = [e1, e2, e3, e4, e5, e6], e i It can be 0 or 1.
[0054]
[0055] In the formula, η is the throttle valve opening; bk is the brake master cylinder pressure; and ξ is the steering wheel angle.
[0056]
[0057] In the formula, V y For lateral velocity; Ψ represents lateral acceleration; Ψ represents yaw rate. V is the yaw acceleration; x Longitudinal velocity; This is the longitudinal acceleration.
[0058] S2. Based on the control feature vector and state feature vector determined in step S1, obtain high-fidelity dynamic data samples, such as... Figure 2 As shown;
[0059] S2.1 Configure the vehicle model and its parameters in CarSim;
[0060] In CarSim, select different types of vehicles, including gasoline cars, electric cars, and hybrid cars, as well as automatic and manual transmissions, and construct different typical scenarios, including straight roads, curves, and spiral roads. The road adhesion coefficients include 0.5, 0.85, and 0.9. For example, select the "D-Class Sedan" model, with the powertrain configured as front-wheel drive, a 150kw internal combustion engine, and a 6-speed manual transmission. Set the "Driver Controls" to open-loop control with an initial value of 0, and construct a straight two-lane driving condition with a friction coefficient of 0.85.
[0061] S2.2 Based on the control feature vector and state feature vector determined in step S1, configure I / OChannels in CarSim, wherein the input channels are configured as “IMP_STEER_SW”, “IMP_THROTTLE_ENGINE”, and “IMP_PCON_BK”, and the output channels are configured as “Steer_SW”, “Throttle”, “Pbk_Con”, “Vx”, “Vy”, “AVz”, “Ax”, “Ay”, and “AAz”.
[0062] S2.3 Constructs an open-loop vehicle control model in Simulink, builds a simulation environment in conjunction with CarSim / Simulink, obtains the state output based on the control input, and obtains the time sequence data sample by sampling according to the time step.
[0063] Write the corresponding control input module in Simulink. This module includes the input logic of the external hardware Vader 2 ProController joystick. Randomly input control quantities such as steering wheel, accelerator, and brake. A total of 120 seconds from the car's stationary state to the steering acceleration and deceleration state is used as a data acquisition experiment. The sampling period is 10ms, that is, the number of samples in a set of data is 12000. It includes all the necessary control and state quantity information. Several repeated experiments are performed under the same working condition.
[0064] S3. Construct a multi-time-step state feature sliding window for a hybrid mechanism reference model;
[0065] S3.1 Constructs an MTSSF sliding window based on instantaneous horizontal and vertical velocities;
[0066] according to Figure 3 As illustrated, the MTSSF sliding window at time p can contain the mechanistic reference model from the previous k time steps. The output state of a CarSim S-Function (e.g.) can contain all the features of the state, or it can contain only j of those features.
[0067] S3.2 Establishing a Mechanism Reference Model
[0068] Mechanism Reference Model It can be a complex CarSim S-Function or a three-degree-of-freedom dynamic model. Taking the latter as an example, the expression for the mechanistic reference model is:
[0069]
[0070]
[0071]
[0072] In the formula, m is the vehicle mass; I z Let θ be the moment of inertia; a and b be the distances from the front and rear axles of the vehicle to the center of mass, respectively; θ be the moment of inertia. f The front wheel steering angle; s f and s r C represents the slip ratio of the front and rear wheels. αf and C αr C represents the lateral stiffness of the front and rear wheels. lf and C lr This refers to the longitudinal stiffness of the front and rear wheels. These parameters are identified using the time-series data samples collected in step S2.3, or correspond to the vehicle configuration parameters in CarSim.
[0073] S3.3 incorporates the MTSSF sliding window at time p into the forward computation process of the model.
[0074] u p Let u' be the vehicle's control characteristics at time p, including the steering wheel angle, throttle opening, and master cylinder pressure at time p. Together with the MTSSF sliding window with a time step of τ for the instantaneous lateral and longitudinal velocities at times {p-τ, p-2τ, ..., p-kτ}, they form the input vector u' of the GRU unit. p Where k is an integer greater than 1, the forward computation process of the model at time p satisfies the following relationship:
[0075]
[0076]
[0077] T p,1 =[V y (p-τ),V y (p-2τ),...,V y (p-kτ)]
[0078] T p,5 =[V x (p-τ),V x (p-2τ),...,Vx (p-kτ)]
[0079]
[0080]
[0081]
[0082]
[0083]
[0084]
[0085] Among them, T p,i In this context, 'i' represents the index of an element in the state vector 'x', starting with 1. p,1 T p,5 The lateral velocity V output by the reference model over a time period is respectively y Longitudinal velocity V x The time series of k sampled values. These are abbreviations for the reference model, GRU network, and FNN, respectively. b GRNN These are the weight parameters of the GRU network. b FNN These are the weight parameters of the FNN, obtained through iterative training. The loss value L is calculated using the mean squared error loss function, which is a necessary parameter for the subsequent optimizer to update the network weights.
[0086] S4. Build a vehicle dynamics proxy model, such as Figure 4 As shown;
[0087] S4.1 The first half of the network, GRNN, is constructed using gated recurrent units (GRUs) as the basic units. The control vector u' obtained in step 3 at time n is then used to construct the network. n =[η(n), bk(n)ξ(n), V x (n-τ), V x (n-2τ), ..., V x (n-kτ), V y (n-τ), V y (n-2τ),…,V y [n-kτ] is input into the input layer built on the GRNN. The hidden layer consists of 5 stacked basic GRU units vertically and remembers historical input data horizontally. The hidden layer has a total of 256 units, meaning the output dimension of the GRNN is 256. i Store the hidden state at each step;
[0088] The latter half of the S4.2 network introduces a feedforward neural network (FNN) with a certain depth (no more than 10 layers), based on the hidden state h of the first half's GRNN. n The input layer of an FNN is constructed, followed by two hidden layers using ReLU as the activation function. Each layer has 2200 neurons, resulting in a vehicle dynamics proxy model. The output layer, with six neurons, outputs the state variables x. The combined GRNN and FNN model outputs a vector at time n. The number of elements corresponds to the dimension of the output vector of the mechanistic reference model.
[0089] S5. Train a deep learning-based vehicle dynamics proxy model.
[0090] S5.1 Randomly select a set of continuous dynamic data samples without shuffling. The first 80% is used as the training set and the last 20% is used as the test set. Before inputting the data into the network, standardize the data, design a loss function, select the Adam optimizer, set the initial learning rate to 0.001, and set the number of iterations to 600 epochs.
[0091] S5.2 Check if the test set loss value has converged. If it has not converged, modify the hyperparameters or increase the number of iterations. If it has converged, save the network weights when the test set loss value is minimized.
[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the present invention, and all such modifications or substitutions should be covered within the protection scope of the present invention.
Claims
1. A vehicle dynamics data-driven modeling method suitable for IVCPS, characterized in that, Includes the following steps: S1. The lateral and longitudinal coupling dynamics mechanism model of automobiles is abstracted into a state-space equation expression, thereby determining the control characteristic vector and the state characteristic vector; In step S1, the expression for the state-space equation is as follows: In the formula, The control feature vector represents the input to the vehicle dynamics model; Here, the state feature vector represents the output of the vehicle dynamics model; where: In the formula, This refers to the throttle valve opening. This refers to the pressure of the brake master cylinder; Steering wheel angle; In the formula, For lateral velocity; It is lateral acceleration; This refers to the yaw rate; This is the yaw acceleration; Longitudinal velocity; It is longitudinal acceleration; S2. Based on the control feature vector and state feature vector determined in step S1, obtain high-fidelity dynamic data samples; S3. Construct a multi-time-step state feature sliding window for a hybrid mechanism reference model; S3.1 Constructs an MTSSF sliding window based on instantaneous horizontal and vertical velocities; S3.2 Based on the time series data samples collected in step S2.3, establish a mechanistic reference model. ; S3.3 will The MTSSF sliding window is incorporated into the model's forward computation process at any given time. S4. Build a vehicle dynamics proxy model; S4.1 Construct the first half of the network, the GRNN, using gated recurrent units (GRUs) as the basic units. (The information obtained in step S3 is missing from the original text.) The control vector at each time step is the input of the GRNN; S4.2 In the second half of the network, a feedforward neural network (FNN) is introduced. Based on the hidden state of the first half GRNN, the input layer of the FNN is constructed, and the vehicle dynamics proxy model is finally constructed. S5. Train a deep learning-based vehicle dynamics proxy model.
2. The vehicle dynamics data-driven modeling method applicable to IVCPS according to claim 1, characterized in that: Step S2 includes the following sub-steps: S2.1 Configure the vehicle model and its parameters in CarSim; S2.2 Configure I / OChannels in CarSim based on the control feature vector and state feature vector determined in step S1; S2.3 Constructs an open-loop vehicle control model in Simulink, builds a simulation environment in conjunction with CarSim / Simulink, obtains the state output based on the control input, and obtains the time sequence data sample by sampling according to the time step.
3. The vehicle dynamics data-driven modeling method applicable to IVCPS according to claim 2, characterized in that: In step S2.3, the time step is 120 s and the sampling period is 10 ms.
4. The vehicle dynamics data-driven modeling method applicable to IVCPS according to claim 3, characterized in that: In step S3.2, the mechanism reference model The dynamic model is a CarSim S-Function or a three-degree-of-freedom model.
5. A vehicle dynamics data-driven modeling method suitable for IVCPS according to claim 4, characterized in that: The mechanism reference model The expression for the three-degree-of-freedom dynamic model is as follows: In the formula, For vehicle quality; It is the moment of inertia; and These are the distances from the front and rear axles of the vehicle to its center of gravity, respectively. The steering angle of the front wheels; and The slip ratio of the front and rear wheels; and The lateral stiffness of the front and rear wheels; and This refers to the longitudinal stiffness of the front and rear wheels.
6. A vehicle dynamics data-driven modeling method suitable for IVCPS according to claim 5, characterized in that: Step S5 includes the following sub-steps: S5.1 Take a set of data from step S1, divide it into training and test sets, and standardize the network input data; design the loss function, select the optimizer, and configure the hyperparameters. S5.2 Saves the optimal weights of the network.
7. A vehicle dynamics data-driven modeling method suitable for IVCPS according to claim 6, characterized in that: The hyperparameters include the learning rate and the number of iterations.
Citation Information
Patent Citations
Intelligent automobile transverse and longitudinal coupling path planning method based on regional virtual force field
CN111750866A
Data modeling method for multi-axle special vehicle based on neural network
CN115840989A
Driving track prediction control method
CN116627044A
