Abstract

Wireless capsule endoscopy (WCE) is used to diagnose lesions in the gastrointestinal (GI) tract. The physicians require to know the exact position of the lesions which can be performed by localizing the WCE in the GI tract. In this paper, we propose ultra-wideband (UWB) path loss-based WCE localization and compute the Cramer–Rao lower bound (CRLB) to evaluate the accuracy bounds of localization in the small intestine. First, we propose the estimation of smoothed path loss by minimizing the path loss deviations caused by shadow fading effects of body tissues. Then, the estimated path loss is used to estimate the degree of path loss and to compute the weight of the sensor’s positions. Finally, we propose the smoothed path loss degree-based weighted centroid localization (SPLD-WCL) algorithm to estimate the location of the WCE. We simulate the proposed SPLD-WCL algorithm and verify the accuracy by comparing it to the computed CRLB. The proposed SPLD-WCL localization algorithm shows a significantly high accuracy of localization with a 6.83  root mean square error without any advanced knowledge of unknown parameters and bounds.

1. Introduction

Wireless capsule endoscopy diagnoses the abnormalities in the gastrointestinal tract by sending images of the GI tract to an external device by wireless communication. For diagnosis, the physicians require to know the location of the WCE while capturing the image of the abnormalities. There are several WCE localization techniques based on magnetic field strength [13], radio frequency (RF) [4], or hybrid methods [5, 6]. The received signal strength indicator -based WCE localization techniques are generally based on triangulation or trilateration-based algorithms [4]. The authors of reference [7] propose triangulation-based 2 positioning of the in vivo RF signal where the signal strength is measured using a wearable antenna array for multiple points of the capsule to estimate the distance. The reported average error in [8] is 37.7 . In [9], the authors exploit spatial sparsity to estimate the position of the emitter using the tissue-adaptive method without estimating the time of arrival (ToA) or path loss. The authors of reference [9] use the convex optimization theory and -norm minimization to estimate the position and report less than 7.5  with a perfectly known tissue structure and less than 8.8  with an approximately known tissue structure with some levels of uncertainties.

The localization accuracy of the above traditional RSSI-based methods is influenced by the hostile RF signal propagation due to the nonhomogeneous tissue properties of the human body. Therefore, new approaches that are robust to channel estimation errors are proposed. In [10, 11], the authors propose RSSI-based maximum likelihood (ML) localization using finite impulse response (FIR) and particle filter-based tracking to find the transition model of the capsule. The authors of reference [11] reported 15  using the FIR filter and 7  using the particle filter-based approach. In [12], the authors use the RSSI-based weighted centroid localization (WCL) approach for capsule localization and reported 24.53 .

International regulatory organizations such as Federal Communications Commission (FCC) [13] recommend medical implant communication service (MICS) band for implant applications which is used in the above-proposed methods of localization [4, 712, 14]. However, high-data-rate communication with impulse radio ultra-wideband (IR-UWB) transceivers is also suitable and safe for implantable devices, and it does not interfere much with other radio devices [15]. Short-range, wireless communication using UWB frequency bands is also defined in the IEEE standard 802.15.6 in the vicinity of, or inside, a human body [13]. The IEEE standard UWB signal propagation models for implantable devices are presented in [13, 16, 17]. Several UWB-based WCE localization algorithms are available in the literature [1820].

