A model training method, a confidence reasoning method, an electronic device, and a computer-readable storage medium

By separating factor sets with different correlations to positioning confidence, constructing multiple factor sequences and labeled information, and training a target confidence inference model, the problems of low positioning accuracy and poor generalization caused by single-source positioning information are solved, and high-precision positioning assessment in complex environments is achieved.

CN123135085APending Publication Date: 2026-11-20GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510652413.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The reliance on single-source positioning information in existing technologies results in low accuracy and poor generalization of positioning reliability calculation methods, making it difficult to effectively evaluate the accuracy of vehicle positioning results in complex and ever-changing road driving environments.

Method used

By evaluating the positioning environment based on historical vehicle positioning data, a first set of factors with high correlation to positioning confidence and a second set of factors with low correlation are separated. Statistical calculations and judgment analyses are performed on these two types of factors to construct multiple factor sequences and annotation information, and a target confidence inference model is trained to improve positioning accuracy and generalization performance.

Benefits of technology

It improves the accuracy and generalization performance of real-time positioning data in complex and ever-changing road environments, ensuring the accuracy of vehicle route planning and safety decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123135085A_ABST
    Figure CN123135085A_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a model training method, a confidence reasoning method, an electronic device and a computer readable storage medium, and relates to the technical field of model training and automatic driving. The method comprises: performing positioning environment evaluation calculation based on historical positioning data of a vehicle to obtain a first factor set and a second factor set; performing statistical calculation according to the first factor set to obtain first labeling information; performing determination analysis based on the second factor set and driving performance data of the vehicle to determine second labeling information; constructing training data by using the first factor set, the second factor set, the first labeling information and the second labeling information; and training an initial confidence reasoning model by using the training data to obtain a target confidence reasoning model. The application solves the technical problems of low accuracy and poor generalization of the positioning confidence calculation method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of model training technology and autonomous driving technology, and in particular to a model training method, a confidence inference method, a driving decision method, a model training device, a confidence inference device, a system, an electronic device, and a computer-readable storage medium. Background Technology

[0002] Autonomous driving technology often relies on high-precision positioning technology to correct vehicle positioning in specific scenarios (such as highway navigation). However, during actual vehicle operation, various factors frequently limit the accuracy of high-precision positioning results. Therefore, evaluating the positioning reliability of the results has become a pressing issue in this field.

[0003] In related technologies, a single confidence calculation method is usually used to evaluate the location reliability of the positioning results. This method relies on single-source positioning information, which not only leads to low accuracy of location reliability, but is also easily affected by external factors, making it difficult to apply to complex and ever-changing road driving environments. The generalization ability of the location reliability calculation method is poor.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This application provides a model training method, a confidence inference method, an electronic device, and a computer-readable storage medium, aiming to improve the technical problems in related technologies that rely on single-source positioning information, resulting in low accuracy and poor generalization of location confidence calculation methods.

[0006] According to one aspect of the embodiments of this application, a model training method is provided, comprising: performing a positioning environment assessment calculation based on historical positioning data of a vehicle to obtain a first factor set and a second factor set, wherein the correlation between the first factor set and positioning reliability is higher than the correlation between the second factor set and positioning reliability; performing statistical calculations based on the first factor set to obtain first annotation information; performing judgment analysis based on the second factor set and the vehicle's driving performance data to determine second annotation information; constructing training data using the first factor set, the second factor set, the first annotation information, and the second annotation information, wherein the training data includes multiple factor sequences and historical positioning reliability; and using the training data, wherein a target confidence inference model is used to infer and determine the real-time positioning reliability corresponding to the real-time positioning data of the vehicle.

[0007] The model training method provided in this application achieves the following technical effects: By performing positioning environment assessment calculations on the vehicle's historical positioning data, multiple factors related to positioning reliability are obtained. These factors are then divided into a first set of factors with relatively high correlation to positioning reliability and a second set of factors with relatively low correlation to positioning reliability, which helps to subsequently consider the impact of the first and second set of factors on historical positioning reliability. Furthermore, statistical calculations are automatically performed based on the first set of factors to obtain first annotation information, reducing the cost of data annotation. Judgment analysis is performed based on the second set of factors and the vehicle's driving performance data to determine second annotation information. Subsequently, a multi-factor sequence is constructed using the first and second set of factors, and a historical positioning reliability is constructed using the first and second annotation information. Historical location reliability not only comprehensively considers multi-source location information, but also distinguishes between the first and second factor sets to obtain first and second annotation information respectively. This allows for a more accurate consideration of the impact of multiple factors on historical location reliability, improving its accuracy and thus enhancing the accuracy of the training data. Furthermore, using this training data to train the initial confidence inference model enables the target confidence inference model to learn more accurately the correlation between multiple factor sequences and location reliability. This allows the target confidence inference model to more accurately infer and determine the real-time location reliability corresponding to the vehicle's real-time location data in complex and ever-changing road driving environments, improving the accuracy of real-time location reliability and enhancing the generalization performance of the target confidence inference model. Therefore, the embodiments of this application achieve the goal of constructing more accurate training data by combining the first annotation information and the second annotation information, and using the training data to train a target confidence inference model with higher accuracy and better generalization performance. This achieves the technical effect of enhancing the accuracy and generalization performance of the target confidence inference model, and overcomes the defects of using only single-source positioning information as training data, which leads to low inference accuracy of the target confidence inference model and the inability to infer and determine the real-time positioning confidence corresponding to the real-time positioning data in complex and ever-changing road driving environments. Thus, it solves the technical problem in related technologies that rely on single-source positioning information, resulting in low accuracy and poor generalization of positioning confidence calculation methods.

[0008] According to another aspect of the embodiments of this application, a confidence inference method is also provided, comprising: acquiring real-time positioning data of a vehicle; performing positioning environment assessment calculation based on the real-time positioning data to obtain a multi-factor sequence; and using a target confidence inference model to perform inference calculation on the multi-factor sequence to obtain real-time positioning confidence; wherein the target confidence inference model is trained by employing any of the above-mentioned model training methods.

[0009] According to another aspect of the embodiments of this application, an electronic device is also provided, including a processor and a memory, wherein the memory is used to store a computer program; and the processor is used to execute the program stored in the memory to implement the method of any of the above.

[0010] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and when the computer program is executed by a processor, it implements the method of any one of the above. Attached Figure Description

[0011] Figure 1 This is a flowchart of a model training method provided in one embodiment of this application;

[0012] Figure 2 This is a flowchart of an optional method for calculating multiple sets of residual data, provided in one embodiment of this application;

[0013] Figure 3 This is a schematic diagram of an optional model training method provided in one embodiment of this application;

[0014] Figure 4 This is a flowchart of an optional model training method provided in one embodiment of this application;

[0015] Figure 5 This is a flowchart of an optional confidence inference method provided in one embodiment of this application;

[0016] Figure 6 This is a schematic diagram of an optional confidence inference method provided in one embodiment of this application;

[0017] Figure 7 This is a flowchart of another optional confidence inference method provided in one embodiment of this application;

[0018] Figure 8 This is a structural block diagram of a model training device provided in one embodiment of this application;

[0019] Figure 9 This is a structural block diagram of a confidence inference device provided in one embodiment of this application;

[0020] Figure 10 This is a structural block diagram of an autonomous driving control system provided in one embodiment of this application;

[0021] Figure 11 This is a structural block diagram of an electronic device provided in one embodiment of this application;

[0022] Figure 12 This is a structural block diagram of a vehicle provided in one embodiment of this application;

[0023] Figure 13 This is a hardware structure block diagram of a computing terminal provided in one embodiment of this application. Detailed Implementation

[0024] To make the technical problems, technical solutions, and beneficial effects solved by this application clearer, the following detailed description is provided in conjunction with embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] Example 1

[0027] This application provides a model training method; please refer to the embodiments provided. Figure 1 This includes the following steps:

[0028] S10: Based on the vehicle's historical positioning data, a positioning environment assessment calculation is performed to obtain a first factor set and a second factor set. The first factor set has a higher correlation with the positioning reliability than the second factor set.

[0029] S20: Perform statistical calculations based on the first factor set to obtain the first annotation information;

[0030] S30: Based on the second factor set and the vehicle's driving performance data, a judgment analysis is performed to determine the second annotation information;

[0031] S40: Construct training data using the first factor set, the second factor set, the first annotation information, and the second annotation information. The training data includes multiple factor sequences and historical location reliability.

[0032] S50: The initial confidence inference model is trained using training data to obtain the target confidence inference model, wherein the target confidence inference model is used to infer and determine the real-time positioning confidence corresponding to the real-time positioning data of the vehicle.

[0033] The aforementioned historical location data can be collected from the vehicle's onboard sensors or mapping systems. This historical location data can also be obtained through a predefined vehicle historical location dataset. The aforementioned onboard sensors may include, but are not limited to: visual sensors (e.g., cameras), radar sensors, laser sensors, inertial sensors, rotation sensors (e.g., Hall effect sensors), speed sensors, acceleration sensors, angular velocity sensors, temperature sensors, and humidity sensors. The aforementioned mapping systems may include, but are not limited to: standard-precision mapping systems, high-precision mapping systems, mobile client mapping systems, and cloud-based mapping systems.

[0034] The aforementioned historical positioning data may include historical sensor data and historical map data. The historical sensor data may be data in the vehicle coordinate system. This historical sensor data may include, but is not limited to: visual semantic information, inertial measurement unit information, chassis information, temperature data, and humidity data. The aforementioned visual semantic information may include, but is not limited to: lane line perception, stop line perception, ground marking perception, and traffic light perception. The aforementioned inertial measurement unit information may include: three-axis (i.e., X-axis, Y-axis, Z-axis) acceleration information in the vehicle coordinate system, three-axis angular velocity information in the vehicle coordinate system, zero-bias information along the X-axis, Y-axis, and Z-axis in the vehicle coordinate system. The aforementioned chassis information may include, but is not limited to: vehicle gear information, pulse signals corresponding to each of the four wheels, and wheel speed signals corresponding to each of the four wheels. The aforementioned historical map data may be data in the global coordinate system. This historical map data may include, but is not limited to: map lane lines, map stop lines, map ground markings, map traffic lights, and map road availability information (e.g., whether there are maintenance sections on the driving road).

[0035] The aforementioned location reliability refers to the accuracy of the positioning result obtained during the vehicle positioning process. This location reliability can be used to measure the deviation between the output position of the positioning algorithm and the actual position. The correlation degree of the aforementioned location reliability can be obtained using correlation degree calculation methods. These correlation degree calculation methods may include, but are not limited to: statistical analysis methods, calculation methods based on deep learning models (e.g., decision tree models, random forest models, cluster analysis models, etc.), and calculation methods based on a pre-defined correlation degree table. The location reliability can be a numerical expression within a confidence interval; specifically, the confidence interval can be set to [0, 1], where 0 represents the lowest location reliability and 1 represents the highest location reliability.

