A speed control method and device for automatic vehicle driving and a vehicle
Through the combination of path planning and fuzzy neural network models, speed and acceleration variables are adjusted in real time, which solves the real-time and safety problems of autonomous driving technology in complex environments and improves the vehicle's speed control capability and adaptability.
Patent Information
- Application Number
- CN202410842769.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing autonomous driving technology lacks real-time algorithm performance and limited adaptability in complex urban environments and high traffic density scenarios, and safety and stability issues have not been fully resolved, especially in terms of speed control.
By obtaining driving data, path planning is performed, the optimal path is selected, fuzzy rules and neural network models are used to adjust speed and acceleration variables, and speed planning is performed in real time to improve the vehicle's speed control capability during autonomous driving and avoid speed loss and stability. question.
It improves the speed control capability and safety performance of autonomous vehicles in complex environments, enhances adaptability and robustness to different driving scenarios, and reduces computational complexity.
Smart Images

Figure CN118387142B
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving technology, and more specifically, to a speed control method, device and vehicle for autonomous driving of a vehicle. Background Art
[0002] With the development of the electric vehicle industry and assisted driving, autonomous driving technology is increasingly being used in the automotive field. For the speed planning of autonomous vehicles, although existing technical methods such as discrete acceleration sampling, path reward learning and dynamic constraint box strategy have brought innovations to improve the real-time, adaptability and safety of speed planning, there are still many problems that need to be solved.
[0003] For example, the real-time performance of the algorithm is limited, especially in complex urban environments and high traffic density scenarios. The adaptability of various traffic scenarios limits the performance of autonomous vehicles in diverse road conditions. Safety issues involve obstacle avoidance capabilities, coordination with other traffic participants, etc., and solving these problems is crucial to achieving true autonomous driving. In addition, formulating clear regulatory standards to ensure the compliance and safety of autonomous driving systems is also a difficult problem that needs to be solved urgently.
[0004] Therefore, the existing technology still has disadvantages such as high computational complexity, limited adaptability or uncertainty in the process of solving the above technical problems. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a speed control method, device, vehicle, electronic device and storage medium for vehicle automatic driving, which can improve the vehicle's speed control ability during automatic driving, avoid safety problems caused by speed loss during automatic driving, avoid stability problems caused by speed changes in automatic driving, and improve safety performance.
[0006] In a first aspect, an embodiment of the present application provides a speed control method for automatic driving of a vehicle, the method comprising:
[0007] Acquire driving data during the vehicle's autonomous driving process;
[0008] Plan the path for the vehicle's automatic driving based on the starting and ending points of the driving to obtain the optimal path;
[0009] Selecting a speed planning model according to the driving scenario corresponding to the optimal path;
[0010] Perform fuzzy programming on the speed variable and the distance variable in the driving data according to fuzzy rules to obtain weight parameters;
[0011] Performing speed planning on the speed variable and the distance variable according to the weight parameter to obtain an acceleration variable;
[0012] The acceleration variable and the speed variable are adjusted according to the speed planning model.
[0013] In the above implementation process, by selecting a speed planning model for the driving scenario of the optimal path, and then adjusting the acceleration variables and speed variables during driving in real time, the vehicle's speed control ability during automatic driving can be improved, and safety problems caused by speed loss during automatic driving can be avoided. Stability problems caused by speed changes in automatic driving can be avoided, thereby improving safety performance.
[0014] Furthermore, the step of performing path planning for the vehicle's automatic driving according to the starting point and the end point of driving to obtain the optimal path includes:
[0015] Constructing a plurality of candidate paths according to the starting point and the end point;
[0016] Evaluate the plurality of candidate paths according to the driving performance index to obtain a candidate path with the highest expected value;
[0017] The candidate path with the highest expected value is determined as the optimal path.
[0018] In the above implementation process, multiple candidate paths are evaluated according to the drivability performance indicators, and the candidate path with the highest expected value is selected as the optimal path to ensure that the vehicle is subject to the least external interference when driving on the optimal path, thereby improving the stability of speed control.
[0019] Furthermore, the step of performing fuzzy programming on the speed variable and the distance variable in the driving data according to the fuzzy rules to obtain the weight parameter includes:
[0020] Adjusting the mapping relationship between the speed variable, the distance variable and the acceleration variable;
[0021] Adjusting the pre-built neural network model according to the adjusted mapping relationship;
[0022] constructing an input sample set according to the speed variable, the distance variable and the scene information in the driving data;
[0023] The input sample set is input into the adjusted neural network model for training to obtain the weight parameters.
[0024] In the above implementation process, the mapping relationship between the speed variable, the distance variable and the acceleration variable is adjusted, and then the neural network model is adjusted to make the neural network model more robust.
[0025] Furthermore, the step of adjusting the mapping relationship between the speed variable, the distance variable and the acceleration variable comprises:
[0026] Constructing a mapping relationship among the speed variable, the distance variable and the acceleration variable according to fuzzy rules;
[0027] According to the mapping relationship, the membership value of the speed variable and the membership value of the distance variable are mapped to the Sigmoid function to obtain the membership value of the acceleration variable;
[0028] The mapping relationship is adjusted according to a variation range of the membership value of the acceleration variable.
[0029] In the above implementation process, the membership value of the speed variable and the membership value of the distance variable are mapped to the Sigmoid function to obtain the membership value of the acceleration variable, and then the mapping relationship is adjusted according to the membership value of the acceleration variable, which can improve the accuracy of the mapping relationship and the accuracy of the subsequent acceleration variable.
[0030] Furthermore, the step of performing speed planning on the speed variable and the distance variable according to the weight parameter to obtain the acceleration variable includes:
[0031] Performing nonlinear transformation on the normalized speed variable and the normalized distance variable according to the weight parameter to obtain an intermediate variable;
[0032] Nonlinear mapping is performed on the intermediate variable to obtain the acceleration variable.
[0033] In the above implementation process, nonlinear transformation is performed on the normalized velocity variable and the normalized distance variable to obtain an intermediate variable, and then nonlinear mapping is performed on the intermediate variable to obtain an acceleration variable. The two nonlinear processings can improve the accuracy of the acceleration variable.
[0034] Furthermore, the normalized speed variable and the normalized distance variable are nonlinearly transformed according to the weight parameter by the following formula to obtain an intermediate variable:
[0035] ;
[0036] in, and are the normalized speed variables and the normalized distance variables, and is the weight parameter, is an intermediate variable, and ReLU() is a nonlinear transformation.
[0037] Furthermore, the intermediate variable is nonlinearly mapped by the following formula to obtain the acceleration variable:
[0038] ;
[0039] in, and is the weight parameter, is the acceleration variable, and ReLU() is the nonlinear transformation.
[0040] In a second aspect, an embodiment of the present application further provides a speed control device for automatic driving of a vehicle, the device comprising:
[0041] A driving data acquisition module, used to acquire driving data during the vehicle's automatic driving process;
[0042] The path planning module is used to plan the path of the vehicle's automatic driving according to the starting point and end point of the driving to obtain the optimal path;
[0043] A selection module, used to select a speed planning model according to the driving scenario corresponding to the optimal path;
[0044] A fuzzy programming module, used for performing fuzzy programming on the speed variable and the distance variable in the driving data according to fuzzy rules to obtain weight parameters;
[0045] A speed planning module, used to perform speed planning on the speed variable and the distance variable according to the weight parameter to obtain an acceleration variable;
[0046] An adjustment module is used to adjust the acceleration variable and the speed variable according to the speed planning model.
[0047] In the above implementation process, by selecting a speed planning model for the driving scenario of the optimal path, and then adjusting the acceleration variables and speed variables during driving in real time, the vehicle's speed control ability during automatic driving can be improved, and safety problems caused by speed loss during automatic driving can be avoided. Stability problems caused by speed changes in automatic driving can be avoided, thereby improving safety performance.
[0048] In a third aspect, an embodiment of the present application provides a vehicle comprising a speed control device for automatic driving of the vehicle according to the second aspect.
[0049] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0050] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method described in any one of the first aspects.
[0051] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0052] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0053] And it can be implemented according to the contents of the specification. The following is a detailed description of the preferred embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the range values. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0055] Figure 1 A schematic diagram of a flow chart of a speed control method for automatic vehicle driving provided in an embodiment of the present application;
[0056] Figure 2 A schematic diagram of the structure of a speed control device for automatic driving of a vehicle provided in an embodiment of the present application;
[0057] Figure 3 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0059] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0060] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application, but are not used to limit the scope of the present application.
[0061] Embodiment 1
[0062] Figure 1 is a flow chart of a method for controlling the speed of an automatic driving vehicle provided in an embodiment of the present application. Figure 1 As shown, the method includes:
[0063] S1, obtaining driving data during the vehicle's automatic driving process;
[0064] S2, planning the path of the vehicle's automatic driving according to the starting point and the end point of the driving to obtain the optimal path;
[0065] S3, selecting a speed planning model according to the driving scenario corresponding to the optimal path;
[0066] S4, fuzzy programming is performed on the speed variable and the distance variable in the driving data according to the fuzzy rules to obtain the weight parameter;
[0067] S5, performing speed planning on the speed variable and the distance variable according to the weight parameter to obtain the acceleration variable;
[0068] S6, adjusting the acceleration variable and the speed variable according to the speed planning model.
[0069] In the above implementation process, by selecting a speed planning model for the driving scenario of the optimal path, and then adjusting the acceleration variables and speed variables during driving in real time, the vehicle's speed control ability during automatic driving can be improved, and safety problems caused by speed loss during automatic driving can be avoided. Stability problems caused by speed changes in automatic driving can be avoided, thereby improving safety performance.
[0070] In S1, driving data includes information about driving conditions collected by the sensing and perception system from on-board sensors (radar, lidar, cameras, etc.), and generates a real-time environmental display. The main goals of the sensing and perception system are lane-level positioning, subject vehicle detection, static / dynamic obstacle detection, and safe derivable area representation. It is mainly used for: driving a car on actual road conditions, and obtaining the corresponding reference path by collecting GPS data; setting different driving scenarios for autonomous driving cars, such as static / dynamic obstacle scenarios and speed limit signs; organizing the collected information and performing fuzzy rule correspondence to obtain acceleration information, and dividing the corresponding driving scenario types accordingly; obtaining driving data for different scenarios And the corresponding acceleration information Y=A, where V is the speed information, D is the distance information, C is the scene information, and A is the corresponding acceleration information.
[0071] Furthermore, S2 includes:
[0072] Construct multiple candidate paths based on the starting point and the end point;
[0073] Evaluate multiple candidate paths according to driving performance indicators to obtain the candidate path with the highest expected value;
[0074] The candidate path with the highest expected value is determined as the optimal path.
[0075] In the above implementation process, multiple candidate paths are evaluated according to the drivability performance indicators, and the candidate path with the highest expected value is selected as the optimal path to ensure that the vehicle is subject to the least external interference when driving on the optimal path, thereby improving the stability of speed control.
[0076] Since the path planning is performed based on the initial and end point information of the vehicle movement, multiple different paths will be obtained. Therefore, the embodiment of the present application selects the target path according to the state grid method. Specifically, the following steps are included:
[0077] Construct grid nodes: According to the current position of the autonomous vehicle, construct the SL coordinate system, with the S axis coinciding with the reference line, the L axis being perpendicular to the S axis within the planning horizon, and divide the planning horizon into a series of grids in the SL coordinate system, with the grid nodes located at the vertices of the grids. The position of the grid nodes can be determined by the following formula:
[0078] ;
[0079] ;
[0080] in, and are the starting positions of the S-axis and L-axis respectively, and are the intervals of the S-axis and the L-axis respectively, i represents the i-th grid node on the S-axis, and j represents the j-th grid node on the L-axis.
[0081] In the SL coordinate system, a quintic polynomial is selected as the connection curve between any two lattice nodes. The coefficients of the quintic polynomial are solved by the gradient descent method. The curves are connected in sequence to generate a candidate path starting from the current position and ending at the target position. In this way, all candidate paths are generated.
[0082] All candidate paths need to be evaluated based on their performance indicators to find the optimal path. The performance indicators include safety performance (related to the distance between the path and static / dynamic obstacles), smoothness performance (related to the curvature of the path), centering performance (related to the deviation between the path and the baseline), and comfort performance (related to the frequency and amplitude of the curvature change). The candidate path with the best performance indicator is selected as the optimal path. Finally, the steering wheel is adjusted in real time based on the deviation between the current position and the expected optimal path.
[0083] In S3, in actual operation, the autonomous vehicle may encounter different situations, such as stationary vehicles, moving vehicles, stop lines, speed limit signs, curves, etc. In these scenarios, it is necessary to determine the speed and acceleration commands and send them to the control system, so as to adjust the throttle and brake to achieve acceleration or deceleration control. In order to achieve speed planning, the embodiment of the present application divides the different road conditions that may be encountered into static scenarios, dynamic scenarios and steady-state scenarios, and designs speed planning models for the above three scenarios respectively, and applies them to the calculation of the expected speed and acceleration.
[0084] Furthermore, S4 includes:
[0085] Adjust the mapping relationship between speed variables, distance variables and acceleration variables;
[0086] Adjusting the pre-built neural network model according to the adjusted mapping relationship;
[0087] Construct an input sample set based on the speed variable, the distance variable, and the scene information in the driving data;
[0088] The input sample set is input into the adjusted neural network model for training to obtain the weight parameters.
[0089] In the above implementation process, the mapping relationship between the speed variable, the distance variable and the acceleration variable is adjusted, and then the neural network model is adjusted to make the neural network model more robust.
[0090] The fuzzy programming model describes the mapping relationship between input state variables and output variables. The speed variable and distance variable are used as input variables, and the expected acceleration variable is used as the output variable. According to the fuzzy logic system theory, the input and output variables are fuzzified into the following fuzzy sets:
[0091] ;
[0092] in, is the fuzzy set of input speed variables, is the input distance variable fuzzy set, is the output acceleration variable fuzzy set, and the number of variables is (m, n, l).
[0093] This application uses artificial neural networks to solve the nonlinear model between input samples and output samples, thereby predicting the expected acceleration variable. The specific implementation process includes:
[0094] Initialize an eight-layer neural network, select the number of input layer neurons as the number of input variables, the number of hidden layer neurons as N, and the number of output layer neurons as the number of output variables. The weight vectors of the hidden layer and output layer of the neural network are and , the bias vectors are and The transfer function is a hyperbolic tangent function and Xavier initialization is used.
[0095] ;
[0096] in, is the first layer connected to the input layer neurons and the output layer The weight of the neuron, is the number of neurons in the input layer, is the number of neurons in the output layer. Xavier initialization makes the variance of the weights proportional to the variance of the output of the previous layer and consistent between different layers. This helps keep the activation values within a reasonable range during training, thereby improving the training efficiency of the network.
[0097] The format of the input sample is , Use BP algorithm to train the neural network and Output from the adaptive adjustment model.
[0098] After N trainings, the weight parameters are obtained ( , , , ), which is used for subsequent calculations. Finally, the trained neural network model is used as the FNN planning model for online calculation. The FNN planning model is used to calculate the acceleration variable in real time.
[0099] Furthermore, the step of adjusting the mapping relationship between the speed variable, the distance variable and the acceleration variable includes:
[0100] Construct the mapping relationship among speed variable, distance variable and acceleration variable according to fuzzy rules;
[0101] According to the mapping relationship, the membership value of the speed variable and the membership value of the distance variable are mapped to the Sigmoid function to obtain the membership value of the acceleration variable;
[0102] The mapping relationship is adjusted according to the variation range of the membership value of the acceleration variable.
[0103] In the above implementation process, the membership value of the speed variable and the membership value of the distance variable are mapped to the Sigmoid function to obtain the membership value of the acceleration variable, and then the mapping relationship is adjusted according to the membership value of the acceleration variable, which can improve the accuracy of the mapping relationship and the accuracy of the subsequent acceleration variable.
[0104] The fuzzy rules of the embodiment of the present application describe the mapping relationship between input variables and output variables as follows:
[0105] ;
[0106] The Sigmoid function is selected as the nonlinear function to map the input fuzzy variables to the output acceleration fuzzy set. The expression of the Sigmoid function is as follows:
[0107] ;
[0108] Wherein, x represents the input of the Sigmoid function, and in the embodiment of the present application, it is the input variable and . The input variable and Map them to the Sigmoid function respectively to get the corresponding membership and Then, the membership value of the input variable is used as input, and the membership value of the output acceleration variable is calculated through fuzzy rules. .
[0109] ;
[0110] By adjusting the parameters of the Sigmoid function, the variation range of the membership value can be controlled to better adapt to the mapping relationship of the fuzzy rules. Optionally, the embodiment of the present application can also make some adjustments to the Sigmoid function, such as introducing a bias term or scaling the input, to further optimize the performance of the model.
[0111] Furthermore, S5 includes:
[0112] Perform nonlinear transformation on the normalized speed variable and the normalized distance variable according to the weight parameter to obtain the intermediate variable;
[0113] Perform nonlinear mapping on the intermediate variables to obtain acceleration variables.
[0114] In the above implementation process, nonlinear transformation is performed on the normalized velocity variable and the normalized distance variable to obtain an intermediate variable, and then nonlinear mapping is performed on the intermediate variable to obtain an acceleration variable. The two nonlinear processings can improve the accuracy of the acceleration variable.
[0115] Furthermore, the normalized speed variable and the normalized distance variable are nonlinearly transformed according to the weight parameter by the following formula to obtain the intermediate variable:
[0116] ;
[0117] in, and are the normalized speed variables and the normalized distance variables, and is the weight parameter, is an intermediate variable, and ReLU() is a nonlinear transformation.
[0118] Furthermore, the intermediate variables are nonlinearly mapped using the following formula to obtain the acceleration variable:
[0119] ;
[0120] in, and is the weight parameter, is the acceleration variable, and ReLU() is the nonlinear transformation.
[0121] The ReLU function performs nonlinear mapping on the input vector after the linear transformation of the first layer of the neural network, and then performs linear transformation and nonlinear mapping on the second layer of the neural network to finally obtain the acceleration variable. .
[0122] In S6, since the speed planning model has made detailed plans for the speed and driving conditions in different scenarios, it is necessary to adjust the acceleration variables and speed variables according to the regulations of the speed planning model, effectively determine the speed and acceleration commands according to different driving scenarios, and achieve precise acceleration and deceleration control by adjusting the throttle and brakes, thereby improving the accuracy and smoothness of vehicle motion control.
[0123] This application uses fuzzy neural networks for speed planning. Compared with traditional methods, when facing different scene tasks, it can directly calculate the real-time acceleration without generating a speed profile, which effectively reduces the complexity of the planning algorithm.
[0124] This application proposes an optimal planning path strategy, which uses the state grid method to divide the planning plane into a series of special grid points, connects all the lattice nodes to form candidate paths, and plans the optimal path by traversing the candidate paths, effectively improving the efficiency of path planning.
[0125] This application can effectively obtain acceleration information by combining manual driving experience with fuzzy rules, and can more accurately perceive and respond to various driving scenarios.
[0126] This application integrates driving scenarios into model speed control, such as stationary vehicles, moving vehicles, stop lines, speed limit signs, curves, etc., effectively determines speed and acceleration commands and sends them to the control system, thereby achieving flexible acceleration and deceleration control for different scenarios. Combining actual manual driving experience and fuzzy rules, acceleration information is obtained, allowing the system to more accurately perceive and respond to various driving scenarios, thereby improving the system's adaptability and robustness.
[0127] Embodiment 2
[0128] In order to execute the method corresponding to the above embodiment 1 to achieve the corresponding functions and technical effects, a speed control device for automatic driving of a vehicle is provided below, such as Figure 2 As shown, the device comprises:
[0129] A driving data acquisition module 1 is used to acquire driving data during the vehicle's automatic driving process;
[0130] Path planning module 2, used to plan the path of the vehicle's automatic driving according to the starting point and the end point of the driving to obtain the optimal path;
[0131] A selection module 3 is used to select a speed planning model according to a driving scenario corresponding to the optimal path;
[0132] A fuzzy planning module 4 is used to perform fuzzy planning on the speed variable and the distance variable in the driving data according to the fuzzy rules to obtain a weight parameter;
[0133] The speed planning module 5 is used to perform speed planning on the speed variable and the distance variable according to the weight parameter to obtain the acceleration variable;
[0134] The adjustment module 6 is used to adjust the acceleration variable and the speed variable according to the speed planning model.
[0135] In the above implementation process, by selecting a speed planning model for the driving scenario of the optimal path, and then adjusting the acceleration variables and speed variables during driving in real time, the vehicle's speed control ability during automatic driving can be improved, and safety problems caused by speed loss during automatic driving can be avoided. Stability problems caused by speed changes in automatic driving can be avoided, thereby improving safety performance.
[0136] Furthermore, the path planning module 2 is also used for:
[0137] Construct multiple candidate paths based on the starting point and the end point;
[0138] Evaluate multiple candidate paths according to driving performance indicators to obtain the candidate path with the highest expected value;
[0139] The candidate path with the highest expected value is determined as the optimal path.
[0140] In the above implementation process, multiple candidate paths are evaluated according to the drivability performance indicators, and the candidate path with the highest expected value is selected as the optimal path to ensure that the vehicle is subject to the least external interference when driving on the optimal path, thereby improving the stability of speed control.
[0141] Furthermore, the fuzzy planning module 4 is also used for:
[0142] Adjust the mapping relationship between speed variables, distance variables and acceleration variables;
[0143] Adjusting the pre-built neural network model according to the adjusted mapping relationship;
[0144] Construct an input sample set based on the speed variable, the distance variable, and the scene information in the driving data;
[0145] The input sample set is input into the adjusted neural network model for training to obtain the weight parameters.
[0146] In the above implementation process, the mapping relationship between the speed variable, the distance variable and the acceleration variable is adjusted, and then the neural network model is adjusted to make the neural network model more robust.
[0147] Furthermore, the fuzzy programming module 4 is also used for:
[0148] Construct the mapping relationship among speed variable, distance variable and acceleration variable according to fuzzy rules;
[0149] According to the mapping relationship, the membership value of the speed variable and the membership value of the distance variable are mapped to the Sigmoid function to obtain the membership value of the acceleration variable;
[0150] The mapping relationship is adjusted according to the variation range of the membership value of the acceleration variable.
[0151] In the above implementation process, the membership value of the speed variable and the membership value of the distance variable are mapped to the Sigmoid function to obtain the membership value of the acceleration variable, and then the mapping relationship is adjusted according to the membership value of the acceleration variable, which can improve the accuracy of the mapping relationship and the accuracy of the subsequent acceleration variable.
[0152] Furthermore, the speed planning module 5 is also used for:
[0153] Perform nonlinear transformation on the normalized speed variable and the normalized distance variable according to the weight parameter to obtain the intermediate variable;
[0154] Perform nonlinear mapping on the intermediate variables to obtain acceleration variables.
[0155] In the above implementation process, nonlinear transformation is performed on the normalized velocity variable and the normalized distance variable to obtain an intermediate variable, and then nonlinear mapping is performed on the intermediate variable to obtain an acceleration variable. The two nonlinear processings can improve the accuracy of the acceleration variable.
[0156] Furthermore, the speed planning module 5 is also used to perform nonlinear transformation on the normalized speed variable and the normalized distance variable according to the weight parameter through the following formula to obtain an intermediate variable:
[0157] ;
[0158] in, and are the normalized speed variables and the normalized distance variables, and is the weight parameter, is an intermediate variable, and ReLU() is a nonlinear transformation.
[0159] Furthermore, the speed planning module 5 is also used to perform nonlinear mapping on the intermediate variables through the following formula to obtain the acceleration variable:
[0160] ;
[0161] in, and is the weight parameter, is the acceleration variable, and ReLU() is the nonlinear transformation.
[0162] The above-mentioned speed control device for automatic vehicle driving can implement the method of the above-mentioned embodiment 1. The options in the above-mentioned embodiment 1 are also applicable to this embodiment and will not be described in detail here.
[0163] The rest of the contents of the embodiments of the present application can refer to the contents of the above-mentioned embodiment 1, and will not be repeated in this embodiment.
[0164] Embodiment 3
[0165] An embodiment of the present application provides a vehicle, including the speed control device for automatic driving of the vehicle according to the second embodiment.
[0166] Embodiment 4
[0167] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the speed control method for automatic driving of a vehicle of embodiment one.
[0168] Optionally, the above-mentioned electronic device may be a server.
[0169] See also Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 31, a communication interface 32, a memory 33 and at least one communication bus 34. The communication bus 34 is used to realize direct connection and communication between these components. The communication interface 32 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.
[0170] The processor 31 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor 31 can also be any conventional processor, etc.
[0171] The memory 33 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 33 stores computer readable instructions. When the computer readable instructions are executed by the processor 31, the device can execute the above-mentioned Figure 1 The method embodiment involves various steps.
[0172] Optionally, the electronic device may further include a storage controller and an input / output unit. The memory 33, the storage controller, the processor 31, the peripheral interface, and the input / output unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via a communication bus 34. The processor 31 is used to execute executable modules stored in the memory 33, such as software function modules or computer programs included in the device.
[0173] The input and output unit is used to provide users with the task creation and to create an optional time period or preset execution time for the task to enable interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0174] Understandably, Figure 3 The structure shown is for illustration only. The electronic device may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown. Figure 3 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0175] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the speed control method for automatic driving of a vehicle of embodiment one is implemented.
[0176] The embodiment of the present application also provides a computer program product, which, when running on a computer, enables the computer to execute the method described in the method embodiment.
[0177] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based device that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0178] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0179] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0180] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0181] The above is only a specific implementation of the present application, but the protection range of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical range disclosed in the present application, which should be included in the protection range of the present application. Therefore, the protection range of the present application should be based on the protection range of the claims.
[0182] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A speed control method for automatic vehicle driving, characterized in that: The method comprises: Acquire driving data during the vehicle's autonomous driving process; Plan the path for the vehicle's automatic driving based on the starting and ending points of the driving to obtain the optimal path; Selecting a speed planning model according to the driving scenario corresponding to the optimal path; Perform fuzzy programming on the speed variable and the distance variable in the driving data according to fuzzy rules to obtain weight parameters; Performing speed planning on the speed variable and the distance variable according to the weight parameter to obtain an acceleration variable; adjusting the acceleration variable and the speed variable according to the speed planning model; The step of performing speed planning on the speed variable and the distance variable according to the weight parameter to obtain the acceleration variable comprises: Performing nonlinear transformation on the normalized speed variable and the normalized distance variable according to the weight parameter to obtain an intermediate variable; Performing nonlinear mapping on the intermediate variable to obtain the acceleration variable; The normalized speed variable and the normalized distance variable are nonlinearly transformed according to the weight parameter by the following formula to obtain the intermediate variable: ; in, and are the normalized speed variables and the normalized distance variables, and is the weight parameter, is an intermediate variable, and ReLU() is a nonlinear transformation.
2. The speed control method for automatic vehicle driving according to claim 1, characterized in that: The step of performing path planning for the vehicle's automatic driving according to the starting point and the end point of driving to obtain the optimal path includes: Constructing a plurality of candidate paths according to the starting point and the end point; Evaluate the plurality of candidate paths according to the driving performance index to obtain a candidate path with the highest expected value; The candidate path with the highest expected value is determined as the optimal path.
3. The speed control method for automatic vehicle driving according to claim 1, characterized in that: The step of performing fuzzy programming on the speed variable and the distance variable in the driving data according to the fuzzy rule to obtain the weight parameter comprises: Adjusting the mapping relationship between the speed variable, the distance variable and the acceleration variable; Adjusting the pre-built neural network model according to the adjusted mapping relationship; constructing an input sample set according to the speed variable, the distance variable and the scene information in the driving data; The input sample set is input into the adjusted neural network model for training to obtain the weight parameters.
4. The speed control method for automatic vehicle driving according to claim 3, characterized in that: The step of adjusting the mapping relationship between the speed variable, the distance variable and the acceleration variable comprises: Constructing a mapping relationship among the speed variable, the distance variable and the acceleration variable according to fuzzy rules; According to the mapping relationship, the membership value of the speed variable and the membership value of the distance variable are mapped to the Sigmoid function to obtain the membership value of the acceleration variable; The mapping relationship is adjusted according to a variation range of the membership value of the acceleration variable.
5. The speed control method for automatic vehicle driving according to claim 1, characterized in that: The intermediate variable is nonlinearly mapped using the following formula to obtain the acceleration variable: ; in, and is the weight parameter, is the acceleration variable, and ReLU() is the nonlinear transformation.
6. A speed control device for automatic vehicle driving, characterized in that: The device comprises: A driving data acquisition module, used to acquire driving data during the vehicle's automatic driving process; The path planning module is used to plan the path of the vehicle's automatic driving according to the starting point and end point of the driving to obtain the optimal path; A selection module, used to select a speed planning model according to the driving scenario corresponding to the optimal path; A fuzzy programming module, used for performing fuzzy programming on the speed variable and the distance variable in the driving data according to fuzzy rules to obtain weight parameters; A speed planning module, used to perform speed planning on the speed variable and the distance variable according to the weight parameter to obtain an acceleration variable; An adjustment module, used for adjusting the acceleration variable and the speed variable according to the speed planning model; The speed planning module is also used for: Performing nonlinear transformation on the normalized speed variable and the normalized distance variable according to the weight parameter to obtain an intermediate variable; Performing nonlinear mapping on the intermediate variable to obtain the acceleration variable; The normalized speed variable and the normalized distance variable are nonlinearly transformed according to the weight parameter by the following formula to obtain the intermediate variable: ; in, and are the normalized speed variables and the normalized distance variables, and is the weight parameter, is an intermediate variable, and ReLU() is a nonlinear transformation.
7. A vehicle, characterized in that: Including the speed control device for automatic driving of a vehicle as described in claim 6.
8. An electronic device, characterized in that: It includes a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the speed control method for automatic driving of a vehicle according to any one of claims 1 to 5.
9. A storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the speed control method for automatic driving of a vehicle as described in any one of claims 1 to 5.
