Data processing method, readable storage medium and electronic device
By comparing the matching degree of radar detection data collected at different times, the problem of low efficiency and insufficient accuracy in manually determining difficult case data is solved, automatic and accurate difficult case data identification is achieved, and the performance of the radar detection model is improved.
Patent Information
- Application Number
- PCT/CN2023/118038
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-22
- Filing Date
- 2023-09-11
- Publication Date
- 2024-08-29
AI Technical Summary
In the existing technology, manually determining difficult example data in radar detection data is inefficient and the results are greatly affected by manual subjectivity, which affects the accuracy of model inference results.
By inputting the radar detection data collected by the vehicle at different times into the model, the matching degree is compared, and the matching degree between the radar detection results and other times or visual detection results is used to determine the difficult case data, thereby reducing manual intervention and improving accuracy and efficiency.
Difficult example data can be accurately determined without manual intervention, which improves the quality and efficiency of model training data and improves the inference accuracy of the radar detection model.
Smart Images

Figure CN2023118038_29082024_PF_FP_ABST
Abstract
Description
Data processing method, readable storage medium, and electronic device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 22, 2023, with application number 202310183088.4 and application name “Data processing method, readable storage medium and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of artificial intelligence technology, and in particular to a data processing method, a readable storage medium, and an electronic device. Background Art
[0003] With the development of radar technology, radar is increasingly being used in electronic devices. For example, vehicles are often equipped with radars, and they can use trained models to infer obstacle information in their environment based on radar detection data. The training data the model relies on during training directly affects the accuracy of the obstacle information it infers. To improve the accuracy of the model's inference results, it is often necessary to iteratively train the model based on radar detection data (hereinafter referred to as hard data) that produces less accurate inference results.
[0004] Currently, the hard data for a model is usually determined manually, which is inefficient and subject to human subjective influence. Therefore, how to determine the hard data in radar detection data is an urgent problem to be solved.
[0005] Summary of the Invention
[0006] In view of this, embodiments of the present application provide a data processing method, a readable storage medium, and an electronic device. By comparing a test result obtained by inferring a certain model on a certain test data with other test results, it is determined whether the test data is hard data for the model, which is conducive to improving the accuracy and efficiency of determining hard data.
[0007] In a first aspect, the present application provides a data processing method, comprising: inputting first detection data collected by a vehicle at a first moment using a first detection device into a first model to obtain a first obstacle detection result of the vehicle; matching the first obstacle detection result with the second obstacle detection result, and determining whether the first detection data is difficult example data for the first model based on the matching result, wherein when the first detection data is difficult example data for the first model, it indicates that the accuracy of the first obstacle detection result does not meet preset requirements.
[0008] In other words, this application determines whether the first detection data is difficult data for the first model by matching the first obstacle detection result obtained by the first model based on the first detection data with other obstacle detection results. This eliminates the need for manual intervention, and the determination result is unaffected by subjective human experience, which helps improve the accuracy and efficiency of determining difficult data.
[0009] In a possible implementation of the first aspect, the second obstacle detection result includes a third obstacle detection result generated by the first model based on second detection data collected by the first detection device at the second moment, and / or a fourth obstacle detection result generated based on third detection data collected by the second detection device at the third moment.
[0010] That is to say, in some implementations, the first obstacle detection result can be matched with the detection result obtained by the first model at other times based on the detection data of the first detection device, and / or the detection result obtained by other means other than the first model based on the detection data of a detection device other than the first detection device at the first moment or other moments, to determine whether the first detection data is difficult example data for the first model, which is conducive to further improving the accuracy of the determination result.
[0011] In a possible implementation of the first aspect above, determining whether the first detection data is hard-example data for the first model based on the matching result includes: determining that the first detection data is hard-example data for the first model when a first matching degree between the first obstacle detection result and the third obstacle detection result, and / or a second matching degree between the first obstacle detection result and the fourth obstacle detection result meet a hard-example condition.
[0012] In a possible implementation of the first aspect above, the above-mentioned difficult example conditions include at least one of the following conditions: at least one first matching degree is less than a first preset matching degree; at least one second matching degree is less than a second preset matching degree; the weighted sum of each first matching degree and each second matching degree is less than a preset weighted matching degree; the maximum value of each first matching degree and each second matching degree is less than a preset maximum matching degree; the average value of each first matching degree and each second matching degree is less than a preset average matching degree.
[0013] In a possible implementation of the first aspect, the first matching degree is determined based on obstacle information within the comparison area in the first obstacle detection result and obstacle information within the comparison area in the third obstacle detection result; and the second matching degree is determined based on obstacle information within the comparison area in the first obstacle detection result and obstacle information within the comparison area in the fourth obstacle detection result.
[0014] That is to say, in some implementations, only the obstacle information within the comparison area can be matched without paying attention to the obstacle information outside the comparison area. This can avoid the obstacle information outside the comparison area affecting the accuracy of the matching results, which is conducive to further improving the accuracy of determining whether the first detection data is difficult example data.
[0015] In a possible implementation of the first aspect, the first obstacle detection result includes three-dimensional contour information of N obstacles, the third obstacle detection result includes three-dimensional contour information of M objects, and the fourth obstacle detection result includes two-dimensional contour information of P obstacles.
[0016] In a possible implementation of the first aspect, the first matching degree is determined by the degree of match between the three-dimensional contour information of the obstacle within the comparison area among the N obstacles and the three-dimensional contour information of the obstacle within the comparison area among the M obstacles. The second matching degree is determined by the degree of difference between the projection of the three-dimensional contour information of the obstacle within the comparison area among the N obstacles on the plane containing the fourth obstacle detection result and the two-dimensional contour information of the obstacle within the comparison area among the P obstacles.
[0017] In a possible implementation of the first aspect above, the comparison area includes: an area composed of boundary points on the polar axis of each polar angle in a polar coordinate system with the coordinate center as the pole in the top view of the three-dimensional contour information of the N obstacles, wherein the coordinate center includes one of the center of the vehicle, the center of gravity of the vehicle, and the coordinate center of the first detection device; wherein the boundary point is determined in the following manner: when the polar axis of the first polar angle intersects with a static obstacle among the N obstacles, the intersection is used as the boundary point of the polar axis of the first polar angle, and the first polar angle is any polar angle in the polar coordinate system; when the polar axis of the first polar angle does not intersect with the static obstacle among the N obstacles, the intersection of the polar axis of the first polar angle and the edge of the road surface or the intersection of the polar axis of the first polar angle and the boundary of the top view is used as the boundary point of the polar axis of the first polar angle.
[0018] In a possible implementation of the first aspect, the interval between the first moment and the second moment is less than a first preset duration, and the interval between the first moment and the third moment is less than a second preset duration.
[0019] That is, in some implementations, the interval between the first moment and the second moment is less than a first preset duration, and the interval between the first moment and the third moment is less than a second preset duration. For example, the first moment and the second moment may be two consecutive moments when the first detection device collects data, and the third moment may be the same moment as the first or second moment. This ensures the similarity of the vehicle's environment when collecting the first, second, and third detection data, thereby improving the accuracy of the determination results.
[0020] In a possible implementation of the first aspect, the first detection device includes a radar of the vehicle, the second detection device includes a camera of the vehicle, and the first model is a radar detection model.
[0021] In a second aspect, the present application provides a readable storage medium, which stores instructions. When the instructions are executed by an electronic device, the electronic device implements the data processing method provided in the above-mentioned first aspect and any possible implementation of the above-mentioned first aspect.
[0022] In a third aspect, the present application provides an electronic device comprising: a memory for storing instructions; and at least one processor for executing instructions so that the electronic device implements the data processing method provided in the first aspect and any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] FIG1 shows a schematic diagram of determining difficult data using an autonomous driving function of a vehicle according to some embodiments of the present application;
[0024] FIG2 is a schematic diagram showing a process of a data processing method according to some embodiments of the present application;
[0025] FIG3 shows a functional block diagram of a vehicle 100 according to some embodiments of the present application;
[0026] FIG4 is a schematic flow chart showing a data processing method according to some embodiments of the present application;
[0027] FIG5A is a schematic diagram showing an environment in which a vehicle 100 is located at a first moment according to some embodiments of the present application;
[0028] FIG5B is a schematic diagram showing a first radar detection result corresponding to obstacle information of an environment in which the vehicle 100 is located at a first moment according to some embodiments of the present application;
[0029] FIG5C is a schematic diagram showing a second radar detection result corresponding to obstacle information of an environment in which the vehicle 100 is located at a second moment according to some embodiments of the present application;
[0030] FIG6 is a schematic diagram showing a top view of a first radar detection result according to some embodiments of the present application;
[0031] FIG7 is a schematic flow chart showing another data processing method according to some embodiments of the present application.
[0032] FIG8 is a schematic diagram showing a visual detection result corresponding to obstacle information of an environment in which a vehicle 100 is located at a first moment according to some embodiments of the present application;
[0033] FIG9 is a schematic diagram showing a process of determining a second matching degree according to some embodiments of the present application;
[0034] FIG10 is a flow chart showing another data processing method according to some embodiments of the present application;
[0035] FIG11 is a flow chart showing another data processing method according to some embodiments of the present application. DETAILED DESCRIPTION
[0036] Illustrative embodiments of the present application include, but are not limited to, a data processing method, a readable storage medium, and an electronic device.
[0037] The technical solution of this application is introduced below with reference to the accompanying drawings.
[0038] In order to solve the problem that manually determining the difficult data of the model is inefficient and the determined difficult data is greatly affected by human subjectivity, in some embodiments, the vehicle's automatic driving function can be used to determine the difficult data.
[0039] For example, referring to Figure 1, when the driver is manually driving the vehicle, the vehicle first uses the autonomous driving function to infer the obstacle information of the vehicle's environment through the radar detection model based on the vehicle's driving data, such as the radar detection data detected by the vehicle's radar. Then, based on the obstacle information of the vehicle's environment, the vehicle obtains the autonomous driving decision (such as the operation that the vehicle should perform, such as acceleration, deceleration, braking, turning, etc., determined by the autonomous driving function). Finally, the autonomous driving decision and the manual driving decision (such as the actual operation of the vehicle by the driver) are compared, and when the autonomous driving decision and the manual driving decision are different, the vehicle's driving data (such as radar detection data) is determined as the difficult example data of the radar detection model.
[0040] However, since manual driving decisions are greatly influenced by the driver's experience and driving purpose, manual driving decisions are usually not the optimal decisions for the vehicle in a certain environment. As a result, autonomous driving decisions and manual driving decisions are usually different, and it is easy to judge good example data (that is, data with more accurate results obtained by model inference) as difficult example data, resulting in lower accuracy of difficult example data.
[0041] In view of this, an embodiment of the present application provides a data processing method for determining difficult data of a radar detection model. In the data processing method of the present application, the obstacle detection result obtained by inputting the radar detection data measured by the radar at the first moment during vehicle driving into the radar detection model is matched with the obstacle detection results obtained by inputting the radar detection data of the radar at other moments into the radar detection model, and / or the obstacle detection result obtained by inputting the radar detection result measured by the radar at the detection moment into the radar detection model is matched with other obstacle detection results (for example, visual detection results obtained based on visual detection data of the vehicle's camera), and whether the obstacle detection result obtained after the radar monitoring result at the first moment is input into the radar detection model is determined based on the matching result.
[0042] For example, when a vehicle is driving, the radar detection data of the radar at the first moment can be input into the radar detection model to determine the radar detection result of the vehicle's environment at the first moment (obstacle information of the vehicle's environment obtained using the radar detection data). Then, at least one first matching degree between the radar detection result of the vehicle's environment at the first moment and the radar detection result of the vehicle at at least one second moment will be determined, as well as at least one second matching degree between the radar detection result of the vehicle's environment at the first moment and the visual detection result at at least one third moment (obstacle information of the vehicle's environment obtained using visual detection data captured by a camera). Finally, when each first matching degree and / or each second matching degree meets the hard-case condition, the radar detection data of the vehicle's radar at the first moment is determined to be hard-case data of the radar detection model.
[0043] That is to say, when the radar detection data at the first moment is difficult example data of the radar model, it indicates that the accuracy of the radar detection result of the environment at the first moment does not meet the preset requirements, for example, the accuracy is lower than the preset accuracy.
[0044] Based on the above method, since the difficult example data is determined by the first matching degree of the radar detection results corresponding to the radar detection data at multiple moments, and / or the second matching degree between the radar detection results and the visual detection results at at least one moment, it does not require manual intervention and is not affected by human subjective factors, which is conducive to improving the efficiency of mining difficult example data and the accuracy of difficult example data.
[0045] It is understood that in some embodiments, the second moment can be any moment with an interval less than a predetermined time period from the first moment. For example, the second moment can be any moment with an interval less than 200 milliseconds from the first moment. For example, in some implementations, when there is only one second moment, the first moment and the second moment can be two consecutive moments when the radar collects data. In this case, the interval between the first moment and the second moment can be less than 200 milliseconds, which means that the radar collects data at a frequency greater than 5 Hz.
[0046] It is understood that the third moment can be any moment whose interval between the first moment and the second moment is less than the preset time length. For example, the second moment can be any moment whose interval between the second moment and the first moment is less than 200 milliseconds. For example, in some implementations, when there is only one third moment, the third moment can be the same as the first moment.
[0047] It will be appreciated that in some embodiments, radar detection results can be obtained by inputting radar detection data into a pre-trained radar detection model and inferring using the radar detection model. For example, the radar detection model can be any model capable of inferring obstacle information from radar detection data, such as a neural network or deep learning-based target detection model. The type and form of the radar detection model are not limited herein.
[0048] It is understood that in some embodiments, visual detection results can be obtained by inputting visual detection data (e.g., images, videos) into a pre-trained visual detection model and using the visual detection model to infer. For example, the visual detection model can be any model that can infer obstacle information from the visual detection data, such as a neural network or deep learning-based object detection model. The type and form of the visual detection model are not limited herein.
[0049] It is understood that in some embodiments, the value of the first matching degree increases as the degree of matching between the vehicle's radar detection result at the first moment and the vehicle's radar detection result at the second moment increases; the value of the second matching degree increases as the degree of matching between the vehicle's radar detection result at the first moment and the vehicle's visual detection result at the third moment increases. Based on this, in some embodiments, the above-mentioned difficult example conditions may include at least one of the following conditions:
[0050] At least one first matching degree is less than a first preset matching degree;
[0051] At least one second matching degree is less than a second preset matching degree;
[0052] A weighted sum of the first matching degrees and the second matching degrees is less than a preset weighted matching degree;
[0053] The maximum value of each first matching degree and each second matching degree is less than a preset maximum matching degree;
[0054] An average value of the first matching degrees and the second matching degrees is less than a preset average matching degree.
[0055] It can be understood that in other embodiments, the above-mentioned difficult condition may also include more or fewer conditions, which is not limited here.
[0056] For ease of description, the following introduces the technical solution of the present application by taking as an example the first matching degree between the radar detection result at the first moment and the radar detection result of the vehicle at the second moment, and / or the second matching degree between the radar detection result at the first moment and the visual detection result of the environment in which the vehicle is located at the first moment to determine whether the radar detection data at the first moment is difficult example data of the radar detection model.
[0057] For example, FIG2 shows a process diagram of a data processing method according to some embodiments of the present application.
[0058] As shown in Figure 2, while driving, vehicle 100 can use its radar to obtain radar detection data of its environment at a first moment and a second moment, respectively, and use its camera to obtain visual detection data of its environment at a first moment. Vehicle 100 then inputs the visual detection data and radar detection data into a visual detection model and a radar detection model, respectively, to obtain visual detection results and radar detection results corresponding to obstacle information in vehicle 100's environment. Finally, vehicle 100 inputs the visual detection results and radar detection results into a hard example mining module. The hard example mining module determines that the radar detection data at the first moment is hard example data based on a first matching degree between the radar detection result at the first moment and the radar detection result of the vehicle at the second moment, and / or a second matching degree between the radar detection result at the first moment and the visual detection result of the vehicle at the first moment, if the first matching degree and / or the second matching degree meet a hard example condition.
[0059] If the vehicle 100 determines that the radar detection data at the first moment is difficult data, the annotation module can be used to manually annotate the obstacle information in the first radar detection data and add the annotated data to the training set. In this way, the radar detection model can be iteratively trained using the vehicle 100 or other electronic devices to improve the accuracy of the radar detection results obtained by the radar detection model based on the radar detection data.
[0060] For ease of understanding, the functional block diagram of vehicle 100 is first introduced below.
[0061] FIG3 shows a functional block diagram of a vehicle 100 according to some embodiments of the present application.
[0062] In some embodiments, vehicle 100 is configured for a fully or partially autonomous driving mode (i.e., autonomous driving functionality of vehicle 100 is used to achieve autonomous driving of vehicle 100). For example, when vehicle 100 is configured for a partially autonomous driving mode, vehicle 100 can also, through human operation, determine the current state of the vehicle and its surroundings, determine the possible behavior of at least one other vehicle in the surroundings, and determine a confidence level corresponding to the likelihood that the other vehicle will perform the possible behavior, while in autonomous driving mode, and control vehicle 100 based on the determined information. While in autonomous driving mode, vehicle 100 can be configured to operate without human interaction. Vehicle 100 may include various subsystems, such as a travel system 102, a sensor system 104, a control system 106, one or more peripheral devices 108, as well as a power source 110, a computer system 112, and a user interface 116. Alternatively, vehicle 100 may include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and component of vehicle 100 may be interconnected via wired or wireless connections.
[0063] The propulsion system 102 may include components that provide powered locomotion for the vehicle 100. In some embodiments, the propulsion system 102 may include an engine 118, an energy source 119, a transmission 120, and wheels / tires 121. The engine 118 may be an internal combustion engine, an electric motor, an air compression engine, or another combination of engines, such as a hybrid engine consisting of a gasoline engine and an electric motor, or a hybrid engine consisting of an internal combustion engine and an air compression engine. The engine 118 converts the energy source 119 into mechanical energy.
[0064] Examples of energy source 119 include gasoline, diesel, other petroleum-based fuels, propane, other compressed gas-based fuels, ethanol, solar panels, batteries, and other sources of electricity. Energy source 119 may also provide energy to other systems of vehicle 100.
[0065] The transmission 120 can transmit mechanical power from the engine 118 to the wheels 121. The transmission 120 may include a gearbox, a differential, and a drive shaft. In some embodiments, the transmission 120 may also include other components, such as a clutch. The drive shaft may include one or more shafts that can be coupled to one or more wheels 121.
[0066] The sensor system 104 may include several sensors that sense information about the environment surrounding the vehicle 100. For example, the sensor system 104 may include a positioning system 122 (the positioning system may be a GPS system, a BeiDou system, or other positioning systems), an inertial measurement unit (IMU) 124, a radar 126, a laser rangefinder 128, and a camera 130. The sensor system 104 may also include sensors for the internal systems of the monitored vehicle 100 (e.g., an in-vehicle air quality monitor, a fuel gauge, an oil temperature gauge, etc.). Sensor data from one or more of these sensors may be used to detect objects and their corresponding characteristics (position, shape, direction, speed, etc.). This detection and recognition is a key function for the safe operation of the autonomous vehicle 100.
[0067] It is understandable that in other embodiments, the sensor system 104 may further include more sensors, such as ultrasonic sensors, etc., which are not limited here.
[0068] Positioning system 122 may be used to estimate the geographic location of vehicle 100. IMU 124 may be used to sense changes in position and orientation of vehicle 100 based on inertial acceleration. In some embodiments, IMU 124 may be a combination of an accelerometer and a gyroscope.
[0069] The radar 126 can use radio signals to sense objects in the surrounding environment of the vehicle 100 and obtain radar detection data of the environment in which the vehicle 100 is located. In some embodiments, in addition to sensing objects, the radar 126 can also be used to sense the speed and / or heading of the objects.
[0070] In some embodiments, the radar 126 may be a laser radar (LiDAR).
[0071] The laser rangefinder 128 may utilize laser light to sense objects in the environment in which the vehicle 100 is located. In some embodiments, the laser rangefinder 128 may include one or more laser sources, a laser scanner, and one or more detectors, among other system components.
[0072] The camera 130 can be used to capture multiple images of the surrounding environment of the vehicle 100. The camera 130 can be a still camera or a video camera. In some embodiments, the camera 130 can be used to obtain visual detection data of the environment in which the vehicle 100 is located, such as images or videos of the environment in which the vehicle 100 is located, in order to determine obstacle information in the environment in which the vehicle is located.
[0073] Control system 106 controls the operation of vehicle 100 and its components. Control system 106 may include various components, including a steering system 132 , a throttle 134 , a brake unit 136 , a computer vision system 140 , a path control system 142 , and an obstacle avoidance system 144 .
[0074] The steering system 132 is operable to adjust the forward direction of the vehicle 100. For example, in some embodiments, it may be a steering wheel system.
[0075] The throttle 134 is used to control the operating speed of the engine 118 and, in turn, the speed of the vehicle 100 .
[0076] Braking unit 136 is used to control the deceleration of vehicle 100. Braking unit 136 can use friction to slow down wheels 121. In other embodiments, braking unit 136 can convert the kinetic energy of wheels 121 into electric current. Braking unit 136 can also take other forms to slow the rotation speed of wheels 121 to control the speed of vehicle 100.
[0077] The computer vision system 140 can be operated to process and analyze images captured by the camera 130 in order to identify objects and / or features in the environment surrounding the vehicle 100. The objects and / or features may include traffic signals, road boundaries, and obstacles. The computer vision system 140 can use object recognition algorithms, structure from motion (SFM) algorithms, video tracking, and other computer vision technologies. In some embodiments, the computer vision system 140 can be used to map the environment, track objects, estimate the speed of objects, and so on. For example, in some embodiments, the computer vision system 140 can be used to obtain visual detection results corresponding to obstacle information of the environment in which the vehicle 100 is located based on the visual detection data collected by the camera 130 using a pre-trained visual detection model.
[0078] The route control system 142 is used to determine the driving route of the vehicle 100. In some embodiments, the route control system 142 may combine data from sensors, the positioning system 122, and one or more predetermined maps to determine the driving route for the vehicle 100.
[0079] The obstacle avoidance system 144 is used to identify, evaluate, and avoid or otherwise negotiate potential obstacles in the environment of the vehicle 100 .
[0080] Of course, in some examples, the control system 106 may include additional or alternative components other than those shown and described, or may include fewer than some of the components shown.
[0081] Vehicle 100 interacts with external sensors, other vehicles, other computer systems, or users via peripherals 108. Peripherals 108 may include a wireless communication system 146, an onboard computer 148, a microphone 150, and / or a speaker 152.
[0082] In some embodiments, peripheral devices 108 provide a means for a user of vehicle 100 to interact with user interface 116. For example, onboard computer 148 can provide information to the user of vehicle 100. User interface 116 can also operate onboard computer 148 to receive user input. Onboard computer 148 can be operated via a touch screen. In other cases, peripheral devices 108 can provide a means for vehicle 100 to communicate with other devices located within the vehicle. For example, microphone 150 can receive audio (e.g., voice commands or other audio input) from the user of vehicle 100. Similarly, speaker 152 can output audio to the user of vehicle 100.
[0083] The wireless communication system 146 can communicate wirelessly with one or more devices directly or via a communication network. For example, the wireless communication system 146 can use 3G cellular communication, such as code division multiple access (CDMA), global system for mobile communications (GSM) / general packet radio service (GPRS), or 4G cellular communication, such as LTE. Or 5G cellular communication. The wireless communication system 146 can communicate with a wireless local area network (WLAN) using wireless-fidelity (Wi-Fi). In some embodiments, the wireless communication system 146 can communicate directly with the device using an infrared link, Bluetooth, or ZigBee. Other wireless protocols, such as various vehicle communication systems, for example, the wireless communication system 146 may include one or more dedicated short range communications (DSRC) devices, which may include public and / or private data communications between vehicles and / or roadside stations.
[0084] Power source 110 can provide power to various components of vehicle 100. In some embodiments, power source 110 can be a rechargeable lithium-ion or lead-acid battery. One or more battery packs of such batteries can be configured as a power source to provide power to various components of vehicle 100. In some embodiments, power source 110 and energy source 119 can be implemented together, such as in some all-electric vehicles.
[0085] Some or all functions of the vehicle 100 are controlled by a computer system 112. The computer system 112 may include at least one processor 113 that executes instructions 115 stored in a non-transitory computer-readable medium, such as a data storage device 114. The computer system 112 may also be a plurality of computing devices that control individual components or subsystems of the vehicle 100 in a distributed manner.
[0086] Processor 113 can be any conventional processor, such as a commercially available central processing unit (CPU). Alternatively, the processor can be a dedicated device such as an application specific integrated circuit (ASIC) or other hardware-based processor for a specific application. Those skilled in the art will appreciate that the processor, computer, or memory can actually include multiple processors, computers, or memories that may or may not be stored in the same physical housing. For example, the memory can be a hard drive or other storage medium located in a housing different from the computer. Therefore, references to a processor or computer will be understood to include references to a collection of processors or computers or memories that may or may not operate in parallel. Different from using a single processor to perform the steps described herein, some components such as the steering assembly and the deceleration assembly can each have their own processor that only performs calculations related to the functions specific to the component.
[0087] In various aspects described herein, the processor can be located remotely from the vehicle and in wireless communication with the vehicle. In other aspects, some of the processes described herein are performed on a processor disposed within the vehicle while others are performed by a remote processor, including taking the necessary steps to perform a single maneuver.
[0088] In some embodiments, the data storage device 114 may include instructions 115 (e.g., program logic), which may be executed by the processor 113 to perform various functions of the vehicle 100, including those described above. The data storage device 114 may also include additional instructions, including instructions for sending data to, receiving data from, interacting with, and / or controlling one or more of the propulsion system 102, the sensor system 104, the control system 106, and the peripheral devices 108. For example, in some implementations, the instructions 115 may include instructions corresponding to the data processing methods provided in various embodiments of the present application, such as instructions corresponding to the aforementioned difficult example mining module. Furthermore, when the processor 113 executes the instructions 115, it may determine difficult example data based on the data processing methods provided in various embodiments of the present application.
[0089] In addition to the instructions 115, the data storage device 114 may also store data such as road maps, route information, the vehicle's location, direction, speed, and other such vehicle data, as well as other information. This information may be used by the vehicle 100 and the computer system 112 during operation of the vehicle 100 in autonomous, semi-autonomous, and / or manual modes. For example, in some implementations, the data storage device 114 may store difficult data obtained based on the data processing methods provided in various embodiments of the present application.
[0090] The user interface 116 is used to provide information to or receive information from a user of the vehicle 100. Optionally, the user interface 116 may include one or more input / output devices within the set of peripherals 108, such as a wireless communication system 146, a vehicle computer 148, a microphone 150, and a speaker 152.
[0091] Computer system 112 may control functions of vehicle 100 based on input received from various subsystems (e.g., travel system 102, sensor system 104, and control system 106) and from user interface 116. For example, computer system 112 may utilize input from control system 106 in order to control steering unit 132 to avoid obstacles detected by sensor system 104 and obstacle avoidance system 144. In some embodiments, computer system 112 may be operable to provide control over many aspects of vehicle 100 and its subsystems.
[0092] Alternatively, one or more of the above components may be installed or associated separately from the vehicle 100. For example, the data storage device 114 may be partially or completely separate from the vehicle 100. The above components may be communicatively coupled together in a wired and / or wireless manner.
[0093] Optionally, the above components are only an example. In actual applications, the components in the above modules may be added or deleted according to actual needs. Figure 3 should not be understood as a limitation on the embodiments of the present application.
[0094] An autonomous vehicle, such as vehicle 100 above, traveling on a road can identify objects in its surroundings to determine adjustments to its current speed. These objects can include other vehicles, traffic control devices, pedestrians, road signs, or other types of objects. In some examples, each identified obstacle can be considered independently, and the speed adjustment to be made by the autonomous vehicle can be determined based on the characteristics of each obstacle, such as its current speed, acceleration, and distance from the vehicle.
[0095] Optionally, the vehicle 100 or a computing device associated with the vehicle 100 (e.g., the computer system 112, the computer vision system 140, or the data storage device 114 of FIG. 3 ) can predict the behavior of the identified obstacles based on their characteristics and the state of the surrounding environment (e.g., traffic, rain, ice on the road, etc.). Optionally, the behavior of each identified obstacle depends on the behavior of each other, so the behavior of all identified obstacles can be considered together to predict the behavior of a single identified obstacle. The vehicle 100 can adjust its speed based on the predicted behavior of the identified obstacles. In other words, the autonomous vehicle can determine the state to which the vehicle should adjust (e.g., accelerate, decelerate, or stop) based on the predicted behavior of the obstacles. Other factors can also be considered in determining the speed of the vehicle 100, such as the lateral position of the vehicle 100 on the road it is traveling on, the curvature of the road, the proximity of static and dynamic objects, etc.
[0096] In addition to providing instructions to adjust the speed of the autonomous vehicle, the computing device may also provide instructions to modify the steering angle of vehicle 100 so that the autonomous vehicle follows a given trajectory and / or maintains a safe lateral and longitudinal distance from obstacles near the autonomous vehicle (e.g., vehicles in adjacent lanes on the road).
[0097] The vehicle 100 may be a car, truck, motorcycle, bus, ship, airplane, helicopter, lawn mower, recreational vehicle, amusement park vehicle, construction equipment, tram, golf cart, train, and cart, etc., and the embodiment of the present invention does not make any special limitation.
[0098] The technical solution of the present application is introduced below with reference to the structure of the vehicle 100 shown in FIG3 .
[0099] First, a technical solution for determining difficult data based on a first matching degree between a radar detection result of the vehicle 100 at a first moment and a radar detection result at a second moment is introduced.
[0100] Specifically, FIG4 shows a flow chart of a data processing method according to some embodiments of the present application. The process can be any computing unit in the vehicle 100, such as the processor 113. As shown in FIG4, the process includes the following steps:
[0101] S401: Inferring first radar detection data at a first moment and second radar detection data at a second moment using a radar detection model to obtain a first radar detection result corresponding to the first radar detection data and a second radar detection result corresponding to the second radar detection data.
[0102] During driving, the vehicle 100 can obtain first radar detection data and second radar detection data detected by the radar 126 at the first moment and the second moment, respectively, and then input the first radar detection data and the second radar detection data into the radar detection model respectively. The radar detection model is used to infer the first radar detection result corresponding to the obstacle information of the environment in which the vehicle 100 is located at the first moment and the second radar detection result corresponding to the obstacle information of the environment in which the vehicle 100 is located at the second moment.
[0103] It will be understood that in some embodiments, the first radar detection data or the second radar detection data may include the distribution of objects (such as object size, position, object type, etc.) and the motion state of objects (motion direction, speed, acceleration, etc.) in the environment in which the vehicle 100 is located, which are obtained by the vehicle 100 through the radar 126.
[0104] It will be understood that in some embodiments, the first radar detection result or the second radar detection result may include the three-dimensional outline of objects in the environment of vehicle 100 (such as the real three-dimensional outline of the object, a polyhedron including the object, etc.), location information, the type of object (static obstacle, dynamic obstacle, road, etc.), etc.
[0105] For example, Figure 5A shows a schematic diagram of the environment in which the vehicle 100 is located at a first moment according to some embodiments of the present application; Figure 5B shows a schematic diagram of a first radar detection result corresponding to obstacle information in the environment in which the vehicle 100 is located at a first moment according to some embodiments of the present application; Figure 5C shows a schematic diagram of a second radar detection result corresponding to obstacle information in the environment in which the vehicle 100 is located at a second moment according to some embodiments of the present application.
[0106] Referring to Figure 5A , vehicle 100 is traveling on road R1 at a first moment. Vehicle D1 is in front of vehicle 100 in its lane, vehicles D2 and D3 are in the lane to the right of vehicle 100, and road sign S1 is on the left side of road R1. After acquiring first radar detection data, vehicle 100 inputs this data into the radar detection model, resulting in the first radar detection results shown in Figure 5B .
[0107] 5B , the first radar detection result includes a cuboid S1-2 representing the three-dimensional outline of the road sign S1, a cuboid D1-1 representing the three-dimensional outline of the vehicle D1, a cuboid D2-1 representing the three-dimensional outline of the vehicle D2, and a cuboid D3-1 representing the three-dimensional outline of the vehicle D3.
[0108] It is understood that in some embodiments, the first radar detection result may further include a plane corresponding to the road R1, such as R1-1 shown in FIG5B.
[0109] 5C , the second radar detection result includes a cuboid S1-2 representing the three-dimensional outline of the road sign S1, a cuboid D1-2 representing the three-dimensional outline of the vehicle D1, a cuboid D2-2 representing the three-dimensional outline of the vehicle D2, and a cuboid D3-2 representing the three-dimensional outline of the vehicle D3.
[0110] It is understood that in some embodiments, the second radar detection result may further include a plane corresponding to the road R1, such as R1-2 shown in FIG5C.
[0111] It will be understood that the use of a rectangular parallelepiped to represent the three-dimensional outline of the obstacle in the radar detection results shown in Figures 5B to 5C is only an example. In other embodiments, the three-dimensional outline of the obstacle in the radar detection results may also be represented in other forms, such as the true three-dimensional outline of the obstacle, other polyhedrons, etc., which are not limited here.
[0112] It is understood that in some embodiments, the first moment and the second moment may be two adjacent moments at which the radar 126 collects data. For example, in some implementations, the interval between the first moment and the second moment may be less than 200 milliseconds, meaning that the radar collects data at a frequency greater than 5 Hz.
[0113] S402: Determine a comparison area based on the first radar detection result.
[0114] The vehicle 100 determines a comparison area based on the first radar detection result, wherein the comparison area is used to indicate an area for comparing obstacles in the first radar detection result and the second radar detection result.
[0115] Exemplarily, in some embodiments, the comparison area can be determined based on the top view of the first radar detection result, wherein the top-down direction can be perpendicular to the plane where the vehicle 100 is located and pointing to the plane. For example, referring to FIG5B , assuming that the plane where the vehicle 100 is located (for example, the plane where the road R1 is located) is the XY plane, the direction pointed by the front of the vehicle 100 is the Y direction, the direction perpendicular to the front of the vehicle in the XY plane is the Y direction, the direction perpendicular to the XY plane upward is the Z direction, and the side-viewing direction is the direction from the Z direction to the XY plane. Further referring to FIG6 , the top view of the first radar detection result includes the rectangle D1-3 corresponding to the aforementioned vehicle D1, the rectangle D2-3 corresponding to the vehicle D2, the rectangle D3-3 corresponding to the vehicle D3, the rectangle S1-3 corresponding to the road sign S1, and the area R1-3 where the road is located.
[0116] In some embodiments, the obstacles in the overhead view of the first radar detection result can be divided into static obstacles (i.e., obstacles that do not move relative to the ground, such as road signs, roads, buildings, etc.) and dynamic obstacles (i.e., obstacles that move relative to the ground, such as pedestrians, vehicles, etc.). Then, with the vehicle 100 as the center (e.g., the geometric center, center of gravity, coordinate center of the radar 126, etc. of the vehicle 100), rays are projected to various angles around (360°) of the overhead view of the first radar detection result. If there is a static obstacle other than the road at a certain angle, the position where the angle first encounters the static obstacle other than the road is used as the corresponding boundary point of the comparison area of the angle; if there is no static obstacle other than the road at a certain angle, the position where the ray at the angle first encounters the edge of the road or the edge of the overhead view of the first radar detection result is used as the corresponding boundary point of the comparison area of the angle. Finally, the boundary points of the comparison area at each angle are connected in sequence according to the angle to obtain the comparison area.
[0117] For example, referring to Figure 6, in the overhead view of the first radar detection result, the center of radar 126 is point C. Rays can be projected from point C to all surrounding angles. If the ray corresponding to angle A1 intersects rectangle S1-4 corresponding to the road sign at point A1-1, point A1-1 is used as the boundary point of the comparison area at angle A1. If there are no static obstacles other than the road in the direction of angle A2, and the ray corresponding to angle A2 intersects the edge of rectangle R1-3 corresponding to road R1 at point A2-1, intersection A2-1 is used as the boundary red box of the comparison area at angle A2. If there are no static obstacles other than the road in the direction of angle A3, and the ray corresponding to angle A2 intersects the edge of the overhead view of the first radar detection result at point A3-1, intersection A3-1 is used as the boundary point of the comparison area at angle A3. Then, by connecting the boundary points of the comparison area at each angle, comparison area DS-1 is obtained.
[0118] It is understandable that in other embodiments, the comparison area may also be determined based on the second radar detection result, which is not limited here.
[0119] It is understandable that in other embodiments, the comparison area may also be determined based on other methods, which are not limited here.
[0120] It is understood that in some embodiments, a polar coordinate system with the vehicle 100 as the center (e.g., the geometric center, center of gravity, coordinate center of the radar 126, etc.) in the overhead view of the first radar detection result can be established, and the area composed of the boundary points on the polar axis of each polar angle in the polar coordinate system is used as a comparison area. The boundary points on the polar axis of each polar angle can be determined in the following manner: when the polar axis of a certain polar angle intersects with a static obstacle among the N obstacles, the intersection is used as the boundary point of the polar axis of the polar angle; when the polar axis of a certain polar angle does not intersect with a static obstacle among the N obstacles, the intersection point of the polar axis of the polar angle and the edge of the road surface or the intersection point of the polar axis of the polar angle and the boundary of the overhead view of the first radar detection result is used as the boundary point of the polar axis of the first polar angle.
[0121] S403: Determine a first matching degree between the first radar detection result and the second radar detection result.
[0122] The vehicle 100 determines a first degree of match between the first radar detection result and the second radar detection result. For example, in some embodiments, the first degree of match may be determined based on a degree of match between obstacles within a comparison area in the first radar detection result and obstacles within a comparison area in the second radar detection result.
[0123] It is understood that in some embodiments, the first matching degree can be determined by using a bipartite graph maximum weight matching (KM algorithm), a Hungarian algorithm, etc. The following uses the KM algorithm as an example to describe how to determine the first matching degree.
[0124] Assume that the first radar detection result includes N obstacles, the nth obstacle can be represented by the set O1 n =(P n , S n , R n ) to express it, where P n =(x n ,y n ,z n ) represents the coordinates of the three-dimensional center of the n-th obstacle in the coordinate system XYZ; S n =(l n ,w n ,h n ) represents the three-dimensional size of the nth obstacle (l represents length, w represents width, and h represents height); R n The angle R indicating the direction of the nth obstacle n Similarly, assuming that the second radar detection result includes M obstacles, the mth obstacle can be represented by the set O2 m =(P m , S m , Rm ) to express it, where P m =(x m ,y m ,z m ) represents the coordinates of the three-dimensional center of the m-th obstacle in the coordinate system XYZ; S m =(l m ,w m ,h m ) represents the three-dimensional size of the m-th obstacle (l represents length, w represents width, and h represents height); R m The angle R that represents the direction of the mth obstacle m Wherein, M and N may be the same or different.
[0125] If the nth obstacle in the first radar detection result matches the mth obstacle in the second radar detection result, then the similarity W(01) between the nth obstacle in the first radar detection result and the mth obstacle in the second radar detection result is n ,O2 m ) can be expressed as the following formula (1): W(O1 n ,O2 m )=W1(O1 n ,O2 m )×p+W2(O1 n ,O2 m )×q+W3(O1 n ,O2 m )×r (1)
[0126] In formula (1), W1(O1 n ,O2 m ) represents the position and attitude matching degree between the nth obstacle in the first radar detection result and the mth obstacle in the second radar detection result; W2(O1 n ,O2 m ) represents the size matching degree between the nth obstacle in the first radar detection result and the mth obstacle in the second radar detection result; W3(O1 n ,O2 m ) represents the orientation matching degree between the nth obstacle in the first radar detection result and the mth obstacle in the second radar detection result; p, q, r represent the similarity W(O1) between the position and posture matching degree, size matching degree, and orientation matching degree of the nth obstacle in the first radar detection result and the mth obstacle in the second radar detection result, respectively. n ,O2 m )’s contribution, the larger the value, the higher the contribution.
[0127] It is understood that p, q, and r can be any experimental or empirical values and are not limited here. For example, in some embodiments, p can be 1, q can be 0.5, and r can be 0.5.
[0128] For example, in some embodiments, W1(O1 n ,O2 m ) can be determined based on the following formula (2): W1(O1 n ,O2 m )=(1-max(|x n -x m |,|y n -y m | / a)×diret_c (2)
[0129] In formula (2), max(|x n -x m |,|y n -y m | / a) is used to represent |x n -x m | and |y n -y m | / a's maximum value, a is an empirical value or experimental value (for example, a can be 6); direc_c is used to represent the difference between the driving direction of the vehicle 100 at the first moment and the second moment; |.| represents the absolute value. In some embodiments, direc_c can be expressed as |tan(R1)-(y m -y n ) / x m -x n |, tan(R1) represents the tangent value of R1.
[0130] For example, in some embodiments, W2(O1 n ,O2 m ) can be determined based on the following formula (3): W2(O1 n ,O2 m )=1-(|l n -l m | / l n +|w n -w m | / w n +|h n -h m | / h n ) (3)
[0131] For example, in some embodiments, W3(O1 n ,O2 m ) in R n With Rm The difference (|R n -R m |) is greater than the preset orientation difference, it is 0; otherwise it is 1.
[0132] It is understood that in other embodiments, W1(O1 n ,O2 m )、W2(O1 n ,O2 m )、W3(O1 n ,O2 m ), no limitation is given here.
[0133] Then the matching degree (ie, first matching degree) SU1 between the first radar detection result and the second radar detection result can be expressed as the following formula (4): SU1 = W1 + W2 + ... + W N (4)
[0134] Among them, W n Indicates the similarity between the nth obstacle in the first radar detection result and the obstacle matched by the nth obstacle in the first radar detection result in the second radar detection result.
[0135] It is understood that in some embodiments, the plane corresponding to the road in the first radar detection result may not be used as an obstacle to determine the first matching degree.
[0136] It can be understood that if the k-th obstacle in the first radar detection result does not have a matching obstacle in the second radar detection result, then W k =0.
[0137] It is understandable that in some embodiments, the comparison area may not be determined, but the first matching degree is determined by matching all obstacles in the first radar detection result with all obstacles in the second radar result, which is not limited here.
[0138] It is understandable that in other embodiments, the first matching degree between the first radar detection result and the second radar detection result may also be determined by other methods, which are not limited here.
[0139] S404: Determine whether the first matching degree meets the difficult example condition.
[0140] After determining a first match between the first and second radar detection results, vehicle 100 determines whether the first match satisfies a difficult-example condition. If the first match satisfies the difficult-example condition, the first radar detection data is considered difficult data for the radar detection model, and the process proceeds to step S405. Otherwise, the determination of the first radar detection data ends.
[0141] It is understood that the difficult example condition may include that the first matching degree is less than the first preset matching degree. In other embodiments, the difficult example condition may also include other conditions, which are not limited here.
[0142] S405: Determine the first radar detection data as difficult example data.
[0143] When determining that the first matching degree satisfies the hard-example condition, the vehicle 100 determines the first radar detection data as hard-example data of the radar detection model.
[0144] It can be understood that in some embodiments, after determining that the first radar detection data is difficult example data for the radar detection model, the obstacles in the first radar detection data can be manually labeled, and the labeled data can be added to the training set of the radar detection model to iteratively train the aforementioned radar detection model to improve the accuracy of the radar detection results obtained by the vehicle 100 using the radar detection model.
[0145] Based on the above method, since the difficult example data is determined by the first matching degree of the radar detection results corresponding to the radar detection data at different times, it does not require human intervention and is not affected by human subjective factors, which is conducive to improving the efficiency of mining difficult example data and the accuracy of the mined difficult example data.
[0146] It is understandable that in other embodiments, the above steps S401 to S405 may not be executed by the vehicle 100, but may be implemented by other electronic devices based on radar detection data collected by the radar 126 of the vehicle 100, which is not limited here.
[0147] Next, a technical solution for determining difficult example data of a radar detection model based on a second matching degree between a radar detection result of the vehicle 100 at a first moment and a visual detection result at a first moment is introduced.
[0148] Specifically, FIG7 shows a flow chart of another data processing method according to some embodiments of the present application. The process can be any computing unit in the vehicle 100, such as the processor 113. As shown in FIG7, the process includes the following steps:
[0149] S701: Use the radar detection model and the visual detection model to infer the first radar detection data and the visual detection data at the first moment respectively, to obtain a first radar detection result corresponding to the first radar detection data and a visual detection result corresponding to the visual detection data.
[0150] During driving, the vehicle 100 can obtain the first radar detection data detected by the radar 126 and the visual detection data detected by the camera 130 at the first moment, and then input the first radar detection data into the radar detection model and the visual detection model respectively. The radar detection model is used to infer the first radar detection result corresponding to the obstacle information of the environment in which the vehicle 100 is located at the first moment, and the visual detection model is used to infer the visual detection result corresponding to the obstacle information of the environment in which the vehicle 100 is located at the first moment.
[0151] For example, at the first moment shown in FIG5 , referring to FIG5B , the first radar detection result includes the three-dimensional outline of road sign S1 represented by rectangle S1-2, the three-dimensional outline of vehicle D1 represented by rectangle D1-1, the three-dimensional outline of vehicle D2 represented by rectangle D2-1, and the three-dimensional outline of vehicle D3 represented by rectangle D3-1. Referring to FIG8 , the visual detection result corresponding to the obstacle information in the environment in which vehicle 100 is located at the first moment may include rectangle S1-4 representing the two-dimensional outline of road sign S1, rectangle D1-4 representing the two-dimensional outline of vehicle D1, rectangle D2-4 representing the two-dimensional outline of vehicle D2, and rectangle D3-4 representing the two-dimensional outline of vehicle D3.
[0152] It can be understood that the use of a rectangle to represent the two-dimensional outline of the obstacle in the visual detection result in FIG8 is only an example. In other embodiments, the two-dimensional outline of the obstacle in the visual detection result can also be represented by other forms, which is not limited here.
[0153] It is understood that in some embodiments, the visual detection result may also be obtained by the computer vision system 140 of the vehicle 100 based on visual detection data, which is not limited here.
[0154] S702: Determine a comparison area based on the first radar detection result.
[0155] The vehicle 100 determines a comparison area based on the first radar detection result. The comparison area is used to indicate the area where obstacles in the first radar detection result and the visual detection result are compared. The specific determination method can be referred to in the aforementioned step S402 and is not limited here.
[0156] S703: Determine a second matching degree between the first radar detection result and the visual detection result.
[0157] The vehicle 10 determines a second degree of match between the first radar detection result and the visual detection result.
[0158] For example, in some embodiments, the vehicle 100 may determine the second degree of match based on the degree of difference between the point cloud distribution of the projection of obstacles within the comparison area in the first radar detection result onto the visual detection result (hereinafter referred to as the projected point cloud distribution) and the point cloud distribution of the obstacles within the comparison area in the visual detection result (hereinafter referred to as the two-dimensional point cloud distribution). For example, the vehicle 100 may project the three-dimensional information of each obstacle in the first radar detection result onto the plane where the visual detection result is located to obtain a projected point cloud distribution; then, the second degree of match is determined based on the degree of difference between the projected point cloud distribution and the point cloud distribution of the obstacles within the comparison area in the visual detection result.
[0159] Specifically, referring to FIG9 , the points included in rectangles S1-4, D1-4, D1-4, and D1-4 in the comparison area DS-1 in the visual detection result shown in FIG8 correspond to the two-dimensional point cloud distribution PC-1, and the points included in the projections of cuboids S1-2, D1-1, D2-1, and D3-1 on the plane where the visual detection result is located in the first radar detection result shown in FIG5B correspond to the projected point cloud distribution PC-2. Thus, the degree of difference between the projected point cloud distribution PC-2 and the two-dimensional point cloud distribution PC-1 can be represented by the number of points that exist in the two-dimensional point cloud distribution PC-1 but do not exist in the projected point cloud distribution PC-2. This degree of difference increases with the increase of . For example, the second matching degree is represented as c / N, where N is the number of points that exist in the two-dimensional point cloud distribution PC-1 but do not exist in the projected point cloud distribution PC-2, and c is any value greater than 0. Vehicle 10 can then determine a second degree of matching based on the difference between projected point cloud distribution PC-2 and two-dimensional point cloud distribution PC-1. The second degree of matching decreases as the difference between projected point cloud distribution PC-2 and two-dimensional point cloud distribution PC-1 increases. For example, in FIG9 , the number of points present in two-dimensional point cloud distribution PC-1 but not in projected point cloud distribution PC-2 is 32. Therefore, the second degree of matching can be expressed as c / 32.
[0160] It can be understood that in some embodiments, if the projected point cloud distribution PC-2 and the two-dimensional point cloud distribution PC-1 are completely matched, that is, all points in the two-dimensional point cloud distribution PC-1 are in the projected point cloud distribution PC-2, that is, N=0, then the second matching degree can be a preset maximum value.
[0161] It will be appreciated that in some embodiments, the vehicle 100 may project obstacles within the comparison area in the first radar detection result onto the visual detection result based on the transformation relationship between the coordinate system of the radar 126 and the coordinate system of the camera 130. For example, assuming that the transformation relationship between the coordinate system of the radar 126 and the coordinate system of the camera 130 can be represented by a transformation matrix M between the coordinate system of the radar 126 and the coordinate system of the camera 130, then for any point P in the first radar detection result, the projected red box P' in the visual detection result (i.e., the coordinate system of the camera 130) of point P can be obtained by multiplying the coordinates of P by the transformation matrix M, thereby obtaining a projected point cloud distribution.
[0162] It can be understood that in some embodiments, the comparison area may not be determined, but the second matching degree may be determined based on the degree of difference between the projected point cloud distribution corresponding to all obstacles in the first radar detection result in the visual detection result and the two-dimensional point cloud distribution corresponding to the visual detection result. This is not limited here.
[0163] It is understandable that in other embodiments, the second matching degree may be determined by other methods, which are not limited here.
[0164] S704: Determine whether the second matching degree meets the difficult example condition.
[0165] After determining the second degree of match between the first radar detection result and the visual detection result, vehicle 100 determines whether the first degree of match meets the hard-case condition. If the second degree of match meets the hard-case condition, the first radar detection data is considered hard-case data for the radar detection model, and the process proceeds to step S705. Otherwise, the determination of the first radar detection data ends.
[0166] It is understood that the difficult example condition may include that the second matching degree is less than the second preset matching degree. In other embodiments, the difficult example condition may also include other conditions, which are not limited here.
[0167] S705: Determine the first radar detection data as difficult example data.
[0168] When the vehicle 100 determines that the second matching degree satisfies the hard-example condition, the vehicle 100 determines the first radar detection data as hard-example data of the radar detection model.
[0169] It can be understood that in some embodiments, after determining that the first radar detection data is difficult example data for the radar detection model, the obstacles in the first radar detection data can be manually labeled, and the labeled data can be added to the training set of the radar detection model to iteratively train the aforementioned radar detection model to improve the accuracy of the radar detection results obtained by the vehicle 100 using the radar detection model inference.
[0170] Based on the above method, since the difficult example data of the radar detection model is determined by the second matching degree of the radar detection result corresponding to the radar detection data at a certain moment and the visual detection result corresponding to the visual detection data at that moment, it does not require human intervention and is not affected by human subjective factors, which is conducive to improving the efficiency of mining difficult example data and the accuracy of the mined difficult example data.
[0171] It is understandable that in other embodiments, the above steps S701 to S705 may not be performed by the vehicle 100, but may be implemented by other electronic devices based on radar detection data collected by the radar 126 of the vehicle 100 and visual detection data collected by the camera 130. This is not limited here.
[0172] The following introduces a technical solution for determining difficult example data based on a first matching degree between the radar detection result of the vehicle 100 at the first moment and the radar detection result at the second moment and a second matching degree between the radar detection result at the first moment and the visual detection result at the first moment.
[0173] Specifically, FIG10 shows a flow chart of another data processing method according to some embodiments of the present application. The process can be any computing unit in the vehicle 100, such as the processor 113. As shown in FIG10, the process includes the following steps:
[0174] S1001: Obtain a first radar detection result corresponding to the first radar detection data at the first moment, a second radar detection result corresponding to the second radar detection data at the second moment, and a visual detection result corresponding to the visual detection data at the first moment.
[0175] While driving, vehicle 100 may obtain first and second radar detection data from radar 126 at a first moment and a second moment, respectively, as well as visual detection data from camera 130 at a first moment. The first and second radar detection data are then input into a radar detection model, which uses the radar detection model to infer a first radar detection result corresponding to obstacle information in the environment of vehicle 100 at the first moment and a second radar detection result corresponding to obstacle information in the environment of vehicle 100 at the second moment. Furthermore, the visual detection data is input into the visual detection model, which uses the visual detection model to infer a visual detection result corresponding to obstacle information in the environment of vehicle 100 at the first moment.
[0176] It is understandable that in other embodiments, the visual detection results may be obtained by other means rather than inputting the visual detection data into the visual detection model for determination, which is not limited here.
[0177] S1002: Determine a first matching degree between the first radar detection result and the second radar detection result, and a second matching degree between the first radar detection result and the visual detection result.
[0178] Vehicle 100 determines a first degree of match between the first radar detection result and the second radar detection result, and a second degree of match between the first radar detection result and the visual detection result. The first degree of match between the first radar detection result and the second radar detection result can be determined by referring to steps S402 and S403, and the second degree of match between the first radar detection result and the visual detection result can be determined by referring to steps S702 and S703, which are not further described here.
[0179] S1003: Determine whether the first matching degree and the second matching degree meet the difficult example condition.
[0180] After determining the first and second matching degrees, vehicle 100 determines whether the first and second matching degrees meet the difficult example condition. If the first and second matching degrees meet the difficult example condition, the first radar detection data is difficult example data, and the process proceeds to step S1004. Otherwise, the determination of the first radar detection data ends.
[0181] In some embodiments, the hard case condition may include at least one of the following conditions:
[0182] A weighted sum of the first matching degree and the second matching degree is less than a preset weighted matching degree;
[0183] The maximum value of the first matching degree and the second matching degree is less than the preset maximum matching degree;
[0184] An average value of the first matching degree and the second matching degree is less than a preset average matching degree.
[0185] It is understandable that in other embodiments, the difficult case condition may also include other conditions, which are not limited here.
[0186] S1004: Determine the first radar detection data as difficult example data.
[0187] When the vehicle 100 determines that the second matching degree satisfies the hard-example condition, the vehicle 100 determines the first radar detection data as hard-example data corresponding to the radar detection model.
[0188] It can be understood that in some embodiments, after determining that the first radar detection data is difficult example data corresponding to the radar detection model, the obstacles in the first radar detection data can be manually labeled, and the labeled data can be added to the training set of the radar detection model to iteratively train the aforementioned radar detection model to improve the accuracy of the radar detection results obtained by the vehicle 100 using the radar detection model inference.
[0189] Based on the above method, since the difficult example data of the radar detection model is determined by the second matching degree between the radar detection result corresponding to the radar detection data at the first moment and the visual detection result corresponding to the visual detection data at that moment, as well as the first matching degree between the radar detection results corresponding to the first moment and the second moment, it does not require manual intervention and is not affected by human subjective factors, which is conducive to improving the efficiency of mining difficult example data and the accuracy of the mined difficult example data.
[0190] It is understandable that in other embodiments, the above steps S1001 to S1004 may not be executed by the vehicle 100, but may be implemented by other electronic devices based on radar detection data collected by the radar 126 of the vehicle 100 and visual detection data collected by the camera 130, which is not limited here.
[0191] The aforementioned embodiments of determining difficult data for the radar detection model are merely examples. In other embodiments, similar methods can also be used to determine difficult data for the visual detection model or other models. Furthermore, based on the embodiments shown in Figures 3 to 10, another data processing method is provided in the present application.
[0192] Specifically, FIG11 shows a flow chart of another data processing method according to some embodiments of the present application. The execution subject of the process can be any electronic device, such as a vehicle 100. As shown in FIG11, the data processing method includes the following steps:
[0193] S1101: Acquire first detection data of a first detection device at a first moment, and use a first model to infer the first detection data to obtain a first detection result.
[0194] The vehicle 100 may obtain first detection data of the first detection device at a first moment, input the first detection data into the first model, and use the first model to infer the first detection data to obtain a first detection result corresponding to the first detection data of the vehicle 100.
[0195] It can be understood that the first model is any model that uses the first detection data for inference, such as the aforementioned visual detection model, radar detection model, etc., which is not limited here.
[0196] It can be understood that in some embodiments, the first detection device can be any detection device in the vehicle 100 that can be used to obtain obstacles for identifying the environment in which the vehicle 100 is located, including but not limited to radar, camera, ultrasonic sensor, laser rangefinder, etc.
[0197] Exemplarily, when the first detection device is the radar 126 of the vehicle 100 , the first detection data may be the radar detection data detected by the radar 126 at the first moment, the first model may be the aforementioned radar detection model, and the first detection result may be the aforementioned first radar detection result.
[0198] Exemplarily, when the first detection device is the camera 130 of the vehicle 100, the first detection data may be the visual detection data detected by the camera 130 at the first moment, the first model may be the aforementioned visual detection model, and the first detection result may be the visual detection result obtained by inferring the visual detection data detected by the camera 130 at the first moment using the visual detection model.
[0199] S1102: Determine a third matching degree between the first detection result and the second detection result corresponding to the second detection data of the first detection device at the second moment, and / or a fourth matching degree between the first detection result and the third detection result corresponding to the third detection data of the second detection device at the first moment.
[0200] The vehicle 100 determines a third degree of match between the first detection result and the second detection result corresponding to the second detection data of the first detection device at the second moment, and / or a fourth degree of match between the first detection result and the third detection result corresponding to the third detection data of the second detection device at the first moment.
[0201] It is understood that the second detection device is a different detection device from the first detection device, and the third detection result is a result obtained based on the third detection data using a method other than the first model, and represents the same content as the first detection result. For example, the first detection result and the third detection result are both results representing obstacle information in the environment in which vehicle 100 is located.
[0202] For example, when the first detection device is the radar 126 of the vehicle 100, the second detection result may be the aforementioned second radar detection result, and the third matching degree may be the matching degree between the first radar detection result and the second radar detection result, i.e., the aforementioned first matching degree. If the second detection device is the camera 130, the third detection result may be the aforementioned visual detection result, and the fourth matching degree may be the aforementioned second matching degree. The method for determining the third and fourth matching degrees can refer to the aforementioned steps S403 and S703 and will not be further described here.
[0203] For example, when the first detection device is the camera 130 of the vehicle 100, the second detection result may be the visual detection result obtained by inputting the visual data detected by the camera 130 at the second moment (the second detection data) into the visual detection model. Thus, the third degree of match can be determined by the degree of difference between the point cloud distribution corresponding to the obstacle in the first detection result and the point cloud distribution corresponding to the obstacle in the second detection result. If the second detection device is the radar 126, the third detection result may be the radar detection result of the radar by inputting the third detection data (the radar data detected by the radar 126 at the first moment) into the radar detection model. The method for determining the fourth degree of match can refer to the method for determining the second degree of match described above and will not be elaborated on here.
[0204] S1103: Determine whether a difficult example condition is met based on the third matching degree and / or the fourth matching degree.
[0205] After determining the third and / or fourth matching degrees, vehicle 100 determines whether the difficult example condition is met based on the third and / or fourth matching degrees. If the difficult example condition is met, the first detection data is considered difficult example data for the first model, and the process proceeds to step S1104. Otherwise, the determination of the first detection data ends.
[0206] It is understood that, in some embodiments, the difficult condition may include at least one of the following conditions:
[0207] The third matching degree is less than a third preset matching degree;
[0208] The fourth matching degree is less than a fourth preset matching degree;
[0209] A weighted sum of the third matching degree and the fourth matching degree is less than a preset weighted matching degree;
[0210] The maximum value of the third matching degree and the fourth matching degree is less than the preset maximum matching degree;
[0211] An average value of the third matching degree and the fourth matching degree is less than a preset average matching degree.
[0212] S1104: Determine the first detection data as difficult example data corresponding to the first model.
[0213] When determining that the hard example condition is met, the vehicle 100 determines the first detection data as hard example data of the first model.
[0214] It can be understood that in some embodiments, after determining that the first detection data is difficult example data for the first model, the obstacles in the first detection data can be manually labeled, and the labeled data can be added to the training set of the first model to iteratively train the aforementioned first model to improve the accuracy of the obstacle detection results obtained by the vehicle 100 using the first model inference.
[0215] Based on the above method, since the difficult example data of the first model is determined by the fourth matching degree between the first detection result corresponding to the first detection data at the first moment and the third detection result corresponding to the third detection data of the second detection device at the same moment, and / or the third matching degree between the first detection result and the second detection result corresponding to the first moment and the second moment, it does not require human intervention and is not affected by human subjective factors, which is conducive to improving the efficiency of mining difficult example data and the accuracy of the mined difficult example data.
[0216] It is understandable that in other embodiments, the above steps S1101 to S1104 may be performed by other electronic devices instead of the vehicle 100, and this is not limited here.
[0217] The various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0218] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0219] Program code can be implemented with a high-level programming language or an object-oriented programming language to communicate with the processing system. Where necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.
[0220] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy disks, optical disks, optical discs, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0221] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.
[0222] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.
[0223] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a" do not exclude the presence of other identical elements in the process, method, article or device that includes the elements.
[0224] Although the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application.
Claims
1. A data processing method, characterized in that: include: Inputting first detection data collected by the vehicle using a first detection device at a first moment into a first model to obtain a first obstacle detection result of the vehicle; The first obstacle detection result is matched with the second obstacle detection result, and based on the matching result, it is determined whether the first detection data is hard-to-detect data of the first model, wherein when the first detection data is hard-to-detect data of the first model, it indicates that the accuracy of the first obstacle detection result does not meet preset requirements.
2. The method according to claim 1, characterized in that The second obstacle detection result includes a third obstacle detection result generated by the first model based on second detection data collected by the first detection device at a second moment, and / or a fourth obstacle detection result generated based on third detection data collected by the second detection device at a third moment.
3. The method according to claim 2, characterized in that The determining, according to the matching result, whether the first detection data is hard example data of the first model includes: When a first matching degree between the first obstacle detection result and the third obstacle detection result, and / or a second matching degree between the first obstacle detection result and the fourth obstacle detection result meets a difficult example condition, the first detection data is determined to be difficult example data of the first model.
4. The method according to claim 3, characterized in that: The difficult condition includes at least one of the following conditions: At least one of the first matching degrees is less than a first preset matching degree; At least one of the second matching degrees is less than a second preset matching degree; A weighted sum of each of the first matching degrees and each of the second matching degrees is less than a preset weighted matching degree; The maximum value of each of the first matching degrees and each of the second matching degrees is less than a preset maximum matching degree; An average value of each of the first matching degrees and each of the second matching degrees is less than a preset average matching degree.
5. The method according to claim 3 or 4, characterized in that: The first matching degree is determined based on obstacle information in a comparison area in the first obstacle detection result and obstacle information in the comparison area in the third obstacle detection result; and the second matching degree is determined based on obstacle information in the comparison area in the first obstacle detection result and obstacle information in the comparison area in the fourth obstacle detection result.
6. The method according to claim 5, characterized in that The first obstacle detection result includes three-dimensional contour information of N obstacles, the third obstacle detection result includes three-dimensional contour information of M obstacles, and the fourth obstacle detection result includes two-dimensional contour information of P obstacles.
7. The method according to claim 6, characterized in that The first matching degree is determined by a matching degree between three-dimensional contour information of an obstacle in the comparison area among the N obstacles and three-dimensional contour information of an obstacle in the comparison area among the M obstacles; the second matching degree is determined by a difference degree between a projection of the three-dimensional contour information of the obstacle in the comparison area among the N obstacles on a plane where the fourth obstacle detection result is located and two-dimensional contour information of an obstacle in the comparison area among the P obstacles.
8. The method according to claim 7, characterized in that The comparison area includes: an area composed of boundary points on the polar axis of each polar angle in a polar coordinate system with a coordinate center as a pole in a top view of the three-dimensional contour information of the N obstacles, wherein the coordinate center includes one of the center of the vehicle, the center of gravity of the vehicle, and the coordinate center of the first detection device; The boundary points are determined in the following manner: When the polar axis of the first polar angle intersects a static obstacle among the N obstacles, the intersection is used as a boundary point of the polar axis of the first polar angle, where the first polar angle is any polar angle in the polar coordinate system; When the polar axis of the first polar angle has no intersection with a static obstacle among the N obstacles, the intersection of the polar axis of the first polar angle and the edge of the road surface or the intersection of the polar axis of the first polar angle and the boundary of the top view is taken as the boundary point of the polar axis of the first polar angle.
9. The method according to claim 2, characterized in that: The interval between the first moment and the second moment is less than a first preset time length, and the interval between the first moment and the third moment is less than a second preset time length.
10. The method according to claim 2, characterized in that The first detection device includes a radar of the vehicle, the second detection device includes a camera of the vehicle, and the first model is a radar detection model.
11. A readable storage medium, characterized in that: The readable storage medium stores instructions, and when the instructions are executed by an electronic device, the electronic device implements the data processing method according to any one of claims 1 to 10.
12. An electronic device, characterized in that: include: A memory, the memory being used to store instructions; At least one processor is used to execute the instructions so that the electronic device implements the data processing method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Data processing method, readable storage medium and electronic equipment
CN118534489A
Method for searching difficult case images, model training method, equipment and storage medium
CN112733666A
Data mining method and device and electronic equipment
CN113762406A
Object detection model processing method and device, equipment and storage medium
CN114299030A
Model optimization method and device and computer program product
CN114418021A
Cited By
Rapid point cloud data processing system based on 3D vision
CN120510606A
