<!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>Application of case-based method to choose scenarios to resolve emergency situations on main gas pipeline</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Kozaev A.T.</string-name>
          <email>artemkozaev@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Saleh H.M.</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexandov D.V.</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Buhvalov I.R.</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dr.Tech.Sci, Professor of National Research University Higher School of Economics, Professor of Bauman Moscow State Technical University</institution>
          ,
          <addr-line>Bauman MSTU</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>MSc in Software Engineering, Vladimir State University named after Alexander and Nikolay Stoletov</institution>
          ,
          <addr-line>VlSU</addr-line>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>PhD, Associate Professor of National Research University Higher School of Economics (NRU HSE), Associate Professor of Vladimir State University named after Alexander and Nikolay Stoletov</institution>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>PhD, Federal State Unitary Enterprise Federal Research and Production Center "Scientific- Research Institute of Measuring Systems named after Y.E. Sedakov"</institution>
          ,
          <addr-line>NIIIS</addr-line>
        </aff>
      </contrib-group>
      <fpage>120</fpage>
      <lpage>126</lpage>
      <abstract>
        <p>The article is dedicated to application of case-based method in the problem of choosing correct suitable scenarios to resolve emergency situations occurring on main gas pipeline. The result of the work is the algorithm for choosing scenarios with the given level for suitable solutions to resolve emergency situations using base of cases describing emergency situations on main gas pipeline.</p>
      </abstract>
      <kwd-group>
        <kwd>main gas pipeline</kwd>
        <kwd>emergency situation</kwd>
        <kwd>pipeline rapture</kwd>
        <kwd>casebased method</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>In short, gas transportation system consists of linear part, compressor station and
underground gasholders (sometimes).</p>
      <p>
        On the linear part of the main gas pipeline (MGP), some emergency situations (ES)
may occur. Such as [
        <xref ref-type="bibr" rid="ref10 ref3">3, 10</xref>
        ]:
• drastic change in sensor readings;
• valves malfunction;
• unauthorized rearrangement of valves;
• emergency situations in the management;
• bursting in the linear part of the pipeline;
• ES on the compressor station territory.
      </p>
      <p>
        Bursting in the linear part of the pipeline is the most dangerous situation. Subsequent
leakage of a large gas volume (millions of cubic meters) can lead to human casualties,
damage natural resources and the environment, and can pose enormous economic
losses. [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ]
      </p>
      <p>In the case of bursting of the MGP linear part, it is necessary to determine the
location of the gas pipeline rupture (the pipe run and the kilometer), before the elimination
of the ES is initiated. Immediately after the rupture detection, it is necessary to start
looking for the solution to this problem and a way to resolve this emergency situation.</p>
      <p>Scenario generation algorithms for finding solutions in emergency situations make
scenarios based on the MGP configuration and the location of the main cranes and
jumper cranes, i.e. based only on static data. However, the condition of the MGP
changes over time. Opening or closing of the particular pipeline crane may be
impossible at a certain time, because the ability of turning the crane depends on the
difference in pressure in the pipe sections located before and after this crane (the turn of the
crane is impossible if the difference in pressure values exceeds 0.5 kgf / cm2).
Solution or advice to change state of MGP should be proposed to dispatcher as a result of
algorithm. Changes of MGP state should be applied through changes of state of
cranes (open/close). Short scheme of algorithm is presented in the figure 1.</p>
      <p>Different sets of main cranes and jumper cranes are available for opening and
closing at different times because of the unstable values of the MGP pressure sensors, in
particular, when the pipe run is bursted. Thus, not all scenarios can be available from
the set of localization and circumvention scenarios obtained by analyzing the MGP
graph.</p>
      <p>
        Turning any crane takes some time. The crane using in specific scenario which is
available for rotation at the moment can become unavailable after a certain time, and
this moment can occur earlier than the dispatcher will finish the crane turning. After
that, this crane can still be unavailable for a certain time (which may be too long in
terms of the required speed of elimination of the ES associated with the rupture). In
this case, the scenario becomes unsuitable for use. In the article, it’s proposed to
represent knowledge in the form of cases as a base of algorithm to form scenarios Case
based methods fits well because emergency situations have common signs and have
the nature of precedents. General case-based method to find precedents for specific
ES was proposed by Buhvalov I.R. and Kokorin A.A. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]
      </p>
      <p>Beginning</p>
      <p>Input of
initial data,
including
coordinates
of MGP
rupture
Generation
of possible
scenarios
to solve
emergency
situation</p>
      <p>Ending</p>
      <p>Generation of scenario to
avoid pipe section before and</p>
      <p>after pipe rupture
Generation of scenario to
change flow of the gas
through parallel pipes near
localized section with rupture
с – number of possible solutions to resolve scenario.</p>
      <p>Base of cases stores known scenarios to solve emergency situations that occured
before. The data in base of cases can contain historical data about the results of
applying these scenarios as well. The solution proposed in the scenario is considered
acceptable if the emergency situation is significantly similar to the precedent.</p>
      <p>
        If emergency situation does not have an acceptable solution in the use case base, it
