<!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>Development of a technology for collecting and analyzing data for monitoring based on an ontological approach</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Yuri I. Molorodov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oleg V. Kasatkin</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Federal Research Center for Information and Computational Technologies</institution>
          ,
          <addr-line>Novosibirsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Novosibirsk State University</institution>
          ,
          <addr-line>Novosibirsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>212</fpage>
      <lpage>221</lpage>
      <abstract>
        <p>One of the ways to build information models is ontological modeling. The use of ontologies greatly facilitates the exchange of data between embedded models and utilities for the digital representation of an object or a real-world system, sometimes called “digital twin” (DT). It is also important to establish a correspondence between the DT, people and external programs. Based on the dictionary of the main terms, classes, objects of the subject area and the relations between them, we have built an ontology of the hydroelectric dam DT.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Data collection and analysis system</kwd>
        <kwd>monitoring of the technical condition of hydroelectric dams</kwd>
        <kwd>dynamic characteristics</kwd>
        <kwd>processing of seismometric monitoring data</kwd>
        <kwd>digital twin ontology of hydroelectric dams</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>A digital twin is a software analogue of a physical device that simulates internal processes,
technical characteristics and behavior of a real object under environmental influences. The
concept of digital twins implies the connection of the physical and digital world through the
interaction of information models. In other words, a mathematical model is created for a
physical object, a piece of equipment or an entire process, which is then used to analyze the
behavior of the object. Moreover, the digital model is constantly updated to fully correspond
to the current state of the real object. This makes it possible to identify unexpected changes
in processes, optimize the operating modes of equipment, prevent breakdowns and accidents,
which ultimately allows you to significantly increase the reliability and eficiency of operation.</p>
      <p>
        According to regulatory documents, hydroelectric power plants are designed with a minimum
expectation for 100 years of operation, but with proper maintenance, the actual operation period
can be significantly increased and reach several hundred years [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. The main equipment and
structures naturally wear out and require major repairs, modernization, replacement. The entire
life cycle of a hydroelectric power plant is a series of constant updates, upgrades, reconstructions
associated with the replacement of automation systems or with the replacement of main or
auxiliary equipment.
      </p>
      <p>The use of a digital twin of the hydroelectric dam will significantly increase the eficiency of
operation, as well as determine the most accurate time of maintenance.</p>
    </sec>
    <sec id="sec-2">
      <title>2. The use of digital twin</title>
      <p>The digital twin uses information from sensors (sensors) installed on a real object not only to
update the current digital copy, but also to monitor the state and analyze the residual resource
of the object, predict defects.</p>
      <p>To build a digital twin of the dam, first of all, it is necessary to build an information model.
One of the ways to build information models is ontological modeling. The use of ontologies
greatly facilitates the exchange of data between embedded models and utility programs of the
digital double, as well as between the digital double and people or external programs.</p>
      <p>
        There are many definitions of ontology of varying degrees of formalization. Often, the
definition is given based on the methods of constructing an ontology. Nevertheless, despite
the abundance of approaches to the definition, the same composition of components is usually
used, which includes:
1) classes or concepts that are usually interpreted quite broadly and can include entities of any
kind;
2) instances, i.e. separate entities, the totality of which forms classes;
3) attributes — specific internal properties of classes and instances;
4) relationships mean the relationship between the classes of the subject area, for example, the
relation of taxonomy;
5) axioms, or rules of inference, which determine some always true statements that serve, for
example, to check information for correctness.
According to [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], the ontology is formally defined as follows:
      </p>
      <p>= ⟨, , , , ⟩,
where  = {1, . . . , } — set of domain classes;  = {1, . . . , },  ⊆  ×  — the set
of relations defined on the classes of the subject area;  = {1, . . . , } — a set of attributes
describing the properties of concepts  and relations ;  is the set of standard attribute values;
 = {1, . . . , } — the set of domains.</p>
      <p>
        To build an ontology of the digital twin of a hydroelectric dam, we will use the CmapTools
