<!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>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dongzhuoran Zhou</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Baifan Zhou</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhuoxun Zheng</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhipeng Tan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Egor V. Kostylev</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Evgeny Kharlamov</string-name>
          <xref ref-type="aff" rid="aff0">0</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>Bosch Center for Artificial Intelligence</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Computer Science, Oslo Metropolitan University</institution>
          ,
          <country country="NO">Norway</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Department of Informatics, Univeristy of Oslo</institution>
          ,
          <country country="NO">Norway</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Hangzhou'22: The 21st International Semantic Web Conference</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <abstract>
        <p>Data analytics is vital in manufacturing for extracting insights from production data and optimising production processes. Semantic technologies including knowledge graphs (KG) proved to be beneficial for addressing challenges of transparency and explainability of analytics by ofering standardised means to describe manufacturing domains, data, analytical tasks and solutions. In this work we discuss executable KGs for industrial analytics; they can be “translated” (i.e. transformed) to executable data pipelines in a reusable and modularised fashion. In particular, we discuss how to capture analytical solutions in the form of data pipelines as KGs, and how to translate such KGs to executable data pipelines. The poster presents our framework, implementation, and preliminary industrial evaluation.</p>
      </abstract>
      <kwd-group>
        <kwd>knowledge graph</kwd>
        <kwd>welding monitoring</kwd>
        <kwd>machine learning</kwd>
        <kwd>industrial application analytics</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Data analytics is vital in manufacturing for extracting insights from production data and
optimising production processes. Semantic technologies including knowledge graphs (KG)
proved to be beneficial for challenges of transparency and explainability [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] of analytics [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] by
ofering standardised means [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ] to describe manufacturing domains [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ], data analytical
tasks and solutions, as well as robot positioning controlling [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ].
      </p>
      <p>
        In particular, KGs allow to represent executable data analytical pipelines with standardized
