Next Article in Journal
Energy-Efficient Algorithm for Multicasting in Duty-Cycled Sensor Networks
Next Article in Special Issue
Bimodal Biometric Verification Using the Fusion of Palmprint and Infrared Palm-Dorsum Vein Images
Previous Article in Journal
Adjustment of Sonar and Laser Acquisition Data for Building the 3D Reference Model of a Canal Tunnel
Previous Article in Special Issue
Tracking Multiple Video Targets with an Improved GM-PHD Tracker
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Joint Temperature-Lasing Mode Compensation for Time-of-Flight LiDAR Sensors

Control Engineering Group, Department of Computer Science, Electrical and Space Engineering, Luleå University of Technology, Luleå 97187, Sweden
*
Author to whom correspondence should be addressed.
Sensors 2015, 15(12), 31205-31223; https://doi.org/10.3390/s151229854
Submission received: 6 November 2015 / Revised: 2 December 2015 / Accepted: 7 December 2015 / Published: 11 December 2015
(This article belongs to the Special Issue Sensors for Robots)

Abstract

:
We propose an expectation maximization (EM) strategy for improving the precision of time of flight (ToF) light detection and ranging (LiDAR) scanners. The novel algorithm statistically accounts not only for the bias induced by temperature changes in the laser diode, but also for the multi-modality of the measurement noises that is induced by mode-hopping effects. Instrumental to the proposed EM algorithm, we also describe a general thermal dynamics model that can be learned either from just input-output data or from a combination of simple temperature experiments and information from the laser’s datasheet. We test the strategy on a SICK LMS 200 device and improve its average absolute error by a factor of three.

1. Introduction

ToF LiDARs estimate distances by emitting short bursts of laser light and by measuring the time it takes for the reflected photons to arrive back to the device [1]. Despite being based on a very simple principle, they are very much both accurate and precise devices [2]: for example, precisions can reach 10 mm of standard error when the object is 10 m away. Due to these favorable properties, they are commonly used in critical industrial applications where there is the need for high quality measurements.
It is well known that these devices need temperature compensation mechanisms, since changing their temperature leads to changes in the statistics of the returned measurements. The effect of temperature may be huge: experiments by [3] on an amplitude-modulated continuous-wave laser radar pointing at a target six meters away from the sensor showed that measurements at 21 °C and measurements at 45 °C were differing by 40 cm. Since thermal stabilization of a laser scanner may take up to 30 min [4], it is clear that these sensors are affected by a warm-up-induced time drift that must be compensated. Manufacturers of ToF devices thus usually embed opportune algorithms in their products that implement this temperature compensation mechanism.
Unfortunately, temperature is not the only physical factor that deserves compensation: as described in detail in Section 2, lasers can suddenly change their lasing mode. This property, called the mode-hopping effect, has a substantial impact on the measure returned by ToF devices, since changing lasing mode means to change the spectral content of the laser burst, i.e., change its time of flight. Remarkably, to the best of our knowledge, the existing literature does not focus on managing this effect, but rather, considers only temperature compensation mechanisms.
We would like to mention here that there are also other methods with high temperature compensation at the nano-scale measurement, such as [5]. The method reduces the offset, the temperature characteristic of the main sensing element, the temperature drift and the noise by the switching method.

1.1. Statement of Contributions

We propose an expectation maximization (EM) algorithm that compensates mode-hopping effects by modeling the induced measurement noise as a Gaussian mixture. Thus, from the mathematical perspective, we introduce some latent variables (namely, from which Gaussian the noise comes from) as additional estimands. This EM algorithm is also coupled to a temperature compensation filter that is built on a physics-based linear model for the thermal dynamics of the laser scanner. Summarizing, thus, our contributions are, with respect to the aforementioned literature:
  • A thorough motivation for why it is meaningful to consider mode-hopping effects in laser scanners, arising from a physical description of the lasing mechanism in laser diodes;
  • A thermodynamical model for the thermal dynamics of a whole laser scanner, needed by the proposed strategy to account for temperature effects;
  • A statistical model describing the measurement process that decouples the effects of the mode-hopping from temperature effects;
  • A numerically-efficient EM strategy based on the statistical model above;
  • A validation of the proposed compensation strategy on real devices.
With the validation, we also show that it is possible to improve the absolute error of a SICK LMS 200 device by a factor of three.

1.2. Organization of the Manuscript

Section 2 analyzes the effects of the laser temperature on the measured distance. Section 3 proposes a general model for the thermal dynamics of a pulsed ToF LiDAR. Section 4 presents a general measurement model accounting for both temperature and mode-hopping effects. Section 5 describes how to train the EM algorithm, while Section 6 describes how to use the same algorithm for testing purposes. Section 7 then proposes a likelihood ratio test for calibrating the hyperparameters of the EM algorithm. Section 8 presents some numerical results on commercial devices. Finally, Section 9 draws some conclusions and future research directions.

2. Effects of the Laser Temperature on the Measured Distance

