Next Article in Journal
Aerodynamic Drag Reduction Analysis of Race Walking Formations Based on CFD Numerical Simulations and Wind Tunnel Experiments
Next Article in Special Issue
Poka Yoke in Smart Production Systems with Pick-to-Light Implementation to Increase Efficiency
Previous Article in Journal
Explicit Method in the Seismic Assessment of Unreinforced Masonry Buildings through Plane Stress Elements
Previous Article in Special Issue
Development and Verification of a Simulation Model of an Automated Assembly Line
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Cyberphysical System Modeled with Complex Networks and Hybrid Automata to Diagnose Multiple and Concurrent Faults in Manufacturing Systems

by
Alejandro Velazquez
1,*,
Fernando Martell
1,
Irma Y. Sanchez
2 and
Carlos A. Paredes
1
1
Technology Development Department Centro de Investigaciones en Óptica, A.C., Aguascalientes 20200, Mexico
2
Research and Development Department Ingeniería Mecatrónica, SA de CV., Aguascalientes 20235, Mexico
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(19), 10603; https://doi.org/10.3390/app131910603
Submission received: 27 July 2023 / Revised: 26 August 2023 / Accepted: 1 September 2023 / Published: 22 September 2023
(This article belongs to the Special Issue Smart Manufacturing Systems in Industry 4.0)

Abstract

:
Cyber–physical systems use digital twins to provide advanced monitoring and control functions, including self-diagnosis. The digital twin is often conceptualized as a 3D model, but mathematical models implemented in numerical simulations are required to reproduce the dynamical and functional characteristics of physical systems. In this work, a cyber–physical system scheme is proposed to monitor and diagnose failures. The virtual system, embedded at the supervisory control level, combines concepts from complex networks and hybrid automata to detect failures in the hardware components and in the execution of the sequential logic control. An automated storage and retrieval system is presented as a case study to show the applicability of the proposed scheme. The functional test and the obtained results validate the implemented system that is shown to be capable of fault diagnosis and location in real time. The online execution of the digital twin present several advantages for diagnosing multiple concurrent failures in sensors, actuators, and the control unit. This approach can be incorporate into diverse manufacturing systems.

1. Introduction

Over the years, the industry has had changes in terms of the technology implemented to improve and produce more with fewer human resources; we can see this in the so-called industrial revolutions. The last revolution is Industry 4.0, which emphasizes the use of digital technology developed in the third industrial revolution, but takes it to a more advanced level with the help of interconnectivity through the Internet of Things (IoT), access to data in real time and the introduction of cyber–physical systems. An existing problem in these systems is that, due to their complexity in the occurrence of faults, their diagnosis and location are very complex, which motivates this research work.
Cyber–physical systems are integrated by two subsystems: a physical system composed of sensors, actuators, Programmable Logic Controllers (PLC), and in some cases, a human–machine Interface (HMI) [1,2,3], and a digital system that is considered a part of the systems that develop different tasks such as the monitoring, optimization and diagnosis of the physical system [4,5,6]. The digital system in the project comprises a supervisory controller, fault diagnosis component and digital twin. Additionally, a communication protocol to send/receive information in both subsystems is needed. In cyberphysical systems, a mathematical tool called hybrid automata is used that provides the possibility of modeling digital and analog variables and allows the use of time delays that are important for the system to communicate with its digital twin [7,8,9]. The cyber–physical systems (CPS) must be in real-time communication to be able to verify information about the process.
Among the different possibilities for the operation of the digital Twin inside a CPS, which is a widely accepted approach, the Digital Twin provides a means for the remote and simulated commissioning of manufacturing systems, thus allowing for the rapid reconfiguration of the automated manufacturing system. In contrast, the presented CPS approach is oriented for fault detection, which requires the Digital Twin to run in parallel with the physical systems. The run-time execution and comparison may allow multiple and concurrent fault detection. In the application of Industry 4.0, there exist possibilities to propose, design and implement new concepts that may improve production systems, which is of interest to both academia and the industry.
We found in [10,11,12] that the combination of hybrid automata and complex network theory has been applied for system analysis but not for diagnosing system failures. A complex network can reproduce the evolution of a networked system if the system is controlled by a hybrid automata that changes from one state to another [13]. The hybrid control system activates or deactivates actuators in response to sensor values. Adjacency matrices are constructed for the analysis of complex networks, which places correspondences to the connected nodes [14,15,16]. From the reading of sensors and the activation and deactivation of actuators of the physical system, information is saved in the adjacency matrix using arbitrary weights, corresponding to the space assigned by each sensor or actuator [17].
In the present work, a functional and practical approach to a cyber–physical system is presented to diagnose multiple concurrent failures in an automatic storage and retrieval system. The virtual twin comprises a hybrid automata and a numerical simulation of the physical system. Sensors, actuators, and control units, as connected devices, are modeled as complex networks to take advantage of some concepts and analysis tools derived from complex networks theory. The objective of the proposed cyber–physical system approach is to monitor and diagnose failures in the sensors and actuators and in the execution of the sequential logic control. The digital twin is embedded in the supervisory controller and is executed simultaneously with the physical process. The application of the computational algorithms is to detect failures in a timely manner and thus reduce delays in manufacturing production processes, and improve productivity. This paper is organized as follows: Section 2 recalls some concepts of cyberphysical systems, hybrid automata, and complex networks. In Section 3, the material and methods, the proposed scheme and the results are presented. Section 4 discusses the results of the implemented CPS scheme and the challenges in its implementation. Section 5 is the conclusion and future work.

2. Background

This section describes the theoretical background required for the conceptualization of a cyber–physical system. This includes definitions of cyber–physical systems, hybrid systems, hybrid automata, complex networks, and analysis tools.

2.1. Cyber–Physical Systems