[0036] It should be noted that the higher the correlation between a factor and the location reliability, the greater the influence of that factor on the calculation of location reliability; conversely, the lower the correlation between a factor and the location reliability, the smaller the influence of that factor on the calculation of location reliability.

[0037] Based on the vehicle's historical positioning data, various environmental conditions and vehicle state features related to positioning reliability are obtained from the historical positioning data. Positioning environment assessment calculations are performed on these environmental conditions and vehicle state features related to positioning reliability to obtain multiple factors. According to the correlation degree calculation method, the correlation degree between each factor and positioning reliability is obtained. Based on the correlation degree between each factor and positioning reliability, a first factor set and a second factor set are obtained. The correlation degree between the first factor set and positioning reliability is higher than that between the second factor set and positioning reliability.

[0038] The aforementioned first set of factors can be factors that directly and objectively reflect the performance of the positioning algorithm and the quality of sensor data. This first set of factors may include, but is not limited to: reprojection factors, matching ratio factors, relative motion factors, and sensor data quality factors. The aforementioned second set of factors can be factors that indirectly affect the performance of the positioning algorithm under specific environmental conditions. This second set of factors may include, but is not limited to: road structure factors, map area factors, and climate influence factors.

[0039] It should be noted that if a factor belongs to the first set of factors, it can be considered a factor with strong influence; if a factor belongs to the second set of factors, it can be considered a factor with weak influence.

[0040] It is easy to understand that in this embodiment of the application, the positioning environment assessment calculation is performed based on the vehicle's historical positioning data, and multiple factors related to positioning reliability are distinguished to obtain a first factor set and a second factor set. This helps to more accurately consider the impact of multiple factors on historical positioning reliability in the subsequent training, thereby improving the accuracy of historical positioning reliability in the training data and laying the foundation for obtaining a highly accurate target confidence inference model in the subsequent training.

[0041] The aforementioned first annotation information can be obtained through automatic annotation. This first annotation information can be location reliability level information or location reliability assessment value. This first annotation information can be calculated using mathematical operations or machine learning models. The aforementioned mathematical operations can include, but are not limited to: direct addition, averaging, weighted averaging, and error normality calculation.

[0042] The aforementioned driving performance data can be used to reflect the dynamic behavior and response of a vehicle in a specific environment. This driving performance data may include, but is not limited to: vehicle driving status (e.g., steering angle, sideslip, body vibration amplitude) and vehicle handling indicators (e.g., driver intervention frequency).

[0043] The aforementioned second annotation information may be identification information reflecting potential risks or anomalies in the positioning environment. This second annotation information can be used to indicate whether the first annotation information needs to be corrected. The second annotation information may be a continuous (e.g., any number between 0 and 1) score value, or a binarized (e.g., 0 or 1) value. This second annotation information can be obtained through anomaly detection methods. These anomaly detection methods may include, but are not limited to: using anomaly detection calculation models for anomaly detection, and manual anomaly detection.

[0044] The system automatically calculates scores for multiple factors within the first factor set, then statistically calculates a comprehensive score. This comprehensive score can be directly used as the first annotation information, reducing data annotation costs. Further, based on the second factor set and vehicle driving performance data, anomaly detection methods are used for analysis (e.g., cross-referencing and logically judging factors in the second factor set with vehicle driving performance data) to identify scenarios that may reduce location reliability, thereby generating corresponding second annotation information. For example, when a slippery road surface is detected and the vehicle shows slight signs of skidding, the second annotation information is set to a risk score between 0 and 1.

[0045] It should be noted that in the process of obtaining the first annotation information, the comprehensive score obtained by statistically calculating the scores of each factor can also be converted into first annotation information that is easy for machines to understand and use, such as mapping continuous confidence score intervals to discrete level labels.

[0046] The aforementioned multi-factor sequence can refer to sequence data combining a first factor set and a second factor set. This multi-factor sequence can be obtained by combining the first and second factor sets according to a preset combination order. The aforementioned historical location reliability can be determined using the first and second annotation information.

[0047] By organizing the multiple factors contained in the first factor set and the multiple factors contained in the second factor set to form sequence data (i.e., a multi-factor sequence), more comprehensive data information can be provided for the initial confidence inference model. This allows the initial confidence inference model to more accurately learn the performance characteristics of the positioning system in complex and changing driving environments, thereby generating a target confidence inference model that can accurately assess confidence and improving the generalization performance of the target confidence inference model. Furthermore, based on the second annotation information, it is determined whether the first annotation information needs to be corrected. If the second annotation information indicates that the first annotation information needs to be corrected, then the first annotation information is corrected, and the corrected result is used as the historical positioning confidence corresponding to the multi-factor sequence. If the second annotation information does not indicate that the first annotation information needs to be corrected, then the first annotation information is directly used as the historical positioning confidence corresponding to the multi-factor sequence.

[0048] It is readily understood that in the embodiments of this application, a multi-factor sequence is constructed using a first factor set and a second factor set, and historical location reliability is constructed using first annotation information and second annotation information. Compared with the related technologies that rely on single-source location information to calculate location reliability, the historical location reliability of this application not only considers multi-source location information more comprehensively, but also, by distinguishing between the first factor set and the second factor set, can more accurately consider the influence of multiple factors on location reliability, thereby improving the accuracy of historical location reliability and thus improving the accuracy of training data.

[0049] The aforementioned real-time positioning data can be acquired in real time from the vehicle's onboard sensors or map system. This real-time positioning data can include real-time sensor data and real-time map data. The aforementioned real-time sensor data can be data in the vehicle's coordinate system. This real-time sensor data may include, but is not limited to: real-time visual semantic information, real-time inertial measurement unit information, real-time chassis information, real-time temperature data, and real-time humidity data. The aforementioned real-time visual semantic information may include, but is not limited to: real-time lane line perception, real-time stop line perception, real-time ground marking perception, and real-time traffic light perception. The aforementioned real-time inertial measurement unit information may include: real-time three-axis (i.e., X-axis, Y-axis, Z-axis) acceleration information in the vehicle's coordinate system, real-time three-axis angular velocity information in the vehicle's coordinate system, real-time zero-bias information along the X-axis, Y-axis, and Z-axis in the vehicle's coordinate system. The aforementioned real-time chassis information may include, but is not limited to: real-time vehicle gear information, real-time pulse signals corresponding to each of the four wheels, and real-time wheel speed signals corresponding to each of the four wheels. The aforementioned real-time map data can be data in the global coordinate system. The real-time map data may include, but is not limited to: real-time map lane lines, real-time map stop lines, real-time map ground markings, real-time map traffic lights, and real-time map road availability information (e.g., whether there are road maintenance sections in the driving road).

[0050] The initial confidence inference model described above can be a model that has not been tuned at the start of training. This initial confidence inference model can also be a pre-trained model, or it can be a randomly initialized deep learning model.

[0051] The aforementioned model parameters can be learnable variables in a machine learning model, assisting the model in processing inputs and generating outputs. For example, in a confidence inference model, these model parameters can include, but are not limited to, word embeddings, neural network weights, and parameters of the attention mechanism. The optimization of the confidence inference model parameters is achieved through the training process. During training, the model parameters of the confidence inference model are continuously adjusted, enabling the model to learn the mapping relationship between multiple factor sequences and historical positional confidence.

[0052] The aforementioned target confidence inference model can be a trained and optimized model. The target confidence inference model has the same model structure as the initial video generation model. After model parameter tuning, the target confidence inference model can perform accurate confidence inference based on real-time vehicle positioning data input in complex and changing driving environments, obtaining more accurate real-time positioning confidence.

[0053] Specifically, the initial confidence inference model mentioned above can be a lightweight network model. This lightweight network model refers to a neural network model designed with a relatively simple network structure, fewer parameters, and lower computational resource consumption, while ensuring certain performance. This lightweight network model can typically be applied to edge devices, mobile devices, or scenarios with limited computing resources to achieve fast and efficient inference. Especially in applications with high real-time requirements, utilizing a lightweight network model can provide fast response and low-latency processing capabilities, enhancing the timeliness of real-time location confidence.

[0054] It is readily understood that, in this embodiment of the application, the initial confidence inference model is trained using training data with higher accuracy, enabling the target confidence inference model to learn more accurately the mapping relationship between multiple factor sequences and historical location confidence. Furthermore, the target confidence inference model can be used to infer and determine the real-time location confidence corresponding to the real-time location data of the vehicle in real time, thereby enhancing the timeliness of the real-time location confidence and improving the safety assurance of the vehicle.

[0055] The model training method provided in this application achieves the following technical effects: By performing positioning environment assessment calculations on the vehicle's historical positioning data, multiple factors related to positioning reliability are obtained. These factors are then divided into a first set of factors with relatively high correlation to positioning reliability and a second set of factors with relatively low correlation to positioning reliability, which helps to subsequently consider the impact of the first and second set of factors on historical positioning reliability. Furthermore, statistical calculations are automatically performed based on the first set of factors to obtain first annotation information, reducing the cost of data annotation. Judgment analysis is performed based on the second set of factors and the vehicle's driving performance data to determine second annotation information. Subsequently, a multi-factor sequence is constructed using the first and second set of factors, and a historical positioning reliability is constructed using the first and second annotation information. Historical location reliability not only comprehensively considers multi-source location information, but also distinguishes between the first and second factor sets to obtain first and second annotation information respectively. This allows for a more accurate consideration of the impact of multiple factors on historical location reliability, improving its accuracy and thus enhancing the accuracy of the training data. Furthermore, using this training data to train the initial confidence inference model enables the target confidence inference model to learn more accurately the correlation between multiple factor sequences and location reliability. This allows the target confidence inference model to more accurately infer and determine the real-time location reliability corresponding to the vehicle's real-time location data in complex and ever-changing road driving environments, improving the accuracy of real-time location reliability and enhancing the generalization performance of the target confidence inference model. Therefore, the embodiments of this application achieve the goal of constructing more accurate training data by combining the first annotation information and the second annotation information, and using the training data to train a target confidence inference model with higher accuracy and better generalization performance. This achieves the technical effect of enhancing the accuracy and generalization performance of the target confidence inference model, and overcomes the defects of using only single-source positioning information as training data, which leads to low inference accuracy of the target confidence inference model and the inability to infer and determine the real-time positioning confidence corresponding to the real-time positioning data in complex and ever-changing road driving environments. Thus, it solves the technical problem in related technologies that rely on single-source positioning information, resulting in low accuracy and poor generalization of positioning confidence calculation methods.

[0056] The model training method provided in this application combines two types of factors to label the confidence of historical positioning data, constructs training data, trains a target confidence inference model, and then uses the target confidence inference model to infer and determine the real-time positioning confidence corresponding to the real-time positioning data. It can be widely applied to multiple application scenarios.