and formal description to represent the steps in the data pipeline [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. This opens the door for
KG based verification, reasoning, and optimisation, data construction [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], data mining [
        <xref ref-type="bibr" rid="ref11 ref12 ref13">11, 12,
13</xref>
        ] in manufacturing [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. Consider an industrial scenario, where a multi-disciplinary team
including engineers, data scientists, managers work together on quality prediction with ML
in car industry [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. Our project experience reals that the experts with distinct background
spent excessive time on discussion but found out they misunderstood the problem and the ML
solutions. After that, we tried to use KG as a medium for communication, see an example ML
pipeline KG in Fig. 1. It takes TimeSeries and SingleFeatures as the input data, and does LRRegression
to predict the Q-Value. The users can simply change the input data, output data, and method
of the pipeline, by changing the named individuals, e.g., the users can delete TimeSeries if they
do not have the sensor curves (time series) in their data, because the sensor curves are costly
to collect. The users can also change the ML method from LRRegression to MLP (multilayer
perceptron).
      </p>
      <p>
        In this work we study how KGs can facilitate analytics by addressing two issues: how
to encode data pipelines as KGs – we refer to such KGs as executable KGs – and how to
automatically compute executable pipelines from executable KGs. Here the latter should ensure
the correctness of the analytical methods; the desired order of tasks within executable pipelines;
the correct number of input and output and corresponding designed dimensions. Moreover, such
computation should support typical executable pipelines for visual and statistical analytics [
        <xref ref-type="bibr" rid="ref16 ref17">16,
17</xref>
        ]. Finally, such executable pipelines should be suitable for large-scale deployment [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ].
      </p>
      <p>
        In this poster paper we exemplify our solution within the domain of quality monitoring in
automatic manufacturing. In particular, in this poster we present the following. We present our
executable Knowledge Graph framework, its verification, translation and execution methods;
we discuss implementation of our solution, and present its preliminary evaluation with Bosch
manufacturing data. The experimental results show that our proposed approach is promising
in coverage and scalability aspects. This poster accompanies our In-Use track paper accepted at
ISWC’22 [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] and gives significant extension on technical details of KG translation.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Our Approach</title>
      <p>
        Executable Knowledge Graph Framework. We propose framework for executable KG
(ExeKG) that represents ML solutions [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] for solving ML questions. Framework supports ExeKG
to be translated to executable scripts and modularised in reusable and modularised fashion.
      </p>
      <p>We first define data, methods and tasks in this framework.</p>
      <sec id="sec-2-1">
        <title>Data  is a set of facts, statistics,</title>
        <p>or items of information, it can be in forms such as numerals, diagrams or strings organised in
diferent structures, typically relational tables or RDF database, etc. A</p>
      </sec>
      <sec id="sec-2-2">
        <title>Method ℱ is a function in</title>
        <p>form of language-dependent script (such as in C++ or Python). A method takes some data which
fulfils certain
if  ℱ(  ) =</p>
        <p>Constraints  ℱ as input and can output specific data. Formally,  
= ℱ (  ),
. A Task  is the process of invoking a method by feeding it with some
data that meets certain Constraints, and by doing so to obtain some other data. Formally,
 ⟨
 , ℱ ⟩ = ℱ (  ) =   , if  ℱ(  ) =   
. We call each single  
as Atomic task.</p>
        <p>Some tasks have methods which are unified, while other more complex tasks can not solved
by invoking a single integrated method while can be unfolded into a sequence of tasks where
each task is a part of the complex one. We refer to the complex tasks as pipelines  
. Formally,
a pipeline   with input data   to get   , expressed as   ⟨  , ℱ ⟩ =  
can be unfolded
in the sequence { 1,  2, ...,   }, where:
 1⟨  1, ℱ1⟩ =   1</p>
        <p>,   1 ⊂   ,  ℱ1(  1) =  ; ...
  ⟨   , ℱ ⟩ =   
,    ⊂ ⋃
̇
∈ {1,...−1 }  
∪   ,  ℱ (   ) =</p>
        <p>⟶   ∈ ⋃̇
∈ {1,..., }
   ,  ℱ = ⋂̇
∈ {1,..., }

ℱ (   ).</p>
        <p>(1)
Translation and Execution. The Table 1: Task complexity, categories and coverage.
translation can be discussed with KG Type Structure Avg. #Atomic Tasks Coverage
two structures of executable KGs: Visu- Linear 5 to 10 100%
1) Sequential: here each exe- alKG Multilinear 5 to 10 85%
cutable KG is in the form of a Pipeline, Linear 1 to 5 100%
wofhsiecqhuceonntisaisltsstroufcatusreersiecsononfeTcatsekds StatsKG MInPutaeltrgialrilanleteeladr 11500tttooo122000 899005%%%
wlaittihonhoasfNaenxteTxaescku.taTbhluesK, Gthien vtroakness- MLKG ParaIlnletlegInratetegdrated MMoorree tthhaann 2200 8800%%
the Python function scripts with the inputs/outputs and parameters given by DataEntity and
datatype properties of KGs, according to the order defined by hasNextTask.</p>
        <p>2) Parallel: In the case of merging two parallel structures, the translator will search preceding
dependency with hasNextTask, until no preceding Task is found.</p>
        <p>
          Implementation. We implemented a system for executable KG translation [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ] with three
functional modules: 1) Databases including the relational database and its APIs and RDF database,
2) Analytics module and 3) KG processing module. Fig. 2a shows the structure of the system.
The Databases are responsible for storing the welding data and executable KGs. Its APIs handles
the loading, formatting, filtering, padding and merging of diferent data subsets. The Analytics
module stores and provides interface for all analytical methods of Visual KG, StatsKG and ML
KG in Python scripts. The KG processing module performs verification of the executable KGs,
translates the executable KGs to executable pipelines and executes these pipelines by connecting
the analytical methods stored in the Analytics module.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Evaluation and Conclusion</title>
      <p>Transparency and Coverage Evaluation. Theoretical discussion: We formulate visual,
