Online updating method and device for autonomous driving vehicle model

The offline vehicle model is constructed through the least squares method and updated online, which solves the problem of poor control effect of the vehicle control system in complex scenarios, improves the robustness and control accuracy, and realizes adaptive control of vehicle motion.

CN113741180BActive Publication Date: 2024-09-20BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011380590.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-30
Publication Date
2024-09-20
Estimated Expiration
2040-11-30

AI Technical Summary

Technical Problem

Existing vehicle control systems have poor control effects in complex scenarios, making it difficult to establish an accurate and uncomplicated vehicle reference model, resulting in unstable control systems.

Method used

The least squares method is used to construct the offline vehicle model, and it is updated online based on real-time data. The model parameters are calculated through the recursive method, taking into account noise interference and forgetting factors, and adapting to a variety of scenarios.

Benefits of technology

It improves the robustness and control accuracy of the vehicle control system, adapts to vehicle motion in complex scenarios, and enhances adaptive control capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113741180B
    Figure CN113741180B
Patent Text Reader

Abstract

The present invention discloses an online updating method and device for an autonomous driving vehicle model, and relates to the field of computer technology. A specific implementation of the method includes: constructing an offline vehicle model based on the least squares method, and using the offline vehicle model as the initial value of the online updated vehicle model; collecting input data and output data of the vehicle model, the output data being data generated during the vehicle driving according to the input data; and updating the model parameters of the vehicle model online based on the input data and the output data, so as to update the vehicle model online. This implementation constructs a vehicle model offline based on the least squares method to realize adaptive control of the vehicle, thereby improving the robustness and control accuracy of the control system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an online updating method and device for an autonomous driving vehicle model. Background Art

[0002] The vehicle motion system is a strongly nonlinear system. To establish an accurate vehicle reference model, it is necessary to consider the vehicle's lateral dynamics, longitudinal dynamics, tire mechanics, road friction, etc. In fact, even if the complex model is established, due to its complexity and nonlinear properties, the linearization process is extremely complicated, so it needs to be simplified. However, although simplifying the complex model can solve the problem of solving, it may deviate from the essence of the vehicle motion system and lead to instability in the control system. The controller of the current vehicle control system generally uses a model-based control algorithm, so how to establish an accurate, uncomplicated and easy-to-solve model is a key technology.

[0003] For non-standard low-speed unmanned delivery vehicles, various dynamic parameters are difficult to obtain, and the kinematic model is generally directly used as the vehicle reference model. However, its disadvantage is that the control effect of the control system will be deteriorated in complex scenarios such as turning, large detours, lane changes, and changes in road friction coefficient. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides an online updating method and device for an autonomous driving vehicle model, which can construct a vehicle model offline based on the least squares method to achieve adaptive control of the vehicle, thereby improving the robustness and control accuracy of the control system.

[0005] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for online updating of an autonomous driving vehicle model is provided.

[0006] A method for online updating of an autonomous driving vehicle model, comprising: constructing an offline vehicle model based on a least squares method, and using the offline vehicle model as an initial value of an online updated vehicle model; collecting input data and output data of the vehicle model, wherein the output data is data generated during the vehicle driving according to the input data; and updating model parameters of the vehicle model online based on the input data and the output data, so as to update the vehicle model online.

[0007] Optionally, constructing an offline vehicle model based on the least squares method includes: establishing an initial model of the vehicle and converting the initial model into a least squares model; obtaining input signals and output signals under a preset scenario, the input signals including acceleration commands and front wheel steering commands of the vehicle, and the output signals including the position, speed and heading angle of the vehicle; batch processing the input signals and the output signals to determine model parameters of the offline vehicle model to construct an offline vehicle model.

[0008] Optionally, the initial model is a multi-input multi-output model, and the initial model is as follows:

[0009]

[0010] Among them, Y k is the state variable {x, y, v, θ} of the vehicle at time k T , x, y are the vehicle position coordinates, v is the vehicle speed, and θ is the vehicle heading angle; U k is the vehicle's control variable {a, δ} at time k T , a is the vehicle acceleration, δ is the front wheel steering angle of the vehicle, and d represents the delay; ε k is the noise interference signal of the vehicle at time k; That is the parameter matrix to be identified, and its specific form is as follows:

[0011]

[0012]

[0013]

[0014] above a, b, and c in the equation are specific parameters to be identified. The superscripts in a and b represent the weight coefficients of the coupling between the two variables, and the superscript in c represents the state variable corresponding to the superscript. The subscript corresponds to the current order, where n a 、n b 、n c Represents the matrix Highest order.

[0015] Optionally, the least squares model is as follows:

[0016]

[0017] Among them, Y k =[x k y k v k θ k ] T represents the output signal at time k, ρk-1 represents the parameter matrix to be identified, Represents the input signal and contains state variables and control variables The value of, and the noise data ε k Represents the estimate of the noise at the current k moment. ρ k-1 The form is as follows:

[0018]

[0019]

