Driving strategy control method, device, vehicle and storage medium
By acquiring and predicting weather and environmental information in the area where the vehicle is located, and dynamically adjusting the driving strategy, the problem of inaccurate driving strategy adjustment in the existing technology is solved, and efficient and safe driving under complex weather conditions is achieved.
Patent Information
- Application Number
- CN202410737499.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-07
Smart Images

Figure CN118323194B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a driving strategy control method, device, vehicle and storage medium. Background Art
[0002] With the development of autonomous driving technology and the popularization of intelligent transportation systems, vehicle safety, comfort and environmental adaptability have become the focus of research and development. Especially in complex weather conditions, how to ensure that vehicles can operate safely and efficiently has become one of the key challenges of technological innovation.
[0003] In the related art, driving strategies are generally adjusted by macro weather, such as the weather conditions in a province or city. However, macro weather cannot represent the micro location of the vehicle, such as the weather conditions in a certain street or community, resulting in inaccurate driving strategy adjustments. Summary of the invention
[0004] The present application provides a driving strategy control method, device, vehicle and storage medium. The method can adjust the driving strategy according to the microscopic position of the vehicle, thereby improving the accuracy of the driving strategy adjustment.
[0005] In a first aspect, a driving strategy control method is provided, which is applied to a vehicle, and the method comprises: obtaining weather information of an area where the vehicle is located, and a vehicle environment sequence of the vehicle, wherein the vehicle environment sequence is a sequence consisting of vehicle environment information corresponding to different time points obtained as the driving time of the vehicle in the area increases; inputting the weather information into a regional weather prediction model to obtain predicted regional weather characteristics; inputting the vehicle environment sequence into a feature attention model to obtain predicted target vehicle environment characteristics, wherein the target vehicle environment characteristics are vehicle environment characteristics in the vehicle environment sequence; fusing the regional weather characteristics and the target vehicle environment characteristics to obtain fused characteristics; inputting the fused characteristics into a driving strategy prediction model to obtain a predicted target driving strategy, and controlling the driving strategy of the vehicle to be updated to the target driving strategy.
[0006] Through the above technical solution, the target driving strategy can be predicted based on the weather information of the area where the vehicle is located and the vehicle environment sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels in the area over time. Therefore, the driving strategy of the vehicle in the microscopic area is determined according to the weather conditions in the microscopic area and the vehicle environment sequence of the vehicle environment information around the vehicle, thereby improving the accuracy of driving strategy adjustment.
[0007] In combination with the first aspect, in some possible implementations, the weather information is input into a regional weather forecast model to obtain predicted regional weather characteristics, including: encoding the weather information to obtain distribution parameters of the weather information mapped in a latent space; sampling the distribution parameters to obtain latent variables; and decoding the latent variables to obtain predicted regional weather characteristics.
[0008] Through the above technical solution, the regional weather characteristics of the area can be predicted based on the regional weather information, thereby obtaining the weather characteristics in the area, refining the granularity of driving strategy prediction, and improving the accuracy of driving strategy adjustment.
[0009] In combination with the first aspect, in some possible implementations, the vehicle environment sequence is input into a feature attention model to obtain predicted target vehicle environment features, including: calculating the attention score at each time point in the vehicle environment sequence; normalizing the attention score at each time point to obtain the attention level at each time point; screening out the target attention level with the highest attention level from multiple attention levels; and determining the vehicle environment information at the target time point corresponding to the target attention level as the target vehicle environment features.
[0010] Through the above technical solution, the vehicle environment sequence composed of multiple vehicle environment information is predicted to determine the target vehicle environment characteristics that need to be paid attention to, which is used as a basis for subsequent driving strategy prediction and improves the accuracy of driving strategy adjustment.
[0011] In combination with the first aspect, in some possible implementations, the regional weather characteristics and the target vehicle environmental characteristics are fused to obtain fused characteristics, including: obtaining a first fusion weight of the regional weather characteristics corresponding to the first data source, and a second fusion weight of the target vehicle environmental characteristics corresponding to the second data source; based on the first fusion weight and the second fusion weight, the regional weather characteristics and the target vehicle environmental characteristics are fused to obtain a fused characteristic.
[0012] Through the above technical solution, by setting a first fusion weight for the first data source corresponding to the regional weather characteristics, and setting a second fusion weight for the second data source corresponding to the target vehicle environmental characteristics, when the regional weather characteristics and the target vehicle environmental characteristics are fused, the fusion characteristics obtained by fusion are more focused on the characteristics corresponding to a certain data source according to the fusion weights, thereby improving the accuracy of driving strategy adjustment.
[0013] In combination with the first aspect, in some possible implementations, after the driving strategy for controlling the vehicle is updated to the target driving strategy, it also includes: receiving driving strategy control feedback, and if the driving strategy adjustment feedback indicates that the driving strategy control is inaccurate, determining a first prediction accuracy of the first driving strategy predicted only by the regional weather characteristics, and a second prediction accuracy of the second driving strategy predicted only by the target vehicle environmental characteristics; adjusting the first fusion weight or the second fusion weight based on the first prediction accuracy, the second prediction accuracy, the first preset accuracy, and the second preset accuracy.
[0014] Through the above technical solution, when the feedback result indicates that the driving strategy control is inaccurate, the first fusion weight or the second fusion weight is adjusted by determining the first prediction accuracy of the first driving strategy predicted only by the regional weather characteristics and the second prediction accuracy of the second driving strategy predicted only by the target vehicle environmental characteristics, thereby achieving the effect of dynamically adjusting the fusion weight based on the feedback result.
[0015] In combination with the first aspect, in some possible implementations, the first fusion weight or the second fusion weight is adjusted based on the first prediction accuracy, the second prediction accuracy, the first preset accuracy and the second preset accuracy, including: if the first prediction accuracy is less than the first preset accuracy, then reducing the first fusion weight according to a preset adjustment step; or if the second prediction accuracy is less than the second preset accuracy, then reducing the second fusion weight according to a preset adjustment step; or if the first prediction accuracy is greater than the second preset accuracy, then increasing the first fusion weight according to a preset adjustment step; or if the second prediction accuracy is greater than the second preset accuracy, then increasing the second fusion weight according to a preset adjustment step, and the second preset accuracy is greater than the first preset accuracy.
[0016] Through the above technical scheme, when there is a prediction accuracy rate less than the first preset accuracy rate between the first prediction accuracy rate and the second prediction accuracy rate, the corresponding fusion weight can be reduced according to the preset adjustment step; and when there is a prediction accuracy rate greater than the second preset accuracy rate between the first prediction accuracy rate and the second prediction accuracy rate, the corresponding fusion weight can be increased according to the preset adjustment step, thereby realizing dynamic adjustment of the fusion weight.
[0017] In combination with the first aspect, in some possible implementations, the method further includes: sorting the first prediction accuracy and the second prediction accuracy to obtain a sorting order; adjusting a first fusion weight of the first data source corresponding to the first prediction accuracy according to the sorting order, and adjusting a second fusion weight of the second data source corresponding to the second prediction accuracy.
[0018] Through the above technical solution, the first prediction accuracy and the second prediction accuracy can be sorted, and the first fusion weight and the second fusion weight can be adjusted based on the sorting order, thereby realizing dynamic adjustment of the fusion weight.
[0019] In a second aspect, a driving strategy control device is provided, which is applied to a vehicle, and the device includes:
[0020] An acquisition unit, used to acquire weather information of the area where the vehicle is located, and a vehicle environment sequence of the vehicle, wherein the vehicle environment sequence is a sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels for an increasing amount of time in the area where the vehicle is located;
[0021] A first prediction unit, used for inputting the weather information into a regional weather prediction model to obtain predicted regional weather characteristics;
[0022] A second prediction unit is used to input the vehicle environment sequence into a feature attention model to obtain a predicted target vehicle environment feature, where the target vehicle environment feature is a vehicle environment feature in the vehicle environment sequence;
[0023] A fusion unit, used for fusing the regional weather characteristics and the target vehicle environment characteristics to obtain a fusion feature;
[0024] A control unit is used to input the fusion feature into a driving strategy prediction model to obtain a predicted target driving strategy, and control the driving strategy of the vehicle to be updated to the target driving strategy.
[0025] In a third aspect, a vehicle is provided, the vehicle comprising:
[0026] A memory for storing executable program codes;
[0027] The processor is used to call and run the executable program code from the memory so that the vehicle executes any of the driving strategy control methods as described above.
[0028] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the driving strategy control method as described in any one of the above items is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 It is a scenario schematic diagram of a driving strategy control method provided in an embodiment of the present application;
[0031] Figure 2 It is a flow chart of a driving strategy control method provided in an embodiment of the present application;
[0032] Figure 3 It is a flow chart of a driving strategy control method provided in an embodiment of the present application;
[0033] Figure 4 It is a flow chart of a driving strategy control method provided in an embodiment of the present application;
[0034] Figure 5 It is a flow chart of a driving strategy control method provided in an embodiment of the present application;
[0035] Figure 6 is a structural schematic diagram of a driving strategy control device provided in an embodiment of the present application;
[0036] Figure 7 is a structural schematic diagram of a vehicle provided in an embodiment of the present application;
[0037] Figure 8 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0039] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0040] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0041] Figure 1It is a scenario diagram of a driving strategy control method provided in an embodiment of the present application. Figure 1 A scenario is given in which the vehicle adjusts its driving strategy based on weather conditions during driving.
[0042] In the above scenario, the vehicle determines the driving strategy based on the macro weather conditions. For example, the vehicle obtains the weather conditions of the province, city, and region where it is located. For example, if there is heavy rain in City A, the vehicle's wipers will be turned on and the user will be prompted to change to rain tires or drive at a low speed. However, when there is no heavy rain in the micro area where the vehicle is located, for example Figure 1 If there is no heavy rain on the street where the vehicle is currently located, but there is heavy rain on the street ahead, the vehicle will still turn on the wipers and prompt the user to change to rain tires or drive at a low speed, causing the vehicle that was not originally affected by the heavy rain to turn on these functions related to the heavy rain. Therefore, the granularity of the driving strategy adjustment in the prior art is too large, resulting in inaccurate driving strategy adjustment.
[0043] This application is aimed at the above scenario. Based on the weather information of the area where the vehicle is located and the vehicle environment sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels in the area over time, the target driving strategy that meets the weather conditions in the micro-area where the vehicle is located can be predicted. Thus, the driving strategy of the vehicle in the micro-area where the vehicle is located can be determined based on the weather conditions in the micro-area and the vehicle environment sequence of the vehicle environment information around the vehicle, thereby improving the accuracy of driving strategy adjustment.
[0044] based on Figure 1 The scene diagram shown below will be combined with Figure 2-Figure 5 , the driving strategy control method provided in the embodiment of the present application is introduced in detail.
[0045] See also Figure 2 , Figure 2 This is a flow chart of a driving strategy control method provided by an embodiment of the present application. The execution subject of the method may be a vehicle, the vehicle is equipped with a radar system, the radar system includes a radar sensor and a power supply link, the power supply link is used to power the radar sensor, and the specific process of the method may be as follows:
[0046] S101, obtaining weather information of the area where the vehicle is located and a vehicle environment sequence of the vehicle, wherein the vehicle environment sequence is a sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels in the area where the vehicle is located for an increasing period of time.
[0047] The weather information includes satellite images of the microscopic area where the vehicle is located and weather condition data of the microscopic area. The vehicle can establish a communication connection with a satellite server to obtain satellite images of the microscopic area where it is located from the satellite server, and the vehicle can establish a communication connection with a weather station to obtain weather condition data of the microscopic area where it is located from the weather station. The weather condition data can include specific precipitation distribution and wind speed changes, etc., which are not limited here.
[0048] Specifically, in order to improve the accuracy of subsequent driving strategy predictions, the satellite images may be preprocessed to ensure data consistency and quality. The preprocessing method may include normalizing the size and intensity value of the satellite images, such as presetting a standard size and standard intensity value of the satellite images, so that when the satellite images are received, the satellite images are adjusted according to the standard size and standard intensity value.
[0049] The vehicle environment sequence includes sensor data at different time points collected by vehicle sensors as the vehicle travels for an increasing amount of time in the area where the vehicle is located, and weather condition data at different time points obtained from a weather station.
[0050] S102, inputting weather information into a regional weather forecasting model to obtain predicted regional weather characteristics.
[0051] The regional weather prediction model trained in advance is used to make predictions based on weather information to obtain predicted regional weather characteristics. Regional weather characteristics are characteristics that can characterize weather information.
[0052] Specifically, the regional weather forecast model can be based on the variational autoencoder model (VAE). The number of network layers and hidden units in the variational autoencoder model can be adjusted through experiments to optimize the performance of the variational autoencoder model. The variational autoencoder model is trained using annotated weather information as training samples, and the model parameters of the model are adjusted through the loss function to guide the learning process of the model. By adjusting training parameters such as learning rate and batch size, the training efficiency and model quality can be improved.
[0053] Among them, during the training process, the weight parameters of the variational autoencoder model are first randomly initialized, and the optimizer relying on the Adam algorithm is selected, and the target learning rate is set. During the forward propagation process, the input data generates a representation of the latent space through the encoder, and then reconstructs it through the decoder. The loss function consists of reconstruction loss (such as MSE) and (Kullback-Leibler, KL) divergence loss, which is used to measure the difference between the distribution of the latent representation and the prior distribution. The gradient of the loss function with respect to the model parameters is calculated through back propagation, and the model weights are updated using the optimizer to obtain a trained regional weather forecast model.
[0054] Specifically, the target learning rate is the optimal learning rate found using the learning rate decay strategy and the learning rate search technique, and the batch size of the training samples is adjusted to balance the training stability and memory limitations. The weight of the KL divergence loss in the total loss is adjusted to balance the reconstruction quality and the regularity of the latent space.
[0055] S103, inputting the vehicle environment sequence into a feature attention model to obtain predicted target vehicle environment features, where the target vehicle environment features are vehicle environment features in the vehicle environment sequence.
[0056] Among them, the predicted target vehicle environment features are obtained by predicting the vehicle environment sequence through the pre-trained feature attention model. The target vehicle environment features are the vehicle environment features corresponding to the most critical time point in the vehicle environment sequence. The target vehicle environment features are used as the main basis for the subsequent driving strategy prediction.
[0057] Specifically, the feature attention model can be based on the attention mechanism sequence network (ANSIN) model, and the attention mechanism form and model parameters can be adjusted to optimize the prediction ability of the dynamic changes of the vehicle environment sequence. The way to adjust the attention mechanism form can include: adjusting the parameters of the attention layer through experiments, such as the number of heads of multi-head attention, to improve the model's ability to capture key information in the sequence. The number of hidden units or layers of the long short-term memory layer (Long Short Term Memory, LSTM) and the gated recurrent unit (GRU) layer are increased, and methods such as Dropout or L2 regularization are used to reduce overfitting. Different sequence lengths and batch sizes are experimented with to find the best combination of LSTM layer and GRU layer to optimize the learning efficiency and performance of the model.
[0058] Among them, during the training process, the vehicle sensor data and ground weather station data are used as training samples and input into the attention mechanism sequence network model for training, the accuracy of the model prediction and the prediction time are evaluated, and the network structure and training parameters are adjusted according to the evaluation results to optimize the model performance. The process includes the selection of the model initialization method, such as using Xavier initialization (the purpose is to make the input and output of each layer in the forward propagation and back propagation process have similar distributions, that is, the variance of the input and output is the same) to set the initial value of the network parameter, as well as the optimization of sequence processing, using the attention mechanism to strengthen the model's attention to key time points. The model parameters can use the mean square error (MSE) as the loss function, and implement strategies such as cross-validation to avoid overfitting. The model training uses an optimizer suitable for sequence data, such as RMSprop in the gradient descent method, and updates the model parameters through back propagation to obtain a trained feature attention model.
[0059] Specifically, the vehicle sensor data and the weather station data need to be formatted into time series data, that is, one time point corresponds to one vehicle sensor data and one weather station data, thereby forming a vehicle environment sequence based on the time point.
[0060] S104, integrating regional weather features and target vehicle environment features to obtain integrated features.
[0061] The regional weather features characterizing the regional weather conditions and the target vehicle environment features characterizing the vehicle environment conditions are fused to obtain fused features, which are used to characterize the regional weather conditions and the vehicle environment conditions.
[0062] S105, inputting the fusion features into a driving strategy prediction model to obtain a predicted target driving strategy, and controlling the vehicle's driving strategy to be updated to the target driving strategy.
[0063] The fusion features used to characterize the regional weather conditions and the vehicle environment conditions are input into the driving strategy prediction model, so that the driving strategy prediction model makes predictions based on the fusion features to obtain a predicted target driving strategy. The target driving strategy is a driving strategy suitable for use under the regional weather characteristics and the vehicle environment conditions predicted by the driving strategy prediction model. The driving strategy of the control vehicle is updated to the target driving strategy, and corresponding functions and / or modes are adjusted according to the target driving strategy.
[0064] Specifically, the driving strategy may include the vehicle's driving mode and safety system. The driving mode includes a normal mode or a sports mode, etc. The safety system includes a door lock control function, a wiper control function, etc., which are not limited here.
[0065] Among them, the driving strategy prediction model can be based on the fast extreme learning machine (QELM) model, and the number of hidden layer nodes and the selection of appropriate activation functions are experimentally adjusted to meet the needs of vehicle control decision-making. In QELM, the weights and biases of the hidden layer are randomly generated and remain unchanged during the training process. The calculation of the output layer weights uses the training data and is directly performed by minimizing the output error. This process includes using historical data sets to simulate different driving scenarios and weather conditions, and optimizing algorithm parameters, such as introducing regularization terms to improve the stability and generalization ability of the model. Adjust the number of hidden layer nodes to balance the model complexity and fitting ability, try different activation functions to find the function that best suits the current task, and introduce regularization terms to control the complexity of the model to prevent overfitting.
[0066] Specifically, during the training process, data that integrates weather forecast results from the regional weather forecast model and the vehicle's current vehicle environmental information are used as training samples. The training samples are standardized to accelerate the convergence speed of QELM and improve model performance, thereby obtaining a trained driving strategy prediction model.
[0067] Among them, a simulation environment is designed to conduct integration tests in this simulated virtual environment, which can simulate the complex weather conditions and vehicle driving conditions in the real world. In this way, the model fusion strategy can be evaluated and optimized without affecting the actual operation.
[0068] Specifically, since the embodiments of the present application use a regional weather prediction model, a feature attention model, and a driving strategy prediction model, the model interface is designed through a microservice architecture, and each model runs as an independent microservice and communicates through a RESTful interface. This design not only improves the maintainability and scalability of the system, but also facilitates distributed deployment on different hardware devices, such as running a computationally intensive regional weather prediction model on a cloud server, and running a driving strategy prediction model that requires a fast response on an edge computing device. And develop a data flow visualization and monitoring platform to display the flow and processing status of data between different models in real time, as well as the performance indicators of each model. This not only helps developers monitor the system status, but also makes the data flow and model fusion process more transparent.
[0069] The driving strategy control method provided in the embodiment of the present application predicts the target driving strategy based on the weather information of the area where the vehicle is located and the vehicle environment sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels in the area over time. Thus, the driving strategy of the vehicle in the microscopic area is determined according to the weather conditions in the microscopic area and the vehicle environment sequence of the vehicle environment information around the vehicle, thereby improving the accuracy of driving strategy adjustment.
[0070] See also Figure 3 , Figure 3 : is a flow chart of a driving strategy control method provided by an embodiment of the present application. The specific process of the method can be as follows:
[0071] S201, obtaining weather information of the area where the vehicle is located, and a vehicle environment sequence of the vehicle, where the vehicle environment sequence is a sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels in the area where the vehicle is located for an increasing period of time.
[0072] The weather information includes satellite images of the microscopic area where the vehicle is located and weather condition data of the microscopic area. The vehicle can establish a communication connection with a satellite server to obtain satellite images of the microscopic area where it is located from the satellite server, and the vehicle can establish a communication connection with a weather station to obtain weather condition data of the microscopic area where it is located from the weather station. The weather condition data can include specific precipitation distribution and wind speed changes, etc., which are not limited here.
[0073] Specifically, in order to improve the accuracy of subsequent driving strategy predictions, the satellite images may be preprocessed to ensure data consistency and quality. The preprocessing method may include normalizing the size and intensity value of the satellite images, such as presetting a standard size and standard intensity value of the satellite images, so that when the satellite images are received, the satellite images are adjusted according to the standard size and standard intensity value.
[0074] The vehicle environment sequence includes sensor data at different time points collected by vehicle sensors as the vehicle travels for an increasing amount of time in the area where the vehicle is located, and weather condition data at different time points obtained from a weather station.
[0075] S202, encoding the weather information to obtain distribution parameters of the weather information mapping in the latent space.
[0076] Among them, weather information including satellite images and weather condition data of microscopic areas is input into the encoder, and the encoder maps the data to distribution parameters of a latent space, usually including mean and variance, through a neural network.
[0077] Specifically, before the weather information is input into the encoder, the satellite images and ground weather station data need to be normalized. The normalization method may include adjusting the size and intensity value of the image to ensure the consistency of the input data and the effective reasoning of the model.
[0078] S203, sampling the distribution parameters to obtain latent variables.
[0079] Among them, the distribution parameters are sampled in the latent space to obtain latent variables, which is achieved by sampling from a standard normal distribution and then transforming them using the parameters output by the encoder.
[0080] S204, decoding the latent variables to obtain predicted regional weather characteristics.
[0081] The latent variables are processed by the decoder through reconstruction, which is reconstructed back to the dimension of the original data, with the aim of generating new data that is similar to the real data.
[0082] S205, calculating the attention score at each moment in the vehicle environment sequence.
[0083] In the attention model, the common way to assign weights is to quantify them through an attention score or weight. This score is obtained by comparing the similarity of each data point to a query (usually other sequence data or the hidden layer state of the previous state). This similarity can be calculated in a variety of ways, such as dot product, weighted sum, or using a small neural network.
[0084] S206, normalizing the attention score at each time point to obtain the attention level at each time point.
[0085] Among them, the attention scores are normalized, usually through an activation function layer (softmax), so that the sum of all scores is 1. The normalized score represents the degree to which each data point is "attended" by the model in the entire input sequence. The higher the score, the more important the data point.
[0086] S207, selecting a target attention level with the highest attention level from the multiple attention levels.
[0087] Among them, based on the attention levels at each time point determined in step S206, the attention level with the highest attention level is determined as the target attention level.
[0088] S208: Determine the vehicle environment information at the target time point corresponding to the target attention degree as the target vehicle environment feature.
[0089] Among them, the vehicle environment information at the target time point corresponding to the target attention degree is determined as the target vehicle environment feature.
[0090] Specifically, in the sequence prediction stage, although the attention mechanism helps the model identify the most critical moments, the prediction is still made in the context of the entire time series. Although the importance of certain special moments is highlighted through the attention layer, the model still integrates the information of the entire time series to make predictions. Therefore, when the target time points are selected, it actually means that the model will pay more attention to these target time points when making predictions, and will pay more attention to those time points that it considers to be the most critical.
[0091] S209, obtaining a first fusion weight of the first data source corresponding to the regional weather characteristics, and a second fusion weight of the second data source corresponding to the target vehicle environment characteristics.
[0092] In the process of feature fusion, it is necessary to combine the fusion weights of the data sources corresponding to each feature. The first fusion weight is the fusion weight set for the first data source to which the feature of regional weather features belongs, and the second fusion weight is the fusion weight set for the second data source to which the feature of target vehicle environment features belongs.
[0093] S210, based on the first fusion weight and the second fusion weight, the regional weather characteristics and the target vehicle environment characteristics are fused to obtain fusion characteristics.
[0094] The feature fusion method may be to calculate the product of each feature and the corresponding fusion weight to obtain the first calculation result corresponding to each feature, and calculate the sum of the first calculation results corresponding to multiple features to obtain the fusion feature. Alternatively, the product of the first calculation results corresponding to multiple features is calculated to obtain the fusion feature. The specific fusion method is not limited here.
[0095] S211, input the fusion features into the driving strategy prediction model to obtain the predicted target driving strategy, and control the vehicle's driving strategy to be updated to the target driving strategy.
[0096] The fusion features used to characterize the regional weather conditions and the vehicle environment conditions are input into the driving strategy prediction model, so that the driving strategy prediction model makes predictions based on the fusion features to obtain a predicted target driving strategy. The target driving strategy is a driving strategy suitable for use under the regional weather characteristics and the vehicle environment conditions predicted by the driving strategy prediction model. The driving strategy of the control vehicle is updated to the target driving strategy, and corresponding functions and / or modes are adjusted according to the target driving strategy.
[0097] Specifically, the driving strategy may include the vehicle's driving mode and safety system. The driving mode includes a normal mode or a sports mode, etc. The safety system includes a door lock control function, a wiper control function, etc., which are not limited here.
[0098] For example, if the target driving strategy is the normal mode, locking the door locks and turning on the wipers, the vehicle is controlled to adjust the driving mode to the normal mode, locking the door locks and turning on the wipers.
[0099] The driving strategy control method provided in this embodiment predicts the regional weather characteristics of the area based on the regional weather information, thereby obtaining the weather characteristics in the area, refining the granularity of the driving strategy prediction, and improving the accuracy of the driving strategy adjustment. By predicting the vehicle environment sequence composed of multiple vehicle environment information, the target vehicle environment characteristics that need to be paid attention to are determined, which are used as the basis for subsequent driving strategy predictions, thereby improving the accuracy of driving strategy adjustment. By setting a first fusion weight for the first data source corresponding to the regional weather characteristics, and setting a second fusion weight for the second data source corresponding to the target vehicle environment characteristics, when fusing the regional weather characteristics and the target vehicle environment characteristics, the fusion characteristics obtained by fusion are more focused on the characteristics corresponding to a certain data source according to the fusion weight, thereby improving the accuracy of driving strategy adjustment.
[0100] See also Figure 4 , Figure 4: is a flow chart of a driving strategy control method provided by an embodiment of the present application. The specific process of the driving strategy control method can be as follows:
[0101] S301, obtaining weather information of the area where the vehicle is located and a vehicle environment sequence of the vehicle, where the vehicle environment sequence is a sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels for an increasing amount of time in the area where the vehicle is located.
[0102] The weather information includes satellite images of the microscopic area where the vehicle is located and weather condition data of the microscopic area. The vehicle can establish a communication connection with a satellite server to obtain satellite images of the microscopic area where it is located from the satellite server, and the vehicle can establish a communication connection with a weather station to obtain weather condition data of the microscopic area where it is located from the weather station. The weather condition data can include specific precipitation distribution and wind speed changes, etc., which are not limited here.
[0103] Specifically, in order to improve the accuracy of subsequent driving strategy predictions, the satellite images may be preprocessed to ensure data consistency and quality. The preprocessing method may include normalizing the size and intensity value of the satellite images, such as presetting a standard size and standard intensity value of the satellite images, so that when the satellite images are received, the satellite images are adjusted according to the standard size and standard intensity value.
[0104] The vehicle environment sequence includes sensor data at different time points collected by vehicle sensors as the vehicle travels for an increasing amount of time in the area where the vehicle is located, and weather condition data at different time points obtained from a weather station.
[0105] S302, inputting weather information into a regional weather forecasting model to obtain predicted regional weather characteristics.
[0106] The regional weather prediction model trained in advance is used to make predictions based on weather information to obtain predicted regional weather characteristics. Regional weather characteristics are characteristics that can characterize weather information.
[0107] Specifically, the regional weather forecast model can be based on the variational autoencoder model (VAE). The number of network layers and hidden units in the variational autoencoder model can be adjusted through experiments to optimize the performance of the variational autoencoder model. The variational autoencoder model is trained using annotated weather information as training samples, and the model parameters of the model are adjusted through the loss function to guide the learning process of the model. By adjusting training parameters such as learning rate and batch size, the training efficiency and model quality can be improved.
[0108] S303, inputting the vehicle environment sequence into the feature attention model to obtain predicted target vehicle environment features, where the target vehicle environment features are the vehicle environment features in the vehicle environment sequence.
[0109] Among them, the predicted target vehicle environment features are obtained by predicting the vehicle environment sequence through the pre-trained feature attention model. The target vehicle environment features are the vehicle environment features corresponding to the most critical time point in the vehicle environment sequence. The target vehicle environment features are used as the main basis for the subsequent driving strategy prediction.
[0110] Specifically, the feature attention model can be based on the attention mechanism sequence network (ANSIN) model, and the attention mechanism form and model parameters can be adjusted to optimize the prediction ability of the dynamic changes of the vehicle environment sequence. The way to adjust the attention mechanism form can include: adjusting the parameters of the attention layer through experiments, such as the number of heads of multi-head attention, to improve the model's ability to capture key information in the sequence. The number of hidden units or layers of the long short-term memory layer (Long Short Term Memory, LSTM) and the gated recurrent unit (GRU) layer are increased, and methods such as Dropout or L2 regularization are used to reduce overfitting. Different sequence lengths and batch sizes are experimented with to find the best combination of LSTM layer and GRU layer to optimize the learning efficiency and performance of the model.
[0111] S304, obtaining a first fusion weight of the first data source corresponding to the regional weather feature and a second fusion weight of the second data source corresponding to the target vehicle environment feature.
[0112] In the process of feature fusion, it is necessary to combine the fusion weight of the data source corresponding to each feature.
[0113] For example, the first fusion weight of the regional weather feature y corresponding to the first data source is q, and the second fusion weight of the target vehicle environment feature u corresponding to the second data source is e. It is necessary to perform feature fusion by combining the regional weather feature y, the first fusion weight q, the target vehicle environment feature u and the second fusion weight e.
[0114] S305: Based on the first fusion weight and the second fusion weight, the regional weather characteristics and the target vehicle environment characteristics are fused to obtain fusion characteristics.
[0115] Among them, the method of feature fusion can be to calculate the product of each feature and the corresponding fusion weight to obtain the first calculation result corresponding to each feature, calculate the sum of the first calculation results corresponding to multiple features, and obtain the fusion feature. For example, the first fusion weight of the regional weather feature y corresponding to the first data source is q, and the second fusion weight of the target vehicle environment feature u corresponding to the second data source is e, then the fusion feature is y*q+u*e. Or calculate the product of the first calculation results corresponding to multiple features to obtain the fusion feature, for example, the fusion feature is y*q*u*e. The specific fusion method is not limited here.
[0116] S306, inputting the fusion features into the driving strategy prediction model to obtain the predicted target driving strategy, and controlling the vehicle's driving strategy to be updated to the target driving strategy.
[0117] The fusion features used to characterize the regional weather conditions and the vehicle environment conditions are input into the driving strategy prediction model, so that the driving strategy prediction model makes predictions based on the fusion features to obtain a predicted target driving strategy. The target driving strategy is a driving strategy suitable for use under the regional weather characteristics and the vehicle environment conditions predicted by the driving strategy prediction model. The driving strategy of the control vehicle is updated to the target driving strategy, and corresponding functions and / or modes are adjusted according to the target driving strategy.
[0118] Specifically, the driving strategy may include the vehicle's driving mode and safety system. The driving mode includes a normal mode or a sports mode, etc. The safety system includes a door lock control function, a wiper control function, etc., which are not limited here.
[0119] S307, receiving driving strategy control feedback, if the driving strategy adjustment feedback indicates that the driving strategy control is inaccurate, determining a first prediction accuracy of a first driving strategy predicted only by regional weather characteristics, and a second prediction accuracy of a second driving strategy predicted only by target vehicle environmental characteristics.
[0120] Among them, the embodiment of the present application is provided with a driving strategy feedback interface, through which the user can provide feedback on the driving strategy control effect of each time. The feedback content may include whether the driving strategy adjustment is accurate, and when it is inaccurate, the user can input the driving strategy that the user considers appropriate.
[0121] Specifically, after adjusting the driving strategy of the vehicle according to the target driving strategy in step S306, the user provides feedback on whether the driving strategy adjustment is accurate through the driving strategy feedback interface. If driving strategy control feedback indicating that the driving strategy control is inaccurate is received, it is necessary to determine which corresponding data from the regional weather characteristics and the target vehicle environment characteristics causes the inaccurate prediction.
[0122] Among them, the method for determining which corresponding data from the regional weather characteristics and the target vehicle environmental characteristics causes the inaccurate prediction can be: only input the regional weather characteristics into the driving strategy prediction model to obtain a predicted first driving strategy, and only input the target vehicle environmental characteristics into the driving strategy prediction model to obtain a predicted second driving strategy; use the driving strategy input by the user that the user considers appropriate as the reference driving strategy, calculate the similarity between the first driving strategy and the reference driving strategy, and use the calculation result as the first prediction accuracy rate; calculate the similarity between the second driving strategy and the reference driving strategy, and use the calculation result as the second prediction accuracy rate, thereby obtaining the first prediction accuracy rate of the first driving strategy predicted only by the regional weather characteristics, and the second prediction accuracy rate of the second driving strategy predicted only by the target vehicle environmental characteristics.
[0123] Among them, the method of adjusting the fusion weight in the embodiment of the present application is divided into two adjustment methods. The first adjustment method is to adjust the fusion weight by comparing the prediction accuracy with the preset accuracy; the second adjustment method is to sort the prediction accuracy and adjust the fusion weight based on the sorting order. The first adjustment method is as follows:
[0124] S308: Adjust the first fusion weight or the second fusion weight based on the first prediction accuracy, the second prediction accuracy, the first preset accuracy, and the second preset accuracy.
[0125] Among them, by comparing the first prediction accuracy with the first preset accuracy, and the second prediction accuracy with the first preset accuracy, it is determined for which feature the first preset accuracy is not reached when predicting the driving strategy; by comparing the first prediction accuracy with the second preset accuracy, and the second prediction accuracy with the second preset accuracy, it is determined for which feature the second preset accuracy is exceeded when predicting the driving strategy. The fusion weight of the data source corresponding to the feature that does not reach the first preset accuracy is reduced; the fusion weight of the data source corresponding to the feature that exceeds the second preset accuracy is increased.
[0126] The second adjustment method is as follows:
[0127] S309: sort the first prediction accuracy and the second prediction accuracy to obtain a sorting order.
[0128] Among them, since the first prediction accuracy rate and the second prediction accuracy rate have different accuracy rates, the first prediction accuracy rate and the second prediction accuracy rate can be sorted to obtain a sorting order.
[0129] For example, if the first prediction accuracy is 80% and the second prediction accuracy is 50%, the sorting order is 1 for the first prediction accuracy and 2 for the second prediction accuracy.
[0130] S310, adjusting a first fusion weight of a first data source corresponding to a first prediction accuracy rate according to a sorting order, and adjusting a second fusion weight of a second data source corresponding to a second prediction accuracy rate.
[0131] Among them, an allocation condition is set, and the allocation condition is used to allocate a first preset fusion weight to the fusion weight of the data source corresponding to the prediction accuracy of the sorting number 1 in the sorting order, and allocate a second preset fusion weight to the fusion weight of the data source corresponding to the prediction accuracy of the sorting number 2, and the first preset fusion weight is greater than the second preset fusion weight.
[0132] For example, the ranking order is that the first prediction accuracy is No. 1 and the second prediction accuracy is No. 2. Then, a weight of 60% is allocated to the first data source corresponding to the first prediction accuracy, and a weight of 40% is allocated to the second data source corresponding to the second prediction accuracy.
[0133] In addition, in addition to user feedback, the embodiments of the present application can also adjust the fusion weight or trigger an alarm through performance monitoring, deploy a high-performance real-time monitoring system, and use sensors and log collection tools to track the system's response time, accuracy, stability and other indicators in real time. Set thresholds and alarm systems, and automatically trigger alarms and notify relevant personnel when performance indicators are lower than expected or abnormal. Continuously collect performance data and user feedback generated during system operation, including response time, accuracy, user satisfaction, etc. Use data analysis tools to regularly analyze the collected data to identify system performance bottlenecks and user experience deficiencies. Based on the analysis results, optimize the model algorithm and data processing process, adjust the system configuration and control strategy, and improve system performance and user experience through software updates or iterative releases.
[0134] The driving strategy control method provided in this embodiment achieves the effect of dynamically adjusting the fusion weight based on the feedback result by adjusting the first fusion weight or the second fusion weight by determining the first prediction accuracy of the first driving strategy predicted only by the regional weather characteristics and the second prediction accuracy of the second driving strategy predicted only by the target vehicle environmental characteristics when the feedback result indicates that the driving strategy control is inaccurate. The first prediction accuracy and the second prediction accuracy can be sorted, and the first fusion weight and the second fusion weight can be adjusted based on the sorting order, thereby realizing dynamic adjustment of the fusion weight.
[0135] See also Figure 5 , Figure 5 : is a flow chart of a driving strategy control method provided by an embodiment of the present application. The specific process of the driving strategy control method can be as follows:
[0136] S401, obtaining weather information of the area where the vehicle is located and a vehicle environment sequence of the vehicle, wherein the vehicle environment sequence is a sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels for an increasing amount of time in the area where the vehicle is located.
[0137] The weather information includes satellite images of the microscopic area where the vehicle is located and weather condition data of the microscopic area. The vehicle can establish a communication connection with a satellite server to obtain satellite images of the microscopic area where it is located from the satellite server, and the vehicle can establish a communication connection with a weather station to obtain weather condition data of the microscopic area where it is located from the weather station. The weather condition data can include specific precipitation distribution and wind speed changes, etc., which are not limited here.
[0138] S402, inputting weather information into a regional weather forecasting model to obtain predicted regional weather characteristics.
[0139] The regional weather prediction model trained in advance is used to make predictions based on weather information to obtain predicted regional weather characteristics. Regional weather characteristics are characteristics that can characterize weather information.
[0140] S403, inputting the vehicle environment sequence into the feature attention model to obtain predicted target vehicle environment features, where the target vehicle environment features are the vehicle environment features in the vehicle environment sequence.
[0141] Among them, the predicted target vehicle environment features are obtained by predicting the vehicle environment sequence through the pre-trained feature attention model. The target vehicle environment features are the vehicle environment features corresponding to the most critical time point in the vehicle environment sequence. The target vehicle environment features are used as the main basis for the subsequent driving strategy prediction.
[0142] S404, obtaining a first fusion weight of the first data source corresponding to the regional weather feature and a second fusion weight of the second data source corresponding to the target vehicle environment feature.
[0143] In the process of feature fusion, it is necessary to combine the fusion weights of the data sources corresponding to each feature. The first fusion weight is the fusion weight set for the first data source to which the feature of regional weather features belongs, and the second fusion weight is the fusion weight set for the second data source to which the feature of target vehicle environment features belongs.
[0144] S405: Based on the first fusion weight and the second fusion weight, the regional weather characteristics and the target vehicle environment characteristics are fused to obtain fusion characteristics.
[0145] The feature fusion method may be to calculate the product of each feature and the corresponding fusion weight to obtain the first calculation result corresponding to each feature, and calculate the sum of the first calculation results corresponding to multiple features to obtain the fusion feature. Alternatively, the product of the first calculation results corresponding to multiple features is calculated to obtain the fusion feature. The specific fusion method is not limited here.
[0146] S406, inputting the fusion features into the driving strategy prediction model to obtain the predicted target driving strategy, and controlling the driving strategy of the vehicle to be updated to the target driving strategy.
[0147] The fusion features used to characterize the regional weather conditions and the vehicle environment conditions are input into the driving strategy prediction model, so that the driving strategy prediction model makes predictions based on the fusion features to obtain a predicted target driving strategy. The target driving strategy is a driving strategy suitable for use under the regional weather characteristics and the vehicle environment conditions predicted by the driving strategy prediction model. The driving strategy of the control vehicle is updated to the target driving strategy, and corresponding functions and / or modes are adjusted according to the target driving strategy.
[0148] S407, receiving driving strategy control feedback, if the driving strategy adjustment feedback indicates that the driving strategy control is inaccurate, determining a first prediction accuracy of a first driving strategy predicted only by regional weather characteristics, and a second prediction accuracy of a second driving strategy predicted only by target vehicle environmental characteristics.
[0149] Among them, the method for determining which corresponding data from the regional weather characteristics and the target vehicle environmental characteristics causes the inaccurate prediction can be: only input the regional weather characteristics into the driving strategy prediction model to obtain a predicted first driving strategy, and only input the target vehicle environmental characteristics into the driving strategy prediction model to obtain a predicted second driving strategy; use the driving strategy input by the user that the user considers appropriate as the reference driving strategy, calculate the similarity between the first driving strategy and the reference driving strategy, and use the calculation result as the first prediction accuracy rate; calculate the similarity between the second driving strategy and the reference driving strategy, and use the calculation result as the second prediction accuracy rate, thereby obtaining the first prediction accuracy rate of the first driving strategy predicted only by the regional weather characteristics, and the second prediction accuracy rate of the second driving strategy predicted only by the target vehicle environmental characteristics.
[0150] S408: If the first prediction accuracy is less than the first preset accuracy, the first fusion weight is reduced according to a preset adjustment step.
[0151] Among them, the method of adjusting the fusion weight in the embodiment of the present application is: adjusting the fusion weight by comparing the prediction accuracy with the preset accuracy.
[0152] If the first prediction accuracy is less than the first preset accuracy, it means that the driving strategy predicted only by the regional weather characteristics has a low accuracy, and the first fusion weight of the first data source corresponding to the regional weather characteristics is reduced. The specific reduction method can refer to the following formula:
[0153] New weight = original weight * (1-α*(preset accuracy - predicted accuracy));
[0154] Among them, α is the preset adjustment step size, and the new first fusion weight = the original first fusion weight * (1-α*(first preset accuracy-first prediction accuracy)).
[0155] S409: If the second prediction accuracy is less than the second preset accuracy, the second fusion weight is reduced according to a preset adjustment step.
[0156] If the second prediction accuracy is less than the second preset accuracy, it means that the driving strategy predicted only by the target vehicle environmental characteristics is of low accuracy, and the second fusion weight of the second data source corresponding to the target vehicle environmental characteristics is reduced. The specific reduction method can refer to the following formula:
[0157] New weight = original weight * (1-α*(preset accuracy - predicted accuracy));
[0158] Then the new second fusion weight = the original second fusion weight * (1-α * (second preset accuracy - second prediction accuracy)).
[0159] S410: If the first prediction accuracy is greater than the second preset accuracy, the first fusion weight is increased according to a preset adjustment step.
[0160] If the first prediction accuracy is greater than the second preset accuracy, it means that the driving strategy predicted only by the regional weather characteristics has a higher accuracy, and the first fusion weight of the first data source corresponding to the regional weather characteristics is increased. The specific improvement method can refer to the following formula:
[0161] New weight = original weight * (1 + α * (prediction accuracy - preset accuracy));
[0162] Among them, α is the preset adjustment step size, and the new first fusion weight = the original first fusion weight * (1 + α * (first prediction accuracy - first preset accuracy)).
[0163] S411, if the second prediction accuracy is greater than the second preset accuracy, the second fusion weight is increased according to the preset adjustment step, and the second preset accuracy is greater than the first preset accuracy.
[0164] If the second prediction accuracy is greater than the second preset accuracy, it means that the driving strategy predicted only by the target vehicle environmental characteristics has a higher accuracy, and the second fusion weight of the second data source corresponding to the target vehicle environmental characteristics is increased. The specific improvement method can refer to the following formula:
[0165] New weight = original weight * (1 + α * (prediction accuracy - preset accuracy));
[0166] Among them, α is the preset adjustment step, and the new second fusion weight = the original second fusion weight * (1 + α * (second prediction accuracy - second preset accuracy)).
[0167] Among them, the embodiment of the present application regularly evaluates and updates the data source to ensure the accuracy and timeliness of the data. For external data sources such as satellite images and meteorological data, monitor their changes and adapt to these changes in a timely manner. Track the updates of the software libraries and development frameworks that are relied on, and upgrade them regularly to take advantage of the latest performance improvements and security fixes. Continuously monitor the predictive performance of the model, use newly collected data to regularly evaluate the model accuracy, and promptly discover the trend of performance degradation. Based on newly collected data and feedback, the model is regularly retrained or fine-tuned to adapt to new weather patterns and driving behavior changes. Implement real-time security monitoring and regular security audits to promptly discover and repair security vulnerabilities. Implement regular data backup strategies, including model parameters, user data, and system configurations to prevent data loss. Develop a fault recovery plan to ensure that services can be quickly restored when the system fails. Clarify the key indicators of system performance, including prediction accuracy, system response time, user satisfaction, etc., which will be used to measure whether the system has achieved the design goals. Setting performance benchmarks aims to clarify the expected goals that the system needs to achieve or the specific parameters that meet specific industry standards to facilitate subsequent performance evaluation. Develop a regular evaluation plan that includes automated testing tools and manual testing methods to ensure that system performance continues to meet or exceed expected standards. Deploy log analysis and performance monitoring tools to monitor system operation status in real time, which helps to quickly discover and resolve any potential problems. Conduct detailed analysis of collected user feedback and system performance data to identify existing problems and potential improvement opportunities. Based on the results of data analysis, develop and implement improvement plans to optimize the user experience and overall performance of the system through iterative updates. Establish a mechanism for continuous learning and adaptation so that the system can flexibly respond to changing user needs and technology development trends.
[0168] The driving strategy control method provided in this embodiment can reduce the corresponding fusion weight according to the preset adjustment step when there is a prediction accuracy rate less than the first preset accuracy rate between the first prediction accuracy rate and the second prediction accuracy rate; and increase the corresponding fusion weight according to the preset adjustment step when there is a prediction accuracy rate greater than the second preset accuracy rate between the first prediction accuracy rate and the second prediction accuracy rate, thereby realizing dynamic adjustment of the fusion weight.
[0169] based on Figure 1 The scene diagram shown below will be combined with Figure 6 , the driving strategy control device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 6 The driving strategy control device in the present application is used to execute Figure 2-Figure 5 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2-Figure 5 The embodiment shown.
[0170] See also Figure 6 , Figure 6 900 is a schematic diagram of the structure of a driving strategy control device provided in an embodiment of the present application. The driving strategy control device 900 can be applied to a vehicle, and the driving strategy control device 900 can include an acquisition unit 901, a first prediction unit 902, a second prediction unit 903, a fusion unit 904, and a control unit 905, as follows:
[0171] An acquisition unit 901 is used to acquire weather information of the area where the vehicle is located, and a vehicle environment sequence of the vehicle, wherein the vehicle environment sequence is a sequence of vehicle environment information corresponding to different time points obtained as the vehicle travels for an increasing amount of time in the area where the vehicle is located;
[0172] The first prediction unit 902 is used to input the weather information into a regional weather prediction model to obtain predicted regional weather characteristics;
[0173] A second prediction unit 903 is used to input the vehicle environment sequence into a feature attention model to obtain predicted target vehicle environment features, where the target vehicle environment features are vehicle environment features in the vehicle environment sequence;
[0174] A fusion unit 904 is used to fuse the regional weather characteristics and the target vehicle environment characteristics to obtain a fusion feature;
[0175] The control unit 905 is used to input the fusion feature into the driving strategy prediction model to obtain the predicted target driving strategy, and control the driving strategy of the vehicle to be updated to the target driving strategy.
[0176] In some implementations, the first prediction unit 902 is specifically configured to:
[0177] Encoding the weather information to obtain distribution parameters of the weather information mapped in a latent space;
[0178] Sampling the distribution parameters to obtain latent variables;
[0179] The latent variables are decoded to obtain predicted regional weather characteristics.
[0180] In some embodiments, the second prediction unit 903 is specifically configured to:
[0181] Calculate the attention score at each time point in the vehicle environment sequence;
[0182] Normalize the attention scores at each time point to get the degree of attention at each time point;
[0183] Filter out the target attention level with the greatest attention level from multiple attention levels;
[0184] The vehicle environment information at the target time point corresponding to the target attention degree is determined as the target vehicle environment feature.
[0185] In some embodiments, the fusion unit 904 is specifically configured to:
[0186] Obtaining a first fusion weight of the regional weather feature corresponding to the first data source, and a second fusion weight of the target vehicle environment feature corresponding to the second data source;
[0187] Based on the first fusion weight and the second fusion weight, the regional weather characteristics and the target vehicle environment characteristics are fused to obtain fusion characteristics.
[0188] In some embodiments, the device is further specifically configured to:
[0189] receiving driving strategy control feedback, and if the driving strategy adjustment feedback indicates that the driving strategy control is inaccurate, determining a first prediction accuracy of a first driving strategy predicted only by the regional weather characteristics, and a second prediction accuracy of a second driving strategy predicted only by the target vehicle environment characteristics;
[0190] Based on the first prediction accuracy, the second prediction accuracy, the first preset accuracy, and the second preset accuracy, the first fusion weight or the second fusion weight is adjusted.
[0191] In some embodiments, the device is further specifically configured to:
[0192] If the first prediction accuracy is less than a first preset accuracy, reducing the first fusion weight according to a preset adjustment step; or
[0193] If the second prediction accuracy is less than a second preset accuracy, reducing the second fusion weight according to a preset adjustment step; or
[0194] If the first prediction accuracy is greater than a second preset accuracy, increasing the first fusion weight according to a preset adjustment step; or
[0195] If the second prediction accuracy is greater than a second preset accuracy, the second fusion weight is increased according to a preset adjustment step, and the second preset accuracy is greater than the first preset accuracy.
[0196] In some embodiments, the device is further specifically configured to:
[0197] Sorting the first prediction accuracy and the second prediction accuracy to obtain a sorting order;
[0198] A first fusion weight of a first data source corresponding to the first prediction accuracy is adjusted according to the sorting order, and a second fusion weight of a second data source corresponding to the second prediction accuracy is adjusted.
[0199] The driving strategy control method provided by the embodiment of the present application predicts the target driving strategy based on the weather information of the area where the vehicle is located, and the vehicle environment sequence consisting of the vehicle environment information corresponding to different time points obtained by the vehicle in the area as the driving time increases. Thus, the driving strategy of the vehicle in the micro area where it is located is determined according to the weather conditions of the micro area and the vehicle environment sequence of the vehicle environment information around the vehicle, thereby improving the accuracy of the driving strategy adjustment. The regional weather characteristics of the area can be predicted based on the regional weather information, thereby obtaining the weather characteristics in the area, refining the granularity of the driving strategy prediction, and improving the accuracy of the driving strategy adjustment. By predicting the vehicle environment sequence consisting of multiple vehicle environment information, the target vehicle environment characteristics that need to be paid attention to are determined therefrom, which are used as the basis for subsequent driving strategy prediction, thereby improving the accuracy of the driving strategy adjustment. By setting a first fusion weight for the first data source corresponding to the regional weather characteristics, and setting a second fusion weight for the second data source corresponding to the target vehicle environment characteristics, when the regional weather characteristics and the target vehicle environment characteristics are fused, the fusion characteristics obtained by fusion are more focused on the characteristics corresponding to a certain data source according to the fusion weight, thereby improving the accuracy of the driving strategy adjustment. When the feedback result indicates that the driving strategy control is inaccurate, the first fusion weight or the second fusion weight is adjusted by determining the first prediction accuracy of the first driving strategy predicted only by the regional weather characteristics and the second prediction accuracy of the second driving strategy predicted only by the target vehicle environmental characteristics, so as to achieve the effect of dynamically adjusting the fusion weight based on the feedback result. When the first prediction accuracy and the second prediction accuracy have a prediction accuracy less than the first preset accuracy, the corresponding fusion weight can be reduced according to the preset adjustment step; and when the first prediction accuracy and the second prediction accuracy have a prediction accuracy greater than the second preset accuracy, the corresponding fusion weight can be increased according to the preset adjustment step, so as to achieve dynamic adjustment of the fusion weight. The first prediction accuracy and the second prediction accuracy can be sorted, and the first fusion weight and the second fusion weight can be adjusted based on the sorting order, so as to achieve dynamic adjustment of the fusion weight.
[0200] See also Figure 7 , Figure 7 1 is a schematic diagram of a vehicle structure provided by an embodiment of the present application. The vehicle 1000 includes a processor 1001 and a memory 1002. The processor 1001 is electrically connected to the memory 1002.
[0201] The processor 1001 is the control center of the vehicle 1000 and may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts of the entire vehicle 1000, and executes various functions and processes data of the vehicle 1000 by running or calling computer programs stored in the memory 1002, and calling data stored in the memory 1002, so as to control the vehicle 1000 as a whole. Optionally, the processor 1001 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 1001 may integrate one or a combination of a CPU, a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1001, but may be implemented separately through a communication chip.
[0202] The memory 1002 can be used to store software programs and modules, and the processor 1001 executes various functional applications and data processing by running the computer programs and modules stored in the memory 1002. The memory 1002 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, a computer program required for at least one function, etc.; the data storage area can store data created according to the use of the vehicle 1000, etc.
[0203] In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.
[0204] In the embodiment of the present application, the processor 1001 in the vehicle 1000 will load instructions corresponding to the processes of one or more computer programs into the memory 1002 according to the following steps, and the processor 1001 will run the computer program stored in the memory 1002 to implement various functions, as follows:
[0205] Acquire weather information of the area where the vehicle is located, and a vehicle environment sequence of the vehicle, wherein the vehicle environment sequence is a sequence of vehicle environment information corresponding to different time points obtained as the vehicle travels for an increasing amount of time in the area where the vehicle is located;
[0206] Inputting the weather information into a regional weather prediction model to obtain predicted regional weather characteristics;
[0207] Inputting the vehicle environment sequence into a feature attention model to obtain predicted target vehicle environment features, wherein the target vehicle environment features are vehicle environment features in the vehicle environment sequence;
[0208] Fusion of the regional weather features and the target vehicle environment features to obtain fusion features;
[0209] The fusion feature is input into a driving strategy prediction model to obtain a predicted target driving strategy, and the driving strategy of the vehicle is controlled to be updated to the target driving strategy.
[0210] Optionally, when the processor 1001 inputs the weather information into the regional weather prediction model to obtain predicted regional weather characteristics, it specifically performs:
[0211] Encoding the weather information to obtain distribution parameters of the weather information mapped in a latent space;
[0212] Sampling the distribution parameters to obtain latent variables;
[0213] The latent variables are decoded to obtain predicted regional weather characteristics.
[0214] Optionally, when the processor 1001 inputs the vehicle environment sequence into the feature attention model to obtain the predicted target vehicle environment feature, it specifically executes:
[0215] Calculate the attention score at each time point in the vehicle environment sequence;
[0216] Normalize the attention scores at each time point to get the degree of attention at each time point;
[0217] Filter out the target attention level with the greatest attention level from multiple attention levels;
[0218] The vehicle environment information at the target time point corresponding to the target attention degree is determined as the target vehicle environment feature.
[0219] Optionally, when the processor 1001 performs the fusion of the regional weather feature and the target vehicle environment feature to obtain the fusion feature, the processor 1001 specifically performs:
[0220] Obtaining a first fusion weight of the regional weather feature corresponding to the first data source, and a second fusion weight of the target vehicle environment feature corresponding to the second data source;
[0221] Based on the first fusion weight and the second fusion weight, the regional weather characteristics and the target vehicle environment characteristics are fused to obtain fusion characteristics.
[0222] Optionally, after executing the control to update the driving strategy of the vehicle to the target driving strategy, the processor 1001 specifically executes:
[0223] receiving driving strategy control feedback, and if the driving strategy adjustment feedback indicates that the driving strategy control is inaccurate, determining a first prediction accuracy of a first driving strategy predicted only by the regional weather characteristics, and a second prediction accuracy of a second driving strategy predicted only by the target vehicle environment characteristics;
[0224] Based on the first prediction accuracy, the second prediction accuracy, the first preset accuracy, and the second preset accuracy, the first fusion weight or the second fusion weight is adjusted.
[0225] Optionally, when the processor 1001 adjusts the first fusion weight or the second fusion weight based on the first prediction accuracy, the second prediction accuracy, the first preset accuracy, and the second preset accuracy, the processor 1001 specifically performs:
[0226] If the first prediction accuracy is less than a first preset accuracy, reducing the first fusion weight according to a preset adjustment step; or
[0227] If the second prediction accuracy is less than a second preset accuracy, reducing the second fusion weight according to a preset adjustment step; or
[0228] If the first prediction accuracy is greater than a second preset accuracy, increasing the first fusion weight according to a preset adjustment step; or
[0229] If the second prediction accuracy is greater than a second preset accuracy, the second fusion weight is increased according to a preset adjustment step, and the second preset accuracy is greater than the first preset accuracy.
[0230] Optionally, the processor 1001 further specifically performs:
[0231] Sorting the first prediction accuracy and the second prediction accuracy to obtain a sorting order;
[0232] A first fusion weight of a first data source corresponding to the first prediction accuracy is adjusted according to the sorting order, and a second fusion weight of a second data source corresponding to the second prediction accuracy is adjusted.
[0233] The embodiment of the present application obtains the weather information of the area where the vehicle is located, and the vehicle environment sequence of the vehicle, wherein the vehicle environment sequence is a sequence of vehicle environment information corresponding to different time points obtained by the vehicle in the area with the increase of driving time; the weather information is input into the regional weather prediction model to obtain the predicted regional weather characteristics; the vehicle environment sequence is input into the feature attention model to obtain the predicted target vehicle environment characteristics, wherein the target vehicle environment characteristics are the vehicle environment characteristics in the vehicle environment sequence; the regional weather characteristics and the target vehicle environment characteristics are fused to obtain the fused characteristics; the fused characteristics are input into the driving strategy prediction model to obtain the predicted target driving strategy, and the driving strategy of the vehicle is controlled to be updated to the target driving strategy. The target driving strategy is predicted based on the weather information of the area where the vehicle is located, and the vehicle environment sequence of vehicle environment information corresponding to different time points obtained by the vehicle in the area with the increase of driving time. Thus, the driving strategy of the vehicle in the microscopic area where it is located is determined according to the weather conditions in the microscopic area and the vehicle environment sequence of the vehicle environment information around the vehicle, thereby improving the accuracy of the driving strategy adjustment.
[0234] See also Figure 8 , Figure 8 1 is a schematic diagram of a vehicle structure provided by an embodiment of the present application. The vehicle 1000 may include: a processor 1001, a memory 1002, a sensor 1003 and a power supply 1004. The processor 1001 is electrically connected to the sensor 1003 and the power supply 1004 respectively.
[0235] The sensor 1003 is used to collect information of the vehicle 1000 itself, the user's information, or the external environment information. For example, the sensor 1003 may include one or more of radar sensors, vibration sensors, temperature sensors, distance sensors, magnetic field sensors, light sensors, acceleration sensors, fingerprint sensors, Hall sensors, position sensors, gyroscopes, inertial sensors, attitude sensors, barometers, heart rate sensors, and the like.
[0236] The power supply 1004 is used to supply power to various components of the vehicle 1000. In some embodiments, the power supply 1004 may be logically connected to the processor 1001 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions.
[0237] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned driving strategy control method, and thus can achieve the same effect as the above-mentioned implementation method.
[0238] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing relevant program codes, etc.
[0239] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0240] In addition, the device provided in the embodiment of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a driving strategy control method provided in the above embodiment.
[0241] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a driving strategy control method provided in the above-mentioned embodiment.
[0242] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement a driving strategy control method provided by the above embodiment.
[0243] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0244] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0245] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or 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. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0246] The above contents are only specific implementation methods of the present application, but the protection scope 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 scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A driving strategy control method, characterized in that: Applied to a vehicle, the method comprises: Acquire weather information of the area where the vehicle is located, and a vehicle environment sequence of the vehicle, wherein the vehicle environment sequence is a sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels for an increasing amount of time in the area where the vehicle is located, and the weather information includes a satellite image of the microscopic area where the vehicle is located and weather condition data of the microscopic area; Inputting the weather information into a regional weather prediction model to obtain predicted regional weather characteristics; Inputting the vehicle environment sequence into a feature attention model to obtain predicted target vehicle environment features, wherein the target vehicle environment features are vehicle environment features in the vehicle environment sequence; Fusion of the regional weather features and the target vehicle environment features to obtain fusion features; Inputting the fusion feature into a driving strategy prediction model to obtain a predicted target driving strategy, and controlling the driving strategy of the vehicle to be updated to the target driving strategy; The step of inputting the vehicle environment sequence into a feature attention model to obtain predicted target vehicle environment features includes: Calculating an attention score at each time point in the vehicle environment sequence; Normalize the attention scores at each time point to get the degree of attention at each time point; Filter out the target attention level with the greatest attention level from multiple attention levels; The vehicle environment information at the target time point corresponding to the target attention degree is determined as the target vehicle environment feature.
2. The method according to claim 1, characterized in that The step of inputting the weather information into a regional weather prediction model to obtain predicted regional weather characteristics includes: Encoding the weather information to obtain distribution parameters of the weather information mapped in a latent space; Sampling the distribution parameters to obtain latent variables; The latent variables are decoded to obtain predicted regional weather characteristics.
3. The method according to claim 1, characterized in that The fusing of the regional weather features and the target vehicle environment features to obtain fused features includes: Obtaining a first fusion weight of the regional weather feature corresponding to the first data source, and a second fusion weight of the target vehicle environment feature corresponding to the second data source; Based on the first fusion weight and the second fusion weight, the regional weather characteristics and the target vehicle environment characteristics are fused to obtain fusion characteristics.
4. The method according to claim 3, characterized in that After the driving strategy of controlling the vehicle is updated to the target driving strategy, the method further includes: receiving driving strategy control feedback, and if the driving strategy adjustment feedback indicates that the driving strategy control is inaccurate, determining a first prediction accuracy of a first driving strategy predicted only by the regional weather characteristics, and a second prediction accuracy of a second driving strategy predicted only by the target vehicle environment characteristics; Based on the first prediction accuracy, the second prediction accuracy, the first preset accuracy, and the second preset accuracy, the first fusion weight or the second fusion weight is adjusted.
5. The method according to claim 4, characterized in that The adjusting the first fusion weight or the second fusion weight based on the first prediction accuracy, the second prediction accuracy, the first preset accuracy, and the second preset accuracy includes: If the first prediction accuracy is less than a first preset accuracy, reducing the first fusion weight according to a preset adjustment step; or If the second prediction accuracy is less than a second preset accuracy, reducing the second fusion weight according to a preset adjustment step; or If the first prediction accuracy is greater than a second preset accuracy, increasing the first fusion weight according to a preset adjustment step; or If the second prediction accuracy is greater than a second preset accuracy, the second fusion weight is increased according to a preset adjustment step, and the second preset accuracy is greater than the first preset accuracy.
6. The method according to claim 4, characterized in that The method further comprises: Sorting the first prediction accuracy and the second prediction accuracy to obtain a sorting order; A first fusion weight of a first data source corresponding to the first prediction accuracy is adjusted according to the sorting order, and a second fusion weight of a second data source corresponding to the second prediction accuracy is adjusted.
7. A driving strategy control device, characterized in that: Applied to a vehicle, the device comprises: an acquisition unit, configured to acquire weather information of the area where the vehicle is located, and a vehicle environment sequence of the vehicle, wherein the vehicle environment sequence is a sequence consisting of vehicle environment information corresponding to different time points obtained as the vehicle travels for an increasing amount of time in the area where the vehicle is located, and the weather information includes a satellite image of a microscopic area where the vehicle is located and weather condition data of the microscopic area; A first prediction unit, configured to input the weather information into a regional weather prediction model to obtain predicted regional weather characteristics; A second prediction unit is used to input the vehicle environment sequence into a feature attention model to obtain a predicted target vehicle environment feature, where the target vehicle environment feature is a vehicle environment feature in the vehicle environment sequence; A fusion unit, used for fusing the regional weather characteristics and the target vehicle environment characteristics to obtain a fusion feature; A control unit, used for inputting the fusion feature into a driving strategy prediction model to obtain a predicted target driving strategy, and controlling the driving strategy of the vehicle to be updated to the target driving strategy; The second prediction unit is specifically configured to: Calculate the attention score at each time point in the vehicle environment sequence; Normalize the attention scores at each time point to get the degree of attention at each time point; Filter out the target attention level with the greatest attention level from multiple attention levels; The second prediction unit is further used to determine the vehicle environment information at the target time point corresponding to the target attention degree as the target vehicle environment feature.
8. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method for providing forecast, involves detecting information about weather from multiple systems distributed on earth, which are designed for converting energy
CN102608676A
Intelligent driving control system and method for vehicle
CN107650911A