statistical and ML analytics in the form of Eq. 1-3. These three forms provide a way to describe
analytics tasks in a general and straightforward way, which eases the understanding of
the tasks, since the users only need to understand the description once and then they can
a
b
9.7 31.449.457.682.1
understand similar data analytical pipelines described in this way. Thus, our approach is a
step towards more transparent way that cover cases of data analytical pipelines described with
Eq. 1-3. Empirical evaluation: We organised extensive workshops with the ML and non-ML
experts. After discussion, we categorised most tasks of visual, statistical and ML analytics
encountered in our project in groups (see Table 1), and give the coverage percentage according
to our empirical cases. Observe, for all of the cases the coverage is above 80%, for some of the
cases even above 90%. Besides, the users also gave their subjective evaluation on transparency
with questionnaires, where they answered questions such as “I found the Executable KGs make
data analytics easier to understand ” and gave scores ranging 1-5 (ranging for disagree to agree).
The average score was 4.28 ± 0.47 (mean ± standardeviation) which shows good transparency.
Scalability Evaluation. We evaluate the scalability of our approach by the running time of
translation and execution of executable KGs with diferent complexity type (Fig. 2b).
Data Description. To have controllable scope, we tested these executable KGs on a sample
welding production dataset collected from a German factory. The dataset is in relational
tables form after integration, containing 4585 welding operation records, 2 welding programs,
performed by 1 welding machine and deals with 2 types of car bodies.</p>
      <p>Results and Discussion. Fig. 2b demonstrates that our system scales well since it takes limited
time to translate executable KGs to scripts and execute scripts. On most right hand side,
we see that the translation and execution of most complex executable KGs, namely parallel
integrated executable KG, only takes 6 minutes for 150 KGs, on the given data, which shows
good scalability.</p>
      <p>Conclusion and Outlook. In this poster we present our ongoing research of representing
data analytical pipelines in KGs and transformation (also called “translation”) of such KGs in
executable analytical pipelines. We discussed framework, verification, translation and execution
with our scope of welding monitoring with a Bosch case and evaluated our approach with real
industrial data and users from Bosch case, which shows promising results. In the future, we
plan to generalise our approach to more cases and to host the system regularly on the Bosch
environment and constantly collect more user feed-backs. We will also study more technical
details such as expressivity and limitations in theory and practice, and compare with other
similar work such as Yahoo! Pipes, DAGs in Spark, Tez, the PROV-O ontology.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgments</title>
      <p>The work was partially supported by H2020 projects Dome 4.0 (Grant Agreement No. 953163),