The authors of reference [18] propose UWB RSS-based capsule endoscopy localization using compressive sensing and the variable noise level (VNL) Kalman filter. The localization error is 35–60  based on the frequency of operation as reported in [18]. In [19], the authors propose UWB MIMO diversity to estimate the path loss and position-bounded calibrated WCL to localize the capsule in the small intestine. The reported localization accuracy of the MIMO-based approach in [19] is 5.14  using position bounds, whereas it is 7.49  without position bounds. However, due to the size and space limitation, higher-order diversity antennas are difficult to be equipped in the capsule, and only 3-dB diversity gain is recommended in [21] for space diversity due to the high correlation among different on-body receiver locations. In [20], the authors propose ML estimation for UWB path loss estimation and propose WCL-based localization using position bounds and path loss bounded weight of the sensor receivers. In [20], the reported error is 6.2  for capsule localization in the small intestine using position bounds and 8.14  without using the position bounds. However in [19, 20], the authors simulate the proposed capsule localization using the statistical description of UWB propagation through the human chest [16] which is not a suitable scenario for localization in the small intestine. In [19], a calibration coefficient is used which requires prior knowledge of the dimension of the small intestine. Again, for position estimation in both [19, 20], position bounds are applied that are computed using the dimension of the small intestine which is practically not feasible. Most of the above-reported works are on developing RSSI-based capsule localization algorithms only. In [22], the authors calculate the accuracy bounds of the RF-based triangulation method for capsule localization using a log-normal channel model of the MICS band. However, no research work is reported in the literature on the accuracy bound of UWB-based WCE localization which can be used as the benchmark to compare the accuracy. Further, in the previous works [4, 712, 1820], the statistical signal propagation using the MICS or UWB frequency band is modeled using the finite-difference time-domain (FDTD), the finite integration technique (FIT), or electromagnetic field simulators, where the signal reflections, blood flow, respiration, body movements, antenna alignment, etc. related factors are not considered.

In this paper, we propose a novel method of localization of the WCE using UWB path loss. We also derive and compute the CRLB as the benchmark of the accuracy of the proposed WCE localization in the small intestine. To generate the path loss and to compute the CRLB, we model a small intestine trajectory and map the coordinate values for varying locations of the WCE in the small intestine. Then, we use the distance between the mapped positions of the WCE and the reference positions of the sensor receivers to generate the UWB path loss using the statistics of the UWB path loss model extracted in [17] considering in-body to on-body in-vivo measurements scenario. Then, the CRLB is computed using the generated UWB path loss and the proposed scenario of WCE localization. We also propose a novel method of WCE localization using UWB path loss-based weighted centroid localization. Since the UWB path loss is highly deviated by the shadowing effects caused by the nonhomogeneous tissue properties of the human body, we propose the smoothed path loss estimation methods to mitigate the effect of path loss deviations on the accuracy of localization. We estimate the smoothed path loss by finding the best-fitted path loss of the neighboring location points followed by an averaging method. The path loss exponents of the best-fitted path loss are estimated by using linear least square regression of the scattered path loss of the neighboring location points. We also estimate the degree of the path loss using the standard deviation of the scattered path loss and the estimated smoothed path loss. Then, the smoothed path loss is raised to the degree to estimate the weight of the reference sensor receiver’s positions. Finally, the position of the WCE is estimated by finding the weighted centroid of the reference sensor receiver’s positions. We evaluate the impact of path loss deviations and the impact of the number of sensor receivers on the accuracy of localization. The proposed WCE localization algorithm outperforms the other state-of-the-art works in the literature without any prior knowledge of unknown parameters and position bounds. It can localize the capsule with an accuracy of 6.83  which is very close to the computed CRLB.

2. Localization System Architecture

We propose a WCE localization system, where the WCE is localized using a body-surrounded 3D sensor array of multiple sensor receivers as shown in Figure 1. The 3D sensor array is placed around the abdominal region of the human body. Here, we consider the transmitter (Tx) to be equipped with the WCE and the sensor receivers (Rx) to be equipped with miniaturized impulse radio (IR) UWB transceivers [15] suitable for the wireless body area network (WBAN).

In our proposed localization approach, the Tx inside the WCE travels through possible target positions in the small intestine and transmits the UWB signal. The signal is received by the sensor receivers of the sensor array. The RSSI is measured by the sensor receivers for varying location points of the WCE transmitter in the small intestine. The scattered path loss is calculated using the transmitted power and the received signal strength. Since the path loss is highly deviated due to the body tissue properties of the human body, the smoothed path loss is estimated using our proposed method. Then, the degree of path loss is estimated using our proposed method. As the path loss attenuates with the distance, we consider the path loss as a measure of the Tx-Rx separation distance and compute the weight of the sensor receiver’s position using the estimated path loss raised to the degree. Finally, the coordinate position of the WCE is estimated using weighted centroid localization by finding the weighted centroid of the reference positions of the sensor receivers.

3. Path Loss Model