[0020] Among them, the estimate of the noise at the current k moment ε k Use estimated value To express:

[0021]

[0022] Optionally, the model parameter ρ of the offline vehicle model is calculated by the following formula:

[0023] ρ=(φ T φ) -1 φ T Y;

[0024] in, For N groups of input signal matrices:

[0025]

[0026] in, Represents 1 to N groups of input signals, each group of input signals contains the current time k before (kn a )~(k-1) time state variables and (kdn b )~(kd)Time control variable value, k∈[n a +1 n a +N];

[0027] Y is the N-group output signal matrix:

[0028]

[0029] Y 1~N Represents 1 to N groups of output signals, each group of output signals is the state variable value at the current k moment, k∈[n a +1 n a +N].

[0030] Optionally, the preset scenarios include: straight-line acceleration and deceleration and constant speed scenarios on low-adhesion roads and ordinary roads, small detour scenarios, turning scenarios on flat roads and horizontal slope roads, hill start scenarios and reversing scenarios.

[0031] Optionally, the input parameters include an acceleration command and a front wheel steering angle command of the vehicle, and the output parameters include a position, a speed and a heading angle of the vehicle;

[0032] Updating the model parameters of the vehicle model online based on the input data and the output data includes:

[0033] The recursive method is used to calculate the model parameters of the vehicle model, and the formula is as follows:

[0034]

[0035]

[0036]

[0037] Among them, ρ k-1 is the parameter matrix at time (k-1); Y k The vehicle state variable data collected in real time. is the input data; Q matrix is ​​the gain matrix, P matrix is ​​the intermediate variable, and λ is the forgetting factor.

[0038] According to another aspect of an embodiment of the present invention, an online updating device for an autonomous driving vehicle model is provided.

[0039] An online updating device for an autonomous driving vehicle model comprises: a model building module, used to build an offline vehicle model based on the least squares method, and use the offline vehicle model as the initial value of an online updated vehicle model; a data acquisition module, used to collect input data and output data of the vehicle model, wherein the output data is data generated during the vehicle's driving according to the input data; the input parameters include the vehicle's acceleration command and front wheel steering angle command, and the output parameters include the vehicle's position, speed and heading angle; and a model updating module, used to update the model parameters of the vehicle model online based on the input data and the output data, so as to update the vehicle model online.

[0040] Optionally, the model building module is also used to: establish an initial model of the vehicle and convert the initial model into a least squares model; obtain input signals and output signals under preset scenarios, the input signals including acceleration commands and front wheel steering commands of the vehicle, and the output signals including the position, speed and heading angle of the vehicle; batch process the input signals and the output signals to determine model parameters of the offline vehicle model to build an offline vehicle model.

[0041] Optionally, the initial model is a multi-input multi-output model, and the initial model is as follows:

[0042]

[0043] Among them, Y k is the state variable {x, y, v, θ} of the vehicle at time k T , x, y are the vehicle position coordinates, v is the vehicle speed, and θ is the vehicle heading angle; U k is the vehicle's control variable {a, δ} at time k T , a is the vehicle acceleration, δ is the front wheel steering angle of the vehicle, and d represents the delay; ε k is the noise interference signal of the vehicle at time k; That is the parameter matrix to be identified, and its specific form is as follows:

[0044]

[0045]

[0046]

[0047] above a, b, and c in the equation are specific parameters to be identified. The superscripts in a and b represent the weight coefficients of the coupling between the two variables, and the superscript in c represents the state variable corresponding to the superscript. The subscript corresponds to the current order, where n a 、n b 、n c Represents the matrix Highest order.

[0048] Optionally, the least squares model is as follows:

[0049]

[0050] Among them, Y k =[x k y k v k θ k ] T represents the output signal at time k, ρ k-1 represents the parameter matrix to be identified, Represents the input signal and contains state variables and control variables The value of, and the noise data ε k Represents the estimate of the noise at the current k moment. ρ k-1The form is as follows:

[0051]

[0052]

[0053] Among them, the estimate of the noise at the current k moment ε k Use estimated value To express:

[0054]

[0055] Optionally, the model parameter ρ of the offline vehicle model is calculated by the following formula:

[0056] ρ=(φ T φ) -1 φ T Y;

[0057] in, For N groups of input signal matrices:

[0058]

[0059] in, Represents 1 to N groups of input signals, each group of input signals contains the current time k before (kn a )~(k-1) time state variables and (kdn b )~(kd)Time control variable value, k∈[n a +1 n a +N];

[0060] Y is the N-group output signal matrix:

[0061]

[0062] Y 1~N Represents 1 to N groups of output signals, each group of output signals is the state variable value at the current k moment, k∈[n a +1 n a +N].

[0063] Optionally, the preset scenarios include: straight-line acceleration and deceleration and constant speed scenarios on low-adhesion roads and ordinary roads, small detour scenarios, turning scenarios on flat roads and horizontal slope roads, hill start scenarios and reversing scenarios.