should be eliminated using known algorithms to solve emergency situations. [
        <xref ref-type="bibr" rid="ref12 ref14">12, 14</xref>
        ]
      </p>
      <p>
        Descriptions of ES includes information about coordinates of MGP rupture and
state of MGP in that moment. State of MGP includes information about state of
cranes [
        <xref ref-type="bibr" rid="ref11 ref7">7, 11</xref>
        ].
      </p>
      <p>It was described algorithm to find acceptable scenarios among a variety of different
combinations. The algorithm determines the applicability of scenarios in the
conditions of a given ES taking into account various combinations of states on the MGP.</p>
      <p>Since it is difficult to determine full compliance of the precedent to this ES, it is
necessary to establish following:
1. criteria on which it is possible to determine the coefficient of conformity of a
given ES to a particular precedent
2. weights, which determine the degree of significance of the individual elements
included in the description of the individual ES
3. the necessary degree of conformity of the ES to the precedent for the correct
decision-making on the elimination of the ES</p>
      <p>
        State of the four-way couplings of the MPG determine the signs of an ES. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] It is
necessary to generate a comparison matrix for signs of ES. The number of signs is
defined as n. The matrix has the size n x n.
      </p>
      <p>One element of this matix eij is defined as:</p>
      <p>, ( ≠
= 0, ( =
) ∧ ( ≠
) ⋁ ( =
)
)
– four-way coupling on which rupture occurred, and – distance from
fourway coupling i and j to four-way coupling .</p>
      <p>To calculate the weight that determines the degree of significance of the elements,
the following formula is used:
− 1
N – count of four-way couplings, j – number of the element.
,</p>
      <p>When choosing a certain precedent, it is necessary that the four-way coupling
indicated in the description of the use case correspond to the four-way coupling
corresponding to the rupture given in the description of the specific ES. It is also necessary
that the states of the cranes on the MGP match states defined in the description of the
use case.</p>
      <p>It is necessary to define coefficient kc (0 ≤ kc ≤1) which determines the required
degree of correspondence of the ES to the precedent.</p>
      <p>
        After determining the coefficient of compliance, the matrix elements of the MPG
and a set of use cases and ES – tests are conducted to determine the most appropriate
precedent for each given ES. [
        <xref ref-type="bibr" rid="ref13 ref9">9, 13</xref>
        ] For each of the test results it is necessary to
check that the degree of compliance is above the minimum of specified degree of
compliance.
      </p>
      <p>The correspondence of an element to a use case is defined as
= 0,
1,</p>
      <p>ℎ
ℎ</p>
      <p>The degree of applicability of the precedent is calculated using the following
formula:
=
∑
∑
, ≠</p>
      <p>,
– weight of the element, N – count of elements –
four– value of element i,
way couplings.</p>
      <p>The degree of applicability of the use case base is calculated as:
– count of ES,</p>
      <p>– degree of applicability of the precedent for ES i.</p>
      <p>Additional restrictions are:
̅ =
∑</p>
      <p>,
̅ ≥
̅ − ∗ (
с
) ≥ ̅
a – coefficient determined from the results of the experiment; (
viation.</p>
      <p>) – standard
de( ) =
∑
( ̅ −
)</p>
      <p>To choose precedent applicable to specific ES from the precedents database it is
necessary to perform steps:
1. Set initial value of degree of applicability p = 0
2. Pick precedent from the database.
3. Check if precedent fully correspond to ES or is last in database then go to step 6, if
not – go to step 4.
4. Calculate degree of compliance of current precedent to specific ES
5. Check if calculated value is more than current value of p, then assign calculated
value to p and go to step 2
6. If found precedent correspond to ES fully, then result is that precedent. If some
precedents was found then result is a set of precedents. If no precedents found
dispatcher should be notified that solutions should be found using other algorithms.
After all calculations have been performed, it is necessary to rank the found suitable
precedents by the degree of compliance for a specific ES.</p>
      <p>Experiments were performed using the scheme of the existing MGP to test the
algorithm. Figure 2 shows the graph of the dependency of degree of compliance of
usecase database to the number of precedents.</p>
      <p>0
1000
2000
3000
4000
5000</p>
      <p>6000</p>
      <p>Number of precedents</p>
      <p>The graphs show that with the increase in the number of precedents defined in the