In our proposed localization approach, the UWB signal between the capsule transmitter and the body-surrounded sensor receivers is scattered due to the different material dielectric properties of human body layers along the propagation path. Using the practical scenario, the scattered path loss can be found using the measured RSSI and transmitted power as follows:where, is the scattered path loss and is the transmitted power. The scattered UWB path loss is represented as follows:where , , , and denote the fitting constant, separation distance between the capsule transmitter (Tx) and the sensor receiver (Rx), reference Tx-Rx distance at 1, and the path loss in at reference distance , respectively. The statistical distribution of the shadowing term follows a Gaussian distribution model with mean and standard deviation of .

Short-range, wireless communication using UWB frequency inside a human body is specified in the IEEE standard 802.15.6 and characterized by very low power consumption, the smaller size of the antennas, and a higher data rate [13, 17]. In [17], the statistics of the UWB signal propagation using a frequency band covering from 3.1 to 6 GHz are extracted using in vivo measurements, where the on-body receiving antennas are located on the abdomen and the in-body positions are located in the small bowel or the colon. The extracted statistics of the path loss are specified in Table 1. We generate the scattered UWB path loss using equation (2) by replacing the value of and the statistics as available in Table 1. The Tx-Rx separation distance is found for each of the traveling positions of WCE in the small intestine as follows:where, are the coordinates of the real position of the capsule transmitter and are the coordinates of the reference position of the sensor receiver.

4. CRLB on the Localization Accuracy

In this section, we analyze and compute the accuracy limit of WCE localization in the small intestine by finding the Cramer–Rao lower bound which provides a benchmark against the accuracy of an unbiased estimator [23]. Therefore, we derive the CRLB as the accuracy bounds of WCE localization by determining the relationship between the path loss estimation error and the location estimation error. This is because the accuracy of WCE localization is mostly influenced by the path loss estimation error. The path loss estimation error occurs due to the scattering of the path loss caused by the nonhomogeneous tissue properties of the human body.

The scattered path loss is represented as equation (2), where is the scattered shadowing term with mean and standard deviation of . Thus, the best-fitted mean path loss excluding the scattering term can be expressed as follows:and the standard deviation of path loss, , can be given as follows:where is the total number of sensor receivers. In the following subsections, we estimate the CRLB on the variance of path loss to relate it to the CRLB of the localization error.

4.1. CRLB on the Variance of Path Loss

The probability density function (PDF) of the path loss with random white Gaussian noise (WGN) shows Gaussian distribution with mean and standard deviation as shown in the following:

The Cramer–Rao lower bound (CRLB) on the variance of the path loss estimator must satisfy the following equation:

Differentiating the logarithm of equation (6) once with respect to best-fitted mean path loss , we get the following equation:

The expected path loss can be achieved by equating equation (8) to zero. Differentiating equation (8) results in the following equation:

Thus, CRLB on the variance of path loss is obtained as follows:

4.2. CRLB on the Variance of Localization

The PDF of path loss for an unknown location of the capsule can be expressed as follows:where is the distance between Tx-Rx, and it is a function of the 3 coordinate (x, y, z) positions of the capsule. The CRLB on the variance of the location estimator must satisfy the following equation:

Differentiating the logarithm of equation (11) once with respect to x-y-z coordinate positions, we get the following equation:

Differentiating (13), we get thefollowing equation:

Thus, the CRLB on the variance of localization is obtained as follows:

To compute the CRLB, we differentiate the expected mean path loss in equation (4) with respect to x-y-z coordinates and get the following equation:

The equation (16) can be written in matrix form as follows:

Finally, replacing equations (18) and (15), the CRLB on the variance of localization is obtained as follows:

Thus, we can compute the CRLB on the localization error as follows:

For possible positions of the capsule, the CRLB on the root mean square error of localization can be computed as follows:

5. Proposed WCE Localization Algorithm

We propose a WCL-based localization algorithm to localize the three dimensional position of the WCE in the small intestine. WCL estimates the position of the implanted capsule by finding the weighted average of the sensor receivers’ position as follows:where, is the estimated x-y-z coordinate position of the capsule, is the number of sensor receivers, is the reference x-y-z coordinate position of the sensor receiver, and is the weight of the reference position of the sensor receiver which is inversely proportional to the distance of the sensor receivers from the capsule transmitter.