[0064] Optionally, the input parameters include an acceleration command and a front wheel steering angle command of the vehicle, and the output parameters include a position, a speed and a heading angle of the vehicle;

[0065] The model updating module is also used for:

[0066] The recursive method is used to calculate the model parameters of the vehicle model, and the formula is as follows:

[0067]

[0068]

[0069]

[0070] Among them, ρ k-1 is the parameter matrix at time (k-1); Y k The vehicle state variable data collected in real time. is the input data; Q matrix is ​​the gain matrix, P matrix is ​​the intermediate variable, and λ is the forgetting factor.

[0071] According to yet another aspect of an embodiment of the present invention, an electronic device for online updating of an autonomous driving vehicle model is provided.

[0072] An electronic device for online updating of an autonomous driving vehicle model, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the online updating method of the autonomous driving vehicle model provided in an embodiment of the present invention.

[0073] According to still another aspect of the embodiments of the present invention, a computer readable medium is provided.

[0074] A computer-readable medium stores a computer program, which, when executed by a processor, implements the online update method of the autonomous driving vehicle model provided in an embodiment of the present invention.

[0075] One embodiment of the above invention has the following advantages or beneficial effects: by constructing an offline vehicle model based on the least squares method, and using the offline vehicle model as the initial value of the online updated vehicle model; collecting the input data and output data of the vehicle model, the output data is the data generated in the process of the vehicle driving according to the input data; updating the model parameters of the vehicle model online based on the input data and the output data, and using the technical means of updating the vehicle model online, constructing the vehicle model offline based on the least squares method to realize the adaptive control of the vehicle, thereby improving the robustness and control accuracy of the control system. The present invention applies the least squares method to the multi-input and multi-output vehicle system for offline modeling and online model update, and uses a variety of input signals in the offline modeling to simulate a variety of scenarios, thereby improving the robustness and control accuracy of the control system in a variety of complex scenarios.

[0076] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0078] Figure 1 is a flowchart of an online updating vehicle model according to an embodiment of the present invention;

[0079] Figure 2 is a schematic diagram of the main steps of the online updating method of the autonomous driving vehicle model according to an embodiment of the present invention;

[0080] Figure 3 is a schematic diagram of a generation process of an offline vehicle model according to an embodiment of the present invention;

[0081] Figure 4 is a schematic diagram of a process of online updating of a vehicle model according to an embodiment of the present invention;

[0082] Figure 5 is a schematic diagram of main modules of an online updating device for an autonomous driving vehicle model according to an embodiment of the present invention;

[0083] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0084] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0085] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0086] The problem to be solved by the present invention is to generate a vehicle motion system reference model that matches the real model of the vehicle online based on the current state of the vehicle and road conditions, so as to achieve adaptive control of the vehicle and improve the robustness and control accuracy of the control system. The vehicle state and road condition information include multiple dimensions such as vehicle speed, vehicle steering angle, vehicle weight, road friction coefficient, noise interference, etc.

[0087] Figure 1 FIG. 1 is a flowchart of an online updating vehicle model according to an embodiment of the present invention. Figure 1As shown, the present invention first obtains the vehicle model parameters offline based on the least squares method to construct an offline vehicle model, and then uses the offline vehicle model as the initial value of the vehicle model and performs online update based on the offline vehicle model. In the online update of the vehicle model, in order to prevent the subsequent vehicle online driving data from being invalid for the model parameter correction, the present invention uses the forgetting factor weighted coefficient method to process the parameter update, and also considers interference factors such as road noise.

[0088] After the algorithm is derived, the present invention also introduces a method for obtaining offline data. In order to make the initial vehicle model more accurate and adapt to more working conditions, the present invention simulates different driving scenarios by inputting different command signals to drive the vehicle. Based on these driving data, an offline vehicle model is generated through the algorithm of the present invention.

[0089] Figure 2 FIG. 1 is a schematic diagram of the main steps of the online updating method of the autonomous driving vehicle model according to an embodiment of the present invention. Figure 2 As shown, the online update method of the autonomous driving vehicle model of an embodiment of the present invention mainly includes the following steps S201 to S203.

[0090] Step S201: constructing an offline vehicle model based on the least squares method, and using the offline vehicle model as the initial value of the online updated vehicle model;

[0091] Step S202: collecting input data and output data of the vehicle model, where the output data is data generated when the vehicle is driving according to the input data;

[0092] Step S203: updating the model parameters of the vehicle model online based on the input data and the output data, so as to update the vehicle model online.

[0093] According to an embodiment of the present invention, the step of constructing an offline vehicle model based on the least squares method may include:

[0094] Establishing an initial model of the vehicle and converting the initial model into a least squares model;

[0095] Acquire input signals and output signals under a preset scenario, wherein the input signals include acceleration instructions and front wheel steering angle instructions of the vehicle, and the output signals include position, speed and heading angle of the vehicle;

[0096] The input signal and the output signal are batch processed to determine model parameters of the offline vehicle model to construct the offline vehicle model.