A cyber–physical system (CPS) refers to a system with combined computational and physical capabilities, as it interacts with users through new modalities. The ability to communicate and expand the operations of the physical world through computer technology, interaction, and control are aspects of high importance in technological development. Autonomous cars, hybrid or fully electric vehicles, the design and development of aircrafts, and remotely controlled manufacturing systems represent research challenges and opportunities. In the control area, progress has been made in the implementation of engineering methods and tools, such as the linear control, discrete control, optimization, prediction, filtering, time and frequency domain, and state space analysis. In the area of computer systems, progress has been made in technological advances such as information security and system failure detection, reliability innovation, integrated software and new computer system architectures, visualization procedures, and real-time simulation techniques, based on models and new simulation languages. The development of cyber–physical systems aims to integrate the behavior of a physical system in the computing and engineering areas (mechatronics, software, human interaction, artificial intelligence, as well as chemical and material sciences and other engineering disciplines) to develop new systems’ CPS [18].

2.2. Hybrid Systems

Hybrid systems are characterized by continuous and discrete dynamics, since in these systems, logical decision making and regulatory control actions are combined with continuous physical processes. Mathematical models should combine the continuous and discrete dynamics of the system. Such mathematical models consist of differential or difference equations of continuous dynamics and automata or other discrete event models for discrete dynamics. The combination of modeling techniques is the basis of hybrid systems theory, which plays an important role in the multidisciplinary design of many cyber–physical systems [19].

2.3. Hybrid Automata

Hybrid automata provide formal models for hybrid dynamical systems and can be observed as an extension of finite automata by adding continuous dynamics into each of its discrete states (also called modes). Each mode is associated with constraints, within which the continuous dynamics evolve. Edges between modes are annotated with guards that specify the conditions for the mode transition to be triggered; each edge is also associated with a reset map indicating how the continuous variables are being updated after the discrete transition. Hybrid automata are defined below [19].
A hybrid automaton H is a collection:
H = Q , X , f , I n i t , I n v , E , G , R
where:
Q = ( q 1 , q 2 , ) is a finite set of discrete states;
X R n represents the state space of the continuous state variables;
f : Q x X R n assigns to each discrete state q Q an analytic vector field f ( q , · ) ;
I n i t Q x X is the set of initial states;
I n v : Q 2 x assigns to each state q Q a set I n v ( q ) X called the invariant set;
E Q x Q is the set of discrete transitions;
G : E 2 x assigns to each discrete transition ( q , q ) E a guard set G ( q , q ) X ;
R : E x X 2 x is a reset map.

2.4. Complex Networks

Complex networks are known as sets of interconnected nodes. The nodes of a network can be called vertices or elements and are represented by the symbols v 1 , v 2 , , v N , where N is the total number of nodes in the network. If a node v i is connected to another node v j , this connection is represented by an ordered pair ( v i , v j ) . The mathematical definition of a network (also called a graph) is as follows: Formally, a network R consists of a set of nodes V = v 1 , v 2 , V N and a set of ordered pairs E = ( v i , v j ) V x V . Each ordered pair ( v i , v j ) is a directed connection from node v i to node v j . A non-directed type network consists of that for each pair ( v i , v j ) ε there also exists the pair ( v j , v i ) ε , as shown in Figure 1a. If the above is not fulfilled, the network directed, as Figure 1b. Illustrates. Nodes that are directly connected to a v i node are called v i ’s neighbors [20].

3. Matherial and Methods

Most of the proposed approaches for fault diagnostic using DT and CPS are more oriented for commissioning manufacturing systems for reconfiguration and optimization purposes. The proposed approach differs from that found in the literature, since the DT is required to run in parallel to be able to perform an online fault Diagnostics. In this section, a basic conceptualization of a cyber–physical system incorporating a complex network is presented.

3.1. Cyber–Physical System Components