The detail methodologies of the proposed algorithm are shown in Algorithm 1 and explained in the following:

Input:
Output:
1fordo
2  fordo
3   
4    {Generated scattered path loss}
5end for
6end for
7for do
8  
9  fordo
10    {Scattered path loss of k adjacent positions}
11    {Extraction of path loss exponents}
12end for
13   {Smoothed path loss}
14  end for
15 {Degree of the estimated path loss}
16for do
17  fordo
18    {Weight estimation}
19  end for
20   {Position estimation using WCL}
21end for
5.1. Path Loss Estimation

Path loss is estimated as a measure of Tx-Rx distance and to compute the weight of the reference positions of the sensor receivers. The propagation path loss is scattered due to the shadowing effect caused by the nonhomogeneous human tissue dielectric properties. To get an accurate estimate of the path loss, the scattering of the path loss is required to be minimized. The capsule travels possible points through the small intestine. The best-fitted path loss of the adjacent traveling location points can be estimated as follows:where is the range of adjacent location points of the capsule at instant, is the lower bound, is the upper bound of the adjacent location points, and and are the path loss exponents. The path loss exponents are estimated by using linear least square regression of the scattered path loss measured at the adjacent location points of the capsule as follows:where is a matrix of the path loss exponents, is the matrix of the measured path loss of adjacent location points of the capsule, and is the set of adjacent location points.

Using the extracted path loss exponents and , we can estimate the smoothed path loss, , between the sensor receiver and location point by averaging the best-fitted mean path loss of the adjacent location points as follows:

5.2. Weight Calculation

The weight of the reference position of the sensor receivers is inversely proportional to Tx-Rx distance. As the path loss is a measure of Tx-Rx distance, we can compute the weight using the estimated smoothed path loss and the estimated degree of path loss as follows:where is the degree of path loss. is dependent on the propagation path loss caused by the shadowing environment. Thus, we can estimate the degree by finding the standard deviation of path loss as follows:where is the number of location points, is number of sensor receivers, and and are the measured scattered path loss and the estimated smoothed path loss between the sensor receiver and the location position of the capsule, respectively.

5.3. Position Estimation

Finally, we estimate the 3D position of the capsule using WCL. We put the calculated weight of the sensor receiver’s position in equation (23) and estimate the instant position of the capsule as follows:

6. Performance Metrics

We apply the following three performance metrics to evaluate the accuracy of the proposed path loss estimation and position estimation methods.

6.1. Coefficient of Determination,

The coefficient of determination measures how well a statistical model predicts an outcome. The outcome is represented by the model’s dependent variable. The lowest possible value of is 0, and the highest possible value is 1. The better a model is at making predictions, the closer its will be to 1. The formula of the coefficient of determination is as follows:where is the sum of squared residuals and is the total sum of squares. We use to verify the performance of the proposed path loss estimation and position estimation methods. For the path loss estimation method, we calculate the coefficient of determination of path loss, , as follows:

For our proposed position estimation, we calculate the coefficient of determination of position, , as follows:

6.2. Localization Error

The localization error is a performance metric that is simply measured by the difference between estimated and real positions as follows:where are the coordinates of the real positions and are the coordinates of the estimated positions. The is compared to the computed CRLB of the as a benchmark to verify the accuracy of localization.

6.3. Root Mean Square Error

The is a performance metric which is computed as follows:where is the total number of possible positions traveled by the capsule, are the coordinates of the real position of the capsule, and are the coordinates of the estimated position of the capsule. The is compared to the computed CRLB of the as a benchmark to verify the accuracy of localization.

7. Simulation and Results