[0057] For example, in autonomous driving applications, in various driving environments such as highways, urban roads, and complex intersections, this application can evaluate the real-time positioning reliability corresponding to the vehicle's real-time positioning data in real time, providing key safety assurance for vehicle path planning, obstacle avoidance, speed control and other decisions.

[0058] For example, in drone operation scenarios, the accuracy of the drone's visual positioning is crucial when drones are performing tasks such as aerial surveillance, logistics delivery, and agricultural spraying. This application can provide real-time feedback on positioning quality based on the drone's current visual information and environmental conditions, ensuring not only that the drone operates in the correct area but also that its flight safety is guaranteed.

[0059] For example, in virtual reality applications, virtual reality devices rely on visual positioning to provide an immersive user experience. This application can assess the accuracy of the wearer's location information during movement, preventing a decline in user experience caused by location tracking errors.

[0060] The model training method provided in this application embodiment can be applied to, but is not limited to, the application scenarios listed above. With the continuous evolution of technology, the above method can also be applied to a wider range of scenarios, such as traffic flow prediction and optimization, transportation, remote control of driving vehicles, etc. By providing real-time positioning data, it can more accurately infer and determine the real-time positioning reliability, support a variety of advanced functions and applications, and improve driving safety and traffic efficiency.

[0061] Optionally, the first factor set includes reprojection factors. In step S10 above, the calculation of the positioning environment assessment based on historical positioning data to obtain the first factor set includes the following steps:

[0062] S101: Analyze historical positioning data to obtain vehicle pose data, road perception data and road map data. Among them, road perception data is used to represent multiple perception elements determined by the vehicle after perceiving the road area, and road map data is used to represent multiple map elements corresponding to the road area.

[0063] S102: Based on vehicle pose data, road perception data, and road map data, perform matching residual calculations on multiple perception elements and multiple map elements to obtain multiple sets of residual data;

[0064] S103: Merge and statistically calculate multiple sets of residual data to determine the reprojection factor, which is used to characterize the degree of deviation between the perceived information of road features and the map information.

[0065] The aforementioned vehicle pose data may include the vehicle's position and attitude information. This vehicle pose data can be obtained by parsing and fusing data collected from multiple sensors. This vehicle pose data can be used to determine the vehicle's localization result.

[0066] The aforementioned multiple sensing elements may include perceived lane lines, perceived stop lines, and perceived road markings. This road perception data can be obtained from visual semantic images acquired by onboard vision sensors (e.g., cameras). This road perception data may include perceived lane line data, perceived stop line data, and perceived road marking data. This road perception data can be data in the vehicle's coordinate system.

[0067] The aforementioned vehicle coordinate system can be a coordinate system with the vehicle itself as a reference. In this system, the X-axis points forward, the Y-axis points to the left of the vehicle, and the Z-axis is perpendicular to the ground and points upward. Data in this vehicle coordinate system can directly correlate road perception elements around the vehicle with the vehicle itself, enabling a more accurate determination of the positional information of these elements relative to the vehicle.

[0068] The aforementioned map elements may include map lane lines, map stop lines, and map ground markings. The road map data described above can be used to characterize the road and environmental features of road areas within the map system. This road map data may include map lane line data, map stop line data, and map ground marking data. This road map data may be data in a global coordinate system (e.g., the WGS84 coordinate system).

[0069] Historical positioning data is analyzed, and vehicle pose data is obtained by analyzing and fusing data collected from multiple sensors. Visual semantic images of the road area are obtained by taking pictures of the road area using the onboard vision sensor in the historical positioning data, resulting in road perception data. Finally, road map data corresponding to the aforementioned road area is determined from the historical positioning data.

[0070] It should be noted that the sensing elements and map elements listed in this application are merely optional settings for exemplary application scenarios. In other application scenarios, elements different from those in the embodiments of this application may be used according to the needs of the scenario. That is to say, this application does not limit the specific setting method of the sensing elements and map elements. Furthermore, in actual application, the specific number of sensing elements and map elements can be set according to the needs of the scenario. That is, this application does not limit the specific number of the sensing elements and map elements.

[0071] The aforementioned sets of residual data can characterize the similarity between perceived features and map features. These residuals can be obtained using residual calculation methods. These parameter calculation methods may include, but are not limited to: matching residual calculation methods based on recurrent neural networks, matching residual calculation methods based on convolutional neural networks, and distance residual calculation methods.

[0072] Specifically, the aforementioned multiple sets of residual data can be obtained as follows: Based on the vehicle pose data of a certain frame, the vehicle's localization result for that frame is determined. Based on this localization result, target road perception data corresponding to the localization result of that frame is determined from the road perception data, and initial road map data corresponding to the localization result of that frame is determined from the road map data. Further, the initial road map data in the global coordinate system is transformed into the vehicle coordinate system to obtain the target road map data, so that the target road map data in the vehicle coordinate system and the target road perception data in the vehicle coordinate system form superimposed projection data. Based on this superimposed projection data, multiple perception elements contained in the target road map data are matched with multiple map elements contained in the target road perception data to determine multiple sets of associated elements (e.g., associated lane line elements, associated stop line elements, associated ground marking elements). The residual values ​​corresponding to the multiple sets of associated elements are calculated to obtain multiple sets of residual data.

[0073] The aforementioned reprojection factor can be obtained using reprojection calculation methods. These methods may include, but are not limited to: direct addition, averaging, weighted averaging, and error normalization. A larger reprojection factor indicates a higher degree of deviation between the perceived information of road features and the map information, resulting in lower confidence of the positioning result.

[0074] In one exemplary application scenario Figure 2 This is a flowchart of an optional method for calculating multiple sets of residual data, provided in one embodiment of this application, such as... Figure 2 As shown, the calculation of residual data is illustrated using the associated lane line element in the associated elements as an example. Assume that there are M perception lane lines among the multiple perception elements contained in the road perception data. For any perception lane line CD... k Where k can take values ​​of 1, 2, ..., M. The sensing lane line CD is determined based on the first distance value and the second distance value. kThe two endpoints of the sensing lane line can be defined as follows: the first distance value can be used to characterize the distance between the sensing lane line and the vehicle body (e.g., 0 meters), and the second distance value can be a pre-set distance threshold between the sensing lane line and the front of the vehicle body (e.g., 10 meters). In other words, the first endpoint of the sensing lane line (denoted as P) can be the current position of the vehicle body, and the second endpoint of the sensing lane line (denoted as Q) can be 10 meters in front of the current position of the vehicle body.

[0075] Still within the aforementioned application scenario, according to a preset search range (e.g., within a circle with a radius of 50 meters around the vehicle), lane lines matching the perceived lane line CD are selected from multiple map lane lines contained in the road map data. k Multiple candidate map lane lines with similar slopes are selected. Further, the perceived lane line CD is calculated for each lane line. k The distance from the first endpoint P to the first point line corresponding to each of the multiple candidate map lane lines is calculated, and the perceived lane line CD is calculated for each lane line. k The distance from the second endpoint Q to the second point of each of the multiple candidate map lane lines is calculated. Using the first and second point distances of each candidate map lane line, the average point distance corresponding to each candidate map lane line can be obtained. From these average point distances, the smallest average point distance is selected. It is then determined whether this smallest average point distance is less than an average point distance threshold (e.g., 1 meter). If the smallest average point distance is less than the average point distance threshold, the candidate map lane line corresponding to this smallest average point distance is taken as the target map lane line, and this sensing lane line CD is... k The target map lane line is used as a group of associated lane line elements, and the minimum average point-to-line distance is used as the residual data corresponding to the group of associated lane line elements; if the minimum average point-to-line distance is not less than the average point-to-line distance threshold, then the next perceived lane line is selected.

[0076] It should be noted that when the slope of a certain map lane line is different from the perceived lane line CD... k When the difference between the slopes is less than the slope threshold, it can be considered that the slope of the map lane line and the slope of the perceived lane line CD are similar. k The slopes are similar.

[0077] In the same application scenario, we can select each sensing lane line one by one until we have traversed all the sensing lane lines contained in the road sensing data. This will give us the target map lane line corresponding to each sensing lane line, multiple sets of associated lane line elements, and residual data corresponding to each set of associated lane line elements. Then, we can calculate the average value of the residual data corresponding to the multiple sets of associated lane line elements to obtain the average residual value of the multiple sets of associated lane line elements.

[0078] Continuing in the aforementioned application scenario, and referring to the process of calculating the average residual values ​​of multiple sets of associated lane line elements, the average residual values ​​of multiple sets of stop line elements and multiple sets of ground marking elements can be calculated. Specifically, in calculating the average residual values ​​of multiple sets of stop line elements, it is not necessary to additionally select the two endpoints of the stop line; the starting and ending points of the stop line can be directly used as the first and second endpoints of the stop line, respectively. Furthermore, the average values ​​of the average residual values ​​of multiple sets of associated lane line elements, multiple sets of stop line elements, and multiple sets of ground marking elements can be averaged to obtain the reprojection factor. That is, the reprojection factor can be the arithmetic mean of the average residual values ​​of multiple sets of associated lane line elements, multiple sets of stop line elements, and multiple sets of ground marking elements.

[0079] The optional model training method provided in this application embodiment achieves the following technical effects: by utilizing vehicle pose data, road perception data, and road map data, the deviation between the perceived information of road elements and map information can be quantified to obtain a reprojection factor, which can then be used to provide data support for subsequent evaluation of location reliability.

[0080] Optionally, the first factor set includes a matching ratio factor. In step S10 above, the calculation of the positioning environment assessment based on historical positioning data to obtain the first factor set includes the following steps:

[0081] S104: Based on multiple sets of residual data and a preset residual threshold, determine the first number of successfully associated sensing elements among multiple sensing elements;

[0082] S105: Determine the first ratio based on the first quantity and the total quantity of multiple sensory elements;

[0083] S106: Based on road perception data and road map data, determine a second number of successfully matched lanes among multiple perception lanes, wherein the multiple perception lanes are determined by the perception lane lines in the road perception data, and the successfully matched lanes are determined by the deviation value between the perception lane lines and the map lane lines in the road map data.

[0084] S107: Determine the second proportion based on the second quantity and the number of lanes in the road map data;

[0085] S108: Combine the first ratio and the second ratio for statistical calculation to obtain the matching ratio factor, whereby the matching ratio factor is used to characterize the degree of matching between the perceived information of road elements and the map information.

[0086] The aforementioned preset residual threshold can be used to characterize the maximum allowed reprojection factor when a perceived feature is considered successfully associated with a map feature. The aforementioned first quantity can be the number of perceived features that successfully match with map features. The aforementioned first ratio can be used to characterize the proportion of successful matching between the visual semantic image and road map data. The aforementioned total number of multiple perceived features can be used to characterize the total number of lane lines, stop lines, and ground markings contained in the visual semantic image of the current frame.

