<!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>REPLICA: A Solution for Next Generation IoT and Digital Twin Based Fault Diagnosis and Predictive Maintenance</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Rosaria Rossini, Davide Conzon, Gianluca Prato,</string-name>
          <email>fname.surnameg@linksfoundation.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Joa˜o Reis, Gil Gonc¸alves</string-name>
          <email>fjpcreis , gilg@fe.up.pt</email>
          <email>gilg@fe.up.pt</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Claudio Pastrone, IoT and Pervasive Technology Area, LINKS Foundation</institution>
          ,
          <addr-line>Turin</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>SYSTEC, Research Center for Systems and Technologies, Faculty of Engineering, University of Porto</institution>
          ,
          <addr-line>Porto</addr-line>
          ,
          <country country="PT">Portugal</country>
        </aff>
      </contrib-group>
      <fpage>55</fpage>
      <lpage>62</lpage>
      <abstract>
        <p>-Nowadays competitiveness goes through several as- monitoring a replica instead of the real object, a perfect virtual pects: digitalization, productivity and environmental impact. replica that interacts with both humans and machines: a Digital Technology is advancing fast and helping industries to obtain Twin. The concept of “twin” is originally derived from Nammeonret. aInndfamcot,rethdeetpaoislesdibidliatytatoabmouotnitthoeriranpdrocceosnstersolaneadcheqpuaipr-t tional Aeronautics and Space Administration (NASA)'s Apollo of the process is a strong base on which a more intelligent Project when the aircraft's twin body was a real physical and focused control can be built. Technology advance brings system [1]. Twin models help astronauts and staffs make innovation and the possibility to manage the production in decisions under emergency situations. Digital twin integrates terms of ”near future” through AI prediction and decision- the life cycle of a machine [2], and achieves a closed loop ompatkiminigzinsugppproorct.esFsorbeycarsetdinugcidnegmcaonsdtss aanndd pi mlapnrnoinvigngpreofdfiuccietinocny, and optimisation of the machine design, production, operation, without corrupting the quality of the product is a big challenge and maintenance, etc. In Magargle et al. [3], a multi-physical at the plant level. In this paper, a flexible, scalable architecture twin model is built to monitor the status of the brake system for intelligent digital twin realization called REPLICA has been through multiple angles. NASA hopes to realise the health proposed to cope with such problem and help industries to management and residual life prediction of the aircraft by saidtsvaonncetoapndofditswcooveEruproopsseiabnle porpotjiemctisz,atnioanmse.lyThCisPSarwcahritmectaunrde building a multi-physical, multi-scale Digital Twin model [4], RECLAIM, where their contribution focus on distributed sim- furthermore serveral roles are envisioned for Digital Twin in ulation and optimization, and Adaptive Sensorial Networks, the industry 4.0 scenario [5]. correspondingly. As a validation process, a hypothetical use case The present paper focuses on the proposition of an intelis presented, detailing the key differentiating points and benefits ligent digital twin architecture called REclaim oPtimization of ItnhdeepxrToepromses-daIorcTh, iDteicgtiutarleT.win, AI, Fault Diagnosis, Predictive and simuLatIon Cooperation in digitAl twin (REPLICA), that Maintenance focuses on two important aspects: 1) plug'n'play of models on demand and 2) Workflow design to orchestrate the models I. INTRODUCTION used in the Digital Twin itself. Aspect (1) aims to ease the integration and removal of models into digital twins, In the era of Industrial Internet of Things (IIoT) and Industry whenever a new version of the software is available or it 4.0, complex electromechanical systems can be equipped with performs any necessary correction in the used models. The a variety of sensors providing new opportunities for the goal of the latter aspect is dedicated to the creation of a development of Health Monitoring and Management Systems. pipeline that can manage the flow of data among all the These new opportunities target an optimum exploitation of available models. These models might be from pure data available information in order to maximize the performance processing and decision making, from sensor and actuator of the machinery and optimize the process. Focusing on the integration, to third party synchronization with information increase of production reliability and safety, as well as on the systems such as Manufacturing Execution Systems (MES) reduction of costs, there is an ever increasing industrial need or Enterprise Resource Planning (ERP). Most digital twins, not only for accurate and on time online diagnostics, but also and in particular intelligent digital twin architectures focus for a robust and early estimation of the Remaining Useful Life on providing the best set of models that one should have (RUL) of the defected components, within a high confidence to accomplish, e.g. predictive maintenance, from the type of interval, independent of the operating conditions. simulation required to machine learning models that should be For this reason, and many others, a new concept of 'inter- refined based on newly acquired data. Furthermore, REPLICA action' with the process arose; a concept of controlling and can allow a flexible and distributed deployment in such a</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        way that both completely cloud or mixed edge/cloud solutions In [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] and [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], the authors show how it is possible
deployment are accepted, with respect to the need of the to build a DT of machines and systems of systems to allow
specific application. autonomous smart manufacturing, but these works, while
      </p>
      <p>
        However, these architectures are normally rigid and do not interesting, are not specifically presenting a solution for fault
