Vehicle decision-making method, device, vehicle and storage medium

Through pre-trained vehicle decision-making models and semantic segmentation models, combined with action prediction and value assessment networks, vehicle control strategies are generated and evaluated, which solves the existing vehicle safety monitoring problems of false positives and negatives, and improves driving safety and the decision-making process. Interpretability.

CN118372842BActive Publication Date: 2024-08-27GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410807496.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-08-27
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Existing vehicle safety monitoring methods have problems with false alarms and omissions, and cannot accurately predict and warn of potential safety hazards, resulting in the inability to proactively prevent accidents.

Method used

Using a pre-trained vehicle decision-making model, by obtaining the vehicle's environmental state parameters, the action prediction network and the value evaluation network are used to generate and evaluate candidate vehicle control strategies, and the strategy with the highest expected return is selected to ensure vehicle driving safety. This model combines a semantic segmentation model to obtain environmental parameters and improves decision accuracy and interpretability through a symbolic logic reasoning layer.

Benefits of technology

It achieves safe monitoring of vehicles in real-time environmental conditions, reduces accident risks, and improves driving safety and the speed and explainability of the decision-making process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118372842B
    Figure CN118372842B
Patent Text Reader

Abstract

The present application provides a vehicle decision-making method, device, vehicle and storage medium, which is applied to the vehicle field. The method includes: obtaining the environmental state parameters of the vehicle and inputting the environmental state parameters into a trained vehicle decision model. In the trained vehicle decision model, an action prediction network outputs various candidate vehicle control strategies that the vehicle may execute based on the environmental state parameters and a rule database. The rule database may pre-store measures to ensure vehicle safety under different environmental state parameters, so that the action prediction network can make fast and guided decisions based on the rule database. Afterwards, the value evaluation network evaluates the returns brought by each candidate vehicle control strategy, selects the candidate vehicle control strategy with the highest return as output, and controls the vehicle to execute the vehicle control strategy, thereby ensuring the speed and safety of the generated decision-making process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicles, and more particularly, to a vehicle decision-making method, device, vehicle, and storage medium in the field of vehicles. Background Art

[0002] With increasing traffic volume and increasingly complex road environments, traffic safety is a growing concern. Modern vehicles are equipped with numerous sensors and cameras that collect operational data and information about the surrounding environment. This enables real-time vehicle safety monitoring.

[0003] However, existing vehicle safety monitoring methods have problems with false alarms and missed alarms, and are unable to accurately predict and warn of potential safety hazards, thereby proactively preventing accidents. Summary of the Invention

[0004] The present application provides a vehicle decision-making method, device, vehicle and storage medium. The method adopts a pre-trained vehicle decision-making model to dynamically make decisions based on environmental conditions to ensure vehicle driving safety.

[0005] In a first aspect, a vehicle decision-making method is provided, which includes: obtaining environmental state parameters of a vehicle; inputting the environmental state parameters and a rule database into an action prediction network in a trained vehicle decision model to generate candidate vehicle control strategies; using a value evaluation network in the vehicle decision model to generate expected returns for each of the candidate vehicle control strategies; determining a vehicle control strategy with the highest expected return from the candidate vehicle control strategies; and controlling the vehicle to execute the vehicle control strategy.

[0006] In the above technical solution, a solution for applying a vehicle decision model to generate a vehicle control strategy is proposed. By obtaining the vehicle's environmental state parameters, the environmental state parameters are input into the trained vehicle decision model. In the trained vehicle decision model, the action prediction network will output the various candidate vehicle control strategies that the vehicle may execute based on the environmental state parameters and the rule database. The rule database can pre-store measures to ensure vehicle safety under different environmental state parameters, so that the action prediction network can make fast and guided decisions based on the rule database. Afterwards, the value evaluation network will evaluate the rewards brought by each candidate vehicle control strategy, select the candidate vehicle control strategy with the highest reward as the output, and control the vehicle to execute the vehicle control strategy, thereby ensuring vehicle driving safety through the real-time environmental state output corresponding vehicle control strategy.

[0007] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, obtaining the environmental status parameters of the vehicle includes: obtaining the environmental image data and vehicle parameters of the vehicle; using a semantic segmentation model to identify the environmental image data to obtain the environmental parameters of the vehicle; based on the vehicle parameters and the environmental parameters.

[0008] In the above technical solution, a solution for obtaining environmental parameters through a semantic segmentation model is proposed, wherein the environmental state parameters include environmental parameters, which may include road conditions, obstacle information, road signs, etc. The semantic segmentation model is used to identify and segment the environmental image to obtain environmental parameters, achieve a high degree of recognition of environmental details, and generate environmental state parameters based on environmental parameters and vehicle parameters, providing rich and accurate environmental information for vehicle safety monitoring.

[0009] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the environmental state parameters and the rule database are input into the action prediction network in the trained vehicle decision model to generate candidate vehicle control strategies, including: inputting the environmental state parameters into the feature extraction layer of the action prediction network in the trained vehicle decision model to obtain environmental feature data; inputting the environmental feature data and the rule database into the symbolic logic reasoning layer of the action prediction network, using the symbolic logic reasoning layer to perform decision inference based on the deduction rules indicated by the rule database to obtain candidate vehicle control strategies.

[0010] The above technical solution proposes a strategy generation process using an action prediction network. The action prediction network consists of a feature extraction layer and a symbolic logic reasoning layer. The feature extraction network extracts environmental feature data from environmental state parameters. The symbolic logic reasoning layer uses the extracted features and knowledge from the rule database to perform higher-level reasoning and decision-making to obtain a sample vehicle control strategy. Introducing symbolic logic reasoning can help the system perform logical reasoning, thereby improving the system's reasoning ability, decision-making accuracy, and interpretability.

[0011] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, a first sample environmental state parameter of a sample vehicle is obtained; the first sample environmental state parameter and the rule database are input into the action prediction network in the initial vehicle decision model to obtain a sample vehicle control strategy, and the sample vehicle is controlled to execute the sample vehicle control strategy; the second sample environmental state parameter and the actual reward after the sample vehicle executes the sample vehicle control strategy are obtained; the first sample environmental state parameter and the second sample environmental state parameter are input into the value evaluation network in the initial vehicle decision model to obtain the expected reward of the sample vehicle adopting the sample vehicle control strategy; the loss function value is determined based on the actual reward and the expected reward; the first network parameter of the action prediction network and the second network parameter of the value evaluation network are updated based on the loss function value until the action prediction network and the value evaluation network converge to obtain a trained vehicle decision model.