[0087] The aforementioned sensing lane can be a lane that simultaneously includes both left and right lane lines. The aforementioned second quantity can be the number of times the sensing lane successfully matches a lane in the road map data. The aforementioned second ratio can be used to characterize the proportion of successful matches between the sensing lane and the map lane. The number of lanes in the aforementioned road map data can be obtained through a map system.

[0088] In an exemplary application scenario, based on multiple sets of residual data and a preset residual threshold (e.g., setting the preset residual threshold to 1 meter), it is determined whether each set of residual data is less than the preset residual threshold. If a set of residual data is less than the preset residual threshold, the sensing element corresponding to that set of residual data is considered to be a successfully associated sensing element, thereby determining the first number of successfully associated sensing elements among multiple sensing elements. Further, the number of lane lines, stop lines, and ground markings contained in the visual semantic image of the current frame in the road sensing data are counted to obtain the total number of multiple sensing elements. Based on the first number and the total number of multiple sensing elements, a first ratio is determined, wherein the first ratio is the proportion of the first number in the total number of multiple sensing elements.

[0089] Continuing in the aforementioned application scenario, based on road perception data, lanes containing both left and right lane lines are identified as perception lanes, resulting in multiple perception lanes. The average deviation value of the left and right lane lines of each perception lane is calculated against the map lane lines in the road map data. This yields the average matching deviation value for the left and right lane lines of each perception lane. If this average matching deviation value is less than a matching deviation threshold, the perception lane is considered a successfully matched lane. The number of successfully matched lanes among the multiple perception lanes is counted to determine a second number of successfully matched lanes. Further, based on road map data, lanes containing both left and right lane lines are identified as map lanes. The number of map lanes is counted to obtain the total number of lanes in the road map data. A second ratio is determined based on the second number and the total number of lanes in the road map data, where the second ratio is the proportion of the second number to the total number of lanes in the road map data. Finally, the first and second ratios are combined and statistically calculated to obtain a matching ratio factor.

[0090] The optional model training method provided in this application embodiment achieves the following technical effects: By statistically calculating the matching ratio factor, an index reflecting the degree of matching between the perceived information of road elements and the map information can be obtained. By introducing the matching ratio factor, the location reliability can be evaluated from another dimension, avoiding reliance on a single information source in the process of evaluating location reliability. Utilizing multi-source information helps to determine historical location reliability through more comprehensive information, improving the accuracy of historical location reliability, thereby laying the foundation for subsequently constructing training data containing more comprehensive information.

[0091] Optionally, in some application scenarios, the location environment assessment calculation is performed based on historical location data to obtain the first factor set, which includes:

[0092] Historical positioning data is analyzed to obtain vehicle pose data, road perception data, and road map data. Among them, road perception data is used to represent multiple perception elements determined by the vehicle after perceiving the road area, and road map data is used to represent multiple map elements corresponding to the road area.

[0093] Based on vehicle pose data, road perception data, and road map data, matching residual calculations are performed on multiple perception elements and multiple map elements to obtain multiple sets of residual data.

[0094] Based on multiple sets of residual data and preset residual thresholds, determine the first number of successfully associated sensing elements among multiple sensing elements;

[0095] The first ratio is determined based on the first quantity and the total quantity of multiple sensory elements;

[0096] Based on road perception data and road map data, a second number of successfully matched lanes among multiple perception lanes is determined, wherein the multiple perception lanes are determined by the perception lane lines in the road perception data, and the successfully matched lanes are determined by the deviation value between the perception lane lines and the map lane lines in the road map data.

[0097] The second ratio is determined based on the second quantity and the number of lanes in the road map data;

[0098] The first and second proportions are combined and statistically calculated to obtain the matching proportion factor, which is used to characterize the degree of matching between the perceived information of road elements and the map information.

[0099] Optionally, the first factor set includes a relative motion factor. In step S10 above, the calculation of the positioning environment assessment based on historical positioning data to obtain the first factor set includes the following steps:

[0100] S109: Analyze historical positioning data to obtain vehicle pose data and vehicle driving status signals;

[0101] S110: Perform motion trajectory analysis on vehicle pose data to determine the observed displacement data of the vehicle within the target time range;

[0102] S111: Using inertial measurement data and wheel speed data from the vehicle driving status signal, calculate the predicted displacement data of the vehicle within the target time range;

[0103] S112: Calculate the vehicle's motion error based on the observed displacement data, predicted displacement data, and target time range;

[0104] S113: Normalize the motion error to obtain the relative motion factor, which is used to characterize the degree of difference between the observed motion state and the actual motion state of the vehicle.

[0105] The vehicle pose data mentioned above may also include positioning information in a global coordinate system. This positioning information can be obtained through a map system. The observed displacement data mentioned above refers to the displacement changes of the vehicle observed by the map system within a target time range. This observed displacement data may include the vector direction and vector length of the observed displacement. The vector direction of the observed displacement can be used to characterize the direction of the vehicle's position change in the map system. The vector length of the observed displacement can be used to characterize the magnitude of the vehicle's position change in the map system. The target time range mentioned above can be set according to actual application requirements.

[0106] The aforementioned vehicle driving status signals may include inertial measurement data and chassis information. The inertial measurement data may include angular velocity information along three axes (X-axis, Y-axis, and Z-axis) in the vehicle coordinate system. The chassis information may include wheel speed data for each of the four wheels. The predicted displacement data can be calculated from the sensing data acquired by the onboard sensors. This predicted displacement data refers to the displacement change of the vehicle within a target time range actually detected by the onboard sensors. This predicted displacement data may include the vector direction and vector length of the predicted displacement. This predicted displacement data can be obtained through integration. The vector direction of the predicted displacement can be used to characterize the direction of the vehicle's position change as actually detected by the onboard sensors. The vector length of the predicted displacement can be used to characterize the magnitude of the vehicle's position change as actually detected by the onboard sensors.

[0107] In an exemplary application scenario, the target time range is set to t. The historical map data in the historical positioning data within the target time range t is parsed to obtain the vehicle pose data (e.g., positioning information in the global coordinate system) within the target time range t. The historical sensor data in the historical positioning data within the target time range t is also parsed to obtain the vehicle driving status signal within the target time range t.

[0108] Continuing in the aforementioned application scenario, motion trajectory analysis is performed on the vehicle pose data to determine the vehicle's displacement vector (including the vector direction and length of the displacement) within the target time range. This displacement vector is then used as the observed displacement data. The triaxial angular velocity information contained in the inertial measurement data of the vehicle's driving state signal is integrated to obtain the predicted angle change value, which is used as the vector direction of the predicted displacement. Furthermore, the wheel speed data corresponding to each of the four wheels contained in the chassis information of the vehicle's driving state signal is integrated to obtain the predicted displacement change value, which is used as the vector length of the predicted displacement. Using the vector direction and length of the predicted displacement, the predicted displacement data of the vehicle within the target time range is obtained.

[0109] Still in the above application scenario, the vehicle's motion error is calculated based on the observed displacement data, predicted displacement data, and target time range. Specifically, the difference between the observed displacement data and the predicted displacement data can be used as the displacement difference, with the displacement difference as the numerator and the target time range as the denominator. The motion error is obtained by dividing the displacement difference by the target time range. Furthermore, the motion error is normalized and mapped to convert the vector form of the motion error into a numerical form, and this numerical form of the motion error is determined as the relative motion factor.

[0110] The optional model training method provided in this application embodiment achieves the following technical effects: by quantifying the difference between the observed motion state and the actual motion state of the vehicle, a relative motion factor is obtained. This relative motion factor can be used to evaluate the performance of the positioning system during the dynamic driving process of the vehicle. This is particularly important for autonomous vehicles driving in complex urban traffic environments. By introducing the relative motion factor, the data dimension for evaluating positioning reliability can be further expanded, and more comprehensive information source data can be used to determine historical positioning reliability, thereby improving the accuracy of historical positioning reliability and providing support for the subsequent construction of more accurate training data.

[0111] Optionally, the second factor set includes road structure factors. In step S10 above, the calculation of the positioning environment assessment based on historical positioning data to obtain the second factor set includes the following steps:

[0112] S114: Analyze historical positioning data to obtain road perception data, which includes perception information of multiple road elements within the road area. The multiple road elements include at least: road edge elements, lane lines, stop lines, and indicator signs.

[0113] S115: Based on road perception data and element completeness scoring rules, score multiple road elements to obtain scoring results;

[0114] S116: Combine and statistically calculate the scoring results to obtain the road structure factor, which is used to characterize the completeness of the vehicle's perception of multiple road elements.

[0115] The aforementioned road perception data can be obtained from visual semantic images acquired by onboard vision sensors (e.g., cameras). This road perception data can be data in the vehicle's coordinate system. The aforementioned element completeness scoring rules can be pre-set and stored in onboard memory, which may include, but is not limited to: Flash Memory, Phase Change Memory (PCM), and Magnetoresistive Random Access Memory (MRAM). The aforementioned scoring results can be used to characterize the vehicle's perception completeness of a certain road element.

[0116] It should be noted that the aforementioned road edge features can be actual road edge lines displayed within the road area in the visual semantic image acquired by the vehicle-mounted vision sensor, or they can be virtual road edge lines obtained by extracting road edge lines from the visual semantic image using road edge detection methods. The aforementioned road edge detection methods may include, but are not limited to: Sobel operator edge detection method, Hough transform edge detection method, Canr operator edge detection method, and Laplacian operator edge detection method.

[0117] In an exemplary application scenario, visual semantic images acquired by vehicle-mounted vision sensors from historical positioning data are parsed to obtain road perception data. This road perception data may include perception information of road edge elements, lane lines, stop lines, and indicator signs. Further, an element completeness scoring rule is read from the vehicle's memory. This element completeness scoring rule may be: "5 points are awarded for multiple road elements containing bilateral road edge elements; 3 points are awarded for multiple road elements containing road edge elements; 1 point is awarded for multiple road elements containing a set of adjacent lane lines with intervals within the normal interval range (e.g., 0.3m to 4m); -1 point is awarded for multiple road elements containing a set of adjacent lane lines with intervals outside the normal interval range (0.3m to 4m); 3 points are awarded for multiple road elements containing stop lines; 1 point is awarded for multiple road elements containing an indicator sign." The lane line L2 with the closest straight-line distance to a lane line L1 among multiple road elements can be considered as the adjacent lane line of lane line L1, and lane lines L1 and L2 can be considered as a set of adjacent lane lines. Furthermore, based on the road perception data and the element completeness scoring rules, each road element in the multiple road elements is scored separately to obtain the scoring result corresponding to each road element. The scoring results corresponding to each road element are then combined and statistically calculated, and the calculation result is used as the road structure factor.