program. Based on the works [
        <xref ref-type="bibr" rid="ref12 ref2 ref3">2, 3, 12</xref>
        ], as well as following the instructions of the methodological
manual [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], the ontologies presented in Figure 1 were constructed.
      </p>
      <p>Figure 1 shows that the model of a digital twin of a hydroelectric dam requires constant
updating of simulation models and accumulation of data obtained from a real object to monitor
the current technical condition and predict the remaining resource. To solve these problems,
an information system for collecting and processing information is needed, which, along with
calculation and information models, can become a central link in the construction of a digital
twin of the dam.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Functionality and structure of the system</title>
      <p>
        In the work [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], a method for assessing the technical condition of buildings and structures is
proposed, based on the analysis of changes in dynamic characteristics determined under the
influence of a microseismic background of a natural and man-made nature, i.e. without the
use of special excitation sources. These characteristics are manifested under dynamic loads
and reflect the technical condition of the building structure as a whole (frequencies and forms
of natural vibrations, attenuation decrements, statistical characteristics, etc.). The analysis of
trends in dynamic characteristics, taking into account the influence of seasonal environmental
factors, allows us to determine their irreversible changes and monitor the current technical
condition of the entire structure.
      </p>
      <p>To perform the tasks of monitoring the state of the object in this work, the periodic
(according to a given schedule) registration of dam vibrations under the influence of microseismic
background and dynamic loads from the equipment operating at the HPP is selected.</p>
      <p>Based on the analysis of regulatory documents, the following main functional requirements
for the system were identified:
1) the possibility of scheduled and periodic registration of microseismic vibrations of the dam;
2) the system must store records of seismometric monitoring data and information about the
functioning of the system;
3) the possibility of data analysis using various information processing algorithms, calculation
of the studied parameters and characteristics;
4) the ability to log error messages in the system, notify the user in case of exceeding the
permissible values of the observed values and problems in the system;
5) visualization of the analysis results.</p>
      <p>In general, the operating procedure and functionality of the system under development are
shown in Figure 2.</p>
      <p>The assessment of the technical condition of hydraulic structures is carried out in accordance
with the criteria adopted in the current building codes and rules for ensuring the safety of
operation of buildings and structures according to the theory of limit states. In the developed
system, the criteria for the safety of hydraulic structures in terms of seismometric monitoring
should be established in the form of functional dependencies between the dynamic characteristics
and parameters of external influences and loads. These dependencies are determined based on
the results of statistical analysis of data at the accumulation stage.</p>
      <p>The structurally developed system should be a construction of related subsystems: data
collection, storage of the received data arrays, information processing and analysis, and data
visualization. Figure 3 shows the basic structure of the system for collecting, storing, analyzing
and visualizing data arrays.</p>
      <p>The decomposition of the system into functional modules with well-defined data flows
between them can significantly reduce the complexity of the system and its development, as
well as increase the versatility of the modules.</p>
      <sec id="sec-3-1">
        <title>3.1. Development of a data processing and analysis module</title>
        <p>The data processing and analysis module was written in the C++ programming language in the
Microsoft Visual Studio 2019 development environment using the STL library.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Input data format</title>
        <p>As an input in this paper, we will consider the CIBF seismometric monitoring file format used in
the operation of the automated earthquake registration system and monitoring of the technical
condition of the dam (PAK-MZ) of the Krasnoyarsk HPP. This system periodically registers
stationary micro-vibrations of the dam at ten observation points in three directions of vibration
of the structure: longitudinal, transverse and vertical.</p>
        <p>The CIBF file format is a specially developed format for seismometric monitoring data. The
ifle name includes the start time of data registration (the time of the first count) in the format
dd_mm_yyy_hh_mm_ss.cibf. All data is stored in the little-endian format (i.e. the lowest byte
comes first).</p>
        <p>CIBF files consist of data packets (in one packet, data for all channels). Each packet contains