[0012] The above technical solution proposes a method for training a vehicle decision model. The method obtains first sample environmental state parameters of a sample vehicle, which are test environmental data for the sample vehicle and may include vehicle state parameters and environmental parameters. The first sample environmental state parameters and a rule database are input into an action prediction network in the initial vehicle decision model. The rule database may pre-store measures to ensure vehicle safety under different environmental state parameters. The action prediction network can infer the required vehicle action, namely the vehicle control strategy, based on the first sample environmental state parameters and the rule database. The value assessment network then evaluates the expected reward of the vehicle control strategy based on the second sample environmental state after the sample vehicle executes the sample vehicle control strategy and compares it with the actual reward of the strategy, thereby guiding the action prediction network to adjust the strategy to optimize the decision-making process until the vehicle decision model accurately reflects the expected driving behavior and safety standards. Furthermore, the introduction of the rule database into decision-making can ensure the speed and security of the decision-making process while improving the interpretability of the decision.

[0013] In combination with the first aspect, in some possible implementations, the first sample environmental state parameter and the rule database are input into the action prediction network in the initial vehicle decision model to obtain a sample vehicle control strategy, including: inputting the first sample environmental state parameter into the feature extraction layer in the action prediction network in the initial vehicle decision model to obtain sample environmental feature data; inputting the sample environmental feature data and the rule database into the symbolic logic reasoning layer in the action prediction network, using the symbolic logic reasoning layer to perform decision inference based on the deduction rules indicated by the rule database to obtain a sample vehicle control strategy, and controlling the vehicle to execute the sample vehicle control strategy.

[0014] The above technical solution specifically proposes the reasoning process of the action prediction network. The action prediction network utilizes a symbolic fusion framework, combining the learning capabilities of neural networks with the reasoning capabilities of symbolic logic. The action prediction network comprises a feature extraction layer and a symbolic logic reasoning layer. The feature extraction network extracts sample environmental feature data from the first sample environmental state parameters. The symbolic logic reasoning layer performs higher-level reasoning and decision-making based on these features and knowledge from the rule database to derive the sample vehicle control strategy. This network structure makes the entire decision-making process clearer and more explainable, facilitating the generation of targeted explanations and understanding of the system's decision-making process.

[0015] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, obtaining the second sample environmental state parameters and actual rewards after the vehicle executes the vehicle control strategy includes: obtaining the second sample environmental state parameters after the sample vehicle executes the vehicle control strategy according to a driving simulator; and generating the actual rewards after the sample vehicle executes the sample vehicle control strategy based on the second sample environmental state parameters and a preset reward function.

[0016] The above technical solution specifically proposes obtaining feedback after a sample vehicle executes a sample vehicle control strategy. This approach uses a virtual driving simulator to simulate the changes in environmental state parameters after the sample vehicle executes the sample vehicle control strategy. The new environmental state parameters are then collected and, based on a preset reward function, the actual reward for the vehicle after executing the sample vehicle control strategy is generated. This reward function then rewards or penalizes the model's decisions, thereby guiding the model to make the desired decision.

[0017] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the actual reward of the sample vehicle after executing the sample vehicle control strategy is generated based on the second sample environmental state parameter and the preset reward function, including: determining the driving environment risk level based on the first sample environmental state parameter; adjusting the reward value in the preset reward function based on the driving environment risk level to obtain an adjusted preset reward function; and determining the actual reward of the sample vehicle after executing the sample vehicle control strategy based on the second sample environmental state parameter and the adjusted preset reward function.

[0018] The above technical solution provides a dynamic reward scheme. This application can determine the driving environment risk level based on the first sample environmental state parameter, adjust the reward or penalty value in the preset reward function according to the different driving environment risk levels, and obtain an adjusted preset reward function. The actual reward is then determined based on the adjusted preset reward function and the second sample environmental state parameter after the vehicle executes the sample vehicle control strategy, thereby more accurately guiding model learning.

[0019] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, if the first sample environmental state parameter meets the set environmental conditions, the rule parameters of the driving rules associated with the set environmental conditions in the rule database are adjusted to obtain adjusted driving rules.

[0020] The above technical solution proposes that the rules in the rule database can be context-sensitive rules. In this application, if the first sample environmental state parameter meets the set environmental conditions, the rule parameters of the driving rules corresponding to the set environmental conditions can be adjusted. The rule parameters can include priority, application mode, etc. The rule parameters in the rule database can be adjusted according to different environments, allowing the model to make corresponding decisions or behaviors based on different situations, thereby improving the flexibility and reliability of the rule database.

[0021] In a second aspect, a vehicle decision-making device is provided, the device comprising:

[0022] A parameter acquisition unit, used to acquire environmental state parameters of the vehicle;

[0023] an action prediction unit, configured to input the environmental state parameters and the rule database into an action prediction network in a trained vehicle decision model to generate a candidate vehicle control strategy;

[0024] a value evaluation unit, configured to generate an expected reward for each of the candidate vehicle control strategies using a value evaluation network in the vehicle decision model;

[0025] a selection unit, configured to determine a vehicle control strategy with the highest expected reward from among the candidate vehicle control strategies;

[0026] A control unit is used to control the vehicle to execute the vehicle control strategy.

[0027] In a third aspect, a vehicle is provided, comprising a memory and a processor. The memory is configured to store executable program code, and the processor is configured to retrieve and execute the executable program code from the memory, so that the vehicle executes the method of the first aspect or any possible implementation of the first aspect.

[0028] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0029] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 This is a schematic diagram of a scenario of a vehicle decision-making method provided in an embodiment of the present application;

[0031] Figure 2 This is a flow chart of a vehicle decision-making method provided in an embodiment of the present application;

[0032] Figure 3 This is a flow chart of another vehicle decision-making method provided by an embodiment of the present application;

[0033] Figure 4 This is a flow chart of another vehicle decision-making method provided in an embodiment of the present application;

[0034] Figure 5 This is a schematic diagram illustrating an example of a vehicle decision-making method provided in an embodiment of the present application;

[0035] Figure 6 This is a model architecture diagram of a vehicle decision-making method provided in an embodiment of the present application;

[0036] Figure 7 This is a schematic structural diagram of a vehicle decision-making device provided in an embodiment of the present application;

[0037] Figure 8 This is a schematic structural diagram of a vehicle provided in an embodiment of the present application;

[0038] Figure 9 It is a structural schematic diagram of another vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following will clearly and thoroughly describe the technical solutions in this application in conjunction with the accompanying drawings. In the description of the embodiments of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more than two.

[0040] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0041] Please refer to Figure 1 , Figure 1 This is a system architecture diagram of a vehicle decision-making method provided by an embodiment of the present application. Figure 1 As shown, the vehicles involved in the system may include a vehicle and a server. The vehicle can obtain vehicle environmental state parameters and transmit the vehicle environmental state parameters to a trained vehicle decision model deployed in a server, or call a trained vehicle decision model in the server. The action prediction network in the vehicle decision model generates candidate vehicle control strategies based on the environmental state parameters and the rule database. The value evaluation network in the vehicle decision model evaluates the rewards of the candidate vehicle control strategies, selects the candidate vehicle control strategy with the highest expected reward after implementation as the control strategy currently recommended to the vehicle, and controls the vehicle to execute the vehicle control strategy.

[0042] It is understandable that the above system architecture diagram is only an example, and the trained vehicle decision model can also be directly configured in the vehicle without specific limitation.