[0097] According to an embodiment of the present invention, the initial model is a multi-input multi-output model, and the initial model is as follows:

[0098]

[0099] Among them, Y k is the state variable {x, y, v, θ} of the vehicle at time k T , x, y are the vehicle position coordinates, v is the vehicle speed, and θ is the vehicle heading angle; U k is the vehicle's control variable {a, δ} at time k T , a is the vehicle acceleration, δ is the front wheel steering angle of the vehicle, and d represents the delay; ε k is the noise interference signal of the vehicle at time k; That is the parameter matrix to be identified, and its specific form is as follows:

[0100]

[0101]

[0102]

[0103] above a, b, and c in the equation are specific parameters to be identified. The superscripts in a and b represent the weight coefficients of the coupling between the two variables, and the superscript in c represents the state variable corresponding to the superscript. The subscript corresponds to the current order, where n a 、n b 、n c Represents the matrix Highest order.

[0104] After transforming the initial model shown, the resulting least squares model is as follows:

[0105]

[0106] Among them, Y k =[x k y k v k θ k ] T represents the output signal at time k, ρ k-1 represents the parameter matrix to be identified, Represents the input signal and contains state variables and control variables The value of, and the noise data ε k Represents the estimate of the noise at the current k moment. ρ k-1 The form is as follows:

[0107]

[0108]

[0109] Among them, the estimate of the noise at the current k moment ε k Use estimated value To express:

[0110]

[0111] According to an embodiment of the present invention, the model parameter ρ of the offline vehicle model is calculated by the following formula:

[0112] ρ=(φ T φ) -1 φ T Y;

[0113] in, For N groups of input signal matrices:

[0114]

[0115] in, Represents 1 to N groups of input signals, each group of input signals contains the current time k before (kn a )~(k-1) time state variables and (kdn b )~(kd)Time control variable value, k∈[n a +1 n a +N];

[0116] Y is the N-group output signal matrix:

[0117]

[0118] Y 1~N Represents 1 to N groups of output signals, each group of output signals is the state variable value at the current k moment, k∈[n a +1 n a +N].

[0119] According to the technical solution of the present invention, the preset scenarios include, for example: straight-line acceleration and deceleration and constant speed scenarios on low adhesion roads and ordinary roads, small detour scenarios, turning scenarios on flat roads and horizontal slope roads, hill start scenarios and reversing scenarios.

[0120] According to the technical solution of the present invention, the input parameters include the acceleration command and the front wheel steering angle command of the vehicle, and the output parameters include the position, speed and heading angle of the vehicle; the step of updating the model parameters of the vehicle model online based on the input data and the output data may specifically include:

[0121] The recursive method is used to calculate the model parameters of the vehicle model, and the formula is as follows:

[0122]

[0123]

[0124]

[0125] Among them, ρ k-1 is the parameter matrix at time (k-1); Y k The vehicle state variable data collected in real time. is the input data; Q matrix is ​​the gain matrix, P matrix is ​​the intermediate variable, and λ is the forgetting factor.

[0126] The implementation process of the present invention is described below in conjunction with specific embodiments. Figure 3 FIG. 1 is a schematic diagram of the generation process of an offline vehicle model according to an embodiment of the present invention. Figure 3 As shown, in an embodiment of the present invention, the generation process of the offline vehicle model mainly includes the following steps:

[0127] 1. Build the initial vehicle model;

[0128] 2. Convert the initial model into a least squares model;

[0129] 3. Collect input and output signals in multiple scenarios;

[0130] 4. Set model parameters;

[0131] 5. Arrange data and process them using batch processing;

[0132] 6. Generate offline vehicle model.

[0133] The specific implementation of the above steps will be introduced below.

[0134] 1. The vehicle model is a multi-input multi-output model. In the present invention, the input signals are the turning angle command and the acceleration command, and the outputs are the vehicle position, speed and heading angle. First, the initial model is established as follows:

[0135]

[0136] Among them, Y k is the state variable {x, y, v, θ} of the vehicle at time k T , x, y are the vehicle position coordinates, v is the vehicle speed, and θ is the vehicle heading angle; U k is the vehicle's control variable {a, δ} at time k T , a is the vehicle acceleration, δ is the front wheel steering angle of the vehicle, and d represents the delay; ε k is the noise interference signal of the vehicle at time k, which is assumed to be colored noise in the present invention; That is the parameter matrix to be identified, and its specific form is as follows:

[0137]

[0138]

[0139]

[0140] above a, b, and c in the equation are specific parameters to be identified. The superscripts in a and b represent the weight coefficients of the coupling between the two variables, and the superscript in c represents the state variable corresponding to the superscript. The subscript corresponds to the current order, where n a 、n b 、n c Represents the matrix The highest order. The higher the order, the more complex the vehicle model that the model can fit and the better the fitting effect. However, if the order is too high, it is easy to cause overfitting; if the order is too low, it is easy to cause underfitting of the model, which loses the original intention of the present invention to improve the accuracy of the model.

