Calibration of sensor devices
The method employs a neural network to optimize the calibration of LIDAR-camera systems by mapping sensor data into a common coordinate system, addressing the challenges of spatial and temporal calibration in autonomous vehicles, achieving efficient and reliable sensor fusion for navigation and detection.
Patent Information
- Application Number
- PCT/EP2023/054835
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-06
AI Technical Summary
Existing LIDAR-camera systems for autonomous vehicles face challenges in accurate spatial and temporal calibration, which is laborious and time-consuming, requiring specialized experiments with specific targets and laborious processes.
A method using a neural network to map sensor data from different coordinate systems into a common system, optimizing weights and relative transformations for spatial calibration, and time shifts for temporal calibration, allowing for on-the-fly calibration without specialized targets, suitable for multi-modal sensor systems like LIDAR and cameras.
Enables reliable and cost-efficient spatial and temporal calibration of sensor devices, facilitating efficient sensor fusion and perception for autonomous vehicles, allowing for precise 3D detection and navigation without the need for specialized targets or laborious calibration processes.
Smart Images

Figure EP2023054835_06092024_PF_FP
Abstract
Description
[0001] CALIBRATION OF SENSOR DEVICES
[0002] TECHNICAL FIELD
[0003] The present disclosure relates to the calibration of sensor devices, in particular, LIDAR-camera systems and, more particularly, LIDAR-camera systems for at least partially autonomous vehicles.
[0004] BACKGROUND
[0005] Sensor systems comprising a plurality of sensor device pose the problem of spatial or spatiotemporal calibration of the individual sensor devices with respect to each other. Each of the sensor devices obtains sensor data based on its individual poses and in its own local coordinate system. In order to make combined use of all of the obtained sensor data it has to be known how the sensor devices are spatially oriented with respect to a common coordinate system and what time shifts occur between timeframes of sensor data obtained by one of the sensor devices with respect to timeframes of sensor data obtained by another one of the sensor devices.
[0006] For example, LIDAR-camera sensing systems comprising one or more Light Detection and Ranging, LIDAR, device configured for obtaining a temporal sequence of 3D point cloud data sets for sensed objects and one or more camera devices configured for capturing a temporal sequence of 2D images of the objects are employed in a variety of applications. Multimodal sensor calibration is demanding since it deals with different types of data formats (2D images vs 3D point clouds). Particularly, vehicles as automobiles, Automated Guided Vehicles (AGV) and autonomous mobile robots can be equipped with such LIDAR-camera sensing systems to facilitate navigation, localization and obstacle avoidance. In the automotive context, the LIDAR-camera sensing systems can be comprised by Advanced Driver Assistant Systems (ADAS).
[0007] Each of the LIDAR device and the camera device reports information with respect to its own local coordinate system. For correct operation of the LIDAR-camera system accurate spatial calibration of the LIDAR device(s) and the camera device(s) with respect to each other is needed, i.e., the rotation (tensor) R and translation (tensor) T representing the spatial relationship between the LIDAR device and the camera device have to be determined accurately. Furthermore, if the individual sensor devices are not synchronized with each other, for example, by some hardware synchronization, temporal calibration is also needed.
[0008] Spatial calibration is the process of finding the spatial relationships (i.e. transformation matrices) between the different sensor devices of the system (for example, cameras, radars, LIDARS, inertial measurement units, etc.). Temporal calibration is the process of finding the time offsets between the data frames coming from the different sensors.
[0009] These calibration processes pose severe problem that are conventionally addressed by performing experiments after installment of the LIDAR-camera system. These experiments are based on the sensing of specific targets (checkboards) visible by both kinds of sensor devices. Features like corners and edges can be extracted from point clouds and images of the well- known target (checkboard) and can be used in an optimization procedure that is employed to find the spatial calibration between the two kinds of sensor devices that enables matching of the features. However, such experiments are laborious and time-consuming and have to be carefully performed by specialists.
[0010] SUMMARY
[0011] In view of the above, it is an objective underlying the present application to provide a technique for accurate spatial and / or spatiotemporal calibration of sensor devices of a sensor system, in particular, spatial and / or spatiotemporal LIDAR-camera calibration at low costs and with a high reliability and scalability.
[0012] The foregoing and other objectives are achieved by the subject matter of the independent claims. Further implementation forms are apparent from the dependent claims, the description and the figures.
[0013] According to a first aspect, it is provided a method of calibrating a set of second sensor devices with respect to a first sensor device different from the second sensor devices. The method comprises the steps of obtaining by the first sensor device first sensor data (first observations) in a first coordinate system and obtaining by each of the second sensor devices second sensor data (second observations) in respective second coordinate systems, wherein the second coordinate systems are different from each other and different from the first coordinate system and mapping the first sensor data and the second sensor data obtained by each of the second sensor devices (from the respective local second coordinate systems) into a common coordinate system (different from the first and second coordinate systems) to obtain mapped first and second sensor data. The method further comprises training a neural network based on the mapped first and second sensor data by conjointly optimizing both a) weights of the neural network for outputting a neural network representation of an environment captured by the first and second sensor devices and b) relative transformations from the first coordinate system to the second coordinate systems (expressed in the first coordinate system), and spatially calibrating each of the second sensor devices with respect to the first sensor device based on the trained neural network (namely, the obtained optimized relative transformations).
[0014] It goes without saying that herein the term “neural network” refers to an artificial neural network. The first sensor device may be a camera device or a Light Detection and Ranging, LIDAR, device and the second sensor devices may comprise at least one of a) at least one camera device, b) at least one LIDAR device and c) at least one camera device and at least one LIDAR device. The camera device may, for example, be a Time-of-Flight camera, depth camera, etc., and the LIDAR device may, for example, be a Micro-Electro-Mechanical System, MEMS, LIDAR device, solid state LIDAR device, etc.
[0015] Particularly, both the first and second sensor devices may be moving during the calibration process.
[0016] It is known that neural networks are trained by optimizing their weights. Optimizing the weights is performed by minimizing differences between outputs generated by the neural networks and training samples, i.e., minimizing the objective functions (for example, loss functions) of the neural networks. In the method according to the first aspect not only weights are optimized during the training process in order to obtain a neural network representation of an environment captured by the sensor devices (the environment captured by the sensor devices is represented by the mapped sensor data) but also, conjointly with optimizing the weights, relative transformations from the local first coordinate system of the first sensor device to the local second coordinate systems of the individual second sensor devices are optimized.
[0017] When the training process is completed the optimized local transformations are known and can readily be used for the spatial calibration of the sensor devices. This method of calibrating a set of second sensor devices with respect to a first sensor device according to the first aspect allows for on-the-fly calibration of the sensor devices (for example, during travel of a vehicle equipped with the sensor devices) in a reliable an cost efficient manner. Particularly, a plurality of sensor systems and device comprising the sensor devices can individually be calibrated during training of the neural network performed in order to obtain a synthetic environmental view. There is no need for providing specially designed targets in the environment in order to carry out the calibration process and, therefore, the calibration can be quickly completed and effectively. Further, the method is highly suitable for the calibration of multi-modal sensor system dealing with different kinds of data format (for example, comprising camera devices providing 2D images and LIDAR devices providing 3D point clouds).
[0018] In the case that the second devices are not synchronized with each other temporal calibration in addition to spatial calibration is needed. Thus, according to an implementation of the method according to the first aspect, wherein the first sensor data comprises first timeframes and the second sensor data obtained by each of the second sensor devices comprises second timeframes, the neural network is trained by c) optimizing time shifts of the second timeframes of the second sensor data obtained by at least one of the second sensor devices with respect to the first timeframes conjointly with the optimizing of the weights of the neural network and the relative transformations from the first coordinate system to the second coordinate systems. The method according to this implementation further comprises temporally calibrating the at least one of the second sensor devices with respect to the first sensor device based on the trained neural network namely, the optimized time shifts.
[0019] Consequently, the at least one second sensor device is spatiotemporal calibrated with respect to the first sensor device based on the trained neural network. If none of the second sensor devices is already synchronized with the first sensor device, all second sensor devices of the set of second sensor devices may be temporally calibrated according to this implementation. Different from the art, according to this implementation the spatial and the temporal calibration can be achieved conjointly and, thus, in a reliable and efficient manner.
[0020] The observations of the individual sensor devices have to been mapped to a common coordinate system. According to an implementation of the method according to the first aspect, this mapping can conveniently be performed based on a trajectory (trajectory interpolation function obtained based on discrete position / pose measurements) of the (moving) first sensor device in the common coordinate system, priors of the relative transformations (expressed in the first coordinate system) and priors of the time shifts. The prior represents rough first estimations that, for example, can be obtained based on some constructor plan or Computer Aided Design, CAD, data.
[0021] According to an implementation of the method according to the first aspect, the neural network comprises a (deep) Multilayer Perceptron, MLP, (fully connected feedforward) neural network. Particularly the neural network is trained based on the Neural Radiance Field (NeRF) technique introduced by B. Mildenhall et al. in a paper, entitled “Nerf: Representing scenes as neural radiance fields for view synthesis” in “Computer Vision - ECCV 2020”, 16thEuropean Conference, Glasgow, UK, August 23-28, 2020, Springer, Cham, 2020, that nowadays have become a favorite tool for view synthesis. The NeRF trained neural network provides a neural field comprising color values and spatially dependent volumetric density values. The neural field can be queried at multiple locations along rays for volume rendering (see detailed description below). According to this implementation, the neural network representation of the environment captured by the sensor devices is given by the neural field used for the subsequently performed volumetric rendering that results in a rendered image or point cloud, for example. Differences between the rendered image or point cloud and the mapped sensor data are to be minimized in the training process.
[0022] According to this implementation, calibration can be performed based on the NeRF trained neural network wherein the training not only comprises optimizing the weights (as in the paper by Mildenhall et al.) but also optimizing the relative transformations or the relative transformations and time shifts as described above. Due the high rendering quality provided by NeRF at relatively low computational costs and memory demands it can be suitably used in the provided method of calibrating a set of second sensor devices with respect to a first sensor device, particularly, when run on an embedded computational system with limited computational resources.
[0023] According to an implementation, when the neural network is trained based on the Neural Radiance Field technique, the conjointly optimizing both a) the weights of the neural network for outputting a neural network representation of an environment captured by the first and second sensor devices and b) the relative transformations from the first coordinate system to the second coordinate systems (expressed in the first coordinate system) is performed based on minimizing an objective function L according to arg min L = arg , wherein time(nf) designates a function that associates a timestamp with a corresponding timeframe ni, 0 denotes the weights, T^c. denotes the relative transformations (expressed in the first coordinate system), ’j'tc~time^ denotes the poses of the first sensor device in the common coordinate system, Zn. denotes ground truth sensor data (for example, images or point clouds), Zgdenotes neural network based representations of sensor data (for example, images or point clouds rendered by volumetric rendering based on the neural field), c0denotes the first sensor device / first coordinate system, C denotes the number of second sensor devices (with second coordinate systems) cf, Ntdenotes a number of the second timeframes obtained by the i-th second sensor device, and ||. . || denotes a norm.
[0024] This objective function may suitably be used for the optimizing process in the context of spatially calibrating the sensor devices.
[0025] According to another implementation, when the neural network is trained based on the Neural Radiance Field technique and spatiotemporal calibration of the sensor devices is to be achieved, the conjointly optimizing a) the weights of the neural network for outputting a neural network representation of an environment captured by the first and second sensor devices, b) the relative transformations from the first coordinate system to the second coordinate systems and c) the time shifts of the second timeframes obtained by at least one of the second sensor devices with respect to the first timeframes is performed based on minimizing an objective function L according to arg min L = arg , wherein time(nf) designates a function that associates a timestamp with a corresponding timeframe nt, 0 denotes the weights, T^c. denotes the relative transformations, dtfdenotes time shifts between the second timeframes with respect to the first time frames,CQdenotes a trajectory (trajectory interpolation function obtained based on discrete position / pose measurements) of the first sensor device in the common coordinate system, Zn. denotes ground truth sensor data (for example, images or point clouds), Zgdenotes neural network based representations of sensor data (for example, images or point clouds rendered by volumetric rendering based on the neural field), c0denotes the first sensor device / first coordinate system, C denotes the number of second sensor devices (with second coordinate systems) cf, Ntdenotes a number of the second timeframes obtained by the i-th second sensor device, and ||. . || denotes a norm.
[0026] This objective function may suitably be used for the optimizing process in the context of spatiotemporal calibrating the sensor devices.
[0027] The method of calibrating a set of second sensor devices with respect to a first sensor device according to the first aspect and implementations thereof as described above can be suitably used for calibrating sensor systems installed on vehicles, for example, (in particular, fully or partially autonomous) automobiles, autonomous mobile robots or Automated Guided Vehicles (AGV). Thus, according to an implementation the first sensor device and the second sensor devices are installed on a vehicle. In this case, the method according to the first aspect and implementations thereof may be performed during movement of the vehicle. Reliable calibration based on the method according to the first aspect and implementations thereof allows successful fused perception of numerous (multi-modal) sensor devices for tracking and detection verification, ego vehicle trajectory estimation with multimodal sensor fusion, precise 3D detection from multi camera system with stereo algorithm, etc.
[0028] At least one of the training and calibrating steps of the method according to the first aspect and implementations thereof may be performed at the vehicle site with even limited computational resources of the embedded computational system or at a remote site that is provided with the sensor data needed for calibration purposes.
[0029] According to a second aspect a computer program product comprising computer readable instructions for, when run on a computer, for example, a computer installed in a vehicle, performing the steps of the method according to the first aspect or any implementation thereof is provided.
[0030] According to a third aspect, a calibration system is provided. The calibration system comprises a first sensor device configured for obtaining first sensor data in a first coordinate system, a set of second sensor devices different from the first sensor device, each second sensor device being configured for obtaining second sensor data in respective second coordinate systems, wherein the second coordinate systems are different from each other and different from the first coordinate system, a neural network, and a processing unit. The processing unit is configured for mapping the first sensor data and the second sensor data obtained by each of the second sensor devices into a common coordinate system (different from the first and second coordinate systems) to obtain mapped first and second sensor data, training the neural network based on the mapped first and second sensor data by conjointly optimizing both a) weights of the neural network for outputting a neural network representation of an environment captured by the first and second sensor devices and b) relative transformations from the first coordinate system to the second coordinate systems. Further, the processing unit is configured for spatially calibrating each of the second sensor devices with respect to the first sensor device based on the trained neural network.
[0031] The first sensor device may be camera device or a Light Detection and Ranging, LIDAR, device and the second sensor devices may comprise at least one of a) at least one camera device, b) at least one LIDAR device and c) at least one camera device and at least one LIDAR device. The camera device may, for example, be a Time-of-Flight camera, depth camera, etc., and the LIDAR device may, for example, be a Micro-Electro-Mechanical System, MEMS, LIDAR device, solid state LIDAR device, etc.
[0032] The calibration system according to the third aspect and the implementations of the same described below provide the same or similar advantages as the ones described above with reference to the method according to the first aspect and the implementations thereof. The calibration system according to the third aspect and the implementations of the same may be configured to perform the method according to the third aspect as well as the implementations thereof.
[0033] According to an implementation suitable for spatiotemporal calibration, the first sensor data comprises first timeframes and the second sensor data obtained by each of the second sensor devices comprises second timeframes and the processing unit is configured for training the neural network by c) optimizing time shifts of the second timeframes obtained by at least one of the second sensor devices with respect to the first timeframes conjointly with the optimizing of the weights of the neural network and the relative transformations from the first coordinate system to the second coordinate systems (expressed in the first coordinate system) and temporally calibrating the at least one of the second sensor devices with respect to the first sensor device based on the trained neural network. The processing unit of the calibration system according to the first aspect and implementations thereof may be configured for mapping the first sensor data and the second sensor data obtained by each of the second sensor devices into the common coordinate system based on a trajectory (trajectory interpolation function obtained based on discrete position / pose measurements) of the first sensor device in the common coordinate system, priors of the relative transformations (expressed in the first coordinate system) and priors of the time shifts.
[0034] According to an implementation, the processing unit of the calibration system is configured for training the neural network based on the Neural Radiance Field technique.
[0035] According to an implementation, the processing unit of the calibration system is configured for training the neural network based on the Neural Radiance Field technique and conjointly optimizing both a) the weights of the neural network for outputting a neural network representation of an environment captured by the first and second sensor devices, and b) the relative transformations from the first coordinate system to the second coordinate systems (expressed in the first coordinate system) based on minimizing an objective function L according to arg min L = arg wherein time(nf) designates a function that associates a timestamp with a corresponding timeframe rij, 0 denotes the weights, T^c. denotes the relative transformations, Tfc~time(ni>denotes the poses of the first sensor device in the common coordinate system, Zn. denotes ground truth sensor data (for example, images or point clouds), Zgdenotes neural network based representations of sensor data (for example, images or point clouds rendered by volumetric rendering based on the neural field), c0denotes the first sensor device / first coordinate system, C denotes the number of second sensor devices (with second coordinate systems) cf, Ntdenotes a number of the second timeframes obtained by the i-th second sensor device, and ||. . || denotes a norm.
[0036] According to another implementation suitable for spatiotemporal calibration, the processing unit of the calibration system is configured for training the neural network based on the Neural Radiance Field technique and training the neural network based on the Neural Radiance Field technique and conjointly optimizing both a) the weights of the neural network for outputting a neural network representation of an environment captured by the first and second sensor devices, b) the relative transformations from the first coordinate system to the second coordinate systems (expressed in the first coordinate system), and c) the time shifts of the second timeframes obtained by at least one of the second sensor devices with respect to the first timeframes based on minimizing an objective function L according to arg min L = arg wherein time(nf) designates a function that associates a timestamp with a corresponding timeframe 0 denotes the weights, T^c. denotes the relative transformations, denotes time shifts between the timeframes of the second timeframes with respect to the first timeframes,CQdenotes a trajectory (trajectory interpolation function obtained based on discrete position / pose measurements) of the first sensor device in the common coordinate system, Zn. denotes ground truth sensor data (for example, images or point clouds), Zgdenotes neural network based representations of sensor data (for example, images or point clouds rendered by volumetric rendering based on the neural field), c0denotes the first sensor device / first coordinate system, C denotes the number of second sensor devices (with second coordinate systems) cf, Ntdenotes a number of the second timeframes obtained by the i-th second sensor device, and ||. . || denotes a norm.
[0037] According to fourth aspect, a vehicle comprising the calibration system according to the third aspect or any implementation thereof is provided. The vehicle may be an automobile, an autonomous mobile robot or an Automated Guided Vehicle (AGV), for example.
[0038] Details of one or more embodiments are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims.
[0039] BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In the following, embodiments of the present disclosure are described in more detail with reference to the attached figures and drawings, in which:
[0041] Figure 1 illustrates the aim of spatial calibration of sensor devices. Figure 2 illustrates the aim of temporal calibration of sensor devices.
[0042] Figure 3 illustrates principles of an embodiment of the method of calibrating sensor devices provided herein.
[0043] Figures 4 and 5 illustrate spatiotemporal calibration of sensor devices according to an embodiment.
[0044] Figures 6 and 7 illustrate spatial calibration of sensor devices according to an embodiment.
[0045] Figure 8 is a flow chart illustrating a method of spatially calibrating sensor devices according to an embodiment.
[0046] Figure 9 is a flow chart illustrating a method of spatially and temporally calibrating sensor devices according to an embodiment.
[0047] Figure 10 illustrates a calibration system according to an embodiment.
[0048] DETAILED DESCRIPTION OF THE EMBODIMENTS
[0049] Herein, it is provided a method of calibrating sensor devices, particularly, spatial or spatiotemporal calibration of multimodal-sensors, with joint optimization of sensor observations and calibration parameters based on a (Neural Radiance Field) NeRF scene representation. Whereas the following description of embodiments refers to the NeRF techniques other techniques for implicit representation of environments / scenes based on neural fields and image rendering might be suitably used in alternative embodiments.
[0050] It is provided a solution for spatial or spatiotemporal extrinsic calibration of multiple cameras and LiDARs sensors setups typically used for Advanced Driver Assistant Systems (ADAS) and self-driving vehicles (e.g. containing a single or multiple cameras and a single or multiple LiDARs) without requiring any a-priori known targets (i.e., target-less calibration is provided). The spatiotemporal calibration comprises finding the relative poses and time shifts of timeframes for all the sensor devices relative to a main sensor device. These poses are expressed in terms of rotation (matrix) R, translation (matrix) T and time shift dt.
[0051] The translation T and rotation R represents a rigid spatial transformation between a coordinate system centered on the main sensor device device and a coordinate system centered on each of the other sensor devices. Translation can include three translational movements in three perpendicular axes x, y, and z. Rotation can include three rotational movements, i.e., roll, yaw and pitch, about the three perpendicular axes x, y, and z. Transformation of the coordinates from one of the coordinate systems to the other can be obtained by matrix multiplication.
[0052] Using, for example, a calibrated pinhole camera model that is commonly used in computer vision, pixel coordinates (u, v) of the projection of a 3D point, with its 3D coordinates expressed in its own coordinate system, are obtained by multiplying the 3D coordinates of this point expressed in a camera coordinate system (lower index K) by the so called camera intrinsic matrix K (where fx, fycorrespond to the focal length of the camera in pixel units, wherein fx= fyholds for square pixels cameras, and uo, vo denote the projection of the optical center of the camera on the image plane): where the lower index L denotes the coordinate system of the main sensor device and R and T denote the rotation and translation from the coordinate system of the main sensor device with respect to the coordinate system of one of the other sensor devices.
[0053] Figure 1 illustrates the aim of spatial calibration of sensor devices. A vehicle 10 is equipped with one or more LIDAR devices I and at least a first camera device cO and a second camera device cl. In Figure 1, a coordinate system (frame) associated with the vehicle 10 is denoted by v, coordinate systems (frames) associated with the camera devices are denoted by q, i G C and coordinate systems (frames) associated with the LIDAR devices are denoted by f, j G L . The extrinsic calibration (= spatial calibration) of the sensor devices mounted on the vehicle is given by the set of relative transformations T^tin the vehicle frame v that describes the transformation between the vehicle coordinate system and the individual coordinate systems of the camera / LIDAR devices. As shown in Figure 1 the relative transformation from the coordinate frame of the vehicle 10 to the coordinate frames of the individual sensor device, / , cO, cl, defines the respective extrinsic parameters of translation and rotation. The vehicle coordinate frame v can be replaced by the coordinate system of one of the sensor devices (coordinate frame of the “main sensor device”), for example, the coordinate system of the LIDAR device I.
[0054] Figure 2 illustrates the aim of temporal calibration of sensor devices. Consider a vehicle V with poses (pose measurements) T 't~kby the main sensor device expressed in a common (global) coordinate frame w acquired at time steps (stamps) k, k = 0, 1, 2. . , n. From these observations, a continuous differentiable trajectory interpolation function T (t) for the trajectory of the main sensor device (including the poses and the coordinate frame fixed to it) in the common coordinate frame can be obtained by interpolating the measured poses at the discrete time steps k. When another sensor device c0mounted on the vehicle V generates measurements at timestamps k' , k' k, along the vehicle trajectory, the aim of temporal calibration is to determine the constant time shift dt between the observations (or interpolated observations) made by the main sensor of the vehicle V and observations (or interpolated observations) by the other sensor device at k' = k + dt. In the following, it is assumed that the time shift between the temporal frames captured by the main sensor device and the temporal frames captured by the other sensor devices is constant.
[0055] According to the present disclosure, a neural network is trained based on data provided by the sensor devices for both representing an environment and obtaining calibration parameters. The neural network outputs a neural field that can be used for volumetric rendering as it is known from the NeRF technique, for example. According to a particular implementation, the neural network comprises or consists of a (deep) multilayer perceptron (MLP), i.e. a fully connected feedforward neural network, that is trained based on the Neural Radiance Field (NeRF) technique as proposed by B. Mildenhall et al. in a paper, entitled “Nerf: Representing scenes as neural radiance fields for view synthesis” in “Computer Vision - ECCV 2020”, 16thEuropean Conference, Glasgow, UK, August 23-28, 2020, Springer, Cham, 2020. NeRF allows for obtaining a neural network representation of the environment based on color values and spatially-dependent volumetric density values (representing the neural field).
[0056] Input data for the neural network represent coordinates (x, y, z) of a sampled set of 3D points and the viewing directions (0, (p) corresponding to the 3D points and the NERF trained neural network outputs view dependent color values (for example RGB) and volumetric density values c. Thus, the MLP realizes F©: (x, y, z, 9, (p) -> (R, G, B, c) with optimized weights 0 obtained during the training process. The volumetric rendering is based on rays passing through the scene (cast from all pixels of images). The volumetric density c(x, y, z) can be interpreted as the differential probability of a ray terminating at an infinitesimal particle at (x, y, z). By gathering all the volumetric density values along the ray direction, the accumulated transmittance T(s) along the ray direction can be computed T(s) = exp(— Jos<j(r(Z))dZ. The accumulated transmittance T(s) along the ray from its origin 0 to s represents the probability that the ray travels its path to s without hitting any particle.
[0057] The implicit representation (neural field) is queried at multiple locations along the rays and then the resulting samples are composed into an image. The training objective of a NeRF neural network can be defined by: arg (equation 1), where 0 denotes trainable parameters of the implicit NeRF representation (i.e., the weights of the neural network), Inis the training image n, n G N, and Ig(Tn, K) is the NeRF-generated (volumetrically rendered) image at pose Tn(pose of image Zn) with camera parameter Kn(camera parameter, for example, resolution, field of view, etc., of image Zn) with a suitable norm ||. . || . For example, the L2 norm (L2 loss function) may be employed.
[0058] An analogous formulation can be used to train the NeRF using geometric information (for example, depth map from a LIDAR device) argmjn wherein Dnis the training depth map n, n G N, and Dg(Tn, K) is the NeRF-generated depth map at pose Tn(pose of training depth mapn) with LIDAR parameter Kn(LIDAR parameter, for example, resolution, field of view, etc., of training depth mapn).
[0059] Principles of an embodiment of the method of calibrating sensor devices based on the NeRF technique as provided herein are illustrated in Figure 3. A NeRF neural network is trained by a scene using multi-sensor observations of sensor devices rigidly mounted on a vehicle v. All available sensor observations are mapped to a common coordinate frame 33 using a main sensor trajectory (or device / vehicle trajectory; see also description above) 31 and extrinsic priors (initial rough estimates of calibration parameters, for example, obtained based on some constructor plan or Computer Aided Design, CAD, data) 32. The implicit representation F0of the scene is trained by minimizing the difference between the multi-modal observations (colors or depths) and predicted modalities generated through ray marching based on the implicit representation obtained by the neural network as known in the art.
[0060] According to the present disclosure, while optimizing weights of the implicit representation, jointly (i.e., simultaneously in the same adaptation / backpropagation steps) the rigid extrinsic calibration between the sensor devices mounted on the vehicle is optimized 34 using the same optimization objective function used for the adaptation of the weights of the neural network. In the case of spatiotemporal calibration, while optimizing the weights of the implicit representation and the extrinsic calibration parameters, the acquisition time shift between the sensor devices is also jointly optimized using the same optimization objective function. The optimized spatiotemporal calibration 35 of the sensor devices of the vehicle is obtained after training convergence has been reached.
[0061] Figures 4 and 5 illustrate spatiotemporal calibration of sensor devices based on NeRF technique according to an embodiment. For example, temporal and spatial calibration is performed directly on a device, for example, a vehicle, equipped with both one or more camera devices and one or more LIDAR devices. Temporal and spatial calibration may be performed at least partly by some remote server provided with the necessary data.
[0062] In order to train an implicit representation of a scene captured by the multimodal sensor devices observations from each of the sensor devices are needed in a common coordinate frame (global frame, world frame, w). For this, the pose priors (first estimates) of each sensor device have to been obtained.
[0063] To compute pose priors of each sensor device in the common coordinate frame, the following inputs are needed in this example (see “Inputs” column of Figure 4):
[0064] • The trajectory T of a main sensor device, for example, a LIDAR device or a first camera, c0, in the common coordinate frame which can readily be obtained by a Global Navigation Satellite System (GNSS), by Simultaneous Localization and Mapping (SLAM) or Structure from Motion (SfM) techniques, etc. • The priors of the extrinsic calibrations of all the (second, auxiliary) sensor devices that are different from the main (first) sensor device, i.e. the relative transformations (in the coordinate frame of the main sensor device) from the coordinate frame of the main sensor device to the coordinate frames of the individual second sensor devices TC(' .
[0065] • The priors of the time shifts between the main sensor device and the second sensor devices dtj.
[0066] The pose priors for each observation of each sensor device i in the common frame can be computed (see 51 and 52 in Figure 5) based on these inputs by:
[0067] Given the pose priors for each observation from each sensor device i in the common coordinate frame, the observations from each of the sensor devices i in the common coordinate frame w can be obtained (see 41 in Figure 4). The observations from each of the sensor devices i in the common coordinate frame w are used for training the neural network (see 42 in Figure 4). Training of the neural network 42 comprises both training of the implicit representation of the respective scenes, i.e., optimizing of the weights of the neural network and conjointly the relative transformations T^c. and the time shift dt. After convergence of the optimization has been reached the actual relative transformations T^c. (external spatial calibration) and the time shift dt after optimization are obtained, i.e., output by the neural network or obtained based on an output of the neural network (see Figure 4).
[0068] In view of the objective given in equation 1 above, the optimization problem for C cameras and observations given for N timeframes can be defined by ar mm wherein time(nf) designates a function that associate a timestamp with a corresponding timeframe nLand Ntdenotes a number of the second timeframes obtained by the i-th second sensor device. The training images Iniare the observations (sensor data) of the second sensor devices in the common coordinate frame. The camera parameters are not considered here, since they will be kept constant and, thus, do not contribute to the objective. Using the trajectory interpolation function (see equation 3) one obtains wherein Tc° is the identity matrix. The relative transformations T^° . can be added to the C()^C0optimization parameter 0 (weights) due to the differentiability of the image rendering function Igwith respect to the poses and the time shifts can also be added to the optimization parameters due to the differentiability of the trajectory interpolation function.
[0069] Sensor devices other camera devices can be treated correspondingly. For example, observations from LIDAR devices can be input in the optimization process by replacing the ground truth images Inand generated (i.e., rendered) images Igby ground truth LIDAR rays depth maps Dn(see equation 2) and depth maps D0generated based on the neural field and volumetric rendering. Thanks to the implicit representation with weights 0, camera and LIDAR observations are tightly coupled during the optimization process.
[0070] Figures 6 and 7 illustrate spatial calibration only of sensor devices synchronized with each other based on NeRF technique according to an embodiment. When all sensor devices are already synchronized with each other (for example, hardware synchronized) calibration is easier and faster as compared to the embodiment described with reference to Figures 4 and 5.
[0071] To compute pose priors of each sensor device in the common coordinate frame, the following inputs are needed in this example (see “Inputs” column of Figure 6):
[0072] • The poses T (fc) of the main sensor device, for example, a LIDAR device or a first camera, c0, in the common coordinate frame which can be readily measured.
[0073] • The priors of the extrinsic calibration of all the (second, auxiliary) sensor devices that are different from the main (first) sensor device, i.e. the relative transformations (in the coordinate frame of the main sensor device) from the coordinate frame of the main sensor device to the coordinate frames of the individual second sensor devices T^° .. The pose priors for each observation of each sensor device i in the common frame can be computed based on these inputs by:
[0074] Given the pose priors for each observation from each sensor device i in the common coordinate frame, the observations from each of the sensor devices i in the common coordinate frame w can be obtained (see 61 in Figure 6). The observations from each of the sensor devices i in the common coordinate frame w are used for training the neural network (see 62 in Figure 6). After completion of the training process the actual relative transformations T^c. (external spatial calibration) are obtained, i.e., output by the neural network or obtained based on an output of the neural network (see Figure 6).
[0075] As compared to the embodiment described with reference to Figures 4 and 5 the objective reduces to
[0076] The process of joint optimization of the weights and the external spatial calibration parameters is illustrated in Figure 7. Observations made by a plurality of sensor device with different poses 71 are used for training an implicit scene representation Ft? 72. Differences between the observed scene and the scene representation are to be minimized 73 by updating both the scene representation and the observation position (pose).
[0077] A method of spatially calibrating second sensor devices with respect to a first sensor device 80 according to an embodiment is illustrated in Figure 8. The method 80 can suitably be applied when the second sensor devices to be calibrated spatially with the first sensor device are synchronized with the same.
[0078] The method 80 comprises obtaining S81 by the first sensor device (for example, a camera device or a LIDAR device, for example, the LIDAR device I shown in Figure 1) first sensor data (for example, images or point clouds of an environment at different timeframes) in a first coordinate system (namely, the coordinate system fixed with and moving with the first sensor device) and obtaining by each of the second sensor devices (for example, camera devices, LIDAR devices or a combination of camera devices and LIDAR devices, for example camera devices cO and cl shown in Figure 1) second sensor data (for example, images or point clouds of an environment at different timeframes) in respective second coordinate systems (to each of the second sensor devices its own second coordinate system is fixed), wherein the second coordinate systems are different from each other and different from the first coordinate system.
[0079] The method 80 further comprises mapping S82 the first sensor data and the second sensor data obtained by each of the second sensor devices into a common (global, world) coordinate system to obtain mapped first and second sensor data (namely, mapped to the common coordinate system). The mapping S82 may be performed using the priors described above with reference to the “Inputs” column of Figure 6.
[0080] The method 80 further comprises training S83 a neural network based on the mapped first and second sensor data by conjointly optimizing both weights of the neural network for outputting a neural network representation of an environment captured by the first and second sensor devices and relative transformations from the first coordinate system to the second coordinate systems. The optimization procedure may be performed in accordance with the example described above with reference to Figure 6; see, particularly, equation 7.
[0081] The method 80 further comprises spatially calibrating S84 each of the second sensor devices with respect to the first sensor device based on the trained neural network, namely, using the optimized relative transformations from the first coordinate system to the second coordinate systems.
[0082] A method of spatially and temporally calibrating second sensor devices with respect to a first sensor device 90 according to an embodiment is illustrated in Figure 9. This method is suitable when the second sensor devices to be calibrated with respect to the first sensor device are not synchronized with the same.
[0083] The method 90 comprises obtaining S91 by the first sensor device (for example, a camera device or a LIDAR device, for example, the LIDAR device I shown in Figure 1) first sensor data (for example, images or point clouds of an environment at different timeframes) in a first coordinate system (namely, the coordinate system fixed with and moving with the first sensor device) and obtaining by each of the second sensor devices (for example, camera devices, LIDAR devices or a combination of camera devices and LIDAR devices, for example camera devices cO and cl shown in Figure 1) second sensor data (for example, images or point clouds of an environment at different timeframes) in respective second coordinate systems (to each of the second sensor devices its own second coordinate system is fixed), wherein the second coordinate systems are different from each other and different from the first coordinate system. The first sensor data comprises first timeframes and the second sensor data obtained by each of the second sensor devices comprises second timeframes.
[0084] The method 90 further comprises mapping S92 the first sensor data and the second sensor data obtained by each of the second sensor devices into a common (global, world) coordinate system to obtain mapped first and second sensor data (namely, mapped to the common coordinate system). The mapping S92 may be performed using the priors described above with reference to the “Inputs” column of Figure 4.
[0085] The method 90 further comprises training S93 the neural network by optimizing time shifts of the second timeframes of the second sensor data obtained by at least one of the second sensor devices with respect to the first timeframes conjointly with optimizing of the weights of the neural network and the relative transformations from the first coordinate system to the second coordinate systems. The optimization procedure may be performed in accordance with the example described above with reference to Figure 4; see, particularly, equation 5.
[0086] The method 90 further comprises spatially and temporally calibrating S94 the at least one of the second sensor devices with respect to the first sensor device based on the trained neural network.
[0087] A calibration system 100 according to an embodiment is illustrated in Figure 10. The calibration system may be installed on a vehicle, for example, an automobile. The calibration system 100 may be configured to carry out the method steps of the methods 80 or 90 described above.
[0088] In particular, the calibration system 100 shown in Figure 10 comprises a first sensor device (for example, a camera device or a LIDAR device, for example, the LIDAR device I shown in Figure 1) configured for obtaining first sensor data (for example, images or point clouds of an environment at different timeframes) in a first coordinate system (namely, the coordinate system fixed with and moving with the first sensor device) and second sensor devices (for example, camera devices, LIDAR devices or a combination of camera devices and LIDAR devices, for example camera devices cO and cl shown in Figure 1) configured for obtaining the second sensor data (for example, images or point clouds of an environment at different timeframes) in respective second coordinate systems (to each of the second sensor devices its own second coordinate system is fixed), wherein the second coordinate systems are different from each other and different from the first coordinate system.
[0089] The calibration system 100 further comprises a processing unit 103 and a neural network 104. The neural network 104 may be an MLP neural network. The processing unit 103 is configured for mapping the first sensor data and the second sensor data obtained by each of the second sensor devices into a common coordinate system to obtain mapped first and second sensor data. The processing unit 103 may be configured for mapping the first and second sensor data into the common coordinate system using the priors described above with reference to the “Inputs” column of Figure 4 or, alternatively, Figure 6.
[0090] Furthermore, the processing unit 103 is configured for training the neural network based on the mapped first and second sensor data by conjointly optimizing both a) weights of the neural network for outputting a neural network representation of an environment captured by the first and second sensor devices and b) relative transformations from the first coordinate system to the second coordinate systems, and spatially calibrating each of the second sensor devices with respect to the first sensor device based on the trained neural network 104. The optimization procedure may be performed in accordance with the example described above with reference to Figure 6; see, particularly, equation 7.
[0091] Alternatively, the processing unit 103 is configured for training the neural network based on the mapped first and second sensor data by conjointly optimizing both a) weights of the neural network for outputting a neural network representation of an environment captured by the first and second sensor devices, b) relative transformations from the first coordinate system to the second coordinate systems, and c) time shifts of the second timeframes obtained by at least one of the second sensor devices with respect to the first timeframes conjointly with the optimizing of the weights of the neural network and the relative transformations from the first coordinate system to the second coordinate systems. The optimization procedure may be performed in accordance with the example described above with reference to Figure 4; see, particularly, equation 5. Furthermore, the processing unit 103 is configured for spatially or spatiotemporally calibrating each of the second sensor devices with respect to the first sensor device based on the trained neural network 104.
[0092] Particularly, the training of the neural network 104 may be performed as described above with reference to the embodiments illustrated in Figures 4 and 6, respectively.
[0093] It is noted that in the embodiments illustrated in Figures 3 to 10 the training of the implicit scene representation along with the estimation of the optimized spatiotemporal or spatial calibration parameters can be carried out on the target device (for example, vehicle). In case of limited computation capability, data can be recorded by the device and optimization can be performed partially or fully during “offline time” of the device. Recorded data can be sent from the device to an external processing unit that will perform the spatiotemporal or spatial calibration. No data transfer is needed to obtain the optimized calibration parameter for the host device when the embedded computational resources are sufficiently powerful.
[0094] Any number of sensor devices, for example camera devices and / or LIDAR devices can be reliably calibrated at relatively low costs based on precisely estimated temporal and spatial calibration parameters.
[0095] The embodiments of methods and apparatuses described above can be suitably integrated in vehicles as automobiles, Automated Guided Vehicles (AGV) and autonomous mobile robots to facilitate navigation, localization and obstacle avoidance. On the fly calibration or recalibration of vehicle series equipped with multi-sensors can be achieved. In an exemplary scenario, a vehicle is provided with initial sensor calibration (for example, from CAD blueprint). During the first ride, data is collected to apply the spatiotemporal or spatial calibration process according to an embodiment described above. When the calibration is optimized autonomous functionalities can be enabled by the vehicle software.
[0096] In the automotive context, the embodiments of methods and apparatuses described above can be comprised by ADAS. In the context, of autonomous driving / ADAS applications, the provided reliable calibration of sensor devices facilitates fused perception of numerous sensor devices for tracking and detection verification, ego vehicle trajectory estimation with multimodal sensor fusion, precise 3D detection from multi camera system with stereo algorithm, etc. All previously discussed embodiments are not intended as limitations but serve as examples illustrating features and advantages of the invention. It is to be understood that some or all of the above-described features can also be combined in different ways.
Claims
CLAIMS1. Method (80, 90) of calibrating a set of second sensor devices (102) with respect to a first sensor device (101) different from the second sensor devices (102), comprising the steps of obtaining (S81, S91) by the first sensor device (101) first sensor data in a first coordinate system and obtaining by each of the second sensor devices (102) second sensor data in respective second coordinate systems, wherein the second coordinate systems are different from each other and different from the first coordinate system; mapping (S82, S92) the first sensor data and the second sensor data obtained by each of the second sensor devices (102) into a common coordinate system to obtain mapped first and second sensor data; training (S83) a neural network (104) based on the mapped first and second sensor data by conjointly optimizing both a) weights of the neural network (104) for outputting a neural network (104) representation of an environment captured by the first and second sensor devices (102), and b) relative transformations from the first coordinate system to the second coordinate systems; and spatially calibrating (S84, S94) each of the second sensor devices (102) with respect to the first sensor device (101) based on the trained neural network (104).
2. The method (80, 90) according to claim 1, wherein the first sensor data comprises first timeframes and the second sensor data obtained by each of the second sensor devices (102) comprises second timeframes; and the neural network (104) is trained (S93) by c) optimizing time shifts of the second timeframes of the second sensor data obtained by at least one of the second sensor devices (102) with respect to the first timeframes conjointly with the optimizing of theweights of the neural network (104) and the relative transformations from the first coordinate system to the second coordinate systems; and further comprising temporally calibrating (S94) the at least one of the second sensor devices (102) with respect to the first sensor device (101) based on the trained neural network (104).
3. The method according to claim 2, wherein the mapping of the first sensor data and the second sensor data obtained by each of the second sensor devices (102) into the common coordinate system is based on a trajectory of the first sensor device (101) in the common coordinate system, priors of the relative transformations and priors of the time shifts.
4. The method (80, 90) according to any of the preceding claims, wherein the neural network (104) is trained (S83, S93) based on the Neural Radiance Field technique.
5. The method (80, 90) according to claim 1, wherein the neural network (104) is trained (S83) based on the Neural Radiance Field technique; and the conjointly optimizing both a) the weights of the neural network (104) for outputting a neural network (104) representation of an environment captured by the first and second sensor devices (102) and b) the relative transformations from the first coordinate system to the second coordinate systems is performed based on minimizing an objective function L according to arg min L = arg ,wherein time(nf) designates a function that associates a timestamp with a corresponding timeframe0 denotes the weights, F^c. denotes the relative transformations, ’jitc~time^ denotes the poses of the first sensor device (101) in the common coordinate system, Zn. denotes ground truth sensor data, Zgdenotes neural network (104) based representations of sensor data, c0denotes the first sensor device, C denotes the number of second sensor devices cf(102), Ntdenotes a number of the second timeframes obtained by the i-th second sensor device, and ||. . || denotes a norm.
6. The method (80, 90) according to claim 2 or 3, wherein the neural network (104) is trained (S93) based on the Neural Radiance Field technique; and the conjointly optimizing a) the weights of the neural network (104) for outputting a neural network (104) representation of an environment captured by the first and second sensor devices (102), b) the relative transformations from the first coordinate system to the second coordinate systems and c) the time shifts of the second timeframes obtained by at least one of the second sensor devices (102) with respect to the first timeframes is performed based on minimizing an objective function L according to arg min L = argwherein time(nf) designates a function that associates a timestamp with a corresponding timeframe rij, 0 denotes the weights,denotes the relative transformations,denotes time shifts between the second timeframes with respect to the first time frames,CQdenotes a trajectory of the first sensor device (101) in the common coordinate system, Zn. denotes ground truth sensor data, Zgdenotes neural network (104) based representations of sensor data, c0denotes the first sensor device, C denotes the number of second sensor devices cf(102), Ntdenotes a number of the second timeframes obtained by the i-th second sensor device, and ||. . || denotes a norm.
7. The method (80, 90) according to any of the preceding claims, wherein the first sensor device (101) is a camera device or a Light Detection and Ranging, LIDAR, device and the second sensor devices (102) comprise at least one of a) at least one camera device, b) at least one LIDAR device and c) at least one camera device and at least one LIDAR device.
8. The method (80, 90) according to claim 7, wherein the first sensor device (101) and the second sensor devices (102) are installed on a vehicle.
9. The method (80, 90) according to claim 8, wherein the method is performed during movement of the vehicle.
10. The method (80, 90) according to claim 8 or 9, wherein at least one of the training (S83, S93) and calibrating (S84, S94) steps is performed at the vehicle site or at a remote site.
11. A computer program product comprising computer readable instructions for, when run on a computer, performing the steps of the method (80, 90) according to any of the preceding claims.
12. Calibration system (100), comprising a first sensor device (101) configured for obtaining first sensor data in a first coordinate system; a set of second sensor devices (102) different from the first sensor device (101), each second sensor device being configured for obtaining second sensor data in respective second coordinate systems, wherein the second coordinate systems are different from each other and different from the first coordinate system; a neural network (104); a processing unit (103) configured for mapping the first sensor data and the second sensor data obtained by each of the second sensor devices (102) into a common coordinate system to obtain mapped first and second sensor data; training the neural network (104) based on the mapped first and second sensor data by conjointly optimizing both a) weights of the neural network (104) for outputting a neural network (104) representation of an environment captured by the first and second sensor devices (102), and b) relative transformations from the first coordinate system to the second coordinate systems; and spatially calibrating each of the second sensor devices (102) with respect to the first sensor device (101) based on the trained neural network (104).
13. The calibration system (100) according to claim 12, wherein the first sensor data comprises first timeframes and the second sensor data obtained by each of the second sensor devices (102) comprises second timeframes; and the processing unit (103) is configured for training the neural network (104) by c) optimizing time shifts of the second timeframes obtained by at least one of the second sensor devices (102) with respect to the first timeframes conjointly with the optimizing of the weights of the neural network (104) and the relative transformations from the first coordinate system to the second coordinate systems; and temporally calibrating the at least one of the second sensor devices (102) with respect to the first sensor device (101) based on the trained neural network (104).
14. The calibration system (100) according to claims 12 or 13, wherein the processing unit (103) is configured for mapping the first sensor data and the second sensor data obtained by each of the second sensor devices (102) into the common coordinate system based on a trajectory of the first sensor device (101) in the common coordinate system, priors of the relative transformations and priors of the time shifts.
15. The calibration system (100) according to any of the claims 12 to 14, wherein the processing unit (103) is configured for training the neural network (104) based on the Neural Radiance Field technique.
16. The calibration system (100) according to claim 12, wherein the processing unit (103) is configured for training the neural network (104) based on the Neural Radiance Field technique; and conjointly optimizing both a) the weights of the neural network (104) for outputting a neural network (104) representation of an environment captured by the first and second sensor devices (102), and b) the relative transformations from the first coordinate system to the second coordinate systems based on minimizing an objective function L according toarg min L = argwherein time(nf) designates a function that associates a timestamp with a corresponding timeframe ni, 0 denotes the weights, F^c. denotes the relative transformations, ’jitc~time^ denotes the poses of the first sensor device (101) in the common coordinate system, Zn. denotes ground truth sensor data, Zgdenotes neural network (104) based representations of sensor data, c0denotes the first sensor device, C denotes the number of second sensor devices cf(102), Ntdenotes a number of the second timeframes obtained by the i-th second sensor device, and ||. . || denotes a norm.
17. The calibration system (100) according to claim 13 or 14, wherein the processing unit (103) is configured for training the neural network (104) based on the Neural Radiance Field technique; and conjointly optimizing both a) the weights of the neural network (104) for outputting a neural network (104) representation of an environment captured by the first and second sensor devices (102), b) the relative transformations from the first coordinate system to the second coordinate systems, and c) the time shifts of the second timeframes obtained by at least one of the second sensor devices (102) with respect to the first timeframes based on minimizing an objective function L according to arg min L = argwherein time(nf) designates a function that associates a timestamp with a corresponding timeframe nt, 0 denotes the weights,denotes the relative transformations,denotes time shifts between the timeframes of the second timeframes with respect to the first timeframes,CQdenotes a trajectory of the first sensor device (101) in the common coordinate system, Zn. denotes ground truth sensor data, Zgdenotes neural network (104) based representations of sensor data, c0denotes the first sensor device, C denotes the number of second sensor devices cf(102), Ntdenotes a number of the second timeframes obtained by the i-th second sensor device, and || . . || denotes a norm.
18. The calibration system (100) according to any of the claims 12 to 17, wherein the first sensor device (101) is a camera device or a Light Detection and Ranging, LIDAR, device and the second sensor devices (102) comprise at least one of a) at least one camera device, b) at least one LIDAR device and c) at least one camera device and at least one LIDAR device.
19. Vehicle comprising the calibration system (100) according to any of the claims 12 to 18.
Citation Information
Cited By
LiDAR-camera spatio-temporal alignment using neural radiance fields
US12762851B2