a header and data. The header includes the serial number of the packet for monitoring data
transmission, the parameters of the registration profile and the length of the data. Each packet
contains a 32-byte header and the data itself. The header structure is shown in Table 1.</p>
        <p>The number of samples (the Sample Received field) shows how many samples are in the data
following the header. Thus, the headers can be used for iterating over the packages of the file.</p>
        <p>The data is presented as a set of samples by channels. Each sample is represented as two
bytes of the data itself (the code with the ADC) and two bytes of service information (Table 2).</p>
        <p>The bit fields F1, F2, and F3 are responsible for channel error, negative saturation, and positive
saturation, respectively. If the 8th bit of F1 is 0, then a channel error has occurred. If the 9th bit
of F2 is not equal to 0, then negative saturation has occurred. If the 10th bid of F3 is not equal
to 0, then a positive saturation has occurred. The lowest byte represents a cyclic code from the
range from 0 to 254.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Data extraction and processing</title>
        <p>To read CIBF format files, we will use the functionality of the fstream header file. Let’s create an
object of the std::ifstream class and link the class object to the CIBF file from which the reading
will be performed (hereinafter we will simply call it “file”). At the same time, we need to receive
data in binary form, so we will use the binary mode of opening the file. If it is impossible to
open the specified file, we will generate an exception of the std::exception type.</p>
        <p>Recall that the smallest addressable element of the computer’s RAM is a byte. Let’s calculate
the exact length of the file. To do this, use the seekg function to move the file pointer to the
ifnal position and use the tellg function to find out its number (in bytes), then use the seekg
function again to return the pointer to the starting position for further work.</p>
        <p>Note that the computer’s central processor uses a machine word as the main unit of work with
memory, the size of which depends on the processor architecture. When storing an arbitrary
object in memory, it may happen that some field consisting of several bytes will cross the
“natural boundary” of machine words in memory. Some processor models cannot access such
data in memory, or they take longer to access data located inside an entire machine word in
memory. Therefore, some C++ compilers can use automatic “data alignment”. This optimization
consists in inserting insignificant bytes between the fields of the data structure when placing it
in memory to speed up access to this structure.</p>
        <p>For the convenience of reading, we will describe data packages using structures — the custom
data type struct of the C++ language. Each packet will be a structure, whose members will be
other structures — the packet header and an array of samples. When describing structures, we
will use the pragma pack(push,1) and pragma pack(pop) preprocessor directives to exclude any
data alignment.</p>
        <p>Create an integer variable with a zero initial value to track the number of the current position
(in bytes) from the beginning of the file. Further, everywhere under the word “reading” we will
mean byte-by-byte extraction of the structure into a variable of the corresponding type using
the read operator. The process of reading data packets will occur in the body of the main while
loop, the condition for the completion of which will be reaching or exceeding the number of
the current position of the file length value. The increment of the value of the current position
number will occur after using the read operator.</p>
        <p>In the body of the main loop, we will first read the packet header. At the beginning of the
header of each package is a number that characterizes the contents of the package. We will use
it to control the reading. If the number 2 is the first in the read packet, then we determine how
many samples are in the packet and read them into the bufer. Otherwise, we notify the user
that this package contains service or test information.</p>
        <p>In the cycle, we will process the received data according to the number of read samples. First
of all, from the ctrl field, we will determine the number of the channel on which the countdown
was received. Next, it is necessary to convert the value  obtained from the ADC to the form
 =
20 1 1
216 ·  ·   ,
where  is the acceleration amplitude;  is the total signal gain;   is the
electromechanical coupling coeficient. The   of the sensor determines its sensitivity. At the
Krasnoyarsk HPP dam,   = 2 sec2/m. The total signal gain is calculated as the product
of the pre-gain coeficients 1 and the main gain 2. The values of the gain coeficients  are
shown in Table 3.</p>
        <p>The obtained acceleration amplitudes are distributed over channels using objects of the std
container class::vector.</p>
      </sec>
      <sec id="sec-3-4">
        <title>3.4. Presentation and analysis of the results of the module</title>
        <p>The implemented module was tested on CIBF files. The correctness of the module operation and