[0118] It should be noted that the element completeness scoring rules listed in this application are merely optional settings for exemplary application scenarios. In other application scenarios, different element completeness scoring rules from those in this application embodiment can be adopted according to the needs of the scenario. In other words, this application does not limit the specific setting method of the element completeness scoring rules.

[0119] The optional model training method provided in this application embodiment achieves the following technical effects: by calculating and statistically analyzing road structure factors, an index reflecting the vehicle perception system's ability to identify road elements can be obtained. This road structure factor can indirectly reflect the performance of the vehicle positioning system in complex road environments. Using this road structure factor can help correct the positioning reliability and improve the accuracy of historical positioning reliability.

[0120] Optionally, the second factor set includes map region factors. In step S10 above, the location environment assessment calculation based on historical location data is performed to obtain the second factor set, which includes the following steps:

[0121] S117: Analyze historical positioning data to obtain road map data, which includes the road type and number of lanes corresponding to the road area where the vehicle is located;

[0122] S118: Based on road map data and preset road scoring rules, determine the type score corresponding to the road type, and determine the quantity score corresponding to the number of lanes;

[0123] S119: Combine and statistically calculate the type score and quantity score to obtain the map area factor, which is used to characterize the degree of influence of road map data on the location reliability of vehicles within the road area.

[0124] The road types mentioned above may include, but are not limited to: expressways, national roads, provincial roads, rural roads, and unnamed side roads. The number of lanes mentioned above represents the number of lanes contained in the road area where the vehicle is located in the map system. The preset road scoring rules mentioned above may include road type scoring rules and lane number scoring rules. These preset road scoring rules can be pre-set and stored in the vehicle's onboard memory, which may include, but is not limited to: flash memory, phase change memory (PCM), and magneto-resistive random access memory (MRAM). The type score mentioned above can be used to evaluate the impact of the road type corresponding to the road area where the vehicle is located on the location reliability; a higher type score indicates a better road type for the road area where the vehicle is located.

[0125] In an exemplary application scenario, map system data from historical positioning data is parsed to obtain road map data. This road map data includes the road type and number of lanes corresponding to the road area where the vehicle is located. Further, preset road scoring rules are read from the vehicle's onboard memory. These preset road scoring rules include road type scoring rules and lane number scoring rules. The road type scoring rule can be: if the road area where the vehicle is located is a highway, the type score is 5 points; if the road area where the vehicle is located is a national road, the type score is 4 points; if the road area where the vehicle is located is a provincial road, the type score is 3 points; if the road area where the vehicle is located is a provincial road, the type score is 4 points. If the area is a rural road, the type score is 2 points; if the road area where the vehicle is located is an unnamed alley, the type score is 1 point. The lane number scoring rule can be: "If the number of lanes corresponding to the road area where the vehicle is located is n1, then the number score corresponding to the number of lanes is n1 points." Furthermore, based on the road type corresponding to the road area where the vehicle is located in the road map data and the preset road scoring rule, the type score corresponding to the road type is determined, and based on the number of lanes corresponding to the road area where the vehicle is located in the road map data and the preset road scoring rule, the number score corresponding to the number of lanes is determined. The type score and the number score are then combined and statistically calculated to obtain the map area factor.

[0126] It should be noted that the preset road scoring rules listed in this application are merely optional settings for exemplary application scenarios. In other application scenarios, different preset road scoring rules from those in this application embodiment can be adopted according to the needs of the scenario. In other words, this application does not limit the specific setting method of the preset road scoring rules.

[0127] The optional model training method provided in this application embodiment achieves the following technical effects: by quantifying the influence of road map data within a road area on the vehicle's location reliability, a map area factor is obtained. This map area factor can indirectly reflect the performance of the vehicle positioning system in a complex road environment, thereby indirectly reflecting the location reliability of the positioning data. By using this road structure factor to correct the location reliability, the accuracy of historical location reliability can be improved, thereby enhancing the accuracy of the training data.

[0128] Optionally, the first annotation information is the first annotation confidence level. In step S20 above, the statistical calculation based on the first factor set to obtain the first annotation information includes the following steps:

[0129] S201: Calculate the scores of multiple first factors in the first factor set according to the labeled score mapping relationship to obtain multiple confidence scores corresponding to the multiple first factors respectively. The labeled score mapping relationship is determined according to the factor type of the multiple first factors.

[0130] S202: The first labeled confidence level is obtained by averaging multiple confidence scores.

[0131] The first factor mentioned above can be of the following types, including but not limited to: reprojection factor type, matching ratio factor type, relative motion factor type, and sensor data quality factor type. The labeled score mapping relationship mentioned above can be a mathematical relationship or algorithm used to convert the first factor into a confidence score. This labeled score mapping relationship can be, but is not limited to: mapping relationship based on a normal distribution function, mapping relationship based on a linear function, and mapping relationship based on a threshold. This labeled score mapping relationship can be set according to the properties of each of the multiple first factors. The first labeled confidence score mentioned above can be obtained using a mean algorithm. The aforementioned mean algorithm can be, but is not limited to: arithmetic mean calculation method, weighted average calculation method, geometric mean calculation method, and harmonic mean calculation method.

[0132] Specifically, the arithmetic mean calculation method is selected as the above mean algorithm, assuming that the number of first factors contained in the above first factor set is h. Based on the factor type of each first factor among the multiple first factors, a mapping relationship between the labeled score and the corresponding first factor is determined. The score of the first factor is calculated according to this labeled score mapping relationship to obtain the confidence score corresponding to the first factor. Similarly, multiple confidence scores (denoted as z1, z2, ..., zh) corresponding to multiple first factors can be obtained. Then, the arithmetic mean calculation method is used to calculate the mean of the multiple confidence scores to obtain the first labeled confidence score (denoted as bz1). The first labeled confidence score bz1 can be the arithmetic mean of the multiple confidence scores (z1, z2, ..., zh).

[0133] The optional model training method provided in this application achieves the following technical effects: By converting multiple factors in the first factor set into multiple confidence scores, multiple factors under different evaluation criteria can be transformed into a unified evaluation criterion. Then, the average of the multiple confidence scores is calculated, thereby providing a more comprehensive indicator for evaluating location confidence (i.e., the first labeled confidence score). This reduces the dimensionality of labeled data in the training data, helping to reduce the training difficulty in the subsequent training of the target confidence inference model. Furthermore, obtaining a more comprehensive first labeled confidence score using multiple factors in the first factor set helps reduce the dependence of the target confidence inference model on a specific input range, enabling the target confidence inference model to accurately infer even on data not used during training, thus enhancing the generalization ability of the target confidence inference. In addition, in this application, through the above steps, the scores of multiple first factors in the first factor set can be automatically calculated according to the labeled score mapping relationship, thereby automatically obtaining the first labeled confidence score, reducing the cost of data labeling and improving the efficiency of data labeling.

[0134] Optionally, the multiple first factors include: a reprojection factor, a matching ratio factor, and a relative motion factor; the multiple confidence scores include a first confidence score, a second confidence score, and a third confidence score. In step S201 above, calculating the scores of the multiple first factors according to the labeled score mapping relationship to obtain the multiple confidence scores includes the following steps:

[0135] S2011: According to the annotation score mapping relationship, determine the first scoring function corresponding to the reprojection factor and the second scoring function corresponding to the relative motion factor. The first scoring function is set by the normal distribution of data error of the preset data cases corresponding to the reprojection factor, and the second scoring function is set by the normal distribution of data error of the preset data cases corresponding to the relative motion factor.

[0136] S2012: Calculate the first confidence score using the reprojection factor and the first scoring function;

[0137] S2013: The second confidence score is calculated using the relative motion factor and the second rating function;

[0138] S2014: Determine the third confidence score based on the percentage value corresponding to the matching ratio factor.

[0139] The aforementioned pre-defined data cases can be used to characterize the relationship between the reprojection factor or relative motion factor and the location reliability score under different scenarios. These pre-defined data cases can be obtained through on-site data collection or simulation. The aforementioned matching ratio factor may include a first ratio and a second ratio. The percentage value corresponding to the aforementioned matching ratio factor can be obtained using a normalization algorithm, which may include, but is not limited to: arithmetic mean normalization calculation method and weighted average normalization calculation method.

[0140] By performing statistical analysis on the preset data cases corresponding to the reprojection factor, the error between the actual positioning result and the expected positioning result of the reprojection factor in each preset data case is determined, and then the first scoring function is constructed. Similarly, by performing statistical analysis on the preset data cases corresponding to the relative motion factor, the error between the actual positioning result and the expected positioning result of the relative motion factor in each preset data case is determined, and then the second scoring function is constructed.

[0141] In one exemplary application scenario Figure 3 This is a schematic diagram of an optional model training method provided in one embodiment of this application, as shown below. Figure 3 As shown, according to the mapping relationship of the labeled scores, the first scoring function corresponding to the reprojection factor, the second scoring function corresponding to the relative motion factor, and the normalization algorithm corresponding to the matching ratio factor are determined. The first scoring function is determined by analyzing the preset data cases corresponding to the reprojection factor and determining the normal distribution of the data error of the preset data cases corresponding to the reprojection factor. The first scoring function is shown in Equation (1). The second scoring function is determined by analyzing the preset data cases corresponding to the relative motion factor and determining the normal distribution of the data error of the preset data cases corresponding to the relative motion factor. The second scoring function is shown in Equation (2). The normalization algorithm can be the arithmetic mean normalization calculation method.

[0142]

[0143] In equation (1), x represents the reprojection factor.

[0144]

[0145] In equation (2), y represents the relative motion factor.

[0146] Continuing in the aforementioned application scenario, the reprojection factor is substituted into the first scoring function to calculate the first confidence score. The relative motion factor is substituted into the second scoring function to calculate the second confidence score. The arithmetic mean normalization method is used to calculate the mean of the first and second proportions in the matching proportion factor. The percentage mean result is then normalized to a numerical mean result, which is determined as the third confidence score. Further, in this application scenario, the first confidence score is calculated by averaging the first, second, and third confidence scores. The first labeled confidence score is the arithmetic mean of the first, second, and third confidence scores.

[0147] The optional model training method provided in this application embodiment achieves the following technical effects: by converting the reprojection factor, matching ratio factor, and relative motion factor into a first confidence score, a second confidence score, and a third confidence score respectively according to the annotation score mapping relationship corresponding to multiple first factors, the confidence of the vehicle positioning result can be scored more accurately using evaluation data of different dimensions, which helps to obtain more accurate first annotation information.

[0148] Optionally, the second annotation information is the second annotation confidence level. In step S30 above, the determination of the second annotation information based on the second factor set and driving performance data includes the following steps:

[0149] S301: Using driving performance data and preset abnormal performance types, confidence levels are assigned to multiple second factors in the second factor set to obtain the second annotation confidence level.