[0141] 2. Convert the initial model to a least squares model. Write the above model as follows:

[0142]

[0143] Among them, Y k =[x k y k v k θ k ] T represents the output at time k, ρ k-1 represents the parameter matrix to be identified, Represents input data, which contains state variables and control variables The value of, and the noise data ε k Represents the estimate of the noise at the current k moment. ρ k-1 The form is as follows:

[0144]

[0145]

[0146] Among them, due to ε k The noise value cannot be obtained by observation, so the estimated value is used in the present invention. To express:

[0147]

[0148] 3. Collect input and output signals in multiple scenarios.

[0149] (1) Input signal generation

[0150] The input signal is the control command signal. In the present invention, the input signal is the front wheel angle and acceleration signal. In order to simulate the vehicle driving in different scenarios, different input functions are set so that the established vehicle model can cover more scenarios, thereby improving the accuracy of the model. The following introduces some scenarios that need to be considered by the present invention and the corresponding input functions.

[0151] Scenario 1: Acceleration, deceleration and constant speed on low adhesion roads and ordinary roads

[0152] The acceleration command input signal is:

[0153] a k =A·sin(wt); A is the amplitude, w is the angular frequency, and t is the time. And,

[0154]

[0155] The above formula indicates that when the vehicle speed v is less than the constant Δv, the acceleration command is a constant Δa, and when the vehicle speed rises to Δv, the vehicle maintains a constant speed;

[0156] The front wheel steering angle command input signal is constant at 0.

[0157] Scenario 2: Small detour scenario

[0158] The acceleration command input signal is:

[0159] a k =A·sin(wt); A is the amplitude, w is the angular frequency, and t is the time. And,

[0160]

[0161] The above formula indicates that when the vehicle speed v is less than the constant Δv, the acceleration command is a constant Δa, and when the vehicle speed rises to Δv, the vehicle maintains a constant speed;

[0162] Front wheel steering angle command input signal:

[0163] δ k =B·sin(w δ t), A is the amplitude, w δ is the angular frequency and t is the time.

[0164] Scenario 3: Turning on a flat road or a horizontal slope

[0165] The acceleration command input signal is:

[0166] a k =A·sin(wt); A is the amplitude, w is the angular frequency, and t is the time;

[0167] Front wheel steering angle command input signal:

[0168] δ k =Δδ,

[0169] The front wheel steering angle remains constant Δδ.

[0170] Scene 4: Slope start scene

[0171] The acceleration command input signal is:

[0172] a=Δa,

[0173] In this scenario, the vehicle needs to travel on a sloped road and then travel at a constant value Δa. Δa can be changed to multiple constant values ​​for testing;

[0174] The front wheel steering angle command input signal is constant at 0.

[0175] Scene 5: Reversing scene

[0176] In this test scenario, it is also necessary to obtain the relevant input signals under scenarios one to three, but the difference from forward driving is that the acceleration signal is set to a negative value.

[0177] (2) Output signal acquisition

[0178] The output signals that need to be collected include: vehicle position, speed and heading angle.

[0179] 4. Set model parameters. Model parameters refer to the matrix The highest order n a 、n b 、n c , number of delay cycles, forgetting factor λ, etc. Among them, for the delay parameter d, based on previous debugging experience or collected time domain data, an evaluation is made on the acceleration delay and front wheel steering angle delay of the vehicle. For example, if the delay is 200ms and the control cycle is 20ms, then d=200 / 20=10. For the forgetting factor λ, in the present invention, the forgetting factor λ is taken as 0.95, and the value can usually be in the interval [0.95 1.0]. The larger the value, the slower the convergence speed, but oscillation can be avoided; the smaller the value, the faster the convergence speed, but the anti-interference ability will become weaker. Therefore, it is necessary to strike a balance between fast response and avoiding interference.

[0180] 5. Arrange the data and process it using batch processing. According to the previous step 3, N groups of input and output signals have been collected, and then the batch processing method can be used to estimate the parameters of ρ:

[0181] ρ=(φ T φ) -1 φ T Y; (Formula 1)

[0182] in, Input data matrix for N groups:

[0183]

[0184] Represents 1 to N groups of input data, each group of data contains the current time k before (kn a )~(k-1) time state variables and (kdn b )~(kd)Time control variable value, k∈[n a +1 n a +N];

[0185] Y is the N-group output data matrix:

[0186]

[0187] Y 1~N Represents 1 to N groups of output data, each group of data is the state variable value at the current k moment, k∈[n a +1 n a +N].

[0188] After obtaining the model parameter ρ matrix, the next state of the vehicle can be accurately predicted based on the matrix and the state variables of the vehicle at multiple times.

[0189] 6. Generate offline vehicle model. Based on all the above data, substitute it into formula 1 to get the model parameter matrix ρ.

[0190] Since no matter how much data is collected offline, it is still difficult to cover all vehicle driving scenarios, the present invention collects the actual vehicle driving data in real time based on the offline model, and updates the vehicle model online based on these data.

