<!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>Samet Ayçiçek</string-name>
          <email>samet.aycicek@siemens.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Doğa Çelme</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tuncay Demirtaş</string-name>
          <email>tuncay.demirtas@siemens.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Erman Ekşi</string-name>
          <email>erman.eksi@siemens.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sibel Malkoş</string-name>
          <email>sibel.malkos@siemens.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Büryan Turan</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Erhan Turan</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Siemens Sanayi ve Ticaret AS</institution>
          ,
          <addr-line>Yakacik Yolu 111 Kartal Istanbul, 81430</addr-line>
          ,
          <country country="TR">Türkiye</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Simularge A. Ş ̧.</institution>
          ,
          <addr-line>Teknopark Istanbul, 1C - 1307, Pendik, Istanbul, 34906</addr-line>
          ,
          <country country="TR">Türkiye</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The Zero Defects, Zero Waste (ZDZW) project, funded by Horizon Europe programme, proposes to develop digitally enhanced non-destructive inspection solutions to improve production efficiency and support sustainable manufacturing for European factories. One of the aims of Zero Defects, Zero Waste project, is to implement interoperable and decoupled services. Non-destructive inspection systems using thermal images captured by infrared cameras become the most efficient systems which are used to detect the defects and anomalies in the industrial processes such as thermoforming, welding, heat-sealing, chemicals, plastics, etc. In this paper thermoforming process is analyzed in scope of NonDestructive Thermal Inspection. Consequently, using advanced artificial intelligence techniques and Digital Twin models for in-line monitoring, real-time control of production processes, waste and defects can be reduced in thermoforming production processes in a passive manner without destructive methods. This paper proposes a closed loop nondestructive inspection solution which is inter-linked and interoperable with digital twin.</p>
      </abstract>
      <kwd-group>
        <kwd>1 Thermal Inspection</kwd>
        <kwd>Digital Twin</kwd>
        <kwd>Enterprise Interoperability</kwd>
        <kwd>Artificial Intelligence</kwd>
        <kwd>Computer Vision</kwd>
        <kwd>Non-Destructive Inspection</kwd>
        <kwd>Zero-Defect Manufacturing</kwd>
        <kwd>Heat Transfer</kwd>
        <kwd>Finite Element Analysis</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        The concept of digitalization is rising in the factories, with Industry 4.0. An important step for
