<!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>Uncertainty Evaluation in the Expert System of Evolutionary Management of a Multistage Technological Process</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>B V Paliukh</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A N Vetrov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>I I Emelyanova</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Tver State Technical University, emb. of A F Nikitina</institution>
          ,
          <addr-line>22, Tver, Russian Federation</addr-line>
        </aff>
      </contrib-group>
      <fpage>197</fpage>
      <lpage>202</lpage>
      <abstract>
        <p>The paper considers an approach to constructing an expert system to support decision-making in evolution management of multistage technological processes under conditions of uncertainty. There one can find a procedure and principles for expert systems (ES) design which applies evidence theory methods. The paper also describes an ES developed in CLIPS environment and an interface which has a CLIPS core and starts the inference engine.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Many modern continuous multistage technological processes are potentially dangerous, as an
equipment failure leads to dire consequences. Managing such technological processes, one should
timely and immediately deal with two interconnected issues: failure diagnostics and detection of the
technological process stages featuring the equipment which is inefficient in emergency. The second
problem is solved within the framework of the evolution management system of a multistage
technological process [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. A decision on inefficient operation of a technological process stage is made
on the basis of the diagnostic variables which are either measured directly, or calculated on grounds of
the mathematical simulation results.
      </p>
      <p>
        The diagnostic variables values violating the limits defined by the process procedure are a sign of
some stage of the technological process working inefficiently in emergency. Technological process
monitoring and control are the responsibility of the process control operator, who should, on grounds
of the current values of the diagnostic variables, recognize a dangerous situation and make the
decision to eliminate it. In most cases, this is performed successfully. However, the uncertainty of the
data on a technological process can cause emergencies when the operator is unable to find the true
reason causing the deviation of the diagnostic variables, and makes wrong decisions. The most vivid
example is the Sayano-Shushenskaya power station accident. Uncertainty of such emergencies is not
statistical. Lately they have started to apply methods based on the logic of non-monotonic reasoning
[
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ] to create expert systems which support decision-making related to such situations. We consider
an approach to evaluation and analysis of uncertainty and inaccuracy within the framework of
possibility theory for developing expert systems intended for managing multistage technological
processes.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Uncertainty accounting on basis of Dempster-Shafter belief structures</title>
      <p>
        Here they consider a hierarchic (two-level) procedure of failure diagnostics and search for the
inefficient stage of the production process [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ]. At the first level, the search space is reduced to
separate production stages (technological process chains), and then, at the second level, we solve the
problem of tracing the failure down to some element of the processing equipment in a certain chain of
the technological process. Let us call X = {xi} a set of diagnostic variables, while С = {cj} will be a set
of technological chains. As already mentioned, a sign of possible equipment failure is the diagnostic
variable violating the acceptable technological limits. This fact will be named a diagnostic variable
violation (DVV). Let us call P = {pi} a set of logical variables. The value of the logical variable pi = 1
corresponds to a DVV emerging on the i - th variable, while pi = 0 corresponds to the absence of a
DVV. Each DVV indicates a fault in one or several technological chains. Taking into account the
agreed notation, the input data for finding the equipment failure can be presented with the following
diagnostic matrix:
...
      </p>
      <p>...
...</p>
      <p>cr
where μij defines the degree of impact of the i-th variable on the operational capability of the j-th
chain, this capability being defined expertly. Each value of the logical variable pi = 1 induces an
expertly-defined set of technological chains Ci</p>
      <p>Ci  {( c j ,i ( c j )  0 )},c j C, Ci  C, Ci   .</p>
      <p>Here cj are the chains where failures might cause violation of limits on the i - th diagnostic
variable; μi(cj) is the membership degree of the element cj in the set Ci (it corresponds to the expert’s
level of confidence (adjusted to the range [0; 1]) in the presence of a DVV source on the j-th variable
in the chain cj). At the first stage, the problem of recognition comprises matching the values of the
diagnostic variables and the faulty or inefficient stage of the technological process (technological
chain).</p>
      <p>
        Applying Dempster-Shafter theory (DST) helps to assign the common measure of probability to the
subsets of the set of the faulty technological chains [
        <xref ref-type="bibr" rid="ref10 ref12">10, 12</xref>
        ]. It is necessary for of several reasons. The
first one is the ambiguity of the solution of the expert classification task, when the expert is unable to
define the degree of characteristicity of the given DVV for one particular chain. Second, the results of
DVV presence detection itself may be inaccurate. Third, it is required for setting the common
confidence level for all the diagnostic procedures.
      </p>
      <p>
        The fundamental notion of DST is [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] the frame of discernment, defined as the complete set of
mutually exclusive events. In our case, the set С = {cj} is the frame of discernment. The empty set Ø is
identified as an impossible event. Let us denote as A some subset of the set С, including the empty set
Ø and the set С itself. The power set will be denoted as { A | A  C } . A real number m(A) called base
probability may be assigned to each set A. DST considers not all the sets of the frame of discernment
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], but only those having nonzero base probabilities – so-called focal elements of belief function Bel.
Thus, any set Ci, induced by the logical variable pi = 1, is a focal element. Any subset Ai of the set Сi
is a focal element, as long as it has nonzero base probability. Belief function Bel(Ai) is calculated for
the set Ai as the sum of all the base probabilities of the elements which comprise the set Ai
Bel( Ai )   m( Aj ) .
      </p>
      <p>B Ai</p>
      <p>
        As a rule, in case of a potential emergency there is registered some DVV set P* = {pi | pi = 1}.