[0043] based on Figure 1 The system architecture shown in the figure is shown in the figure. Figure 2-Figure 6 , a detailed introduction to the vehicle decision-making method provided in the embodiments of the present application is given.

[0044] See Figure 2 , Figure 2 This is a flow chart of a vehicle decision-making method provided by an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101 to S105.

[0045] S101, obtaining environmental state parameters of the vehicle;

[0046] In one embodiment, the categories of environmental state parameters may be consistent with the categories acquired during the training of the pre-trained vehicle decision model. For example, environmental state parameters may include vehicle state parameters and environmental parameters. Environmental state parameters may include vehicle state parameters and environmental parameters of the vehicle. Vehicle state parameters may include sensor data, such as speed, acceleration, and direction, for comprehensively assessing the vehicle's current state. Environmental parameters may include weather conditions, road conditions, and other information to simulate a real-world driving environment. Specifically, environmental images, obstacle information, vehicle state data, and the like may be collected by sensors such as cameras, radars, and laser radar (LiDAR) installed on the vehicle.

[0047] S102, inputting the environmental state parameters and the rule database into the action prediction network in the trained vehicle decision model to generate candidate vehicle control strategies;

[0048] In one embodiment, the acquired environmental state parameters are input into a pre-trained vehicle decision-making model, and a motion prediction network within the vehicle decision-making model outputs candidate vehicle control strategies. The motion prediction network can reason based on sample environmental state data and a rule database when making decisions.

[0049] The rule database stores the measures required to ensure vehicle safety under different environmental conditions. Each rule in the rule database is based on vehicle behavior specifications, such as traffic regulations and safety standards. Vehicle behavior specifications can include rules for yielding, turning, U-turns, parking, and meeting. These rules determine the driving rules for different vehicle states, environmental conditions (weather, traffic), and driving modes (autonomous or manual). Each rule is designed as a logical expression that can be clearly identified and executed. For example, a simple rule might be "Issue a warning if the vehicle speed exceeds the road speed limit."

[0050] The trained action prediction network can summarize knowledge from the rule database and perform reasoning to output appropriate candidate vehicle control strategies. For example, a candidate vehicle control strategy can generate corresponding prompt information, such as the presence of an obstacle ahead, or directly control the vehicle, such as automatic deceleration or steering.

[0051] S103, using the value evaluation network in the vehicle decision model to generate expected returns for each candidate vehicle control strategy;

[0052] In one embodiment, after obtaining the candidate vehicle control strategies, the value evaluation network in the vehicle decision model may perform value prediction on the candidate vehicle control strategies to obtain the expected return of each candidate vehicle control strategy.

[0053] S104, determining a vehicle control strategy with the highest expected return from the candidate vehicle control strategies;

[0054] It's understandable that the trained value assessment network can accurately predict the rewards of executing different strategies. Based on these rewards, the model will select the vehicle control strategy with the highest expected reward, ensuring safe driving, minimizing accidents, and maintaining smooth driving in this environment.

[0055] S105: Control the vehicle to execute the vehicle control strategy.

[0056] Specifically, the vehicle control strategy generates corresponding control instructions, such as steering, acceleration, and braking. The generated control instructions are transmitted to the vehicle's execution unit (such as the vehicle's electronic control unit) to actually control the vehicle's actions.

[0057] In an embodiment of the present application, by obtaining the environmental state parameters of the vehicle, the environmental state parameters are input into a trained vehicle decision model. In the trained vehicle decision model, the action prediction network outputs each candidate vehicle control strategy that the vehicle may execute based on the environmental state parameters and the rule database. The rule database may pre-store measures to be taken to ensure vehicle safety under different environmental state parameters, so that the action prediction network can make fast and guided decisions based on the rule database. Afterwards, the value evaluation network evaluates the rewards brought by each candidate vehicle control strategy, selects the candidate vehicle control strategy with the highest reward as output, and controls the vehicle to execute the vehicle control strategy. The model architecture of the action prediction network and the value evaluation network adopted has good decision-making reasoning capabilities. Combined with the rule database, it can quickly process preset safety rules and standards, thereby ensuring the speed and safety of the decision-making process. It can output the corresponding vehicle control strategy based on the real-time environmental state to ensure vehicle driving safety, while improving the explainability of the decision.

[0058] See Figure 3 , Figure 3 This is a flow chart of another vehicle decision-making method provided by an embodiment of the present application. Figure 3 As shown, the method of the embodiment of the present application may include the following steps S201 to S208.

[0059] S201, obtaining vehicle environment image data and vehicle parameters;

[0060] Specifically, environmental state parameters may include environmental parameters and vehicle parameters. Environmental parameters are used to characterize the environment outside the vehicle. Environmental parameters may include road conditions, obstacle information, road signs, etc. Environmental parameters may be acquired by collecting environmental image data. For example, environmental image data may be acquired by a camera mounted on the vehicle. Vehicle parameters may include vehicle speed, acceleration, braking status, etc. Vehicle parameters may be acquired by vehicle sensors.

[0061] S202, using a semantic segmentation model to identify environmental image data to obtain environmental parameters of the vehicle;

[0062] In one embodiment, a semantic segmentation model can be used to identify environmental image data to obtain vehicle environmental parameters. The semantic segmentation model can be implemented using DeepLab V3, for example, without limitation. A semantic segmentation model suitable for vehicle environmental scenarios can be pre-trained using pre-processed image data, including labeled images of roads, vehicles, pedestrians, and so on, as input for model training. The diversity and quality of the dataset should be ensured to improve the model's generalization capabilities. Optionally, a multi-scale input strategy can be employed to process the same image at different scales and fuse the results. This can enhance the model's ability to recognize objects of varying sizes, particularly when processing small objects at a distance. Parameters are then initialized, and a pre-trained model can be used as a starting point to accelerate training and improve model performance. A cross-entropy loss function is used to evaluate the difference between the model output and the ground truth annotations to guide model learning. Using an efficient optimization algorithm such as the Adam optimizer, hyperparameters such as the learning rate are adjusted to ensure stability and convergence during the training process. The model is then evaluated using a validation set, focusing on key performance indicators such as precision and recall. The model structure and parameters are adjusted in a timely manner to obtain a trained semantic segmentation model.

[0063] S203, generating environmental state parameters based on vehicle parameters and environmental parameters;

[0064] Specifically, the vehicle parameters and the environmental parameters are combined to obtain the environmental state parameters.

[0065] S204, inputting the environmental state parameters into the feature extraction layer of the action prediction network in the trained vehicle decision model to obtain environmental feature data;

[0066] In one embodiment, the action prediction network includes a feature extraction layer and a symbolic logic reasoning layer. After the environmental state parameters are input into the model, the feature extraction layer can extract environmental feature data from the first environmental state parameters. The feature extraction network can learn to identify and extract key information from the environment. The extracted features typically have lower dimensionality and higher information content, making subsequent calculations and decision-making processes more efficient. This helps reduce computational costs in real-time applications. Exemplarily, the feature extraction layer can be a convolutional neural network (CNN), a deep autoencoder, or the like.