digital transformation is the smart integration of manufacturing and inspection processes. This could
be achieved through enabled live assessment of the products’ health [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Manufacturing companies
require advanced product improvements to reduce their energy consumption while preventing
defects [2]. Zero Defect and Zero Waste (ZDZW) Horizon Europe project, funded by European Union,
aims to develop non-destructive inspection thermal applications that will work interoperable in
production lines to reduce defect and waste.
      </p>
      <p>Among multiple production processes that operate with thermal energy (heat) such as welding,
coating and injection, thermoforming is a widely used polymer shaping operation. Considering the
latest developments in Artificial Intelligence (AI) and digital twin technologies can be leveraged to
optimize the thermoforming lines. The plastic sheets used in thermoforming production lines during
heating and forming may be scrapped for different reasons. At this point, thermal inspection suite
monitors the surface of polymer sheet provides thermal data with AI to digital twin. This approach
eliminates the lack of interoperable work in production lines. Pre-determination of possible scrap
formation during production by using thermal inspection suite is important in terms of early
preventive system. Then, applying optimization with digital twin in the thermoforming line reduces
defects of plastic sheets and downtime in the thermoforming line. In this paper, we propose a system
architecture that can work independently and interoperable, thus integrating into the Zero Defect
Zero Waste (ZDZW) platform.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Concept</title>
      <p>Digital Twin is a replica of a unit for virtual testing and optimization purposes. Thermal digital
twin of thermoforming process is a system which has thermal dynamics behavior of a heating system
and its response. With the help of a digital twin, it is possible to predict thermal patterns to obtain a
certain temperature distribution on a heated part. A thermoforming machine has hundreds of heating
cells on the top and bottom of the furnace as shown in Figure 1. It is a challenging task to set the
heating powers of these cells to obtain a desired temperature pattern on the heated (plastic) sheet.
Therefore, there is a relationship between measured temperature pattern in two-dimension (2D) and
quality of the product. Also, the optimization of temperature plays a crucial role in the thermoforming
process to prevent scraps i.e. local melting of the plastic material due to excessive heating or fractures
during the molding phase.</p>
      <p>Another part of the concept is the thermal inspection suite that thermoforming solution which
monitors thermal images of heated and formed plastic sheets during thermoforming process. It is an
edge-based solution and has closed-loop communication with Digital Twin. The calibration of Digital
Twin can be done with measured temperature pattern via thermal inspection suite. For this reason,
the processing and transfer of thermal data received from the line in the factory plays a critical role
in the production line. The digital twin model integrates real-time production data from the sensors
located in the production line to the simulation data [2]. In addition to the data from the sensors, AI
driven thermal inspection suite will share the real time thermal profile data which is collecting data
from thermal cameras and detected anomaly information of the plastic sheet.</p>
      <p>It is important to detect anomalies and defects without human intervention. Artificial intelligence
is used for this purpose, as well as for signal processing, data analysis and image evaluation, because
it can adapt flexibly to changing conditions and make decisions like humans. In addition, Artificial
Intelligence encompasses a wide range of algorithms and principles of operation, including machine
learning and its subgroups such as deep learning [3]. The detected quality issues can be taught to an
AI system to match digital twin predictions and quality issues.</p>
      <p>The aim of the Zero Defect, Zero Waste Project is to implement the solution it offers by
communicating and collaborating with the two different concepts mentioned above as seen in Figure
2. Detailed information on how the method mentioned in the concept is implemented in an
interoperable way is given in the section 4. Architecture.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Methodology</title>
      <p>As demonstrated in previous studies, it is necessary to validate and calibrate the heat transfer
simulation results for the heating process by considering the temperature distribution of the sheet
[4]. The real-time input parameters used in the digital twin simulation are listed in Error! Reference
source not found.. Heat Transfer equations are employed to create the computational core of the
Digital Twin. Finite Element Analysis is the key ingredient to estimate the thermal behavior of the
thermoformed plastic sheet [4]. Critical parameters including heating array setup, cycle time, material
and geometric properties of the sheet are integrated within the context of the Digital Twin.</p>
      <p>Temperature predictions on the surface of the plastic sheet can be calculated with Heat Transfer
equations. Conductive and Radiative Heat Transfer modes represent the dominant modes of thermal
behaviors. Transient Conduction equation in three-dimensions is represented with:
!" !!" !!" ! ' (1,2)
!# =  $!$! + !%! + !!&amp;"!&amp; ,  = ()"</p>
      <p>In this equation, Temperature is denoted with T and Thermal Diffusivity is denoted by a. Left
hand side of the Conduction equation capture the time dependency while right hand side is to model
the diffusion of temperature field with the body of the part. Thermal diffusivity depends on thermal
conductivity (k), material density (r) and the Specific Heat Coefficient Cp [5]. In a similar fashion,
radiative heat transfer has its own set of equations. Rate of change of heat transfer between to surfaces
[5] are defined with:
̇ =</p>
      <p>(*+ − ,+)
1−*** + **→, + ,,</p>
      <p>1 1 − ,</p>
      <p>T, as before denotes the Temperature where e is the emissivity of the surface, s is the Stefan
Boltzmann coefficient, A is the surface area and F1--&gt;2 is the view factor between surface 1 and 2.
Emissivity is the ability of the surface to emit energy. View factor is a value which defines the position
and orientation of two surfaces against each other. In a problem with multiple surfaces, view-factors
are pre-calculated with special integrals [5]. In this work, CalculiX is used to estimate the temperature
predictions [6]. In a Thermoforming machine, a heating array is used to control the heating on the
surface of the plastic sheet. A typical heating array (also depicted in Figure 2, heating phase) is given
below and resulting Temperature profile is shared below:
(3)
The numbers on the cells show the percentage (%) of the heater Watt output, 0% meaning no heat
input where 100% fully activated cell. Since each array element has its own set value, view factors in
Equation 3 are calculated separately. Once the simulation is completed, Temperature distribution
Figure 3 can be estimated. During the heating process, the system measures the temperature of the
sheet from a single point where the calibration of the simulation results is not reliable from this single
point [4]. Therefore, a thermal inspection suite is required between the heating and molding phase.
To complete the setup of Digital Twin, a comparison is made on the Thermal Analysis against the
Thermal Camera output and the differences between the prediction and real measurements are
calculated on the surface. Using minimization algorithms, based on Gradient Descent, the heating
array output is calibrated, consequently computational core of Digital Twin is adjusted uniquely for
the Thermoforming machine.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Architecture</title>
      <p>Source of Data
Thermal Camera</p>
      <sec id="sec-4-1">
        <title>Thermal Camera</title>
      </sec>
      <sec id="sec-4-2">
        <title>Stereo Camera and Thermal</title>
        <p>Camera</p>
        <p>The traditional approach is to have a common database and a monolithic structure. However, these
traditional methods cause the problems of lack of scalability and lack of interoperability in the
industrial environment. Data collecting, processing, and analyzing parts are combined on a machine
in the monolith structure. As stated in the methodology section, data needs to be collected from
different parts of the thermoforming machine. Therefore, it is important that the services must be
distributed. In the following section 4.1. System Architecture, the distributed service-oriented
architecture is explained in detail.
4.1.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>System Architecture</title>
      <p>Our proposed architecture is based on a microservice structure. The solutions need to be integrated
to The Zero Defect Zero Waste Platform as an application. The platform is orchestrating via
Kubernetes. Each developed application must be interoperable and decoupled.</p>
      <p>The thermal inspection service proposed includes a microservice module for dynamic query and
analysis as shown in Figure 4, which provides the digital twin with flexible analysis capabilities, even
without a common database structure. One of the main advantages of the thermal inspection service's
data transmission is through a dynamic, queryable REST-API microservice. This allows for scalability
and interoperability.</p>
      <p>The thermal inspection suite and digital twin solutions are completely decoupled and
communicate using standard communication protocols such as the Open API specification. In this
way, the thermal inspection suite will be able to scale and work interoperable by orchestrating
independently from the digital twin solution.</p>
      <p>The distributed architecture proposed enables the separation of data collection, data processing,
and analysis. This separation allows for more efficient and effective handling of data. In this way,
data processing part which is explained in subsection 4.2. AI Inference Architecture can be placed
another machine or location.
4.2.</p>
    </sec>
    <sec id="sec-6">
      <title>AI Inference Architecture</title>
      <p>The approach which we proposed contains also artificial intelligence services. The services are
supporting thermal inspection suite for detecting anomalies on the polymer sheet. Thermal data
obtained from the thermal camera is pre-processed in image capturing functions of backend service
for building AI Inspection models. The trained artificial intelligence model is served via Triton
Inference Server which is installed on GPU-based machine in the factory [7]. The NVIDIA Triton
Inference Server is an open-source software that enables users to send inference requests from any
framework to any CPU- or GPU-based platform [8].</p>
      <p>In the industrial thermoforming machine, it is expensive to locate GPU-based platform on every
production line. Triton Inference Server serves the artificial intelligence model in a device-agnostic
way [8]. Therefore, the CPU-based and low-cost clients can be able to inference with artificial
intelligence model in distributed environment. With this proposed solution, the production line
devices can send an inference request to the Triton Inference server and receive the output, regardless
of the system architecture. Error! Reference source not found. shows that our distributed system
allows for flexible placement of edge-based and low-cost instances to collect data from cameras. As
explained in the 4. Architecture, the monolithic structure is coupled, requiring each unit to implement
its own artificial intelligence inference part with a GPU-based instance. This results in the need for
multiple GPU-based instances for each analyzing phase as mentioned Error! Reference source not
found.. Our approach minimizes costs by utilizing a single GPU server.</p>
    </sec>
    <sec id="sec-7">
      <title>5. Conclusion</title>
      <p>This paper presents an interlinked and interoperable system architecture solution for
nondestructive AI thermal inspection and digital twin. The architecture has been designed in the process
from taking the image from the thermal camera to returning the temperature value of the digital twin.
With the great advantage provided by the dynamic and queryable REST-API microservice structure,
the data transfer of the thermal inspection service provides scalability and interoperability. Based on
the specified methodology, the monolithic structure was not preferred because it requires obtaining
and collecting data from various parts of the thermoforming machines. Our proposed solution
decreases the GPU-based instance requirement for each inspection phase.</p>
      <p>The system is specifically designed for thermoforming machines. Regarding future work, it can be
configured for other industrial manufacturing machines.</p>
    </sec>
    <sec id="sec-8">
      <title>Acknowledgements</title>
      <p>The ZDZW project has received funding from the European Union’s Horizon Europe programme
under grant agreement No 101057404 [9].</p>
    </sec>
    <sec id="sec-9">
      <title>Declaration on Generative AI</title>
      <sec id="sec-9-1">
        <title>The author(s) have not employed any Generative AI tools.</title>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <source>[1] [2] [3] [4] [5] [6] [7] [8]</source>
          [9]
          <string-name>
            <given-names>Ghanbary</given-names>
            <surname>Kalajahi</surname>
          </string-name>
          , E.;
          <string-name>
            <surname>Mahboubkhah</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Barari</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Skin Imaging: A Digital Twin for Geometric Deviations on Manufactured Surfaces</article-title>
          . Appl. Sci,
          <year>2023</year>
          ,
          <volume>13</volume>
          , 12971, https://doi.org/ 10.3390/app132312971 Turan,
          <string-name>
            <surname>E.</surname>
          </string-name>
          et al: Sustainable
          <source>Computing: Informatics and Systems</source>
          <volume>35</volume>
          (
          <year>2022</year>
          ) 100655
          <string-name>
            <surname>Kuric</surname>
            <given-names>I</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Klarák</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bulej</surname>
            <given-names>V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sága</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kandera</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hajdučík</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tucki</surname>
            <given-names>K</given-names>
          </string-name>
          . Approach to Automated
          <source>Visual Inspection of Objects Based on Artificial Intelligence. Applied Sciences.</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <year>2022</year>
          ;
          <volume>12</volume>
          (
          <issue>2</issue>
          ):
          <fpage>864</fpage>
          . https://doi.org/10.3390/app12020864 Zienkiewicz O,
          <string-name>
            <surname>Taylor</surname>
            <given-names>R</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhu</surname>
            <given-names>JZ</given-names>
          </string-name>
          (
          <year>2013</year>
          )
          <article-title>The Finite Element Method: Its basis and Fundamentals, 7th edn</article-title>
          .
          <source>Butterworth-Heinemann</source>
          , Oxford Incropera,
          <string-name>
            <given-names>F.P.</given-names>
            ,
            <surname>DeWitt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.P.</given-names>
            ,
            <surname>Bergman</surname>
          </string-name>
          <string-name>
            <given-names>T.L.</given-names>
            ,
            <surname>Lavine</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.S.</surname>
          </string-name>
          (
          <year>2006</year>
          )
          <article-title>Fundamentals of Heat and Mass Transfer, 6th edn</article-title>
          . John Wiley &amp; Sons, New Jersey Dhondt,
          <string-name>
            <surname>G.</surname>
          </string-name>
          ,
          <year>2004</year>
          ,
          <article-title>The Finite Element Method for Three-Dimensional Thermomechanical Applications, Wiley "Triton Inference Server,"</article-title>
          [Online]. Available: https://github.com/triton-inferenceserver/server.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          (
          <year>2023</year>
          ).
          <article-title>Optimizing High Throughput Inference on Graph Neural Networks at Shared Computing Facilities with the NVIDIA Triton Inference Server</article-title>
          .
          <source>arXiv preprint arXiv:2312</source>
          .
          <fpage>06838</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>IKERLAN S. COOP</surname>
          </string-name>
          ,
          <article-title>"Non-Destructive Inspection Services for Digitally Enhanced Zero Waste Manufacturing," 4 September 2022</article-title>
          . [Online]. Available: https://cordis.europa.eu/project/id/101057404.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>