The cyber–physical system proposed here is composed by a communication structure between two systems, physical and digital systems. The physical system comprises a programmable logic controller (PLC), and a human–machine interface (HMI) interconnected to the supervisory controller through the PLC. The digital system comprises a supervisory control and a digital twin embedded in the digital system. The complete proposed CPS scheme is shown in the diagram of Figure 2.
In the proposed cyber–physical system, there are two automata: H P , which is the physical hybrid automata, and H V , that is, the hybrid virtual automata, which is executed in a virtual system. T S is the synchronization time and A d j M is the Adjacency Matrix.
C P S = { H P , H V , T S , A d j M }
The hybrid automatas H F and H V share the same sets of states, functions and variables; however, the H V variables are from the virtual system and the H P variables from the physical system. The graphic representation of the automata is presented in Figure 3 and Figure 4.
Q = { q 0 , q 1 , q 2 , q 3 , q 4 , q 5 , q 6 , q 7 , q 8 , q 9 }
d x = R d e n o t e s t h e r a n g e o f t h e c u r r e n t b a s e d i n t h e o u t p u t s a c t i v a t e d x = α * y n 1 + ( 1 α ) y n
I n i t = { q 0 } x { 1 } o r { q 10 } x { 1 }
f ( q 0 , x 1 ) = 10 a n d f ( q 1 , x 2 ) = 10 a n d f ( q 2 , x 3 , x 4 , x 5 ) = 5 , 5 , 10 a n d
f ( q 3 , x 6 , x 7 ) = 2 , 10 a n d f ( q 4 , x 8 , x 9 , x 10 , x 11 ) = 2 , 2 , 10 , 10 a n d f ( q 5 , x 12 , x 13 ) = 2 , 10 , a n d
f ( q 6 , x 14 , x 15 ) = 2 , 10 , a n d f ( q 7 , x 16 , x 17 , x 18 ) = 2 , 2 , 10 a n d f ( q 8 , x 19 , x 20 ) = 2 , 10 , a n d
f ( q 9 , x 21 ) = 10 a n d f ( q 10 , x 22 ) = 10 a n d ( q 11 , x 23 ) = 10 , a n d f ( q 12 , x 24 ) = 10 a n d
f ( q 13 , x 25 ) = 10 , a n d f ( q 14 , x 26 ) = 2 , a n d f ( q 15 , x 27 , X 28 ) = 2 , 10 , a n d
f ( q 16 , x 29 , x 30 ) = 2 , 10 , a n d f ( q 17 , x 31 , x 32 ) = 2 , 10 a n d
f ( q 18 , x 33 , x 34 , x 35 , x 36 , x 37 ) = 5 , 5 , 2 , 2 , 10 a n d f ( q 19 , x 38 , x 39 , x 40 ) = 5 , 5 , 10 a n d
f ( q 20 , x 41 , x 42 , x 43 ) = 5 , 5 , 10 a n d f ( q 21 , x 44 , x 45 , x 46 ) = 5 , 5 , 10
I n v ( q 0 ) = { x R : x 10 } a n d I n v ( q 1 ) = { x R : x 10 } a n d
I n v ( q 2 ) = { x R : x 20 } a n d I n v ( q 3 ) = { x R : x 12 } a n d
I n v ( q 4 ) = { x R : x 24 } a n d I n v ( q 5 ) = { x R : x 12 } a n d
I n v ( q 6 ) = { x R : x 12 } a n d I n v ( q 7 ) = { x R : x 14 } a n d
I n v ( q 8 ) = { x R : x 12 } a n d I n v ( q 9 ) = { x R : x 10 } a n d
I n v ( q 10 ) = { x R : x 10 } a n d I n v ( q 11 ) = { x R : x 10 } a n d
I n v ( q 12 ) = { x R : x 10 } a n d I n v ( q 13 ) = { x R : x 10 } a n d
I n v ( q 14 ) = { x R : x 2 } a n d I n v ( q 15 ) = { x R : x 12 } a n d
I n v ( q 16 ) = { x R : x 12 } a n d I n v ( q 17 ) = { x R : x 12 } a n d
I n v ( q 18 ) = { x R : x 24 } a n d I n v ( q 19 ) = { x R : x 20 }
I n v ( q 20 ) = { x R : x 20 } a n d I n v ( q 21 ) = { x R : x 20 }
E 1 = { ( q 0 , q 12 ) ( q 0 , q 1 ) , ( q 1 , q 2 ) ( q 2 , q 3 ) ( q 3 , q 4 ) ( q 4 , q 5 )
( q 5 , q 6 ) ( q 6 , q 7 ) ( q 7 , q 8 ) ( q 8 , q 9 ) ( q 9 , q 10 ) ( q 10 , q 11 ) }
E 2 = { ( q 12 , q 0 ) ( q 12 , q 13 ) , ( q 13 , q 14 ) ( q 14 , q 15 ) ( q 15 , q 16 ) ( q 16 , q 17 )
( q 17 , q 18 ) ( q 18 , q 19 ) ( q 19 , q 20 ) ( q 20 , q 21 ) ( q 21 , q 12 ) }
G ( q 0 , q 1 ) = { x R : x 1 9.8 } a n d G ( q 1 , q 2 ) = { x R : x 2 9.8 } a n d
G ( q 2 , q 3 ) = { x R : x 3 19.8 } a n d G ( q 3 , q 4 ) = { x R : x 4 11.8 } a n d
G ( q 4 , q 5 ) = { x R : x 5 23.8 } a n d G ( q 5 , q 6 ) = { x R : x 6 11.8 } a n d
G ( q 6 , q 7 ) = { x R : x 7 11.8 } a n d G ( q 7 , q 8 ) = { x R : x 8 13.8 } a n d
G ( q 8 , q 9 ) = { x R : x 9 11.8 } a n d G ( q 9 , q 10 ) = { x R : x 1 9.8 } a n d
G ( q 10 , q 11 ) = { x R : x 1 9.8 } a n d G ( q 11 , q 0 ) = { x R : x 1 9.8 }
G ( q 0 , q 12 ) = { x R : x 1 9.8 }
G ( q 12 , q 13 ) = { x R : x 2 9.8 } a n d G ( q 13 , q 14 ) = { x R : x 3 9.8 } a n d
G ( q 14 , q 15 ) = { x R : x 4 1.8 } a n d G ( q 15 , q 16 ) = { x R : x 5 11.8 } a n d
G ( q 16 , q 17 ) = { x R : x 6 11.8 } a n d G ( q 17 , q 18 ) = { x R : x 7 11.8 } a n d
G ( q 18 , q 19 ) = { x R : x 8 23.8 } a n d G ( q 19 , q 20 ) = { x R : x 9 19.8 }
G ( q 20 , q 21 ) = { x R : x 8 19.8 } a n d G ( q 21 , q 12 ) = { x R : x 9 19.8 }
G ( q 12 , q 0 ) = { x R : x 8 9.8 }
R ( ( q 0 , q 1 ) , x ) = { x } a n d R ( ( q 1 , q 2 ) , x ) = { x } a n d R ( ( q 2 , q 3 ) , x ) = { x } a n d
R ( ( q 3 , q 4 ) , x ) = { x } a n d R ( ( q 4 , q 5 ) , x ) = { x } a n d R ( ( q 5 , q 6 ) , x ) = { x } a n d
R ( ( q 6 , q 7 ) , x ) = { x } a n d R ( ( q 7 , q 8 ) , x ) = { x } a n d R ( ( q 8 , q 9 ) , x ) = { x } a n d
R ( ( q 9 , q 0 ) , x ) = { x } a n d R ( ( q 10 , q 11 ) , x ) = { x } a n d R ( ( q 11 , q 12 ) , x ) = { x } a n d
R ( ( q 12 , q 13 ) , x ) = { x } a n d R ( ( q 13 , q 14 ) , x ) = { x } a n d R ( ( q 14 , q 15 ) , x ) = { x } a n d
R ( ( q 15 , q 16 ) , x ) = { x } a n d R ( ( q 16 , q 17 ) , x ) = { x } a n d R ( ( q 17 , q 18 ) , x ) = { x } a n d
R ( ( q 18 , q 19 ) , x ) = { x } a n d R ( ( q 19 , q 10 ) , x ) = { x }
A d j M I n p u t s = { V I 1 , V I 2 , V I 3 , V I 4 , V I 5 , V I 6 , V I 7 , V I 8 , V I 9 ,
V I 10 , V I 11 , V I 12 , V I 13 , V I 14 , V I 15 , V I 16 , V I 17 }
A d j M O u t p u t s = { V O 1 , V O 2 , V O 3 , V O 4 , V O 5 , V O 6 , V O 7 , V O 8 , V O 9 ,
V O 10 , V O 11 , V O 12 , V O 13 , V O 14 , V O 15 , V O 16 , V O 17 }
T S  = The synchronization time will depend on the supervisory control. For the proposed system, a time delay of 100 ms is considered for each state change to compare the input and output vectors.