[0067] S205, inputting the environmental feature data and the rule database into the symbolic logic reasoning layer of the action prediction network, using the symbolic logic reasoning layer to perform decision inference based on the inference rules indicated by the rule database to obtain a candidate vehicle control strategy;

[0068] Specifically, after extracting the environmental feature data, the environmental feature data and the rule database are input into the symbolic logic reasoning layer of the action prediction network. The vehicle control strategy corresponding to the current environmental feature data is inferred based on the symbolic logic reasoning capability of the symbolic logic reasoning layer, so that the generated candidate vehicle control strategy will not deviate from the restrictions of the rule database, that is, no unsafe control strategy will appear, and the decision-making process will have a certain degree of explainability.

[0069] S206, using the value evaluation network in the vehicle decision model to generate expected rewards for each of the candidate vehicle control strategies;

[0070] S207, determining a vehicle control strategy with the highest expected reward from the candidate vehicle control strategies;

[0071] S208: Control the vehicle to execute the vehicle control strategy.

[0072] Specifically, for the above steps S206-S208, please refer to steps S103-S105 in the above embodiment of the specification, which will not be repeated here.

[0073] In an embodiment of the present application, by obtaining the vehicle's environmental image data and vehicle parameters, a semantic segmentation model is used to identify and segment the environmental image to obtain environmental parameters, thereby achieving a high degree of recognition of environmental details. Environmental state parameters are obtained based on environmental parameters and vehicle parameters, providing rich and accurate environmental information for vehicle safety monitoring. In addition, the environmental state parameters are input into the feature extraction layer of the action prediction network in the trained vehicle decision model to obtain environmental feature data, and the environmental feature data and the rule database are input into the symbolic logic reasoning layer of the action prediction network. The symbolic logic reasoning layer is used to perform decision inference based on the deduction rules indicated by the rule database to obtain candidate vehicle control strategies, thereby improving the accuracy and interpretability of the vehicle control strategies. The candidate vehicle control strategies are then evaluated for rewards, and the vehicle control strategy with the highest reward is selected to control the vehicle to ensure safe driving of the vehicle.

[0074] See Figure 4 , provides a flow chart of another vehicle decision-making method for the embodiment of the present application. Figure 4 As shown, the method of the embodiment of the present application may include the following steps S301 to S306.

[0075] S301, obtaining a first sample environmental state parameter of a sample vehicle;

[0076] In one embodiment, the sample vehicle is a test vehicle used for model training, and its corresponding first sample environmental state parameters may include the vehicle state parameters and environmental parameters of the sample vehicle. Vehicle state parameters may include sensor data, such as speed, acceleration, and direction, used to comprehensively assess the vehicle's current state. Environmental parameters may include weather conditions, road conditions, and other information, used to simulate a real-world driving environment. Specifically, environmental images, obstacle information, and vehicle state data can be collected using sensors such as cameras, radar, and LiDAR installed on the vehicle. Furthermore, existing public road driving datasets, such as Cityscapes and KITTI, can be used to obtain rich road environment images and annotations to facilitate model training. It will be appreciated that the first sample environmental state parameters may be a parameter set, that is, different sample environmental state parameters of the sample vehicle can be obtained to form a set of test data. Each sample parameter in the parameter set is then input into the initial vehicle decision model for training.

[0077] S302, inputting the first sample environmental state parameter and the rule database into the action prediction network in the initial vehicle decision model to obtain a sample vehicle control strategy, and controlling the vehicle to execute the sample vehicle control strategy;

[0078] In one embodiment, the initial vehicle decision model can be based on a reinforcement learning algorithm model, that is, the vehicle decision model can include an action prediction network (Actor) and a value assessment network (Critic). The evaluation of the value assessment network is not based on a pre-set "correct decision", but is based on the expected reward given by the value function for the action taken. The value assessment network learns to evaluate the value of the state or state-action pair under the current strategy, while the action prediction network is used to learn to guide decision-making based on the evaluation of the value assessment network. Using this network architecture, the vehicle decision model can continuously learn and optimize its strategy. As more driving data and experience are accumulated, the decision-making ability of the system will gradually improve. Among them, the network structure of the action prediction network and the value assessment network can refer to the network structure of the existing Actor-Critic algorithm network and will not be repeated here.

[0079] The rule database stores the measures required to ensure vehicle safety under different environmental conditions. Each rule in the rule database is based on vehicle behavior specifications, such as traffic regulations and safety standards. Vehicle behavior specifications can include rules for yielding, turning, U-turns, parking, and meeting. These rules determine the driving rules for different vehicle states, environmental conditions (weather, traffic), and driving modes (autonomous or manual). Each rule is designed as a logical expression that can be clearly identified and executed. For example, a simple rule might be "Issue a warning if the vehicle speed exceeds the road speed limit."

[0080] When making decisions, the action prediction network can make decision inferences based on the first sample environmental state data and the rule database. Exemplarily, the action prediction network can extract environmental features from the first sample environmental state data, and by summarizing the rules in the rule database, confirm the rules adapted under the environmental features, thereby obtaining the probability distribution of the vehicle's execution actions, and the vehicle control strategy is composed of one or more execution actions. Exemplarily, the action with the highest probability can be selected as the control strategy for the current vehicle. It should be noted that the action decisions generated by the action prediction network are constrained by the rule database, which can improve the quality and safety of decisions, and because of the guidance of the rule database, the efficiency of reasoning can be improved.

[0081] S303, obtaining a second sample environmental state parameter and actual reward after the sample vehicle executes the sample vehicle control strategy;

[0082] In one embodiment, a driving simulator can provide a virtual driving environment in which a vehicle executes a specific control strategy and records the environmental state parameters and actual rewards during the execution process. The vehicle can be simulated in a virtual driving environment to execute the sample vehicle control strategy, and the environmental state parameters of each time step, such as the vehicle's position, speed, and the position of surrounding vehicles, can be recorded as second sample environmental state parameters. These parameters can be used to estimate subsequent state value functions or action value functions. At the same time, the actual reward of each time step needs to be recorded. This can be a reward value calculated based on the reward function set for the task, or it can be other indicators for evaluating the quality of vehicle driving behavior.

[0083] S304 , inputting the first sample environmental state parameter and the second sample environmental state parameter into a value evaluation network in the initial vehicle decision model to obtain an expected return of the vehicle adopting the sample vehicle control strategy;

[0084] In one embodiment, the first and second sample environmental state parameters are input into the value assessment network in the initial vehicle decision model. The value assessment network can generate an expected reward based on an action value function (AvF), also known as a Q-value function. The AvF represents the expected reward obtained by taking a specific action under a given state.

[0085] S305, determining a loss function value based on the actual return and the expected return;

[0086] In one embodiment, the TD (Temporal Difference) error can be used to determine the loss function value. TD error is a metric used to evaluate the prediction accuracy of the state-value function or action-value function in reinforcement learning algorithms. It measures the difference between the actual reward and the expected reward predicted by the value function. The calculation formula for TD error is as follows:

[0087] TD error = R + γ × V(S') - V(S);

[0088] Where: R is the actual reward; γ is the discount factor, which indicates the degree of decay of future rewards; V(S) is the value function prediction value of the current state (S), that is, the expected reward corresponding to the first sample environmental state parameters; V(S') is the value function prediction value of the next state (S'), that is, the expected reward corresponding to the second sample environmental state parameters after adopting the vehicle control strategy.

[0089] In reinforcement learning, optimization algorithms typically attempt to minimize the TD error so that the predictions of the value function are closer to the actual rewards. By minimizing the TD error, reinforcement learning algorithms can gradually improve the prediction accuracy of the value function, thereby improving the quality of decision-making and the efficiency of learning.

[0090] S306, updating the first network parameters of the action prediction network and the second network parameters of the value evaluation network based on the loss function value until the action prediction network and the value evaluation network converge to obtain a trained vehicle decision model.

[0091] In one embodiment, the first network parameters of the action prediction network and the second network parameters of the value evaluation network are updated according to the determined loss function value. When the loss function value gradually stabilizes and no longer decreases, it can be considered that the initial vehicle decision model has converged and a trained vehicle decision model is obtained.

[0092] In an embodiment of the present application, by obtaining the first sample environmental state parameters of the sample vehicle, the first sample environmental state parameters and the rule database are input into the action prediction network in the initial vehicle decision model. The rule database may pre-store measures to ensure vehicle safety under different environmental state parameters. The action prediction model may infer the action that the vehicle needs to take based on the first sample environmental state parameters and the rule database, that is, the sample vehicle control strategy. The value evaluation network evaluates the expected return of the vehicle control strategy based on the second sample environmental state parameters and the first sample environmental state parameters after the vehicle executes the sample vehicle control strategy, and compares it with the actual return of executing the strategy, thereby guiding the action prediction network to adjust the strategy to optimize the decision-making process until the vehicle decision model can accurately reflect the expected driving behavior and safety standards.

[0093] See Figure 5 , Figure 5 This is a flow chart of a vehicle decision-making method provided by an embodiment of the present application. Figure 5 As shown, the method of the embodiment of the present application may include the following steps S401 to S409.

[0094] S401, obtaining a first sample environmental state parameter of a sample vehicle;

[0095] For details, please refer to the description of step S101 in the above embodiment of the specification, which will not be repeated here.

[0096] S402, if the first sample environmental state parameter satisfies the set environmental condition, adjusting the rule parameters of the driving rule associated with the set environmental condition in the rule database to obtain an adjusted driving rule;

[0097] In one embodiment, if the first sample environmental state parameter meets the set environmental conditions, the rule parameters of the driving rules corresponding to the set environmental conditions can be adjusted. The rule parameters can be priority, application method, etc. For example, on rainy or snowy days, the weight of the safety distance rule between vehicles is increased. Specifically, under more dangerous or special weather conditions, such as rainy or snowy days, the execution priority of the safety distance rule is increased. This means that the system will prioritize checking and taking measures to ensure the safety distance rules, and the safety distance rules will occupy a more important position when evaluating the driver's behavior or the decision of the autonomous driving system. In addition to increasing the priority of the rules in the decision-making process, increasing the weight may also mean that the execution results or adjustment range of the rules become more significant. For example, on rainy days, the safety distance maintained may be longer than on sunny days to adapt to the low friction road conditions and ensure safety.

[0098] This approach enables the rule database to be dynamically adjusted according to actual driving environment conditions, improving the adaptability and practicality of decision-making.

[0099] S403, inputting the first sample environment state parameter into the feature extraction layer of the action prediction network in the initial vehicle decision model to obtain sample environment feature data;

[0100] In one embodiment, the action prediction network utilizes a deep neural symbolic architecture. Neural networks are responsible for learning features and patterns from large-scale data and performing nonlinear fitting, while symbolic computing is responsible for logical reasoning, knowledge representation, and decision inference based on these learned features and patterns. By integrating these two approaches, deep neural symbolic computing aims to overcome the limitations of traditional deep learning models in interpretability and reasoning, improving the system's decision logic and interpretability for complex tasks.

[0101] See Figure 6 , Figure 6 A model architecture diagram of a vehicle decision-making method is provided for an embodiment of the present application. Specifically, the vehicle decision-making model includes an action prediction network and a value assessment network. The action prediction network includes a feature extraction layer and a symbolic logic reasoning layer. The feature extraction network is responsible for extracting sample environment feature data from a first sample environment state parameter.

[0102] S404: Inputting the sample environmental feature data and the rule database into the symbolic logic reasoning layer in the action prediction network, and using the symbolic logic reasoning layer to perform decision inference based on the inference rules indicated by the rule database to obtain a sample vehicle control strategy;

[0103] In one embodiment, the symbolic logic reasoning layer is responsible for performing higher-level reasoning and decision-making based on sample environmental feature data and knowledge from the rule database to derive a sample vehicle control strategy. This network structure makes the entire decision-making process clearer and more explainable, facilitating the generation of targeted explanations and understanding of the system's decision-making process.

[0104] S405, obtaining, according to the driving simulator, a second sample environmental state parameter after the sample vehicle executes the sample vehicle control strategy;

[0105] In one embodiment, a virtual driving simulator is used to simulate changes in environmental state parameters after a sample vehicle executes a sample vehicle control strategy, and new environmental state parameters after the sample vehicle control strategy is executed are collected. For example, if the vehicle control strategy is braking, the vehicle's speed, acceleration, and distance to the obstacle ahead after braking can be obtained as second sample environmental state parameters.

[0106] S406 , generating an actual reward for the vehicle after executing the sample vehicle control strategy based on the second sample environment state parameter and the preset reward function;

[0107] In one embodiment, the actual reward for the vehicle after executing a sample vehicle control strategy is generated based on a preset reward function. This reward function, in other words, rewards or penalizes the model's decisions, thereby guiding the model to make the desired decision. The reward function can be manually set. For example, in the environment state X, executing action A results in a reward, while executing action B results in a penalty. Furthermore, the reward function can calculate the actual reward in the form of points. For example, in the environment state X, executing action A results in a +1 point, while executing action B results in a -2 point.

[0108] In one embodiment, generating an actual reward after the vehicle executes the sample vehicle control strategy based on the second sample environment state parameter and a preset reward function includes the following steps S4061-S4063:

[0109] S4061, determining a driving environment risk level based on the first sample environment state parameter;

[0110] Specifically, a driving environment risk level can be determined based on the first sample environmental state parameters. The driving environment risk level is used to characterize the risk level of the vehicle's current environment. Exemplarily, an artificial intelligence algorithm is employed to analyze and process the environmental state parameters, ultimately outputting a corresponding driving risk level. In another exemplary embodiment, criteria corresponding to each driving environment risk level are established. If the first sample environmental state parameters meet the criteria, the vehicle is determined to have reached that driving environment risk level.

[0111] S4062, adjusting the reward value in the preset reward function based on the driving environment risk level to obtain an adjusted preset reward function;

[0112] Specifically, the reward value in the preset reward function is adjusted based on the risk level of the driving environment. This means that different levels of rewards or penalties are introduced for different risky behaviors, resulting in an adjusted preset reward function. For example, in high-risk environments (such as busy intersections or extreme weather conditions), higher rewards are given for following safety rules to encourage the model to make more cautious decisions in these situations.

[0113] S4063 , determining an actual reward after the vehicle executes the sample vehicle control strategy based on the second sample environment state parameter and the adjusted preset reward function.

[0114] Specifically, the adjusted preset reward function and the second sample environment state parameters after the vehicle executes the sample vehicle control policy determine the actual reward to more accurately guide model learning.

[0115] S407 , inputting the first sample environmental state parameter and the second sample environmental state parameter into a value evaluation network in the initial vehicle decision model to obtain an expected return of the vehicle adopting the sample vehicle control strategy;

[0116] S408, determining a loss function value based on the actual reward and the expected reward;

[0117] S409, updating the first network parameters of the action prediction network and the second network parameters of the value evaluation network based on the loss function value until the action prediction network and the value evaluation network converge to obtain a trained vehicle decision model.

[0118] Specifically, regarding steps S407-S409, please refer to the description of steps S304-S306 in the above embodiment of the specification, and no further details are given here.

[0119] In an embodiment of the present application, by obtaining the first sample environmental state parameter of the sample vehicle, if the first sample environmental state parameter meets the set environmental condition, then the rule parameter of the driving rule corresponding to the set environmental condition can be adjusted, and the rule parameter in the rule database can be adjusted according to different environments, so that the model can make corresponding decisions or behaviors according to different situations, thereby improving the flexibility and reliability of the rule database, and inputting the first sample environmental state parameter into the feature extraction layer in the action prediction network in the initial vehicle decision model to obtain sample environmental feature data, and the symbolic logic reasoning layer is responsible for performing more advanced reasoning and decision-making based on the sample environmental feature data and the knowledge in the rule database to obtain a more accurate sample vehicle control strategy, and performing vehicle execution through a virtual driving simulator. The changes in environmental state parameters after executing the sample vehicle control strategy are simulated, the new environmental state parameters after executing the sample vehicle control strategy are collected, and the actual return of the vehicle after executing the sample vehicle control strategy is generated according to the preset reward function, that is, the decision of the model is rewarded or punished through the reward function, so as to guide the model to make the desired decision, and the first sample environmental state parameter and the second sample environmental state parameter are input into the value evaluation network in the initial vehicle decision model to obtain the expected return of the vehicle adopting the sample vehicle control strategy, and the loss function value is determined based on the actual return and the expected return, and the first network parameters of the action prediction network and the second network parameters of the value evaluation network are updated according to the loss function value until the action prediction network and the value evaluation network converge to obtain a trained vehicle decision model.

[0120] based on Figure 1 The following is a schematic diagram of the scene. Figure 7 , the vehicle decision-making device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 7 The vehicle decision-making device in the present application is used to execute Figure 2-Figure 6 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2-Figure 6 The embodiment shown.

[0121] See Figure 7 , which shows a schematic diagram of the structure of a vehicle decision-making device provided by an exemplary embodiment of this specification. The vehicle control device can be implemented as all or part of the device through software, hardware, or a combination of both. The device 1 includes a parameter acquisition unit 11, an action prediction unit 12, a value assessment unit 13, a selection unit 14, and a control unit 15.

[0122] A parameter acquisition unit 11 is used to acquire environmental state parameters of the vehicle;

[0123] an action prediction unit 12 for inputting the environmental state parameters and the rule database into the action prediction network in the trained vehicle decision model to generate a candidate vehicle control strategy;

[0124] A value evaluation unit 13 is configured to generate an expected reward for each of the candidate vehicle control strategies using a value evaluation network in the vehicle decision model;

[0125] A selection unit 14 is configured to determine a vehicle control strategy with the highest expected reward from the candidate vehicle control strategies;

[0126] The control unit 15 is configured to control the vehicle to execute the vehicle control strategy.

[0127] Optionally, the acquisition unit 11 is specifically used to acquire environmental image data and vehicle parameters of the vehicle;

[0128] Using a semantic segmentation model to identify the environmental image data to obtain environmental parameters of the vehicle;

[0129] Based on the vehicle parameters and the environmental parameters.

[0130] Optionally, the device 1 further comprises a training unit for obtaining a first sample environmental state parameter of a sample vehicle;

[0131] Inputting the first sample environmental state parameter and the rule database into an action prediction network in an initial vehicle decision model to obtain a sample vehicle control strategy, and controlling the sample vehicle to execute the sample vehicle control strategy;

[0132] Obtaining a second sample environmental state parameter and an actual reward after the sample vehicle executes the sample vehicle control strategy;

[0133] Inputting the first sample environmental state parameter and the second sample environmental state parameter into a value evaluation network in the initial vehicle decision model to obtain an expected reward for the sample vehicle adopting the sample vehicle control strategy;

[0134] determining a loss function value based on the actual reward and the expected reward;

[0135] Based on the loss function value, the first network parameter of the action prediction network and the second network parameter of the value evaluation network are updated until the action prediction network and the value evaluation network converge to obtain a trained vehicle decision model.

[0136] Optionally, the training unit is specifically configured to input the first sample environment state parameter into a feature extraction layer in an action prediction network in an initial vehicle decision model to obtain sample environment feature data;

[0137] The sample environmental feature data and the rule database are input into the symbolic logic reasoning layer in the action prediction network, and the symbolic logic reasoning layer is used to perform decision inference based on the deduction rules indicated by the rule database to obtain a sample vehicle control strategy, and the sample vehicle is controlled to execute the sample vehicle control strategy.

[0138] Optionally, the training unit is specifically configured to obtain, according to a driving simulator, a second sample environmental state parameter after the sample vehicle executes the sample vehicle control strategy;

[0139] Based on the second sample environment state parameter and a preset reward function, an actual reward after the sample vehicle executes the sample vehicle control strategy is generated.

[0140] Optionally, the training unit is specifically configured to determine a driving environment risk level based on the first sample environment state parameter;

[0141] Adjusting a reward value in a preset reward function based on the driving environment risk level to obtain an adjusted preset reward function;

[0142] Based on the second sample environmental state parameter and the adjusted preset reward function, an actual reward of the sample vehicle after executing the sample vehicle control strategy is determined.

[0143] Optionally, the training unit is specifically configured to adjust the rule parameters of the driving rule associated with the set environmental condition in the rule database if the first sample environmental state parameter meets the set environmental condition, so as to obtain the adjusted driving rule.

[0144] The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. In some cases, the actions or steps recorded in the embodiments of the present application can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0145] See Figure 8 , provides a structural diagram of a vehicle according to an embodiment of the present application. Figure 8 As shown, the vehicle 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.

