Keywords

1 Introduction

Fecal incontinence is that the anal sphincter loses control capacity of fecal and gas discharge, which is a common clinical disease. There are a variety of treatments for fecal incontinence, including conservative treatment represented by controlling diet, surgical treatment represented by colostomy, and other treatments between them [1, 2]. But they all have some deficiencies. So bionic artificial anal sphincter system that do not change the body’s traditional defecation model came into being, which will greatly reduce the pain of patients with fecal incontinence [3].

At present, the diagnosis of rectal function are: digital rectal examination, proctoscopy, rectal pressure measurement, X-ray examination, CT, MRT and other methods [4]. However, there are more or less drawbacks. This article designs a new type of rectal function diagnosis model, which is characterized by the use of artificial anal sphincter system implanted in human body for intestinal pressure information in a real-time, sustained and convenient way. The one-dimensional signal is reconstructed into multidimensional by phase space reconstruction [5], and then the preprocessing of the signal is realized by using the improved FastICA. Finally, a series of further signal processing of the rectal pressure signal after pretreatment is used to realize the rectal function diagnosis. In addition, the effectiveness of the method is proved by simulation experiments.

2 The Principle of Rectal Pressure Signal Preprocessing

The rectal function diagnostic model relies on the platform of the artificial anal sphincter system and obtains rectal pressure information through the sensor located in the sensing bag around the rectum continuously. Since the signals we receive exist some Interference signals (breathing, muscle movement, noise, etc.) and various interference signals have independent sources. Therefore, this paper uses FastICA algorithm for rectal pressure signal pretreatment. For characteristic of the algorithm that the initial value is more sensitive, we adopt an improved fifteenth order convergence of the iterative algorithm [6]. FastICA algorithm requires multidimensional time series, but the signal measured is one-dimensional pressure signal. Thus, phase space reconstruction technology is adopted to rebuild the one-dimensional pressure signal to multi-dimensional. Rectal pressure signal preconditioning will lay the foundation for the realization of rectal function diagnostic model. The principle of rectal pressure signal preprocess is shown in Fig. 1.

Fig. 1.
figure 1

The principle of rectal pressure signal preprocessing

3 Algorithm Analysis of Rectal Pressure Signal Preprocessing

3.1 Phase Space Reconstruction

Phase space reconstruction is a method proposed by Takens to construct the phase space structure of the original system by one-dimensional time series. The delay coordinate method is commonly used. The selection of time delay τ and embedding dimension m is very important. In this paper, the embedded dimension and time delay automatic algorithm is used to reconstruct the one-dimensional pressure sequence [7]. The principle is as follows:

  1. (1)

    Set the pressure sequence as \( X = \left\{ {xi\left( t \right)} \right\} \), i = 1,2…N. Let \( m = m_{0} \) and \( \tau \) varies from small to large. Construct X as vectors {y i }, i = 1,2…M, \( y_{i} = \left( {x_{i} ,x_{i + 1} \ldots x_{{i + \left( {m - 1} \right)\tau }} } \right) \),\( M = N - (m - 1)\tau \). Then Calculate the average amount of displacement:

    $$ s\left( \tau \right) = \frac{1}{M}\sum\limits_{i = 1}^{M} {\sqrt {\sum\limits_{j = 1}^{m - 1} {\left( {y_{i + j\tau } - y{}_{i}} \right)^{2} } } } $$
    (1)

Next it will be derivative of τ. When the value is close to 0, the value of \( s\left( \tau \right) \) reaches the saturation.

Substitute the calculated τ into \( \Gamma _{\text{ - test}} \) to calculate the corresponding best m. Set \( z = f\left( {x_{1} ,x_{2} \ldots x_{m} } \right) + \gamma \). Give a value of m, and then reconstruct vectors space of X.

$$ \varepsilon_{i} = \left\{ {x\left( i \right),x\left( {\left( {i + 1} \right)\tau } \right), \ldots x\left( {\left( {i + m - 1} \right)\tau } \right)} \right\} $$
(2)
  1. (2)

    Set \( z_{i} = x\left( {\left( {i + m} \right)\tau } \right) \), i = 1,2..M. Create M groups of input, output vector pairs. Find the neighbor vectors of p in the vector space. Calculate

    $$ \left\{ \begin{aligned} dx\left( h \right) = \frac{1}{p}\sum\limits_{h = 1}^{p} {\frac{1}{M}} \sum\limits_{i = 1}^{M} {\left| {\varepsilon \left( {N\left( {i,p} \right)} \right) - \varepsilon \left( i \right)} \right|}^{2} \hfill \\ dz\left( h \right) = \frac{1}{p}\sum\limits_{h = 1}^{p} {\frac{1}{2M}} \sum\limits_{i = 1}^{M} {\left[ {z\left( {N\left( {i,p} \right)} \right) - z\left( i \right)} \right]}^{2} \hfill \\ \end{aligned} \right. $$
    (3)

Use linear interpolation \( dz = Adx +\Gamma \) to estimate the approximate value of \( \gamma \), Γ. Increase m, and then repeat (1). Calculate the corresponding the minimum value of the approximation of \( \tau \), \( \gamma \), where \( m \), \( \tau \) is the optimal value.

3.2 FastICA Algorithm

FastICA algorithm is presented by Hyvärinen et al., University of Helsinki, Finland [8]. In this paper, an improved FastICA algorithm based on the largest negative entropy is used. For the shortcoming of basic Newton iteration Fast ICA algorithm that is more sensitive to the initial value, the improved algorithm takes the modified form of the Fifth - order Newton iteration with better convergence rate [6].

Before carrying out the FastICA, data needs to be removed mean and whited.

$$ x = x^{{\prime }} - E\left\{ {x^{{\prime }} } \right\} $$
(4)
$$ E\left\{ {yy^{T} } \right\} = I $$
(5)

The objective function of Fast ICA algorithm based on negative entropy is:

$$ J(W) = \left[ {E\left\{ {G\left( {W^{T} Z} \right)} \right\} - E\left\{ {G\left( V \right)} \right\}} \right]^{2} $$
(6)

The algorithm estimates an independent component of the source signal by maximizing the objective function. And the maximum value of J (W) is obtained at the extreme point of E{G(WTZ)}. According to the Lagrangian condition, the extreme value of E{G(WTZ)} can be obtained by solving the following condition under the constraint condition of E{(WTZ) 2} = W 2 = 1:

$$ E\left\{ {Zg\left( {W^{T} Z} \right)} \right\} + \beta W = 0 $$
(7)

\( \beta = E\left\{ {W_{0}^{T} Zg\left( {W_{0}^{T} Z} \right)} \right\} \), W0 is the initial value of W, and g (.) is the derivative of G (.).

The improved Newton iteration method is as follows:

$$ \left\{ {\begin{array}{*{20}l} {x^{*}_{n + 1} = x_{n} - \frac{{f\left( {x_{n} } \right)}}{{f^{{\prime }} \left( {x_{n} } \right)}}} \hfill \\ {z_{n} = x_{n} - \frac{{2f\left( {x_{n} } \right)}}{{f^{{\prime }} \left( {x^{*}_{n + 1} } \right) + f^{{\prime }} \left( {x_{n} } \right)}}} \hfill \\ {y_{n} = z_{n} - \frac{{f\left( {z_{n} } \right)}}{{f^{{\prime }} \left( {x^{*}_{n + 1} } \right)}}} \hfill \\ {x_{n + 1} = y_{n} - \frac{{f\left( {y_{n} } \right)f^{{\prime }} \left( {y_{n} } \right)}}{{f^{{{\prime 2}}} \left( {y_{n} } \right) - f^{{\prime \prime }} \left( {y_{n} } \right)f\left( {y_{n} } \right)/2}}} \hfill \\ \end{array} } \right. $$
(8)

The improved iterative scheme is at least 15th order convergent, and the iterative efficiency is much larger than the Newton iteration method. Use the modified Newton iteration method to solve Eq. (7):

$$ W_{k + 1} = W_{1} - \frac{{\left[ {E\left\{ {Zg\left( {W_{1}^{T} Z} \right)} \right\} + \beta W_{1} } \right]\left[ {E\left\{ {g^{{\prime }} \left( {W_{1}^{T} Z} \right)} \right\} + \beta } \right]}}{{\left[ {E\left\{ {g^{{\prime }} \left( {W_{1}^{T} Z} \right)} \right\} + \beta } \right]^{2} - \frac{{\left[ {E\left\{ {g^{{\prime \prime }} \left( {W_{1}^{T} Z} \right)} \right\}_{1} } \right]\left[ {E\left\{ {Zg\left( {W_{1}^{{^{T} }} Z} \right)} \right\} + \beta W_{1} } \right]}}{2}}} $$
(9)

Among them,

$$ \left\{ {\begin{array}{*{20}l} {W_{1} = W_{2} - \frac{{E\left\{ {Zg\left( {W_{2}^{T} Z} \right)} \right\} + \beta W_{2} }}{{E\left\{ {g'\left( {W_{3}^{T} Z} \right)} \right\} + \beta }}} \hfill \\ {W_{2} = W - \frac{{2\left[ {E\left\{ {Zg\left( {W^{T} Z} \right)} \right\} + \beta W} \right]}}{{\left[ {E\left\{ {g^{{\prime }} \left( {W_{3}^{T} Z} \right)} \right\} + \beta } \right] + \left[ {E\left\{ {g^{{\prime }} \left( {W^{T} Z} \right)} \right\} + \beta } \right]}}} \hfill \\ {W_{3} = W - \frac{{E\left\{ {Zg\left( {W^{T} Z} \right)} \right\} + \beta W}}{{E\left\{ {g^{{\prime }} \left( {W^{T} Z} \right)} \right\} + \beta }}} \hfill \\ \end{array} } \right. $$
(10)

4 Experimental and Simulation Analysis

In order to validate the improved FastICA method in this paper, simulation experiments are carried out. First, four common non-Gaussian signals are generated: sine wave, square wave, sawtooth wave, and a random noise. They are expressed as: sine wave signal s1 = 2 * sin (0.02 * pi * n); square wave signal s2 = 2 * square (100 * t, 50); sawtooth signal (1, –1, n); s3 = 2 * [a, a, a, a, a, a, a, a]; random noise is s4 = rand (1, N).The waveform of the source signal is shown in Fig. 2.

Fig. 2.
figure 2

Source signal waveform

The sinusoidal signal is viewed as a valid signal, and the others are viewed as three kinds of interference signals. Mix the four signals into one-dimensional signals, as shown in Fig. 3. The mixing matrix is A = [0.7847 0.5379 0.0529 0.0891].

Fig. 3.
figure 3

One-dimensional mixed signal

The obtained one-dimensional mixed signal is phase-reconstructed to obtain the reconstructed 4-D signal as shown in Fig. 4.

Fig. 4.
figure 4

Phase space reconstructed signal

Use the improved FastICA algorithm described above to obtain the Separation signal as shown in Fig. 5. As can be seen from the figure, the output of the classification of the waveform roughly unchanged, proving a better separation effect and achieving the desired purpose. The output order of the waveform of the components after the remolding changed and the amplitude and phase of each component changed contrast to the source signal. This is determined by the inherent characteristics of the ICA algorithm [6]. But we generally pay more attention to the waveform of the signal and the amplitude of the change doesn’t affect our extraction and analysis.

Fig. 5.
figure 5

Improved FastICA separation results

The reconstructed signal is processed by using the basic FastICA algorithm to obtain the separation result as shown in Fig. 6. From Figs. 5 and 6, we can see that the two algorithms can separate the various components, and the separation effect is similar. Then, each algorithm is run five times under the condition that the initial vector is indefinite. The number of iterations and the running time of the two algorithms are compared and the results are shown in Table 1. It can be seen from the table that the improved FastICA algorithm has less iterations. The iterative stability is better and the running time has been reduced. It is proved that the improved algorithm is insensitive to the initial value and the effect is better.

Fig. 6.
figure 6

Basic FastICA separation results

Table 1. Comparison of the number of iterations and run time of two algorithms

And then the real human rectal pressure signal is used for the validation of the improved the FastICA algorithm. The data used in this paper is from the pressure data collected in tester whose gut is healthy by biological parameters telemetry capsule invented by Shanghai Jiao tong University [9]. Select the fragment of one of the signal sequences as shown in Fig. 7 as the mixed signal to be separated.

Fig. 7.
figure 7

Rectal mixed signal

According to the phase space reconstruction technique proposed above, the multidimensional pressure sequence reconstruction is carried out. Experiments show that m = 3, \( \tau = 5 \) are the optimal values, and the effect of reconstruction is the best. The reconstructed observation signal is shown in Fig. 8. The reconstructed multidimensional pressure sequence is separated by FastICA, and the results of the separation are shown in Fig. 9. It can be seen from the figure that the improved FastICA algorithm achieves the separation of the signal. The first component has the main trend and characteristics of the corresponding parent signal and it should be the pressure component caused by rectal contraction. The other two components should be abdominal muscle contraction, respiratory movement. The improved FastICA algorithm achieves the preconditioning of rectal pressure signals, laying the foundation for further online diagnosis of rectal function by further analysis and processing of pressure signals.

Fig. 8.
figure 8

The reconstructed observation signal

Fig. 9.
figure 9

Rectal pressure signal separation results

5 Conclusion

In order to achieve on-line, continuous detection of rectal function, using artificial anal sphincter system to collect the patient’s rectal pressure signal for analysis is proposed. The adaptive pressure signal is reconstructed into multidimensional by phase space reconstruction technique, and then the improved FastICA algorithm is used to preprocess the signal. Finally, the simulations of the simulated data and real data are analyzed. The results show that the modified method can achieve the purpose of pretreatment, laying the foundation for the diagnosis of rectal function.