[0150] The aforementioned abnormal behavior types may include, but are not limited to: steering wheel vibration, erratic driving (i.e., unnecessary swaying during driving), sharp turning, and sudden braking. These abnormal behavior types can indirectly reflect whether there are errors in the vehicle's positioning results. During autonomous driving, when the positioning system outputs a large error in the vehicle's positioning results (i.e., low positioning confidence), the vehicle may exhibit abnormal behavior, which can indirectly reflect the confidence level of the positioning system. The aforementioned secondary factors may include road structure factors and map region factors.

[0151] Analyzing driving performance data determines whether pre-defined abnormal performance types exist. Based on the determination, confidence levels are assigned to multiple second factors in the second factor set, resulting in second-label confidence levels. These second-label confidence levels characterize the presence of pre-defined abnormal performance types in the driving performance data. They can be used to correct the first-label confidence levels to obtain more accurate historical location confidence. Specifically, these second-label confidence levels can be obtained manually. To enhance the objectivity of manual annotation, objective principles of functional experience (e.g., lateral acceleration change rate) are followed to obtain more accurate second-label confidence levels. Manual annotation avoids the problem of poor generalization performance of the trained model due to imperfect automatic calculation rules. By using driving performance data and pre-defined abnormal performance types to assign confidence levels to multiple second factors in the second factor set, the influence of weakly correlated factors on location confidence is increased. Utilizing information from more sources to determine historical location confidence improves the accuracy of subsequently obtained historical location confidence.

[0152] The optional model training method provided in this application embodiment achieves the following technical effects: In related technologies, location confidence is usually calculated by considering only single-source location information that is strongly correlated with location confidence. This results in a one-sided information content in the training data, low accuracy of the trained model, difficulty in applying it to complex and ever-changing driving environments, and poor generalization performance. In contrast, in this application embodiment, multiple second factors in the second factor set are quantified using driving performance data and preset abnormal performance types. The influence of weakly correlated factors on historical location confidence is considered, enabling the training data to contain more comprehensive information, thereby training a target confidence inference model with higher accuracy and better generalization performance.

[0153] Optionally, in step S301 above, using driving performance data and abnormal performance types to label multiple second factors with confidence levels, and obtaining the second label confidence level includes the following steps:

[0154] S3011: Using driving performance data, determine whether there are abnormal driving performance types of vehicles in the road area corresponding to multiple second factors, and obtain the determination result;

[0155] S3012: Based on the judgment result, perform confidence binarization annotation on multiple second factors to obtain the second annotation confidence.

[0156] The above determination results can be used to characterize whether vehicles exhibit abnormal driving behavior within a road area. The second confidence level can be determined based on quantified sensory indicators, such as the vehicle's lateral vibration index; specifically, the rate of change of lateral acceleration can be used as this lateral vibration index. This second confidence level can be a binary value (e.g., 0 or 1).

[0157] In one exemplary application scenario, it is still as follows Figure 3 As shown, using driving performance data, when the vehicle's autonomous driving function is activated, it is determined whether there are abnormal driving behaviors of the vehicle in the road area corresponding to multiple second factors, and the determination result is obtained. Further, the confidence of multiple second factors is binarized and labeled according to the determination result. If the determination result indicates that there are abnormal driving behaviors of the vehicle in the road area corresponding to multiple second factors, the confidence of the second label is marked as 0. If the determination result indicates that there are no abnormal driving behaviors of the vehicle in the road area corresponding to multiple second factors, the confidence of the second label is marked as 1.

[0158] The optional model training method provided in this application embodiment achieves the following technical effects: by using binary annotation to obtain the second annotation confidence, the influence of positioning data on positioning confidence under normal and abnormal driving conditions can be effectively distinguished based on the second annotation confidence, providing information support for accurately evaluating the positioning confidence of autonomous vehicles in different road environments.

[0159] Optionally, in step S40 above, constructing training data using the first factor set, the second factor set, the first annotation information, and the second annotation information includes the following steps:

[0160] S401: Construct a multi-factor sequence using a preset factor sort, multiple first factors in the first factor set, and multiple second factors in the second factor set;

[0161] S402: Based on the first and second annotation information, the historical location reliability corresponding to the multi-factor sequence is calculated;

[0162] S403: Use multi-factor sequences as the training input and historical location reliability as the training supervision to construct training data.

[0163] The aforementioned pre-defined factor order can be used to characterize the order of multiple factors input into the model. These multiple factors can include multiple first factors and multiple second factors. This pre-defined factor order can be used to determine the structure of the input portion of the initial confidence inference model. The aforementioned multi-factor sequence can be constructed using sequence construction methods. These sequence construction methods may include, but are not limited to: multimodal fusion methods, linear mapping methods, nonlinear mapping methods, feature cross-methods, and construction methods based on sequence learning models (e.g., long short-term memory sequence learning models). Multiple first factors from the first factor set and multiple second factors from the second factor set are sorted and combined according to the pre-defined factor order to construct an ordered multi-factor sequence, which can be used as the input to the initial confidence inference model. The aforementioned historical location confidence can be calculated using annotation calculation methods. These annotation calculation methods may include, but are not limited to: arithmetic mean method, weighted average method, direct addition method, and mapping calculation method.

[0164] It should be noted that the above-mentioned preset factor ranking can also be determined based on the correlation between different factors and location reliability, so that the model can pay more attention to factors that have a greater impact on location reliability, thereby optimizing the model's learning efficiency.

[0165] In one exemplary application scenario, it is still as follows Figure 3 As shown, the preset factor order can be as follows: reprojection factor, road structure factor, map region factor, matching ratio factor, and relative motion factor. Multiple first factors from the first factor set and multiple second factors from the second factor set are sorted and combined according to this preset factor order to construct a multi-factor sequence. Further, the first and second annotation information are processed using a labeling calculation method to obtain the historical location confidence corresponding to the multi-factor sequence. The multi-factor sequence is used as the training input of the initial confidence inference model, and the historical location confidence is used as the training supervision of the initial confidence inference model to construct training data. The training input refers to the actual data input used to teach the model how to make predictions during machine learning model training. The training supervision refers to the expected output used to guide model learning and parameter adjustment during machine learning model training.

[0166] The optional model training method provided in this application embodiment achieves the following technical effects: By using a preset factor sorting, the order in which multiple first factors in the first factor set and multiple second factors in the second factor set are input into the model can be clearly defined, thereby constructing a multi-factor sequence with a clear organizational order. This helps the subsequent initial confidence inference model to receive and process information more orderly, avoiding the problem that the subsequent target confidence inference model cannot learn the mapping relationship between multiple factors and location confidence due to chaotic input order. Furthermore, by using the first and second annotation information to calculate the historical location confidence, the accuracy of the historical location confidence can be improved. Moreover, by using the multi-factor sequence as the training input and the historical location confidence as the training supervision, more comprehensive and accurate training data reflecting the vehicle positioning environment and driving performance can be constructed, providing rich and diverse data support for training the target confidence inference model.

[0167] Optionally, in step S402 above, calculating the historical location reliability corresponding to the multi-factor sequence based on the first and second annotation information includes the following steps:

[0168] S4021: Calculate the historical location confidence based on the binarized values ​​of the first label confidence in the first label information and the second label confidence in the second label information.

[0169] The aforementioned binarized values ​​can be used to characterize whether the confidence level of the first annotation is corrected. The confidence level of the second annotation in the aforementioned second annotation information can be a binarized numerical value (e.g., 0 or 1).

[0170] The binarized value of the confidence level of the second annotation in the second annotation information is judged. If the binarized value of the confidence level of the second annotation is 0, it means that there is no need to correct the confidence level of the first annotation, and the confidence level of the first annotation is used as the historical location confidence level. If the binarized value of the confidence level of the second annotation is 1, it means that the confidence level of the first annotation needs to be corrected, and the corrected confidence level of the first annotation is used as the historical location confidence level.

[0171] Specifically, when the binarization value of the second label confidence is 1, the historical location confidence can be calculated as follows: the historical location confidence can be the difference between the first label confidence and the fixed value (denoted as u1) (that is, the historical location confidence is obtained by subtracting the fixed value u1 from the first label confidence, and the fixed value u1 can be 0.2).

[0172] The optional model training method provided in this application embodiment achieves the following technical effects: by binarizing the second label confidence value, the second label confidence value can be standardized and quantified, which facilitates the comprehensive consideration of the first label confidence value and the second label confidence value, and can obtain the historical location confidence value more quickly.

[0173] Optionally, in step S50 above, training the initial confidence inference model using training data to obtain the target confidence inference model includes the following steps:

[0174] S501: Input the multi-factor sequence from the training data into the model to perform confidence inference calculation and obtain the inference location confidence.

[0175] S502: The training loss is calculated using the inference location reliability, the historical location reliability in the training data, and the target loss function;

[0176] S503: Based on the training loss, adjust the model parameters of the initial confidence inference model to obtain the target confidence inference model. The target confidence inference model uses the same model structure as the initial confidence inference model, and the embedding layer in the model structure takes a multi-factor sequence as input.

[0177] The aforementioned locational confidence of the inference model refers to the output of the initial confidence inference model during its training process. The aforementioned objective loss function measures the difference between the model's predicted values ​​and the true values. This objective loss function may include, but is not limited to, mean squared error loss, cross-entropy loss, absolute error loss, and log-likelihood estimation loss. The difference between the model's predicted values ​​and the true values ​​(i.e., the training loss) is calculated using this objective loss function. This training loss can guide the adjustment of model parameters; a larger training loss indicates a greater difference between the model's predicted values ​​and the true values.

[0178] The aforementioned embedding layer can be a layer in the initial confidence inference model used to convert discrete input data into a continuous vector representation. This embedding layer can include one or more learnable weight matrices. It can also be used to transform a multinomial factor sequence into a high-dimensional feature vector.