[0146] Processor 501 is the control center of vehicle 500 and may include one or more processing cores. Using various interfaces and circuits, processor 501 connects various components of vehicle 500. By running or invoking computer programs stored in memory 502 and accessing data stored there, it executes various functions of vehicle 500 and processes data, thereby providing overall control of vehicle 500. Optionally, processor 501 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field programmable gate array (FPGA), or a programmable logic array (PLA). Processor 501 may integrate one or a combination of a CPU, a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interfaces, and applications; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may also be implemented independently of processor 501 via a separate communications chip.

[0147] Memory 502 can be used to store software programs and modules. Processor 501 executes various functional applications and data processing by running the computer programs and modules stored in memory 502. Memory 502 may primarily include a program storage area and a data storage area. The program storage area may store an operating system, computer programs required for at least one function, and the like; the data storage area may store data generated based on the use of vehicle 500.

[0148] In addition, the memory 502 may include a high-speed random access memory and a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0149] In this embodiment, the processor 501 in the vehicle 500 loads instructions corresponding to one or more computer program processes into the memory 502 according to the following steps, and the processor 501 runs the computer program stored in the memory 502 to implement various functions as follows:

[0150] Obtaining environmental state parameters of the vehicle;

[0151] Inputting the environmental state parameters and the rule database into the action prediction network in the trained vehicle decision model to generate candidate vehicle control strategies;