Should this happen, the facts of various DVV being registered are considered as independent
evidences of failures in the technological process. In order to unite various evidences [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ], one
should calculate orthogonal sums of base probabilities defined for each of the evidences. To achieve
this, one should apply Dempster’s rule [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], according to which the orthogonal sums are defined by
the following expression:
where A and B is focal elements distributed on the trust frame generated by different evidences. The
probability measure for the empty set is
m 
      </p>
      <p>m1( Y )*m2( Z ) .</p>
      <p>Y  Z </p>
      <p>Dempster’s rule is associative and commutative, thus allowing one to unite, in a similar fashion,
even more evidences.</p>
      <p>New base probabilities provide the foundation for computing belief and plausibility functions for
all the hypotheses in question, thus allowing one to use all available information while searching for
faulty or inefficient technological chains, to reduce the number of suspected objects by eliminating
some of them and to redistribute the evaluations of possible failures for a separate technological chain
or for many chains.</p>
      <sec id="sec-2-1">
        <title>3. Uncertainty accounting in an expert system with production rules</title>
        <p>
          A software product was developed in order to implement the above-described uncertainty accounting
procedure based on Dempster-Shafter belief structures. This product represents an application
software package developed and functioning in CLIPS environment [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] and using external
application programs.
        </p>
        <p>The developed prototype of a diagnostic type expert system (ES) enables the expert production
engineer to detect failures of the equipment applied in multistage production processes. The engineer
makes the decision on a failure occurring in one or other unit of production equipment on the basis of
the current values of the diagnostic variables or, in terms of ES, the facts.</p>
        <p>Facts are the principle form of information representation in CLIPS. As a rule, some unordered
facts are applied, which provide an opportunity to abstract away from their structure. Such facts are
described in the built-in object-oriented COOL language with the help of deftemplate construction.</p>
        <p>The diagnostic ES is based on a set of production rules and operates according to the
“questionanswer” principle. Production rules let “keep” the expert’s experience in the ES knowledge database
(KD). ES developer must write a set of rules which, when applied together, let solve the issues arising
at the facility. Rules are entered into CLIPS with defrule structure.</p>
        <p>The set of rules depends on fulfillment of the conditions which, in their turn, are activated by facts.
Facts and production rules are crucial for ES successful operation. An important feature of CLIPS is
the inference engine which actually decides which rules must be executed in the presence of the
available facts. In addition, CLIPS supports a procedural tool, or application of the functions which are
set with deffunction structure.</p>
        <p>
          The major drawback of CLIPS environment is the absence of the graphical interface which is