[0179] In one exemplary application scenario Figure 4 This is a flowchart of an optional model training method provided in one embodiment of this application, such as... Figure 4As shown, the initial confidence inference model described above can be a deep learning model based on an attention mechanism (e.g., the Transformer model). The MapDataset class is defined to process and transform datasets. Using the defined MapDataset class, the multi-factor sequences (i.e., the training input) of different dimensions in the training data can be mapped to data of a preset dimension (denoted as input_dim) using a linear embedding method. For example, the preset dimension can be set to 7. The preset dimension input_dim can be the sum of the reprojection factor dimension, the road structure factor dimension, the map region factor dimension (including the type rating dimension corresponding to road type and the quantity rating dimension corresponding to lane number), the matching ratio factor dimension (including the first ratio dimension and the second ratio dimension), and the relative motion factor dimension; for the transformer class ( That is, the Transformer class is defined, which can include encoder layers (denoted as encoder_layer) and transformer encoders (denoted as transformer_encoder). The encoder layer encoder_layer includes tensor dimension (denoted as num_dim) and number of heads (denoted as num_heads). For example, the tensor dimension num_dim can be set to 7, the number of heads num_heads to 4, and the transformer encoder transformer_encoder can reuse the layers encoder_layer of the multi-layer encoder, with the number of overlapping layers num_layers set to 2. The number of heads refers to the number of different attention heads processed in parallel. This number of heads is a hyperparameter in the model, which can enhance the model's ability to capture complex patterns and improve its generalization performance. Furthermore, the Transformer class needs to map the Transformer output to linear to local confidence. For example, the sigmoid activation function can be used to map the Transformer output to the range [0, 1], and the mapping result is the local confidence.

[0180] Continuing with the aforementioned application scenario, the target loss function and the optimizer are defined. For example, the Adam optimizer is chosen to optimize the parameters of the initial confidence inference model. The forward and backward propagation methods of the initial confidence inference model are defined. For instance, the forward method is defined as: "Embedding the training input into the transformer encoder using linear embedding, and obtaining the inference location confidence by mapping the output of the initial confidence inference model to Linear." The backward method is defined as: "Inputting the inference location confidence and the historical location confidence from the training data into the target loss function, calculating the training loss (denoted as loss), and using the Adam optimizer to optimize the model parameters." This process initializes the initial confidence inference model.

[0181] Continuing with the aforementioned application scenario, we define the number of iterations (denoted as epochs). For example, we can define epochs as 50. In each iteration, all training data can be completely fed into the initial confidence inference model for training. Within each iteration (epoch), the training data can be divided into multiple batches (denoted as batches). For example, if there are 5000 samples in the training data, we can divide the training data into 50 batches, with each batch containing 100 samples.

[0182] Continuing in the aforementioned application scenario, the MapDataset class is called to load training data in batches, dividing the training data into multiple batches. The multi-factor sequences from the training data in each batch are input into the initial confidence inference model. The forward method is called to calculate the confidence inference, obtaining the inference location confidence corresponding to that batch. Further, the backward method is called, inputting the inference location confidence and the historical location confidence corresponding to that batch into the target loss function to calculate the training loss corresponding to that batch. Based on this training loss, the model parameters of the initial confidence inference model are adjusted (i.e., the parameters of the initial confidence inference model are updated in reverse).

[0183] Continuing with the above application scenario, determine whether training for all batches in the current iteration round is complete. If training for all batches in the current iteration round is complete, print out the loss value of the current iteration round (e.g., use the loss value of the last batch in the current iteration round as the loss value of the current iteration round). If training for all batches in the current iteration round is not complete, continue to train the initial confidence inference model using the samples of the next batch in the current iteration round until all iteration rounds are completed and the target confidence inference model is obtained.

[0184] The optional model training method provided in this application embodiment achieves the following technical effects: by using supervised learning, the inference location confidence is compared with the historical location confidence in the training data, the training loss is calculated using the target loss function, and then the model parameters are adjusted to optimize the model performance, so that the target confidence inference model can more accurately infer the real-time vehicle positioning data and improve the accuracy of the real-time location confidence.

[0185] Example 2

[0186] This application also provides a confidence inference method, please refer to the embodiments therein. Figure 5 The confidence inference method includes the following steps:

[0187] S51: Obtain real-time vehicle location data;

[0188] S52: Based on real-time positioning data, perform positioning environment assessment calculations to obtain multiple factor sequences;

[0189] S53: Use the target confidence inference model to infer and calculate the multi-factor sequence to obtain real-time location confidence;

[0190] The target confidence inference model is trained using any of the above model training methods.

[0191] In one exemplary application scenario, please refer to Figure 6 The aforementioned real-time positioning data may include: real-time visual semantic information, real-time inertial measurement unit information, real-time chassis information, and real-time map data. The system acquires the vehicle's real-time positioning data; based on this data, it performs a positioning environment assessment calculation to obtain a multi-factor sequence. Specifically, it calculates a reprojection factor using real-time visual semantic information and real-time map data, a road structure factor using real-time visual semantic information, a map region factor using real-time map data, a matching ratio factor using visual semantic information and real-time map data, and a relative motion factor using real-time inertial measurement unit information, real-time chassis information, and real-time map data. Then, using a preset factor sorting, it sorts and combines the reprojection factor, road structure factor, map region factor, matching ratio factor, and relative motion factor to construct a multi-factor sequence. Further, it uses a target confidence inference model to infer and calculate the multi-factor sequence to obtain the real-time positioning confidence. The calculation methods for the reprojection factor, road structure factor, map region factor, matching ratio factor, and relative motion factor can be referred to the previous description and will not be repeated here.

[0192] In another exemplary application scenario, please refer to Figure 7The system acquires real-time vehicle location data and uses this data to construct a multi-factor sequence. Then, it loads a target confidence inference model by inputting the multi-factor sequence into the model. The target confidence inference model calls a forward method to perform inference calculations on the multi-factor sequence and outputs the real-time location confidence. The process of the target confidence inference model calling the forward method to perform inference calculations on the multi-factor sequence can be referred to the previous description and will not be repeated here.

[0193] The confidence inference method provided in this application embodiment achieves the following technical effects: According to the aforementioned model training method, in the process of training the target confidence inference model, by performing a positioning environment assessment calculation on the vehicle's historical positioning data, multiple factors related to the positioning confidence are obtained. These multiple factors are divided into a first factor set and a second factor set, and the first annotation information corresponding to the first factor set and the second annotation information corresponding to the second factor set are obtained respectively. By combining the first annotation information and the second annotation information, more accurate training data is constructed. The target confidence inference model trained using this training data can not only be applied to complex and ever-changing road driving environments, enhancing the generalization of the confidence inference method, but also perform more accurate inference calculations on multiple factor sequences, improving the accuracy of real-time positioning confidence.

[0194] Example 3

[0195] This application also provides a model training device 80, please refer to... Figure 8 The system includes: an evaluation module 801, used to perform positioning environment evaluation calculations based on the vehicle's historical positioning data to obtain a first factor set and a second factor set, wherein the correlation between the first factor set and the positioning reliability is higher than that between the second factor set and the positioning reliability; a calculation module 802, used to perform statistical calculations based on the first factor set to obtain first annotation information; an analysis module 803, used to perform judgment analysis based on the second factor set and the vehicle's driving performance data to determine second annotation information; a construction module 804, used to construct training data using the first factor set, the second factor set, the first annotation information, and the second annotation information, wherein the training data includes multiple factor sequences and historical positioning reliability; and a training module 805, used to train the initial confidence inference model using the training data to obtain a target confidence inference model, wherein the target confidence inference model is used to infer and determine the real-time positioning reliability corresponding to the vehicle's real-time positioning data.

[0196] This application also provides a confidence inference device 90, please refer to... Figure 9The system includes: an acquisition module 901 for acquiring real-time vehicle positioning data; a calculation module 902 for performing positioning environment assessment calculations based on the real-time positioning data to obtain a multi-factor sequence; and an inference module 903 for using a target confidence inference model to perform inference calculations on the multi-factor sequence to obtain real-time positioning confidence. The target confidence inference model is trained using any of the above model training methods.

[0197] It should be noted that the optional implementation methods of this embodiment can be found in the relevant descriptions in the foregoing embodiments, and will not be repeated here.

[0198] Example 4

[0199] This application also provides an autonomous driving control system 1010, please refer to... Figure 10 The system includes: an acquisition unit 1011 for acquiring real-time positioning data of the autonomous vehicle; a calculation unit 1012 for performing positioning environment assessment calculations based on the real-time positioning data to obtain a multi-factor sequence; an inference unit 1013 for performing inference calculations on the multi-factor sequence using a target confidence inference model to obtain real-time positioning confidence; a decision unit 1014 for making autonomous driving decisions based on real-time positioning data and real-time positioning confidence, and generating driving commands; and a control unit 1015 for controlling the autonomous vehicle to perform autonomous driving operations according to the driving commands; wherein the target confidence inference model is trained using any of the above model training methods.

[0200] It should be noted that the optional implementation methods of this embodiment can be found in the relevant descriptions in the foregoing embodiments, and will not be repeated here.

[0201] Example 5

[0202] This application also provides an electronic device 1100, please refer to... Figure 11 It includes a memory 1110 and a processor 1120, wherein the memory 1110 is used to store computer programs; and the processor 1120 is used to execute the programs stored in the memory 1110 to implement the methods described in any embodiment of this application.

[0203] The electronic device provided in this application embodiment achieves the following technical effects: In the process of training the target confidence inference model, by performing positioning environment evaluation calculation on the vehicle's historical positioning data, multiple factors related to the positioning confidence are obtained. These multiple factors are divided into a first factor set and a second factor set, and the first annotation information corresponding to the first factor set and the second annotation information corresponding to the second factor set are obtained respectively. By combining the first annotation information and the second annotation information, more accurate training data is constructed. The target confidence inference model trained using this training data can more accurately infer and determine the real-time positioning confidence corresponding to the vehicle's real-time positioning data in a complex and ever-changing road driving environment. Using this electronic device, more accurate real-time positioning confidence can be obtained, thus improving the performance of the electronic device.

[0204] Those skilled in the art will understand that Figure 11 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, and mobile internet devices (MIDs) and other terminal devices. Figure 11 This does not limit the structure of the aforementioned electronic device. For example, electronic device 1100 may also include components that are more... Figure 11 The more or fewer components shown (e.g., network interface, display device, etc.), or having the same Figure 11 The different configurations shown.

[0205] Example 6

[0206] This application also provides a vehicle 120, please refer to... Figure 12 The system includes an on-board memory 1210 and an on-board processor 1220. The on-board memory 1210 is used to store computer programs, and the on-board processor 1220 is used to execute the computer programs stored in the memory to implement the methods described in any embodiment.

[0207] Those skilled in the art will understand that, similarly, the aforementioned vehicle can also be a computing terminal. Figure 13 This is a hardware structure block diagram of a computing terminal used to implement the methods described in any embodiment of this application, such as... Figure 13As shown, the computing terminal 130 (e.g., a computer terminal, a mobile smart terminal, a vehicle terminal, or a cloud computing virtual terminal) may include: one or more processors 1302 (e.g., processors 1302a, 1302b, ..., 1302n), a memory 1304 for storing data, and a transmission device 1306 for implementing communication functions. The processor 1302 may include, but is not limited to, processing components such as a microprocessor (MCU) or a field programmable gate array (FPGA).

[0208] The aforementioned computing terminal 130 may further include: a display, an input / output interface, a Universal Serial Bus (USB) port (which can be used as one of the ports of a computer bus, not shown in the figure), a network interface (not shown in the figure), a power supply (not shown in the figure), and a camera (not shown in the figure).

[0209] It should be noted that one or more processors 1302 and / or other data processing circuits in the aforementioned computing terminal 130 may be wholly or partially embodied in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuitry may be a single, independent processing module, or may be wholly or partially integrated into any other element in the computing terminal 130 (or mobile device).

[0210] The memory 1304 can be used to store software programs and modules of application software, such as program instructions and data storage devices corresponding to the path planning method in this embodiment. The processor 1302 executes various functional applications and data processing by running the software programs and modules stored in the memory 1304, thereby realizing the aforementioned path planning method. The memory 1304 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1304 may further include memory remotely located relative to the processor 1302, and these remote memories can be connected to the vehicle terminal 130 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0211] The transmission device 1306 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the vehicle terminal 130. In one example, the transmission device 1306 includes a network interface controller (NIC) and a network interface, which can be connected to other network devices via a base station to communicate with the Internet. The transmission device 1306 can use wired and / or wireless network connections for data communication. In one example, the transmission device 1306 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0212] The input / output interface can be connected to the corresponding input / output device of the computing terminal 130 to realize input / output functions. This input / output device may include, but is not limited to, a cursor control device, a keyboard, and a display. The aforementioned input / output device may be built into the computing terminal 130 or be an external device connected to the computing terminal 130.