[0152] generating an expected reward for each of the candidate vehicle control strategies using a value evaluation network in the vehicle decision model;

[0153] Determining a vehicle control strategy with the highest expected reward from the candidate vehicle control strategies;

[0154] The vehicle is controlled to execute the vehicle control strategy.

[0155] Optionally, when executing the acquisition of the environmental state parameters of the vehicle, the processor 501 specifically performs:

[0156] Acquiring vehicle environment image data and vehicle parameters;

[0157] Using a semantic segmentation model to identify the environmental image data to obtain environmental parameters of the vehicle;

[0158] An environmental state parameter is generated based on the vehicle parameter and the environmental parameter.

[0159] Optionally, when the processor 501 inputs the environmental state parameters and the rule database into the action prediction network in the trained vehicle decision model to generate a candidate vehicle control strategy, the processor 501 specifically performs:

[0160] Inputting the environmental state parameters into the feature extraction layer of the action prediction network in the trained vehicle decision model to obtain environmental feature data;

[0161] The environmental feature data and the rule database are input into the symbolic logic reasoning layer of the action prediction network, and the symbolic logic reasoning layer is used to perform decision inference based on the deduction rules indicated by the rule database to obtain a candidate vehicle control strategy.

[0162] Optionally, the processor 501 is further configured to execute:

[0163] Obtaining a first sample environmental state parameter of a sample vehicle;

[0164] Inputting the first sample environmental state parameter and the rule database into an action prediction network in an initial vehicle decision model to obtain a sample vehicle control strategy, and controlling the sample vehicle to execute the sample vehicle control strategy;

[0165] Obtaining a second sample environmental state parameter and an actual reward after the sample vehicle executes the sample vehicle control strategy;

[0166] Inputting the first sample environmental state parameter and the second sample environmental state parameter into a value evaluation network in the initial vehicle decision model to obtain an expected reward for the sample vehicle adopting the sample vehicle control strategy;

[0167] determining a loss function value based on the actual reward and the expected reward;

[0168] Based on the loss function value, the first network parameter of the action prediction network and the second network parameter of the value evaluation network are updated until the action prediction network and the value evaluation network converge to obtain a trained vehicle decision model.

[0169] Optionally, when the processor 501 inputs the first sample environmental state parameter and the rule database into the action prediction network in the initial vehicle decision model to obtain a sample vehicle control strategy, and controls the vehicle to execute the sample vehicle control strategy, the processor 501 specifically executes:

[0170] Inputting the first sample environment state parameter into a feature extraction layer in an action prediction network in an initial vehicle decision model to obtain sample environment feature data;

[0171] The sample environmental feature data and the rule database are input into the symbolic logic reasoning layer in the action prediction network, and the symbolic logic reasoning layer is used to perform decision inference based on the deduction rules indicated by the rule database to obtain a sample vehicle control strategy, and the sample vehicle is controlled to execute the sample vehicle control strategy.

[0172] Optionally, when the processor 501 obtains the second sample environmental state parameter and actual feedback after the sample vehicle executes the sample vehicle control strategy, the processor 501 specifically performs:

[0173] obtaining, according to the driving simulator, a second sample environmental state parameter after the sample vehicle executes the sample vehicle control strategy;

[0174] Based on the second sample environment state parameter and a preset reward function, an actual reward after the sample vehicle executes the sample vehicle control strategy is generated.

[0175] Optionally, when the processor 501 generates an actual reward after the sample vehicle executes the sample vehicle control strategy based on the second sample environmental state parameter and a preset reward function, the processor 501 specifically executes:

[0176] determining a driving environment risk level based on the first sample environment state parameter;

[0177] Adjusting a reward value in a preset reward function based on the driving environment risk level to obtain an adjusted preset reward function;

[0178] Based on the second sample environmental state parameter and the adjusted preset reward function, an actual reward of the sample vehicle after executing the sample vehicle control strategy is determined.

[0179] Optionally, the processor 501 is further configured to execute:

[0180] If the first sample environmental state parameter satisfies the set environmental condition, the rule parameter of the driving rule associated with the set environmental condition in the rule database is adjusted to obtain an adjusted driving rule.

[0181] See Figure 9 , provides another structural diagram of a vehicle for the embodiment of the present application. Figure 9 As shown, the vehicle 500 includes a processor 501, a memory 502, a display screen 503, a camera assembly 504, a navigation device 505, a sensor 506, and a power supply 507. The processor 501 is electrically connected to the display screen 503, the camera assembly 504, the navigation device 505, the sensor 506, and the power supply 507.

[0182] The display screen 503 may be used to display information input by a user or information provided to a user, as well as various graphical user interfaces of the vehicle 500 . These graphical user interfaces may be composed of images, texts, icons, videos, and any combination thereof.

[0183] The camera assembly 504 may include image processing circuitry, which may be implemented using hardware and / or software components and may include various processing units that define an image signal processing (ISP) pipeline. The image processing circuitry may include at least: multiple cameras, an image signal processor (ISP), control logic, and image memory. Each camera may include at least one or more lenses and an image sensor. The image sensor may include a color filter array (e.g., a Bayer filter). The image sensor may obtain light intensity and wavelength information captured by each imaging pixel of the image sensor and provide a set of raw image data that can be processed by the ISP.

[0184] The navigation device 505 can be used to obtain vehicle location information and perform route planning, provide the planned route information to the vehicle 500, and display the navigation path on the display screen 503, or perform automatic driving control on the vehicle 500.

[0185] Sensor 506 is used to collect information about the vehicle 500 itself, the user, or the external environment. For example, sensor 506 may include one or more sensors such as a vibration sensor, a temperature sensor, a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a Hall sensor, a position sensor, a gyroscope, an inertial sensor, a posture sensor, a barometer, and a heart rate sensor.