support changing software models or even easily set up the diagnosis and predictive maintenance.
orchestration of those resources. Fixed data flows are generally The authors of [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] introduce a solution for predictive
mainhardcoded, meaning that if an implementation needs to be tenance of computer numerical controlled machines, based
modified, changes in code are required. This is often not on DT. They demonstrate how the exploitation of a DT for
recommended since these changes might negatively influence predictive maintenance can provide better results compared to
the stability of the system. To this intent, an architecture that more traditional approaches. Even if this work provides a good
addresses these challenges is presented. example of application of DT for predictive maintenance, it
      </p>
      <p>The paper is organized as follows: in Section II, the authors doesn’t aim to present a solution that can be leveraged in other
introduce a literature review about predictive maintenance and scenarios.
fault diagnosis based on digital twin. Complementary, Section In this paper, the authors intend to propose a novel
arIII presents the core technologies of the solution presented chitecture that supports several features missing in the other
in this paper. Section IV describes the architecture of the solutions presented above. Specifically, the proposed solution
solution proposed and Section V presents a first prototype is not based on a set of fixed components but it can integrate
implementation followed by Section VI in which a possible heterogeneous modules, in terms of Internet of Things (IoT)
application is described. Finally, Section VII concludes the sensors, AI algorithms and simulation tools, easing its
cuspaper by summarizing and discussing the work. tomization in different use-cases. Furthermore, thanks to the
flexibility guaranteed by the distributed nature of the system,
II. LITERATURE REVIEW the setting-up of the platform can easily be adapted to the each
specific industrial infrastructure, selecting the most suitable
mix of edge/cloud deployed components.</p>
      <p>Moreover, the proposed architecture can support the creation
at runtime of workflows both among the AI modules as well
as between the IoT sensors and the models. This drastically
reduces the time needed to run and collect results from the
AI algorithms. In these terms, a possible process optimization
can be quickly evaluated and eventually discarded if not
appropriate. Finally, all the entities (sensors, AI modules and
simulators) can be substituted following a plug&amp;play approach
that ease the adaption of the system to the changes in the
physical world.</p>
    </sec>
    <sec id="sec-2">
      <title>With the rapid advancement of Cyber-Physical Production</title>
      <p>
        Systems, Artificial Intelligence (AI) and IIoT, Digital Twin
(DT) has gained increasing attention due to its capability to
adapt and replicate the industry processes. Accordingly to
these changes, many different DT architectures have been
proposed to realize several use cases in an intelligent and complex
production system. Industrial AI [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] brings to the processes
self-aware, self-adapt, and self-configure functionalities and
facilitates the integration of the DT.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], the authors propose to insert an intelligent DT in
the Cyber Layer architecture. The concept has been partially
realized with two industrial use cases, namely a modular
production system as well as a metal forming industrial process
to show its potential and gains over the challenges in
CyberPhysical System (CPS), i.e., synchronization throughout the
lifecycle of a cyber-physical production system; development
of the DT, which can contain different models; the
interaction between DT, both for the purpose of co-simulation and
operation data exchange; and the active data acquisition.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], the authors present a methodology for enabling
DT using advanced physics-based modelling in predictive
maintenance. This methodology for advanced physics-based
modeling aims to enable the DT concept in predictive
maintenance application and consists of two main points: digital
model creation and DT enabling. Then, the user is able to
define, create and utilize the digital model of a resource, as
well as its DT. The integration of DT and deep learning in CPS
environment has been also proposed in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] for the development
and realization of smart manufacturing.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], the authors present solutions for fault diagnosis
based on DT. The paper includes an experiment and interesting
results obtained with the software proposed. Compared to
the solution presented in this paper, this work has a limited
flexibility since it is only suitable for fault diagnosis.
      </p>
    </sec>
    <sec id="sec-3">
      <title>III. CORE TECHNOLOGIES</title>
      <sec id="sec-3-1">
        <title>A. RECLAIM platform</title>
        <p>Following the industry 4.0 paradigm, the business models
of manufacturing companies need to be transformed, resetting
their strategies to improve productivity and quality. The current
maintenance strategies often require the user to manually
analyse data collected to extract useful information from them
and, furthermore, periodic human inspection is required to
assess the real condition of the assets monitored.</p>
        <p>Currently, the lack of continuous operation and health status
monitoring tools and predictive maintenance solutions lead
to unpredictable situations in industry like sudden machine
operation failures. In this case, the current common procedure
is to ask the intervention of technicians, which then try to
repair and solve the problem. This causes several problems:
it is time-consuming; it leads to production delays since the
machine is stopped until it is not repaired; it doesn’t support
resources distribution. The industry 4.0 paradigm goes in the
direction to address such problems through different actions: 1)
re-manufacturing systems for material and resource efficiency,
2) increased flexibility in changing machine operation purpose,
3) application of big data analytics techniques, and 4)
predictive analytics and model-based forecasts and optimization
procedures, based on completely data-driven processes.</p>
        <p>These four suggestions have been the funding principles
of the RE-manufaCturing and Refurbishment LArge Industrial
equipMent (RECLAIM) concept definition. The main
objective of the project is to increase productivity, extending the
lifetime of the machines and reducing the time and cost of
machinery refurbishment and/or re-manufacturing. This
objective will be achieved designing and developing a set of tools
supporting several activities: from the monitor of machines’
health status, to the implementation of adequate recovery
strategy (e.g., refurbishment, re-manufacturing, upgrade,
maintenance, repair, recycle, etc.). To achieve this, the RECLAIM
outcomes will include two main components: an Adaptive
Sensorial Network used to collect data and a Decision Support
Framework (DSF) for optimization based on different criteria.
Specifically one of the technologies supporting the DSF is the
proposed REPLICA where simulation and optimization is used
for fault diagnosis. The Adaptive Sensorial Network is one of
the key elements to be used in the proposed architecture and
is seen as an entry point for the essential data to be used.</p>
      </sec>
      <sec id="sec-3-2">
        <title>B. CPSwarm Simulation and Optimization Environment</title>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>As indicated in [15], the CPSwarm Workbench - the set</title>
      <p>
        of tools released by the project for the development of CPS
swarms applications - includes also a Simulation and
Optimization Environment, used to evaluate the performance of
a swarm solution. Such solution is composed mainly by: the
Simulation and Optimization Orchestrator (SOO), which
oversees the simulation and optimization tasks; a set of Simulation
Managers (SMs), which provide common Application
Programming Interface (API) to control heterogeneous Simulation
Tools (STs); and an Optimization Tool (OT) used to perform
the optimization processes. The network-based architecture is
depicted in Fig. 1.
number of CPSs used, leveraging evolutionary design
methodologies. In the latter case, candidate parameter sets are ranked
based on a fitness score computed after the controller was
executed with those parameters in a predefined environment.
Successful parameter sets are then adapted to produce a new
generation of candidates to be tested. This is a high time- and
resource-consuming process, which requires a high number of
simulation runs. To address this, the CPSwarm solution allows
to parallelize the execution of these simulations, reducing the
times required to complete an optimization. For this objective,
the Simulation and Optimization Environment has a
networkbased architecture, allowing to parallely use a set of STs
distributed on different machines [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. This architecture has
been implemented leveraging the eXtensible Messaging and
Presence Protocol (XMPP) protocol, already tested executing
multiple simulations on Robot Operating System (ROS)-based
STs, i.e., Stage, Gazebo and Virtual Robot Experimentation
Platform (V-REP). In the last release of the software (available
as open-source on github1), a set of technologies have been
integrated to improve its scalability and easy-to-use, i.e.,
docker and Kubernetes. Such final release has been tested,
showing that it is able to scale till 128 SMs and that the time
required to complete one optimization is inversely proportional
to the number of STs used. Finally, a proof of concept has
demonstrated the ability to deploy the controller with the
optimized parameters onto CPSs.
      </p>
      <p>The concept of distributed simulation and optimization
is brought to the proposed REPLICA architecture by the
CPSwarm results and the whole orchestration process and
main building blocks are inspired by this project.</p>
    </sec>
    <sec id="sec-5">
      <title>IV. ARCHITECTURE</title>
    </sec>
    <sec id="sec-6">
      <title>Such environment is useful both to simulate the behaviour</title>
      <p>of a designed swarm solution in a ST, leveraging the ST’s
Graphical User Interface (GUI) to evaluate its behaviour; and,
on the other side, to optimize the controller parameters of
algorithm/module, and possible aspects of the problem, i.e., the</p>
      <p>Fig. 2. REPLICA Architecture.
synchronization with those using the data collected; and a set
of AI modules connected to these models. REPLICA fully
supports this concept, providing the infrastructure to integrate
these technologies.</p>
      <p>In REPLICA, the Digital Twin Orchestrator (DTO) is the
module in charge to manage all the IoT data flow coming from
the field: machinery data, historical data and other data from
legacy systems already present in the shop-floor. As described
in Section III, these data are flowing through a component
of the RECLAIM platform, the Adaptive Sensorial Network.
Furthermore, the DTO is in charge to create the correct flow
among the AI modules running in the AI environment and
the machine models running in the Simulation Environment.
Finally, the DTO oversees the storing and organization of
the processed and simulated data, which are saved in a local
database.</p>
      <p>In REPLICA every machinery of interest has a
corresponding realistic model running in one of the simulators
integrated in the Simulation Environment. Specifically, the
Simulation Environment is a distributed environment based on
the one presented in Section III-B. Similar to what has been
presented for the original solution about swarm intelligence,
the environment supports a set of heterogeneous simulators
distributed in different machines. Each of these simulators
is wrapped by a Simulation Manager, and the role of this
component is to abstract the functionalities provided by the
simulators using the standard API exported by the DTO. In
this way, the DTO can: 1) control the simulators to run the
required simulations; 2) inject the data needed to keep the
models synchronized with the real machines; 3) inject in the
simulators data produced by the AI algorithms (for example to
simulate failures); 4) receive from the simulators the produced
results. Finally, the Simulation Environment supports for each
integrated simulator one advanced Simulator GUI that allows
to monitor the simulated device. This GUI is the one integrated
in the simulator, which provides a graphical representation
(also 3D) of the simulated device.</p>
      <p>Finally, in REPLICA the AI algorithms are hosted and
executed in the AI Environment. This environment allows to
host and run heterogeneous algorithms for fault diagnosis and
predictive maintenance. Besides the algorithms, the
environment also hosts a module called AI engine. This module has
the objective to orchestrate the algorithms creating the needed
workflows among them. Furthermore, the AI Engine uses the
API provided by the DTO to interconnect the AI modules with
the machine models and the data coming from the shop-floor.</p>
      <p>The architecture is completed by the two interfaces in the
Frontend: the OutputMonitor GUI is used to monitor in real
time the results produced by the running solutions in a user
friendly interface. Instead, the Configuration GUI is leveraged
by the users of the system to configure the AI engine for the
needed tasks.</p>
      <p>The proposed architecture aims to provide the following key
features: 1) Allowing the integration of heterogeneous
components in terms of sensors data collected from the field, AI
algorithms and simulators running accurate machine models in the
shop-floor; 2) Supporting the creation at runtime of workflows
not only among both AI modules and the IoT sensors, but also
among themselves; 3) Supporting the plug&amp;play at runtime
of the IoT sensors, the AI modules and machine models,
without the need to restart the system; 4) Easing the adaptation
of the digital twin to the changes in the physical world; 5)
Enabling a flexible and distributed deployment: supporting
both completely cloud or mixed edge/cloud solutions, based
on the need of the specific application.</p>
      <p>A first partial implementation of the proposed architecture
and a set of possible future works for the part not yet
implemented is presented in the next section.</p>
    </sec>
    <sec id="sec-7">
      <title>V. PRELIMINARY IMPLEMENTATION AND FUTURE</title>
      <p>PROSPECTS</p>
      <p>This section presents the first prototype of the proposed
architecture. The solution is a combination of newly developed
components and the evolved version of components already
developed in previous European Union (EU) projects. For
the new components, this section will introduce only some
possible technologies that the authors are evaluating and
testing so far to leverage and implement the architecture, while
for the existing components a more concrete implementation is
presented. More specifically, the software already implemented
is one algorithm for predictive maintenance, one for fault
diagnosis and a distributed simulation environment already
developed in CPSwarm, while the components yet to be
implemented are the AI environment, the AI engine, the DTO,
the Configuration GUI and the OutputMonitor GUI.</p>
    </sec>
    <sec id="sec-8">
      <title>The authors have chosen to base the AI environment on a</title>
      <p>docker container based solution. Each predictive maintenance
and fault diagnosis algorithm will be wrapped in one container.
In this way the AI environment will support the integration of
AI modules based on different technologies.</p>
      <p>Two examples of solutions currently supported in the AI
environment are the fault diagnosis and predictive maintenance
modules presented in Fig. 3 and 4. The fault diagnosis module
is composed by techniques to find abnormal behaviors that
deviate from normal process conditions to raise warnings
and find root causes for the problem. This algorithm will be
fed directly with sensor data (when possible and pertinent)
or transformed data from the field in order to be more
interpretable. Based on the analysis of data streaming, the
algorithm should indicate if a warning should be sent to the
key personnel to check the system. This algorithm is the first
front-line of analysis from shop-floor components in order to
understand machine’s health.</p>
      <p>
        Additionally, the predictive maintenance module is
composed of 1) a component failure prediction in the future
(e.g. 48h and which maintenance action should take place);
2) Optimization module for scheduling future maintenance
actions based on the existing scheduling; 3) Simulation module
that aims at assessing the impact of changes in the machine
and shop-floor [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. The main idea of this method is to predict
what kind of maintenance and when it will be required based
on the failing component in the machine. With this, it will be
possible to understand what changes need to be done in order
to compensate the downtime of the failing machine.
      </p>
      <p>
        As can be seen from Figure 3, the implementation already
follows a block based approach which allows a better
flexibility once building the required data workflows among models.
For this particular case, the Dynamic INtelligent Architecture
for Software MOdular REconfiguration (DINASORE) [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]
platform was used, which is a run-time environment
developed in python language for the International
Electrotechnical Commission (IEC) 61499 standard [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] and integrated
with the Eclipse based Framework for Distrubeted Industrial
Automation and Control (4DIAC) Integrated Development
Environment (IDE) [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]. Moreover, this implementation does
not only allow for the orchestration of models, but also the
plug&amp;play of such models in a distributed system, where
software can be reconfigured on-demand. This supports both
completely cloud or mixed edge/cloud systems, depending on
the required application and the number of machines available
for execution. Finally, since DINASORE is implemented in
python, the state of the art implementations of AI can be
promptly used.
      </p>
      <p>For the implementation of the AI Engine that interconnects
the AI modules, the authors have already evaluated several
solutions. One is the possibility to run the modules in a
docker environment, making them read and write from text
files located in specific folders and then interconnect them
through a software that allows to handle the workflow, e.g.,
Node-red or NiFi. Another evaluated solution is the possibility
to use Acumos AI to implement the AI environment; in this
case, the deployment of the containers, the interconnection of
the components and the workflow will be handled by tools
included in the framework. At the moment of writing, the
final solution to be used is still under evaluation and the
authors are investigating if Acumos AI satisfies all the needed
requirements of the AI environment, particularly focusing on
the possibility to add and remove AI modules at run-time and
the dynamic change of their interconnections to create new
workflows.</p>
      <p>
        For the implementation of the DTO and the Simulation
Environment, the Simulation and Optimization Environment
solutions provided by CPSwarm will be leveraged and extended.
Specifically, REPLICA will incorporate the communication
API based on XMPP and the deployment system, based on
docker and Kubernetes [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ]. The use of these technologies will
allow to integrate heterogeneous simulators, to simply deploy
and run the simulations needed on distributed machines, add
and remove at run-time the simulators running different
models. More specifically, in the Simulation Environment,
considering that the solutions proposed in CPSwarm was integrating
only ROS based simulators, new types of simulators, e.g.,
java based simulators, will be included during the RECLAIM
project. For this scope, a specific SM will be developed for the
required simulators and the API will be refactored to support
also these new simulators. Beside the SM, also docker
containers to easily deploy such simulators will be created. Instead,
for the implementation of the DTO, the authors have defined
that the SOO implemented in CPSwarm will be completely
refactored and extended to support the functionalities required
by REPLICA. Additionally, only some of the functionalities
of the SOO will be leveraged, extending them to support
data storage and data analysis features. Finally the DTO will
provide a set of API based on some standard technologies,
e.g., Message Queue Telemetry Transport (MQTT), which will
allow to collect data to be used by the algorithms and to keep
the models updated and synchronized with the physical world.
Thanks to these API, the DTO will be able to collect data
from heterogeneous devices that, in the RECLAIM platform,
are integrated through the IoT Gateway (see Section II). Also
in this case, it will be possible to add and remove devices
at run-time, without the need to restart the system. The new
devices can be immediately used by the solution developed,
just after they have registered themselves.
      </p>
      <p>Finally, for the implementation of the GUI included in the
architecture, the presented modules are in different phases
of development. Specifically, for the Configuration GUI, the
authors have not yet chosen how to implement it and different
solutions will be evaluated, keeping in consideration a
thorough integration with the rest of the platform. Instead, for the
Output/Monitor GUI, for the monitoring and assessment of the
results of the algorithms, a simple implementation based on
the work done in CPSwarm is already available. Specifically,
this solution is based on Thingsboard, which has been used
to develop two different GUI: one for process monitoring and
another one for the assessment of results. The first one shows
live data in a chart and allows the monitoring of the process;
the latter one, instead, shows the data in a table, where it can be
sorted by column (one column for each data). These GUIs have
been used in this first implementation, but the possibility to
enhance or completely replace them with something different,
based on the requirements of the solution proposed, will be
evaluated in the future.</p>
    </sec>
    <sec id="sec-9">
      <title>VI. RECLAIM USE CASE</title>
    </sec>
    <sec id="sec-10">
      <title>The aim of this section is to present a possible application</title>
      <p>of the solution presented in this paper, focusing on the
predictive maintenance and refurbishment of a large Woodworking
Production Line. The main objective of such use case will be
to show the benefits of the adoption of advanced maintenance
strategies in a large scale industrial scenario.</p>
      <p>The selected scenario presents different challenges: firstly,
the need to integrate in a single environment both
heterogeneous data collected by installed sensors at the shop-floor
and AI modules; together with the realistic models of the
machines, enabling and easing the construction of a
shopfloor’s digital twin. Moreover, the proposed solution will have
to optimize the use of a large industrial equipment providing
novel machine learning solutions able to monitor the current
system status and predict possible failures. In particular, the
exploitation of fault diagnosis and predictive maintenance
techniques based on the use of digital twin will increase
the efficiency of the maintenance activity with respect to the
performance obtained with the traditional methods based on a
fixed schedule and a simple telemetry analysis.</p>
      <p>The flexibility and adaptability of REPLICA can be well
demonstrated both during the system setup in the industrial
site and in case of replacement of one machine in the
Woodworking Production Line.</p>
      <p>In the first case, when the platform is going to be deployed,
the data collected by the Adaptive Sensorial Network and a
set of AI algorithms for fault diagnosis and predictive
maintenance developed by different analysts have to be integrated.
Furthermore, to allow the simulation of different operative
scenarios, the realistic models of different machines have to
be imported and executed in one simulator.</p>
      <p>Using REPLICA, the effort to make all these components
provided by heterogeneous vendors working together is
significantly reduced, allowing their integration by simply exposing
their inputs/outputs through the REPLICA defined interfaces.
In particular, for the machine simulation, if the simulator used
to execute it is already supported by REPLICA, no further
developments are needed; otherwise only the SM for that
simulator needs to be developed to allow its integration with
the rest of the solution. The same advantage can be considered
also for the AI algorithms: if the ones already integrated
in the AI environment are suitable for the specific case, no
developments are necessary and the platform should be just
configured to enable the correct flow of data among different
components. Otherwise, to integrate a new algorithms, the only
requirement is to implement the inputs/outputs API defined in
REPLICA.</p>
      <p>Once all the components are connected, the AI modules can
be trained using the data coming from the Adaptive Sensorial
Network (as it is usually done), but also with data produced
by the simulated machines. The integration of this secondary
source of data not only allows to speed up the training process
(more data available means less time to learn) but also to add
the possibility of using data that are generally more difficult to
collect, such as the one associated with specific failures that,
for obvious reasons, are not so common in a real industrial
plant.</p>
      <p>The advantages of the REPLICA solution can be further
demonstrated taking into consideration the scenario of a
machines part replacement in the production line which is
already monitored by the system. In this case, the administrator
of the platform needs to update the components used for
the fault diagnosis and predictive maintenance to reflect the
new situation on the field. In a traditional system, this is a
process that requires a complete shutdown of the system in
order to setup and reconfigure it; instead, by using REPLICA
the process is fast and mainly automatic. Indeed, for the
replacement of the simulation models, this can be done just
removing the old simulator and instantiating a new one with
the updated model, taking advantage of the integration of
the solution with Kubernetes. Once the updated simulator
is instantiated, the same process can be applied to the AI
algorithms, which can replace the previous ones. All these
updates can be done without the need to interrupt the execution
of the system. Obviously, if this change requires the integration
of some new AI modules or the development of a new SM,
these have to be implemented in advance. Also the workflow
of the components need to be updated to interconnect the new
ones, and can be done simply by using the tools provided
by AI engine and DTO. These will automatically update the
workflow to reflect the status of the components available in
the system and that allow the administrator to easily create the
new workflows. Finally as for the previous use-case, REPLICA
can also be used to speed up the training time needed to have
the new algorithms ready to be used, supporting the use of
simulated data, instead of using the actual devices.</p>
    </sec>
    <sec id="sec-11">
      <title>VII. CONCLUSION</title>
    </sec>
    <sec id="sec-12">
      <title>The paper has presented REPLICA, a solution that enables</title>
      <p>the application of innovative fault diagnosis and predictive
maintenance techniques based on DT. The software proposed
is part of a more complex platform developed by the
RECLAIM project that provides a complete software solution
for both extending machinery lifetime while also improving
productivity and performance.</p>
      <p>The paper shows the main key innovations introduced by
REPLICA in terms of fault diagnosis and predictive
maintenance techniques based on DT. Specifically, one of the basic
concepts of REPLICA is to build the solution not as unique
suite of technologies, but as a run-time environment with APIs
that allow the integration of heterogeneous AI modules and
simulators. In this way, the solution can be easily customized
to be used in different industrial sites, integrating components
provided by different vendors, without requiring the
development of new components, but just adapting the existing
ones. Furthermore, using REPLICA the user can integrate
and replace AI modules and simulation models at run-time,
without the necessity to stop the system and reconfigure it.
REPLICA provides tools to interconnect among each other
the different modules with the data collected from the field.
This allows the creation and the modification at run-time
of the workflows needed for fault diagnosis and predictive
maintenance, adding/removing/replacing entities to reflect the
situation of the components available in the system.</p>
      <p>In this work, the authors introduced the details of the
first implementation of the proposed architecture; since the
development currently is only in a preliminary phase, Section
V presents the implementations of the modules that were
evolved from previous EU projects’ outcomes. Instead, for
the new components only some initial design choices are
presented. In particular, the AI environment and the DTO have
been just designed and will be developed in next phases of the
project, while the Simulation Environment is already available
and only some SMs for new simulators will be developed.
In the same way, a dashboard for monitoring and results
assessment is ready, while the GUI for configuration has still
to be implemented.</p>
      <p>Finally, the authors have provided in Section VI two use
cases based on one realistic industrial scenario, which show
the advantages of using the proposed solution to apply fault
diagnosis and predictive maintenance techniques based on
digital twin.</p>
    </sec>
    <sec id="sec-13">
      <title>ACKNOWLEDGMENT</title>
    </sec>
    <sec id="sec-14">
      <title>The work presented here was part of the project</title>
      <p>”RECLAIM- RE-manufaCturing and Refurbishment LArge
Industrial equipMent” and received funding from the European
Union’s Horizon 2020 research and innovation programme
under grant agreement No 869884.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosen</surname>
          </string-name>
          , G. [von Wichert],
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Lo, and</article-title>
          K. D. Bettenhausen, “
          <article-title>About the importance of autonomy and digital twins for the future of manufacturing,” IFAC-PapersOnLine</article-title>
          , vol.
          <volume>48</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>567</fpage>
          -
          <lpage>572</lpage>
          ,
          <year>2015</year>
          ,
          <source>15th IFAC Symposium onInformation Control Problems inManufacturing.</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>F.</given-names>
            <surname>Tao</surname>
          </string-name>
          , J. Cheng,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Qi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , H. Zhang, and
          <string-name>
            <given-names>F.</given-names>
            <surname>Sui</surname>
          </string-name>
          , “
          <article-title>Digital twindriven product design, manufacturing and service with big data,”</article-title>
          <source>The International Journal of Advanced Manufacturing Technology</source>
          , vol.
          <volume>94</volume>
          , 02
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>R.</given-names>
            <surname>Magargle</surname>
          </string-name>
          , L. Johnson, P. Mandloi,
          <string-name>
            <given-names>P.</given-names>
            <surname>Davoudabadi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Kesarkar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Krishnaswamy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Batteh</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Pitchaikani</surname>
          </string-name>
          , “
          <article-title>A simulation-based digital twin for model-driven health monitoring and predictive maintenance of an automotive braking system</article-title>
          ,”
          <source>in Proceedings of the 12th International Modelica Conference</source>
          , Prague, Czech Republic, May
          <volume>15</volume>
          - 17,
          <year>2017</year>
          ,
          <volume>07</volume>
          2017, pp.
          <fpage>35</fpage>
          -
          <lpage>46</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>E.</given-names>
            <surname>Negri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Fumagalli</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Macchi</surname>
          </string-name>
          , “
          <article-title>A review of the roles of digital twin in cps-based production systems</article-title>
          ,
          <source>” Procedia Manufacturing</source>
          , vol.
          <volume>11</volume>
          , pp.
          <fpage>939</fpage>
          -
          <lpage>948</lpage>
          ,
          <year>12 2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5] --, “
          <article-title>A review of the roles of digital twin in cps-based production systems</article-title>
          ,
          <source>” Procedia Manufacturing</source>
          , vol.
          <volume>11</volume>
          , pp.
          <fpage>939</fpage>
          -
          <lpage>948</lpage>
          ,
          <year>12 2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Davari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and V.</given-names>
            <surname>Pandhare</surname>
          </string-name>
          , “
          <article-title>Industrial artificial intelligence for industry 4.0-based manufacturing systems</article-title>
          ,
          <source>” Manufacturing Letters</source>
          , vol.
          <volume>18</volume>
          , pp.
          <fpage>20</fpage>
          -
          <lpage>23</lpage>
          ,
          <year>2018</year>
          . [Online]. Available: http://www.sciencedirect.com/science/article/pii/S2213846318301081
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>B. A.</given-names>
            <surname>Talkhestani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Jung</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Lindemann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Sahlab</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Jazdi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Schloegl</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Weyrich</surname>
          </string-name>
          , “
          <article-title>An architecture of an intelligent digital twin in a cyber-physical production system,” atAutomatisierungstechnik</article-title>
          , vol.
          <volume>67</volume>
          , no.
          <issue>9</issue>
          , pp.
          <fpage>762</fpage>
          -
          <lpage>782</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>P.</given-names>
            <surname>Aivaliotis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Georgoulias</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Arkouli</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Makris</surname>
          </string-name>
          , “
          <article-title>Methodology for enabling digital twin using advanced physics-based modelling in predictive maintenance</article-title>
          ,”
          <string-name>
            <surname>Procedia</surname>
            <given-names>CIRP</given-names>
          </string-name>
          , vol.
          <volume>81</volume>
          , pp.
          <fpage>417</fpage>
          -
          <lpage>422</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Azamfar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Singh</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Siahpour</surname>
          </string-name>
          , “
          <article-title>Integration of digital twin and deep learning in cyber-physical systems: towards smart manufacturing,” IET Collaborative Intelligent Manufacturing</article-title>
          , vol.
          <volume>2</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>34</fpage>
          -
          <lpage>36</lpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Liu</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zheng</surname>
          </string-name>
          , “
          <article-title>A digital-twin-assisted fault diagnosis using deep transfer learning</article-title>
          ,
          <source>” IEEE Access</source>
          , vol.
          <source>PP</source>
          , pp.
          <fpage>1</fpage>
          -
          <issue>1</issue>
          ,
          <year>01 2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>K.</given-names>
            <surname>Ding</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. T.</given-names>
            <surname>Chan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , G. Zhou, and
          <string-name>
            <given-names>F.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , “
          <article-title>Defining a digital twin-based cyber-physical production system for autonomous manufacturing in smart shop floors</article-title>
          ,”
          <source>International Journal of Production Research</source>
          , vol.
          <volume>57</volume>
          , no.
          <issue>20</issue>
          , pp.
          <fpage>6315</fpage>
          -
          <lpage>6334</lpage>
          ,
          <year>2019</year>
          . [Online]. Available: https://doi.org/10.1080/00207543.
          <year>2019</year>
          .1566661
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>G.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Chao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Ding</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Wang</surname>
          </string-name>
          , “
          <article-title>Knowledge-driven digital twin manufacturing cell towards intelligent manufacturing</article-title>
          ,”
          <source>International Journal of Production Research</source>
          , 04
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>M.</given-names>
            <surname>Borth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Verriet</surname>
          </string-name>
          , and G. Muller, “
          <article-title>Digital twin strategies for sos 4 challenges and 4 architecture setups for digital twins of sos</article-title>
          ,”
          <volume>05</volume>
          2019, pp.
          <fpage>164</fpage>
          -
          <lpage>169</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>W.</given-names>
            <surname>Luo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ye</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wei</surname>
          </string-name>
          , “
          <article-title>A hybrid predictive maintenance approach for cnc machine tool driven by digital twin,” Robotics and Computer-Integrated Manufacturing</article-title>
          , vol.
          <volume>65</volume>
          , p.
          <volume>101974</volume>
          ,
          <issue>10</issue>
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>M.</given-names>
            <surname>Jdeed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Schranz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bagnato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Suleri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Prato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Conzon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Sende</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Brosse</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Pastrone</surname>
          </string-name>
          , and W. Elmenreich, “
          <article-title>The cpswarm technology for designing swarms of cyber-physical systems,”</article-title>
          <source>in Proc. Int. Conf. on The Research Project Showcase of Software Technologies: Applications and Foundations (STAF)</source>
          ,
          <year>Jul</year>
          .
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>M.</given-names>
            <surname>Rappaport</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Conzon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Jdeed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Schranz</surname>
          </string-name>
          , E. Ferrera, and W. Elmenreich, “
          <article-title>Distributed simulation for evolutionary design of swarms of cyber-physical systems,”</article-title>
          <source>in Proc. Int. Conf. on Adaptive and SelfAdaptive Systems and Applications (ADAPTIVE)</source>
          .
          <source>IARIA, Feb</source>
          .
          <year>2018</year>
          , pp.
          <fpage>60</fpage>
          -
          <lpage>65</lpage>
          , ISBN:
          <fpage>978</fpage>
          -1-
          <fpage>61208</fpage>
          -610-1.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>L.</given-names>
            <surname>Anta</surname>
          </string-name>
          ˜o,
          <string-name>
            <given-names>J.</given-names>
            <surname>Reis</surname>
          </string-name>
          , and G. Gonc¸alves, “
          <article-title>Continuous maintenance system for optimal scheduling based on real-time machine monitoring</article-title>
          ,” in
          <source>2018 IEEE 23rd International Conference on Emerging Technologies and Factory Automation (ETFA)</source>
          ,
          <source>vol. 1</source>
          . IEEE,
          <year>2018</year>
          , pp.
          <fpage>410</fpage>
          -
          <lpage>417</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <surname>Digital</surname>
            and
            <given-names>I. I.</given-names>
          </string-name>
          <string-name>
            <surname>Lab</surname>
          </string-name>
          .
          <article-title>Dinasore - dynamic intelligent architecture for software and modular reconfiguration</article-title>
          . [Online]. Available: https: //digi2-feup.github.io/dinasore/
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>G.</given-names>
            <surname>Cengic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Ljungkrantz</surname>
          </string-name>
          , and
          <string-name>
            <given-names>K.</given-names>
            <surname>Akesson</surname>
          </string-name>
          , “
          <article-title>Formal modeling of function block applications running in iec 61499 execution runtime</article-title>
          ,” in
          <source>2006 IEEE Conference on Emerging Technologies and Factory Automation</source>
          , Sep.
          <year>2006</year>
          , pp.
          <fpage>1269</fpage>
          -
          <lpage>1276</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>T.</given-names>
            <surname>Strasser</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rooker</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Ebenhofer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zoitl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Sunder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Valentini</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Martel</surname>
          </string-name>
          , “
          <article-title>Framework for distributed industrial automation and control (4diac),”</article-title>
          <source>in 2008 6th IEEE International Conference on Industrial Informatics</source>
          ,
          <year>July 2008</year>
          , pp.
          <fpage>283</fpage>
          -
          <lpage>288</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>C.</given-names>
            <surname>Consortium</surname>
          </string-name>
          , “
          <article-title>Finalintegration of external simulators</article-title>
          ,
          <source>d6.7,” Deliverable of the CPSwarm Project</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>