3.2. Cyber–Physical System Implementation

Within the industry, engineering-based system design has been characterized by separating the control system from the construction features of hardware and software. Once the control of the system is completed, a complete simulation is usually performed to verify the optimal operation and correct uncertainty in the model, as well as external disturbances not considered in the model. An important characteristic of industrial systems is their increasing complexity due to the use of advanced technologies for instrumentation, communication and multilevel information processing, posing an important challenge to design and build future generation industrial manufacturing systems. In the design and construction of cyber–physical systems, a new methodology is needed that leads to a reliable and optimal integration of the system elements that were designed independently. The proposed system can be implemented for testing with a programmable logic controller (PLC) and a human–machine interface (HMI). To simulate the process, a graphic environment is used to reproduce the operation of the automatic storage system, Figure 5. The digital system is implemented on a codesys soft plc that incorporates the digital twin and the online diagnostic functions based upon the complex network.

3.3. Physical Hybrid Model of Warehouse Operation

The operation of an automatic warehouse is modeled as an hybrid automaton. The states of the physical system are divided into two modes of operation: loading and filling the warehouse and unloading and emptying the warehouse. In addition, the variable that will be measured is the current consumed by the actuators activated in each state. The loading mode of the elevator has the following programming, the q P 0 status activates the indicator lights of the buttons and the light column, state q P 1 activates two belt motors that transport the product for storage, state q P 2 activates the movement of the forks to the left, state q P 3 activates the movement of the forks upwards, state q P 4 activates the movement of the forks retracting to the left, state q P 5 activates an elevator that carries the package to a specific position, state q P 6 activates the movement of the forks to the right, state q P 7 activates the movement of the forks retracting from the top, state q P 8 activates the movement of the forks retracting to the right, state q P 9 is the elevator sent to its home position, state q P 10 is the elevator in the home position, and state q P 11 is the delay time for the system in Figure 6B,C. The hardware configuration of the system can be observed.
The unloading mode has the following programming, as shown in Figure 6A,C: State q P 12 activates the indicator lights of the buttons and the light column, state q P 13 activates the elevator that goes to the unloading position, state q P 14 activates the movement of the forks to the right, state q P 15 activates the movement of the forks upwards, state q P 16 activates the movement of the forks to the right retractor, state q P 17 is the elevator sent to its home position, state q P 18 is the movement of the forks to the right being activated, state q P 19 is the movement of the forks retracting downwards being activated, state q P 20 is the movement of the forks retracting to the right being activated, and state q P 21 is the elevator being sent home, as well as the conveyor belts that remove the object from the warehouse being activated. Figure 3 shows the automaton and Table 1 shows the states and outputs activated in each one.

3.4. Digital Hybrid Warehouse Operation Model

Cyber–physical systems are characterized by having a knowledge base in a virtual environment; therefore, to verify that the system is working in its optimal mode, the automata shown in the previous section are modeled with virtual variables, as shown in Figure 4.

3.5. Complex Network of Automated Warehouse

A complex network from an automatic warehouse model is presented. The elements of the storage system that are considered to perform the construction of the complex network are transducers and actuators such as buttons, contactors, motors, and PLCs, and are considered as nodes (Figure 7). The links are interpreted as the relationships between the elements and represent the electrical connection between the nodes of the network (Table 2 shows assignments of input and output ports).

Construction of Adjacency Matrix

The network constructed from the physical system (Figure 7) is characterized because it is directed, and the adjacency matrix can be constructed. In this matrix, a number “1” is placed for each node that has a link directed to another node. Because there are nodes that are not connected to each other, only the rows of the adjacency matrix that have information on the connections are shown; the interpretation of node/row “I2.0” is that for each activated output (yellow raw), the current consumed will be measured and based on the current value, and the state of the hybrid automata creates an equivalence of the activated outputs and is sent to the pcl/row (blue) in Figure 8.
From the adjacency matrix (see complete matrix in Appendix A), it is observed that, because the network is of the directed type, only the rows of I2.0 and PLC will change, providing there is information to determine the optimal functioning of the system.

3.6. Data Models and Equations

3.6.1. Digital Data Model