[0186] The power supply 507 is used to supply power to various components of the vehicle 500. In some embodiments, the power supply 507 can be logically connected to the processor 501 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0187] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned vehicle decision-making method, and therefore can achieve the same effect as the above-mentioned implementation method.

[0188] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is used in a vehicle, the processing module may be used to control and manage the vehicle's movements, while the storage module may be used to support the vehicle's execution of relevant program codes.

[0189] The processing module may be a processor or controller that implements or executes the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processing (DSP) and a microprocessor, and the storage module may be a memory.

[0190] In addition, the device provided in the embodiment of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a vehicle decision-making method provided in the above embodiment.

[0191] An embodiment of the present application also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement a vehicle decision-making method provided by the above-mentioned embodiment.

[0192] This embodiment also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement a vehicle decision-making method provided by the above embodiment.

[0193] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0194] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0195] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0196] The above content is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, and they should all be covered by the protection scope of the present application.

Claims

1. A vehicle decision-making method, characterized in that: The method comprises: Obtain environmental state parameters of the vehicle; Inputting the environmental state parameters and the rule database into the action prediction network in the trained vehicle decision model to generate candidate vehicle control strategies; Using the value evaluation network in the vehicle decision model to generate the expected return of each of the candidate vehicle control strategies; Determining a vehicle control strategy with the highest expected return from the candidate vehicle control strategies; controlling the vehicle to execute the vehicle control strategy; The training method of the vehicle decision model includes: Obtaining a first sample environmental state parameter of a sample vehicle; Inputting the first sample environment state parameter and the rule database into the action prediction network in the initial vehicle decision model to obtain a sample vehicle control strategy, and controlling the sample vehicle to execute the sample vehicle control strategy; Obtaining a second sample environmental state parameter and an actual reward after the sample vehicle executes the sample vehicle control strategy; Inputting the first sample environment state parameter and the second sample environment state parameter into a value evaluation network in the initial vehicle decision model to obtain an expected return of the sample vehicle adopting the sample vehicle control strategy; Determine a loss function value based on the actual return and the expected return; Based on the loss function value, a first network parameter of the action prediction network and a second network parameter of the value evaluation network are updated until the action prediction network and the value evaluation network converge to obtain a trained vehicle decision model; The obtaining of a second sample environmental state parameter and an actual reward after the sample vehicle executes the sample vehicle control strategy includes: Acquiring, according to the driving simulator, a second sample environmental state parameter after the sample vehicle executes the sample vehicle control strategy; Based on the second sample environment state parameter and a preset reward function, generating an actual reward after the sample vehicle executes the sample vehicle control strategy; The step of generating, based on the second sample environment state parameter and a preset reward function, an actual reward after the sample vehicle executes the sample vehicle control strategy comprises: determining a driving environment risk level based on the first sample environment state parameter; Adjusting a reward value in a preset reward function based on the driving environment risk level to obtain an adjusted preset reward function; Based on the second sample environment state parameter and the adjusted preset reward function, an actual reward of the sample vehicle after executing the sample vehicle control strategy is determined.

2. The method according to claim 1, characterized in that The step of obtaining the environmental state parameters of the vehicle includes: Acquire environmental image data and vehicle parameters of the vehicle; Using a semantic segmentation model to identify the environmental image data to obtain environmental parameters of the vehicle; An environmental state parameter is generated based on the vehicle parameter and the environmental parameter.

3. The method according to claim 1, characterized in that The step of inputting the environmental state parameters and the rule database into the action prediction network in the trained vehicle decision model to generate candidate vehicle control strategies includes: Inputting the environmental state parameters into the feature extraction layer of the action prediction network in the trained vehicle decision model to obtain environmental feature data; The environmental feature data and the rule database are input into the symbolic logic reasoning layer of the action prediction network, and the symbolic logic reasoning layer is used to perform decision inference based on the derivation rules indicated by the rule database to obtain candidate vehicle control strategies.

4. The method according to claim 1, characterized in that: The step of inputting the first sample environment state parameter and the rule database into the action prediction network in the initial vehicle decision model to obtain a sample vehicle control strategy, and controlling the sample vehicle to execute the sample vehicle control strategy comprises: Inputting the first sample environment state parameter into a feature extraction layer in an action prediction network in an initial vehicle decision model to obtain sample environment feature data; The sample environment feature data and the rule database are input into the symbolic logic reasoning layer in the action prediction network, and the symbolic logic reasoning layer is used to perform decision inference based on the deduction rules indicated by the rule database to obtain a sample vehicle control strategy, and the sample vehicle is controlled to execute the sample vehicle control strategy.

5. The method according to claim 1, characterized in that: The method further comprises: If the first sample environmental state parameter satisfies the set environmental condition, the rule parameter of the driving rule associated with the set environmental condition in the rule database is adjusted to obtain an adjusted driving rule.

6. A vehicle decision-making device, characterized in that: The device comprises: A parameter acquisition unit, used to acquire environmental state parameters of the vehicle; An action prediction unit, used for inputting the environmental state parameters and the rule database into the action prediction network in the trained vehicle decision model to generate candidate vehicle control strategies; A value evaluation unit, configured to generate an expected return of each of the candidate vehicle control strategies using a value evaluation network in the vehicle decision model; A selection unit, configured to determine a vehicle control strategy with the highest expected return from among the candidate vehicle control strategies; A control unit, used for controlling the vehicle to execute the vehicle control strategy; A training unit is used to obtain a first sample environmental state parameter of a sample vehicle; input the first sample environmental state parameter and a rule database into an action prediction network in an initial vehicle decision model to obtain a sample vehicle control strategy, and control the sample vehicle to execute the sample vehicle control strategy; obtain a second sample environmental state parameter and an actual reward after the sample vehicle executes the sample vehicle control strategy; input the first sample environmental state parameter and the second sample environmental state parameter into a value evaluation network in the initial vehicle decision model to obtain an expected reward for the sample vehicle to adopt the sample vehicle control strategy; determine a loss function value based on the actual reward and the expected reward; and update the first network parameter and the value evaluation network of the action prediction network based on the loss function value. The second network parameter of the value evaluation network is adjusted until the action prediction network and the value evaluation network converge to obtain a trained vehicle decision model; the second sample environmental state parameter of the sample vehicle after executing the sample vehicle control strategy is obtained according to the driving simulator; based on the second sample environmental state parameter and the preset reward function, the actual reward of the sample vehicle after executing the sample vehicle control strategy is generated; based on the first sample environmental state parameter, the driving environment risk level is determined; based on the driving environment risk level, the reward value in the preset reward function is adjusted to obtain the adjusted preset reward function; based on the second sample environmental state parameter and the adjusted preset reward function, the actual reward of the sample vehicle after executing the sample vehicle control strategy is determined.

7. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory so that the vehicle executes the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 5 is implemented.