This section lays down interpretations motivating the structure of the novel compensation procedures. We thus here describe the functioning principle of ToF scanners, explain why the measured distance depends on the temperature of the device and motivate why the measurement noise of a LiDAR is intrinsically multi-modal.
Consider then the basic operation of pulsed ToF LiDARs in Figure 1 and in its caption.
The measurement of the distance derives from ideal considerations: if the temporal width of the pulse is null, then the distance d between the sensor and the object should satisfy:
d = c τ 2
where c is the speed of light and τ is the measured ToF between when the laser pulse is emitted and when it is received. Assume ideally that the laser pulse contains photons with a unique nominal wavelength λ 0 . Since:
c = λ 0 f
with f the light frequency and λ 0 the nominal wavelength, and since the light frequency f remains the same through different media, to know c, it is sufficient to know λ 0 . Thus, from knowing λ 0 , one can compute d, since τ is measured.
Figure 1. Graphical description of the operating principle for pulsed ToF LiDARs. A pulsed infra-red laser beam is first emitted from the transmitter. The case of the transmitter, in dark gray, encloses a laser junction and a laser cavity. The emitted laser beam is then deflected by a rotating mirror (resulting in a fan-shaped scan pattern) and, finally, reflected from the object surface. The time of flight τ between the transmission and the reception of the laser beam is then used to estimate the distance d between the scanner and the object.
Figure 1. Graphical description of the operating principle for pulsed ToF LiDARs. A pulsed infra-red laser beam is first emitted from the transmitter. The case of the transmitter, in dark gray, encloses a laser junction and a laser cavity. The emitted laser beam is then deflected by a rotating mirror (resulting in a fan-shaped scan pattern) and, finally, reflected from the object surface. The time of flight τ between the transmission and the reception of the laser beam is then used to estimate the distance d between the scanner and the object.
Sensors 15 29854 g001
We can already now notice the first effect of the temperature of the device on the measurement: according to its datasheet, the nominal wavelength of the laser diode SPL PL90 from OSRAM [6] is 905 nm at 25 °C, and 907.8 nm at 35 °C. Assuming the target to be at a one-meter distance, this 2.8 nm variation in the wavelength λ then results in a 10.3-ps variation in the ToF τ, i.e., a variation in the measured distance of approximately 3.1 mm.
Figure 2. Average spectral distribution for GaAsP lasers at the nominal temperature of 21 °C [7].
Figure 2. Average spectral distribution for GaAsP lasers at the nominal temperature of 21 °C [7].
Sensors 15 29854 g002
The previous consideration is nonetheless simplistic. We can indeed notice another three distinct effects:
  • In general, lasers do not emit at a unique frequency λ. Indeed, the average spectral distribution of the laser pulses follows a “comb”-like density, like the one in Figure 2.
  • Lasers are affected by the so-called mode-hopping effect [8] and, indeed, oscillate between different lasing modes (the teeth of the “comb” of Figure 2), for which two different pulses generated under the same temperature and external conditions may have different λ’s (e.g., referring to the same figure, the first pulse may contain only photons with wavelengths λ 1 , while the second pulse may contain only photons with wavelengths λ 2 ). In other words, the actual distribution of one specific pulse may contain only a subset of the teeth of the average spectral distribution. Using naively Equations (1) and (2) to estimate d without being aware of the mode hopping, i.e., assuming a certain λ 0 without actually knowing that the average λ jumps between different lasing modes, reflects thus in a multimodal measurement of d, as clearly shown in Figure 3.
  • The average spectral distribution of the laser pulses is not fixed, but rather depends on the temperature of the transmitter [9]. More precisely, the positions and amplitudes of the modes in Figure 2 depend on both the current flowing through the laser junction and the geometry of the laser cavity, but eventually, these two effects are inter-combined: the current flow produces heat that will modify the geometry of the cavity. Eventually, thus, the temperature affects the position and amplitude of the modes of the average spectral distribution. This temperature effect can be clearly seen in Figure 4: even if the device is nominally already compensated in temperature, one can clearly see two different lasing modes shifting in temperature.
Figure 3. Histogram of consecutive measurements returned by a SICK 200 device in thermodynamical and electrical equilibrium pointing at a fixed object and in a controlled environment.
Figure 3. Histogram of consecutive measurements returned by a SICK 200 device in thermodynamical and electrical equilibrium pointing at a fixed object and in a controlled environment.
Sensors 15 29854 g003
Figure 4. Dependency of the distance measurements on the device temperature for a SICK 200 device pointing to a fixed object in a controlled environment. Despite the true distance and other parameters potentially affecting the measurements being constant in time, the distributions of the measurements are temperature varying. We can notice how the device compensates for the temperature change by adding a temperature-varying negative bias, but that it does not compensate the mode-hopping effect.
Figure 4. Dependency of the distance measurements on the device temperature for a SICK 200 device pointing to a fixed object in a controlled environment. Despite the true distance and other parameters potentially affecting the measurements being constant in time, the distributions of the measurements are temperature varying. We can notice how the device compensates for the temperature change by adding a temperature-varying negative bias, but that it does not compensate the mode-hopping effect.
Sensors 15 29854 g004
To summarize, the actual λ of a laser pulse is in general different from the nominal λ 0 because of two effects: first, the laser may oscillate between different modes; second, these positions of these modes vary with temperature.

3. A General Model for the Thermal Dynamics of a Pulsed ToF LiDAR

Instrumental for compensating the effects of temperature offsets highlighted in the previous section, we here discuss a general thermodynamic model describing the temperature dynamics of the whole laser scanner that will lead us to being able to represent the temperature changes of the laser cavity.

3.1. Physical Modeling