the results obtained was confirmed by a specialist of the PAK-MZ system of the Krasnoyarsk</p>
        <p>Based on the obtained values of the acceleration amplitudes, the statistical characteristics of
the oscillations are calculated. An example of the calculated statistical characteristics for one of
the monitoring sessions is shown in Table 4.</p>
        <p>One of the methods for visualizing the process of changing the amplitudes of accelerations
over time is the construction of seismic tracks. A seismic trace is a graph of the dependence of
the signal level of seismic waves or noise on the time of their registration.</p>
        <p>Let’s use the Gnuplot charting program. To build a seismic track, it is necessary to know the
duration of the registration of vibrations (512 seconds) and the number of recorded samples
(the length of the object std::vector, where the data is stored after extraction). If we set aside the
time in seconds horizontally, and the values of the acceleration amplitudes (mm/s2) vertically,
then we will get a visualization of the dam oscillation process in the specified observation point
and direction in time on the graph. An example of a seismic route is shown in Figure 4.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>On the basis of regulatory documents regulating the maintenance of hydroelectric dams, the
subject area is investigated and an information system for collecting and analyzing seismometric
monitoring data is developed. The basis for designing an information system is an ontological
approach. Using this approach, the ontology of the digital twin of the hydroelectric dam is
constructed. The main functional capabilities of the information system are formulated and
its structure is described. The data processing and analysis module is implemented in the C++
programming language. The implemented module has been tested on CIBF-format seismometric
monitoring data packages.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Baryshev</surname>
            <given-names>V.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuzmenko</surname>
            <given-names>A.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saburov</surname>
            <given-names>V.S.</given-names>
          </string-name>
          et al.
          <article-title>Dynamic test inspection of dams under the influence of operational dynamic loads // Gidrotehn</article-title>
          . Construction.
          <year>2002</year>
          . N. 10. P.
          <volume>26</volume>
          -
          <fpage>36</fpage>
          . (In Russ.)
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Borovkov</surname>
            <given-names>A.I.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Ryabov</given-names>
            <surname>Yu</surname>
          </string-name>
          .
          <article-title>A. Digital twins: Definition, approaches</article-title>
          and methods development / A.V.
          <string-name>
            <surname>Babkin</surname>
          </string-name>
          (Ed.) // Digital Transformation of Economy and Industry:
          <source>Proceedings of the Scienticfi-Practical Conference. June 20-22</source>
          ,
          <year>2019</year>
          . SPb.: Polytechnic Press,
          <year>2019</year>
          . P.
          <volume>234</volume>
          -
          <fpage>245</fpage>
          . (In Russ.)
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Borovkov</surname>
            <given-names>A.I.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Ryabov</given-names>
            <surname>Yu</surname>
          </string-name>
          .A.,
          <string-name>
            <surname>Maruseva</surname>
            <given-names>V.M.</given-names>
          </string-name>
          <article-title>A new paradigm of digital design and modeling of globally competitive products of a new generation // Digital Production: Methods, Ecosystems, Technologies</article-title>
          .
          <source>MSU Skolkovo</source>
          ,
          <year>2018</year>
          . P.
          <volume>24</volume>
          -
          <fpage>44</fpage>
          . (In Russ.)
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <article-title>[4] Bulletin of RusHydro-Science and Technology. The future digital everyday life of RusHydro</article-title>
          . Available at: https://vestnik-rushydro.ru/articles/2-fevral
          <article-title>-2019/nauka-i-tekhnologii/ budushchie-tsifrovye-budni-rusgidro (In Russ</article-title>
          .)
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Muromtsev</surname>
            <given-names>D.I.</given-names>
          </string-name>
          <article-title>Conceptual modeling of knowledge in the Concept Map system</article-title>
          .
          <source>St. Petersburg: SPb GU ITMO</source>
          ,
          <year>2009</year>
          . 83 p.
          <article-title>(In Russ</article-title>
          .)
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Zagorulko</given-names>
            <surname>Yu</surname>
          </string-name>
          .A.,
          <string-name>
            <surname>Sidorova</surname>
            <given-names>E.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borovikova</surname>
            <given-names>O.I.</given-names>
          </string-name>
          <article-title>Ontological approach to the construction of information support systems for scientific and industrial activities // Materials of the AllRussian Conference with International Participation “Knowledge - Ontology - Theory” (ZONT-09)</article-title>
          . Novosibirsk,
          <year>2009</year>
          . Vol.
          <volume>2</volume>
          . P.
          <volume>93</volume>
          -
          <fpage>102</fpage>
          . (In Russ.)
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Korolenko</surname>
            <given-names>D.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuzmenko</surname>
            <given-names>A.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moskvichev</surname>
            <given-names>V.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saburov</surname>
            <given-names>V.S.</given-names>
          </string-name>
          <article-title>Information system of seismometric monitoring of the technical condition of hydraulic structures: Experience of modeling, development</article-title>
          and implementation // Computational Technologies.
          <year>2019</year>
          . Vol.
          <volume>24</volume>
          . No. 5. P.
          <volume>13</volume>
          -
          <fpage>37</fpage>
          . DOI:
          <volume>10</volume>
          .25743/ICT.
          <year>2019</year>
          .
          <volume>24</volume>
          .5.
          <fpage>003</fpage>
          . (In Russ.)
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <article-title>[8] How many years can hydroelectric power plants last</article-title>
          ? Available at: http://blog.rushydro. ru/?p=
          <volume>9950</volume>
          (
          <issue>accessed April 06</issue>
          ,
          <year>2021</year>
          ). (In Russ.)
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <source>[9] STO 70238424.27.140</source>
          .
          <fpage>003</fpage>
          -
          <lpage>2010</lpage>
          .
          <article-title>Hydrotechnical structures of hydroelectric power plants and hydroelectric power plants. Organization of operation and maintenance. Norms and requirements</article-title>
          .
          <source>Introduced</source>
          <year>2010</year>
          -
          <volume>09</volume>
          -
          <fpage>30</fpage>
          . Moscow: NP “Invel”,
          <year>2010</year>
          . 15 p.
          <article-title>(In Russ</article-title>
          .)
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <source>[10] STO 70238424.27.140</source>
          .
          <fpage>035</fpage>
          -
          <lpage>2009</lpage>
          .
          <article-title>Hydroelectric power stations. Monitoring and evaluation of technical structures during operation. Norms and requirements</article-title>
          .
          <source>Introduced</source>
          <year>2009</year>
          -
          <volume>12</volume>
          -
          <fpage>31</fpage>
          . Moscow: NP “Invel”,
          <year>2009</year>
          . 59 p.
          <article-title>(In Russ</article-title>
          .)
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <source>[11] STO RusHydro 02.01</source>
          .
          <fpage>80</fpage>
          -
          <lpage>2012</lpage>
          .
          <article-title>Hydrotechnical structures of hydroelectric power plants and hydroelectric power plants. Operating rules. Norms and requirements</article-title>
          .
          <source>Entered</source>
          <year>2012</year>
          -
          <volume>10</volume>
          -
          <fpage>29</fpage>
          . Moscow: JSC “RusHydro”,
          <year>2012</year>
          . 181 p.
          <article-title>(In Russ</article-title>
          .)
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Parrott</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Warshaw</surname>
            <given-names>L</given-names>
          </string-name>
          .
          <article-title>Industry 4.0 and the digital twin technology</article-title>
          .
          <source>Deloitte Insigts</source>
          (
          <volume>12</volume>
          -
          <fpage>05</fpage>
          -2017)
          <article-title>- Manufacturing meets its match</article-title>
          . Available at: https://www2.deloitte.com/us/ en/insights/focus/industry-4
          <article-title>-0/digital-twin-technology-smart-factory</article-title>
          .html.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>