Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Given the research problem outlined in the previous chapter, here we focus on the development of a methodology to learn the temperature dynamics of tissues subject to thermal laser ablation. Chapter 2 introduced the equations that govern the generation of heat within the tissue during laser irradiation, and the associated increase of temperature. Such relations constitute the starting point of our investigation: based on these, we hypothesize that the superficial temperature of tissue can be modeled, at any given instant in time, as the superposition of Gaussian functions. Nonlinear fitting methods [1] are used to calculate the Gaussian parameters (amplitude, mean and variance) that describe the distribution of temperature at discrete moments in time. The learning problem is formulated as a supervised nonlinear regression, which aims to predict the temporal evolution of the Gaussian parameters.

To understand the viability of the proposed approach we first consider a simple scenario, which does not involve motions of the laser beam. Later in the chapter we present an extension of this methodology to a more general case, to estimate the temperature dynamics produced by a scanning beam.

4.1 Preliminary Considerations

The hypothesis function f defined in Eq. 3.1 estimates the superficial temperature of a slab of tissue subject to laser irradiation, given the applied laser power P, the pulse duration \(\tau \), the beam scanning frequency \(\omega _s\), and the total laser exposure time \(t_{exp}\). Initial exploration was conducted to better understand the nature of function f and identify an appropriate set of basis functions for the learning task.

Fig. 4.1
figure 1

Geometry of tissue irradiation

Let us consider a simple scenario in which a laser beam, TEM\(_{00}\) profile, irradiates a fixed spot on the surface R of a sample of tissue. This scenario is represented in Fig. 4.1. For the sake of simplicity, we assume that the surface of tissue is plain and that the laser beam is normally incident on it. We further assume that the laser is perfectly focused on the surface of tissue. A Cartesian reference frame (xyz) is established to describe the tissue geometry, with z being coincident with the beam axis, x and y laying on the R plane. Based on the heat conduction equation (Eq. 2.12), a local variation of tissue temperature occurs, that is modeled as the sum of two distinct contributions: the laser input S (\(\mathrm{W} \cdot \mathrm{m}^{-3}\)), plus a second-order differential term that accounts for the diffusion of heat within the tissue volume. Although a general formulation for the temporal evolution of temperature T(t) cannot be given analytically, exact solutions can be derived under certain assumptions.

The “1 \(\upmu \)s rule” (see Sect. 2.4.2) establishes that the effect of heat diffusion is negligible for short irradiations, i.e. for values of exposure time \(t_{exp}<1\upmu \)s [2]. In this case, the local temperature increase produced by the laser source is:

$$\begin{aligned} \dot{T} = \frac{1}{\rho c} S. \end{aligned}$$
(4.1)

Let us recall from Chap. 2 that \(\rho \) is the density of tissue (\(\mathrm{kg} \cdot \mathrm{m}^{-3}\)) and c is its specific heat capacity (\(\mathrm{J} \cdot \mathrm{kg}^{-1} \mathrm{K}^{-1}\)). Replacing the volumetric energy density S with its definition (Eq. 2.7) yields

$$\begin{aligned} \dot{T} = \frac{\mu _a}{\rho c} I, \end{aligned}$$
(4.2)

where \(\mu _a\) is the absorption coefficient of tissue (\(\mathrm{m}^{-1}\)). This equation establishes a relation between the temporal derivative of the temperature and the intensity profile I of the laser beam within the tissue volume. Such relation depends on the local values of the absorption coefficient \(\mu _a\), tissue density \(\rho \) and heat capacity c. Assuming that these coefficients are isotropic, i.e. that they are uniform across the tissue sample, it follows that the temperature increase produced by the laser has precisely the same form of the beam intensity, i.e. a Gaussian function. The time dependency of I can be dropped if a constant beam intensity is used. In such a case, Eq. 4.2 has a straightforward solution:

$$\begin{aligned} T(x,y,z,t) = T_0 + \frac{\mu _a}{\rho c}~I(x,y,z)~t. \end{aligned}$$
(4.3)

where \(T_0\) is the initial temperature. Imposing \(z=0\) and replacing the intensity I by its definition (Eq. 2.5) we obtain a relation that describe the temporal evolution of the temperature on the surface of tissue:

$$\begin{aligned} T(x,y,t) = T_0 + \frac{\mu _a}{\rho c}~I_0 \exp \left( -\frac{2(x^2 + y^2)}{\omega ^2}\right) ~t. \end{aligned}$$
(4.4)

We now consider the homogeneous part of the heat conduction equation, that models the temperature variation once the laser source is turned off (i.e. \(S=0\))

$$\begin{aligned} \dot{T} = \kappa \varDelta T, \end{aligned}$$
(4.5)

where \(\kappa \) is the temperature conductivity of tissue (\(\mathrm{m}^2 \cdot s^{-1}\)). This equation admits solutions of the formFootnote 1

$$\begin{aligned} T(x,y,z,t) = T_0 + \frac{\alpha \exp \left( -\frac{x^2 + y^2 + z^2}{4 \kappa t}\right) }{(4\pi \kappa t)^{\frac{3}{2}}}, \end{aligned}$$
(4.6)

with \(\alpha \) being an integration constant. From this relation, it follows that the time-dependent distribution of temperature at the tissue surface follows a two-dimensional Gaussian profile:

$$\begin{aligned} T(x,y,t) = T_0 + \frac{\alpha \exp \left( -\frac{x^2 + y^2}{4 \kappa t}\right) }{(4\pi \kappa t)^{\frac{3}{2}}}. \end{aligned}$$
(4.7)

These theoretical results seem to indicate that a combination of Gaussian functions could adequately approximate the superficial temperature of tissue during laser ablation. Nonetheless, in our derivation of Eqs. 4.4 and 4.7, we have used many assumptions that certainly do not hold in the case of laser ablation. The ablation process induces disruptive modifications in the tissue both at the mechanical and physical levels (alterations in the density, absorption and thermal conductivity), whereas the calculations above assume a fixed tissue geometry and isotropic conditions. Furthermore, the CO\(_2\) lasers used in clinical practice present pulse durations \(\tau \ge 1\mu s\): for these durations the effects of heat diffusion can no longer be neglected and, as it was pointed out earlier, the solution T(t) must be extracted using numerical approximation methods. Based on these considerations, it is unclear whether a Gaussian model is adequate for the approximation of the superficial tissue temperature T. To better understand the validity of this hypothesis, we performed a series of preliminary laser experiments.

Agar-based gel phantoms were irradiated with a CO\(_2\) laser source (beam waist \(\omega _s=250~{\upmu }\)m), using an exposure time \(t_{exp} = 0.2\,\mathrm{s}\). The superficial temperature was captured with an infrared thermal camera, at a rate of 100 Hz. This sensor provides a sequence of images that contains the values of temperature for a predefined continuous rectangular plane S centered at the point of laser incision. Before being irradiated, the samples were kept at room temperature (\({\thicksim }25\,^{\circ }\mathrm {C}\)) for 10 min. The sequence in Fig. 4.2 shows typical temperature profiles obtained during the trials: the xy plane of the plot corresponds to the surface of the tissue, values of temperature have been plotted in the z-axis. Each pixel represents the temperature value (\(^{\circ }\mathrm {C}\)) of an area that covers \(0.177\times 0.177\) mm\(^2\).

Visual analysis of the plots in Fig. 4.2 indicates that the superficial temperature of tissue can be reasonably assumed to have a Gaussian distribution. Temperature spikes are observed during laser irradiation, next to the peak of the Gaussian surface. These might be produced by the expulsion of hot plume from the ablation site.

Fig. 4.2
figure 2

Temperature distribution captured at different moments of the experiment. a Laser exposed for \(t_{exp}=0.2\) s, b After exposure, laser is turned off (\(t_{off}=0.1\) s) and c \(t_{off}=0.4\) s. Reproduced from [3] with kind permission from Springer Science+Business Media

4.2 Single-Point Ablation

In this section we derive a methodology to learn the temporal evolution of tissue temperature during single-point laser ablation. Let \(T(R,k) \in \mathbb {R}^{m\times n}\) be the two-dimensional matrix representing the temperature of R at the discrete time step k, assuming that \(k=0\) coincides with the time instant when the interaction starts. The temperature of any point \(x,y \in R\) will be given by the (ij)-element of the matrix, following the quantizations,

$$\begin{aligned} \begin{array}{rclcr} i= & {} \left\lceil \frac{y}{\varDelta _{y}} \right\rceil , j= & {} \left\lceil \frac{x}{\varDelta _{x}} \right\rceil \end{array} \end{aligned}$$
(4.8)

where \(\varDelta _{y} = Y/m\), \(\varDelta _{x} = X/n\), and the \(\lceil \cdot \rceil \) notation expresses the ceil function, i.e., the smallest integer not less than.

Temperature of the surface is not uniform and changes with time, i.e.,

$$\begin{aligned} T(R,k) = f(x,y,k). \end{aligned}$$
(4.9)

where \((x,y) \in R\) correspond to the pixel coordinates of any point on the surface. Based on the ideas presented in the previous section, we define a hypothesis function given by a Gaussian function with variable parameters,

$$\begin{aligned} T(R,k) = A(k) \exp \left( - \left( \frac{(x-\mu _x(k))^2}{2\sigma _x^2(k)} + \frac{(y-\mu _y(k))^2}{2\sigma _y^2(k)} \right) \right) \end{aligned}$$
(4.10)

where A represents the amplitude \(\sigma _x\) and \(\sigma _y\) the spatial spreads of the Gaussian, and \(\mu _x, \mu _y\) the center of the function. Note that this hypothesis assumes symmetry with respect to the xy axis in the energy distribution delivered by the laser. Thus, this model can represent elliptical temperature profiles without rotation.

4.2.1 Fitting a Gaussian Function

A thermal camera is used to collect data for the learning task. At each time step, this provides a set of points \(\left\{ (x,y)^i,T^i\right\} _{i=1}^{m\times n}\) points from which the vector of parameters \(\mathbf {\theta }(k) = \left[ A , \sigma _x^2, \sigma _y^2, \mu _x, \mu _y \right] \) needs to be estimated. A common approach is to use a linear version of the model, which is obtained by applying a logarithmic operator to both sides of the equation,

$$\begin{aligned} \log T = \alpha _0 + \alpha _1 x + \alpha _2 y + \alpha _3 x^2 + \alpha _4 y^2. \end{aligned}$$
(4.11)

Hence, the nonlinear regression for (4.10) is transformed into a linear regression with meta parameters, \(\mathbb {\alpha } \in \mathbb {R}^5\) [4]. The elements of \(\theta \) are then given by,

$$\begin{aligned} \begin{array}{rclcrcl} \sigma _x^2 &{}=&{} -(2\alpha _4)^{-1} &{},&{} \sigma _y^2 &{}=&{} -(2\alpha _3)^{-1}\\ \mu _x &{}=&{} \alpha _2 \sigma ^2_x &{},&{} \mu _y &{}=&{} \alpha _1 \sigma ^2_y\\ A &{}=&{}\exp \left( \alpha _0 + \frac{\mu _x^2}{2\sigma _x^2} + \frac{\mu _y^2}{2\sigma _y^2} \right) . \end{array} \end{aligned}$$
(4.12)

A least square regression can then be applied to fit the sensor data in (4.11). Nevertheless, given that there is more data in the tail of the Gaussian than in the bell, weighting the sample points by its correspondent estimation balance the influence of the entire data set during the minimization of the sum of square errors. This is known as weighted least-square minimization (see [5]).

4.2.2 Meta-Parameters Dynamics

Fitting the hypothesis function (4.10) to the data captured during a real laser exposure provides a different vector of parameters for each time step. Figure 4.2 shows data corresponding to different times during laser exposure. In order to estimate the temperature at any point and time using such model a lookup table of hundreds of vectors of parameters would be required.

We propose to investigate a function describing the dynamics of the parameters \(\mathbf {\theta }(k)\), i.e. given the initial value \(\theta (0)\) and an input u(k) signal, the evolution of such parameters can be described using,

$$\begin{aligned} \theta _i(k+1) = h(\theta _i(k),\theta _i(0),u(k)), \end{aligned}$$
(4.13)

where u(k) may assume one of the following values:

$$\begin{aligned} u(k) = \left\{ \begin{array}{cl} 1 &{} \textit{laser on/heating} \\ 0 &{} \textit{laser off/cooling} \end{array} \right. \end{aligned}$$
(4.14)

At the same time, it is important to note that the sequence of Gaussian parameters include errors from the noise in the raw data. Furthermore, these errors are propagated by the use of the logarithmic linear regression method and by the mapping from the meta parameters in (4.12). This is especially true for the amplitude (A), which is derived from a nonlinear function of the entire vector of meta parameters. To prevent the propagation of noise from further affecting the quality of the estimation (i.e., the quality of h) we propose to model the evolution of the meta parameters, i.e.,

$$\begin{aligned} \alpha (k+1) = g(\alpha (k),\alpha (0),u(k)). \end{aligned}$$
(4.15)

The quality of g in (4.15) is expected to be better than the one of h in (4.13), given the level of noise in the respective data set.

4.2.3 Experiments

This section describes the experiments performed to capture the data to learn and validate the model. Single spot laser radiations on agar-based phantom tissue were produced using a CO\(_2\) laser system. Temperature of the surface is captured continuously during laser exposure plus a proportional time after the laser is turning off in order to capture the cooling down process. Exposure time was precisely controlled with a computerized system.

Experiment Procedure

Each experiment consisted in firing a CO\(_2\) Continuous Wave (CW) beam at constant power (P = 3W) on the flat surface of a tissue phantom. A different agar sample was used for each experiment. Samples were stored in a refrigerated bath and taken out at room temperature (\({\thicksim }25\,^{\circ }\mathrm {C}\)) 10 min before the experiment. The exposure time of each experiment was electronically controlled and an independent sequence of thermal images was recorded. A total of 26 experiments were conducted, varying the exposure time from \(t_{exp}=2.0\) s to \(t_{exp}=4.5\) s with increments of \(0.1\mathrm {s}\).

Data Sets

To solve the approximation problems formulated in Sects. 4.2.1 and 4.2.2 different data sets were created. Here we describe the structure and the content of these sets.

The former is a fitting problem, it aims to find the optimal Gaussian parameters \(\theta _k\) that represent the superficial temperature at any time step k. This problem was applied to all of the thermal video frames captured during the laser experiments. During each experiment, a total of \((t_{exp}~+~t_{off})~\times ~100\) frames were captured, each being a matrix with \(l=m\times n =3402\) values of temperature. Frames taken both during the laser exposure and the cooling off phase were considered.

Every experiment corresponds to a sequence of fitted Gaussian parameters \(\theta _k\), each representing the time evolution of temperature. These sequences are used to generate the input (\(\mathbf {x}\)) and output (\(\mathbf {y}\)) vectors required to learn function described in Eq. 4.13:

$$\begin{aligned} \mathbf {x} = [\theta _{k}^i, u_k^i] \end{aligned}$$
(4.16)
$$\begin{aligned} \mathbf {y} = [\theta _{k+1}^i]. \end{aligned}$$
(4.17)

Note that the input incorporates the laser input term \(u_k^i\), which is required to estimate the variation of the values of parameters.

4.2.4 Results

Here we present the results for the Gaussians fitting of the single thermal images, the models obtained after learning the meta parameter dynamics and the temperature prediction that resulted from this data.

Fig. 4.3
figure 3

The surface represents the linear regression obtained for input space (xy) mapping to \(z = \log (T)\), using the sensor data (red markers). Note that this is not the geometrical representation of the tissue. Reproduced from [3] with kind permission from Springer Science+Business Media

Fig. 4.4
figure 4

Weighted least square estimation of the Gaussian model for a single time step. Corresponding parameters are \(\mu = [9.27 \ \ 7.67]\), \(\sigma ^2 =[ 26.5 \ \ 15.78]\) and \(A=60.6457\), Approximation error (mse) = 0.0156. Reproduced from [3] with kind permission from Springer Science+Business Media

Gaussian Fitting

As mentioned in the previous section, a total of \((t_{exp}~+~t_{off})~\times ~100\) Gaussians are approximated. Figure 4.3 shows an example data set and the corresponding logarithmic linear regression. Figure 4.4 shows the result of fitting the thermal imaging sensor data to the hypothesis function in Eq. (4.10). The approximation error varies depending on the time of exposure. The temporal evolution of the normalized and root mean squared errors are presented in Fig. 4.6. It can be observed that the approximation of most of the frames present relatively low errors. Nonetheless, for the initial frames the approximation has high values of normalized mean square error (nMSE), indicating that the assumption of Gaussian shape is not completely verified. On the other hand, these frames present only a few Celsius of absolute average error (RMSE). Visual analysis of the initial frames reveals that these errors are largely due to the presence of the temperature peaks at the center of the beam (Fig. 4.5). These peaks are values of temperature at the center of the beam that last only one time step (\(\varDelta t = 0.01\) s) and we consider as noise. As we have commented earlier in this chapter, these peaks might have the following physical explanation, i.e. that they correspond to the expulsion of material from the ablation site—for which, therefore, temperature monitoring is not relevant.

Fig. 4.5
figure 5

Initial frames include high peaks of temperature that are not modeled by the Gaussian function. The peak points correspond to ablated tissue. Reproduced from [3] with kind permission from Springer Science+Business Media

Fig. 4.6
figure 6

Gaussian function approximation error for a complete experiment. RMSE (blue) and nMSE (red) changes depending on the stage of the interaction. The nMSE tends to zero after the initial time steps. Reproduced from [3] with kind permission from Springer Science+Business Media

Temporal Evolution of the Gaussian Parameters

Figure 4.7 shows the temporal evolution of the Gaussian parameters \(A,\sigma ^2_x,\sigma ^2_y\) during a total exposure time and laser power similar to those used in laryngeal surgery (\(P=3.0~\)W, \(t_{exp} = 2\) s). As expected, the parameters evolve differently when the laser is turned on. Different versions of Eq. (4.13) need to be learned to model both behaviors (heating, cooling) although the underlying structure of the hypothesis remains the same.

During laser exposure the amplitude of the Gaussian remains rather constant (Fig. 4.7), while the spread of the temperature over the tissue clearly increases. The instantaneous peaks of temperature observed in the center of the beam are naturally filtered by the linear regression.

When the laser is turned off the maximum temperature decreases and the rate of change of the variance increases. This is consistent with the analytic solution of the (homogeneous) heat transfer equation, where the amplitude of the function is inversely proportional to the square root of time, while the variance is proportional to it [2]. It can also be observed that the behavior of \(\sigma ^2_x\) and \(\sigma ^2_y\) are similar but not exactly the same: although the energy density produced by our laser is cylindrically symmetric (TEM\(_{00}\)), the orientation of the camera with respect to the target introduces a perspective deformation. This deformation was kept under control maintaining the position of the camera constant throughout the experiments. The sequence of means (\(\mu _x , \mu _y\)) is not showed as it remain almost constant throughout the experiment.

Fig. 4.7
figure 7

Time evolution of the Gaussian parameters (\(A, \sigma _x , \sigma _y\)) during a \(t_{exp} = 2\) s interaction (\(t_0 = 5.8\) s, \(t_f =7.8\) s). It includes the heating and cooling phases. Reproduced from [3] with kind permission from Springer Science+Business Media

Fig. 4.8
figure 8

Meta parameters time evolution \(\alpha _1\) (blue), \(\alpha _2\) (red), \(\alpha _3\) (black), \(\alpha _4\) (green), \(\alpha _5\) (magenta). Reproduced from [3] with kind permission from Springer Science+Business Media

Dynamics of the Metaparameters

The exponential time evolution shown by the meta parameters in Fig. 4.8 suggests a first order dynamics for g of the form,

$$\begin{aligned} \begin{array}{rcl} \alpha (k+1) &{}=&{} g(\alpha (k),\alpha (0)) \\ \alpha (k+1) &{}=&{} C_1\alpha (k) + C_0 \end{array} \end{aligned}$$
(4.18)

where \(C_1\) and \(C_0\) can be extracted with a simple polynomial regression between \(\alpha (k+1)\) and \(\alpha (k)\), as shown in Fig. 4.9. Simplified plots of the discrete dynamics of the meta parameters (both for heating and cooling models) are shown for completeness in Fig. 4.10. The resulting model parameters \((C_0,C_1)\) are presented in Table 4.1.

Fig. 4.9
figure 9

First order dynamics in the meta parameter space \(\alpha (k),\alpha (k+1)\). Reproduced from [3] with kind permission from Springer Science+Business Media

Fig. 4.10
figure 10

Discrete dynamics of the meta parameters (\(\alpha _i ~~ i=1,2,3,4\)). Both models are shown; ‘laser on/heating’ (first row) and ‘laser off/cooling’ (second row). Reproduced from [3] with kind permission from Springer Science+Business Media

Table 4.1 Table of constants for the meta parameters linear dynamics for both models: heating (laser on) and cooling (laser off)

Temperature Estimation

The estimation of temperature only requires the initial state of the meta parameters vector, then the recursion in (4.18) evolves with the activation/deactivation of the laser input. The Gaussian parameters and therefore the surface temperature can be estimated at any time of interest. Figure 4.11 shows the comparison between the real time change of the meta parameters and that obtained with the recursion. Figure 4.12 shows an example of surface temperature reconstruction (nMSE = 0.0137).

Fig. 4.11
figure 11

Time evolution of the meta parameters (\(\alpha _i\)). Learned dynamics (blue) extracted from data (red). Reproduced from [3] with kind permission from Springer Science+Business Media

Fig. 4.12
figure 12

Temperature reconstruction. At a given time during laser exposure (\(t_{exp}\) = 1.92) the temperature of the surface is estimated using the evolution of the meta parameters with nMSE = 0.0137. Reproduced from [3] with kind permission from Springer Science+Business Media

Fig. 4.13
figure 13

Discrete dynamics of the first element of the meta parameter vector (\(\alpha _1\)) as well as of the Gaussian parameter (\(\theta _1\)). The pattern of \(\alpha _1(k)\) can be modeled with a first order system. Reproduced from [3] with kind permission from Springer Science+Business Media

4.2.5 Discussion

The model presented in this section is able to predict temperature of the surface of tissue gel phantoms during single point CO\(_2\) laser ablation. The modeling process takes advantage of the Gaussian structure of the data and here we explain such structure analyzing the shape of the energy spatial profile in the laser beam.

Although the hypothesis function allows us to model elliptical shapes for the Gaussian, it assumes that it is not rotated. Due to the physical location of the sensor some perspective was generated and data captured by the thermal camera showed that minor rotation were present. The model can be augmented, including parameters for the xy distribution of temperature, improving the fitting error. This fitting error may also be improved using an iterative method for Gaussian approximation [5].

The assumption that the dynamics of the meta parameters \(\alpha \) is easier to model than the one of the Gaussian parameters \(\theta \) can be observed in Fig. 4.13, where the sequence of values for the first element of both sets is shown. It can be seen that the pattern of \(\alpha _1\) can be described using a first order dynamics, whereas that of \(\theta _1\) is much more complicated to describe.

4.3 Temperature Dynamics During Laser Scanning

We now seek to extend our modeling methodology to the more general case of tissue ablation by means of a scanning laser beam. The motion of the laser beam directly affects the time-dependent energy density S, thus determining a different thermal response. Evidence presented so far in this chapter indicates that, in the case of single point ablation, the temperature T(t) on the surface of tissue may be modeled by a single Gaussian function with time-varying parameters. The use of a moving laser beam imposes the use of a different model, whose structure is determined experimentally, from the analysis of data collected during preliminary laser trials.

Fig. 4.14
figure 14

First row Tissue temperature profile during computer controlled incision (\(l = 0.3\,\mathrm{mm}, w = 10\,\mathrm{Hz}\)). Although the Gaussian distribution of the energy in the laser beam is present, the profile does not show any particular pattern as it grows in time. Second row Temporal change on temperature \(\varDelta T = T(R,k+1) - T(R,k-1)\). Adapted from [6]

Incisions were created on ex-vivo chicken muscle tissue samples, by means of a laser scanning system (described in Sect. 3.6.1). The laser beam is moved repeatedly along a line of length (\(l = 4.6\,\mathrm{mm}\)), during certain exposure time (\(t_{exp}\)). The motion of the laser scans the complete line at a configurable velocity and oscillatory frequency (\(\omega _s\)). Therefore, the number of times the laser scans the incision is given by \(\eta = t_{exp}/\omega _s\). The period of time the tissue is exposed to the laser is uniformly distributed along the incision line.

Examples of the superficial temperature profile for different times k of the process T(Rk) are shown in the first row of Fig. 4.14. With the aim of reducing the problem complexity, we take the y axis to be coincident with the laser scanning trajectory. We further assume symmetry with respect to the incision line, thus only the temperature along the x axis is shown. The Gaussian-shaped contribution of the laser input S can be visually recognized in the correspondence of the temperature peaks. Nonetheless, as the beam moves along the incision, the temperature profile does not seem to present any specific pattern as it evolves in time.

The second row of Fig. 4.14 shows the temperature increments for the corresponding exposure time. These sequence suggests that the temporal increment of the temperature \(\varDelta T(k) = T(R,k+1)-T(R,k)\) could be described as a set of Gaussian functions with centers along the incision line. The positive part of \(\varDelta T\) seems always amenable to be described by a single Gaussian, while the negative part shows diverse conformations. Based on the heat conduction equation (2.12), the positive corresponds to the thermal effects of the input S plus the heat exchange with underlying and surrounding tissue. Thus, the center of this Gaussian is expected to move together with the laser beam along the incision. The negative part of \(\varDelta T\) constitutes the effects of heat diffusion within tissue, which is modeled by the homogeneous part of the heat conduction equation (Eq. 4.5) by a second-order differential term. This indicates that the shape of the negative part should contain higher order differences of T(Rk).

Based on these observations, we theorize that the function describing the temperature of the surface at each frame of the process can be approximated as a sum of Gaussian functions,

$$\begin{aligned} T(R,k) = \sum _{i=1}^{p} \exp (x,y,a_i,\sigma _i,\mu _i) \end{aligned}$$
(4.19)

where p is the total number of Gaussians and \(a_i\), \(\mu _i\) and \(\sigma _i\) are the corresponding amplitude, mean and covariance. Nonlinear least square fitting regression [1] can be applied to fit (4.19) to the experimental data.

4.3.1 Experiments

Ex-vivo chicken muscle tissue is used as target for the incision trials. Incision length (\(l = 4.6\,\mathrm{mm}/25\,\mathrm{pixels}\)) and scanning frequency (\(\mathrm {w}=10\,\mathrm {Hz}\)) are kept constant. Laser power (\(P=3\) W), and exposure mode (Continuous Wave) were also configured. Total exposure time is set to \(t_{exp}=1.0\) s.

4.3.2 Results

The x-axis is aligned with the incision line and the spatial distribution of the temperature is assumed to be symmetric with respect to the y-axis. Here we compare the quality of the model for different values of p. Based on the knowledge provided by (Eq. 2.12), we may hypothesize that the number of Gaussians required for the model is \(p=4\). Nevertheless here we compare the models for different values of p.

For the simplified case of one-dimensional distribution of temperature, the temperature on the incision line \(T_k(x)\) is defined by the function

$$\begin{aligned} T_k(x) \approx \sum _{i=1}^{p} \exp (x, \mu _i,\sigma _i) \end{aligned}$$
(4.20)

Each experiment is composed by 100 data sets (\(t_{exp} = 1.0~\mathrm{s}, \varDelta t = 0.01\) s). The number of input-output pairs per data set is given by the width (in pixels) of the area of interest. Thus, the model is composed by a total of 100 regressions, each one is obtained using \(m=60\) data pairs \(\{x_j,T_j\}_{j=1}^{m}\). Figure 4.16 shows three examples of function approximated.

Modeling Error

The output of the regression at each time step is a vector of parameters (amplitudes, means and standard deviation), \(\theta _k = [a_k, \mu _k, \sigma _k]\), where \(a,\mu ,\sigma \in \mathbb {R}^p\). Each data set generates an approximation error, i.e., it is variable along the experiment. The mean square error (MSE) is analyzed to compare the quality of the model for different values of \(p = 3,4,5\). Table 4.2 summarizes the information about the variability of the regression error along the experiment, including maximum, minimum, mean, median and interquartile range. It can be seen that the model fits better when using more Gaussians: \(p=4\) performs better than \(p=3\), while not significant improvements can be observed by increasing the number of basis functions to \(p=5\). With \(p=4\), the regression achieves an accuracy (Root-Mean-Square Error) of 1.52 \(\,^{\circ }\mathrm {C}\), with the largest error (RMSE\(_{max}\)) being 2.62 \(\,^{\circ }\mathrm {C}\). Figure 4.15 shows the temperature estimation when modeling with few Gaussian basis functions. On the other hand, Fig. 4.16 shows three examples of regressions with \(p=4\). Different forms of temperature profile are shown.

Table 4.2 Regression results analysis: Mean square error (MSE) for \(n = 100\) regressions
Fig. 4.15
figure 15

Regression result (p = 3). Real temperature is also shown. Adapted from [6]

4.3.3 Model Validation

Based on the analysis presented above, a model using \(p=4\) is selected to estimate the temperature dynamics during laser exposure. A total of 12 parameters for each time step are used for prediction.

In order to validate the model, a new experiment is performed and thermal data is captured while the model estimates the temperature profile. Validation error is computed pixel-wise during \(t_{exp} = 1\) s. Figure 4.17 shows the real temperature profile for the validation experiment and the resulted temperature estimation (for the same time steps used in Fig. 4.16). It can be observed that the new experiment slightly varies with respect to the learning data set. This causes a relatively high pixel-wise error, as presented in Table 4.3.

Nevertheless, the range and distribution of the temperature is effectively estimated at each time step. In order to illustrate this, a comparison between the maximum value at each time step is shown in Fig. 4.18. It can be observed that the model captures the dynamics of the temperature change. The shape of the temperature profile is compared by computing the area under the curve at each time step, also shown in Fig. 4.18. It can be observed that the model is able to effectively estimate the thermal state of the tissue surface.

Fig. 4.16
figure 16

Temperature profile at different stages of the incision. Continuous line (solid blue line) shows data collected from experiments, dash line (red) shows the result of the regression \(p=4\). Adapted from [6]

Fig. 4.17
figure 17

Validation experiments. Sensor data (solid blue line) and the corresponding temperature predicted by the model (dashed violet line). Adapted from [6]

Table 4.3 Validation results analysis: Mean square error (MSE) for \(p=4\) and \(n =100\) regressions
Fig. 4.18
figure 18

Validation experiment. Maximum values of temperature for each time step are presented (top). The integral of the area under the curve for each time step is also presented (bottom). Adapted from [6]

4.3.4 Discussion

The experimental evidence presented in this section indicates that statistical learning enables the creation of models capable of reliably estimating tissue temperature variations during laser incisions. These models are straightforward to implement in a surgical setup, as they do not require any additional sensing device.

The model presented here was derived on ex-vivo chicken muscle tissue. Although not representative of the variety of tissues that are encountered during a laryngeal intervention [7], these targets present the behavior of a generic soft tissue, allowing to prove the proposed concept. Our modeling study does not explicitly take into account heat transfer mechanisms typical of living tissues, e.g. blood perfusion. Nonetheless, the contribution of these mechanisms to the local variation of temperature is neglectable in first approximation [2].

In Chap. 6, we shall describe the integration of this model in an experimental surgical platform. Activation and deactivation of the model will be synchronized with the laser activation, allowing online estimation of the temperature of the tissue surface.