<!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>Explainability of Quality Issues in Manufacturing: a Semantic Based Approach</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Léa Charbonnier</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Franco Giustozzi</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Julien Saunier</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Cecilia Zanni-Merk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>INSA Rouen Normandie, Univ Rouen Normandie, Université Le Havre Normandie</institution>
          ,
          <addr-line>Normandie Univ, LITIS UR 4108, F-76000 Rouen</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>INSA Strasbourg, University of Strasbourg, ICube laboratory, CNRS (UMR 7357)</institution>
          ,
          <addr-line>67000 Strasbourg</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper presents an approach using stream reasoning for detecting manufacturing quality losses. To semantically detect quality issues situations, an ontology-based context for manufacturing is introduced. Moreover, as heterogeneous data streams have to be integrated, a combination of existing models using stream processing and ofline reasoning can be used. This combination allows continuous processing of data and the use of expert knowledge to detect anomalies and provide explanations to operators and stakeholders. An illustrative case study about quality assurance succeeded in detecting anomalies and proposing an explanation.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Quality Assurance and Industry 4</kwd>
        <kwd>0 (Quality 4</kwd>
        <kwd>0)</kwd>
        <kwd>Ontology</kwd>
        <kwd>Explainability</kwd>
        <kwd>Quality issues detection</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Quality issues detection and explanation</title>
      <p>
        Quality assurance in manufacturing companies is an essential process for ensuring that products meet
standards. It contributes to customer satisfaction and reduces the costs of defects. To tackle quality
issues, we propose to adapt the approach presented in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The idea is to detect situations that may lead
to quality losses by observing products and tracking abnormal sensor values. Expert knowledge will
allow the identification and assessment of the root cause that led to a detected abnormal situation.
      </p>
      <p>
        The framework proposed in Figure 1 is based on [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Three modules are used to detect and explain
quality issue situations reasoning over an ontology: Translation, Temporal Relations and Cause
Determination. This reasoning is performed in real time (stream reasoning) or ofline (classical
reasoning over an ontology).
      </p>
      <p>
        To detect quality issues, an ontology based on the Context Ontology described in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] is used. This