Just like any power electronic device, LiDARs generate heat that is then exchanged with the environment, so that the temperature of a scanner depends on the temperature of the environment. The main sources of heat inside the LiDAR are thus the laser diode, the motor and the electronic components of the system. The heat generated inside the scanner is then transferred to the surrounding environment through the case. Since our experience indicates that motors and other electronic components induce negligible thermal effects, we consider only the heat produced by the laser diode.
We thus represent the thermal model of a generic scanner as the equivalent electrical circuit shown in Figure 5, interpretable as follows: when the laser is turned on, the heat generated by the laser junction is dissipated in the surrounding environment through first the transmitter case and then, second, through the laser scanner case.
Figure 5. The proposed thermodynamic model for a generic pulsed ToF LiDAR.
Figure 5. The proposed thermodynamic model for a generic pulsed ToF LiDAR.
Sensors 15 29854 g005
Considering the notation:
PHeat power generated by the junction (equal to zero when the device is off)
t j Temperature of the junction
t c Temperature of the transmitter case
t a Temperature of the external ambient
t s Noisy measurement of the temperature of the transmitter case
C 1 Thermal inertia of the transmitter case
C 2 Thermal inertia of the laser scanner case
R 1 Thermal resistance between the transmitter case and the laser scanner case
R 2 Thermal resistance between the laser scanner case and the ambient
It follows that the dynamics for the temperatures of the laser junction and scanner case when the laser is on are thus:
t ˙ c = t j R 1 C 2 - t c 1 R 2 C 2 + 1 R 1 C 2 + 1 C 2 R 2 t ˙ a t ˙ j = P C 1 + t c R 1 C 1 - t j R 1 C 1
Discretizing the previous dynamics with a discretization step of T s and letting:
t ¯ k : = t k c t k j u ¯ k : = P if on, 0 if off, ν ¯ k : = t k a - t k - 1 a
implies the following discrete-time state-space representation of the model:
t ¯ k + 1 = A t ¯ k + B u ¯ k + B ν ¯ k t k s = C t ¯ k + μ ¯ k
where t k s is a noisy temperature measurement of the case at time k, ν ¯ k and μ ¯ k are independent process and measurement noises, and where:
A = 1 - T R 2 C 2 - T R 1 C 2 T R 1 C 2 T R 1 C 1 1 - T R 1 C 1 B = 0 T C 1 B = T R 2 C 2 0 C = 1 0
Notice that through Equation (5), we introduce t k s , i.e., a noisy measurement of the temperature of the transmitter case. This correspond to the practical assumption that perfect knowledge of the actual case temperature t k c is in general unavailable, since temperature sensors attached to the case of the scanner will never give noiseless recordings.

3.2. Identifying Model Equation (5)

If one has a dataset of recorded temperatures t k j , t k c and t k a , then one may identify Equation (5) using standard system identification approaches, e.g., a prediction error method (PEM) as in [10]. For the common case where it may be difficult to obtain direct measurements of the quantities, we propose to resort to the following general strategy that uses the datasheet of the laser scanner in conjunction with noisy case temperature measurements t k s .
Algorithm 1 Identification of model Equation (5) starting from the datasheet of a laser scanner.
1:
From the datasheet of the laser scanner infer:
  • its thermal resistance R 1 (directly from the datasheet);
  • its thermal capacity C 1 (by estimating the volume of the laser diode from the datasheet and multiplying it for the heat capacity of the material, also indicated in the datasheet);
2:
From measuring the weight and material of the case, infer its thermal capacity C 2 ;
3:
Estimate the generated heat power P by measuring the electrical power absorbed by the device and multiplying this quantity by 0 . 5 (for the estimated efficiency of generic laser diodes [11]);
4:
From situations where the scanner is in thermal equilibrium, calculate R 2 by calculating the difference between the measured case temperature t k s and the ambient temperature t k a divided by the estimated generated heat power P.

3.3. Estimating t j from t s

Assume that model Equation (5) has been identified, either from measured data or using Algorithm 1, and observe that the thermal model is observable, reachable and has stable dynamics. Due to their favorable theoretical and numerical properties, we thus devise to estimate t k j from noisy measurements of the case temperature t k s via Kalman smoothers/filters, as in [12], i.e., to let:
t ^ 1 j , , t ^ K j = W t 1 s , , t K s
for an opportune (and potentially time varying) matrix W. As before, notice that the filtering starts from noisy measurements of the case temperature t k s , rather than from perfect measurements t k c .

4. A General Measurement Model Accounting for Temperature and Mode Hopping Effects

We recall that our aim is to model the effect of the temperature of the laser junction t k j on the measured distance d and understand how noisy case temperature measurements t k s help improving the accuracy on the final estimate of d. To this aim, we propose the following measurement model at the generic time instant k:
y k = d + H t k j θ + 1 - Δ k w k 1 + Δ k w k 2
where:
  • y k is the distance returned by the sensor;
  • d is the true distance from the object (assumed deterministic);
  • t k j is the temperature of the laser cavity at time k;
  • The two modes w k 1 N μ 1 , σ 1 2 and w k 2 N μ 2 , σ 2 2 account for a bimodal Gaussian and white additive measurement noise. The Bernoulli random variable (r.v.) Δ k B π selects the active mode at time k, so that π reflects the relative importance of the modes. Intuitively, Δ k represent which lasing mode has been active during measurement y k . We notice that here, we consider bimodal noises (i.e., only two lasing modes) just for notational simplicity. It is nonetheless immediate to generalize the subsequent findings for an M-modal case;
  • H · θ is a non-linear transformation of the temperature of the laser junction t k j in a measurement bias. In the following Examples 1 and 2, we show how different H · ’s and θ’s express different maps from the junction temperature t k j to the measurement bias.