[0191] Figure 4 FIG. 1 is a flow chart of online updating of a vehicle model according to an embodiment of the present invention. Figure 4 As shown, the process of online updating of the vehicle model in the embodiment of the present invention is: using the vehicle model to be updated (the initial offline vehicle model, or the vehicle model at the previous moment before the current moment) to generate the actual vehicle control signal, then controlling the vehicle to drive, and obtaining the actual vehicle driving state during the vehicle driving process. Afterwards, the vehicle model to be updated is updated online according to the collected actual vehicle control signal and the actual vehicle driving state.

[0192] In order to realize online updating of vehicle models and reduce the amount of calculation and memory space, the present invention adopts the following method for recursive estimation:

[0193] ρ k =ρ k-1 +Δρ;

[0194] Here, Δρ is the correction value based on the new data.

[0195] To prevent the newly collected data from weakening the parameter correction ability of the vehicle model, the latest data is weighted with 1 and the historical data is weighted with λ n Weighted. Then based on the above theory, the least squares calculation is performed, and the parameter estimation formula is as follows:

[0196]

[0197]

[0198]

[0199] Above, ρ k-1 is the parameter matrix at time (k-1), which is a known quantity here; Y k The vehicle state variable data collected in real time. is the input data, the specific data content has been stated before; the Q matrix is ​​the gain matrix, and the P matrix is ​​an intermediate variable. Before the algorithm starts, the P matrix needs to be assigned an initial value. k is the parameter matrix to be updated at the current k moment.

[0200] In the embodiment of the present invention, the forgetting factor λ is set to 0.95, and can usually be set to a value in the interval [0.95 1.0]. The larger the value, the slower the convergence speed, but the oscillation can be avoided; the smaller the value, the faster the convergence speed, but the anti-interference ability will be weakened. Therefore, it is necessary to strike a balance between fast response and avoiding interference.

[0201] comprehensive Figure 3 and Figure 4 The generation process of the offline vehicle model and the process of online updating of the vehicle model introduced above can provide the basic process of online updating of the vehicle model of the present invention as follows:

[0202] 1. Obtain the initial vehicle model;

[0203] 2. Determine the offline control input signal according to different driving scenarios, including acceleration input signal and front wheel angle input signal;

[0204] 3. Collect input signal U and output signal Y;

[0205] 4. Set n a 、nb 、n c , d, λ and other parameters;

[0206] 5. Generate an offline vehicle model based on the above data and algorithm, and use the offline vehicle model as the initial model for updating the online model;

[0207] 6. Set the initial value of matrix P0;

[0208] 7. Real-time collection of input U during vehicle driving k and output Y k data;

[0209] 8. Update parameters online based on real-time vehicle driving data;

[0210] 9. Return to step 7 to continue the next cycle.

[0211] Figure 5 Schematic diagram of the main modules of the online updating device of the autonomous driving vehicle model according to an embodiment of the present invention. Figure 5 As shown, the online updating device 500 of the autonomous driving vehicle model of an embodiment of the present invention mainly includes a model building module 501, a data acquisition module 502 and a model updating module 503.

[0212] A model building module 501 is used to build an offline vehicle model based on the least square method, and use the offline vehicle model as the initial value of the online updated vehicle model;

[0213] A data collection module 502 is used to collect input data and output data of the vehicle model, wherein the output data is data generated during the vehicle driving according to the input data;

[0214] The model updating module 503 is used to update the model parameters of the vehicle model online based on the input data and the output data, so as to update the vehicle model online.

[0215] According to one embodiment of the present invention, the model building module 501 may also be used to:

[0216] Establishing an initial model of the vehicle and converting the initial model into a least squares model;

[0217] Acquire input signals and output signals under a preset scenario, wherein the input signals include acceleration instructions and front wheel steering angle instructions of the vehicle, and the output signals include position, speed and heading angle of the vehicle;

[0218] The input signal and the output signal are batch processed to determine model parameters of the offline vehicle model to construct the offline vehicle model.

[0219] According to another embodiment of the present invention, the initial model is a multi-input multi-output model, and the initial model is as follows:

[0220]

[0221] Among them, Y k is the state variable {x, y, v, θ} of the vehicle at time k T , x, y are the vehicle position coordinates, v is the vehicle speed, and θ is the vehicle heading angle; U k is the vehicle's control variable {a, δ} at time k T , a is the vehicle acceleration, δ is the front wheel steering angle of the vehicle, and d represents the delay; ε k is the noise interference signal of the vehicle at time k; That is the parameter matrix to be identified, and its specific form is as follows:

[0222]

[0223]

[0224]

[0225] above a, b, and c in the equation are specific parameters to be identified. The superscripts in a and b represent the weight coefficients of the coupling between the two variables, and the superscript in c represents the state variable corresponding to the superscript. The subscript corresponds to the current order, where n a 、n b 、n c Represents the matrix Highest order.

[0226] According to an embodiment of the present invention, the least squares model is as follows:

[0227]

