<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Creating methods and algorithms of adaptive control in biotechnical complexes of corrective action on human respiratory system</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>N V Ivakhno</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>S I Zykin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Federal State Budgetary Educational Institution of Higher Education “Tula State University”</institution>
          ,
          <addr-line>Lenina Ave., 92, Tula, Russia, 300012</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <fpage>111</fpage>
      <lpage>118</lpage>
      <abstract>
        <p>The article describes methods of adaptive control of the preset resistance in the respiratory complexes with regard to changes in the human condition based on the results of identifying the respiratory system parameters, as well as on the results of modeling of the respiratory system presented as a combination of airway generations, the last of which ends with alveoli. The presented algorithms lay the basis for building intelligent medical systems involving adaptive corrective action.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1.Introduction.</title>
      <p>
        Creating adaptive training complexes is a rather complicated theoretical problem [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1,2,3</xref>
        ]. That is
due first of all to the complexity and variability of the processed signals. Since the equipment
produces a controlling effect, it is necessary to simultaneously diagnose the state of the person’s
respiratory system, process the results in real time, and adjust the load. The solution to this problem is
to create a well-validated methodology and to determine the technical parameters of adaptive-type
corrective action equipment having new qualitative characteristics in order to ensure the full diversity
of applications in curative, restorative and sports medicine.
      </p>
      <p>For the load on the respiratory muscles to be selected, the patient breathes through the complex,
which is operating in various modes (Figure 1).</p>
      <p>
        In the process of breathing, the adjustable resistance in the breathing tube connected to the
mouthpiece is used to measure by means of sensors the pressure in the breathing tube P(t), which is
then transmitted to the monitoring and control unit through the analog signal processing unit [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        As a result of analysis of the pressure curve, the input parameters of detection (amplitude of the
useful signal as, variance σ2 and the average noise value a0) are adjusted for implementing the signal
processing model with the purpose of timely recognition of respiratory activity and ensuring a high
degree of synchronization between the person’s respiration and the complex [
        <xref ref-type="bibr" rid="ref4 ref5 ref6">4,5,6</xref>
        ].
      </p>
      <p>MP – mouthpiece, PS – system of pressure sensors; AR – adjusted resistance preset by changing
cross-sectional area; BT – breathing tube;
ASP – analog signal processing unit; ACTD – actuating device;</p>
      <p>TS – technical self-diagnosis unit
Figure 1. A generalized functional structure diagram for complexes of corrective action on
respiratory system.</p>
      <p>
        The respiratory system condition diagnosis unit that employs parametric analysis methods is used
to generate control signal sent to the actuating device, which carries out the adjustment and adaptation
of the load (resistance/switching pressure) in the breathing circuit according to the predetermined law
and taking into account the patient’s individual condition and changes in it [
        <xref ref-type="bibr" rid="ref4 ref5 ref6 ref7">4,5,6,7</xref>
        ]. Also, for the
purposes of long-term prediction and for determining limitations on the action, mathematical modeling
of processes in the respiratory system is performed.
2. The criterion used to determine the type of controlling action on the basis of diagnostic
matrices.
      </p>
      <p>
        In this structure, the self-diagnosing circuit protects the actuating device from overload, analyzing the
temperature t and the current I of its electric motor, and allows the failure to be extrapolated by
correcting the controlling action. At the same time, the pressure in the breathing tube is analyzed
during operation both in the partial load and the peak load mode, which prevents barotrauma [
        <xref ref-type="bibr" rid="ref3 ref8">3, 8</xref>
        ].
The anticipatory alert power assessment unit makes it possible to predict a decrease in or failure of the
supply voltage level, to save current data in a timely manner, and to ensure the restart and recovery of
the system.
      </p>
      <p>
        Thus, the variable parameters characterizing the state of the person’s respiratory system when
exposed to different resistances and at different switching pressures R1,..., RN , P1,..., PN are as
follows: inspiration / expiration phase duration T1,...,TN , slope angle of the approximation curve at the
first observation stage α1,.., αi .., α N , slope angle for the approximation function decrease βi (for load
in the form of resistance), the coefficient of the approximation function in the third observation
interval βp1,...,βpN (for load in the form of switching pressure), the rise time of the pressure curve to
the maximum tн1,...,tнN , characteristics of the pressure curve during free respiration α0,βp0,tн0,T0
(load by switching pressure), α0 ,β0 ,tн0 ,T0 (load by resistance) [
        <xref ref-type="bibr" rid="ref1 ref6 ref7 ref8">1,6,7,8</xref>
        ].
      </p>
      <p>
        Then, the generalized matrices characterizing the state of the person and the level of their training
when exposed to resistance and pressure are described as follows:
β0
.
βi
βN
where с1, c2, c3, c4
determined by experts; j is the variable that determines the type of action, k is the parameter number
( k = 0,..., S −1 , S is the number of parameters, i is the action level i = 1,..., N , and i* = i − 1 is the
previous action level) [
        <xref ref-type="bibr" rid="ref4 ref5 ref9">4,5,9</xref>
        ].
      </p>
      <p>Then, the task of finding the method of action by load in the breathing circuit in the admissible set
of possible options will be reduced to finding such parameters of controlling the actuating device that
will provide the best value of the target vector function:
 S∑−1 ck (M ik − M2Zik )2 , при j = 0
 k =0 MZik

Qi = 

 S −1 (M1ik − MZ1ik )2
 ∑ ck , при j = 1
 k =0 MZ1i2k
where MZik , MZ1ik are the matrices of the required characteristics of the human respiratory system
at the given load in the form of resistance and switching pressure, respectively.</p>
      <p>
        Adaptation will be carried out in two circuits: the 1st circuit is responsible for the work of the
mathematical model of the respiratory system and the apparatus, the 2nd circuit is responsible for
presetting the initial load and for the choice of the value at which the smallest deviation from the
reference characteristic is achieved [
        <xref ref-type="bibr" rid="ref1 ref10 ref4">1,4,10</xref>
        ].
3. The mathematical model of the biotechnical complex “corrective action equipment –
human respiratory system”.
      </p>
      <p>
        For the monitoring and timely adjustment of the load, we will consider a mathematical model of the
biotechnical complex “corrective action equipment – human respiratory system” [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ].
      </p>
      <p>
        In this model, the structure of the lungs was represented as a set of generations of the airways
(channels), the latter of which ends in alveoli. It was assumed that the airways branch out according to
the principle of correct dichotomy, that is, two conjugates have the same size and are branched from
their parent at equal angles; the empirical equations of the air channels of the average person were
taken into account [
        <xref ref-type="bibr" rid="ref11 ref12 ref6">6,11,12</xref>
        ].
      </p>
      <p>The mathematical model of the biotechnical complex “corrective action equipment – human
respiratory system” is represented by three main blocks:
- equations of the gas dynamics of the lungs and of the dynamics of the muscles:

 dPdl0t (t ) = G0 (t )⋅ RbМ⋅T *V0−(tP)l0 (t )⋅ dVd0t(t ) ,

...

 dPldimt (t ) = Gim (t )⋅ RbМ⋅T *Vi−mP(tl)im (t )⋅ dVidmt (t ) ,

...

 dPlndtm (t ) = Gnm (t )⋅ RbМ⋅TVn−mP(tln)m (t )⋅ dVdnt(t ) ,
λ ⋅ ρ ⋅ d d2tu2(t ) = Plnm (t ) − Pa −  E1 ⋅ uD(tc) − σ1(t ) ⋅ rλ(t ) − k ⋅ dud(tt ) ⋅ r(t λ)Dс ,

λ ⋅ ρ ⋅ d d2tw2(t ) = Plnm (t ) − Pa −  E2 ⋅ wL(t ) − σ2 (t ) ⋅ 2r(rt)2λ(t+)λ2 − k ⋅ dwdt(t ) ⋅ 2rr(t2)λ(t +)Lλ2 ;
- equations of medium mass transfer rates by the generation level:
 M
Gi (t ) =
 Rb ⋅ T * ⋅ R*im



</p>
      <p>M
G0 (t ) =
+ 2(Plim+1(t ) − Plim (t ))2 ⋅ sign(Plim+1(t ) − Plim (t )),


⋅ (Pkm (t ) − Pl0 (t ))2 ⋅ sign(Pkm (t ) − Pl0 (t ))+
⋅ (Plim−1(t ) − Plim (t ))2 ⋅ sign(Plim−1(t ) − Plim (t )) +






where</p>
      <p>Rb ⋅T * ⋅ R*0
+ 2(Pl1(t ) − Pl0 (t ))2 ⋅ sign(Pl1(t ) − Pl0 (t ));


Vim(t) is the current volume of the im-th channel;
nm is the last level of the airways
( nm = 23 ); Rb is Boltzmann’s constant; М is the molar mass of gas; Ωi (t ) is the volumetric flow
rate of gas in the i-th channel; Plim(t) is the pressure of gas in the im-th channel; Pkm(t) is the
pressure in the tube of the training apparatus; Pa is the atmospheric pressure; Pl0(t) is the tracheal
pressure; Pl1(t ) is the pressure at the 1st level of the airways (AW); u(t ) is the radial displacement of
the cylinder wall; Plnm(t) is the current pressure in the cylinder; σ (t) is the preset transverse
1
muscular tension; σ2(t) is the preset longitudinal muscular tension; λ is the thickness of the cylinder
wall; k is the viscosity coefficient of the material; E1 is the transverse modulus of elasticity of the
material; E2 is the longitudinal modulus of elasticity of the material; r(t) is the current inner radius of
the cylinder; Dс is the inner radius of the cylinder in undeformed state; ρ is the density of
environment element; w(t) is the longitudinal displacement of the face of the cylinder; L is the length
of the undeformed cylinder; R*im is the resistance of the im-th AW; Gim(t) is the mass air flow rate
in the i-th AW; G0 (t ) is the mass air flow rate in the trachea; the process of respiration occurs at a
constant body temperature T * = 310 K ;
- the model of automatic switching of respiratory muscles, implemented by means of setting special
functions Θ1(t ) , Θ2 (t ) , Θ3(t ) and Θ4 (t ) , which provide for automatic activation of muscles when
the lungs in the process of expiration achieve the minimum preset volume Vmin and for disactivation
thereof at the moment when the lungs achieve the maximum preset volume Vmax :
10
−5 dΘ1(t ) </p>
      <p> dt  = (1 + Θ2 (t ) − Θ1(t ))×
× (ς(δV − Vmin − V (t ) )+ ς(δV − Vmax − V (t ) )),
10−5 dΘ2 (t ) </p>
      <p> dt  = (Θ1(t ) − Θ2 (t ))×
× (1 − ς(δV − Vmin − V (t ) )− ς(δV − Vmax − V (t ) )),
dΘ3(t )</p>
      <p>dt
0,5
0,001
dt
dΘ4 (t ) = 0,5 + 0,5 ⋅ (− 1)ceil(Θ1(t )−Θ4 (t )),
= Θ4(t)⋅ (1 − Θ3(t ))− 0,7 ⋅ Θ3(t )⋅ (1 − Θ4 (t )),</p>
      <p>ς(arg ) = 0,5 + 0,5 ⋅ sign(arg ) ,
where Θ1(t),Θ2(t), Θ3(t),Θ4(t) are unknown functions, δV is the absolute error of registering the
moment when the volumes become equal, ceil is the rounding function, ς(arg ) is the switching
function (if the argument is positive, it equals 1, if the argument is negative, it equals 0).</p>
      <p>
        The developed mathematical description of the mass transfer process in the complex system of
branching pathways ensures a higher level of detail of the respiration process on the whole, making it
possible to study the influence of any changes in the structural level of a specifically selected
generation, to the extent of actually assigning given properties to specific airways [
        <xref ref-type="bibr" rid="ref6 ref7 ref8">6,7,8</xref>
        ].
      </p>
      <p>
        The obtained system of ordinary nonlinear differential equations was solved numerically using
Rosenbrock method. An analysis of the experimental graphs of changes in the pressures, volumetric
and mass flow rates described in [
        <xref ref-type="bibr" rid="ref12 ref6">6,12</xref>
        ] shows that the obtained results of modelling provide highly
accurate qualitative and quantitative reflection of the biomechanics of a number of processes
accompanying respiration. Consequently, this model can be used to analyze the adequacy of and to set
limitations on the preset adaptive loads on the respiratory system in various training modes using the
CACRS.
      </p>
      <p>A generalized structure diagram of the mathematical model is presented in Figure 2.
σ 1(t )
σ 2(t)
ζ (t)
ξ (t)
Kie,r</p>
      <p>Pkm(t)</p>
      <p>Vlu (t )</p>
      <p>Plnm (t )</p>
      <p>
        Pl0(t )
G 0 (t )
4. Algorithm of load adaptation based on the data of diagnostic condition matrices
The 2nd circuit operates in search mode with automatic load adjustment, as the parameters of
human respiratory system are changing (Figure 3); NA is the number of load alteration levels
[
        <xref ref-type="bibr" rid="ref11 ref12 ref3">3,11,12</xref>
        ].
a) b)
a – adjustment of load – resistance of the circuit;
      </p>
      <p>b – switching pressure adjustment</p>
      <p>Figure 3. A diagram of work of corrective action complexes adaptation algorithm (2nd circuit).</p>
      <p>Load correction based on changes in the target function is illustrated by the graph in Figure 4. On
the x-axis there is every step corresponding to presetting the load for the next inspiration/expiration</p>
    </sec>
    <sec id="sec-2">
      <title>5. Conclusions</title>
      <p>Based on the experimental and analytical assessment of changes in pressure parameters during
various types of action on the respiratory system, the problem of automated identification of indicators
characterizing the change in the condition of the human respiratory system when working with
corrective action complexes has been solved, and a set of algorithms providing timely self-adjustment
of the controlling action has been developed.</p>
      <p>The task of controlling the actuating device in real time with simultaneous complex signal
processing can be accomplished using high-performance microcontrollers.</p>
      <p>The above methods and algorithms are the basis for the development of a new class of medical
devices: automated complexes of corrective action on the human respiratory system ensuring adaptive
signal processing, modeling of biological processes, and real-time control of the actuating device,
which increases the efficiency of treating patients with bronchial asthma and chronic obstructive
bronchitis, as well as of rehabilitation programs in patients with movement disorders.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Ivakhno</surname>
            <given-names>N V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Merkulova</surname>
            <given-names>V</given-names>
          </string-name>
          2011
          <article-title>Respiratory muscles simulator Utility model patent No. 115668</article-title>
          .
          <string-name>
            <given-names>Russian</given-names>
            <surname>Federation</surname>
          </string-name>
          .
          <source>Priority date 20.09</source>
          .2011
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Kravtsova</surname>
            <given-names>N S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paringer</surname>
            <given-names>R A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Kupriyanov A V 2017</surname>
          </string-name>
          <article-title>Parallel implementation of the informative areas generation method in the spatial spectrum domain</article-title>
          <source>Computer Optics</source>
          <volume>41</volume>
          (
          <issue>4</issue>
          )
          <fpage>585</fpage>
          -
          <lpage>588</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2017-41-4-
          <fpage>585</fpage>
          -587
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Gaidel</surname>
            <given-names>A V</given-names>
          </string-name>
          <year>2016</year>
          <article-title>Matched polynomial features for the analysis of grayscale biomedical images</article-title>
          <source>Computer Optics</source>
          <volume>40</volume>
          (
          <issue>2</issue>
          )
          <fpage>232</fpage>
          -
          <lpage>240</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2016-40-2-
          <fpage>232</fpage>
          -239
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Ivakhno</surname>
            <given-names>N V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tyagin</surname>
            <given-names>D</given-names>
          </string-name>
          <source>2008 Artificial pulmonary ventilation machine Invention patent No. 2375034. Russian Federation. Priority date 04.06</source>
          .2008
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Ivakhno</surname>
            <given-names>N V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fedorov</surname>
            <given-names>S S</given-names>
          </string-name>
          <year>2014</year>
          <article-title>Principle of construction of mathematical model of process of signal processing in the detection of respiratory activity in systems of intellectual fitness effects</article-title>
          <source>Biotechnosphere</source>
          <volume>5</volume>
          (
          <issue>35</issue>
          )
          <fpage>19</fpage>
          -
          <lpage>22</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Ivakhno</surname>
            <given-names>N V</given-names>
          </string-name>
          <year>2015</year>
          <article-title>The structure and algorithm circuit self-diagnosis of the intellectual equipment of respiratory muscles</article-title>
          <source>Biotechnosphere</source>
          <volume>3</volume>
          (
          <issue>39</issue>
          )
          <fpage>40</fpage>
          -
          <lpage>44</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Chafonova</surname>
            <given-names>V G</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gazeeva</surname>
            <given-names>I V</given-names>
          </string-name>
          and
          <string-name>
            <surname>Tihomirova G V 2016</surname>
          </string-name>
          <article-title>Automatic control and digital correction of scale and rotation mismatch in stereo pairs</article-title>
          <source>Computer Optics</source>
          <volume>40</volume>
          (
          <issue>1</issue>
          )
          <fpage>112</fpage>
          -
          <lpage>121</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2016-40-1-
          <fpage>112</fpage>
          -120
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Ivakhno</surname>
            <given-names>N V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Antsibor</surname>
            <given-names>S V</given-names>
          </string-name>
          <year>2015</year>
          <article-title>Parametric analysis of respiration characteristics under the relay action Proceedings of the Tula State University</article-title>
          .
          <source>Technical sciences 5</source>
          (
          <issue>2</issue>
          )
          <fpage>78</fpage>
          -
          <lpage>84</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Gaidel</surname>
            <given-names>A V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zelter P M</surname>
            , Kapishnikov
            <given-names>A V</given-names>
          </string-name>
          and
          <string-name>
            <surname>Khramov</surname>
            <given-names>A G</given-names>
          </string-name>
          <year>2014</year>
          <article-title>Computed tomography texture analysis capabilities in diagnosing a chronic obstructive pulmonary disease</article-title>
          <source>Computer Optics</source>
          <volume>38</volume>
          (
          <issue>4</issue>
          )
          <fpage>843</fpage>
          -
          <lpage>851</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Ilyasova</surname>
            <given-names>N Yu</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Kupriyanov A V</given-names>
            and
            <surname>Paringer R A 2014</surname>
          </string-name>
          <article-title>Formation of features for improving the quality of medical diagnosis based on discriminant analysis</article-title>
          methods
          <source>Computer Optics</source>
          <volume>38</volume>
          (
          <issue>4</issue>
          )
          <fpage>851</fpage>
          -
          <lpage>856</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Smelkina</surname>
            <given-names>N A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kosarev</surname>
            <given-names>R N</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nikonorov</surname>
            <given-names>A V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bairikov</surname>
            <given-names>I M</given-names>
          </string-name>
          ,
          <article-title>Ryabov</article-title>
          K
          <string-name>
            <given-names>N</given-names>
            ,
            <surname>Avdeev</surname>
          </string-name>
          <string-name>
            <given-names>A V</given-names>
            and
            <surname>Kazanskiy N L 2017</surname>
          </string-name>
          <article-title>Reconstruction of anatomical structures using statistical shape modeling</article-title>
          <source>Computer Optics</source>
          <volume>41</volume>
          (
          <issue>6</issue>
          )
          <fpage>897</fpage>
          -
          <lpage>904</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2017-41-6-
          <fpage>897</fpage>
          -904
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Antsiperov</surname>
            <given-names>V E</given-names>
          </string-name>
          <year>2016</year>
          <article-title>Automatic target recognition for low-count terahertz images</article-title>
          <source>Computer Optics</source>
          <volume>40</volume>
          (
          <issue>5</issue>
          )
          <fpage>746</fpage>
          -
          <lpage>751</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2016-40-5-
          <fpage>746</fpage>
          -751
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>