We simulate the proposed localization algorithm using a 3D simulation platform developed in MATLAB as shown in Figure 2. The simulation platform includes 48 sensor receivers (Rx) placed at the corner points of a 3 cubic sensor array of dimension. The 48 sensor receivers are placed as a cluster of six (06) sensor receivers at 8 corner points of the sensor array. The distance between the clustered sensor receivers is kept at 30  to reduce frequency interference. The simulation platform also includes a 2443  long small intestine trajectory model. The traveling path in the small intestine is mapped with 2443 coordinate positions of the capsule transmitter (Tx) in 1  resolution. The communication between the capsule transmitter (Tx) and the sensor receivers (Rx) is modeled using UWB signal propagation with 8 output power and highly deviated path loss due to the different material dielectric properties of human body layers. The simulation parameters are summarized in Table 2.

To evaluate the performance of the proposed localization algorithm, we use three performance metrics, , the and the , as shown in equations (33), (34), and (35), respectively. To compare the performance to a benchmark accuracy, we compute the CRLB on the variance of localization as shown in equation (20). It is apparent from equation (20) that the performance is dependent on the standard deviation of path loss and the Tx-Rx separation distance. As we know that for our proposed localization approach, the path loss is highly deviated due to the material properties of the human body layers. Therefore, to generate the scattered path loss between the Tx-Rx, we use the statistical path loss parameters as specified in Table 1 that are extracted in [17] for ingestible devices using the in-body to on-body in vivo measurement scenario. Then, we generate the scattered path loss and best-fitted mean path loss using equations (2) and (4), respectively, by replacing the value of Tx-Rx separation distance and the path loss statistics as available in Table 1. The distance between the reference coordinate positions of the sensor receivers and all the mapped 2443 traveling positions of the capsule are calculated using equation (3). Figure 3 illustrates how the path loss varies with the Tx-Rx separation distance and how the path loss is scattered around the best-fitted path loss due to the standard deviation of path loss . The path loss deviation and the channel response are calculated using equations (5) and (19) for different number of sensor receivers and replaced in equation (20) to compute the CRLB on the variance of localization. Finally, the CRLB on the and the are computed using equation (21) and (22), respectively. Figure 4 shows the CRLB on the for all positions as a function of the standard deviation of path loss, . It is observed in Figure 4 that the CRLB on the increases with path loss deviation .

To minimize the deviation in the scattered path loss, we estimate the smoothed path loss using our proposed method using equation (27). The path loss exponents and are estimated using LLS regression as shown in equation (26). The lower and upper bound of the adjacent location points were set to 11 to obtain optimal results. The performance of our proposed path loss estimation method is evaluated using the performance metric as shown in equation (32). The value using 8 sensor receivers is 0.9971 and using 48 sensor receivers is 0.9974, indicating a very high coefficient of determination at making predictions.

Next, we simulate the proposed smoothed path loss degree-based WCL (SPLD-WCL) algorithm using 8–48 sensor receivers to estimate the position of the capsule traveling through the small intestine. Figure 2 shows the simulation results with 48 sensor receivers and illustrates the real and estimated positions of 2443 simulated positions of the capsule in the small intestine trajectory. The performance is evaluated using the , , and the . Table 3 summarizes the results obtained using different improvement steps of the algorithm. It is observed from the results in Table 3 that the improves and the reduces significantly by applying different improvement steps of the proposed algorithm. Figure 5 illustrates the localization error of all simulated positions by applying different improvement steps of the proposed algorithm. It is apparent from Table 3 and Figure 5 that a major improvement is obtained by applying the improvement steps, especially by applying path loss smoothing and by raising the path loss to the estimated degree . It is also observed that the accuracy is improved by raising the degree of both the scattered path loss and the smoothed path loss. Figure 5 and Table 3 also compare the accuracy to the computed CRLB. It is observed that the localization error and the of the proposed methods are very close to the computed CRLB.

