Route planning method and device, storage medium and vehicle
By determining the network signal strength data, environmental data and vehicle data in all directions from the vehicle's current position to the destination in the smart car, preprocessing and data fusion are performed, and input into the network signal strength prediction model to determine the target route and solve the problem of intelligent The problem of unstable network signals in cars in complex environments improves driving safety and efficiency.
Patent Information
- Application Number
- CN202410848786.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
AI Technical Summary
Smart cars face problems of unstable network signals and incomplete coverage in complex geographical environments, which affects vehicle performance and driving safety.
By determining the network signal strength data, environmental data and vehicle data in all directions from the vehicle's current position to the destination, preprocessing and data fusion are performed, and input into the pre-generated network signal strength prediction model to determine the target route and ensure that the vehicle is driving Have a stable network signal during the process.
It improves the safety and efficiency of vehicle driving, ensuring that the vehicle always maintains good communication status on the target route, and the efficiency of network signal strength prediction is greatly improved, taking into account multiple factors to obtain accurate prediction results.
Smart Images

Figure CN118730152A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a route planning method, device, storage medium and vehicle. Background Art
[0002] Under the current trend of intelligence and electrification, the automotive industry is undergoing a revolutionary change. Smart cars, as the core product of this change, have become a benchmark for the development of the industry. However, with the in-depth development of technology, the challenges faced by smart cars are becoming increasingly prominent, especially in terms of ensuring the quality of network signals.
[0003] Network signals are a key factor in achieving efficient navigation and stable communication for smart cars, and their quality directly affects the performance and safety of vehicles. Due to the complexity and diversity of geographical conditions, network signals often face problems such as instability and incomplete coverage, which not only limits the full play of vehicle functions, but may also threaten the driver's life safety at critical moments. Therefore, how to improve the quality of vehicle network signals and ensure that they can maintain good communication status in various environments has become an urgent need for the development of the industry. Summary of the invention
[0004] In view of this, the present invention aims to propose a route planning method, device, storage medium and vehicle, which determine the target route according to the network signal strength corresponding to all directions, thereby ensuring that the vehicle has a stable network signal and a comprehensive network signal coverage while driving on the target route, so that the vehicle can maintain a good communication state while driving on the target route, thereby improving the safety and efficiency of vehicle driving.
[0005] According to a first aspect of the present invention, a route planning method is provided, the method comprising:
[0006] Determine all directions from the vehicle's current location to the destination;
[0007] Obtaining network signal strength data, environmental data, and vehicle data corresponding to each of the directions;
[0008] Preprocessing the network signal strength data, the environment data, and the vehicle data respectively to obtain the processed network signal strength data, the processed environment data, and the processed vehicle data corresponding to all directions respectively;
[0009] Performing data fusion on the processed network signal strength data, the processed environment data, and the processed vehicle data respectively to obtain fused data corresponding to all directions;
[0010] Inputting the fused data corresponding to each of the directions into a pre-generated network signal strength prediction model to obtain the network signal strength corresponding to each of the directions;
[0011] The target route is determined according to the network signal strengths corresponding to all the directions.
[0012] Optionally, the preprocessing the network signal strength data, the environment data, and the vehicle data respectively to obtain the processed network signal strength data, the processed environment data, and the processed vehicle data corresponding to all directions respectively includes:
[0013] Performing missing value processing on the network signal strength data, the environment data, and the vehicle data respectively, to obtain the network signal strength data after missing value processing, the environment data after missing value processing, and the vehicle data after missing value processing;
[0014] Outlier processing is performed on the network signal strength data after missing value processing, the environmental data after missing value processing, and the vehicle data after missing value processing, respectively, to obtain the processed network signal strength data, the processed environmental data, and the processed vehicle data.
[0015] Optionally, before the step of determining all directions from the current position of the vehicle to the destination, the method includes:
[0016] Acquire a sample data set, wherein the sample data set includes multiple sets of network signal strength data, environmental data, and vehicle data;
[0017] Preprocessing each set of the network signal strength data, the environment data, and the vehicle data in the sample data set respectively to obtain multiple sets of processed network signal strength data, the environment data, and the vehicle data;
[0018] Performing data fusion on each group of processed network signal strength data, environmental data, and vehicle data to obtain multiple groups of fused data;
[0019] Performing data labeling on each group of the fused data respectively to obtain labeling information of each group of the fused data, wherein the labeling information is used to indicate the network signal strength of the fused data;
[0020] Using each group of the fused data and the annotation information of each group of the fused data, a target sample data set is obtained;
[0021] The target sample data set is divided into a target training sample data set, a target verification sample data set and a target test sample data set.
[0022] Optionally, after the step of dividing the target sample data set into a data set to obtain a target training sample data set, a target verification sample data set, and a target test sample data set, the method includes:
[0023] Get target hyperparameters;
[0024] Inputting the target hyperparameter, the fused data in the target training sample data set, and the labeling information of the fused data into a first initial model, training the first initial model, and obtaining the trained first initial model and the labeling information output by the trained first initial model;
[0025] Inputting the fused data in the target test sample data set into the first initial model after training, testing the first initial model after training, and obtaining the first initial model after testing and performance evaluation index data corresponding to the first initial model after testing;
[0026] When the performance evaluation index data meets the preset conditions, it is determined that the training of the first initial model after the test is completed, and the trained first initial model is determined as the network signal strength prediction model.
[0027] Optionally, obtaining the target hyperparameters includes:
[0028] Pre-set multiple sets of candidate hyperparameters;
[0029] For any set of candidate hyperparameters, the fused data in the target training sample data set, the labeling information of the fused data, and the candidate hyperparameters are input into a second initial model, and the second initial model is trained to obtain the trained second initial model and the labeling information output by each of the trained second initial model;
[0030] Inputting the fused data in the target verification sample data set into a plurality of trained second initial models respectively, verifying the trained second initial models, and obtaining a plurality of sets of performance evaluation index data corresponding to the respective verified second initial models and labeling information output by the respective verified second initial models;
[0031] Determine the target hyperparameter from the multiple groups of candidate hyperparameters according to the multiple groups of performance evaluation indicator data corresponding to each of the second initial models after verification.
[0032] Optionally, determining the target route according to the network signal strengths corresponding to all directions includes:
[0033] If there is a direction with the highest network signal strength among the network signal strengths corresponding to all the directions, the route from the current position of the vehicle to the destination along the direction is determined as the target route.
[0034] Optionally, determining the target route according to the network signal strengths corresponding to all directions includes:
[0035] If there are at least two directions with the highest network signal strengths among the network signal strengths corresponding to all the directions, obtaining the deviations between the at least two directions with the highest network signal strengths and the destination respectively;
[0036] According to the degree of deviation, the direction with the smallest degree of deviation is determined as the target direction, and the route from the current position of the vehicle to the destination according to the target direction is determined as the target route.
[0037] According to a second aspect of the present invention, a route planning device is provided, the device comprising:
[0038] A direction determination module is used to determine all directions from the vehicle's current position to the destination;
[0039] A data acquisition module, used to acquire network signal strength data, environmental data and vehicle data corresponding to each of the directions;
[0040] A data preprocessing module, used to preprocess the network signal strength data, the environment data and the vehicle data respectively, to obtain the processed network signal strength data, the processed environment data and the processed vehicle data corresponding to all directions respectively;
[0041] A data fusion module, used to fuse the processed network signal strength data, the processed environment data and the processed vehicle data respectively, to obtain fused data corresponding to all directions;
[0042] A network signal strength prediction model processing module, used to input the fused data corresponding to each of the directions into a pre-generated network signal strength prediction model to obtain the network signal strength corresponding to each of the directions;
[0043] The target route determination module is used to determine the target route according to the network signal strengths corresponding to all the directions.
[0044] Optionally, the data preprocessing module includes:
[0045] a missing value processing submodule, used to perform missing value processing on the network signal strength data, the environmental data and the vehicle data respectively, to obtain the network signal strength data after missing value processing, the environmental data after missing value processing and the vehicle data after missing value processing;
[0046] The outlier processing submodule is used to perform outlier processing on the network signal strength data after missing value processing, the environmental data after missing value processing, and the vehicle data after missing value processing, respectively, to obtain the processed network signal strength data, the processed environmental data, and the processed vehicle data.
[0047] Optionally, the device comprises:
[0048] A sample data set acquisition module, used to acquire a sample data set, wherein the sample data set includes multiple sets of network signal strength data, environmental data, and vehicle data;
[0049] A sample data set preprocessing module, used to preprocess each group of the network signal strength data, environmental data and vehicle data in the sample data set to obtain multiple groups of processed network signal strength data, environmental data and vehicle data;
[0050] A sample data set fusion module is used to fuse each group of processed network signal strength data, environmental data and vehicle data to obtain multiple groups of fused data;
[0051] A data annotation module, used to perform data annotation on each group of the fused data respectively to obtain annotation information of each group of the fused data, wherein the annotation information is used to indicate the network signal strength of the fused data;
[0052] A target sample data set determination module, used to obtain a target sample data set by using each group of fused data and the annotation information of each group of fused data;
[0053] The target sample data set division module is used to divide the target sample data set into data sets to obtain a target training sample data set, a target verification sample data set and a target test sample data set.
[0054] Optionally, the device comprises:
[0055] A target hyperparameter acquisition module is used to obtain target hyperparameters;
[0056] A model training module, used for inputting the target hyperparameter, the fused data in the target training sample data set, and the annotation information of the fused data into a first initial model, training the first initial model, and obtaining the trained first initial model and the annotation information output by the trained first initial model;
[0057] A model testing module, used for inputting the fused data in the target test sample data set into the first initial model after training, testing the first initial model after training, and obtaining the first initial model after testing and performance evaluation index data corresponding to the first initial model after testing;
[0058] The network signal strength prediction model determination module is used to determine that the training of the first initial model after the test is completed when the performance evaluation index data meets the preset conditions, and determine the trained first initial model as the network signal strength prediction model.
[0059] Optionally, the target hyperparameter acquisition module includes:
[0060] The candidate hyperparameter setting submodule is used to pre-set multiple sets of candidate hyperparameters;
[0061] A model training submodule, for any set of candidate hyperparameters, inputting the fused data in the target training sample data set, the labeling information of the fused data, and the candidate hyperparameters into a second initial model, training the second initial model, and obtaining the trained second initial model and the labeling information output by each of the trained second initial model;
[0062] A model verification submodule, used to input the fused data in the target verification sample data set into a plurality of trained second initial models, verify the trained second initial models, and obtain performance evaluation index data corresponding to each of the plurality of groups of verified second initial models and labeling information output by each of the verified second initial models;
[0063] The target hyperparameter determination submodule is used to determine the target hyperparameter from the multiple groups of candidate hyperparameters according to the performance evaluation indicator data corresponding to each of the multiple groups of verified second initial models.
[0064] Optionally, the target route determination module includes:
[0065] The first target route determination submodule is used to determine the route from the current position of the vehicle to the destination in the direction as the target route if there is a direction with the highest network signal strength among the network signal strengths corresponding to all the directions.
[0066] Optionally, the target route determination module includes:
[0067] a deviation determination submodule, configured to obtain the deviations between the at least two directions with the highest network signal strengths and the destination if there are at least two directions with the highest network signal strengths among the network signal strengths corresponding to all the directions;
[0068] The second target route determination submodule is used to determine the direction with the smallest deviation as the target direction according to the deviation, and determine the route from the current position of the vehicle to the destination according to the target direction as the target route.
[0069] According to a third aspect of the present invention, there is provided a storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the route planning method as described in any one of the first aspect are implemented.
[0070] According to a fourth aspect of the present invention, there is provided a vehicle, comprising the route planning device according to the second aspect of the present invention.
[0071] A route planning method provided by an embodiment of the present invention determines all directions from the current position of the vehicle to the destination; obtains network signal strength data, environmental data and vehicle data corresponding to each of the directions; pre-processes the network signal strength data, environmental data and vehicle data respectively to obtain processed network signal strength data, processed environmental data and processed vehicle data corresponding to each of the directions; fuses the processed network signal strength data, processed environmental data and processed vehicle data respectively to obtain fused data corresponding to each of the directions; inputs the fused data corresponding to each of the directions into a pre-generated network signal strength prediction model to obtain the network signal strength corresponding to each of the directions; and determines the target route according to the network signal strength corresponding to each of the directions. The present invention determines the target route according to the network signal strength corresponding to each of the directions, thereby ensuring that the vehicle has a stable network signal and a comprehensive network signal coverage during driving along the target route, so that the vehicle can always maintain a good communication state when driving along the target route, thereby improving the safety and efficiency of vehicle driving. The present invention predicts the network signal strength in each direction through a pre-generated network signal strength prediction model. It only needs to input the fused data of each direction into the network signal strength prediction model, and the network signal strength prediction model can automatically output the network signal strength corresponding to each direction, greatly improving the efficiency of network signal strength prediction. The fused data in the present invention includes network signal strength information, terrain complexity information, and vehicle status information. The network signal strength prediction model predicts the network signal strength based on the fused data, and can take into account the influence of multiple factors such as network signal strength information, terrain complexity information, and vehicle status information, thereby making the prediction result of the network signal strength prediction model more accurate. Furthermore, it can make the determined target route not only safe and feasible, but also have the best network signal.
[0072] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0074] Figure 1 This is one of the step flow charts of a route planning method provided by an embodiment of the present invention;
[0075] Figure 2 This is a second step flow chart of a route planning method provided by an embodiment of the present invention;
[0076] Figure 3 This is a flowchart of the steps of a route planning method provided by an embodiment of the present invention;
[0077] Figure 4 This is a fourth step flow chart of a route planning method provided by an embodiment of the present invention;
[0078] Figure 5 This is a flowchart of the steps of a route planning method provided by an embodiment of the present invention;
[0079] Figure 6 This is a sixth step flow chart of a route planning method provided by an embodiment of the present invention;
[0080] Figure 7 It is a device block diagram of a route planning device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0081] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0082] The terms "first", "second", etc. in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0083] In conjunction with the accompanying drawings, a route planning method, device, storage medium and vehicle provided by an embodiment of the present invention are described in detail below through specific embodiments and application scenarios.
[0084] See also Figure 1 , Figure 1A flowchart of a route planning method provided in an embodiment of the present invention is provided. The route planning method is particularly suitable for off-road scenarios, but is not limited to this single scenario. The route planning method includes the following steps:
[0085] Step 101, determine all directions from the current position of the vehicle to the destination.
[0086] It should be noted that, in the embodiment of the present invention, there are multiple directions between the current position of the vehicle and the destination, and the network signal strength in each direction is different. In order to evaluate the network signal strength in each direction, it is first necessary to determine all directions between the current position of the vehicle and the destination.
[0087] Specifically, the current position of the vehicle is obtained through the navigation system. After the current position of the vehicle is obtained, the coordinates or name of the destination is entered into the navigation system. If the destination is a known location, it can be directly selected from the database of the navigation system. The navigation system will determine all directions between the current position of the vehicle and the coordinates or name of the destination based on the current position of the vehicle and the coordinates or name of the destination.
[0088] Step 102, obtaining network signal strength data, environmental data, and vehicle data corresponding to all directions.
[0089] It should be noted that in an embodiment of the present invention, after all directions from the current position of the vehicle to the destination are determined, the network signal strength data, environmental data and vehicle data corresponding to each direction from the current position of the vehicle to the destination are obtained respectively, and finally the network signal strength data, environmental data and vehicle data corresponding to all directions from the current position of the vehicle to the destination can be obtained.
[0090] Among them, network signal strength data can be monitored and recorded in real time during vehicle driving by using a signal detector or mobile phone application. Network signal strength data can reflect the stability of the network signal, which is crucial for choosing the best route.
[0091] Environmental data includes topography, landforms, vegetation cover, weather conditions, etc., which can be obtained using public geographic information system (GIS) data, remote sensing data, and environmental monitoring data. Specifically, GIS data provides topography and landform information, remote sensing data provides vegetation cover and surface features, and environmental monitoring data provides real-time weather conditions. These data help understand the characteristics of the environment and predict potential driving obstacles.
[0092] Vehicle data includes vehicle speed, vehicle body tilt angle, vehicle interior temperature, vehicle exterior temperature, etc. These vehicle data can be obtained through the vehicle-mounted sensor group. Specifically, the vehicle speed is obtained through the vehicle speed sensor, the vehicle body tilt angle is obtained through the tilt sensor, and the vehicle interior temperature and vehicle exterior temperature are obtained through the temperature sensor. These data are helpful in evaluating the stability and comfort of the vehicle and whether the driving strategy needs to be adjusted.
[0093] Step 103 , pre-processing the network signal strength data, the environment data and the vehicle data respectively, to obtain processed network signal strength data, processed environment data and processed vehicle data corresponding to all directions respectively.
[0094] It should be noted that in an embodiment of the present invention, after obtaining the network signal strength data, environmental data and vehicle data corresponding to all directions, in order to improve the quality of the network signal strength data, environmental data and vehicle data corresponding to all directions, make the network signal strength data, environmental data and vehicle data corresponding to all directions cleaner and more reliable, and ensure the accuracy and reliability of the network signal strength prediction model in analyzing and processing these data, it is necessary to pre-process the network signal strength data, environmental data and vehicle data corresponding to each direction respectively, and obtain the processed network signal strength data, processed environmental data and processed vehicle data corresponding to each direction, and then obtain the processed network signal strength data, processed environmental data and processed vehicle data corresponding to all directions.
[0095] Step 104 , respectively fuse the processed network signal strength data, the processed environment data, and the processed vehicle data to obtain fused data corresponding to all directions.
[0096] It should be noted that in an embodiment of the present invention, the processed network signal strength data, the processed environmental data and the processed vehicle data each provide network signal strength information, terrain complexity information and vehicle status information. In order to provide a more comprehensive and accurate data basis for subsequent network signal strength prediction model analysis and processing, it is necessary to fuse the network signal strength data, environmental data and vehicle data corresponding to each direction respectively to obtain the fused data corresponding to each direction, and then obtain the fused data corresponding to all directions.
[0097] Step 105: Input the fused data corresponding to all directions into a pre-generated network signal strength prediction model to obtain the network signal strength corresponding to all directions.
[0098] It should be noted that, in the embodiment of the present invention, the pre-generated network signal strength prediction model is a prediction model that can predict the fusion data corresponding to each direction and determine the network signal strength corresponding to each direction.
[0099] After obtaining the fused data corresponding to all directions, the fused data corresponding to each direction is used as the input of a pre-generated network signal strength prediction model, and is input into the network signal strength prediction model to obtain the network signal strength corresponding to each direction.
[0100] The fused data corresponding to all directions are respectively input into a pre-generated network signal strength prediction model, so as to obtain the network signal strength corresponding to all directions.
[0101] Step 106, determining the target route according to the network signal strengths corresponding to all directions.
[0102] It should be noted that in an embodiment of the present invention, after obtaining the network signal strengths corresponding to all directions, the target route is determined according to the network signal strengths corresponding to all directions. The determined target route has a stable network signal and a comprehensive network signal, so that the vehicle can always maintain a good communication state when driving on the target route, thereby improving the safety and efficiency of vehicle driving.
[0103] In addition, the developed user interface can also display the recommended target route and network signal coverage, and the developed user interface can also provide an emergency rescue function.
[0104] The present invention determines the target route according to the network signal strength corresponding to each direction, ensuring that the vehicle has a stable network signal and a comprehensive network signal when driving on the target route, so that the vehicle can always maintain a good communication state when driving on the target route, improving the safety and efficiency of vehicle driving. The present invention predicts the network signal strength in each direction through a pre-generated network signal strength prediction model. It only needs to input the fusion data of each direction into the network signal strength prediction model, and the network signal strength prediction model can automatically output the network signal strength corresponding to each direction, greatly improving the efficiency of network signal strength prediction. The fusion data in the present invention includes network signal strength information, terrain complexity information and vehicle status information. The network signal strength prediction model predicts the network signal strength according to the fusion data, and can take into account the influence of multiple factors such as network signal strength information, terrain complexity information and vehicle status information, thereby making the prediction result of the network signal strength prediction model more accurate. Further, it can make the determined target route not only safe and feasible, but also have the best network signal.
[0105] Further, in an embodiment of the present invention, if Figure 2 As shown, step 103 may also include the following steps:
[0106] Step 201 , performing missing value processing on network signal strength data, environmental data and vehicle data respectively, to obtain network signal strength data processed with missing values, environmental data processed with missing values and vehicle data processed with missing values.
[0107] It should be noted that in the embodiment of the present invention, the presence of missing values in the network signal strength data, environmental data and vehicle data will cause the network signal strength data, environmental data and vehicle data to be incomplete, affecting the accuracy of the subsequent network signal strength prediction model analysis and processing of these data.
[0108] Therefore, in order to ensure the integrity of network signal strength data, environmental data and vehicle data, it is necessary to process missing values for network signal strength data, environmental data and vehicle data respectively, and obtain missing value processed network signal strength data, missing value processed environmental data and missing value processed vehicle data. Among them, the missing value processing method may include deleting records with missing values, filling missing values with mean or median, filling missing values with interpolation, etc.
[0109] Step 202 , performing outlier processing on the network signal strength data after missing value processing, the environmental data after missing value processing, and the vehicle data after missing value processing, respectively, to obtain processed network signal strength data, processed environmental data, and processed vehicle data.
[0110] It should be noted that in the embodiment of the present invention, the presence of outliers in the network signal strength data, environmental data and vehicle data will distort the distribution of the data, resulting in poor data quality, and will cause the network signal strength prediction model to overfit, affecting the prediction accuracy of the network signal strength prediction model.
[0111] Therefore, in order to improve the quality of network signal strength data, environmental data and vehicle data, and ensure the prediction accuracy and reliability of the network signal strength prediction model, after obtaining the network signal strength data after missing value processing, the environmental data after missing value processing and the vehicle data after missing value processing, it is necessary to perform outlier processing on the network signal strength data after missing value processing, the environmental data after missing value processing and the vehicle data after missing value processing, respectively, to obtain the processed network signal strength data, the processed environmental data and the processed vehicle data. Among them, the outlier processing method can include replacing the outlier with the mean, median, etc., and replacing the outlier with an interpolation method (such as linear interpolation, polynomial interpolation).
[0112] The present invention can ensure the integrity and accuracy of network signal strength data, environmental data and vehicle data by performing missing value processing and outlier processing on network signal strength data, environmental data and vehicle data, improve the quality of these data, and further ensure the accuracy and reliability of subsequent network signal strength prediction model analysis and processing of these data.
[0113] Further, in an embodiment of the present invention, if Figure 3 As shown, before step 101, the following steps may also be included:
[0114] Step 301, obtaining a sample data set, the sample data set including multiple sets of network signal strength data, environmental data and vehicle data.
[0115] It should be noted that, in the embodiment of the present invention, multiple sets of network signal strength data, environmental data and vehicle data are obtained. The multiple sets of network signal strength data, environmental data and vehicle data are integrated to obtain a sample data set.
[0116] Step 302 , pre-processing each set of network signal strength data, environment data, and vehicle data in the sample data set to obtain multiple sets of processed network signal strength data, environment data, and vehicle data.
[0117] Step 303 , respectively fuse each set of processed network signal strength data, environmental data, and vehicle data to obtain multiple sets of fused data.
[0118] It should be noted that in the embodiment of the present invention, each set of network signal strength data, environmental data and vehicle data in the sample data set is preprocessed to obtain each set of processed network signal strength data, environmental data and vehicle data, and then multiple sets of processed network signal strength data, environmental data and vehicle data included in the sample data set can be obtained. The preprocessing method includes missing value processing and outlier processing.
[0119] After completing the preprocessing of the sample data set, data fusion is performed on each set of processed network signal strength data, environmental data, and vehicle data in the sample data set to obtain the fused data corresponding to each set of processed network signal strength data, environmental data, and vehicle data, thereby obtaining multiple sets of fused data included in the sample data set.
[0120] Step 304 , respectively annotate each group of fused data to obtain annotation information of each group of fused data, wherein the annotation information is used to indicate the network signal strength of the fused data.
[0121] It should be noted that in an embodiment of the present invention, each group of fused data in the sample data set is annotated to obtain annotation information for each group of fused data, and the annotation information indicates the network signal strength corresponding to the fused data. For example: there are four categories of network signal strength, namely strong, medium, weak, and no signal. When annotating the fused data, the fused data can be annotated as A, B, C, and D. A, B, C, and D are the annotation information. A indicates that the network signal strength is strong, B indicates that the network signal strength is medium, C indicates that the network signal strength is weak, and D indicates that the network signal strength is no signal.
[0122] Step 305 , using each set of fused data and the annotation information of each set of fused data, to obtain a target sample data set.
[0123] It should be noted that, in the embodiment of the present invention, each set of fused data and the annotation information corresponding to each set of fused data are integrated to obtain the target sample data set.
[0124] Step 306 , dividing the target sample data set into a target training sample data set, a target verification sample data set, and a target test sample data set.
[0125] It should be noted that, in the embodiment of the present invention, after obtaining the target sample data set, the target sample data set is divided into data sets according to a ratio to obtain a target training sample data set, a target verification sample data set, and a target test sample data set. For example, there are 1000 sample data in the target sample data set, and the target sample data set is divided into data sets according to a ratio of 8:1:1, wherein 800 sample data constitute the target training sample data set, 100 sample data constitute the target verification sample data set, and 100 sample data constitute the target test sample data set.
[0126] The present invention obtains a target sample data set and divides the target sample data set into a target training sample data set, a target verification sample data set and a target test sample data set. This not only enables the model to be trained, but also enables the model to be tested and verified after training, thereby ensuring the stability and reliability of the model in practical applications and reducing the risks caused by poor model performance.
[0127] Further, in an embodiment of the present invention, if Figure 4 As shown, after step 306, the following steps may also be included:
[0128] Step 401, obtaining target hyperparameters.
[0129] Step 402: input the target hyperparameters, the fused data in the target training sample data set, and the annotation information of the fused data into the first initial model, train the first initial model, and obtain the trained first initial model and the annotation information output by the trained first initial model.
[0130] It should be noted that, in the embodiment of the present invention, after the target hyperparameter is determined, the target hyperparameter is directly obtained. The target hyperparameter, the fused data in the target training sample data set, and the annotation information of the fused data are used as inputs of the first initial model, input into the first initial model, and the first initial model is trained to obtain the trained first initial model and the annotation information output by the trained first initial model.
[0131] Step 403: input the fused data in the target test sample data set into the trained first initial model, test the trained first initial model, and obtain the tested first initial model and performance evaluation index data corresponding to the tested first initial model.
[0132] It should be noted that, in the embodiment of the present invention, the performance evaluation index data of the model may include accuracy, precision, recall rate, etc.
[0133] After completing the training of the first initial model, the fused data in the target test sample data set is used as the input of the trained first initial model, and is input into the trained first initial model. The trained first initial model is tested to obtain the tested first initial model and performance evaluation index data corresponding to the tested first initial model.
[0134] Step 404: When the performance evaluation index data meets the preset conditions, it is determined that the training of the first initial model after the test is completed, and the trained first initial model is determined as the network signal strength prediction model.
[0135] It should be noted that, in the embodiment of the present invention, after obtaining the performance evaluation index data corresponding to the first initial model after the test, the performance evaluation index data corresponding to the first initial model after the test are compared with the preset threshold value. If the performance evaluation index data corresponding to the first initial model after the test can reach the preset threshold value, it means that the performance evaluation index data meets the preset conditions, then it is determined that the training of the first initial model after the test is completed, and the trained first initial model is determined as the network signal strength prediction model.
[0136] The present invention inputs the target hyperparameters, the fused data in the target training sample data set and the annotation information thereof into the first initial model for training, which helps the first initial model to learn the key features in the fused data and improve the prediction ability of the first initial model; the trained first initial model is tested using the target test sample data set, which can evaluate the generalization ability and prediction accuracy of the trained first initial model and ensure the performance of the trained first initial model on unknown data; by evaluating whether the performance evaluation index data meets the preset conditions, it can be judged whether the trained first initial model meets the preset performance requirements, thereby determining whether the trained first initial model is trained; finally, the trained first initial model that meets the conditions is determined as a network signal strength prediction model, which provides accurate data support for vehicle route planning and navigation and improves the safety and efficiency of vehicle driving.
[0137] Further, in an embodiment of the present invention, if Figure 5 As shown, step 401 may further include the following steps:
[0138] Step 501, pre-set multiple groups of candidate hyperparameters.
[0139] It should be noted that, in the embodiments of the present invention, the hyperparameters of the model have an important impact on the performance, complexity, structure and generalization ability of the model, wherein the hyperparameters of the model include penalty parameters, gamma parameters, convolution layer parameters, pooling layer parameters, fully connected layer parameters, learning rate, etc. In order to select a set of optimal hyperparameters, it is first necessary to determine the possible value range of each hyperparameter respectively, and combine the possible value ranges of all hyperparameters to obtain multiple sets of candidate hyperparameters.
[0140] Step 502, for any set of candidate hyperparameters, the fused data in the target training sample data set, the annotation information of the fused data, and the candidate hyperparameters are input into the second initial model, the second initial model is trained, and the trained second initial model and the annotation information output by the trained second initial model are obtained.
[0141] It should be noted that in an embodiment of the present invention, for any group of candidate hyperparameters among the multiple groups of candidate hyperparameters, the fused data, the annotation information of the fused data, and the candidate hyperparameters in the target training sample data set are used as inputs of the second initial model, input into the second initial model, and the second initial model is trained to obtain the trained second initial model and the annotation information output by the trained second initial model.
[0142] The above-mentioned training process of the second initial model is executed for each set of candidate hyperparameters in the multiple sets of candidate hyperparameters. The number of second initial models trained is the same as the number of sets of candidate hyperparameters, and the number of trained second initial models and the labeling information of the fusion data output by each of the trained second initial models can be obtained.
[0143] Step 503, input the fused data in the target verification sample data set into multiple trained second initial models respectively, verify the trained second initial models, and obtain the performance evaluation index data corresponding to each of the multiple groups of verified second initial models and the labeling information output by each of the verified second initial models.
[0144] It should be noted that, in the embodiment of the present invention, the performance evaluation index data of the model may include accuracy, precision, recall rate, etc.
[0145] The fused data in the target verification sample data set is used as the input of the multiple trained second initial models obtained in step 502, and is respectively input into the multiple trained second initial models, and the multiple trained second initial models are verified to obtain the performance evaluation index data corresponding to each of the multiple groups of verified second initial models and the labeling information output by each of the verified second initial models.
[0146] Step 504 , determining a target hyperparameter from multiple groups of candidate hyperparameters according to the performance evaluation indicator data corresponding to each of the multiple groups of verified second initial models.
[0147] It should be noted that, in the embodiment of the present invention, after obtaining the performance evaluation index data corresponding to each of the multiple verified second initial models, the average value can be calculated for each group of performance evaluation index data corresponding to the verified second initial model, and the average value of multiple performance evaluation index data can be obtained. The average values of the multiple performance evaluation index data are compared, and a group of candidate hyperparameters corresponding to the maximum average value is selected as the target hyperparameters.
[0148] The present invention evaluates the performance evaluation index data of the model under different candidate hyperparameters through cross-validation, and then determines the target hyperparameters, so that the determined target hyperparameters help to improve the performance of the model, the prediction accuracy of the model and the reliability of the model.
[0149] Furthermore, in an embodiment of the present invention, step 106 may also include the following steps: if there is a direction with the highest network signal strength among the network signal strengths corresponding to all directions, the route from the current position of the vehicle to the destination according to the direction is determined as the target route.
[0150] It should be noted that, in the embodiment of the present invention, after determining the network signal strengths corresponding to all directions, the network signal strengths corresponding to all directions are sorted from strong to weak according to the network signal strengths. If there is only one direction with the highest network signal strength among the network signal strengths corresponding to all directions, the route from the current position of the vehicle to the destination in the direction with the highest network signal strength is determined as the target route.
[0151] The present invention determines the route from the vehicle's current position to the destination in the direction of the highest network signal strength as the target route, thereby ensuring that the vehicle has the best network signal communication conditions during driving along the target route, thereby improving the stability and reliability of vehicle communications.
[0152] Further, in an embodiment of the present invention, if Figure 6 As shown, step 106 may further include the following steps:
[0153] Step 601: If there are at least two directions with the highest network signal strengths among the network signal strengths corresponding to all directions, then obtain the deviations between the at least two directions with the highest network signal strengths and the destination.
[0154] It should be noted that in an embodiment of the present invention, if there are at least two directions with the same network signal strength and the highest network signal strength among the network signal strengths corresponding to all directions, that is, there are at least two directions with the highest network signal strength, then the deviation between the at least two directions with the highest network signal strength and the destination is obtained.
[0155] Specifically, the geographic coordinates of one or more reference points in each direction with the highest network signal strength are obtained respectively, and the reference points may be specific landmarks or other known locations, etc. The deviation may be a straight-line distance. After obtaining the geographic coordinates of the reference points, the straight-line distances between the reference points in each direction with the highest network signal strength and the destination are calculated respectively. This can be achieved by calculating the Euclidean distance between the reference points and the destination. The deviation between each direction with the highest network signal strength and the destination can be determined, and then the deviation between at least two directions with the highest network signal strength and the destination can be obtained.
[0156] Step 602: According to the deviation, the direction with the smallest deviation is determined as the target direction, and the route from the current position of the vehicle to the destination according to the target direction is determined as the target route.
[0157] It should be noted that, in the embodiment of the present invention, after determining the deviations between at least two directions with the highest network signal strength and the destination, all the obtained deviations are compared to determine the minimum deviation. The direction corresponding to the minimum deviation is determined as the target direction, and the route from the current position of the vehicle to the destination according to the target direction is determined as the target route.
[0158] The present invention calculates the deviations between multiple directions with the highest network signal strength and the destination when there are multiple directions with the highest network signal strength, and selects the direction with the smallest deviation as the target direction, thereby determining the target route. This ensures that the selected target route not only has a high network signal strength but is also as close to the destination as possible, thereby improving not only the communication stability of the vehicle but also the driving efficiency of the vehicle.
[0159] The second embodiment of the present invention relates to a route planning device, the device block diagram of which is as follows: Figure 7 As shown, including:
[0160] Direction determination module 701, used to determine all directions from the current position of the vehicle to the destination;
[0161] The data acquisition module 702 is used to acquire network signal strength data, environmental data and vehicle data corresponding to all directions;
[0162] The data preprocessing module 703 is used to preprocess the network signal strength data, the environment data and the vehicle data respectively to obtain the processed network signal strength data, the processed environment data and the processed vehicle data corresponding to all directions respectively;
[0163] The data fusion module 704 is used to fuse the processed network signal strength data, the processed environment data and the processed vehicle data to obtain the fused data corresponding to all directions;
[0164] The network signal strength prediction model processing module 705 is used to input the fused data corresponding to all directions into the pre-generated network signal strength prediction model to obtain the network signal strength corresponding to all directions;
[0165] The target route determination module 706 is used to determine the target route according to the network signal strengths corresponding to all directions.
[0166] Optionally, the data preprocessing module includes:
[0167] a missing value processing submodule, used to perform missing value processing on the network signal strength data, the environmental data and the vehicle data respectively, to obtain the network signal strength data after missing value processing, the environmental data after missing value processing and the vehicle data after missing value processing;
[0168] The outlier processing submodule is used to perform outlier processing on the network signal strength data after missing value processing, the environmental data after missing value processing, and the vehicle data after missing value processing, respectively, to obtain the processed network signal strength data, the processed environmental data, and the processed vehicle data.
[0169] Optionally, the device comprises:
[0170] A sample data set acquisition module, used to acquire a sample data set, wherein the sample data set includes multiple sets of network signal strength data, environmental data, and vehicle data;
[0171] A sample data set preprocessing module, used to preprocess each group of the network signal strength data, environmental data and vehicle data in the sample data set to obtain multiple groups of processed network signal strength data, environmental data and vehicle data;
[0172] A sample data set fusion module is used to fuse each group of processed network signal strength data, environmental data and vehicle data to obtain multiple groups of fused data;
[0173] A data annotation module, used to perform data annotation on each group of the fused data respectively to obtain annotation information of each group of the fused data, wherein the annotation information is used to indicate the network signal strength of the fused data;
[0174] A target sample data set determination module, used to obtain a target sample data set by using each group of fused data and the annotation information of each group of fused data;
[0175] The target sample data set division module is used to divide the target sample data set into data sets to obtain a target training sample data set, a target verification sample data set and a target test sample data set.
[0176] Optionally, the device comprises:
[0177] A target hyperparameter acquisition module is used to obtain target hyperparameters;
[0178] A model training module, used for inputting the target hyperparameter, the fused data in the target training sample data set, and the annotation information of the fused data into a first initial model, training the first initial model, and obtaining the trained first initial model and the annotation information output by the trained first initial model;
[0179] A model testing module, used for inputting the fused data in the target test sample data set into the first initial model after training, testing the first initial model after training, and obtaining the first initial model after testing and performance evaluation index data corresponding to the first initial model after testing;
[0180] The network signal strength prediction model determination module is used to determine that the training of the first initial model after the test is completed when the performance evaluation index data meets the preset conditions, and determine the trained first initial model as the network signal strength prediction model.
[0181] Optionally, the target hyperparameter acquisition module includes:
[0182] The candidate hyperparameter setting submodule is used to pre-set multiple sets of candidate hyperparameters;
[0183] A model training submodule, for any set of candidate hyperparameters, inputting the fused data in the target training sample data set, the labeling information of the fused data, and the candidate hyperparameters into a second initial model, training the second initial model, and obtaining the trained second initial model and the labeling information output by each of the trained second initial model;
[0184] A model verification submodule, used to input the fused data in the target verification sample data set into a plurality of trained second initial models, verify the trained second initial models, and obtain performance evaluation index data corresponding to each of the plurality of groups of verified second initial models and labeling information output by each of the verified second initial models;
[0185] The target hyperparameter determination submodule is used to determine the target hyperparameter from the multiple groups of candidate hyperparameters according to the performance evaluation indicator data corresponding to each of the multiple groups of verified second initial models.
[0186] Optionally, the target route determination module includes:
[0187] The first target route determination submodule is used to determine the route from the current position of the vehicle to the destination in the direction as the target route if there is a direction with the highest network signal strength among the network signal strengths corresponding to all the directions.
[0188] Optionally, the target route determination module includes:
[0189] a deviation determination submodule, configured to obtain the deviations between the at least two directions with the highest network signal strengths and the destination if there are at least two directions with the highest network signal strengths among the network signal strengths corresponding to all the directions;
[0190] The second target route determination submodule is used to determine the direction with the smallest deviation as the target direction according to the deviation, and determine the route from the current position of the vehicle to the destination according to the target direction as the target route.
[0191] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0192] A third embodiment of the present invention relates to a storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the route planning method described in the first aspect are implemented.
[0193] A fourth embodiment of the present invention provides a vehicle, the vehicle comprising the route planning device according to the second aspect of the present invention.
[0194] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0195] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0196] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
Claims
1. A route planning method, characterized in that: The method comprises: Determine all directions from the vehicle's current location to the destination; Obtaining network signal strength data, environmental data, and vehicle data corresponding to each of the directions; Preprocessing the network signal strength data, the environment data, and the vehicle data respectively to obtain the processed network signal strength data, the processed environment data, and the processed vehicle data corresponding to all directions respectively; Performing data fusion on the processed network signal strength data, the processed environment data, and the processed vehicle data respectively to obtain fused data corresponding to all directions; Inputting the fused data corresponding to each of the directions into a pre-generated network signal strength prediction model to obtain the network signal strength corresponding to each of the directions; The target route is determined according to the network signal strengths corresponding to all the directions.
2. The method according to claim 1, characterized in that: The preprocessing of the network signal strength data, the environment data and the vehicle data respectively to obtain the processed network signal strength data, the processed environment data and the processed vehicle data corresponding to all directions respectively comprises: Performing missing value processing on the network signal strength data, the environment data, and the vehicle data respectively, to obtain the network signal strength data after missing value processing, the environment data after missing value processing, and the vehicle data after missing value processing; Outlier processing is performed on the network signal strength data after missing value processing, the environmental data after missing value processing, and the vehicle data after missing value processing, respectively, to obtain the processed network signal strength data, the processed environmental data, and the processed vehicle data.
3. The method according to claim 1, characterized in that Prior to the step of determining all directions from the current position of the vehicle to the destination, the method comprises: Acquire a sample data set, wherein the sample data set includes multiple sets of network signal strength data, environmental data, and vehicle data; Preprocessing each set of the network signal strength data, the environment data, and the vehicle data in the sample data set respectively to obtain multiple sets of processed network signal strength data, the environment data, and the vehicle data; Performing data fusion on each group of processed network signal strength data, environmental data, and vehicle data to obtain multiple groups of fused data; Performing data labeling on each group of the fused data respectively to obtain labeling information of each group of the fused data, wherein the labeling information is used to indicate the network signal strength of the fused data; Using each group of fused data and the annotation information of each group of fused data, a target sample data set is obtained; The target sample data set is divided into a target training sample data set, a target verification sample data set and a target test sample data set.
4. The method according to claim 3, characterized in that After the step of dividing the target sample data set into a data set to obtain a target training sample data set, a target verification sample data set, and a target test sample data set, the method includes: Get target hyperparameters; Inputting the target hyperparameter, the fused data in the target training sample data set, and the labeling information of the fused data into a first initial model, training the first initial model, and obtaining the trained first initial model and the labeling information output by the trained first initial model; Inputting the fused data in the target test sample data set into the first initial model after training, testing the first initial model after training, and obtaining the first initial model after testing and performance evaluation index data corresponding to the first initial model after testing; When the performance evaluation index data meets the preset conditions, it is determined that the training of the first initial model after the test is completed, and the trained first initial model is determined as the network signal strength prediction model.
5. The method according to claim 4, characterized in that The obtaining of target hyper parameters comprises: Pre-set multiple sets of candidate hyperparameters; For any set of candidate hyperparameters, the fused data in the target training sample data set, the labeling information of the fused data, and the candidate hyperparameters are input into a second initial model, and the second initial model is trained to obtain the trained second initial model and the labeling information output by each of the trained second initial model; Inputting the fused data in the target verification sample data set into a plurality of trained second initial models respectively, verifying the trained second initial models, and obtaining a plurality of sets of performance evaluation index data corresponding to the respective verified second initial models and labeling information output by the respective verified second initial models; Determine the target hyperparameter from the multiple groups of candidate hyperparameters according to the performance evaluation indicator data corresponding to each of the multiple groups of verified second initial models.
6. The method according to claim 1, characterized in that Determining the target route according to the network signal strengths corresponding to all directions includes: If there is a direction with the highest network signal strength among the network signal strengths corresponding to all the directions, the route from the current position of the vehicle to the destination along the direction is determined as the target route.
7. The method according to claim 1, characterized in that Determining the target route according to the network signal strengths corresponding to all directions includes: If there are at least two directions with the highest network signal strengths among the network signal strengths corresponding to all the directions, obtaining the deviations between the at least two directions with the highest network signal strengths and the destination respectively; According to the degree of deviation, the direction with the smallest degree of deviation is determined as the target direction, and the route from the current position of the vehicle to the destination according to the target direction is determined as the target route.
8. A route planning device, characterized in that: The device comprises: A direction determination module is used to determine all directions from the vehicle's current position to the destination; A data acquisition module, used to acquire network signal strength data, environmental data and vehicle data corresponding to each of the directions; A data preprocessing module, used to preprocess the network signal strength data, the environment data and the vehicle data respectively, to obtain the processed network signal strength data, the processed environment data and the processed vehicle data corresponding to all directions respectively; A data fusion module, used to fuse the processed network signal strength data, the processed environment data and the processed vehicle data respectively, to obtain fused data corresponding to all directions; A network signal strength prediction model processing module, used to input the fused data corresponding to each of the directions into a pre-generated network signal strength prediction model to obtain the network signal strength corresponding to each of the directions; The target route determination module is used to determine the target route according to the network signal strengths corresponding to all the directions.
9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the route planning method according to any one of claims 1 to 7 are implemented.
10. A vehicle, characterized in that: Includes the route planning device as claimed in claim 8.