ontology is composed of three core ontologies (Sensor Ontology, Time Ontology, Location Ontology and
Situation Ontology) and three domain ontologies (Resource Ontology and Process Ontology). Therefore,
we propose to extend the Situation Ontology with a Quality Assurance Ontology. As the Situation
Ontology concerns only situations on machines, we want to extend it with quality issues situation
detection on products. The Quality Assurance Ontology is based on TOVE Traceability Ontology [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
which provides representation to identify and trace a quality problem. As TOVE is a core ontology, we
mainly use the idea of traceability between products and activities. This allows to link products to the
machine that produced or modified them when and where the default occurred.
      </p>
      <p>The Translation module is responsible for collecting sensor data and converting it to RDF streams
thanks to Stream Generators. This component performs a semantic enrichment of raw data using the
concepts and relations defined in the ontology. One Stream Generator is used per sensor.</p>
      <p>
        The Temporal Relations module is used to explore the data. RDF streams are continuously queried
into the Stream Reasoner using the ontology to contextualize the streams. The queries represent diferent
quality issue situations to detect. For this component, we used RSP4J [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] to query the streaming data.
The data from the detected situations is then formatted and put into the ontology.
      </p>
      <p>
        The Cause Determination module identifies the root cause and explains the problem. The Reasoner
is used over the ontology to check the consistency of the ontology and then, infer new knowledge. The
cause of the quality problem can then be determined using diferent classifiers as proposed in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Illustrative case study</title>
      <p>In this section, we present an illustrative case study created to test our framework. We consider
a manufacturing production line named PL1 composed of two machines M1 and M2 which produce
products named P1, P2 and P3. The production line is equipped with sensors that observe machine and
product properties. The sensors collect data on properties in Table 1. Constraints ranging from 1 to 8
relate to machines and the other ones relate to products.</p>
      <p>Set of constraints C
ID Properties Restriction Device ID Properties Restriction Device
1 Motor temp. &gt; 500°C M1mt1 7 Roller speed &gt; 600 mpm M2R1
2 Punching speed &gt; 2000 times/min M1p1 8 Cooling temp. &gt; 25°C M2T1
3 Punching pressure &gt; 8 MPa M1p1 9 Porosity &gt; 10 pu Pr
4 Environment temp. &lt; 25°C PL1 10 Porosity &gt; 40 pu Pr
5 Roller temp. &gt; 1300°C M2R1 11 Roughness &gt; 0.3  m Pr
6 Roller pressure &gt; 450 bar M2R1 12 Flatness &gt; 27 I-Units Pr</p>
      <p>Set of quality situations 
Sit. Constraint(T) Description
1 4 P1 water spot
2 12, 2, 3 P1 punching defects
3 11, 12, 2, 3 P1 punching defects
3 9, 4, 5, 6 P2 uneven deformations
4 9, 10, 4, 5, 6, 7 P3 surface defects</p>
      <p>Abnormal situations that could lead to machine failures are defined from expert knowledge and
expressed as a set of constraints in Table 2. Quality issues situations are also defined from expert
knowledge and expressed as a set of constraints in Table 3. They describe quality issues detected on
products and the associated machine and product constraints.</p>
      <p>Data streams are then created by the Stream Generator and continuous queries are performed on them.
To do this, the Stream Reasoner is used with an ontology containing information on the production
line. Once a situation is detected, is it added to the ontology. An of-line reasoning is done to check the
consistency of the ontology. Another Reasoner is then used to provide an explanation thanks to the
information contained in the ontology which allows to link defects found with expert information and
technical documentation.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion and future work</title>
      <p>A semantic approach to quality loss explanation in the manufacturing industry is presented. Data
streams are processed with stream reasoning allowing real-time situation detection. A context ontology
is used to help detect quality issues by enriching the information contained in the streams. In future
work, explanations of abnormal situations and their causes will be adapted according to the end user.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments References</title>
      <p>This work was supported by the French National Research Agency [grant number ANR-22-CE92-0007].</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Carvalho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. V.</given-names>
            <surname>Enrique</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Chouchene</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Charrua-Santos</surname>
          </string-name>
          ,
          <source>Quality</source>
          <volume>4</volume>
          .0:
          <string-name>
            <surname>An</surname>
            <given-names>Overview</given-names>
          </string-name>
          ,
          <source>Procedia Computer Science</source>
          <volume>181</volume>
          (
          <year>2021</year>
          )
          <fpage>341</fpage>
          -
          <lpage>346</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>T. V.</given-names>
            <surname>Andrianandrianina Johanesa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Equeter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Mahmoudi</surname>
          </string-name>
          ,
          <article-title>Survey on ai applications for product quality control and predictive maintenance in industry 4.0</article-title>
          ,
          <string-name>
            <surname>Electronics</surname>
            <given-names>13</given-names>
          </string-name>
          (
          <year>2024</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>F.</given-names>
            <surname>Giustozzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Saunier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zanni-Merk</surname>
          </string-name>
          ,
          <article-title>Abnormal Situations Interpretation in Industry 4.0 using Stream Reasoning</article-title>
          ,
          <source>Procedia Computer Science</source>
          <volume>159</volume>
          (
          <year>2019</year>
          )
          <fpage>620</fpage>
          -
          <lpage>629</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>F.</given-names>
            <surname>Giustozzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Saunier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zanni-Merk</surname>
          </string-name>
          ,
          <article-title>Context Modeling for Industry 4.0: an Ontology-Based Proposal</article-title>
          ,
          <source>Procedia Computer Science</source>
          <volume>126</volume>
          (
          <year>2018</year>
          )
          <fpage>675</fpage>
          -
          <lpage>684</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>H.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Fox</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Grüninger</surname>
          </string-name>
          ,
          <article-title>An Ontology for Quality Management - Enabling Quality Problem Identification and Tracing</article-title>
          ,
          <source>Bt Technology Journal - BT TECHNOL J</source>
          <volume>17</volume>
          (
          <year>1999</year>
          )
          <fpage>131</fpage>
          -
          <lpage>140</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>R.</given-names>
            <surname>Tommasini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Bonte</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Ongenae</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. D.</given-names>
            <surname>Valle</surname>
          </string-name>
          ,
          <article-title>RSP4J: An API for RDF Stream Processing</article-title>
          , in: Extended Semantic Web Conference,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Bellucci</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Delestre</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Malandain</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zanni-Merk</surname>
          </string-name>
          ,
          <article-title>Ontologies to build a predictive architecture to classify and explain</article-title>
          , in: DeepOntoNLP Workshop @ESWC 2022, Hersonissos, Greece,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>