[0228] Among them, Y k =[x k y k v k θ k ] T represents the output signal at time k, ρ k-1 represents the parameter matrix to be identified, Represents the input signal and contains state variables and control variables The value of, and the noise data ε k Represents the estimate of the noise at the current k moment. ρ k-1 The form is as follows:

[0229]

[0230]

[0231] Among them, the estimate of the noise at the current k moment ε k Use estimated value To express:

[0232]

[0233] According to one embodiment of the present invention, the model parameter ρ of the offline vehicle model is calculated by the following formula:

[0234] ρ=(φ T φ) -1 φ T Y;

[0235] in, For N groups of input signal matrices:

[0236]

[0237] in, Represents 1 to N groups of input signals, each group of input signals contains the current time k before (kn a )~(k-1) time state variables and (kdn b )~(kd)Time control variable value, k∈[n a +1 n a +N];

[0238] Y is the N-group output signal matrix:

[0239]

[0240] Y 1~N Represents 1 to N groups of output signals, each group of output signals is the state variable value at the current k moment, k∈[n a +1 n a +N].

[0241] According to an embodiment of the present invention, the preset scenarios include: straight-line acceleration and deceleration and constant speed scenarios on low adhesion roads and ordinary roads, small detour scenarios, turning scenarios on flat roads and horizontal slope roads, hill start scenarios and reversing scenarios.

[0242] According to another embodiment of the present invention, the input parameters include the acceleration command and the front wheel steering angle command of the vehicle, and the output parameters include the position, speed and heading angle of the vehicle; the model updating module 503 can also be used for:

[0243] The recursive method is used to calculate the model parameters of the vehicle model, and the formula is as follows:

[0244]

[0245]

[0246]

[0247] Among them, ρ k-1 is the parameter matrix at time (k-1); Y k The vehicle state variable data collected in real time. is the input data; Q matrix is ​​the gain matrix, P matrix is ​​the intermediate variable, and λ is the forgetting factor.

[0248] According to the technical solution of the embodiment of the present invention, an offline vehicle model is constructed based on the least squares method, and the offline vehicle model is used as the initial value of the online updated vehicle model; the input data and output data of the vehicle model are collected, and the output data is the data generated in the process of the vehicle driving according to the input data; the model parameters of the vehicle model are updated online based on the input data and the output data, and the technical means of updating the vehicle model online are used to construct the vehicle model offline based on the least squares method to realize the adaptive control of the vehicle, thereby improving the robustness and control accuracy of the control system. The present invention applies the least squares method to the multi-input and multi-output vehicle system for offline modeling and online model update, and uses a variety of input signals in the offline modeling to simulate a variety of scenarios, thereby improving the robustness and control accuracy of the control system in a variety of complex scenarios.

[0249] Figure 6 An exemplary system architecture 600 is shown to which an online updating method of an autonomous driving vehicle model or an online updating device of an autonomous driving vehicle model according to an embodiment of the present invention can be applied.

[0250] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0251] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various applications related to the control of the autonomous driving vehicle can be installed on the terminal devices 601, 602, 603, such as car navigation applications, path reminder and voice prompt applications, positioning applications, speed, heading angle measurement applications, etc. (only as examples).

[0252] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0253] The server 605 may be a server that provides various services, such as a background management server (only an example) that provides support for vehicle control requests sent by users using the terminal devices 601, 602, and 603. The background management server may update the model parameters of the vehicle model online based on the input data and the output data of the received vehicle model, update the vehicle model online, and feed back the processing results (such as the update instruction of the vehicle model - only an example) to the terminal device.

[0254] It should be noted that the online update method of the autonomous driving vehicle model provided in the embodiment of the present invention is generally executed by the server 605, and accordingly, the online update device of the autonomous driving vehicle model is generally set in the server 605.

[0255] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0256] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 7 The terminal device or server 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.

[0257] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0258] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0259] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0260] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0261] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0262] The units or modules involved in the embodiments of the present invention may be implemented in software or hardware. The units or modules described may also be provided in a processor, for example, may be described as: a processor including a model building module, a data acquisition module and a model updating module. The names of these units or modules do not, in certain cases, constitute limitations on the units or modules themselves, for example, the model building module may also be described as "a module for building an offline vehicle model based on the least squares method, and using the offline vehicle model as the initial value of the online updated vehicle model".

[0263] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: constructing an offline vehicle model based on the least squares method, and using the offline vehicle model as the initial value of the online updated vehicle model; collecting input data and output data of the vehicle model, wherein the output data is data generated during the vehicle driving according to the input data; and updating the model parameters of the vehicle model online based on the input data and the output data to update the vehicle model online.

