Keywords

1 Introduction

The wireless capsule endoscopy detection technology was proposed about 20 years ago [1]. Due to its significant advantages on being painless, noninvasive, and free of anesthesia and having no cross infection, the wireless capsule endoscopy thoroughly changed the traditional endoscopy detection by using wired endoscopy. At present, the capsule endoscope for clinical application either moves passively depending on gastrointestinal motility or is controlled by an external magnetic field [2, 3]; thus, the capsule does not own the independent capacity of movement. Under such circumstances, the research about the self-propulsion capsule has gradually become a hotspot. Liu et al. proposed a model about the vibro-impact capsule system [4,5,6] and conducted a series of experimental studies to demonstrate the numerical results obtained according to their dynamic model [7,8,9]. Based on their work, the further consideration is how to effectively control the movement direction and speed of the self-propulsion capsule, which will be discussed in this paper.

2 Mathematical Modelling

In this section, a mathematical model about the vibro-impact self-propulsion capsule system is introduced. The physical model is simplified from the actual capsule, based on which the dynamic model is developed.

2.1 Physical Model

The physical model of a vibro-impact self-propulsion capsule is shown in Fig. 1, where M c and M m are the masses of the capsule and the magnet, respectively. k 1 and c represent the stiffness of the helical spring connecting the magnet and the capsule and the damping coefficient of the energy dissipation led by the relative speed between the capsule and the magnet, respectively. The springs with stiffness k 2 and k 3 represent the primary and the secondary constraints, and their gaps between the magnet and the constraints are G 2 and G 3, respectively. A pre-compressed distance of the physical spring is defined as G 1. X c and X m are the displacements of the capsule and the magnet, and their velocities are V c and V m, respectively. In addition, F f, F e, and F i are the external frictional force, the inner excitation force, and the impact force between the capsule and the magnet, respectively. All the structure parameters for the capsule system are listed in Table 1.

Fig. 1
figure 1

Physical model of a vibro-impact self-propulsion capsule [10]

Table 1 Structure parameters of the capsule system

2.2 Dynamic Model

Based on the physical model shown in Fig. 1, the corresponding mathematical model can be developed as [10].

$$ \left\{\begin{array}{c}{M}_m{\ddot{X}}_m={F}_i\\ {}{M}_c{\ddot{X}}_c={F}_f-{F}_i\end{array}\right. $$
(1)

where

$$ {F}_f=\left\{\begin{array}{c}\begin{array}{c}-\operatorname{sign}\left({V}_c\right)\cdot \mu \left({M}_m+{M}_c\right)\mathrm{g},\kern9.75em {V}_c\ne 0\\ {}\operatorname{sign}\left({F}_i\right)\cdot \mu \left({M}_m+{M}_c\right)\mathrm{g},\kern1em {V}_c=0,\mid {F}_i\mid \ge \mu \left({M}_m+{M}_c\right)\mathrm{g}\end{array}\\ {}{F}_i,\kern11.25em {V}_c=0,\mid {F}_i\mid \le \mu \left({M}_m+{M}_c\right)\mathrm{g}\end{array}\right. $$
(2)
$$ {F}_i=\left\{\begin{array}{c}{F}_e-{F}_1-c\left({V}_m-{V}_c\right)-{F}_3,\kern2em {X}_m-{X}_c\le -{G}_3\ \\ {}{F}_e-{F}_1-c\left({V}_m-{V}_c\right),\kern1.5em -{G}_3\le {X}_m-{X}_c\le {G}_2\\ {}{F}_e-{F}_1-c\left({V}_m-{V}_c\right)-{F}_2,\kern3em {X}_m-{X}_c\ge {G}_2\ \end{array}\right. $$
(3)
$$ {F}_e(t)=\left\{\begin{array}{c}{P}_d,\kern2.75em t\in \left[n\frac{1}{f},n\frac{1}{f}+D\frac{1}{f}\right]\\ {}0,\kern1em t\in \left(n\frac{1}{f}+D\frac{1}{f},n\frac{1}{f}+\frac{1}{f}\right)\end{array}\right. $$
(4)
$$ \left\{\begin{array}{c}{F}_1={k}_1\left({X}_m-{X}_c+{G}_1\right)\ \\ {}{F}_2={k}_2\left({X}_m-{X}_c-{G}_2\right)\\ {}{F}_3={k}_3\left({X}_m-{X}_c+{G}_3\right)\ \end{array}\right. $$
(5)

where n is the period number and P df, and D are the amplitude, frequency, and duty cycle ratio of the excitation signal, respectively. Moreover, in order to compare the variable speed of the vibro-impact capsule, its average velocity is calculated as follows:

$$ {v}_{\mathrm{avg}}=\frac{f}{n}\left({X}_c\left(n\frac{1}{f}\right)-{X}_c(0)\right) $$
(6)

3 Optimization Design

The precise control of both the speed and the direction for the capsule movement in uncertain small-bowel circumstance is a challenging task. For such a purpose, to better describe the dynamic responses of the capsule, seven variable speed steps are proposed, including fast backward and forward movements, medium-speed backward and forward movements, slow backward and forward movements, and hover movement under gastrointestinal motility. In addition, for a given capsule system, the excitation signal is convenient to be adjusted; hence, the optimization parameters consist of the frequency (f), amplitude (P d), and duty cycle ratio (D) of the excitation square signal. Moreover, the uncertainty of the friction coefficient (μ) due to the varied structure and lubrication of the practical small bowel is also considered as an environment variable. The purpose of optimization is to find the best combination of parameters within the respective ranges of the given parameters to make the capsule move with the speed closest to the proposed speed step. To conduct the speed optimization, the dynamic model built in MATLAB is introduced into Isight, since Isight integrates a group of optimization algorithms which can be redesigned and combined to complete an optimization task with high efficiency and high accuracy.

3.1 Optimization Algorithms and Flow Path

As aforementioned, there are three optimization parameters, one environment variable, and one optimization objective; hence, this is a multiparameter and single-objective optimization. Furthermore, in order to secure the reliability of the obtained optimization solutions in uncertain practical small-bowel environmental, parameter perturbations should be considered accompanying with the optimization. Therefore, a combination of the optimization algorithms is considered. Specifically, Multi-Island Genetic Algorithm (MIGA) is chosen to conduct the optimization, while Monte Carlo algorithm is applied in measuring the degrees of reliability of the optimal solutions provided by MIGA. Moreover, both the MIGA and the Monte Carlo method are driven by the Six Sigma algorithm which secures that all the confirmed optimal solutions satisfy a predefined minimal degree of reliability, which is set as 99% in this present work, and finally, the steady optimization designs can thus be extracted from massive parameter combinations. The flow path of this combined optimization is illustrated in Fig. 2.

Fig. 2
figure 2

Flow chart of the combined optimization algorithms

The detailed optimization model for this combined optimization algorithms can be introduced as follows:

$$ {X}_L+\Delta X\le X\le {X}_U-\Delta X\vspace*{-17pt} $$
(7)
$$ {Z}_L\le Z\le {Z}_U\vspace*{-10pt} $$
(8)
$$ \mathrm{Lower}\ \mathrm{limit}\le G={\mu}_Y\left(X,Z\right)+n{\sigma}_Y\left(X,Z\right)\le \mathrm{Upper}\ \mathrm{limit}\vspace*{-17pt} $$
(9)
$$ \operatorname{Minimize}\ F\left({\mu}_Y\left(X,Z\right),{\sigma}_Y\left(X,Z\right)\right)=\left[{\left({\mu}_Y\left(X,Z\right)-M\right)}^2-{\sigma}_Y{\left(X,Z\right)}^2\right] $$
(10)

where X represents the design variables, including the frequency, amplitude, and duty cycle ratio of the excitation square signal, and X L, X U, and ±∆X are the lower and upper limits and the fluctuation range for the design parameters, respectively. Z represents the environmental variable, namely, the uncertainty of the friction coefficient in the small bowel; Z L and Z U are its lower and upper limits. G is the constraint condition, where the accepted velocity range for the capsule movement in each optimization case can be set. μ Y(X, Z) and σ Y(X, Z) represent the average velocity of the capsule and its standard deviation, respectively. n is the number of sigma; when n = 6, the reliability of the optimization result is the highest; hence, this method is called Six Sigma algorithm. F is the objective function, and M is the target speed of the capsule; hence, the purpose of the optimization is to make the capsule speed be close to the proposed speed step.

3.2 Optimization Case: Forward Movement with Medium Speed

The optimization case for the capsule moving forward with medium speed (5 mm/s) is taken as an example to introduce the whole optimization process. Primarily, all the parameter ranges for the environmental variable and the three optimization parameters are listed in Table 2. In particular, the optimized Latin square method is applied to build a uniform distribution for the uncertainty friction coefficient, which is an array with 50 different friction coefficients whose valves are within 0.2 and 0.5. Furthermore, the lower and upper boundaries for the capsule speed are set as 0.1 mm/s and 10 mm/s, respectively; namely, as a fundamental requirement, the capsule should keep moving forward. Based on the optimization flow built in Isight (see Fig. 3a), in total, 50 combinations of the design parameters were tested, and for each combination, 50 different friction coefficients were simulated; eventually, the average velocity for such combination under the 50 different friction coefficients was calculated. The variations of both the three design parameters and the obtained average velocity of capsule are shown in Fig. 4. From Fig. 4, the average velocity of the capsule cannot be stabilized exactly as 5 mm/s; however, if the design parameters shown in Table 3 are used to excite the capsule system, an approximate speed of 4.5840136 mm/s can be obtained, which can be accepted as the medium speed for the capsule moving forward.

Table 2 Parameter settings for optimization
Fig. 3
figure 3

Optimization by integrating Isight and MATLAB. (a) Combination of optimization algorithms; (b) reliability verification of the obtained optimal solution

Fig. 4
figure 4

Variations of the parameters and the capsule speed in the optimization process and the green point in each subplot corresponds to the optimal solution

Table 3 Result of optimization

Subsequently, both the variation range of the friction coefficient and the boundaries of the capsule speed are kept to be consistent with that in the optimization process, while the optimization parameters are set to fluctuate slightly near the obtained optimal result; see Table 4. Based on the flow path for the reliability verification shown in Fig. 3b, 1000 combinations of the optimization parameters, whose distributions are shown in Fig. 5, are simulated numerically to check whether the capsule speed crosses the defined boundaries 0.1 mm/s or 10 mm/s. The obtained distribution of the capsule speed is displayed in Fig. 6, and the corresponding statistical result is listed in Table 5, where the reliability for the capsule moving forward is verified as 100%, since, when setting the excitation signal as the obtained optimal combination of parameters, the minimal velocity is around 0.51 mm/s; moreover, the average velocity is 4.1 mm/s which is still close to the predefined medium speed (5 mm/s).

Table 4 Parameter settings for reliability verification
Fig. 5
figure 5

Distributions of parameters for reliability verification

Fig. 6
figure 6

Distributions of average velocity of capsule for reliability verification

Table 5 Results of reliability verification

3.3 Optimization Results

By using the same way introduced in Subsection 3.2, the proposed seven speed steps are optimized one by one, and the obtained results are listed in Table 6. Specifically, according to the optimization of excitation parameters for the vibro-impact capsule, five speed steps for the capsule moving steady under uncertain small-bowel environment are explored. However, given the current excitation parameter ranges, the steady slow and fast-forward movements cannot be achieved by the studied capsule. Therefore, if the rest two speed steps are required for the practical application of the capsule system, both the modification of the structure parameters and the broader ranges of control parameters deserve to be tried.

Table 6 Optimization results of seven speed steps for the capsule movement

According to the obtained parameter combinations for five different speed steps, the numerical simulations are conducted to observe the changes of the capsule speed. For all the five cases, the friction factor is set the same as 0.2293. Eventually, the simulated results are shown in Fig. 7 where the corresponding velocities of the capsule are (a) v avg= −8.3068 mm/s for fast backward, (b) v avg= −3.3368 mm/s for medium backward, (c) v avg= −0.6142 mm/s for slow backward, (d) v avg= 0 mm/s for hover, and (e) v avg= 4.28 mm/s for medium forward. All the obtained five velocities of capsule are close to the predefined targets of speed steps.

Fig. 7
figure 7

Results of numerical simulations with different parameter combinations for five different speed steps: (a) fast backward, (b) medium backward, (c) slow backward, (d) hover, and (e) medium forward

4 Concluding Remarks

  1. 1.

    In this paper, a graded variable speed design for a self-propulsion capsule system was carried out, in which three types of movements, including forward, backward, and hover, were considered; meanwhile, the fast, medium, and slow speeds were classified for both the forward and backward movements of the capsule; thus, in total, seven speed steps were defined for the further optimization.

  2. 2.

    According to the seven speed steps defined in this paper, the optimization was conducted via the combination of the MATLAB and Isight software. Specifically, three controllable parameters, including frequency, amplitude, and duty cycle ratio, were optimized, and the influence of the friction coefficient in the uncertain small-bowel environment was also introduced in the optimization process. Finally, it was demonstrated that the capsule can achieve five speed steps: fast backward, medium speed backward, slow backward, hover, and medium speed forward; however, it was also found that for the given structure parameters of the capsule, the stable fast-forward movements and the stable slow forward movements cannot be obtained by the optimization of the three controllable parameters.

  3. 3.

    In future work, by resorting on the guidance of the numerical simulation conducted in this paper, the corresponding variable speed steps will be experimentally tested, and the optimization design method will also be improved according to the obtained experimental results.