The model of the system is based on the monitoring and comparison of the data obtained from the behavior of the physical system and the data obtained from the ideal behavior of the virtual system. The adjacency matrix is composed of rows of data representing information from the sensors and actuators; therefore, the same information can be represented with a set of vectors. For physical inputs, an array of physical binary inputs D I P S k is defined, where each place represents the value of different sensors S p with corresponding physical PLC addresses. The virtual environment simulates the behavior of the physical system, and there is a corresponding array D I V S k of the virtual binary with inputs for simulated sensors S v , as shown below:
D I P S k = [ S p I 0.0 , S p I 0.1 , S p I 0.2 , S p I 0.3 , S p I 0.4 , S p I 0.5 , S p I 0.6 , S p I 0.7 , S p I 1.0 , S p I 1.1 , S p I 1.2 , S p I 1.3 , S p I 1.4 , S p I 1.5 , S p I 1.6 , S p I 1.7 ]
D I V S k = [ S v I 0.0 , S v I 0.1 , S v I 0.2 , S v I 0.3 , S v I 0.4 , S v I 0.5 , S v I 0.6 , S v I 0.7 , S v I 1.0 , S v I 1.1 , S v I 1.2 , S v I 1.3 , S v I 1.4 , S v I 1.5 , S v I 1.6 , S v I 1.7 ]
As can be observed in the adjacency matrix (Appendix A), only one column (strong blue) provides information on the actuators that have been activated by showing a value of “1” when the controller has activated them. The algorithms holds the information of activated outputs by means of a row arrangement (gray row). This arrangement of output elements can be represented as a vector. For the physical output, an array of physical binary outputs D O P S k is defined, where each place represents the value of different output O p with corresponding physical PLC addresses. For the virtual system, there is a corresponding array D O V S k of virtual binary outputs for simulated outputs O v , as follows:
D O P S k = [ O p Q 0.0 , O p Q 0.1 , O p Q 0.2 , O p Q 0.3 , O p Q 0.4 , O p Q 0.5 , O p Q 0.6 , O p Q 0.7 , O p Q 1.0 , O p Q 1.1 , O p Q 1.2 , O p Q 1.3 , O p Q 1.4 , O p Q 1.5 , O p Q 1.6 , O p Q 1.7 , O p Q w 0 ]
D O V S k = [ O v Q 0.0 , O v Q 0.1 , O v Q 0.2 , O v Q 0.3 , O v Q 0.4 , O v Q 0.5 , O v Q 0.6 , O v Q 0.7 , O v Q 1.0 , O v Q 1.1 , O v Q 1.2 , O v Q 1.3 , O v Q 1.4 , O v Q 1.5 , O v Q 1.6 , O v Q 1.7 , O v Q w 0 ]

3.6.2. Analog Data Model

The model also considers vectors for holding data from analog input and outputs connected to physical sensors and actuators. The value of the current consumed by each sensor or actuator is shown. Therefore, the vectors A I P S k and A I V S k represent the values of analog physical inputs A I P and analog virtual inputs A I V , as follows:
A I P S k = [ A I p I 0.0 , A I p I 0.1 , A I p I 0.2 , A I p I 0.3 , A I p I 0.4 , A I p I 0.5 , A I p I 0.6 , A I p I 0.7 , A I p I 2.0 , A I p I 1.0 , A I p I 1.0 , A I p I 1.0 , A I p I 1.0 , A I p I 1.0 , A I p I 1.0 , A I p I 1.0 , A I p I 1.0 , A I p I 2.0 ]
A I V S k = [ A I v I 0.0 , A I v I 0.1 , A I v I 0.2 , A I v I 0.3 , A I v I 0.4 , A I v I 0.5 , A I v I 0.6 , A I v I 0.7 A I v I 2.0 , A I v I 1.0 , A I v I 1.0 , A I v I 1.0 , A I v I 1.0 , A I v I 1.0 , A I v I 1.0 , A I v I 1.0 , A I v I 1.0 , A I v I 2.0 ]
The function of the sensor I2.0 is to provide a measurement of the current consumed by all the activated actuators.
The A O P S k and A O V S k represent the vectors of analog physical outputs A O P and analog virtual outputs A O P , as follows:
A O P S k = [ A O p Q 0.0 , A O p Q 0.1 , A O p Q 0.2 , A O p Q 0.3 , A O p Q 0.4 , A O p Q 0.5 , A O p Q 0.6 , A O p Q 0.7 , A O p Q 1.0 , A O p Q 1.1 , A O p Q 1.2 , A O p Q 1.3 , A O p Q 1.4 , A O p Q 1.5 , A O p Q 1.6 , A O p Q 1.7 , A O p Q W 30 ]
A O V S k = [ A O v Q 0.0 , A O v Q 0.1 , A O v Q 0.2 , A O v Q 0.3 , A O v Q 0.4 , A O v Q 0.5 , A O v Q 0.6 , A O v Q 0.7 , A O v Q 1.0 , A O v Q 1.1 , A O v Q 1.2 , A O v Q 1.3 , A O v Q 1.4 , A O v Q 1.5 , A O v Q 1.6 , A O v Q 1.7 , A O v Q W 30 ]

3.7. Development of the System

In the cyber–physical system, the proposed supervisory controller will make decisions based on the comparison of the operation of the physical and the virtual systems (Figure 9).

3.7.1. Physical System Development

This section explains, with a mathematical algorithm, the operation of the physical system (Figure 9a) with its digital variables, D I P S k and D O P S k , and analog variables, A I P S k and A O P S k .
The operation of Algorithm 1, for the physical system, assigns values to the digital and analog input vectors (Equations (9) and (13)) as well as to the output vectors (Equations (11) and (14)). If there is a change of state S t P S k in the physical system, the inputs and outputs are measured and assigned correspondingly to the digital input-output and analog input-output vectors. Within the digital analysis, the difference between the current state and the previous state is calculated with Equation (9) for digital inputs D I d P S k and Equation (11) for digital outputs D O d P S k . The input and output differences are stored in their respective memory equations, D I m P S k (Equation (10)) or D O m P S k (Equation (12)). Regarding the analog analysis, it consists of filtering ( 1 α ) the input and output currents and storing their values in an analog input memory, A I m P S k , given by (Equation (13)), and an analog output memory, A O m P S k , according to (Equation (14)), respectively.
Algorithm 1: Development of the digital and analog physical system:
Applsci 13 10603 i001

3.7.2. Virtual System Development