Notice that, induced by our experience, we let the measurement noise modes w k 1 and w k 2 be independent from the laser junction temperature t k j . Our experiments indeed indicated that the moments of the noises are not affected by changing temperatures (at least for a range between 0 °C and 40 °C). Notice moreover that model Equation (8) is linear in θ; this restrictive assumption is nonetheless essential for building distance estimation algorithms that are numerically fast.
Example 1 (Polynomial model). Let:
H k = H t k j : = t k j , t k j 2 , , t k j N
and θ : = θ 1 , , θ N . Then, the generic model Equation (8) specializes into:
y k = d + n = 1 N t k j n + 1 - Δ k w k 1 + Δ k w k 2
i.e., a measurement model where the temperature plays the role of an N-th order polynomial bias (see Figure 6).
Figure 6. Potential temperature-bias dependencies for the polynomial model of Example 1.
Figure 6. Potential temperature-bias dependencies for the polynomial model of Example 1.
Sensors 15 29854 g006
Example 2 (Fourier expansion model). Let:
H k = H t k j : = cos 2 π f 0 t k j , sin 2 π f 0 t k j , , cos 2 N π f 0 t k j , sin 2 N π f 0 t k j
and θ : = θ 1 , θ 1 , , θ N , θ N , where the fundamental frequency f 0 is assumed to be known. Then, the generic model Equation (8) specializes into:
y k = d + n = 1 N θ n cos 2 n π f 0 t k j + θ n sin 2 n π f 0 t k j + 1 - Δ k w k 1 + Δ k w k 2
i.e., a measurement model where the temperature plays the role of a bias that is periodic with frequency f 0 (see Figure 7).
Figure 7. Potential temperature-bias dependencies for the Fourier expansion model of Example 2.
Figure 7. Potential temperature-bias dependencies for the Fourier expansion model of Example 2.
Sensors 15 29854 g007
We then use model Equation (8) for practical purposes following the classical scheme:
  • Design the model, i.e., decide the structure for H · (e.g., between Example 1, Example 2 or also different ones depending on the need) starting from data collected in a controlled environment (see Section 7);
  • Train the model, i.e., estimate θ and the statistics of w k 1 , w k 2 and Δ k from data collected in a controlled environment (see Section 5);
  • Test the model, i.e., use the previous estimated quantities during the normal operation of the laser scanner, so as to improve the estimation of d from data collected in a non-controlled environment (see Section 6).
The following sections are dedicated in detail to how to implement the previous three points. Notice that Section 7, on the design of the model, is presented after Section 5 and Section 6 for notational convenience.

5. Training Model Equation (8)

In this section, we devise a numerical algorithm for learning θ (i.e., the coefficients multiplying H ( · ) ), μ 1 , μ 2 , σ 1 2 , σ 2 2 , π (i.e., the statistics of the noises w k 1 , w k 2 and of the random variables Δ k ) and the values of the mode selection variables Δ k starting from a dataset containing:
  • y k for k 1 , , K ;
  • d, i.e., the real distance;
  • t k s , i.e., measurements of the temperature of the laser scanner case (to be transformed into estimates of t k j through Equation (7)).
Let then:
y : = y 1 y K T t s : = t 1 s t K s T t j : = t 1 j t K j T Δ : = Δ 1 Δ K T θ ¯ : = θ T μ 1 μ 2 σ 1 2 σ 2 2 π T .
Given the frequentist assumptions on the unknowns, we would like to perform maximum likelihood (ML) estimation for θ ¯ , i.e., seek for:
arg max θ ¯ , Δ P y , t j ; d , θ ¯ , Δ
Since the laser junction temperature t j is unavailable, Equation (14) cannot be solved. We thus resort to solving the approximated problem:
θ ^ , Δ ^ : = arg max θ ¯ , Δ P y , t ^ j ; d , θ ¯ , Δ
where t ^ j is the estimate of t j given t s as in Equation (7). We also notice that, instead of considering the joint density of y and t ^ j , it is sufficient to consider the conditional density of y given t ^ j :
Proposition 1. 
θ ^ , Δ ^ = arg max θ ¯ , Δ P y t ^ j ; d , θ ¯ , Δ
It is important to notice that the ML problem in Equation (16) contains the latent variables Δ; to estimate them, we thus resort to a tailored EM approach [13]. To this aim, define then the auxiliary variables:
Σ 1 : = diag 1 - Δ ^ k Σ 2 : = diag Δ ^ k y ˜ k : = y k - d y ˜ : = y - d 𝟙 H : = H 1 H K = H t ^ 1 j H t ^ K j
with 𝟙 being a vector of K ones. The computation of θ ^ , Δ ^ is performed through the iteration up to convergence (stopping criteria for EM algorithms are usually based on relative or absolute changes in the parameter estimate or in the value of the log likelihood; see, e.g., [14]; in our implementations, we used the absolute changes in the parameter estimate π ^ < ϵ ; where ϵ is a small number 1 × 10 - 5 in the implementation) of the following two steps:
E-step 
δ k = 1 - π ^ N y ˜ k - H k θ ^ - μ ^ 1 , σ ^ 1 2 + π ^ N y ˜ k - H k θ ^ - μ ^ 2 , σ ^ 2 2 , k = 1 , , K Δ ^ k = π ^ N y ˜ k - H k θ ^ - μ ^ 2 , σ ^ 2 2 δ k , k = 1 , , K
M-step 
C = σ ^ 1 2 Σ 1 + σ ^ 2 2 Σ 2 θ ^ = H T C - 1 H - 1 H T C - 1 y ˜ μ ^ i = 𝟙 T Σ i 𝟙 T Σ i 𝟙 y ˜ - H θ ^ i = 1 , 2 σ ^ i 2 = y ˜ - H θ ^ T Σ i y ˜ - H θ ^ 𝟙 T Σ i 𝟙 i = 1 , 2 π ^ = 1 K k Δ ^ k
In our numerical experiments, we empirically found it convenient to use the following initial conditions:
θ ^ = 0 , μ ^ 1 = 0 . 1 , μ ^ 2 = - 0 . 1 , σ ^ 1 2 = 0 . 1 , σ ^ 2 2 = 0 . 1 , π ^ = 0 . 5
As for the convergence of the EM to the true ML estimate, we notice that EM algorithms are not in general ensured to have convergence properties. A sufficient condition for convergence is in [15], where the authors show that EM algorithms are convergent if the maximizer of the M-step is unique (a condition that is almost always satisfied in practice). In our case, the M-step maximizer is unique as long as in the update for θ ^ in Equation (19), the matrix H T C - 1 H admits the inverse. In general, e.g., in both the polynomial case of Example 1 and in the Fourier expansion case of Example 2, this translates into the need for at least N samples associated with N different laser junction temperatures t k j .

6. Testing Model Equation (8)

We now devise a numerical algorithm for estimating d and the values of the lasing mode selection variables Δ k starting from the model trained in Section 5 (i.e., an estimated vector θ ¯ ^ : = θ ^ T , μ ^ 1 , μ ^ 2 , σ ^ 1 2 , σ ^ 2 2 , π ^ T and the statistics of w k 1 , w k 2 and Δ k ) and a set of measurements y k and t k s for k = 1 , , K .
Assuming once again to transform the temperature sensor measurements t s into estimated laser junction temperatures t ^ j = W t s through Equation (7), the problem of estimating d and the Δ k s can be cast as:
d ^ , Δ ^ = arg max d , Δ P y t ^ j ; d , θ ¯ ^ , Δ
As before, we compute this ML estimate through an EM approach:
E-step 
δ k = 1 - π ^ N y k - d ^ - H k θ ^ - μ ^ 1 , σ ^ 1 2 + π ^ N y k - d ^ - H k θ ^ - μ ^ 2 , σ ^ 2 2 , k = 1 , , K Δ ^ k = π ^ N y k - d ^ - H k θ ^ - μ ^ 2 , σ ^ 2 2 δ k , k = 1 , , K
M-step 
C = Σ 1 σ ^ 1 2 + Σ 2 σ ^ 2 2 d ^ = 𝟙 T C - 𝟙 𝟙 - 1 1 T C - 1 y - H θ ^
The same values of μ 1 , μ 2 , σ 1 2 and σ 2 2 at the end of the training step will be used in the testing step. There is no need to recompute them again. In our experiments, we found it beneficial to start from the initial conditions d ^ = 𝟙 T y K and Δ ^ k = 0 . 5 . The convergence properties of this EM procedure are then very similar to the EM in Section 5.

7. Designing Model Equation (8)

This section is divided into two parts:
  • Section 7.1, suggesting some hints for designing different structures for H · (e.g., choosing the order for Example 1, for Example 2 or also designing different functional structures depending on the collected information);
  • Section 7.2, suggesting a numerical algorithm for discriminating between different competing structures for H starting from data collected in a controlled environment.

7.1. Designing H ·

The proposed EM algorithms have the numerically-favorable property of having both the E and the M steps solvable in closed form. It is important to notice that this is induced by the fact that model Equation (8) is linear in θ, i.e.,
H t k j θ = H 1 t k j , , H N t k j θ 1 θ N = n = 1 N H n t k j θ n
Thus, with this structure, the designer can model the effect of the temperature t k j on the measurement y k as the sum of N independent effects, each one represented as an opportune generic function of t k j (the weight of which is actually assumed unknown before the training phase).
As shown in Figure 6 and Figure 7, the structures proposed in Examples 1 and 2 have quite general generalization capabilities. Nonetheless, the designer can tailor H so that it resembles other structures; our suggestion is to start from raw measured data spanning different temperatures, check visually how the macroscopic temperature trend behaves and then decompose this trend as the sum of different functions that will become the various H n · in model Equation (8).

7.2. Determining the Best H · among Different Competing Potential Structures

The process described in Section 7.1 may lead to different competing structures for H · . In other words, the designer may propose different structures H ( 1 ) , H ( 2 ) , etc., and would like to choose the “best” H ( i ) given a dataset containing y , t s and the true distance d.
We propose to use the classical approach of discriminating the various H ( i ) ’s considering their goodness of fit, i.e., to use GLR [16], for which we first estimate the best estimates θ ¯ ^ ( i ) and Δ ^ ( i ) for each H ( i ) given the dataset and then select the best hypothesis considering their resulting log-likelihoods. More formally, the suggested procedure is as in Algorithm 2.
Algorithm 2 Selection of the best H ( i ) .
1:
for i = 1 , 2 , do
2:
    Compute θ ¯ ^ ( i ) and Δ ^ ( i ) as in Section 5;
3:
    Compute
( i ) : = + log ( σ ^ 1 2 ) 𝟙 T Σ 1 𝟙 + log ( σ ^ 2 2 ) 𝟙 T Σ 2 𝟙 + 1 2 σ ^ 1 2 y - d 𝟙 - H ( i ) θ ^ ( i ) - μ ^ 1 ( i ) 𝟙 T Σ 1 ( i ) y - d 𝟙 - H ( i ) θ ^ ( i ) - μ ^ 1 ( i ) 𝟙 + 1 2 σ ^ 2 2 y - d 𝟙 - H ( i ) θ ^ ( i ) - μ ^ 2 ( i ) 𝟙 T Σ 2 ( i ) y - d 𝟙 - H ( i ) θ ^ ( i ) - μ ^ 2 ( i ) 𝟙
where Σ 1 ( i ) : = diag 1 - Δ ^ k ( i ) and Σ 2 ( i ) : = diag Δ ^ k ( i ) ;
4:
end for
5:
Select that H ( i ) that corresponds to the maximal ( i ) .

8. Experiments

We now validate the proposed thermal model and estimation strategy on real data, aiming to show their effectiveness. We thus consider the simple scenario where a target is fixed in front of a sensor, under constant light and electrical conditions, so that the actual distance between the sensor and the target d is fixed. We consider a SICK LMS 200 LiDAR, one of the most widely-used LiDARs in industry and robotics applications.

8.1. Training and Validation of the Thermal Model Equation (5)

To train and validate the thermal model Equation (5), we conducted the experiment summarized in Figure 8: in a thermally-controlled room at 22°, we performed several on-off cycles of the device and measured the corresponding case temperature t k s . We then used the data represented as “training data” in the figure, the data-sheet of the SICK LMS 200 LiDAR and Algorithm 1 to train model Equation (5). After that, we drove the trained model with the u ¯ k in the “test data” as inputs and obtained a predicted temperature y ^ k s . The goodness of fit of the predicted temperatures, computed as:
100 1 - k y ^ k s - y k s 2 k y k s 2
is then 92 . 79 % . This indicates a very good fit, i.e., a good approximation capability of our proposed thermal model (and associated learning algorithm).
Figure 8. Validation of the thermal model Equation (5) on a SICK 200 LiDAR.
Figure 8. Validation of the thermal model Equation (5) on a SICK 200 LiDAR.
Sensors 15 29854 g008

8.2. Selection of the Optimal H ( · ) for the SICK 200 LiDAR

We used Algorithm 2 on real data from a SICK LMS 200 to discriminate between different H ( i ) ’s in Examples 1 and 2, i.e., the hypotheses:
H i : y ( 1 - Δ ) N d + H ( i ) θ + μ 1 , σ 1 2 + Δ N d + H ( i ) θ + μ 2 , σ 2 2
against the null hypothesis:
H 0 : y N d , σ 2
so that the log likelihood ratio test between two hypotheses can be defined as:
Λ i ( y ) = d ^ , σ ^ 2 | y d ^ , σ ^ 1 2 , σ ^ 2 2 , μ ^ 1 , μ ^ 2 , θ ^ , Δ ^ | y , H ( i )
where we explicitly mention the dependence of the log likelihood from the various parameters of the considered model.
Figure 9 and Figure 10 show the likelihood ratios obtained for different candidates for polynomial and Fourier expansions, respectively. For the polynomial case, we obtained the highest likelihood for the polynomial order N = 16 , while for the Fourier case, we obtained the optimal value for N = 180 . We motivate this latter order, much higher than that of the polynomial case, to be due to the periodic nature of the Fourier model.
Figure 9. Generalized likelihood ratio (GLR) for Example 10 (polynomial model). The vertical axis values represent the likelihood ratio, and the horizontal axis represents the polynomial order used for generating the H ( i ) matrix.
Figure 9. Generalized likelihood ratio (GLR) for Example 10 (polynomial model). The vertical axis values represent the likelihood ratio, and the horizontal axis represents the polynomial order used for generating the H ( i ) matrix.
Sensors 15 29854 g009
Figure 10. GLR for Example 12 (Fourier model) with different orders. The vertical axis values represent the likelihood ratio and the horizontal axis represents the Fourier series order used for generating the H ( i ) matrix.
Figure 10. GLR for Example 12 (Fourier model) with different orders. The vertical axis values represent the likelihood ratio and the horizontal axis represents the Fourier series order used for generating the H ( i ) matrix.
Sensors 15 29854 g010

8.3. Assessment of the Performance Improvement for the SICK 200 LiDAR

Assume considering the best model order as in Section 8.2 and applying the main EM estimation algorithm for testing purposes. Figure 11 then shows an example of the outcome of this test on real data: first, the figure plots for each raw measurement the associated lasing modes detected by the EM testing procedure. The same plot shows also the bias induced by the temperature, i.e., H θ ^ .
Once the raw measurements have been associated with the corresponding lasing modes, it is then possible to subtract from them the corresponding noise bias μ ^ 1 or μ ^ 2 ; in other words, it is possible to remove a certain lasing mode-dependent bias from each of the various measurements. This leads to a new distribution of the measurements, as shown in Figure 12. This figure shows the cumulative distribution of the measurements that we plotted in Figure 11 before and after subtracting the biases induced by the lasing modes. It is clearly visible that after this removal, the cumulative distribution becomes sharper, indicating that the novel dataset has a smaller variance.
Figure 11. Application of the EM testing algorithm on real data, where the raw measurements are plotted versus the temperature of the device. The black dots are the raw measurements that have been associated with lasing Mode 1, while the gray dots are the measurements associated with lasing Mode 2. The solid line denotes the temperature-induced bias on the measured distance.
Figure 11. Application of the EM testing algorithm on real data, where the raw measurements are plotted versus the temperature of the device. The black dots are the raw measurements that have been associated with lasing Mode 1, while the gray dots are the measurements associated with lasing Mode 2. The solid line denotes the temperature-induced bias on the measured distance.
Sensors 15 29854 g011
Figure 12. Effects of compensating some raw data with the biases corresponding to the lasing mode of each sample.
Figure 12. Effects of compensating some raw data with the biases corresponding to the lasing mode of each sample.
Sensors 15 29854 g012

8.4. Convergence Properties for the EM Algorithms

We now report some numerical results for the convergence properties of the EM training and test algorithms. More precisely, Figure 13 shows the evolution of the estimates during the training phase, while Figure 14 shows the same evolution for the testing phase. We also plot in Figure 15 the computational burden of performing a fixed number of EM test steps for different measurement vector lengths and show empirically how the computational efforts for testing some points are quadratic with the number of samples. Importantly, this computational effort does not depend heavily on the order of the model.
We show in Figure 16 how the precision and accuracy of the estimate d ^ changes with the number of samples in the test set. More precisely, we show the following cumulative distribution: given the set of 20,000 raw measurements, extract every subset of 200, 400 or 800 consecutive measurements and, for each of these subsets, compute an estimate d ^ . The result is intuitive: estimating from more measurements leads to a better estimator (i.e., a cumulative distribution that steepens in correspondence of the true distance).
Figure 13. Convergence of the estimated means to their final estimates during the training phase for a training set containing 4000 raw measurements.
Figure 13. Convergence of the estimated means to their final estimates during the training phase for a training set containing 4000 raw measurements.
Sensors 15 29854 g013
Figure 14. Convergence of the estimated distance to its final estimate during the test phase for a test set containing 4000 raw measurements.
Figure 14. Convergence of the estimated distance to its final estimate during the test phase for a test set containing 4000 raw measurements.
Sensors 15 29854 g014
Figure 15. Dependence of the computational complexity for the EM testing phase for two different Fourier order models as a function of the number of samples in the test set.
Figure 15. Dependence of the computational complexity for the EM testing phase for two different Fourier order models as a function of the number of samples in the test set.
Sensors 15 29854 g015
Figure 16. Cumulative distributions of the estimate d ^ for different testing sample sizes. The device temperature ranged in these experiments between 24 . 8 °C and 28 . 8 °C.
Figure 16. Cumulative distributions of the estimate d ^ for different testing sample sizes. The device temperature ranged in these experiments between 24 . 8 °C and 28 . 8 °C.
Sensors 15 29854 g016
We show in Figure 17 the realizations of the errors committed by three different estimators: d ^ (our estimator), y ¯ (the sample average of a window of measurements) and y - H θ ^ ¯ (the sample average of a window of measurements corrected by the temperature compensation term H θ ^ ). We notice that d ^ commits the smallest errors almost everywhere. To integrate the information, we also plot the temperature of the device in the lower plot. This helps with recognizing that d ^ has better performance, especially where the effect of the temperature is higher.
Figure 17. Realizations of the errors committed by the three estimators d ^ , y ¯ and y - H θ ¯ . In this experiment, the temperature of the device ranged between 24 . 8 °C and 28 . 8 °C; the sample size is 1000 points.
Figure 17. Realizations of the errors committed by the three estimators d ^ , y ¯ and y - H θ ¯ . In this experiment, the temperature of the device ranged between 24 . 8 °C and 28 . 8 °C; the sample size is 1000 points.
Sensors 15 29854 g017
We also plot in Figure 18 and Figure 19 how the statistical moments of the empirical error and of the empirical absolute error of these estimators behave with the test sample size. Each point in the plot represents the mean or the variance of an error (or absolute error) sequence similar to those shown in Figure 17. We see that the performance of d ^ improves monotonically, while for the other estimators, this does not happen. Similar results happen also in the plots for the variances, where the proposed estimator outperforms the other two.
Figure 18. Dependency of the statistical moments of the various estimators on the test sample size. The upper plot shows the mean error, while the lower plot shows the variance of the error. In these experiments, the temperature of the device ranged between 24 . 8 °C and 28 . 8 °C.
Figure 18. Dependency of the statistical moments of the various estimators on the test sample size. The upper plot shows the mean error, while the lower plot shows the variance of the error. In these experiments, the temperature of the device ranged between 24 . 8 °C and 28 . 8 °C.
Sensors 15 29854 g018
Figure 19. Dependency of the statistical moments of the absolute error of the various estimators on the test sample size. The upper plot shows the mean absolute error, while the lower plot shows the variance of the absolute error. In these experiments, the temperature of the device ranged between 24 . 8 °C and 28 . 8 °C.
Figure 19. Dependency of the statistical moments of the absolute error of the various estimators on the test sample size. The upper plot shows the mean absolute error, while the lower plot shows the variance of the absolute error. In these experiments, the temperature of the device ranged between 24 . 8 °C and 28 . 8 °C.
Sensors 15 29854 g019

9. Conclusions

Physical considerations on the mode-hopping effect lead to the consideration that the measurement noise of time of flight (ToF) laser scanners is intrinsically multi-modal. In its turn, this implies that estimating the actual distance between scanners and the surrounding objects should be performed using latent variable-based statistical models, where the latent variables correspond to the lasing modes of the laser. Since no literature seems to account for this multi-modality, we aimed at closing this gap.
We thus proposed an expectation maximization (EM) algorithm on top of a model that captures biases on the measured distance induced by temperature changes, plus mode-hopping effects through an opportune Gaussian mixture on the measurement noise. Importantly, thanks to a separable model, the EM iterations can be performed analytically. The computational advantages are clear: non-separable models may indeed need to perform the EM iterations numerically, and this would lead to a computational burden hindering the usability of mode-hopping correction procedures in on-line settings.
The proposed strategy incorporates an accurate model of the temperature dynamics of the laser diode. Moreover, to account for the fact that it may be difficult to collect temperature data on the laser, we proposed a strategy for the identification of the parameters of this model that exploit the datasheet of the laser device and some very simple experiments.
Overall, the proposed temperature compensation strategy led to diminishing the spread of the distribution of real measurements from a SICK LMS 200 around the true value d, as shown in Figure 12, with corresponding decays of the variance of the absolute error from 2 . 0 mm 2 to 0 . 68 mm 2 and shift of the expected absolute error from 3 mm to 1 mm, as shown in Figure 19.
We eventually notice that the proposed strategy is still in its infancy: indeed, we considered a frequentist case for which the actual distance d is a deterministic and fixed quantity, aiming at showing that it is possible to improve the overall precision of a laser scanner through accounting for mode-hopping effects. Nonetheless, in real scenarios, d will vary; we thus devise future efforts focusing on strategies for which d is a stochastic process that varies according to some given a priori distribution.

Acknowledgments

This work is supported by the Framework Programme for Research and Innovation Horizon 2020 under Grant Agreement No. 636834 (DISIRE) and the Swedish research council Norrbottens Forskningsråd.

Author Contributions

The authors contributed equally to the development of the paper.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix

Proof of Proposition 1. 
By the definition of conditional probability,
P y , t ^ j ; d , θ ¯ , Δ = P y t ^ j ; d , θ ¯ , Δ P t ^ j ; d , θ ¯ , Δ = P y t ^ j ; d , θ ¯ , Δ P t ^ j
since t ^ j does not statistically depend on the (deterministic) parameters d, θ ¯ and Δ. ☐
Proof of the structure of the EM training algorithm. 
The probability density of y given t ^ j (and thus H) is:
p y t ^ j ; d , θ ¯ , Δ = 1 1 - π N y - d 𝟙 - H θ - μ 1 𝟙 , σ 1 2 + π N y - d 𝟙 - H θ - μ 2 𝟙 , σ 2 2
Knowing the latent variables Δ leads thus to the log-likelihood:
θ ¯ ; y , t ^ j , d , Δ = 1 y - d 𝟙 - H θ - μ 1 𝟙 T Σ 1 y - d 𝟙 - H θ - μ 1 𝟙 + y - d 𝟙 - H θ - μ 2 𝟙 T Σ 2 y - d 𝟙 - H θ - μ 2 𝟙
Calculating the zero of the score with respect to μ i and then calculating the zero of the score with respect to θ leads to the update rules for both μ i ^ and θ i ^ .
As for the update rule for σ ^ i 2 , we notice that it derives immediately from the fact that the score with respect to σ i is:
- K σ i 2 + 1 σ i 4 y - d 𝟙 - H θ + μ 1 𝟙 T Σ 1 K y - d 𝟙 - H θ + μ 1 𝟙 + y - d 𝟙 - H θ - μ 2 𝟙 T Σ 2 K y - d 𝟙 - H θ - μ 2 𝟙
Proof of the structure of the EM testing algorithm. 
The update rules come directly from the structure of the log-likelihoods in the proof of the structure of the EM training algorithm. ☐

References

  1. One Photon Per Pixel Produces 3-D LiDAR Image. 2013. Available online: www.photonics.com (accessed on 8 December 2015).
  2. Pulse Ranging Technology (PRT)—Highly Accurate Positioning over Large Distances. Available online: www.pepperl-fuchs.us (accessed on 8 December 2015).
  3. Hebert, M.; Krotkov, E. 3-D measurements from imaging laser radars: How good are they? In Proceedings of the IEEE/RSJ International Workshop on Intelligent Robots and Systems’ 91. Intelligence for Mechanical Systems (IROS’91), Osaka, Japan, 3–5 November 1991; pp. 359–364.
  4. Reina, A.; Gonzales, J. Characterization of a radial laser scanner for mobile robot navigation. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, (IROS’97), Grenoble, France, 6 Septembre 1997; pp. 579–585.
  5. Matko, V. Next generation AT-cut quartz crystal sensing devices. Sensors 2011, 11, 4474–4482. [Google Scholar] [CrossRef] [PubMed]
  6. Semiconductor, O.O. Pulsed Laser Diode in Plastic Package 25 W Peak Power SPL PL90. In Data sheet, OSRAM Opto Semiconductor; OSRAM Opto Semiconductors GmbH: Regensburg, Germany, 2014; pp. 244–248. [Google Scholar]
  7. Hawkes, J.; Latimer, I. Lasers: Theory and Practice; Prentice Hall: Maylands Ave, UK, 1995. [Google Scholar]
  8. Paschotta, R. Article on “Mode Hopping” in the Encyclopedia of Laser Physics and Technology; Wiley-VCH: Weinheim, Germany, 2008. [Google Scholar]
  9. Tell, B.; Brown-Goebeler, K.; Leibenguth, R.; Baez, F.; Lee, Y. Temperature dependence of GaAs-AlGaAs vertical cavity surface emitting lasers. Appl. Phys. Lett. 1992, 60, 683–685. [Google Scholar] [CrossRef]
  10. Ljung, L. System Identification: Theory for the User; Prentice-Hall Information and System Sciences Series; Prentice Hall PTR: Englewood Cliff, NJ, USA, 1999. [Google Scholar]
  11. Paschotta, R. Article on “laser Diodes” in the Encyclopedia of Laser Physics And Technology; Wiley-VCH: Weinheim, Germany, 2008. [Google Scholar]
  12. Anderson, B.D.; Moore, J.B. Optimal Filtering; In Courier Corporationz; Dover Publications, Inc.: Mineola, NY, USA, 2012. [Google Scholar]
  13. Dempster, A.P.; Laird, N.M.; Rubin, D.B. Maximum likelihood from incomplete data via the EM algorithm. J. R. Stat. Soc. Ser. B Methodol. 1977, 39, 1–38. [Google Scholar]
  14. McLachlan, G.; Peel, D. Finite Mixture Models; John Wiley & Sons: NY, USA, 2004. [Google Scholar]
  15. Vaida, F. Parameter convergence for EM and MM algorithms. Stat. Sin. 2005, 15, 831–835. [Google Scholar]
  16. Basseville, M.; Nikiforov, I.V. Detection of Abrupt Changes: Theory and Application; Prentice Hall Englewood Cliffs: Englewood Cliff, NJ, USA, 1993. [Google Scholar]

Share and Cite

MDPI and ACS Style

Alhashimi, A.; Varagnolo, D.; Gustafsson, T. Joint Temperature-Lasing Mode Compensation for Time-of-Flight LiDAR Sensors. Sensors 2015, 15, 31205-31223. https://doi.org/10.3390/s151229854

AMA Style

Alhashimi A, Varagnolo D, Gustafsson T. Joint Temperature-Lasing Mode Compensation for Time-of-Flight LiDAR Sensors. Sensors. 2015; 15(12):31205-31223. https://doi.org/10.3390/s151229854

Chicago/Turabian Style

Alhashimi, Anas, Damiano Varagnolo, and Thomas Gustafsson. 2015. "Joint Temperature-Lasing Mode Compensation for Time-of-Flight LiDAR Sensors" Sensors 15, no. 12: 31205-31223. https://doi.org/10.3390/s151229854

Article Metrics

Back to TopTop