[0213] Those skilled in the art will understand that Figure 13 The structure of the computing terminal 130 shown is for illustrative purposes only and does not impose strict limitations on the structure of the computing terminal 130 described above. For example, the computing terminal 130 may also include components such as... Figure 13 The more or fewer components shown, or the computing terminal 130 may have the same Figure 13 The components are shown in different categories.

[0214] Example 7

[0215] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods described in any embodiment of this application.

[0216] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0217] The computer-readable storage medium provided in this application embodiment achieves the following technical effects: In the process of training the target confidence inference model, by performing positioning environment evaluation calculation on the vehicle's historical positioning data, multiple factors related to the positioning confidence are obtained. These multiple factors are divided into a first factor set and a second factor set, and the first annotation information corresponding to the first factor set and the second annotation information corresponding to the second factor set are obtained respectively. By combining the first annotation information and the second annotation information, more accurate training data is constructed. The target confidence inference model trained using this training data can more accurately infer and determine the real-time positioning confidence corresponding to the vehicle's real-time positioning data in a complex and ever-changing road driving environment, enabling the computer-readable storage medium to provide a more accurate real-time positioning confidence calculation function.

[0218] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0219] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0220] In this application, "multiple" refers to two or more.

[0221] In this application, unless otherwise expressly defined, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0222] The terms “first,” “second,” “third,” “fourth,” etc., in this application (if present) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0223] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0224] Unless otherwise specified, all steps in this application may be performed sequentially or randomly. For example, if the method includes steps A and B, it means that the method may include steps A and B performed sequentially, or it may include steps B and A performed sequentially. For example, if the method may also include step C, it means that step C may be added to the method in any order. For example, the method may include steps A, B, and C, or it may include steps A, C, and B, or it may include steps C, A, and B, etc.

[0225] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A model training method, characterized in that, include: Based on the vehicle's historical positioning data, a positioning environment assessment calculation is performed to obtain a first factor set and a second factor set. The first factor set has a higher correlation with the positioning confidence than the second factor set has with the positioning confidence. Statistical calculations are performed based on the first factor set to obtain the first annotation information; The second annotation information is determined by analyzing the second factor set and the vehicle's driving performance data. Training data is constructed using the first factor set, the second factor set, the first annotation information, and the second annotation information, wherein the training data includes multiple factor sequences and historical location reliability; The initial confidence inference model is trained using the training data to obtain a target confidence inference model, wherein the target confidence inference model is used to infer and determine the real-time positioning confidence corresponding to the real-time positioning data of the vehicle.

2. The method according to claim 1, characterized in that, The first factor set includes a matching ratio factor. Based on the historical positioning data, a positioning environment assessment calculation is performed to obtain the first factor set, which includes: The historical positioning data is parsed to obtain vehicle pose data, road perception data, and road map data. The road perception data is used to represent multiple perception elements determined by the vehicle after perceiving the road area, and the road map data is used to represent multiple map elements corresponding to the road area. Based on the vehicle pose data, the road perception data, and the road map data, the matching residual calculation is performed on the multiple perception elements and the multiple map elements to obtain multiple sets of residual data. Based on the multiple sets of residual data and the preset residual threshold, determine the first number of successfully associated sensing elements among the multiple sensing elements; A first ratio is determined based on the first quantity and the total quantity of the plurality of sensing elements; Based on the road perception data and the road map data, a second number of successfully matched lanes among multiple perception lanes is determined, wherein the multiple perception lanes are determined by the perception lane lines in the road perception data, and the successfully matched lanes are determined by the deviation value between the perception lane lines and the map lane lines in the road map data. The second ratio is determined based on the second quantity and the number of lanes in the road map data; The first ratio and the second ratio are combined and statistically calculated to obtain the matching ratio factor, wherein the matching ratio factor is used to characterize the degree of matching between the perceived information of road elements and the map information.

3. The method according to claim 1, characterized in that, The first factor set includes a relative motion factor. Based on the historical positioning data, a positioning environment assessment calculation is performed to obtain the first factor set, which includes: The historical positioning data is parsed to obtain vehicle pose data and vehicle driving status signals; The vehicle pose data is analyzed to determine the observed displacement data of the vehicle within the target time range. Using the inertial measurement data and wheel speed data in the vehicle driving state signal, the predicted displacement data of the vehicle within the target time range is calculated; The motion error of the vehicle is calculated based on the observed displacement data, the predicted displacement data, and the target time range. The motion error is normalized and mapped to obtain the relative motion factor, wherein the relative motion factor is used to characterize the degree of difference between the observed motion state and the actual motion state of the vehicle.

4. The method according to claim 1, characterized in that, The second factor set includes road structure factors. Based on the historical positioning data, a positioning environment assessment calculation is performed to obtain the second factor set, which includes: The historical positioning data is parsed to obtain road perception data, wherein the road perception data includes perception information of multiple road elements within the road area, and the multiple road elements include at least: road edge elements, lane lines, stop lines and indicator signs; Based on the road perception data and the element completeness scoring rules, the multiple road elements are scored to obtain the scoring results; The scoring results are combined and statistically calculated to obtain the road structure factor, wherein the road structure factor is used to characterize the vehicle's perception completeness of the multiple road elements.

5. The method according to claim 1, characterized in that, The second factor set includes map area factors. Based on the historical positioning data, a positioning environment assessment calculation is performed to obtain the second factor set, which includes: The historical location data is parsed to obtain road map data, wherein the road map data includes the road type and number of lanes corresponding to the road area where the vehicle is located; Based on the road map data and preset road scoring rules, determine the type score corresponding to the road type and the quantity score corresponding to the number of lanes; The type score and the quantity score are combined and statistically calculated to obtain the map area factor, wherein the map area factor is used to characterize the degree of influence of the road map data on the location reliability of the vehicle within the road area.

6. The method according to claim 1, characterized in that, The first annotation information is the first annotation confidence level. Based on statistical calculations using the first factor set, the first annotation information includes: Scores are calculated for multiple first factors in the first factor set according to the labeled score mapping relationship to obtain multiple confidence scores corresponding to the multiple first factors respectively, wherein the labeled score mapping relationship is determined according to the factor type of the multiple first factors; The first labeled confidence level is obtained by averaging the multiple confidence scores.

7. The method according to claim 6, characterized in that, The plurality of first factors includes: a reprojection factor, a matching ratio factor, and a relative motion factor. The plurality of confidence scores includes a first confidence score, a second confidence score, and a third confidence score. Scores are calculated for the plurality of first factors according to the labeled score mapping relationship to obtain the plurality of confidence scores, including: According to the labeled score mapping relationship, the first scoring function corresponding to the reprojection factor and the second scoring function corresponding to the relative motion factor are determined. The first scoring function is set by the normal distribution of data error of the preset data cases corresponding to the reprojection factor, and the second scoring function is set by the normal distribution of data error of the preset data cases corresponding to the relative motion factor. The first confidence score is calculated using the reprojection factor and the first scoring function; The second confidence score is calculated using the relative motion factor and the second scoring function; The third confidence score is determined based on the percentage value corresponding to the matching ratio factor.

8. The method according to claim 1, characterized in that, The second annotation information is the second annotation confidence level. Based on the second factor set and the driving performance data, a judgment analysis is performed to determine that the second annotation information includes: Using the driving performance data and preset abnormal performance types, confidence levels are assigned to multiple second factors in the second factor set to obtain the second labeled confidence level.

9. The method according to claim 8, characterized in that, Using the driving performance data and the abnormal performance types, confidence levels are assigned to the multiple second factors to obtain the second-label confidence levels, including: Using the driving performance data, determine whether the vehicle in the road area corresponding to the plurality of second factors exhibits the abnormal driving performance type, and obtain a determination result; Based on the determination result, the confidence level of the multiple second factors is binarized to obtain the second labeled confidence level.

10. The method according to any one of claims 1 to 9, characterized in that, The training data is constructed using the first factor set, the second factor set, the first annotation information, and the second annotation information, including: The multivariate factor sequence is constructed using a preset factor sort, multiple first factors in the first factor set, and multiple second factors in the second factor set; Based on the first annotation information and the second annotation information, the historical location confidence corresponding to the multivariate factor sequence is calculated; The training data is constructed by using the multi-factor sequence as the training input and the historical location confidence as the training supervision.

11. The method according to claim 10, characterized in that, Based on the first annotation information and the second annotation information, the historical location reliability corresponding to the multivariate factor sequence is calculated as follows: The historical location confidence is calculated based on the binarized values ​​of the first label confidence in the first label information and the second label confidence in the second label information.

12. The method according to claim 1, characterized in that, The initial confidence inference model is trained using the training data to obtain the target confidence inference model, which includes: The multivariate factor sequences in the training data are input into the initial confidence inference model to perform confidence inference calculation, thereby obtaining the inference location confidence. The training loss is calculated using the inference location confidence, the historical location confidence in the training data, and the target loss function. Based on the training loss, the model parameters of the initial confidence inference model are adjusted to obtain the target confidence inference model, wherein the target confidence inference model and the initial confidence inference model use the same model structure, and the embedding layer in the model structure takes the multinomial factor sequence as input.

13. A confidence-based reasoning method, characterized in that, include: Obtain real-time vehicle location data; Based on the real-time positioning data, a positioning environment assessment calculation is performed to obtain a series of multiple factors. The target confidence inference model is used to infer and calculate the multi-factor sequence to obtain real-time location confidence. The target confidence inference model is obtained by training using the model training method of any one of claims 1 to 12.

14. An electronic device, characterized in that, Including processor and memory, among which, Memory, used to store computer programs; A processor for executing a program stored in memory to implement the method described in any one of claims 1 to 13.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1 to 13.