familiar to everyone because of Windows OS, because API CLIPS uses C++ functions which let one
work only in text mode (console input-output). However, the open source code of API CLIPS
functions, which were written in С++ [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ], enabled the developers to integrate CLIPS core successfully
into their own application. The integration of CLIPS into the application written in С# was performed
in Visual Studio environment. In order to achieve this, they used CLIPSNet library [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. Thus, the
integration task was reduced to arranging an interface between Windows application and CLIPS core.
        </p>
        <p>A trial model of an ES was constructed as a Windows Forms application in Visual Studio 2015
environment. In order to organize the interface between the expert and CLIPS core, “on the part” of
Windows Forms there were used standard components .NET Framework 4.5.2:</p>
        <p>TableLayoutPanel, FlowLayoutPanel, Button, Label;
while on the part of CLIPS there were embedded API functions:
public bool LoadFromResource (string A_0, string A_1);
public void Reset();
public long Run().</p>
        <p>The developed prototype of an expert system of evolutionary control of a multistage production
process includes a data management unit, a knowledge base management unit and an information
model control unit (figure1). The data management unit includes the tools that enable one to edit
electronic spreadsheets describing technological links and diagnostic variables for the purposes of one
or other production. The knowledge base management unit contains the tools for describing the
production rules, for knowledge base creation and setting up a dialog with the operator in a natural
language. The information model control unit ensures interaction between the data management units
and the knowledge base, and also with the external environment.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Data processing unit</title>
      <p>Description of the technological
relationships
Description of diagnostic variables
Formation of probabilistic estimates</p>
    </sec>
    <sec id="sec-4">
      <title>Knowledge base unit</title>
      <p>Knowledge base modification
The formation of queries</p>
      <p>Response processing
Calculation of process parameters
Formation of expert opinions</p>
      <sec id="sec-4-1">
        <title>Data base</title>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Information model control unit</title>
      <sec id="sec-5-1">
        <title>Knowledge</title>
        <p>base</p>
        <p>While operating, ES monitors the current values of the diagnostic variables, coming in from the
external environment at certain time intervals. If the values of these variables do not correspond to the
standard ones, the two-level mechanism of failure detection of the production equipment described in
Sec. 1 starts working.</p>
        <p>An interface window of the application is used to start the ES and to detect failures in the stated
technological chain of the production. After “Start” button is pressed, the ES starts a dialog with the
technology expert who supplies the ES operation area with new facts by choosing one of the options
(yes/no), thus activating the corresponding production rules. This way the application organizes an
interface with CLIPS core, starting the inference engine with the present set of facts and production
rules. As a result of this dialog, the ES forms its expert judgment on the failure causing the
malfunction. This judgment is offered to the process control operator for further analysis.</p>
        <sec id="sec-5-1-1">
          <title>4. Conclusion</title>
          <p>In order to check the efficiency of the developed system, it was tested by analyzing the defects of a
centrifugal blower. Fig. 2 shows the operation of a diagnostic system which applies the Boolean
method at 10% belief threshold and not more that 5% of data noise contamination. Here icons S0 – S8
codes indicated a faulty device blower. S1-pressure sensor fault. S* indicates no fault.</p>
          <p>The figure demonstrates that, under normal operation of the system, the noise in the measurements
causes diagnosis instability. At the 100th step we introduced a defect into the system; this defect was
presented by 70% of confidence in pressure sensor failure. When the failure is introduced, the right
diagnosis appears sporadically.</p>
          <p>Fig. 3 shows ES operation diagram based on the above-suggested procedure in presence of the
same input data.</p>
          <p>The diagram shows how evaluation of plausibility of diagnostic hypotheses Q changes before and
after the failure is introduced, ensuring stable correct diagnosis. Plausibility evaluations of alternative
hypotheses are not shown, as their values are below the noise level.</p>
          <p>The suggested procedure of uncertainty accounting and principles for expert systems (ES) design,
which are intended to support decision-making in evolution management of multistage technological
processes, thus allow one:
 to ensure sequential analysis of the state of health of a processing facility, including tracing the
trouble source down to the initial failure level;
 to apply, within their structure, interval diagnostic models of the process, in order to account for
the data physical uncertainty and to combine the results of analytic and expert analysis of the
equipment unit state;
 to perform the analysis of faulty and inefficient production subsystems with the help of ES and
according to the suggested procedure of uncertainty accounting, which allows reducing the
required time and resources of the diagnostic procedures.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>The paper is developed with the financial support of RFBR (project № 17-07-01339).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Giarratano</surname>
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Riley</surname>
            <given-names>G</given-names>
          </string-name>
          .
          <article-title>Expert Systems: Principles and</article-title>
          <string-name>
            <surname>Programming. M.</surname>
          </string-name>
          : LLC “Williams Publishing”,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Dubois</surname>
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Prade</surname>
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Possibility</surname>
          </string-name>
          <article-title>Theory: Applications for Knowledge Representation in Data Processing</article-title>
          . М.,
          <source>Radio and Communication</source>
          ,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Luger</surname>
            <given-names>G.F. Artificial</given-names>
          </string-name>
          <string-name>
            <surname>Intelligence</surname>
          </string-name>
          .
          <article-title>Structures and Strategies for Complex Problem Solving</article-title>
          . M.: “Williams Publishing”,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Barnett</surname>
            <given-names>J. A.</given-names>
          </string-name>
          <article-title>Computational methods for a mathematical theory of evidence //</article-title>
          <source>In Proceedings of the 7th International Joint Conference on AI</source>
          , Vancouver, BC,
          <year>1981</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Dempster</surname>
            <given-names>A. P.</given-names>
          </string-name>
          <article-title>Belief functions in the 21st century: A statistical perspective //</article-title>
          <source>Proceedings of Institute for Operations Research and Management Science Annual meeting (INFORMS</source>
          <year>2001</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>E.</given-names>
            <surname>Lefevre</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Colot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Vannoorenberghe</surname>
          </string-name>
          .
          <article-title>Belief functions combination and conflict management // Information Fusion</article-title>
          . vol.
          <volume>3</volume>
          (
          <issue>2</issue>
          ),
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Murphy</surname>
            <given-names>C.</given-names>
          </string-name>
          <article-title>Combining belief functions when evidence conflicts // Decision support systems</article-title>
          . vol.
          <volume>29</volume>
          (
          <issue>1</issue>
          ),
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Paliukh</surname>
            <given-names>B.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vetrov</surname>
            <given-names>A.N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Emelyanova</surname>
            <given-names>I.I.</given-names>
          </string-name>
          <article-title>Diagnostics and state analysis of multiple-stage production in terms of evolution management // 2017 Second Russia</article-title>
          and Pacific Conference on
          <source>Computer Technology and Applications (RPC)</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Perov</surname>
            <given-names>V.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paliukh</surname>
            <given-names>B.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuperman</surname>
            <given-names>V.G.</given-names>
          </string-name>
          <article-title>Defective chemical process chain detection in uncertainty condition / Compuners chem</article-title>
          .
          <source>Engng</source>
          . Vol.
          <volume>17</volume>
          , №
          <volume>10</volume>
          ,
          <year>1993</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>Kari</given-names>
            <surname>Sentz</surname>
          </string-name>
          .
          <article-title>Combination of Evidence in Dempster-Shafer Theory</article-title>
          . Binghamton University,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Shafter</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <article-title>Tversky A. Languages and designs for probability judgment</article-title>
          . // Cognitive Science,
          <volume>9</volume>
          ,
          <year>1985</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>R.</given-names>
            <surname>Yager</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Fedrizzi</surname>
          </string-name>
          &amp; J. Kacprzyk (eds.)
          <article-title>Advances in the Dempster-Shafer Theory of Evidence</article-title>
          . John Wiley &amp; Sons Inc.,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Ronald</surname>
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Yager</surname>
          </string-name>
          , Liping Liu,
          <source>Classic Works of the Dempster-Shafer Theory of Belief Functions</source>
          . Springer,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Reference</surname>
            <given-names>Manual</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Volume</surname>
            <given-names>II</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Advanced Programming</surname>
          </string-name>
          Guide - http://clipsrules.sourceforge.net/documentation/v630/apg.htm
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>