Vehicle driving mode switching method and device, equipment and storage medium
By acquiring and preprocessing the vehicle's perception signals and body signals, combined with the driving mode recognition model, the target driving mode is determined, which solves the problem of low driving mode switching accuracy in the existing technology and achieves more accurate driving mode switching.
Patent Information
- Application Number
- CN202410515025.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-04-26
AI Technical Summary
In the existing technology, the driver's driving state recognition accuracy is low and misjudgment is prone to occur due to the reliance on macro driving mode or independent visual detection when switching vehicle driving modes.
By acquiring the vehicle's perception signal and body signal, and preprocessing, based on the driving mode recognition model, combined with the driver's driving status and driving conditions, the target driving mode is determined and switched.
It achieves accurate determination of vehicle driving status and driving conditions from the two dimensions of sensing signals and body signals, improves the accuracy of driving mode switching, and reduces misjudgments.
Smart Images

Figure CN118597142A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle driving mode control, and in particular to a vehicle driving mode switching method, device, equipment and storage medium. Background Art
[0002] The country is vigorously promoting the vigorous development of the smart car industry. At the same time, the public's acceptance of smart driving systems is gradually increasing, and accordingly, higher requirements are put forward for smart driving systems. At this stage, the intelligent driving system is developing towards stronger adaptive capabilities to adapt to different working conditions and different drivers. The driver's driving status and the accuracy of the recognition of the working conditions will have a strong impact on the performance of the system. For example, functions such as emergency braking, collision warning, lane keeping, automatic lane change, and adaptive cruise control all need to consider different driving conditions and driver status to adjust the performance of the function. In current technology, the vehicle's driving mode is usually switched based on the macro driving mode or visual detection of the driver alone to determine the user's driving status, which may cause misjudgment and other situations. Therefore, how to accurately switch the vehicle's driving mode is a problem that needs to be solved urgently.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a vehicle driving mode switching method, device, equipment and storage medium, aiming to solve the technical problem in the prior art of low accuracy in switching the vehicle driving mode by performing visual detection of the driver to determine the user's driving status.
[0005] To achieve the above object, the present application proposes a method for switching a driving mode of a vehicle, the method comprising:
[0006] Acquire the vehicle's perception signals and body signals;
[0007] Determining the driving state of the driver according to the vehicle body signal, and determining the driving condition of the vehicle according to the perception signal;
[0008] Based on the driving mode recognition model, determining the target driving mode of the vehicle according to the driving state and the driving condition;
[0009] The driving mode of the vehicle is switched to the target driving mode.
[0010] In one embodiment, the step of acquiring the perception signal and the body signal of the vehicle includes:
[0011] Acquiring a perception CAN signal of the vehicle through the perception CAN of the vehicle;
[0012] Acquiring a body CAN signal of the vehicle through the body CAN of the vehicle;
[0013] A preprocessing operation is performed on the perception CAN signal and the vehicle body CAN signal to obtain the perception signal and the vehicle body signal.
[0014] In one embodiment, the step of performing a preprocessing operation on the perception CAN signal and the body CAN signal to obtain the perception signal and the body signal includes:
[0015] Filtering the sensed CAN signal through a digital filter to remove high-frequency noise in the sensed CAN signal to obtain an initial sensed filtered signal;
[0016] Performing moving average filtering processing on the initial perception filtering signal, and performing outlier processing on the initial perception filtering signal after the moving average filtering processing, to obtain the perception signal;
[0017] Performing time synchronization on the vehicle body CAN signal to obtain a time-synchronized vehicle body signal;
[0018] Data verification is performed on the time-synchronized vehicle body signal, and when the data verification of the time-synchronized vehicle body signal passes, de-jitter processing is performed on the time-synchronized vehicle body signal to obtain the vehicle body signal.
[0019] In one embodiment, before the step of determining the target driving mode of the vehicle according to the driving state and the driving condition based on the driving mode recognition model, the step further includes:
[0020] Obtaining the driving state at the observation time according to the perception signal and the vehicle body signal at the observation time;
[0021] marking the driving state to obtain a marked driving state;
[0022] Time-sequencing the marked driving states to obtain a time series of the driving states;
[0023] The initial driving mode recognition model is trained based on the time series of the driving state to obtain the driving mode recognition model.
[0024] In one embodiment, the step of training the initial driving mode recognition model based on the time series of the driving state to obtain the driving mode recognition model comprises:
[0025] Determining observation data and a driving state in a time series of the driving state, and setting the driving state as a hidden state of the initial driving mode recognition model, wherein the observation data includes the perception signal and the vehicle body signal;
[0026] Setting the observation data as an observable state of the initial driving mode recognition model, and determining a mapping relationship between the observation data and the driving state;
[0027] determining a distribution probability of the hidden state;
[0028] Obtaining a transition probability matrix according to the mapping relationship and the distribution probability;
[0029] Analyzing the transfer probability matrix based on a Gaussian mixture model to obtain a confidence level and a density function, and obtaining the initial driving mode recognition model based on the confidence level and the density function;
[0030] The initial driving mode recognition model is trained according to the observation data and the driving state to obtain the driving mode recognition model.
[0031] In one embodiment, the step of training the initial driving mode recognition model according to the observation data and the driving state to obtain the driving mode recognition model comprises:
[0032] Determine an observation sequence according to the observation data, and determine a corresponding occurrence probability according to the observation sequence;
[0033] Determine marginal probabilities based on the forward algorithm;
[0034] Calculating a joint probability according to the occurrence probability and the marginal probability;
[0035] Based on the joint probability, the initial driving mode recognition model is trained to obtain a target final state transition probability matrix and an observation state transition probability matrix;
[0036] The driving mode recognition model is based on the target final state transition probability matrix and the observation state transition probability matrix.
[0037] In one embodiment, the step of determining the target driving mode of the vehicle according to the driving state and the driving condition based on the driving mode recognition model includes:
[0038] The driving state and the driving condition are input into the driving mode recognition model, the driving state and the driving condition are inferred based on the target final state transition probability matrix and the observed state transition probability matrix in the driving mode recognition model, and the target driving mode is output.
[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle driving mode switching device, the vehicle driving mode switching device comprising:
[0040] A signal acquisition module is used to obtain the vehicle's perception signals and body signals;
[0041] A signal processing module, used to determine the driving state of the driver according to the vehicle body signal, and determine the driving condition of the vehicle according to the perception signal;
[0042] A mode recognition module, configured to determine a target driving mode of the vehicle according to the driving state and the driving condition based on a driving mode recognition model;
[0043] A mode switching module is used to switch the driving mode of the vehicle to the target driving mode.
[0044] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle driving mode switching device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle driving mode switching method as described above.
[0045] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the vehicle driving mode switching method described above are implemented.
[0046] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the vehicle driving mode switching method as described above are implemented.
[0047] One or more technical solutions proposed in the present application have at least the following technical effects: acquiring the vehicle's perception signals and body signals; determining the driver's driving state based on the body signals, and determining the vehicle's driving condition based on the perception signals; determining the vehicle's target driving mode based on the driving state and the driving condition based on a driving mode recognition model; switching the vehicle's driving mode to the target driving mode, thereby determining the vehicle's driving state and driving condition from two dimensions of the vehicle's perception signals and body signals, judging whether the vehicle's driving mode is to be switched from two perspectives, and being able to accurately switch the vehicle's driving mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0050] Figure 1 A schematic diagram of a flow chart provided for a first embodiment of a method for switching a driving mode of a vehicle of the present application;
[0051] Figure 2 A schematic diagram of a flow chart provided for a second embodiment of a method for switching a driving mode of a vehicle of the present application;
[0052] Figure 3 A schematic diagram of a hidden Markov model provided for an embodiment of a method for switching a driving mode of a vehicle of the present application;
[0053] Figure 4 A schematic diagram of a forward algorithm derivation provided for an embodiment of a method for switching a driving mode of a vehicle of the present application;
[0054] Figure 5 A schematic diagram of a simplified process flow of a method for switching a vehicle driving mode provided in Embodiment 2 of the present application;
[0055] Figure 6 This is a schematic diagram of the module structure of the driving mode switching device of the vehicle in the embodiment of the present application;
[0056] Figure 7 Schematic diagram of the device structure of the hardware operating environment involved in the vehicle driving mode switching method in the embodiment of the present application.
[0057] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0058] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0059] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0060] The main solution of the embodiment of the present application is: obtaining the vehicle's perception signals and body signals; determining the driver's driving state based on the body signals, and determining the vehicle's driving conditions based on the perception signals; determining the vehicle's target driving mode based on the driving state and the driving conditions based on a driving mode recognition model; and switching the vehicle's driving mode to the target driving mode.
[0061] In this embodiment, for the convenience of description, the following description is made by taking the identification of the vehicle's driving mode switching device as the execution subject.
[0062] Since the prior art usually determines the user's driving status based on the macro driving mode or performs visual detection of the driver alone to switch the vehicle's driving mode when identifying the vehicle's driving mode, misjudgment may occur. The present application provides a solution to determine the vehicle's driving status and driving conditions from two dimensions: the vehicle's perception signal and the vehicle's body signal. It judges whether the vehicle's driving mode should be switched from two perspectives, and can accurately switch the vehicle's driving mode.
[0063] It can be seen from the above embodiments that the present application obtains the perception signal and body signal of the vehicle; determines the driving state of the driver according to the body signal, and determines the driving condition of the vehicle according to the perception signal; determines the target driving mode of the vehicle according to the driving state and the driving condition based on the driving mode recognition model; switches the driving mode of the vehicle to the target driving mode, thereby determining the driving state and driving condition of the vehicle from two dimensions of the perception signal and body signal of the vehicle, judging whether the vehicle driving mode is switched from two angles, and being able to accurately switch the vehicle driving mode.
[0064] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a vehicle driving mode switching device, etc. The following takes the vehicle driving mode switching device as an example to illustrate this embodiment and the following embodiments.
[0065] Based on this, the embodiment of the present application provides a method for switching the driving mode of a vehicle, referring to Figure 1 , Figure 1 This is a flow chart of a first embodiment of a method for switching a driving mode of a vehicle of the present application.
[0066] In this embodiment, the vehicle driving mode switching method includes steps S10 to S40:
[0067] Step S10, acquiring a perception signal and a body signal of the vehicle;
[0068] It should be noted that the perception signals and body signals refer to signals collected from environmental sensors arranged on the vehicle or from vehicle body sensors, among which the perception signals and body signals include but are not limited to: following target, target speed, target acceleration, target relative position, lane line polynomial coefficient, lane line type, lane width, lane line confidence, turn signal, vehicle lateral speed, brake pedal opening, accelerator pedal opening, steering wheel angle, driver fatigue, and driver proficiency signals.
[0069] In a feasible implementation, step S10 may include the following steps:
[0070] Acquiring a perception CAN signal of the vehicle through the perception CAN of the vehicle;
[0071] Acquiring a body CAN signal of the vehicle through the body CAN of the vehicle;
[0072] A preprocessing operation is performed on the perception CAN signal and the vehicle body CAN signal to obtain the perception signal and the vehicle body signal.
[0073] In a specific implementation, the data in the environmental sensors and the body sensors need to be transmitted from the CAN bus after collection. Therefore, the signals collected by the sensors are CAN signals, namely, perception CAN signals and body CAN signals. After the vehicle's CAN bus processes the perception CAN signals and the body CAN signals, the perception CAN signals can be obtained from the perception CAN, and the body CAN signals can be obtained from the body CAN. The perception CAN signals and the body CAN signals are preprocessed to obtain the perception signals and the body signals.
[0074] Exemplarily, the step of performing a preprocessing operation on the perception CAN signal and the body CAN signal to obtain the perception signal and the body signal includes:
[0075] Filtering the sensed CAN signal through a digital filter to remove high-frequency noise in the sensed CAN signal to obtain an initial sensed filtered signal;
[0076] Performing moving average filtering processing on the initial perception filtering signal, and performing outlier processing on the initial perception filtering signal after the moving average filtering processing, to obtain the perception signal;
[0077] Performing time synchronization on the vehicle body CAN signal to obtain a time-synchronized vehicle body signal;
[0078] Data verification is performed on the time-synchronized vehicle body signal, and when the data verification of the time-synchronized vehicle body signal passes, de-jitter processing is performed on the time-synchronized vehicle body signal to obtain the vehicle body signal.
[0079] In the specific implementation, the vehicle's perception CAN signal and body CAN signal are obtained on the car, so the feasibility of the solution can be guaranteed. Since the obtained signal is noisy, basic preprocessing operations are required for the signal. Preprocessing and filtering the perception CAN signal and body CAN signal is an important step. Since the perception CAN signal and body CAN signal come from different sources, one is a sensor based on speed sensors, image sensors, etc. for collecting environmental information, and the other is the control system of the source vehicle, such as the vehicle's braking system, steering system, etc. When pre-processing and filtering the perceived CAN signal, denoising can be performed first. When denoising, a digital filter can be used to remove high-frequency noise in the signal to obtain an initial perceived filtered signal. These noises may come from electromagnetic interference, noise inside the equipment, etc. The denoised signal can also be smoothed by moving average filtering to reduce random fluctuations in the signal. The smoothed signal is standardized or normalized to convert the signal into a fixed range, such as 0 to 1 or -1 to 1, to reduce the signal size, facilitate data analysis, and speed up signal processing. After processing the signal data, the outliers are processed to complete the filtering and obtain the perceived signal.
[0080] When filtering the body CAN signal, the body CAN signal can be first time-synchronized to ensure that all related body CAN signals are time-synchronized, and a time-synchronized body signal can be obtained to facilitate subsequent data analysis and processing. After that, the body CAN signal can be checked for data integrity to verify the integrity and correctness of the body CAN signal, including checking the length and checksum of the signal data. When the time-synchronized body signal is verified, the time-synchronized body signal is de-jittered when the verification passes, and the jitter signal caused by electromagnetic interference or mechanical vibration is removed to obtain the body signal.
[0081] Step S20, determining the driving state of the driver according to the vehicle body signal, and determining the driving condition of the vehicle according to the perception signal;
[0082] It should be noted that the driving status may mainly include acceleration, deceleration, constant speed, left turn and right turn, and the driving conditions include straight driving, lane change, steering, U-turn, reversing and other conditions.
[0083] Specifically, when determining the driver's state based on the vehicle body signal, the driver's driving state can be judged based on the vehicle body signal. The driving state can be mainly divided into:
[0084] 1) Acceleration: determined by the vehicle's acceleration / acceleration / accelerator pedal opening;
[0085] 2) Deceleration: determined by the vehicle's acceleration / speed / brake pedal opening;
[0086] 3) Uniform speed: determined by the vehicle's acceleration / speed / brake pedal opening / accelerator pedal opening;
[0087] 4) Turning: determined by the steering wheel angle / steering wheel angular velocity of the vehicle;
[0088] 5) Driver proficiency: given by the onboard DMS (Drive Monitor System) module;
[0089] 6) Driver fatigue: given by the on-board DMS module.
[0090] The driver status mainly represents the driver's operation. The signal comes from the body CAN signal and provides a basic description of the driver status. Here, it can be coupled with the working condition for detailed classification, and can also be used as a pre-processing of the driving mode.
[0091] Step S30, determining a target driving mode of the vehicle according to the driving state and the driving condition based on a driving mode recognition model;
[0092] It should be noted that the driving mode recognition model is trained based on the vehicle's perception signals and body signals, and is used to determine the current vehicle's form state and driving conditions based on the vehicle's perception signals and body signals, and further determine the target driving state.
[0093] Exemplarily, the step of determining the target driving mode of the vehicle according to the driving state and the driving condition based on the driving mode recognition model includes:
[0094] The driving state and the driving condition are input into the driving mode recognition model, the driving state and the driving condition are inferred based on the target final state transition probability matrix and the observed state transition probability matrix in the driving mode recognition model, and the target driving mode is output.
[0095] In a specific implementation, in the driving mode recognition model, M sensor data can be obtained from the vehicle, and the probability of the vehicle being in the state under the current state can be obtained through the observed state transfer probability matrix of the driving mode recognition model. This probability can be obtained by a Gaussian model, and the value range is between [-1,1], which indicates the size of the confidence level, thereby completing the estimation part of the driver's state. After passing through the state transfer matrix, the transition probability of another state under the current state can be obtained, the judgment of the transfer process can be completed, and the target driving mode is output.
[0096] Step S40: switching the driving mode of the vehicle to the target driving mode.
[0097] In a specific implementation, when the target driving mode is obtained according to the output of the driving mode recognition model, the current vehicle driving mode can be switched to the target driving mode. Before switching the driving mode, the two driving modes need to be compared. When the current driving mode is the same as the target driving mode, the current vehicle driving mode is maintained unchanged.
[0098] In this embodiment, the perception signal and body signal of the vehicle are obtained; the driving state of the driver is determined according to the body signal, and the driving condition of the vehicle is determined according to the perception signal; based on a driving mode recognition model, the target driving mode of the vehicle is determined according to the driving state and the driving condition; the driving mode of the vehicle is switched to the target driving mode, so that the driving state and driving condition of the vehicle can be determined from two dimensions of the perception signal and the body signal of the vehicle, and whether the vehicle driving mode is to be switched can be judged from two angles, so that the vehicle driving mode can be switched accurately.
[0099] The present embodiment provides a method for switching a driving mode of a vehicle, by acquiring a perception signal and a body signal of the vehicle; determining a driving state of the driver according to the body signal, and determining a driving condition of the vehicle according to the perception signal; determining a target driving mode of the vehicle according to the driving state and the driving condition based on a driving mode recognition model; switching the driving mode of the vehicle to the target driving mode, thereby determining the driving state and driving condition of the vehicle from two dimensions of the perception signal and the body signal of the vehicle, judging whether the driving mode of the vehicle is to be switched from two perspectives, and being able to accurately switch the driving mode of the vehicle.
[0100] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 Before step S30, the vehicle driving mode switching method further includes steps S31 to S34:
[0101] S31: obtaining the driving state at the observation time according to the sensing signal and the vehicle body signal at the observation time;
[0102] S32: marking the driving state to obtain the marked driving state;
[0103] S33: sorting the marked driving states in time to obtain a time series of the driving states;
[0104] S34: Training an initial driving mode recognition model based on the time series of the driving state to obtain the driving mode recognition model.
[0105] In the specific implementation, the driver's state is combined with the working condition for evaluation. The driver's driving state is generally divided into acceleration, deceleration, constant speed, left turn, and right turn according to the horizontal and vertical directions, and the driving conditions are generally divided into straight driving, lane change, steering, U-turn, reversing and other conditions. Because the driving state and the working condition are strongly correlated, the two are combined. In order to train the model later, it is necessary to determine the driving mode and fill in the flag bits on the data to form the training data together with the input data. Data annotation is generally performed by experienced people, or batch code annotation is performed based on simple rules. The following are the detailed rules for the driving mode division adopted in this scheme, which include but are not limited to the following states:
[0106] 1) Following a vehicle going straight
[0107] Following is the most common driving mode, which is mainly reflected in the lack of particularly large swings in lateral operation. The corresponding driving mode marking judgment conditions are as follows:
[0108] a. Following a vehicle has a following target
[0109] b. The following distance has a threshold value. As the vehicle speed increases, the following distance threshold will also increase.
[0110] c. The absolute value of the steering wheel angle when following a vehicle must be less than the threshold. As the vehicle speed increases, the threshold becomes smaller.
[0111] d. When the vehicle is within the solid line, the confidence of following the vehicle increases.
[0112] e. When there are vehicles on both sides of the vehicle, the confidence of following the vehicle increases; the more vehicles there are around the vehicle, the greater the confidence of following the vehicle.
[0113] 2) Go straight and change lanes to the left
[0114] The following rules are mainly followed for marking this driving mode:
[0115] a. The vehicle has a following target, the relative distance becomes smaller, the lane change confidence increases, and there is no target within the left range
[0116] b. The steering wheel of the vehicle turns left and the speed is greater than the threshold. The threshold decreases as the vehicle speed increases.
[0117] c. The vehicle turns left
[0118] d. The left side is a dotted line or feasible region
[0119] e. The longitudinal direction of the following target remains unchanged. If there is a lane line, the lane line is fitted as a straight line, which is determined by the curvature of the lane line.
[0120] 3) Go straight and change lane right
[0121] This scenario is similar to the left-hand switching condition, and the corresponding signal direction is opposite
[0122] 4) Do not change lanes when turning left
[0123] Unlike driving straight, turning is more difficult to predict intentions and trajectories. Different functions need to be constrained for turning to increase the stability of the turning function and reduce false triggering of the function. Therefore, it is necessary to identify the driving mode for the curve. Most of the common assisted driving functions are developed based on scene recognition, which can greatly improve the accuracy of the function with the support of driving intentions. The marking of left turns mainly follows the following principles:
[0124] a. The steering wheel is turned to the left, and the amplitude exceeds the minimum threshold but is less than the maximum threshold. The threshold decreases as the vehicle speed increases.
[0125] b. If there is a lane line, the lane line is fitted as a smooth curve to the left.
[0126] c. If there is a target, the target trajectory is fitted as a smooth curve pointing to the left.
[0127] d. If the left lane line is a solid line facing left, or is not feasible, or there is a target on the left, the confidence is enhanced
[0128] e. When the state changes from straight to curved, the vehicle speed decreases to a certain extent.
[0129] 5) Do not change lanes when turning right
[0130] The judgment of this scenario is the same as that of turning left without changing lanes, and the positive and negative values of the relevant signals are changed. It should be noted that the difference between turning and changing lanes mainly comes from the judgment of the relative information of surrounding objects and lane lines. The lateral threshold for changing lanes on a curve is greater than that for not changing lanes on a curve.
[0131] 6) Left turn and lane change
[0132] a. The steering wheel is turned left and the amplitude exceeds the threshold for not changing lanes on a curve. The threshold decreases as the vehicle speed increases.
[0133] b. If there is a lane line, the lane line is fitted as a left curve, and the left side is a dotted line
[0134] c. If there is a target, the trajectory of the vehicle ahead is fitted as a left-facing curve, and there is no target on the left.
[0135] d. Left turn signal on
[0136] e. The relative distance to the target ahead tends to decrease. During the lane change process, the distance to the target in the original lane shortens and the relative speed increases.
[0137] 7) Right turn and lane change
[0138] This driving mode is marked the same as the left turn lane change, and the positive and negative values of the relevant signals change. The conditions for changing lanes on a curve are higher than those for not changing lanes on a curve, and there are also higher requirements for the target and lane lines.
[0139] 8) Turn left at the intersection
[0140] a. The vehicle speed is less than the threshold; and the average speed of all recognized valid targets is less than the threshold
[0141] b. Left turn signal on
[0142] c. The lane line disappears in the short distance ahead during the turning process
[0143] d. If there is a target, the target trajectory ahead is fitted as a left-facing curve with a curvature greater than the set threshold.
[0144] e. Before turning, if there is a stationary target in the surrounding direction, increase the confidence
[0145] f. The steering wheel is turned left and the amplitude exceeds the threshold. The threshold increases as the vehicle speed increases.
[0146] 9) Turn right at the intersection
[0147] The marking of this driving mode is the same as turning left at an intersection, and the positive and negative values of the relevant signals change. The core of turning at an intersection is reflected in the vehicle speed and steering wheel angle, and during the turning process, the lane line will partially disappear. The lateral conditions of turning at an intersection are more stringent than those of turning on a curve.
[0148] 10) Free driving. In addition to the other driving scenarios defined above, it is defined as free driving, and the free driving state can be transferred to any state defined above. Free driving here does not mean that the driver can drive at will, but defines the driving mode outside the division as a free state, such as reversing, parking and other states. The driving mode can be further divided according to different downstream intelligent driving functions. The above is only a basic division of the driving state.
[0149] When preparing data, it is necessary to extract the input and output of the model. The input of the model is the M signals of interest obtained from the perception system and the vehicle body CAN, and the output is the state of the driving mode, that is, the N states in the driving mode. The M observation signals can be obtained directly from the vehicle, and the N states are marked after the data is judged by the above rules. The data at each moment is composed of the above M+N data. When the state values are spread out in time, a time series is formed, thereby completing the labeling of the training data.
[0150] Exemplarily, the step of training the initial driving mode recognition model based on the time series of the driving state to obtain the driving mode recognition model includes:
[0151] Determining observation data and a driving state in a time series of the driving state, and setting the driving state as a hidden state of the initial driving mode recognition model, wherein the observation data includes the perception signal and the vehicle body signal;
[0152] Setting the observation data as an observable state of the initial driving mode recognition model, and determining a mapping relationship between the observation data and the driving state;
[0153] determining a distribution probability of the hidden state;
[0154] Obtaining a transition probability matrix according to the mapping relationship and the distribution probability;
[0155] Analyzing the transfer probability matrix based on a Gaussian mixture model to obtain a confidence level and a density function, and obtaining the initial driving mode recognition model based on the confidence level and the density function;
[0156] The initial driving mode recognition model is trained according to the observation data and the driving state to obtain the driving mode recognition model.
[0157] In the specific implementation, the Hidden Markov Model (HMM) is mainly composed of hidden state, observation state, initial value, state transfer matrix, and observation state probability matrix. The modeling process is:
[0158] Hidden state: that is, the intention that cannot be observed. In the process of driving mode judgment, the driving mode is a hidden state that cannot be directly observed and obtained, so the hidden state is set according to the driving mode. The hidden state is a discrete set with a number of N. The modeling expression is as follows:
[0159] S = {follow the car while driving straight, change lanes left while driving straight, change lanes right while driving straight, do not change lanes when turning left, do not change lanes when turning right, change lanes when turning left, change lanes when turning right, turn left at intersection, turn right at intersection, free driving}
[0160] Among them, S represents the hidden state set, and si represents the hidden state value at time i.
[0161] Observable state: information that can be acquired or estimated by the perception system and has a certain connection with the hidden state, that is, the input signal of the system. In this model, it includes three parts: lane line related information acquired by perception (including but not limited to lane line polynomial coefficients, lane width, lane line confidence, lane line type), target information acquired by perception (following target, target relative position, speed, acceleration and other information, target type), vehicle body CAN information (vehicle steering wheel angle, yaw angular velocity, accelerator and brake pedal opening, vehicle speed acceleration and other information). The number of signals required by the perception acquisition system is M, and the mathematical expression is as follows:
[0162] O={single1,single2,single3,…,singleM}
[0163] Among them, O is the set of observable states, oi is the observed state at time i, and Single is the name of the extracted input signal.
[0164] Distribution of initial state: represents the distribution probability of hidden state in the initial state. It indicates the different probabilities of N hidden states at the initial moment. The mathematical modeling is as follows:
[0165] p0=P(s=s i ),1≤i≤N
[0166] Among them, p0 is the distribution probability of the initial state, that is, the initial hidden state s is in s i The probability of being in the state of .
[0167] State transition probability matrix: indicates the probability of the current hidden state transferring to N hidden states at the next moment, expressed as a matrix, which is an N*N matrix. The mathematical expression is as follows:
[0168] a ij =P(s i+1 =S j |s i =S i ),1≤i≤N,1≤j≤N
[0169] A=[a ij ] N×N
[0170] where a ij Indicates that the current state s i For S i At the next moment s i+1 Transfer to S j probability.
[0171] Observation state transition probability matrix: indicates the probability of the state in hidden state N occurring under the current observation state, expressed as a matrix, which is an N*M matrix, and the mathematical expression is as follows:
[0172] b ij =P(s i+1 =S i |o j =O j ),1≤i≤N,1≤j≤M
[0173] B=[b ij ] N×M
[0174] where b ij Indicates that the current observation state o j O j At the next moment s i+1 Transfer to S i probability.
[0175] Gaussian mixture model. The output of the Gaussian model is [-1,1], which can be highly adapted to the probability model. At the same time, the hidden state is a discrete state, lacking the confidence to characterize the credibility of the signal. Therefore, the Gaussian mixture model is introduced for continuous output to characterize the confidence of the output signal. The Gaussian mixture model can be understood as K Gaussian distributions, each of which is assigned a weight. Its mathematical model is as follows:
[0176]
[0177] Among them, μ is the mean, ∑ is the covariance, d is the data dimension, x is the independent variable, T represents the transpose, and i represents the i-th Gaussian distribution. The marginal probability of the sample is:
[0178]
[0179] Among them, φ is the density function, and the parameter θ contains the probability distribution of the dependent variable x. To solve this model, an iterative method is required, using the EM algorithm. First, the E step is performed to calculate the possibility that each data j comes from the model k; then the M step is performed to calculate the unknown parameters of the iterative model until the two-step iteration error is less than the minimum value. At this time, the obtained parameters are the solution values. The specific detailed mathematical derivation process is relatively complicated, and the derivation results are given here as:
[0180]
[0181]
[0182]
[0183] Therefore, the expression of each Gaussian distribution is obtained. Among them, γ ij is the probability distribution, represents the j-th Gaussian distribution parameter.
[0184] At this point, the hidden state solution problem of driving mode is abstracted into a hidden Markov model, that is, under M perceptible signals, the prediction probability and transition state probability matrix of M formal modes are given. The specific model structure diagram is as follows Figure 3 shown.
[0185] Exemplarily, the step of training the initial driving mode recognition model according to the observation data and the driving state to obtain the driving mode recognition model includes:
[0186] Determine an observation sequence according to the observation data, and determine a corresponding occurrence probability according to the observation sequence;
[0187] Determine marginal probabilities based on the forward algorithm;
[0188] Calculating a joint probability according to the occurrence probability and the marginal probability;
[0189] Based on the joint probability, the initial driving mode recognition model is trained to obtain a target final state transition probability matrix and an observation state transition probability matrix;
[0190] The driving mode recognition model is based on the target final state transition probability matrix and the observation state transition probability matrix.
[0191] In the specific implementation, when training the model, a piece of labeled data is given, in which the observed state contains M signals and the hidden state contains N signals. The hidden value is obtained by the logical judgment and data annotation of the previous steps. The forward-backward algorithm can be used to solve the hidden Markov model. The basic derivation of the forward algorithm is given here. The structural block diagram is as follows Figure 4 The derivation is as follows: Given a hidden Markov model λ = (A, B, p0), and an observation sequence O = {O1, O2, O3, …, O M}, and then find the probability of a set of observation sequences occurring:
[0192]
[0193] On the basis of the above, find the next joint probability:
[0194]
[0195] Based on the above derivation, when calculating probability problems, it is necessary to pass in the observation sequence and the initial probability, calculate the forward probability of the next moment, and then derive the forward probability of the subsequent moments according to the above formula, and finally accumulate to find the probability of the observation sequence.
[0196] The iterative optimization of parameters is solved using the EM algorithm. When the error is less than the set value at a certain iteration step, the final state transfer probability matrix and the observed state transfer probability matrix are obtained. These two matrices represent the probability of the driver's state under the current perception state, and the probability of transferring to another state under the current state, thereby solving the estimation of the driver's state and the modeling of the transfer process.
[0197] For example, in order to help understand the implementation process of the vehicle driving mode switching method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 5 , Figure 5 A brief flow chart of a vehicle driving mode switching method is provided, specifically: by preprocessing the perception signal and the vehicle body CAN signal, judging the logic of the driver's state and identifying the driving mode, and then annotating the data segment, a training basis is provided for the driving mode recognition model, and a driving model recognition model based on GMM-HMM is built, and then the GMM-HMM driving model recognition model is trained to obtain the GMM-HMM driving model recognition model, and the final driving mode and confidence are output.
[0198] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the driving mode switching method of the vehicle of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0199] The present application also provides a vehicle driving mode switching device, please refer to Figure 6 , the driving mode switching device of the vehicle comprises:
[0200] The signal acquisition module 10 is used to obtain the perception signal and body signal of the vehicle;
[0201] A signal processing module 20, used to determine the driving state of the driver according to the vehicle body signal, and determine the driving condition of the vehicle according to the perception signal;
[0202] A mode recognition module 30, configured to determine a target driving mode of the vehicle according to the driving state and the driving condition based on a driving mode recognition model;
[0203] The mode switching module 40 is used to switch the driving mode of the vehicle to the target driving mode. The driving mode switching device for a vehicle provided in the present application adopts the driving mode switching method for a vehicle in the above-mentioned embodiment, which can solve the technical problem of low accuracy in switching the driving mode of the vehicle by visually detecting the driver to determine the user's driving state in the prior art. Compared with the prior art, the beneficial effects of the driving mode switching device for a vehicle provided in the present application are the same as the beneficial effects of the driving mode switching method for a vehicle provided in the above-mentioned embodiment, and other technical features in the driving mode switching device for the vehicle are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0204] The present application provides a driving mode switching device for a vehicle, the driving mode switching device for the vehicle comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the driving mode switching method for the vehicle in the above-mentioned embodiment one.
[0205] Reference below Figure 7 , which shows a schematic diagram of the structure of a vehicle driving mode switching device suitable for implementing the embodiment of the present application. The vehicle driving mode switching device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The driving mode switching device of the vehicle shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0206] like Figure 7As shown, the driving mode switching device of the vehicle may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the driving mode switching device of the vehicle are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the vehicle's driving mode switching device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a vehicle's driving mode switching device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0207] In particular, according to the embodiments disclosed in the present application, 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 application 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 a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0208] The vehicle driving mode switching device provided by the present application adopts the vehicle driving mode switching method in the above embodiment, which can solve the technical problem of low accuracy in the prior art of visually detecting the driver to determine the user's driving state to switch the vehicle driving mode. Compared with the prior art, the beneficial effects of the vehicle driving mode switching device provided by the present application are the same as the beneficial effects of the vehicle driving mode switching method provided by the above embodiment, and the other technical features of the vehicle driving mode switching device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0209] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0210] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0211] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle driving mode switching method in the above-mentioned embodiment.
[0212] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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 this embodiment, the 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, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0213] The computer-readable storage medium may be included in the driving mode switching device of the vehicle; or may exist independently without being assembled into the driving mode switching device of the vehicle.
[0214] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the driving mode switching device of the vehicle, the driving mode switching device of the vehicle:
[0215] Acquire the vehicle's perception signals and body signals;
[0216] Determining the driving state of the driver according to the vehicle body signal, and determining the driving condition of the vehicle according to the perception signal;
[0217] Based on the driving mode recognition model, determining the target driving mode of the vehicle according to the driving state and the driving condition;
[0218] The driving mode of the vehicle is switched to the target driving mode.
[0219] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0220] 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 application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / 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.
[0221] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0222] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle driving mode switching method, and can solve the technical problem of low accuracy in the prior art of visually detecting the driver to determine the user's driving state to switch the vehicle's driving mode. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle driving mode switching method provided by the above-mentioned embodiment, and will not be repeated here.
[0223] The present application also provides a computer program product, including a computer program, which implements the steps of the vehicle driving mode switching method as described above when executed by a processor.
[0224] The computer program product provided by the present application can solve the technical problem of low accuracy in the prior art of switching the driving mode of the vehicle by visually detecting the driver to determine the user's driving state. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle driving mode switching method provided by the above embodiment, and will not be elaborated here.
[0225] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for switching a driving mode of a vehicle, It is characterized in that The method includes: Acquire the vehicle's perception signals and body signals; Determining the driving state of the driver according to the vehicle body signal, and determining the driving condition of the vehicle according to the perception signal; Based on the driving mode recognition model, determining the target driving mode of the vehicle according to the driving state and the driving condition; The driving mode of the vehicle is switched to the target driving mode.
2. The method according to claim 1, It is characterized in that The step of obtaining the perception signal and the body signal of the vehicle comprises: Acquiring a perception CAN signal of the vehicle through the perception CAN of the vehicle; Acquiring a body CAN signal of the vehicle through the body CAN of the vehicle; A preprocessing operation is performed on the perception CAN signal and the vehicle body CAN signal to obtain the perception signal and the vehicle body signal.
3. The method according to claim 2, It is characterized in that The step of performing a preprocessing operation on the perception CAN signal and the vehicle body CAN signal to obtain the perception signal and the vehicle body signal comprises: Filtering the sensed CAN signal through a digital filter to remove high-frequency noise in the sensed CAN signal to obtain an initial sensed filtered signal; Performing moving average filtering processing on the initial perception filtering signal, and performing outlier processing on the initial perception filtering signal after the moving average filtering processing, to obtain the perception signal; Performing time synchronization on the vehicle body CAN signal to obtain a time synchronized vehicle body signal; Data verification is performed on the time-synchronized vehicle body signal, and when the data verification of the time-synchronized vehicle body signal passes, de-jitter processing is performed on the time-synchronized vehicle body signal to obtain the vehicle body signal.
4. The method according to claim 1, It is characterized in that Before the step of determining the target driving mode of the vehicle according to the driving state and the driving condition based on the driving mode recognition model, the step further includes: Obtaining the driving state at the observation time according to the perception signal and the vehicle body signal at the observation time; marking the driving state to obtain a marked driving state; Time-sequencing the marked driving states to obtain a time series of the driving states; The initial driving mode recognition model is trained based on the time series of the driving state to obtain the driving mode recognition model.
5. The method according to claim 4, It is characterized in that The step of training the initial driving mode recognition model based on the time series of the driving state to obtain the driving mode recognition model comprises: Determining observation data and a driving state in a time series of the driving state, and setting the driving state as a hidden state of the initial driving mode recognition model, wherein the observation data includes the perception signal and the vehicle body signal; Setting the observation data as an observable state of the initial driving mode recognition model, and determining a mapping relationship between the observation data and the driving state; determining a distribution probability of the hidden state; Obtaining a transition probability matrix according to the mapping relationship and the distribution probability; Analyzing the transfer probability matrix based on a Gaussian mixture model to obtain a confidence level and a density function, and obtaining the initial driving mode recognition model based on the confidence level and the density function; The initial driving mode recognition model is trained according to the observation data and the driving state to obtain the driving mode recognition model.
6. The method according to claim 5, It is characterized in that The step of training the initial driving mode recognition model according to the observation data and the driving state to obtain the driving mode recognition model comprises: Determine an observation sequence according to the observation data, and determine a corresponding occurrence probability according to the observation sequence; Determine marginal probabilities based on the forward algorithm; Calculating a joint probability according to the occurrence probability and the marginal probability; Based on the joint probability, the initial driving mode recognition model is trained to obtain a target final state transition probability matrix and an observation state transition probability matrix; The driving mode recognition model is based on the target final state transition probability matrix and the observation state transition probability matrix.
7. The method according to claim 1, It is characterized in that The step of determining the target driving mode of the vehicle according to the driving state and the driving condition based on the driving mode recognition model comprises: The driving state and the driving condition are input into the driving mode recognition model, the driving state and the driving condition are inferred based on the target final state transition probability matrix and the observed state transition probability matrix in the driving mode recognition model, and the target driving mode is output.
8. A driving mode switching device for a vehicle, It is characterized in that The device comprises: A signal acquisition module is used to obtain the vehicle's perception signals and body signals; A signal processing module, used to determine the driving state of the driver according to the vehicle body signal, and determine the driving condition of the vehicle according to the perception signal; A mode recognition module, configured to determine a target driving mode of the vehicle according to the driving state and the driving condition based on a driving mode recognition model; A mode switching module is used to switch the driving mode of the vehicle to the target driving mode.
9. A driving mode switching device for a vehicle, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle driving mode switching method according to any one of claims 1 to 7.
10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle driving mode switching method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Vehicle intention and trajectory prediction method
CN112347567A
Human-vehicle-road cooperative programmable matrix type headlamp system and method
CN112406687A
Driving assistance mode switching method, device and equipment and storage medium
CN113581208A
Driving variable calculation method and system, input features combination selection method, number of states determination method, program, storage medium and system
EP4280123A1
Vehicle control unit
JP2016034782A
