Vehicle control method, vehicle control system, electronic equipment and vehicle
By combining a deep reinforcement learning model with multiple neural network layers, multi-modal control instructions are generated, which solves the problem of a single control strategy for the intelligent driving system and improves the intelligence and safety of the vehicle.
Patent Information
- Application Number
- CN202311130872.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2024-10-22
AI Technical Summary
Existing intelligent driving systems are often too simple in control strategy and cannot adaptively adjust to different scenarios and needs, resulting in safety hazards and low driving efficiency.
Using a deep reinforcement learning model combined with a convolutional neural network, a fully connected layer, a self-attention layer and a multi-head attention layer, the total control instructions are generated and weighted summation is performed by obtaining the vehicle's motion control, comfort and safety parameters. Achieve multi-modal and multi-faceted fusion control.
It improves the intelligence level and adaptive ability of the vehicle, reduces the risk of human misoperation and accidents, and improves driving efficiency and safety.
Smart Images

Figure CN118810656A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle control method, a vehicle control system, an electronic device and a vehicle. Background Art
[0002] With the development of artificial intelligence technology, intelligent driving has become an active research field in computer vision and control systems. Autonomous driving systems include multiple perception-level tasks, such as lane detection, target detection, scene understanding, depth estimation, etc., as well as multiple decision-level tasks, such as trajectory planning, motion control, behavior prediction, etc. These tasks involve complex optimization problems in high-dimensional state space and continuous action space, requiring sophisticated control and robust learning capabilities.
[0003] In the related technologies, control is generally implemented by fixed predetermined rules, and the control strategy cannot be adjusted adaptively according to different scenarios and needs. Intelligent driving systems that can adaptively adjust the control strategy often only focus on controlling a specific aspect of the vehicle during driving, with a narrow control range, and may cause problems in other aspects due to blindly pursuing parameters in one aspect, which in turn leads to safety hazards and reduces driving efficiency. Summary of the invention
[0004] A series of simplified concepts are introduced in the Summary of the Invention section, which will be further described in detail in the Detailed Description of the Invention section. The Summary of the Invention section of this application does not mean to attempt to define the key features and essential technical features of the claimed technical solution, nor does it mean to attempt to determine the scope of protection of the claimed technical solution.
[0005] In response to the current problems, the present application provides a vehicle control method on the one hand, which includes: obtaining state input parameters of the vehicle, wherein the state input parameters include motion control parameters, comfort parameters and safety parameters; obtaining a general control instruction based on the state input parameters, an objective function and a deep reinforcement learning model; and controlling the vehicle based on the control instruction.
[0006] Exemplarily, it also includes: obtaining a total reward value based on the state input parameters, the objective function and the deep reinforcement learning model; and updating the parameters of the deep reinforcement learning model based on the total reward value.
[0007] Exemplarily, the motion control parameters include images captured by the vehicle.
[0008] Exemplarily, the comfort parameter includes at least one of the following: temperature, humidity, carbon dioxide concentration inside the vehicle, and the degree of bumpiness of the vehicle.
[0009] Exemplarily, the safety parameter includes at least one of the following: visibility, precipitation, and wind speed of the vehicle's surroundings.
[0010] Exemplarily, based on the state input parameters, the objective function and the deep reinforcement learning model, a total control instruction is obtained, including: based on the state input parameters and the deep reinforcement learning model, a motion control instruction is obtained in the convolutional neural network, and a comfort instruction and a safety instruction are obtained in the fully connected layer; based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model, a state representation vector is obtained in the self-attention layer; based on the state representation vector, the objective function and the deep reinforcement learning model, a motion control attention weight, a comfort attention weight and a safety attention weight are obtained in the multi-head attention layer; based on the motion control instruction and the motion control attention weight, the comfort instruction and the comfort attention weight, the safety instruction and the safety attention weight, the total control instruction is obtained in the weighted sum layer.
[0011] Exemplarily, based on the state input parameters, the objective function and the deep reinforcement learning model, a total reward value is obtained, including: based on the state input parameters and the deep reinforcement learning model, a motion control sub-reward value, a comfort sub-reward value and a safety sub-reward value are obtained, a motion control instruction is obtained in a convolutional neural network, and a comfort instruction and a safety instruction are obtained in a fully connected layer; based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model, a state representation vector is obtained in a self-attention layer; based on the state representation vector, the objective function and the deep reinforcement learning model, a motion control attention weight, a comfort attention weight and a safety attention weight are obtained in a multi-head attention layer; based on the motion control attention weight and the motion control sub-reward value, the comfort attention weight and the comfort sub-reward value, the safety attention weight and the safety sub-reward value, the total reward value is obtained in a weighted sum layer.
[0012] Exemplarily, based on the state input parameters and the deep reinforcement learning model, motion control instructions are obtained in a convolutional neural network, and comfort instructions and safety instructions are obtained in a fully connected layer, including: performing a convolution operation on the state input parameters to obtain a feature map; normalizing the feature map to obtain a normalized feature map; performing a nonlinear transformation on the normalized feature map to obtain an activated feature map; adding the state input parameters to the activated feature map to obtain a residual feature map; repeating the above steps until a preset network depth is reached to obtain the motion control instructions, the comfort instructions, and the safety instructions.
[0013] On the other hand, the present application provides a vehicle control system, including: a detection module, used to obtain the state input parameters of the vehicle, the state input parameters include motion control parameters, comfort parameters and safety parameters; a deep reinforcement learning module, used to obtain a general control instruction based on the state input parameters, the objective function and the deep reinforcement learning model; an execution module, used to control the vehicle based on the general control instruction.
[0014] Exemplarily, the deep reinforcement learning module is also used to obtain a total reward value based on the state input parameters, the objective function and the deep reinforcement learning model, and update the parameters of the deep reinforcement learning model based on the total reward value.
[0015] Exemplarily, the motion control parameters include images captured by the vehicle.
[0016] Exemplarily, the comfort parameter includes at least one of the following: temperature, humidity, carbon dioxide concentration inside the vehicle, and the degree of bumpiness of the vehicle.
[0017] Exemplarily, the safety parameter includes at least one of the following: visibility, precipitation, and wind speed of the vehicle's surroundings.
[0018] Exemplarily, the deep reinforcement learning module includes a convolutional neural network, a fully connected layer, a self-attention layer, a multi-head attention layer and a weighted summation layer. The deep reinforcement learning module obtains a general control instruction based on the state input parameters, the objective function and the deep reinforcement learning model, including: obtaining a motion control instruction in the convolutional neural network based on the state input parameters and the deep reinforcement learning model, and obtaining a comfort instruction and a safety instruction in the fully connected layer; obtaining a state representation vector in the self-attention layer based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model; obtaining a motion control attention weight, a comfort attention weight and a safety attention weight in the multi-head attention layer based on the state representation vector, the objective function and the deep reinforcement learning model; obtaining a general control instruction in the weighted summation layer based on the motion control instruction and the motion control attention weight, the comfort instruction and the comfort attention weight, the safety instruction and the safety attention weight.
[0019] Exemplarily, the deep reinforcement learning module includes a convolutional neural network, a fully connected layer, a self-attention layer, a multi-head attention layer and a weighted sum layer. The deep reinforcement learning module obtains a total reward value based on the state input parameters, the objective function and the deep reinforcement learning model, including: obtaining a motion control sub-reward value, a comfort sub-reward value and a safety sub-reward value based on the state input parameters and the deep reinforcement learning model, obtaining a motion control instruction in the convolutional neural network, and obtaining a comfort instruction and a safety instruction in the fully connected layer; obtaining a state representation vector in the self-attention layer based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model; obtaining a motion control attention weight, a comfort attention weight and a safety attention weight in the multi-head attention layer based on the state representation vector, the objective function and the deep reinforcement learning model; obtaining the total reward value in the weighted sum layer based on the motion control attention weight and the motion control sub-reward value, the comfort attention weight and the comfort sub-reward value, the safety attention weight and the safety sub-reward value.
[0020] Exemplarily, it is characterized in that the convolutional neural network and the fully connected layer include a residual network, the residual network includes a convolutional layer, a batch normalization layer, an activation layer and a jump connection, based on the state input parameters and the deep reinforcement learning model, a motion control instruction is obtained in the convolutional neural network, and a comfort instruction and a safety instruction are obtained in the fully connected layer, including: performing a convolution operation on the state input parameters through the convolutional layer to obtain a feature map; normalizing the feature map through the batch normalization layer to obtain a normalized feature map; performing a nonlinear transformation on the normalized feature map through the activation layer to obtain an activated feature map; adding the state input parameters to the activated feature map through the jump connection to obtain a residual feature map; repeating the above steps until the preset network depth is reached to obtain the motion control instruction, the comfort instruction and the safety instruction.
[0021] On the other hand, the present application provides an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the above-mentioned vehicle control method.
[0022] Yet another aspect of the present application provides a vehicle, characterized in that the vehicle includes the above-mentioned vehicle control system, or includes the above-mentioned electronic device.
[0023] The vehicle control method, vehicle control system, electronic device and vehicle of the present application can respectively obtain motion control parameters, comfort parameters and safety parameters as inputs, and output overall control instructions through objective functions and deep reinforcement learning models, thereby being able to perform multi-modal and multi-faceted fusion control, which is more comprehensive and reasonable. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and other purposes, features and advantages of the present invention will become more apparent by describing the embodiments of the present invention in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0025] In the attached figure:
[0026] Figure 1 A schematic flow chart of a vehicle control method according to a specific embodiment of the present application is shown.
[0027] Figure 2 A schematic flow chart of a vehicle control method according to a specific embodiment of the present application is shown.
[0028] Figure 3 A schematic structural block diagram of a vehicle control system according to a specific embodiment of the present application is shown.
[0029] Figure 4 A schematic structural block diagram of a deep reinforcement learning module according to a specific embodiment of the present application is shown.
[0030] Figure 5 A schematic structural block diagram of a residual network according to a specific embodiment of the present application is shown.
[0031] Figure 6 A schematic structural block diagram of a vehicle control system according to a specific embodiment of the present application is shown.
[0032] Figure 7 A schematic structural block diagram of an electronic device according to a specific embodiment of the present application is shown. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical scheme and advantages of the present invention more obvious, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the protection scope of the present invention.
[0034] Figure 1 A schematic flow chart of a vehicle control method according to a specific embodiment of the present application is shown.
[0035] like Figure 1 As shown, the vehicle control method 100 may include the following steps:
[0036] In step S110, the state input parameters of the vehicle are obtained, and the state input parameters include motion control parameters, comfort parameters and safety parameters.
[0037] In step S120, a general control instruction is obtained based on the state input parameters, the objective function and the deep reinforcement learning model.
[0038] In step S130, the vehicle is controlled based on the overall control command.
[0039] In an embodiment of the present application, during the driving process of the vehicle, the state input parameters can be continuously received through the device on the vehicle, and the state input parameters include motion control parameters, comfort parameters and safety parameters. When the state input parameters are received, the state input parameters can be input into the deep reinforcement learning model, and the overall control instruction is obtained through the deep reinforcement learning model and the objective function, and the vehicle is controlled based on the overall control instruction, such as adjusting the vehicle speed. Exemplarily, the state input parameters can include multiple types of parameters. Exemplarily, the state input parameters can include parameters received from various devices and parameters input by the user. For example, the parameters received from various devices can include the temperature received from the temperature sensor, etc., and the parameters input by the user can include the user's active adjustment of the vehicle's speed, the temperature inside the vehicle, etc. Exemplarily, the objective function is generally a preset value, and different objective functions can be set for different vehicles according to different types and uses of vehicles, such as paying more attention to speed or comfort, etc. Exemplarily, the user can also actively change the objective function.
[0040] Therefore, the vehicle control method of the embodiment of the present application can obtain state input parameters, which include motion control parameters, comfort parameters and safety parameters, and obtain the overall control instruction through the deep reinforcement learning model and the objective function, and control the vehicle based on the overall control instruction, thereby being able to perform multi-modal and multi-faceted fusion control of the vehicle, which is more comprehensive and reasonable, and improves driving efficiency and safety.
[0041] In an embodiment of the present application, the vehicle control method further includes: obtaining a total reward value based on state input parameters, an objective function and a deep reinforcement learning model; and updating the parameters of the deep reinforcement learning model based on the total reward value. Exemplarily, by updating the parameters of the deep reinforcement learning model based on the total reward value, the deep reinforcement learning model in the scheme of the present application can be continuously updated, autonomously learn and optimize the control strategy, and thus can adapt to various driving environments or driving states and passenger feedback, greatly improving the vehicle's intelligence level and adaptive ability, and reducing the risk of human error or accidents.
[0042] In an embodiment of the present application, the state input parameters include: motion control parameters, comfort parameters and safety parameters. Exemplarily, the motion control parameters include parameters related to the motion control of the vehicle, the comfort parameters include parameters related to the comfort level of the passengers, and the safety parameters include parameters related to the safety of the vehicle and the passengers. Exemplarily, the state input parameters may also include other parameters, which are not limited in the present application.
[0043] In an embodiment of the present application, the motion control parameters include images collected by the vehicle. Exemplarily, an image of the road scene in front of the vehicle can be captured by a camera or other device, and the image can be input into the deep reinforcement learning model as a motion control parameter. Exemplarily, the image can be used to reflect the road conditions in front of the vehicle, such as congestion or whether there are obstacles, etc. Exemplarily, when the image shows congestion in front of the vehicle, the image is input, and the overall control instruction obtained by the deep reinforcement learning model and the objective function will include slowing down the vehicle or changing lanes.
[0044] In an embodiment of the present application, the comfort parameter includes at least one of the following: the temperature inside the vehicle, the humidity inside the vehicle, the carbon dioxide concentration inside the vehicle, and the degree of bumpiness of the vehicle. Exemplarily, the temperature inside the vehicle, the humidity inside the vehicle, the carbon dioxide concentration inside the vehicle, and the degree of bumpiness of the vehicle can be detected by setting a temperature and humidity sensor, a carbon dioxide sensor, an acceleration sensor, etc. in the vehicle. Exemplarily, the temperature inside the vehicle is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the temperature inside the vehicle, for example, by adjusting the temperature inside the vehicle through equipment such as air conditioning. Exemplarily, the humidity inside the vehicle is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the humidity inside the vehicle, for example, by adjusting the humidity inside the vehicle through equipment such as humidifiers. Exemplarily, the carbon dioxide concentration inside the vehicle is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the ventilation environment of the vehicle, for example, by adjusting the windows of the vehicle or adjusting the wind speed of the air conditioner to adjust the ventilation environment of the vehicle, thereby adjusting the carbon dioxide concentration inside the vehicle. For example, an acceleration sensor can be used to detect the acceleration of the vehicle in the vertical direction, thereby determining the degree of vehicle vibration. The degree of vehicle vibration is input as a parameter, and the overall control instruction obtained through the deep reinforcement learning model and the objective function will include adjusting the vehicle speed.
[0045] In an embodiment of the present application, the safety parameter includes at least one of the following: visibility, precipitation and wind speed of the vehicle's surrounding environment. Exemplarily, the visibility, precipitation and wind speed of the vehicle's surrounding environment can be obtained by connecting to the weather system and combining it with the positioning system. Exemplarily, the relevant parameters can also be obtained through other devices, for example, the visibility of the vehicle's surrounding environment can be sensed by a light sensor. Exemplarily, the visibility of the vehicle's surrounding environment is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the vehicle speed, for example, when the visibility is too low, slow down or pull over or turn on the fog lights. Exemplarily, the precipitation of the vehicle's surrounding environment is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the vehicle speed or turning on the wipers. Exemplarily, the wind speed of the vehicle's surrounding environment is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the vehicle speed.
[0046] Exemplarily, the above method of dividing different parameters into motion control parameters, comfort parameters and safety parameters is not unique. For example, the carbon dioxide concentration inside the vehicle or the degree of vehicle bumps can also be divided into safety parameters. Different division methods can be used according to different vehicle types or uses. Exemplarily, the user can also manually divide the parameters.
[0047] In an embodiment of the present application, based on the state input parameters, the objective function and the deep reinforcement learning model, a total control instruction is obtained, including: based on the state input parameters and the deep reinforcement learning model, a motion control instruction is obtained in the convolutional neural network, and a comfort instruction and a safety instruction are obtained in the fully connected layer; based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model, a state representation vector is obtained in the self-attention layer; based on the state representation vector, the objective function and the deep reinforcement learning model, a motion control attention weight, a comfort attention weight and a safety attention weight are obtained in the multi-head attention layer; based on the motion control instruction and the motion control attention weight, the comfort instruction and the comfort attention weight, the safety instruction and the safety attention weight, the total control instruction is obtained in the weighted sum layer. Exemplarily, when the state input parameters are obtained, the state input parameters include motion control parameters, comfort parameters and safety parameters, wherein the motion control parameters are processed in the convolutional neural network to obtain motion control instructions, and the comfort parameters and safety parameters are processed in the fully connected layer to obtain comfort instructions and safety instructions. Exemplarily, the comfort instructions and safety instructions can be spliced into one instruction output in the fully connected layer. Exemplarily, the motion control instructions, comfort instructions and safety instructions are feature vectors. Exemplarily, in the self-attention layer, the motion control instructions, comfort instructions and safety instructions can be weighted summed to obtain a state representation vector. Exemplarily, in the multi-head attention layer, the state representation vector is used to calculate the objective function, and the motion control attention weight, the comfort attention weight and the safety attention weight are obtained respectively. Exemplarily, in the weighted summation layer, the motion control instructions and the motion control attention weight, the comfort instructions and the comfort attention weight, and the safety instructions and the safety attention weight are weighted summed to obtain the total control instruction. Exemplarily, depending on the different attention weights, the effects of motion control instructions, comfort instructions and safety instructions on the overall control instructions are also different. For example, the precipitation amount of the vehicle's surrounding environment is received as a safety parameter input, and the output safety instruction is to reduce the vehicle speed. However, at the same time, an image collected by the vehicle is received as a motion control parameter input, and the image in front of the vehicle shows that the road is not wet yet. At this time, the output motion control instruction is to keep the vehicle speed unchanged. At this time, if the obtained motion control attention weight is greater than the safety attention weight, the overall control instruction will be more inclined to keep the vehicle speed unchanged. That is, when different parameter inputs cause the output control instructions to conflict with each other, due to the introduction of attention weights, various factors can be comprehensively considered and the vehicle can be coordinated and controlled according to the different attention weights.
[0048] In an embodiment of the present application, based on the state input parameters, the objective function and the deep reinforcement learning model, a total reward value is obtained, including: based on the state input parameters and the deep reinforcement learning model, a motion control sub-reward value, a comfort sub-reward value and a safety sub-reward value are obtained, a motion control instruction is obtained in a convolutional neural network, and a comfort instruction and a safety instruction are obtained in a fully connected layer; based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model, a state representation vector is obtained in a self-attention layer; based on the state representation vector, the objective function and the deep reinforcement learning model, a motion control attention weight, a comfort attention weight and a safety attention weight are obtained in a multi-head attention layer; based on the motion control attention weight and the motion control sub-reward value, the comfort attention weight and the comfort sub-reward value, the safety attention weight and the safety sub-reward value, the total reward value is obtained in a weighted sum layer. Exemplarily, the sub-reward value is associated with the state input parameter, and when the state input parameter changes, the sub-reward value will also change accordingly. For example, assuming that the total reward value is R(s), s represents the state input parameter, r1(s) represents the motion control sub-reward value, r2(s) represents the comfort sub-reward value, r3(s) represents the safety sub-reward value, α1 represents the motion control attention weight, α2 represents the comfort attention weight, and α3 represents the safety attention weight, the calculation method of the total reward value is as follows:
[0049]
[0050] Based on the above formula, the total reward value in the current state is obtained, and the parameters of the deep reinforcement learning model can be updated based on the total reward value, so that the deep reinforcement learning model of the present application can be continuously updated, autonomously learn and optimize the control strategy, and then can adapt to various driving environments or driving states and passenger feedback, greatly improving the intelligence level and adaptability of the vehicle, and reducing the risk of human error or accidents.
[0051] In an embodiment of the present application, based on the state input parameters and the deep reinforcement learning model, motion control instructions are obtained in a convolutional neural network, and comfort instructions and safety instructions are obtained in a fully connected layer, including: performing a convolution operation on the state input parameters to obtain a feature map; normalizing the feature map to obtain a normalized feature map; performing a nonlinear transformation on the normalized feature map to obtain an activated feature map; adding the state input parameters to the activated feature map to obtain a residual feature map; repeating the above steps until the preset network depth is reached to obtain the motion control instructions, the comfort instructions, and the safety instructions. Exemplarily, the present application obtains motion control instructions, comfort instructions, and safety instructions by adopting the structure of a residual network. This method can effectively solve the gradient vanishing and explosion problems in deep networks. The residual network of the present application adds a jump connection after each convolution layer, thereby enhancing the feature expression capability.
[0052] In an embodiment of the present application, the vehicle control method further includes: sampling multiple tasks from the data set of the deep reinforcement learning model; dividing each of the tasks into a support set and a query set; updating on the support set to obtain specific parameters; performing meta-updates on the query set based on the specific parameters to obtain meta-parameters; repeating the above operations until the meta-parameters converge; optimizing the deep reinforcement learning model based on the meta-parameters. Exemplarily, each task sampled from the data set corresponds to a specific environmental condition and passenger preference. Exemplarily, by dividing each of the tasks into a support set and a query set, and updating on the support set to obtain specific parameters, and performing meta-updates on the query set to obtain meta-parameters until the meta-parameters converge, the deep reinforcement learning model of the vehicle control method of the present application can be quickly adapted to different environmental conditions and passenger preferences based on a small amount of data, thereby improving the generalization ability and adaptability of the deep reinforcement learning model. Exemplarily, the above method can be used to obtain converged meta-parameters before the vehicle is driven, and the meta-parameters can be used to optimize the deep reinforcement learning model, for example, by replacing relevant hyperparameters in the deep reinforcement learning model with the meta-parameters; the above method can also be used to optimize the deep reinforcement learning model during vehicle driving.
[0053] Various embodiments of the control system of the present application are described above by way of example. These embodiments can be freely combined. The following is an embodiment of a combination of the above embodiments.
[0054] like Figure 2 As shown, Figure 2 A schematic flow chart of a vehicle control method according to a specific embodiment of the present application is shown.
[0055] First, executing step S210, the camera captures an image of the road scene in front of the vehicle, and uses the image as an input of the motion control parameter;
[0056] Next, step S220 is executed, the temperature and humidity sensor detects the temperature and humidity of the air in the vehicle, and inputs the temperature and humidity as comfort parameters;
[0057] Next, step S230 is executed, the carbon dioxide sensor detects the carbon dioxide concentration of the air in the vehicle, and the carbon dioxide concentration is input as a comfort parameter;
[0058] Next, step S240 is executed, where the acceleration sensor detects the degree of bumping experienced by the vehicle during driving, and the degree of bumping is input as a comfort parameter;
[0059] Next, step S250 is executed, the weather forecast module obtains weather information of the area where the vehicle is located, including visibility, precipitation, wind speed, etc., and inputs the weather information as a safety parameter;
[0060] Next, executing step S260, outputting a total control instruction and a total reward value based on the motion control parameters, comfort parameters, safety parameters, objective function and deep reinforcement learning model;
[0061] Next, step S270 is executed to adjust the in-vehicle and out-vehicle equipment and the vehicle speed based on the general control command, wherein the in-vehicle and out-vehicle equipment include air conditioning, lighting, audio, wipers, fog lights, etc.;
[0062] Next, step S280 is executed to update the parameters of the deep reinforcement learning model based on the total reward value.
[0063] Repeat the above steps until the vehicle reaches the target location or stops.
[0064] The above describes the vehicle control method of a specific embodiment of the present application. Based on the above description, the vehicle control method of a specific embodiment of the present application can obtain state input parameters, which include motion control parameters, comfort parameters and safety parameters, and obtain the total control command and total reward value through the deep reinforcement learning model and the objective function, and control the vehicle based on the total control command, so that the vehicle can be multi-modal and multi-faceted fusion control, which is more comprehensive and reasonable, improves driving efficiency and safety, and updates the parameters of the deep reinforcement learning model based on the total reward value. The deep reinforcement learning model in the scheme of the present application can be continuously updated, autonomously learn and optimize the control strategy, and can adapt to various driving environments or driving states and passenger feedback, greatly improving the intelligent level and adaptive ability of the vehicle, and reducing the risk of human error or accident. Exemplarily, the total control command can be obtained by weighted summing the motion control command and the motion control attention weight, the comfort command and the comfort attention weight, and the safety command and the safety attention weight, where because of the introduction of the attention weight, when different control commands conflict, multi-faceted coordinated control can be performed. Exemplarily, the data set of the deep reinforcement learning model can be divided into multiple tasks, and meta-parameters can be obtained by updating and training the support set and query set of each task. The deep reinforcement learning model can be optimized based on the meta-parameters, and can quickly adapt to different environments and passenger preferences on a small amount of data, thereby improving the generalization ability and adaptability of the deep reinforcement learning model.
[0065] Below, refer to Figures 3 to 6 A vehicle control system according to a specific embodiment of the present application is described. Figure 3 A schematic structural block diagram of a vehicle control system according to a specific embodiment of the present application is shown. Figure 4 A schematic structural block diagram of a deep reinforcement learning module according to a specific embodiment of the present application is shown. Figure 5 A schematic structural block diagram of a residual network according to a specific embodiment of the present application is shown. Figure 6 A schematic structural block diagram of a vehicle control system according to a specific embodiment of the present application is shown.
[0066] like Figure 3 As shown, the vehicle control system 300 of the present application includes a detection module 310, a deep reinforcement learning module 320 and an execution module 330, wherein the detection module 310 is used to obtain the state input parameters of the vehicle, and the state input parameters include motion control parameters, comfort parameters and safety parameters; the deep reinforcement learning module 320 is used to obtain the overall control instruction based on the state input parameters, the objective function and the deep reinforcement learning model; the execution module 330 is used to control the vehicle based on the overall control instruction.
[0067] In an embodiment of the present application, during the driving process of the vehicle, the detection module 310 can continuously receive state input parameters through the equipment on the vehicle, and the state input parameters include motion control parameters, comfort parameters and safety parameters. When the state input parameters are received, the state input parameters can be input into the deep reinforcement learning module 320, and the overall control instruction is obtained through the deep reinforcement learning model and the objective function, wherein the execution module 330 can control the vehicle based on the overall control instruction, such as adjusting the vehicle speed. Exemplarily, the state input parameters can include multiple types of parameters. Exemplarily, the state input parameters can include parameters received from various devices and parameters input by the user. For example, the parameters received from various devices can include the temperature received from the temperature sensor, etc., and the parameters input by the user can include the user's active adjustment of the vehicle's speed, the temperature inside the vehicle, etc. Exemplarily, the objective function is generally a preset value, and different objective functions can be set for different vehicles according to the type and purpose of different vehicles, such as paying more attention to speed or comfort, etc. Exemplarily, the user can also actively change the objective function.
[0068] Therefore, the vehicle control system of the embodiment of the present application can obtain state input parameters, which include motion control parameters, comfort parameters and safety parameters, and obtain the total control command and total reward value through the deep reinforcement learning model and the objective function, and control the vehicle based on the total control command, thereby being able to perform multi-modal and multi-faceted fusion control of the vehicle, which is more comprehensive and reasonable, and improves driving efficiency and safety.
[0069] In an embodiment of the present application, the deep reinforcement learning module 320 is also used to obtain a total reward value based on state input parameters, an objective function and a deep reinforcement learning model, and to update the parameters of the deep reinforcement learning model based on the total reward value. Exemplarily, by updating the parameters of the deep reinforcement learning model based on the total reward value, the deep reinforcement learning model in the scheme of the present application can be continuously updated, autonomously learn and optimize the control strategy, and then can adapt to various driving environments or driving states and passenger feedback, greatly improving the intelligence level and adaptive ability of the vehicle, and reducing the risk of human error or accidents.
[0070] In an embodiment of the present application, the state input parameters include: motion control parameters, comfort parameters and safety parameters. Exemplarily, the motion control parameters include parameters related to the motion control of the vehicle, the comfort parameters include parameters related to the comfort level of the passengers, and the safety parameters include parameters related to the safety of the vehicle and the passengers. Exemplarily, the state input parameters may also include other parameters, which are not limited in the present application.
[0071] In an embodiment of the present application, the motion control parameters include images collected by the vehicle. Exemplarily, an image of the road scene in front of the vehicle can be captured by a camera or other device, and the image can be input into the deep reinforcement learning model as a motion control parameter. Exemplarily, the image can be used to reflect the road conditions in front of the vehicle, such as congestion or whether there are obstacles, etc. Exemplarily, when the image shows congestion in front of the vehicle, the image is input, and the overall control instruction obtained by the deep reinforcement learning model and the objective function will include slowing down the vehicle or changing lanes.
[0072] In an embodiment of the present application, the comfort parameter includes at least one of the following: the temperature inside the vehicle, the humidity inside the vehicle, the carbon dioxide concentration inside the vehicle, and the degree of bumpiness of the vehicle. Exemplarily, the temperature inside the vehicle, the humidity inside the vehicle, the carbon dioxide concentration inside the vehicle, and the degree of bumpiness of the vehicle can be detected by setting a temperature and humidity sensor, a carbon dioxide sensor, an acceleration sensor, etc. in the vehicle. Exemplarily, the temperature inside the vehicle is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the temperature inside the vehicle, for example, by adjusting the temperature inside the vehicle through equipment such as air conditioning. Exemplarily, the humidity inside the vehicle is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the humidity inside the vehicle, for example, by adjusting the humidity inside the vehicle through equipment such as humidifiers. Exemplarily, the carbon dioxide concentration inside the vehicle is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the ventilation environment of the vehicle, for example, by adjusting the windows of the vehicle or adjusting the wind speed of the air conditioner to adjust the ventilation environment of the vehicle, thereby adjusting the carbon dioxide concentration inside the vehicle. For example, an acceleration sensor can be used to detect the acceleration of the vehicle in the vertical direction, thereby determining the degree of vehicle vibration. The degree of vehicle vibration is input as a parameter, and the overall control instruction obtained through the deep reinforcement learning model and the objective function will include adjusting the vehicle speed.
[0073] In an embodiment of the present application, the safety parameter includes at least one of the following: visibility, precipitation and wind speed of the vehicle's surrounding environment. Exemplarily, the visibility, precipitation and wind speed of the vehicle's surrounding environment can be obtained by connecting to the weather system and combining it with the positioning system. Exemplarily, the relevant parameters can also be obtained through other devices, for example, the visibility of the vehicle's surrounding environment can be sensed by a light sensor. Exemplarily, the visibility of the vehicle's surrounding environment is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the vehicle speed, for example, when the visibility is too low, slow down or pull over or turn on the fog lights. Exemplarily, the precipitation of the vehicle's surrounding environment is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the vehicle speed or turning on the wipers. Exemplarily, the wind speed of the vehicle's surrounding environment is input as a parameter, and the total control instruction obtained by the deep reinforcement learning model and the objective function will include adjusting the vehicle speed.
[0074] Exemplarily, the above method of dividing different parameters into motion control parameters, comfort parameters and safety parameters is not unique. For example, the carbon dioxide concentration inside the vehicle or the degree of vehicle bumps can also be divided into safety parameters. Different division methods can be used according to different vehicle types or uses. Exemplarily, the user can also manually divide the parameters.
[0075] In the embodiments of the present application, Figure 4As shown, the deep reinforcement learning module 320 includes a convolutional neural network 321, a fully connected layer 322, a self-attention layer 323, a multi-head attention layer 324 and a weighted sum layer 325. The deep reinforcement learning module 320 obtains a general control instruction based on the state input parameters, the objective function and the deep reinforcement learning model, including: obtaining a motion control instruction in the convolutional neural network 321 based on the state input parameters and the deep reinforcement learning model, and obtaining a comfort instruction and a safety instruction in the fully connected layer 322; obtaining a state representation vector in the self-attention layer 323 based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model; obtaining a motion control attention weight, a comfort attention weight and a safety attention weight in the multi-head attention layer 324 based on the state representation vector, the objective function and the deep reinforcement learning model; obtaining a general control instruction in the weighted sum layer 325 based on the motion control instruction and the motion control attention weight, the comfort instruction and the comfort attention weight, the safety instruction and the safety attention weight. Exemplarily, the state input parameters include motion control parameters, comfort parameters and safety parameters, wherein the motion control parameters are processed in the convolutional neural network 321 to obtain motion control instructions, and the comfort parameters and safety parameters are processed in the fully connected layer 322 to obtain comfort instructions and safety instructions. Exemplarily, the comfort instructions and safety instructions can be spliced into one instruction output in the fully connected layer 322. Exemplarily, the motion control instructions, comfort instructions and safety instructions are feature vectors. Exemplarily, in the self-attention layer 323, the motion control instructions, comfort instructions and safety instructions can be weighted summed to obtain a state representation vector. Exemplarily, in the multi-head attention layer 324, the state representation vector is calculated for the objective function to obtain motion control attention weights, comfort attention weights and safety attention weights respectively. Exemplarily, in the weighted summation layer 325, the motion control instructions and the motion control attention weights, the comfort instructions and the comfort attention weights, and the safety instructions and the safety attention weights are weighted summed to obtain the total control instructions. Exemplarily, depending on the different attention weights, the effects of motion control instructions, comfort instructions and safety instructions on the overall control instructions are also different. For example, the precipitation amount of the vehicle's surrounding environment is received as a safety parameter input, and the output safety instruction is to reduce the vehicle speed. However, at the same time, an image collected by the vehicle is received as a motion control parameter input, and the image in front of the vehicle shows that the road is not wet yet. At this time, the output motion control instruction is to keep the vehicle speed unchanged. At this time, if the obtained motion control attention weight is greater than the safety attention weight, the overall control instruction will be more inclined to keep the vehicle speed unchanged. That is, when different parameter inputs cause the output control instructions to conflict with each other, due to the introduction of attention weights, various factors can be comprehensively considered and the vehicle can be coordinated and controlled according to the different attention weights.
[0076] In an embodiment of the present application, the deep reinforcement learning module 320 includes a convolutional neural network 321, a fully connected layer 322, a self-attention layer 323, a multi-head attention layer 324 and a weighted sum layer 325. The deep reinforcement learning module 320 obtains a total reward value based on the state input parameters, the objective function and the deep reinforcement learning model, including: obtaining a motion control sub-reward value, a comfort sub-reward value and a safety sub-reward value based on the state input parameters and the deep reinforcement learning model, obtaining a motion control instruction in the convolutional neural network 321, and obtaining a comfort instruction and a safety instruction in the fully connected layer 322; based on the The motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model are used to obtain a state representation vector in the self-attention layer 323; based on the state representation vector, the objective function and the deep reinforcement learning model, the motion control attention weight, the comfort attention weight and the safety attention weight are obtained in the multi-head attention layer 324; based on the motion control attention weight and the motion control sub-reward value, the comfort attention weight and the comfort sub-reward value, the safety attention weight and the safety sub-reward value, the total reward value is obtained in the weighted sum layer 325. Exemplarily, the sub-reward value is associated with the state input parameter, and when the state input parameter changes, the sub-reward value will also change accordingly. For example, assuming that the total reward value is R(s), s represents the state input parameter, r1(s) represents the motion control sub-reward value, r2(s) represents the comfort sub-reward value, r3(s) represents the safety sub-reward value, α1 represents the motion control attention weight, α2 represents the comfort attention weight, and α3 represents the safety attention weight, the calculation method of the total reward value is as follows:
[0077]
[0078] Based on the above formula, the total reward value in the current state is obtained, and the parameters of the deep reinforcement learning model can be updated based on the total reward value, so that the deep reinforcement learning model of the present application can be continuously updated, autonomously learn and optimize the control strategy, and then can adapt to various driving environments or driving states and passenger feedback, greatly improving the intelligence level and adaptability of the vehicle, and reducing the risk of human error or accidents.
[0079] In the embodiments of the present application, Figure 5As shown, the convolutional neural network 321 and the fully connected layer 322 include a residual network 340, and the residual network 340 includes a convolutional layer 341, a batch normalization layer 342, an activation layer 343 and a jump connection 344. Based on the state input parameters and the deep reinforcement learning model, motion control instructions are obtained in the convolutional neural network 321, and comfort instructions and safety instructions are obtained in the fully connected layer 322, including: performing a convolution operation on the state input parameters through the convolutional layer 341 to obtain a feature map; normalizing the feature map through the batch normalization layer 342 to obtain a normalized feature map; performing a nonlinear transformation on the normalized feature map through the activation layer 343 to obtain an activated feature map; adding the state input parameters to the activated feature map through the jump connection 344 to obtain a residual feature map; repeating the above steps until the preset network depth is reached to obtain the motion control instructions, the comfort instructions and the safety instructions. Exemplarily, the present application obtains motion control instructions, comfort instructions and safety instructions by adopting the structure of the residual network 340. This method can effectively solve the gradient vanishing and explosion problems in deep networks. The residual network 340 of the present application adds a jump connection 344 after each convolutional layer 341, thereby enhancing the feature expression capability.
[0080] In an embodiment of the present application, the deep reinforcement learning module 320 is also used to: sample multiple tasks from the data set of the deep reinforcement learning model; divide each of the tasks into a support set and a query set; update on the support set to obtain specific parameters; perform meta-update on the query set based on the specific parameters to obtain meta-parameters; repeat the above operations until the meta-parameters converge; optimize the deep reinforcement learning model based on the meta-parameters. Exemplarily, each task sampled from the data set corresponds to a specific environmental condition and passenger preference. Exemplarily, by dividing each of the tasks into a support set and a query set, and updating on the support set to obtain specific parameters, and performing meta-update on the query set to obtain meta-parameters until the meta-parameters converge, the deep reinforcement learning model of the vehicle control method of the present application can quickly adapt to different environmental conditions and passenger preferences based on a small amount of data, thereby improving the generalization ability and adaptability of the deep reinforcement learning model. Exemplarily, the above method can be used to obtain converged meta-parameters before the vehicle is driven, and the meta-parameters can be used to optimize the deep reinforcement learning model, for example, by replacing relevant hyperparameters in the deep reinforcement learning model with the meta-parameters; the above method can also be used to optimize the deep reinforcement learning model during vehicle driving.
[0081] Various embodiments of the control system of the present application are described above by way of example. These embodiments can be freely combined. The following is an embodiment of a combination of the above embodiments.
[0082] like Figure 6 As shown, the detection module 310 includes a camera 311, a temperature and humidity sensor 312, a carbon dioxide sensor 313, an acceleration sensor 314 and a weather forecast module 315, and the actuator module 330 is connected to the air conditioner 331, the light 332, the audio 333, the wiper 334 and the fog light 335. Exemplarily, the camera 311 captures an image of the road scene in front of the vehicle, and inputs the image as a motion control parameter to the deep reinforcement learning module 320; the temperature and humidity sensor 312 detects the temperature and humidity of the air in the vehicle, and inputs the temperature and humidity as comfort parameters to the deep reinforcement learning module 320; the carbon dioxide sensor 313 detects the carbon dioxide concentration of the air in the vehicle, and inputs the carbon dioxide concentration as a comfort parameter to the deep reinforcement learning module 320; the acceleration sensor 314 detects the degree of bumps to which the vehicle is subjected during driving, and inputs the bumps as a comfort parameter to the deep reinforcement learning module Module 320; the weather forecast module 315 obtains weather information in the area where the vehicle is located, including visibility, precipitation, wind speed, etc., and inputs the weather information as a safety parameter to the deep reinforcement learning module 320; the deep reinforcement learning module 320 outputs a total control instruction and a total reward value based on motion control parameters, comfort parameters, safety parameters, objective function and deep reinforcement learning model; the actuator module 330 adjusts the air conditioner 331, lights 332, audio 333, wipers 334 and fog lights 335 based on the total control instruction; the actuator module 330 also updates the parameters of the deep reinforcement learning model based on the total reward value.
[0083] The above describes the vehicle control system of a specific embodiment of the present application by way of example. Based on the above description, the vehicle control system of a specific embodiment of the present application can obtain state input parameters, which include motion control parameters, comfort parameters and safety parameters, and obtain the total control command and total reward value through the deep reinforcement learning model and the objective function, and control the vehicle based on the total control command, thereby being able to perform multi-modal and multi-faceted fusion control on the vehicle, which is more comprehensive and reasonable, improves driving efficiency and safety, and updates the parameters of the deep reinforcement learning model based on the total reward value, and the deep reinforcement learning model in the scheme of the present application can be continuously updated, autonomously learns and optimizes the control strategy, thereby being able to adapt to various driving environments or driving states and feedback from passengers, greatly improving the intelligent level and adaptive ability of the vehicle, and reducing the risk of human error or accident. Exemplarily, the total control command can be obtained by weighted summing the motion control command and the motion control attention weight, the comfort command and the comfort attention weight, and the safety command and the safety attention weight, wherein due to the introduction of the attention weight, various coordinated control can be performed when different control commands conflict. Exemplarily, the data set of the deep reinforcement learning model can be divided into multiple tasks, and meta-parameters can be obtained by updating and training the support set and query set of each task. The deep reinforcement learning model can be optimized based on the meta-parameters, and can quickly adapt to different environments and passenger preferences on a small amount of data, thereby improving the generalization ability and adaptability of the deep reinforcement learning model.
[0084] Below, refer to Figure 7 An electronic device according to a specific embodiment of the present application is described. Figure 7 FIG. 1 is a schematic structural block diagram of an electronic device according to a specific embodiment of the present application. Figure 7 As shown, the electronic device 400 includes a processor 410 and a memory 420. The memory 420 stores a computer program. When the computer program is executed by the processor 410, the processor 410 executes the vehicle control method described above.
[0085] The embodiment of the present application further provides a vehicle, the vehicle includes the control system described above, or the vehicle includes the electronic device described above. Exemplarily, the vehicle may also include other components, which are not limited in the embodiment of the present application.
[0086] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as required by the appended claims.
[0087] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0088] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0089] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0090] Similarly, it should be understood that in order to streamline the present invention and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present invention should not be interpreted as reflecting the following intention: the claimed invention requires more features than the features explicitly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present invention.
[0091] It will be understood by those skilled in the art that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0092] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0093] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some modules in the article analysis device according to an embodiment of the present invention. The present invention may also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0094] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
[0095] The above is only a specific embodiment or description of a specific embodiment of the present invention, and the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A vehicle control method, characterized in that: The method comprises: Acquiring state input parameters of the vehicle, wherein the state input parameters include motion control parameters, comfort parameters, and safety parameters; Based on the state input parameters, the objective function and the deep reinforcement learning model, a general control instruction is obtained; The vehicle is controlled based on the overall control command.
2. The method according to claim 1, characterized in that Also includes: Obtaining a total reward value based on the state input parameter, the objective function and the deep reinforcement learning model; Parameters of the deep reinforcement learning model are updated based on the total reward value.
3. The vehicle control method according to claim 1, characterized in that: The motion control parameters include images captured by the vehicle.
4. The vehicle control method according to claim 1, characterized in that: The comfort parameter includes at least one of the following: The temperature, humidity, and carbon dioxide concentration of the interior of the vehicle and the degree of vibration of the vehicle.
5. The vehicle control method according to claim 1, characterized in that: The safety parameter includes at least one of the following: Visibility, precipitation, and wind speed of the vehicle's surroundings.
6. The vehicle control method according to claim 1, characterized in that: Based on the state input parameters, the objective function and the deep reinforcement learning model, the overall control instructions are obtained, including: Based on the state input parameters and the deep reinforcement learning model, a motion control instruction is obtained in a convolutional neural network, and a comfort instruction and a safety instruction are obtained in a fully connected layer; Based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model, a state representation vector is obtained in a self-attention layer; Based on the state representation vector, the objective function and the deep reinforcement learning model, a motion control attention weight, a comfort attention weight and a safety attention weight are obtained in a multi-head attention layer; Based on the motion control instruction and the motion control attention weight, the comfort instruction and the comfort attention weight, the safety instruction and the safety attention weight, the total control instruction is obtained in the weighted summation layer.
7. The vehicle control method according to claim 2, characterized in that: Based on the state input parameters, the objective function and the deep reinforcement learning model, a total reward value is obtained, including: Based on the state input parameters and the deep reinforcement learning model, a motion control sub-reward value, a comfort sub-reward value, and a safety sub-reward value are obtained, a motion control instruction is obtained in a convolutional neural network, and a comfort instruction and a safety instruction are obtained in a fully connected layer; Based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model, a state representation vector is obtained in a self-attention layer; Based on the state representation vector, the objective function and the deep reinforcement learning model, a motion control attention weight, a comfort attention weight and a safety attention weight are obtained in a multi-head attention layer; The total reward value is obtained in a weighted sum layer based on the motion control attention weight and the motion control sub-reward value, the comfort attention weight and the comfort sub-reward value, and the safety attention weight and the safety sub-reward value.
8. The vehicle control method according to claim 6 or 7, characterized in that: Based on the state input parameters and the deep reinforcement learning model, a motion control instruction is obtained in a convolutional neural network, and a comfort instruction and a safety instruction are obtained in a fully connected layer, including: Performing a convolution operation on the state input parameter to obtain a feature map; Normalizing the feature map to obtain a normalized feature map; Performing a nonlinear transformation on the normalized feature map to obtain an activated feature map; Adding the state input parameter to the activated feature map to obtain a residual feature map; The above steps are repeated until the preset network depth is reached to obtain the motion control instruction, the comfort instruction and the safety instruction.
9. A vehicle control system, characterized in that: include: A detection module, used to obtain state input parameters of the vehicle, wherein the state input parameters include motion control parameters, comfort parameters and safety parameters; A deep reinforcement learning module, used to obtain a general control instruction based on the state input parameters, the objective function and the deep reinforcement learning model; An execution module is used to control the vehicle based on the overall control instruction.
10. The vehicle control system according to claim 9, characterized in that: The deep reinforcement learning module is also used to obtain a total reward value based on the state input parameters, the objective function and the deep reinforcement learning model, and update the parameters of the deep reinforcement learning model based on the total reward value.
11. The vehicle control system according to claim 9, characterized in that: The motion control parameters include images captured by the vehicle.
12. The vehicle control system according to claim 9, characterized in that: The comfort parameter includes at least one of the following: The temperature, humidity, and carbon dioxide concentration of the interior of the vehicle and the degree of vibration of the vehicle.
13. The vehicle control system according to claim 9, characterized in that: The safety parameter includes at least one of the following: Visibility, precipitation, and wind speed of the vehicle's surroundings.
14. The vehicle control system according to claim 9, characterized in that: The deep reinforcement learning module includes a convolutional neural network, a fully connected layer, a self-attention layer, a multi-head attention layer and a weighted sum layer. The deep reinforcement learning module obtains a general control instruction based on the state input parameters, the objective function and the deep reinforcement learning model, including: Based on the state input parameters and the deep reinforcement learning model, a motion control instruction is obtained in a convolutional neural network, and a comfort instruction and a safety instruction are obtained in a fully connected layer; Based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model, a state representation vector is obtained in a self-attention layer; Based on the state representation vector, the objective function and the deep reinforcement learning model, a motion control attention weight, a comfort attention weight and a safety attention weight are obtained in a multi-head attention layer; Based on the motion control instruction and the motion control attention weight, the comfort instruction and the comfort attention weight, and the safety instruction and the safety attention weight, a total control instruction is obtained in the weighted summation layer.
15. The vehicle control system according to claim 10, characterized in that: The deep reinforcement learning module includes a convolutional neural network, a fully connected layer, a self-attention layer, a multi-head attention layer and a weighted sum layer. The deep reinforcement learning module obtains a total reward value based on the state input parameters, the objective function and the deep reinforcement learning model, including: Based on the state input parameters and the deep reinforcement learning model, a motion control sub-reward value, a comfort sub-reward value, and a safety sub-reward value are obtained, a motion control instruction is obtained in a convolutional neural network, and a comfort instruction and a safety instruction are obtained in a fully connected layer; Based on the motion control instruction, the comfort instruction, the safety instruction and the deep reinforcement learning model, a state representation vector is obtained in a self-attention layer; Based on the state representation vector, the objective function and the deep reinforcement learning model, a motion control attention weight, a comfort attention weight and a safety attention weight are obtained in a multi-head attention layer; The total reward value is obtained in a weighted sum layer based on the motion control attention weight and the motion control sub-reward value, the comfort attention weight and the comfort sub-reward value, and the safety attention weight and the safety sub-reward value.
16. The vehicle control system according to claim 14 or 15, characterized in that: The convolutional neural network and the fully connected layer include a residual network, the residual network includes a convolutional layer, a batch normalization layer, an activation layer and a jump connection, based on the state input parameters and the deep reinforcement learning model, a motion control instruction is obtained in the convolutional neural network, and a comfort instruction and a safety instruction are obtained in the fully connected layer, including: Performing a convolution operation on the state input parameter through the convolution layer to obtain a feature map; Normalizing the feature map through the batch normalization layer to obtain a normalized feature map; Performing a nonlinear transformation on the normalized feature map through the activation layer to obtain an activated feature map; Adding the state input parameter to the activated feature map through the skip connection to obtain a residual feature map; The above steps are repeated until the preset network depth is reached to obtain the motion control instruction, the comfort instruction and the safety instruction.
17. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the vehicle control method according to any one of claims 1 to 8.
18. A vehicle, characterized in that: The vehicle includes the vehicle control system according to any one of claims 9 to 16, or includes the electronic device according to claim 17.