We analyze the impact of the sensor receivers on the accuracy of the localization by varying the number of sensor receivers from 8 to 48. In our proposed approach of localization using WCL, the WCE is localized by finding the weighted centroid of the sensor receivers’ positions. Therefore, at least 8 sensor receivers are required to be placed at the 8 corner points of the 3D cubical array to localize the capsule traveling through the central locations of the cube by finding the weighted centroid. It is observed in Table 3 that using four (04) sensor receivers, we obtain a negative value. Thus, a minimum of 8 receivers are required for 3D localization of the WCE using WCL. The cumulative distribution of the localization error for an increasing number of sensor receivers is demonstrated in Figure 6. It is observed that for 2443 simulated positions, 80% of localization error remains below 12  by using 8 sensor receivers, whereas by using 48 sensor receivers, 80% of the localization errors remain below 10 . Figure 7 illustrates the accuracy of the proposed SPLD-WCL for an increasing number of sensor receivers and compares it to the computed CRLB. It is observed in Figure 7 that the of the proposed SPLD-WCL algorithm and the CRLB decrease with the increasing number of sensor receivers. The computed CRLB on the is 3.96  and 0.664  using 8 and 48 sensor receivers, respectively. For 2443 simulated positions of the capsule, the of localization using the proposed SPLD-WCL localization algorithm is 8.7  and 6.83  using 8 and 48 sensor receivers, respectively.

Table 4 compares the methods and the obtained localization accuracy of the proposed SPLD-WCL algorithm to other works in the literature. As we can see from the comparison in Table 4, the proposed localization algorithm shows significantly high localization accuracy using 8 to 48 sensor receivers using the in-vivo UWB channel model as compared to the state-of-the-art methods of other works in the literature by applying the proposed methods of smoothed path loss estimation, path loss-based degree estimation, and the WCL. Thus, it may be concluded that the proposed SPLD-WCL localization algorithm outperforms the literature without any prior knowledge of unknown parameters, distance, or channel statistics with a significantly high accuracy close to the benchmark CRLB.

8. Conclusion

In this paper, we have proposed WCE localization in the small intestine using the SPLD-WCL algorithm using the UWB signal propagation between the capsule transmitter and sensor receivers of the body-surrounded sensor array. We have also found the CRLB as the benchmark of localization accuracy using the UWB signal propagation model. The performance of the proposed algorithm has been evaluated using the performance metrics, , the , and the . For the simulation, we have modeled a small intestine trajectory mapped with 2443 target positions of the WCE in 1  resolution. Then, we have generated the path loss using the UWB path loss statistics and the coordinate positions of the WCE in the small intestine trajectory model and the sensor receivers in the proposed localization scenario. Next, we have computed the CRLB on the and the using the generated path loss for the proposed localization scenario. The computed CRLB on the is 3.96  and 0.664  using 8 and 48 sensor receivers, respectively. To develop the proposed localization algorithm, we have proposed smoothed path loss estimation to minimize the effect of the path loss deviation on the localization accuracy. We have also proposed a method of determining the degree of the path loss using the standard deviation of the scattered path loss and the smoothed path loss which does not require knowledge of any unknown parameters. Then, we have computed the weight of the sensor receivers using the estimated path loss raised to the degree and found the position of WCE using weighted centroid localization. We have simulated the proposed localization algorithm to localize the WCE at 2443 target positions in the small intestine. The proposed methods show significantly high accuracy in path loss estimation and localization of the WCE in the small intestine. The accuracy of the path loss estimation methods in terms of is 0.9971 and 0.9974 using 8 and 48 sensor receivers, respectively, indicating a very high level of significance in making predictions. We have also analyzed the impact of the number of sensor receivers and the path loss variance on localization accuracy. We have seen that the accuracy of localization improves by increasing the number of sensor receivers. It is also found that the accuracy of localization improves significantly by applying path loss smoothing and the degree of path loss. The measured coefficient of determination of the positions, , is 0.9901 which indicates a significantly high level of estimation. The simulation results show that the of the proposed localization algorithm is 8.7  and 6.83  using 8 and 48 sensor receivers, respectively, which is very close to the benchmark CRLB. Thus, it may be concluded that the proposed SPLD-WCL localization algorithm can obtain significantly high accuracy as compared to the state-of-the-art works in the literature without any prior knowledge of distances, bounds, and any unknown parameters.

Data Availability

The dataset used to support the findings of this study is available from the corresponding author upon request.

Conflicts of Interest

The authors declare that there are no conflicts of interest.

Acknowledgments

The research was funded by the authors. The authors would like to thank the Department of Electrical and Electronic Engineering of Ahsanullah University of Science and Technology for providing them with the necessary computing facilities to conduct the research.