The present disclosure relates generally to image-based machine learning systems. More particularly, the present disclosure relates to implementing systems and methods for feature extraction using multi-camera views to perform perception feature fusion for tasks such as cuboid association.
Modern day vehicles have at least one on-board computer and have internet/satellite connectivity. The software running on these on-board computers monitor and/or control operations of the vehicles. The vehicle also comprises cameras and LiDAR detectors for detecting objects in proximity thereto. The cameras capture images of the scenes in proximity to the vehicles. The LiDAR detectors generate LiDAR datasets that measure the distance from the vehicle to the objects at a plurality of different times. These images and distance measurements can be used for identifying objects, tracking movements of the object, making predictions as to the object's trajectory, and planning paths of travel for the vehicle based on the predicted objects trajectory.
The present disclosure concerns implementing systems and methods for image-based feature fusion. The methods comprise: obtaining images captured by a plurality of cameras with overlapping fields of view; generating, by a computing device, spatial feature maps indicating locations of features in the images; defining, by the computing device, predicted cuboids at each location of an object in the images based on the spatial feature maps; assigning, by the computing device, at least two of said predicted cuboids to a given object when predictions from separate cameras should be associated with a same detected object; determining a track for the given object using the predicted cuboids that were associated with the given object; and/or using the track to control autonomous operations of a vehicle.
The spatial feature maps may be generated using a feature extraction module such as a CNN. A determination as to whether two or more predictions from separate cameras should be associated with a same detected object can be made by: using the spatial feature maps to generate a feature embedding for each prediction; determining a first difference between each set of two feature embeddings; determining a second difference between properties of each prediction (e.g., 3D location of amodal cuboids); and comparing the first and second difference respectively to threshold values. A determination can be made that the predictions are to be associated with a same object when the first and second differences are respectively less than the threshold values. A determination can be made that the predicted cuboids of the set are not to be associated with a same object when at least one of the first and second differences is greater than or equal to a respective one of the threshold values.
Implementing systems of the above-described methods for image-based perception and can include, but are not limited to, a processor and a non-transitory computer-readable storage medium comprising programming instructions that are configured to cause the processor to implement a method for image-based perception.
The present solution will be described with reference to the following drawing figures, in which like numerals represent like items throughout the figures.
As used in this document, the singular forms “a,” “an,” and “the” include plural references unless the context clearly dictates otherwise. Unless defined otherwise, all technical and scientific terms used herein have the same meanings as commonly understood by one of ordinary skill in the art. As used in this document, the term “comprising” means “including, but not limited to.” Definitions for additional terms that are relevant to this document are included at the end of this Detailed Description.
An “electronic device” or a “computing device” refers to a device that includes a processor and memory. Each device may have its own processor and/or memory, or the processor and/or memory may be shared with other devices as in a virtual machine or container arrangement. The memory will contain or receive programming instructions that, when executed by the processor, cause the electronic device to perform one or more operations according to the programming instructions.
The terms “memory,” “memory device,” “data store,” “data storage facility” and the like each refer to a non-transitory device on which computer-readable data, programming instructions or both are stored. Except where specifically stated otherwise, the terms “memory,” “memory device,” “data store,” “data storage facility” and the like are intended to include single device embodiments, embodiments in which multiple memory devices together or collectively store a set of data or instructions, as well as individual sectors within such devices.
The terms “processor” and “processing device” refer to a hardware component of an electronic device that is configured to execute programming instructions. Except where specifically stated otherwise, the singular term “processor” or “processing device” is intended to include both single-processing device embodiments and embodiments in which multiple processing devices together or collectively perform a process.
The term “vehicle” refers to any moving form of conveyance that is capable of carrying either one or more human occupants and/or cargo and is powered by any form of energy. The term “vehicle” includes, but is not limited to, cars, trucks, vans, trains, autonomous vehicles, aircraft, aerial drones and the like. An “autonomous vehicle” is a vehicle having a processor, programming instructions and drivetrain components that are controllable by the processor without requiring a human operator. An autonomous vehicle may be fully autonomous in that it does not require a human operator for most or all driving conditions and functions, or it may be semi-autonomous in that a human operator may be required in certain conditions or for certain operations, or that a human operator may override the vehicle's autonomous system and may take control of the vehicle.
In this document, when terms such as “first” and “second” are used to modify a noun, such use is simply intended to distinguish one item from another, and is not intended to require a sequential order unless specifically stated. In addition, terms of relative position such as “vertical” and “horizontal”, or “front” and “rear”, when used, are intended to be relative to each other and need not be absolute, and only refer to one possible position of the device associated with those terms depending on the device's orientation.
The present solution is described herein in the context of an autonomous vehicle. The present solution is not limited to autonomous vehicle applications. The present solution can be used in other applications such as robotic applications.
The present solution relates to implementing systems and methods for image-based perception. When performing tasks such as image-based perception with cameras having partially overlapping Fields of View (FOV), two challenges arise: (i) how to associate predictions associated with images captured by separate cameras; and (ii) how to leverage two views in a scene. In the scope of autonomous vehicles, challenge (i) can lead to detrimental behavior such as the prediction of multiple actors in a scene for a single object. The present solution addresses challenges (i) and (ii).
In this regard, the methods generally comprise: (i) capturing images using monocular cameras with overlapping FOVs and/or LiDAR datasets from different FOVs; (ii) using the images in a feature extraction module to generate spatial feature maps by applying filters or feature detectors to the images; (iii) optionally fusing the feature maps from the monocular cameras; (iv) using the spatial feature maps to define predictions such as monocular amodal cuboids for each object in the images; (v) optionally associating the predictions from the different feature maps with objects; and (vi) optionally using the predicted cuboids to control autonomous operations of a vehicle.
The term “spatial feature map” as used herein refers to a spatial-relational construct of an object. The spatial feature map is output from a function that converts or otherwise transforms a feature vector in one space (e.g., an image domain) into a feature vector in another space (e.g., a high-dimensional domain). For example, the function can return a spatial feature map comprising [a first detected feature identifier, a first detected feature classification, a first detected feature location in an image, a strength of a link from the first detected feature to a real object, a second feature identifier, a second detected feature classification, a second feature location in an image, a strength of a link from the second detect feature to the real object, . . . ]from an input vector [a first pixel identifier, a first pixel location, a first pixel color, a second pixel identifier, a second pixel location, a second pixel color, . . . ]. Each strength value of the spatial feature map can comprise a probabilistic strength of relation between the feature and a certain detected object (e.g., vehicle, pedestrian, bicycle, dog, etc.) in an image. The present solution is not limited to the particulars of this example.
In some scenarios, operation (iii) involves: identifying overlapping portions of the spatial feature maps; combining the overlapping portions of the spatial feature maps together to generate a combined spatial feature map; and using the combined spatial feature map to define predictions (e.g., semantic segmentation of the scene or a predicted cuboid for each object, where each predicted cuboid comprises an oriented 3D box encompassing a given object in proximity to the vehicle).
In those and/or other scenarios, operation (iii) involves: defining predictions at each location of the spatial feature maps, for example, using an algorithm for classification and regression of 3D coordinates and/or the overlapping portions of spatial feature maps as described above; and optionally performing an additional embedding with weights trained via, for example, a triplet or quadruplet loss algorithm to associate each prediction across cameras with overlapping FOVs based on similarities of visual features thereof.
Illustrative Implementing Systems
Referring now to
AV 1021 is generally configured to detect objects 1022, 114, 116 and perceive scenes in proximity thereto. The objects can include, but are not limited to, a vehicle 1022, a cyclist 114 (such as a rider of a bicycle, electric scooter, motorcycle, or the like) and/or a pedestrian 116. The image-based perception is achieved in accordance with a novel image-based perception process of the present solution. The novel image-based perception process will be described in detail below. The image-based perception process can be performed at the AV 1021, at the remote computing device 110, or partially at both the AV 1021 and the remote computing device 110. Accordingly, information related to image-based perception may be communicated between the AV and a remote computing device 110 via a network 108 (e.g., the Internet, a cellular network and/or a radio network). The image-based perception related information may also be stored in a datastore 112.
When such an image-based perception is made, AV 1021 performs operations to: generate one or more possible object trajectories for the detected object; and analyze at least one of the generated possible object trajectories to determine whether or not there is an undesirable level of probability that a collision will occur between the AV and object if the AV is to follow a given trajectory. If not, the AV 1021 is caused to follow the given vehicle trajectory. If so, the AV 1021 is caused to (i) follow another vehicle trajectory with a relatively low probability of collision with the object or (ii) perform a maneuver to reduce the probability of collision with the object or avoid collision with the object (e.g., brakes and/or changes direction of travel).
Referring now to
As shown in
Operational parameter sensors that are common to both types of vehicles include, for example: a position sensor 236 such as an accelerometer, gyroscope and/or inertial measurement unit; a speed sensor 238; and an odometer sensor 240. The vehicle also may have a clock 242 that the system uses to determine vehicle time during operation. The clock 242 may be encoded into the vehicle on-board computing device, it may be a separate device, or multiple clocks may be available.
The vehicle also will include various sensors that operate to gather information about the environment in which the vehicle is traveling. These sensors may include, for example: a location sensor 260 (e.g., a Global Positioning System (GPS) device); and image-based perception sensors such as one or more cameras 262. The sensors also may include environmental sensors 268 such as a precipitation sensor and/or ambient temperature sensor. The image-based perception sensors may enable the vehicle to detect objects that are within a given distance range of the vehicle 200 in any direction, while the environmental sensors collect data about environmental conditions within the vehicle's area of travel.
During operations, information is communicated from the sensors to a vehicle on-board computing device 220. The vehicle on-board computing device 220 analyzes the data captured by the sensors and optionally controls operations of the vehicle based on results of the analysis. For example, the vehicle on-board computing device 220 may control: braking via a brake controller 232; direction via a steering controller 224; speed and acceleration via a throttle controller 226 (in a gas-powered vehicle) or a motor speed controller 228 (such as a current level controller in an electric vehicle); a differential gear controller 230 (in vehicles with transmissions); and/or other controllers.
Geographic location information may be communicated from the location sensor 260 to the vehicle on-board computing device 220, which may then access a map of the environment that corresponds to the location information to determine known fixed features of the environment such as streets, buildings, stop signs and/or stop/go signals.
Captured images are communicated from the cameras 262 to the vehicle on-board computing device 220. The captured images are processed by the vehicle on-board computing device 220 to perceive the scene in proximity to the vehicle 200 in accordance with the novel image-based perception algorithm(s) of the present solution. The novel image-based perception algorithm(s) will be described in detail below.
When the vehicle on-board computing device 220 detects a moving object, the vehicle on-board computing device 220 will generate one or more possible object trajectories for the detected object, and analyze the possible object trajectories to assess the probability of a collision between the object and the AV if the AV was to follow a given vehicle trajectory. If the probability does not exceed the acceptable threshold, then the vehicle on-board computing device 220 may cause the vehicle 200 to follow the given trajectory. If the probability exceeds an acceptable threshold, the vehicle on-board computing device 220 performs operations to: (i) determine an alternative vehicle trajectory and analyze whether the collision can be avoided if the AV follows this alternative vehicle trajectory; or (ii) causes the AV to perform a maneuver (e.g., brake, accelerate, or swerve).
Referring now to
Computing device 300 may include more or less components than those shown in
Some or all components of the computing device 300 can be implemented as hardware, software and/or a combination of hardware and software. The hardware includes, but is not limited to, one or more electronic circuits. The electronic circuits can include, but are not limited to, passive components (e.g., resistors and capacitors) and/or active components (e.g., amplifiers and/or microprocessors). The passive and/or active components can be adapted to, arranged to and/or programmed to perform one or more of the methodologies, procedures, or functions described herein.
As shown in
At least some of the hardware entities 314 perform actions involving access to and use of memory 312, which can be a Random Access Memory (RAM), a disk drive, flash memory, a Compact Disc Read Only Memory (CD-ROM) and/or another hardware device that is capable of storing instructions and data. Hardware entities 314 can include a disk drive unit 316 comprising a computer-readable storage medium 318 on which is stored one or more sets of instructions 320 (e.g., software code) configured to implement one or more of the methodologies, procedures, or functions described herein. The instructions 320 can also reside, completely or at least partially, within the memory 312 and/or within the CPU 306 during execution thereof by the computing device 300. The memory 312 and the CPU 306 also can constitute machine-readable media. The term “machine-readable media”, as used here, refers to a single medium or multiple media (e.g., a centralized or distributed database, and/or associated caches and servers) that store the one or more sets of instructions 320. The term “machine-readable media”, as used here, also refers to any medium that is capable of storing, encoding or carrying a set of instructions 320 for execution by the computing device 300 and that cause the computing device 300 to perform any one or more of the methodologies of the present disclosure.
Referring now to
As shown in
In 406, LiDAR datasets may optionally be obtained by a computing device (e.g., computing device 110 of
In 408, spatial feature maps are generated by the computing device using the images captured in 404. The images can be used in a feature extraction module such as a CNN to generate the spatial feature maps. For example, images 500, 510 of
In 410, the computing device performs operations to identify overlapping portions of the spatial feature maps. Illustrative overlapping portions 504, 506 of spatial feature maps 502N, 512N are shown in
In 412, the overlapping portions of the spatial feature maps are combined together to form a combined spatial feature map. For example, overlapping portions 504, 506 of spatial feature maps 502N, 512N are combined together to form combined spatial feature map 508 of
Lcombined=w1L1+w2L2, (1)
wherein Lcombined represents a combined feature location value, L1 represents a location of a given feature in a first image, L2 represents a location of a corresponding feature in a second image, and w1, w2 represent weights. The weights may be predefined or dynamically determined or selected during 412 in accordance with algorithm(s), rule(s) or condition(s). For example, the weights can be dynamically determined based on relative locations of cameras on the AV, relative FOVs of the cameras that captured the images, and/or conditions of an environment external to an AV (e.g., a sensed amount of light, a sensed amount of rain, etc.). The weights can be computed using the listed information and/or selected from a list of pre-defined weights based on the listed information. Every feature in the combined spatial feature map will have a combined feature value.
In 414, the combined spatial feature map is used to define predictions such as cuboid(s) for each object. Each predicted cuboid comprises an orientated 3D box encompassing features that are associated with a given object. Techniques for defining predicted cuboids from spatial feature maps are well known. One such known technique that can be employed in 414 is using linear regression of the feature's 3D coordinates to learn edges of an object in an image and using the edges to define a predicted 3D cuboidal shape for the object. The predicted 3D cuboidal shape defined for the object is referred to as a predicted cuboid.
In 416, the predicted cuboids are optionally used to control autonomous operations of the vehicle. For example, the predicted cuboids are used to determine a track for the object. The object track can then be used to facilitate generation of a vehicle trajectory which the vehicle is caused to follow. Subsequently, 418 is performed where method 400 ends or other operations are performed.
Referring now to
During training, the intermediate feature embedding output by the network can be passed into a loss function that encourages the embedding to have a small distance to embeddings for the same object from a different view, and a large distance from other objects. This can be accomplished via, for example, a triple loss algorithm.
During interference, the distance between embeddings can be utilized to determine if two cuboid predictions correspond to the same object. Once predictions are associated, the predicted cuboids can be refined into a single cuboid prediction, potentially leveraging intermediate network features.
As shown in
In 606, LiDAR datasets may optionally be obtained by a computing device (e.g., computing device 110 of
In 608, spatial feature maps are generated by the computing device using the images captured in 604. The images can be used in, for example, a CNN to generate the spatial feature maps. For example, images 500, 510 of
In 610, predicted cuboids are defined at each location of an object in the images based on the spatial feature maps. Each predicted cuboid comprises an orientated 3D box encompassing features that are associated with a given object. Techniques for defining predicted cuboids from spatial feature maps are well known. One such known technique that can be employed in 610 is using linear regression of the feature's 3D coordinates to learn edges of an object in an image and using the edges to define a predicted 3D cuboidal shape for the object. The predicted 3D cuboidal shape defined for the object is referred to as a predicted cuboid. Such known techniques can be used in 610. Additionally or alternatively, operations 410-414 of
In 612, each predicted cuboid is associated with a given object. The manner in which this association is made will be discussed in detail below in relation to
Once the object-cuboid associations have been made, a track for a given object is optionally determined in 614. Techniques for determining object tracks based on predicted cuboids are well known. The object track is then optionally used in 616 to control autonomous operations of a vehicle. For example, the predicted cuboids are used to determine a track for the respective object. The object track can then be used to facilitate generation of a vehicle trajectory which the vehicle is caused to follow. Subsequently, 618 is performed where method 600 ends or other operations are performed.
Referring now to
Next in 706, a value is determined that indicates a likelihood that objects in different images are the same object based on the visual features. For example, the value can comprise an overall similarity value ranging from 0 to ten, where 0 indicates no similarity and ten indicates the greatest degree of similarity. The overall similarity value can be selected or computed based on the presence of certain visual features (e.g., a similarity value of 10 is selected when the object in a first image and the object in a second image are the same color (e.g., red), have the same overall shape (e.g., a car shape) and/or have the same sequence of symbols on the license plate—a similarity value of 0 is selected when the objects do not have the same color, shape and/or sequence of symbols). In some scenarios, one is added to a score for each visual feature of the objects that is the same. So, if there are ten visual features under consideration, the overall similarity value can be zero when the objects have no similar visual feature, one when the objects have one similar visual feature, two when the objects have two similar visual features, etc. The present solution is not limited in this regard.
If the likelihood value is greater than a threshold value [708:YES], then method 700 continues with 710 where the computing device makes a determination that the objects in the two images are the same object. The computing device also performs operations in 712 to associate the corresponding predicted cuboids with the same object. Subsequently, 718 is performed where method 700 ends or other operations are performed.
In contrast, if the likelihood value is less than or equal to the threshold value [708:NO], then method 700 continues with 714 where the computing device makes a determination that the objects in the two images are different objects. The computing device also performs operations in 716 to associate the corresponding predicted cuboids with different objects. Subsequently, 718 is performed where method 700 ends or other operations are performed.
Referring now to
Method 800 begins with 802 and continues with 804 where a feature embedding is generated from the region of the spatial feature maps for each predicted cuboid. The parameters for generating these feature embeddings can be learned via, for example, a triplet or quadruplet loss algorithm. The embeddings are used in 806 to obtain values for the visual features of each object in the images. These visual feature values are compared to each other to determine whether they are the same as each other by a certain amount or degree (e.g., 70% or the difference between two visual feature values is less than a threshold value). The generation of an additional embedding trained with, for example, a triplet loss algorithm addresses different angles of the objects and any occlusion of the objects. The feature embedding can be generated by applying a function (e.g., a 2D convolution function) point-wise to each point of the spatial feature map included in the predicted cuboid so as to transform the same to a data point feature embedding (e.g., visual descriptor of what the object is). Thus, the term “feature embedding” as used herein refers to a vector representation of visual and spatial features extracted from an image.
Triplet loss algorithms are well known. The triplet loss function is a machine learning algorithm where, during training, a baseline input is compared to a positive input and a negative input. The distance from the baseline input to the positive input is minimized, and the distance from the baseline input to the negative input is maximized. The triplet loss algorithm can be described using a Euclidean distance function as shown by the following mathematical equation (2).
(A,P,N)=max(∥f(A)−f(P)∥2−∥f(A)−∥f(N)∥2+α,0) (2)
where A is an achor input, P is a positive input of a same class as A, N is a negative input of a different class as A, α is a margin between positive and negative pairs, and f is a feature embedding.
Next in 806, the computing device determines a difference between each set of two feature embeddings. For example, an L1 or L2 distance function can be used to determine this difference. The L1 distance function may be defined by the following mathematical equation (3).
where L1 represents results from performing the L1 distance function, y1 represents an embedding derived from one feature map, y2 represents an embedding derived from a second feature map, and n represents an integer greater than 1. The L2 distance function may be defined by the following mathematical equation (4).
where L2 represents results from performing the L2 distance function.
The computing device also determines a difference between coordinates of each set of predicted cuboids, as shown by 808. Methods for determining differences between coordinate are well known. If the differences are less than respective threshold values [810:YES], then method 800 continues with 812 where a determination is made that the predicted cuboids should be associated with the same object. If the differences are less than the respective threshold values [810:NO], then method 800 continues with 814 where a determination is made that the predicted cuboids should not be associated with the same object. Subsequently, 816 is performed where method 800 ends or other operations are performed (e.g., return to 808 for a next set of predicted cuboids).
The predictions (e.g., cuboids) generated during methods 400, 600, 700 and/or 800 can be used by an AV for object trajectory prediction, general scene understanding, vehicle trajectory generation, and/or collision avoidance. A block diagram is provided in
In block 1102, a location of the vehicle is detected. This detection can be made based on sensor data output from a location sensor (e.g., location sensor 260 of
In block 1104, an object is detected within proximity of the vehicle. This detection is made based on sensor data output from a camera (e.g., camera 262 of
In block 1106, a vehicle trajectory is generated using the information from blocks 1102 and 1104. Techniques for determining a vehicle trajectory are well known in the art. Any known or to be known technique for determining a vehicle trajectory can be used herein without limitation. For example, in some scenarios, such a technique involves determining a trajectory for the AV that would pass the object when the object is in front of the AV, the object has a heading direction that is aligned with the direction in which the AV is moving, and the object has a length that is greater than a threshold value. The present solution is not limited to the particulars of this scenario. The vehicle trajectory 1124 can be determined based on the information 1120, the image-based perception information 1122, and/or a road map 1126 which is pre-stored in a datastore of the vehicle. The vehicle trajectory 1124 may represent a smooth path that does not have abrupt changes that would otherwise provide passenger discomfort. For example, the vehicle trajectory is defined by a path of travel along a given lane of a road in which the object is not predicted travel within a given amount of time. The vehicle trajectory 1124 is then provided to block 1108.
In block 1108, a steering angle and velocity command is generated based on the vehicle trajectory 1124. The steering angle and velocity command are provided to block 1110 for vehicle dynamics control.
Although the present solution has been illustrated and described with respect to one or more implementations, equivalent alterations and modifications will occur to others skilled in the art upon the reading and understanding of this specification and the annexed drawings. In addition, while a particular feature of the present solution may have been disclosed with respect to only one of several implementations, such feature may be combined with one or more other features of the other implementations as may be desired and advantageous for any given or particular application. Thus, the breadth and scope of the present solution should not be limited by any of the above described embodiments. Rather, the scope of the present solution should be defined in accordance with the following claims and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
11004233 | Wang | May 2021 | B1 |
20180045818 | Majumdar | Feb 2018 | A1 |
20180089541 | Stoop | Mar 2018 | A1 |
20190050692 | Sharma et al. | Feb 2019 | A1 |
20190104278 | Ermilios | Apr 2019 | A1 |
20190213744 | Friebe | Jul 2019 | A1 |
20190289282 | Briggs et al. | Sep 2019 | A1 |
20200003897 | Shroff | Jan 2020 | A1 |
20200034627 | Zhu et al. | Jan 2020 | A1 |
20200211375 | Vig | Jul 2020 | A1 |
20210042607 | Yan | Feb 2021 | A1 |
20220301099 | Cebron | Sep 2022 | A1 |
Number | Date | Country |
---|---|---|
2017177367 | Oct 2017 | WO |
2018184963 | Oct 2018 | WO |
Entry |
---|
A Self-Calibrating Probabilistic Framework for 3D Environment Perception Using Monocular Vision—2020 (Year: 2020). |
Stabilization and Validation of 3D Object Position Using Multimodal Sensor Fusion and Semantic Segmentation—2020 (Year: 2020). |
Sanatkar, M., “Lidar 3D Odject Detection Methods”, Towards Data Science, available at https://towardsdatascience.com/lidar-3d-object-detection-methods-f34cf3227aea. |
Dertat, A., “Applied Deep Learning—Part 4: Convolutional Neural Networks”, Towards Data Science, available at <https://towardsdatascience.com/applied-deep-learning-part-4-convolutional-neural-networks-584bc134c1e2>. |
Wang et al., “Multi-View Adaptive Fusion Network for 3D Object Detection”, arvix.org, Cornell University Library, Dec. 8, 2020, XP081830838. |
Chen et al., “F-Cooper: Feature based Cooperative Perception for Autonomous Vehicle Edge Computuing System Using 3D Point Clouds”, ARXIV.org, Cornell University Library, Sep. 13, 2019, XP081477159. |
Number | Date | Country | |
---|---|---|---|
20230038578 A1 | Feb 2023 | US |