OntoCommons (Grant Agreement No. 958371), DataCloud (Grant Agreement No. 101016835)
and the SIRIUS Centre, Norwegian Research Council project number 237898.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>B.</given-names>
            <surname>Mahesh</surname>
          </string-name>
          ,
          <article-title>Machine learning algorithms-a review</article-title>
          ,
          <source>IJSR</source>
          <volume>9</volume>
          (
          <year>2020</year>
          )
          <fpage>381</fpage>
          -
          <lpage>386</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zheng</surname>
          </string-name>
          , et al.,
          <article-title>Executable knowledge graph for transparent machine learning in welding monitoring at bosch</article-title>
          , in: CIKM,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>B.</given-names>
            <surname>Motik</surname>
          </string-name>
          , et al.,
          <source>OWL 2 web ontology language profiles</source>
          ,
          <year>2012</year>
          . URL: https://www.w3.org/ TR/owl2-profiles/.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Salatino</surname>
          </string-name>
          , et al.,
          <article-title>The computer science ontology: a large-scale taxonomy of research areas</article-title>
          , in: International Semantic Web Conference,
          <year>2018</year>
          , pp.
          <fpage>187</fpage>
          -
          <lpage>205</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Davis</surname>
          </string-name>
          , et al.,
          <article-title>Smart manufacturing, manufacturing intelligence and demand-dynamic performance</article-title>
          ,
          <source>Computers &amp; Chemical Engineering</source>
          <volume>47</volume>
          (
          <year>2012</year>
          )
          <fpage>145</fpage>
          -
          <lpage>156</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhou</surname>
          </string-name>
          , et al.,
          <article-title>Exploiting the values of data: A holistic semantification approach at Bosch</article-title>
          , in: ESWC (Demos/Industry), Springer,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>C.</given-names>
            <surname>Naab</surname>
          </string-name>
          , et al.,
          <article-title>Application of the unscented kalman filter in position estimation a case study on a robot for precise positioning</article-title>
          ,
          <source>RAS</source>
          <volume>147</volume>
          (
          <year>2022</year>
          )
          <fpage>103904</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>O.</given-names>
            <surname>Celik</surname>
          </string-name>
          , et al.,
          <article-title>Specializing versatile skill libraries using local mixture of experts</article-title>
          , in: CRL,
          <string-name>
            <surname>PMLR</surname>
          </string-name>
          ,
          <year>2022</year>
          , pp.
          <fpage>1423</fpage>
          -
          <lpage>1433</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Yahya</surname>
          </string-name>
          , et al.,
          <article-title>Towards generalized welding ontology in line with ISO and knowledge graph construction, in: ESWC (Posters</article-title>
          &amp; Demos),
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhou</surname>
          </string-name>
          , et al.,
          <article-title>Towards Ontology Reshaping for KG Generation With User-In-The-Loop: Applied to Bosch Welding</article-title>
          , in: IJCKG,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhou</surname>
          </string-name>
          , et al.,
          <article-title>Scaling Usability of ML Analytics With Knowledge Graphs: Exemplified with A Bosch Welding Case</article-title>
          ,
          <source>in: IJCKG</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhou</surname>
          </string-name>
          , et al.,
          <article-title>Enhancing knowledge graph generation with ontology reshaping-bosch case</article-title>
          ,
          <source>ESWC (Demos/Industry)</source>
          , Springer (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>K. K. Breitman</surname>
          </string-name>
          , et al., Ontology in computer science,
          <source>Semantic Web: Concepts</source>
          ,
          <source>Technologies and Applications</source>
          (
          <year>2007</year>
          )
          <fpage>17</fpage>
          -
          <lpage>34</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhou</surname>
          </string-name>
          , et al.,
          <article-title>ScheRe: Schema Reshaping for Enhancing Knowledge Graph Construction</article-title>
          , in: CIKM,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Svetashova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gusmao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Soylu</surname>
          </string-name>
          , G. Cheng, R. Mikut,
          <string-name>
            <given-names>A.</given-names>
            <surname>Waaler</surname>
          </string-name>
          , E. Kharlamov,
          <article-title>SemML: Facilitating development of ML models for condition monitoring with semantics</article-title>
          ,
          <source>Journal of Web Semantics</source>
          <volume>71</volume>
          (
          <year>2021</year>
          )
          <fpage>100664</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhou</surname>
          </string-name>
          , et al.,
          <article-title>Knowledge graph-based semantic system for visual analytics in automatic manufacturing</article-title>
          ,
          <source>in: ISWC</source>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zheng</surname>
          </string-name>
          , et al.,
          <article-title>Towards a visualisation ontology for data analysis in industrial applications</article-title>
          , in: ESWC,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhou</surname>
          </string-name>
          , et al.,
          <article-title>Ontology reshaping for knowledge graph construction: Applied on bosch welding case</article-title>
          ,
          <source>in: ISWC</source>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zheng</surname>
          </string-name>
          , et al.,
          <article-title>Executable Knowledge Graphs for Machine Learning: A Bosch Case of Welding Monitoring</article-title>
          , in: ISWC, Springer,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <surname>P. M. LaCasse</surname>
          </string-name>
          , et al.,
          <article-title>A Survey of Feature Set Reduction Approaches for Predictive Analytics Models in the Connected Manufacturing Enterprise</article-title>
          ,
          <source>Applied Sciences</source>
          <volume>9</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zheng</surname>
          </string-name>
          , et al.,
          <article-title>ExeKG: Executable Knowledge Graph System for User-friendly Data Analytics</article-title>
          , in: CIKM,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>