This section explains, with a mathematical algorithm, the operation of the virtual system, with its digital variables D I V S k and D O V S k , and analog variables A I V S k and A O V S k representing the function (Figure 9b) in the following:
Algorithm 2, for the virtual system, is similar to the algorithm of the physical system, except that, in this case, the ideal numerical simulation of the system is carried out, which will help to corroborate the optimal functioning of the physical system. Values are assigned to the vectors of the digital virtual input and digital virtual output D I V S k and D O V S k . In turn, the virtual input and analog virtual output vectors are assigned A I V S k and A O V S k . Unlike Algorithm 1, the signal that was activated in the physical system is expected to start the ideal virtual model, by S T P S k , to replicate the event in the virtual system, based on the virtual hybrid automaton (Figure 4). The virtual digital and analog values from inputs and outputs are added. An analysis of the previous virtual state and the current digital virtual state is performed with Equation (15) for D I d V S k and Equation (17) for D O d V S k . These input and output differences are assigned to D I m V S k by (16) and D O m V S k by (18), respectively. The analogous ideal simulation produces the input and output vectors A I m V S k and A O m V S k , which are filtered by α and ( 1 α ) to produce mean values stored in (19) and (20), respectively, for the analysis of the supervisory controller.
Algorithm 2: Development of the digital and analog virtual system:
Applsci 13 10603 i002

3.7.3. Digital Control Operation and Fault Diagnosis