[0264] According to the technical solution of the embodiment of the present invention, an offline vehicle model is constructed based on the least squares method, and the offline vehicle model is used as the initial value of the online updated vehicle model; the input data and output data of the vehicle model are collected, and the output data is the data generated in the process of the vehicle driving according to the input data; the model parameters of the vehicle model are updated online based on the input data and the output data, and the technical means of updating the vehicle model online are used to construct the vehicle model offline based on the least squares method to realize the adaptive control of the vehicle, thereby improving the robustness and control accuracy of the control system. The present invention applies the least squares method to the multi-input and multi-output vehicle system for offline modeling and online model update, and uses a variety of input signals in the offline modeling to simulate a variety of scenarios, thereby improving the robustness and control accuracy of the control system in a variety of complex scenarios.

[0265] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An online updating method for an autonomous driving vehicle model, characterized in that: include: Building an offline vehicle model based on the least squares method, and using the offline vehicle model as an initial value of an online updated vehicle model; Collecting input data and output data of the vehicle model, wherein the output data is data generated when the vehicle travels according to the input data; updating a model parameter of the vehicle model online based on the input data and the output data, so as to update the vehicle model online; Building an offline vehicle model based on the least squares method includes: establishing an initial model of the vehicle, and converting the initial model into a least squares model, wherein the initial model is a multi-input multi-output model; The input signal and the output signal under the preset scenario are obtained, wherein the input signal includes the acceleration command and the front wheel steering angle command of the vehicle, and the output signal includes the position, speed and heading angle of the vehicle; the input signal and the output signal are batch processed to determine the model parameters of the offline vehicle model to construct the offline vehicle model.

2. The method according to claim 1, characterized in that The initial model is as follows: Among them, Y k is the state variable {x, y, v, θ} of the vehicle at time k T , x, y are the vehicle position coordinates, v is the vehicle speed, and θ is the vehicle heading angle; U k is the vehicle's control variable {a, δ} at time k T , a is the vehicle acceleration, δ is the front wheel steering angle of the vehicle, and d represents the delay; ε k is the noise interference signal of the vehicle at time k; That is the parameter matrix to be identified, and its specific form is as follows: above a, b, and c are specific parameters to be identified, where the superscripts of a and b represent the weight coefficients of the coupling between the two variables, the superscript of c represents the state variable corresponding to the superscript; the subscript corresponds to the current order, where n a 、n b 、n c Represents the matrix Highest order.

3. The method according to claim 2, characterized in that The least squares model is as follows: Among them, Y k =[x k y k v k θ k ] T represents the output signal at time k, ρ k-1 represents the parameter matrix to be identified, Represents the input signal and contains state variables and control variables The value of, and the noise data ε k Represents the estimate of the noise at the current k moment; ρ k-1 The form is as follows: Among them, the estimate of the noise at the current k moment ε k Use estimated value To express: Among them, ρ k-2 Represents the parameter matrix at (k-2) time.

4. The method according to claim 1, characterized in that The model parameter ρ of the offline vehicle model is calculated by the following formula: p=(φ T f) -1 f T Y; in, For N groups of input signal matrices: in, Represents 1 to N groups of input signals, each group of input signals contains the current time k before (kn a )~(k-1) time state variables and (kdn b )~(kd)Time control variable value, k∈[n a +1 n a +N]; Y is the N-group output signal matrix: Y 1~N Represents 1 to N groups of output signals, each group of output signals is the state variable value at the current k moment, k∈[n a +1 n a +N].

5. The method according to claim 1, characterized in that The preset scenarios include: straight-driving acceleration and deceleration and constant speed scenarios on low-adhesion roads and ordinary roads, small detour scenarios, turning scenarios on flat roads and horizontal slope roads, hill start scenarios and reversing scenarios.

6. The method according to claim 2, characterized in that The input data includes the acceleration command and the front wheel steering angle command of the vehicle, and the output data includes the position, speed and heading angle of the vehicle; Updating the model parameters of the vehicle model online based on the input data and the output data includes: The recursive method is used to calculate the model parameters of the vehicle model, and the formula is as follows: Among them, ρ k-1 is the parameter matrix at time (k-1); Y k The vehicle state variable data collected in real time. is the input data; Q matrix is ​​the gain matrix, P matrix is ​​the intermediate variable, λ is the forgetting factor; R represents the real number domain, n a 、n b 、n c Represents the matrix Highest order.

7. An online updating device for an autonomous driving vehicle model, characterized in that: include: A model building module, used for building an offline vehicle model based on the least square method, and using the offline vehicle model as an initial value of an online updated vehicle model; A data acquisition module, used to acquire input data and output data of the vehicle model, wherein the output data is data generated during the vehicle's driving according to the input data; A model updating module, used for updating the model parameters of the vehicle model online based on the input data and the output data, so as to update the vehicle model online; The model building module is also used to establish an initial model of the vehicle and convert the initial model into a least squares model, wherein the initial model is a multi-input and multi-output model; obtain input signals and output signals under a preset scenario, wherein the input signals include acceleration instructions and front wheel steering instructions of the vehicle, and the output signals include the position, speed and heading angle of the vehicle; batch process the input signals and the output signals to determine the model parameters of the offline vehicle model to build the offline vehicle model.

8. An electronic device for online updating of an autonomous driving vehicle model, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.