database the value of the degree of correspondence increases, and the scatter of values
for various ES decreases.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Buhvalov</surname>
            <given-names>I. R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alexandrov D</surname>
          </string-name>
          . V.
          <article-title>Informational support for the dispatcher in the management of the main gas pipeline // Management Systems</article-title>
          and Information Technology.
          <year>2007</year>
          , №
          <volume>4</volume>
          .1. P.
          <volume>30</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Buhvalov</surname>
            <given-names>I. R.</given-names>
          </string-name>
          <article-title>Methods and algorithms of informational support of gas transportation system management</article-title>
          .
          <source>The dissertation of the candidate of technical sciences - Vladimir</source>
          ,
          <year>2007</year>
          . P.
          <volume>133</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Gusev</surname>
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alexandrov D</surname>
          </string-name>
          . V.
          <article-title>Approach to the implementation of decision support system for the dispatcher of the gas transportation system in emergency situations // Information-measuring and control systems</article-title>
          . - 2008, № 5. P.
          <volume>66</volume>
          -
          <fpage>75</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Kozlitin</surname>
            <given-names>A.M.</given-names>
          </string-name>
          <article-title>Analysis and estimation of risk of emergence and development of the accident in the plans of localization and liquidation of accidents // Electronic scientific journal Oil and gas business</article-title>
          .
          <source>-</source>
          <year>2013</year>
          , № 5. P.
          <volume>402</volume>
          -
          <fpage>417</fpage>
          (http://ogbus.ru/article/analiz
          <article-title>-i-ocenkariska-vozniknoveniya-i-razvitiya-avarii-v-planax-lokalizacii-i-likvidacii-avarij/)</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Kokorin</given-names>
            <surname>А</surname>
          </string-name>
          .V.,
          <string-name>
            <surname>Alexandrov</surname>
            <given-names>D.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Buhvalov</surname>
            <given-names>I.R.</given-names>
          </string-name>
          <article-title>The way of localization of the rupture place of the linear part of the main gas pipeline and subsequent redistribution of gas stream</article-title>
          . // Neurocomputers. - 2012, № 8. P.
          <volume>46</volume>
          -
          <fpage>51</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Proskurina</surname>
            <given-names>G.V.</given-names>
          </string-name>
          <article-title>Models and algorithms for informational support for the management of a gas transportation system in conditions of a single gas pipeline rupture</article-title>
          .
          <source>// Proceedings of the Congress of Young Scientists, Part</source>
          <volume>1</volume>
          . / SPB: NRU ITMO,
          <year>2012</year>
          .P.
          <volume>210</volume>
          -
          <fpage>212</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Reshetnikov</surname>
            <given-names>I.S.</given-names>
          </string-name>
          <article-title>Automation of production activities of a gas transportation company</article-title>
          . - M.: NGSS,
          <year>2011</year>
          - 116 p.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Seleznev</surname>
            <given-names>V.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Motlokhov</surname>
            <given-names>V.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pryalov</surname>
            <given-names>S.N.</given-names>
          </string-name>
          <article-title>Numerical analysis and optimization of gasdynamic modes of natural gas transport</article-title>
          . M.:
          <string-name>
            <surname>Editorial</surname>
            <given-names>URSS</given-names>
          </string-name>
          ,
          <year>2003</year>
          . - 224 p.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Seleznev</surname>
            <given-names>V.E</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alyoshin</surname>
            <given-names>V.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pryalov</surname>
            <given-names>S.N.</given-names>
          </string-name>
          <article-title>Modern computer simulators in pipeline transport: mathematical modeling methods and practical application</article-title>
          . M.: MAKS Press,
          <year>2007</year>
          . - 200 p.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Eisenreich</surname>
            <given-names>N</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Neutz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Seiler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Hensel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Stancl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Tesitel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Price</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Rushworth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Markert</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Marcelles</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Schwengler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Dyduch</surname>
          </string-name>
          , and
          <string-name>
            <given-names>K.</given-names>
            <surname>Lebecki</surname>
          </string-name>
          ,
          <article-title>Airbag for the closing of pipelines on explosions and leakages</article-title>
          ,
          <source>Journal of Loss Prevention in the Process Industries</source>
          <volume>20</volume>
          ,
          <year>2007</year>
          . - 589-598.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Mokhatab</surname>
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Poe</surname>
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Speight</surname>
            <given-names>J</given-names>
          </string-name>
          .
          <source>Handbook of Natural Gas Transmission and Processing. - Harcourt: Elsevier Science and Technology Books</source>
          ,
          <year>2006</year>
          . - 672 p.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Morgan</surname>
            <given-names>H</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Philip</surname>
            <given-names>C</given-names>
          </string-name>
          , R. Edward Nicholas:
          <article-title>Pipeline Leak Detection Handbook</article-title>
          .
          <source>Gulf Professional Publishing, 13th July</source>
          <year>2016</year>
          . -
          <fpage>340p</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Muhlbauer</surname>
            <given-names>W.</given-names>
          </string-name>
          <string-name>
            <surname>Kent</surname>
          </string-name>
          .
          <article-title>Pipeline risk management manual: a tested and proven system to prevent loss and assess risk / by W</article-title>
          . Kent Muhlbauer.3rd ed. Elsevier inc.,
          <year>2004</year>
          . -
          <fpage>395p</fpage>
          ;
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Turkowski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bratek</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Słowikowski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Methods and systems of leak detection in long range pipelines</article-title>
          .
          <source>J. Autom. Mob. Rob. Intell. Syst</source>
          .
          <volume>1</volume>
          (
          <issue>3</issue>
          ),
          <year>2007</year>
          . - 39-46.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>