To diagnose faults, the physical input and output memory vectors and the virtual input and output vectors are continuously compared (Figure 9c, but with a synchronization time, considering the change of state in both the physical automata and the virtual automata, and it is implemented Algorithm 3.
Algorithm 3: Development of the digital control
Applsci 13 10603 i003

4. Results and Discussion

The presented approach of a cyber–physical system at a supervisory control level is intended for the monitoring and diagnosis of hardware and software failures in an automated storage and retrieval system, as shown in Figure 5. The virtual system is implemented by a real-time numerical simulation to model the behavior of the physical system. Hybrid automata are used to design the control functions of the physical controller and to ease the implementation of the virtual controller. The sensors and actuators were defined as complex network nodes, and their asynchronous activation was defined as events affecting the weight links. The complex network and the hybrid automata for both the digital twin and the physical system were coordinated. Every time that the physical controller activates an actuator or reads a sensor, data vectors save the information and are compared with the corresponding data vectors in the virtual controller. To detect failures in the hardware components, adjacency matrices are compared, and to detect failure in the execution of the sequential logic, the current states are compared. The simulation and implementation of the system present a problem of synchronization between the physical and virtual systems. This problem was solved by considering a time of delay between the data transfer and the change in the physical state and virtual state.
Figure 9 shows the execution of the physical system and the virtual system. It can be observed that the virtual and physical hybrid automata change at the same time with an specific time of synchronization. In Figure 10, input and output changes can also be observed, besides changes between 0 and 1. The system updates and saves the values from the activation and deactivation events, and the algorithms detect discrepancies of data values of the physical controller with respect to data values of the virtual system. In this way, it is possible to detect failures in sensors, actuators, and in the execution of the control logic.
To corroborate the operation of the algorithm, the stored information presented in the Figure 9 was examined. In the case where there are no failures, the data vectors are identical, and in the case that the data are not equal, there are failures. Figure 11 shows the difference in the data vectors with red rectangles to indicate failures and the green rectangles to indicate that the elements are working correctly.
Finally, Figure 12 shows an operator panel with indicators to display the elements that present a failure.
In order to evaluate the efficiency of the system, four different cases (row represents the number of simulations) of failure diagnosis were evaluated in different stages of the process, and the tests were carried out both in the loading and unloading configuration of the warehouse. It is observed that the system is capable of diagnosing and locating the failures induced in inputs and outputs selected in Table 3; in the third column, a specific number of induced failures is selected, and it is observed that the system in the eighth column can satisfactorily diagnose and locate all the induced failures.
The proposed approach for a basic cyber–physical system is composed of a virtual twin simulating the process of the physical system. The virtual twin executed simultaneously with the operation of the physical systems allows for a comparison in real time. When the behavior of both do not match, a fault is diagnosed. The presented approach can be extended to diverse manufacturing systems.

5. Conclusions

This work proposed a novel scheme of a basic cyber–physical system that incorporates a virtual system at the supervisory control level. The virtual system is executed in a real-time simulation, providing means to monitor and diagnose failures in sensors, actuators and in the execution of the sequential logic control. In this approach, the digital twin is mainly a numerical simulation of the process and its controller, which is made up of algorithms that combine a hybrid automata as a virtual controller, along with the sensors and actuators modeled in a complex network. The implemented system acts as a supervisory control system capable of diagnosing and locating failures in physical systems in real time. The algorithms were validated in an automated storage and retrieval system. The implementation was required to solve some synchronization problems presented in the coordination of the digital twin with the physical system. One of the main tests showed that the system was capable of detecting and locating failures in two actuators and two sensors. The obtained results validate that the proposed scheme is able to diagnose and locate concurrent faults in real time and can be incorporated as an advance automation function of manufacturing systems.

Author Contributions

Conceptualization, A.V. and F.M.; methodology, A.V. and F.M.; software, A.V.; validation, A.V.; formal analysis, A.V. and F.M.; investigation, A.V.; resources, F.M.; data curation, A.V.; writing—original draft preparation, A.V. and F.M.; writing—review and editing, I.Y.S. and C.A.P.; visualization, A.V.; supervision, F.M.; project administration, A.V.; funding acquisition, A.V. All authors have read and agreed to the published version of the manuscript.

Funding

Partially funded by CONAHCYT—scholarship program for graduate studies.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
Virtual System Variables:
D I V S k Virtual Binary Inputs Array
D I d V S k Virtual Binary Inputs Difference
D I m V S k Virtual Binary Inputs Memory
D O V S k Virtual Binary Outputs Array
D O d V S k Virtual Binary Outputs Difference
D O m V S k Virtual Binary Outputs Memory
S t V S k State virtual system
Physical System Variables:
D I P S k Physical Binary Inputs Array
D I d P S k Physical Binary Inputs Difference
D I m P S k Physical Binary Inputs Memory
D O P S k Physical Binary Outputs Array
D O d P S k Physical Binary Outputs Difference
D O m P S k Physical Binary Outputs Memory
S t P S k State physical system

Appendix A

Appendix Adjacency Matrix Construction

Figure A1. Complete Adjacency Matrix.
Figure A1. Complete Adjacency Matrix.
Applsci 13 10603 g0a1

References

  1. TcaciucGherasim, S.A. A Solution for an Industrial Automation and SCADA System. In Proceedings of the 2022 International Conference and Exposition on Electrical And Power Engineering (EPE), Iaşi, Romania, 20–22 October 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 297–300. [Google Scholar]
  2. Khadra, A.; Rammal, R. SCADA System for Solar Backup Power System Automation. In Proceedings of the 2022 International Conference on Smart Systems and Power Management (IC2SPM), Beirut, Lebanon, 10–12 November 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 75–79. [Google Scholar]
  3. Nuhel, A.K.; Sazid, M.M.; Ahmed, K.; Bhuiyan, M.N.M.; Hassan, M.Y.B. A PI Controller-based Water Supplying and Priority Based SCADA System for Industrial Automation using PLC-HMI Scheme. In Proceedings of the 2022 IEEE International Conference on Artificial Intelligence in Engineering and Technology (IICAIET), Kinabalu, Malaysia, 13–15 September 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 1–6. [Google Scholar]
  4. Hamzah, M.; Islam, M.M.; Hassan, S.; Akhtar, M.N.; Ferdous, M.J.; Jasser, M.B.; Mohamed, A.W. Distributed Control of Cyber Physical System on Various Domains: A Critical Review. Systems 2023, 11, 208. [Google Scholar] [CrossRef]
  5. Zhang, K.; Shi, Y.; Karnouskos, S.; Sauter, T.; Fang, H.; Colombo, A.W. Advancements in industrial cyber-physical systems: An overview and perspectives. IEEE Trans. Ind. Inform. 2022, 19, 716–729. [Google Scholar] [CrossRef]
  6. Villalonga, A.; Beruvides, G.; Castano, F.; Haber, R.E. Cloud-based industrial cyber–physical system for data-driven reasoning: A review and use case on an industry 4.0 pilot line. IEEE Trans. Ind. Inform. 2020, 16, 5975–5984. [Google Scholar] [CrossRef]
  7. Alshalalfah, A.L.; Mohamed, O.A.; Ouchani, S. A framework for modeling and analyzing cyber-physical systems using statistical model checking. Internet Things 2023, 22, 100732. [Google Scholar] [CrossRef]
  8. Li, P.; Zhang, F.; Yang, Y.; Ma, X.; Yao, S.; Yang, P.; Zhao, Z.; Lai, C.S.; Lai, L.L. The integrated modeling of microgrid cyber physical system based on hybrid automaton. Front. Energy Res. 2022, 10, 748828. [Google Scholar] [CrossRef]
  9. Staroletov, S. Automatic proving of stability of the cyber-physical systems in the sense of Lyapunov with KeYmaera. In Proceedings of the 2021 28th Conference of Open Innovations Association (FRUCT), Moscow, Russia, 25–29 January 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 431–438. [Google Scholar]
  10. Ravasio, D.; Tuissi, L.; Spinelli, S.; Ballarino, A. A Compressed Air Network Energy-Efficient Hierarchical Unit Commitment and Control. In Proceedings of the 2023 15th International Conference on Computer and Automation Engineering (ICCAE), Sydney, Australia, 3–5 March 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 469–473. [Google Scholar]
  11. Guo, Z.; Zhang, Y.; Zhao, X.; Song, X. CPS-based self-adaptive collaborative control for smart production-logistics systems. IEEE Trans. Cybern. 2020, 51, 188–198. [Google Scholar] [CrossRef] [PubMed]
  12. Sun, T.; Xia, W.; Zhao, X.; Sun, X.M. A Novel Mathematical Characterization for Switched Linear Systems Based on Automata and Its Stabilizability Analysis. IEEE Trans. Control. Netw. Syst. 2023. [Google Scholar] [CrossRef]
  13. Alonso, M.; Turanzas, J.; Amaris, H.; Ledo, A.T. Cyber-physical vulnerability assessment in smart grids based on multilayer complex networks. Sensors 2021, 21, 5826. [Google Scholar] [CrossRef] [PubMed]
  14. Zhao, Z.; Xu, Y.; Li, Y.; Zhao, Y.; Wang, B.; Wen, G. Sparse actuator attack detection and identification: A data-driven approach. IEEE Trans. Cybern. 2023, 53, 4054–4064. [Google Scholar] [CrossRef] [PubMed]
  15. Pósfai, M.; Barabasi, A.L. Network Science; Citeseer: London, UK, 2016. [Google Scholar]
  16. Giudici, R. Introducción a la Teoría de Grafos; Equinoccio: Baruta, Miranda, Venezuela, 1997. [Google Scholar]
  17. Mu, D.; Yue, X.; Ren, H. Robustness of Cyber-Physical Supply Networks in Cascading Failures. Entropy 2021, 23, 769. [Google Scholar] [CrossRef] [PubMed]
  18. Platzer, A. Logical Foundations of Cyber-Physical Systems; Springer: Cham, Switzerland, 2018; Volume 662. [Google Scholar]
  19. Lin, H.; Antsaklis, P.J. Hybrid Dynamical Systems; Foundations and Trends® in Systems and Control: Delft, The Netherlands, 2015. [Google Scholar]
  20. Meyn, S. Control Techniques for Complex Networks; Cambridge University Press: Cambridge, UK, 2008. [Google Scholar]
Figure 1. (a) Undirected network. (b) Directed network.
Figure 1. (a) Undirected network. (b) Directed network.
Applsci 13 10603 g001
Figure 2. Proposed scheme of the cyber–physical system.
Figure 2. Proposed scheme of the cyber–physical system.
Applsci 13 10603 g002
Figure 3. Physic hybrid automaton.
Figure 3. Physic hybrid automaton.
Applsci 13 10603 g003
Figure 4. Virtual hybrid automaton.
Figure 4. Virtual hybrid automaton.
Applsci 13 10603 g004
Figure 5. Automatic warehouse.
Figure 5. Automatic warehouse.
Applsci 13 10603 g005
Figure 6. (A) Sensors and actuators in conveyor belt download. (B) Sensors and actuators in conveyor belt load. (C) Sensors and actuators in elevator base.
Figure 6. (A) Sensors and actuators in conveyor belt download. (B) Sensors and actuators in conveyor belt load. (C) Sensors and actuators in elevator base.
Applsci 13 10603 g006
Figure 7. Complex network of the physical system.
Figure 7. Complex network of the physical system.
Applsci 13 10603 g007
Figure 8. Adjacency Matrix.
Figure 8. Adjacency Matrix.
Applsci 13 10603 g008
Figure 9. (a) Physical System Controller; (b) Virtual System Controller; (c) Supervisory Controller.
Figure 9. (a) Physical System Controller; (b) Virtual System Controller; (c) Supervisory Controller.
Applsci 13 10603 g009
Figure 10. Development of the cyber–physical system.
Figure 10. Development of the cyber–physical system.
Applsci 13 10603 g010
Figure 11. Diagnosis of faults.
Figure 11. Diagnosis of faults.
Applsci 13 10603 g011
Figure 12. Location of faults.
Figure 12. Location of faults.
Applsci 13 10603 g012
Table 1. State and Output Activation.
Table 1. State and Output Activation.
StateOutputStateOutputStateOutputStateOutput
q P 0 Leds 1 q P 5 Elevator motors (QW30) q P 10 Leds 1 q P 15 Elevator motors
q P 1 Conveyor Motors (Q10.6, Q10.7) q P 6 Motor forks (Q11.0 Right) q P 11 Elevator motors q P 16 Motor forks
q P 2 Motor forks (Q11.1 Left) q P 7 Motor forks (Q11.2 Up) q P 12 Motor forks q P 17 Motor forks
q P 3 Motor forks (Q11.2 Up) q P 8 Motor forks (Q11.0 Right) q P 13 Motor forks q P 18 Motor forks
q P 4 Motor forks (Q11.1 LeftR) q P 9 Elevator motors (QW30) q P 14 Motor forks q P 19 Conveyor motor
1 Led Outputs = Q10.0, Q10.1, Q11.3, Q10.2, Q10.3, Q11.4, Q10.3.
Table 2. Input and Output Denomination.
Table 2. Input and Output Denomination.
InputDenominationOutputDenominationInputDenominationOutputDenomination
I10.0Start button LQ10.0Start (Light)I11.0Sensor mov XQ11.0Forks right
I10.1Stop Button LQ10.1Start L (Light)I11.1Sensor mov ZQ11.1Forks left
I10.2Reset button LQ10.2Stop L (Light)I11.2Emergency stopQ11.2Forks Up
I10.3Sensor conveyor 1LQ10.3Stop (Light)I11.3Start button DQ11.3Start D (Light)
I10.4Sensor conveyor 2LQ10.4Reset L (Light)I11.4Stop button DQ11.4Stop D (Light)
I10.5Sensor forks rightQ10.5Reset (Light)I11.5Reset button DQ11.5Reset D (Light)
I10.6Sensor forks middleQ10.6Conveyor 1LI11.6Sensor conveyor 1DQ11.6Conveyor 1D
I10.7Sensor forks leftQ10.7Conveyor 2LI11.7Sensor conveyor 2DQ11.7Conveyor 2D
I12.0Sensor currentQW30Target position
Table 3. Input and Output Denomination.
Table 3. Input and Output Denomination.
No. SimulationStateInput/Output Induce FaultInput Physical VectorInput Virtual VectorOutput Physical VectorOutput Virtual VectorFault Detection
1 q P 3 I10.4, Q11.4I10.4 = 0I10.4 = 1Q11.4 = 0Q11.4 = 1I10.4, Q11.4—Correct
2 q P 9 I10.5, Q11.0I10.5 = 0I10.5 = 1Q11.0 = 0Q11.0 = 1I10.5, Q11.0—Correct
3 q P 14 I11.0, I11.1, Q11.4I11.0 = 0, I11.1 = 0I11.0 = 1, I11.1 = 1Q11.4 = 0Q11.4 = 1I11.0, I11.1, Q11.4—Correct
4 q P 19 I10.5, Q11.6, Q11.7I10.5 = 0I10.5 = 1Q11.6 = 0, Q11.7 = 0Q11.6 = 1, Q11.7 = 1I10.5, Q11.6, Q11.7—Correct
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Velazquez, A.; Martell, F.; Sanchez, I.Y.; Paredes, C.A. Cyberphysical System Modeled with Complex Networks and Hybrid Automata to Diagnose Multiple and Concurrent Faults in Manufacturing Systems. Appl. Sci. 2023, 13, 10603. https://doi.org/10.3390/app131910603

AMA Style

Velazquez A, Martell F, Sanchez IY, Paredes CA. Cyberphysical System Modeled with Complex Networks and Hybrid Automata to Diagnose Multiple and Concurrent Faults in Manufacturing Systems. Applied Sciences. 2023; 13(19):10603. https://doi.org/10.3390/app131910603

Chicago/Turabian Style

Velazquez, Alejandro, Fernando Martell, Irma Y. Sanchez, and Carlos A. Paredes. 2023. "Cyberphysical System Modeled with Complex Networks and Hybrid Automata to Diagnose Multiple and Concurrent Faults in Manufacturing Systems" Applied Sciences 13, no. 19: 10603. https://doi.org/10.3390/app131910603

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop