We consider a multicore fiber with n FBG arrays along a flexible instrument, as shown in Fig. 1. Each array contains seven FBGs, one center core and six outer cores. All FBGs have fixed length \(\ell \), and the arrays are uniformly distributed with center-to-center distance d.
Shape sensing model
We analyzed every shape sensing step and optimized it by minimizing the errors. The result is our optimized shape sensing model:
- 1.
Wavelength shift calculation.
- 2.
Strain computation for every core.
- 3.
Strain interpolation for every core.
- 4.
Curvature and angle calculation.
- 5.
Curvature and angle correction.
- 6.
Shape reconstruction with circle segments.
Every step is described in more detail in the following sections.
Wavelength shift calculation
FBGs are interference filters inscribed in short segments of an optical fiber core, which reflect a specific wavelength of the incoming light [8]. The Bragg wavelength of a FBG is defined as
$$\begin{aligned} \lambda _{\mathrm{{B}}} = 2n_{\mathrm{{e}}} \Lambda , \end{aligned}$$
where \(n_\mathrm{e}\) is the effective refractive index of the grating and \(\Lambda \) the grating period. Mechanical strain or temperature change influence the reflected wavelength. This results in a wavelength shift
$$\begin{aligned} \Delta \lambda = \lambda - \lambda _\mathrm{B} \end{aligned}$$
of the measured wavelength \(\lambda \) in comparison with the reference wavelength \(\lambda _\mathrm{B}\) of the FBG. If the reference wavelengths of the FBGs are unknown, they have to be determined by a separate measurement where no strain is applied to the fiber system.
Strain computation
The measured wavelength shift \(\Delta \lambda _\mathrm{B}\), which can be caused by applying strain \(\varepsilon \) or by changing temperature \(\Delta T\) in the Bragg gratings, is given by
$$\begin{aligned} \Delta \lambda = \lambda _\mathrm{B} \big ((1-p_\mathrm{e})\varepsilon +(\alpha _\Lambda + \alpha _n)\Delta T\big ), \end{aligned}$$
where \(p_\mathrm{e}\) is the photo-elastic coefficient and \(\alpha _\Lambda \) and \(\alpha _n\) are the thermal expansion coefficient and the thermo-optic coefficient [5]. By assuming a constant temperature \(\Delta T = 0\) the applied strain of the FBG can be calculated:
$$\begin{aligned} \Delta \lambda _\mathrm{b} = \lambda _\mathrm{b} (1-p_\mathrm{e})\varepsilon . \end{aligned}$$
The photo-elastic coefficient \(p_\mathrm{e}\) is directly related to the gauge factor \(GF = 1 - p_\mathrm{e}\). Photoelasticity is defined as the change in reflected wavelength depending on the strain applied in axial direction. For FBG systems, the photo-elastic coefficient \(p_\mathrm{e} \approx 0.22\) can be found in the literature [16] and experiments for determining the parameter of any FBG system are described [2].
Interpolation
When the curvatures and angles are calculated for every FBG array, the intermediate values can be determined by interpolation. Henken [4] compared common interpolation methods for shape sensing and concluded that cubic spline interpolation is the best solution, which is currently the state-of-the-art interpolation. Interpolating the curvature is straight forward since it is continuous for every shape, whereas the angle interpolation is challenging for flexible structures, which may have discontinuous angle. Thus, we suggest to interpolate the strain, since it is continuous.
Furthermore, it is assumed that the measurements of one FBG array are the values for one specific position, usually the array center. Thus, we use the averaged cubic interpolation, as introduced in [6]: this yields a realistic interpolation based on the spatial properties of a FBG by modeling the measured value as an average over the sensor range.
Curvature and angle computation
The calculation of the curvature and direction angle depends on the fiber system. The most common one is a triplet configuration [4, 13]: here, the FBG system has three fiber cores with specific angles (typically \(120 ^\circ \)) in between, as illustrated in Fig. 1.
For this configuration, the relationship between strain, curvature and directional angles is described by the following equations:
$$\begin{aligned} \begin{aligned} \varepsilon _\mathrm{a}&= - \kappa r_\mathrm{a} \sin (\varphi ) + \varepsilon _0 \\ \varepsilon _\mathrm{b}&= - \kappa r_\mathrm{b} \sin (\varphi + \gamma _\mathrm{a}) + \varepsilon _0 \\ \varepsilon _\mathrm{c}&= - \kappa r_\mathrm{c} \sin (\varphi + \gamma _\mathrm{a} + \gamma _\mathrm{b}) + \varepsilon _0, \end{aligned} \end{aligned}$$
(1)
where \(\varepsilon _x\) is the strain, \(r_x\) the radius and \(\gamma _x\) the angle of fiber x. By solving the equation system, we obtain the strain bias \(\varepsilon _0\), the curvature \(\kappa \) and the direction angle \(\varphi \). The equation system can also be extended for four or more fibers.
The equations show that the curvature is influenced by the radii \(r_x\) similarly as by the photo-elastic coefficient. In addition, the strain is also biased by a temperature change, additional axial strain and pressure. Due to the short distance (\(< 100~ \upmu \mathrm{m}\)) of the FBGs in one array, it can be assumed that for every grating in one array (see Fig. 1), this bias is equal and therefore compensated by the strain bias \(\varepsilon _0\).
Curvature and angle correction
The determined curvatures and angles are influenced by various variables; therefore, we suggest the following corrections: the curvatures are scaled by the photo-elastic coefficient \(p_\mathrm{e}\) and the center-to-core distances \(r_x\). Since both parameters can be biased, we determine a correction parameter c to get the right curvatures
$$\begin{aligned} \kappa _{\text {real}} = c \cdot \kappa . \end{aligned}$$
(2)
This factor must be determined individually for each fiber. Also, the fiber can be twisted during production or storage, but these twists are not contained in \(\varepsilon _0\). Thus, we obtain a measured angle
$$\begin{aligned} \varphi = \varphi _\text {real} + \varphi _\text {twist}, \end{aligned}$$
(3)
which does not equal the real angle \(\varphi _\text {real}\) because it is distorted by the twist angle \(\varphi _\text {twist}\). The twist angle \(\varphi _\text {twist}\) cannot be determined for fibers of this geometry without a measurement, where \(\kappa \ne 0\) [see also Eq. (1)]. Helically wrapped fibers include torsion in their model, and the twist can be calculated. For short and stiff instrument, this error is negligibly, whereas for flexible instruments the twist angles must be determined.
Shape reconstruction
In the last years, three shape reconstruction algorithms have been proposed: Moore [10] presented a method based on the fundamental theorem of curves, which states that the shape of any regular three-dimensional curve with nonzero curvature can be determined by its curvature and torsion [1].In mathematical contexts, the torsion of curves corresponds to the change of the direction angle. The shape is obtained by solving the Frenet–Serret equations:
$$\begin{aligned} \frac{\mathrm{d}T}{\mathrm{d}t} = \kappa N, \; \frac{\mathrm{d}N}{\mathrm{d}t} = - \kappa N + \tau B, \; \frac{\mathrm{d}B}{\mathrm{d}t} = -\tau N, \end{aligned}$$
where \(\kappa \) is the curvature, \(\tau \) the torsion, T the tangent vector, N the normal vector and B the binormal vector of the curve at length position t. The integration of the determined tangent vectors yields the shape of the curve. This method fails at points with \(\kappa = 0\) since the torsion is undefined there. Thus, this algorithm is not suitable for shape sensing of flexible structures.
Cui [3] suggested a method based on parallel transport to overcome this problem. The equations to be solved are:
$$\begin{aligned} \frac{\mathrm{d}T}{\mathrm{d}t} = \kappa _1 N_1 + \kappa _2 N_2, \; \frac{\mathrm{d}N_1}{\mathrm{d}t} = - \kappa _1 T, \; \frac{\mathrm{d}N_2}{\mathrm{d}t} = -\kappa _2 T. \end{aligned}$$
where \(\kappa _1\) and \(\kappa _2\) are the curvature components corresponding to the normal vectors \(N_1\) and \(N_2\), which are orthogonal to the tangent vector T. The shape reconstruction is conducted in the same way as with Frenet–Serret.
Roesthuis [13] proposed another method based on circle segments: the shape is reconstructed by approximating it with elements of constant curvature. For every element a circle segment of curvature \(\kappa \) and length l is created and is rotated by the direction angle \(\varphi \). By repeating this procedure for every given set \((\kappa , \varphi )\) we obtain the whole shape.
Experimental methods
For all experiments described below we had one multicore fiber system (FBGS Technologies GmbH) available with 7 cores, one center core and six outer cores with an angle of \(60^{\circ }\) in between, as shown in Fig. 1. It has 38 FBG arrays each with 5 mm length and 10 mm center-to-center distance, which are chains of draw tower gratings (DTG\(\circledR \)).
In the next sections, we used the following parameters and algorithms if they are not analyzed or specified otherwise: we fixed our covered fiber to a precise ruler and used the measured wavelength as reference wavelengths, we used a photo-elastic coefficient \(p_\mathrm{e} = 0.22\), made averaged cubic strain interpolation, used four outer cores and reconstructed the shape with circle segments.
For matching reconstructed and ground truth shape, we used the iterative closest point algorithm [14]. For evaluation, we calculated the average and maximum error defined as
$$\begin{aligned} e_{\text {avg}}:= & {} \frac{1}{n}\sum _{i=0}^{n} \Vert x_i - x^{\text {gt}}_i \Vert _2 \text { and }\\ e_{\text {max}}:= & {} \max ( \Vert x_0 - x_0^{\text {gt}} \Vert _2, \ldots , \Vert x_n - x_n^{\text {gt}} \Vert _2), \end{aligned}$$
where \(x_0, \ldots , x_n\) are the reconstructed points and \(x_0^{gt}, \ldots , x_n^{gt}\) are the ground truth points located every \(10 \, \text {mm}\) along the shape.
Wavelength shift computation
For our multicore fiber, we had no reference Bragg wavelengths given. Thus, we had to determine these wavelengths with a measurement without any strain. Therefore, we analyzed the effect of the Bragg wavelength estimation: at different times we fixed the fiber in a straight line, measured the wavelengths, used it as reference Bragg wavelengths and reconstructed various types of shapes.
Strain calculation
The photo-elastic coefficient influences the shape by curvature scaling. To analyze this effect, we bent our fiber to varying degrees and reconstructed the shape with different \(p_\mathrm{e}\) values.
Table 1 Results of the Bragg wavelength study: measured errors \(e_{\text {avg}}\) and \(e_{\text {max}}\) in mm for different shapes using various Bragg wavelengths Interpolation
We formed our fiber to a snakelike shape, which has a few singularity points, interpolated the measured strains as proposed in “Interpolation” section and compared the resulting curvature and angles with the ones of common interpolation methods.
Curvature and angle computation
Since we have a multicore fiber with six outer cores and one center core and an interrogator, where we can connect four cores, we do not have to use a triplet configuration with \(120^{\circ }\) in between. Thus, we analyzed the effect of different core configurations on the resulting curvatures and angles.
Curvature and angle correction
To determine the twist angle \(\varphi _{\text {twist}}\), we bent our fiber to a 2D-shape, where every position has the same angle and used the determined angles as twist angles, as described in Eq. (3). To get the curvature scale factor c of our fiber, we made bow shapes with different radii, determined the best value assuming a photo-elastic coefficient \(p_\mathrm{e} = 0.22\) and used it for curvature correction, as described in Eq. (2).
Shape reconstruction
The shape reconstruction quality depends completely on the input: when the measured values are correct, the proposed algorithms can reconstructed the correct shape. Therefore, we analyzed the following two aspects:
First, we looked at the convergence, i. e. how fine the segments in each step must be for accurate shapes. Second, we analyzed the noise handling of the three algorithms, i. e. how the resulting shape change with increasing Gaussian noise. In both cases, we simulated an arc shape with torsion, calculated the average curvature and median angle for every segment and reconstructed the shape.
3D shape reconstruction accuracy
To evaluate our model, we recorded 3D measurements: we covered our fiber (diameter: \(200\,\upmu \mathrm{m}\)) with a metallic capillary tube (inner diameter: \(300\,\upmu \mathrm{m}\), total diameter: \(400\,\upmu \mathrm{m}\)), fixed it in a specific shape, computed the shape and compared it with the segmented ground truth from the CT image. For the endovascular experiment, we inserted our fiber into a 3D printed vessel, which was created from a CT patient scan.