• Nenhum resultado encontrado

Modelling cyber physical social systems using dynamic time petri nets

N/A
N/A
Protected

Academic year: 2021

Share "Modelling cyber physical social systems using dynamic time petri nets"

Copied!
8
0
0

Texto

(1)

Modelling Cyber Physical Social Systems Using Dynamic Time

Petri Nets

Shabnam Pasandideh, Luis Gomes, Pedro Maló Faculty of Science and Technology, NOVA University of Lisbon,

Centre of Technology and Systems - CTS, UNINOVA, Campus da Caparica,

2829-516 Monte Caparica, Portugal

shabnam.pasandide@uninova.pt, lugo@fct.unl.pt, pmm@fct.unl.pt

Abstract. Performance evaluation models and techniques have been studied broadly in many fields. With the blooming of Cyber-Physical Systems (CPSs), Internet of Things (IoT) and other concepts in distributed systems, usage of a reliable and simple modelling strategy is becoming more important. This paper presents a Petri nets based strategy supporting behavioural modelling as well as performance analysis of Cyber-Physical-Social Systems (CPSSs) covering uncertainty situations when the social factor is also playing an effective role in the performance of these systems. The integration and interaction of system components including computation, physics and social factors as a challenging part of these systems are considered. Petri nets models, augmented with dynamic time dependencies associated with transitions, are applied in a case study, and validated as a promising tool for modelling and analysis of these kind of systems.

Keywords: Performance Evaluation, Time Petri Nets, Cyber Physical Social Systems

.

1 Introduction

In recent years the integration of computational or cybernetic systems with physical systems leaded to the concept of Cyber-Physical Systems (CPSs). CPSs are heterogeneous entities that cross the cyber and physical worlds, hardware and software, sensors and actuators, etc. [1]. As such systems are deployed mostly for dynamically-changing objectives, they must be highly adaptive and flexible to react within non-deterministic and changing environments with acceptable performance. Ultimately, the human perspectives as an entire and essential part of that should be studied to delicately counterbalance the design of such systems in accordance with human interactions. For this purpose, the concept of Cyber-Physical Social Systems (CPSSs) has recently evolved [2]. Smart cities, smart factories, smart healthcare, and public services can be named as some prevailing applications of CPSSs. The intrinsic complexity of CPSSs, as well as interconnection and interactions among components of the system, make their modelling more complicated . The characteristics of these kind of systems include concurrency, synchronisation, asynchronous, distributed, real-time, discrete and continuous features, additionally to the randomness commonly associated with human interactions. Regarding smart cities many correlated subjects should be considered and analysed according with the high performance of the systems, such as Intelligent traffic management, and Intelligent transportation systems, to mention a few. The aim of this paper is to introduce a proper formalisation to model CPSSs in uncertainly environment, using an intelligent traffic control system as validation example. This paper steps towards the design of a novel and adequate formalisation to model this kind of CPSSs.

(2)

Among modelling formalisms adequate to be used for specification, analysis and implementation of CPSSs, Petri nets (PN) [4] are well-suited to deal with the challenges of CPSSs, supporting a model-based development strategy, including component design, orchestration of components, as well as component and overall performance evaluation. They can also accommodate characterisation of stochastic environments [5] as PNs behavioural modelling is amenable to support modelling of both deterministic and non-deterministic characteristic of systems, which is an advantage for modelling essential features of CPSSs comparing with other formalisms (such as Markov chains).

In this paper, non-autonomous Petri nets modelling is used for the specification, analysis and implementation of CPSSs, where the PN model characteristics were augmented with the capability of dynamic time associated with the evolution of the model, as proposed in section 5. Validation of the proposals is performed using an application example coming from an intersection traffic lights control system, where both cars’ as well as pedestrians’ arrival rate are considered to constraint the behaviour of the system, impacting on its performance.

2 Relationship to resilient systems

The notion of resilience is commonly associated with “the strength of a system to resist a significant disruption within satisfactory degradation parameters and to recover with a proper time and reasonable cost and risk” [6]. In this sense, resilience of a system, as one major performance evaluation criteria, is getting paramount importance in areas such as Internet of Things, Cyber Physical systems, Industry 4.0, as well as whenever misoperation or misconduct of users can affect overall performance, as in Cyber Physical Social Systems.

Evaluating resiliency in CPSSs needs to consider stochastic and non-deterministic environment, as well as automation and human decisions effects.

The use of modelling formalisms, such as Petri nets supporting different phases of the development, namely specification, and implementation, allowing a-priori verification of properties and anticipating the impact of some failures or misconduct, contributes to the improvement of systems’ resiliency. In this extent, improving confidence in functional correctness in real-time operations, survivability during attacks, fault tolerance and robustness is supported by the adoption of a model-based development attitude, as the one proposed in this paper.

3 Summarised overview of related literature 3.1 On Cyber-Physical Social Systems

The notion of CPS has a variety of definitions, but as a common one, a CPS is “an integration of computation, communication with monitoring or/and control of entities in the physical world” [7]. Information is a main part of the concept used for connecting computation, communication and control. Information can be generated from physical components, including sensors and actuators, or multi sources, such as societies, human operators, and embedded computers, as well as from networks

(3)

monitoring and controlling the physical processes, usually with feedback loops where physical processes affect computations and vice versa, as shown in Fig. 1 [8].

Many CPS operate in concert with human operators, and the human aspect of the design of such systems must be carefully considered. The challenge for modelling them is about heterogeneity, concurrency, and sensitivity of time. As CPSs have a discrete and dynamic nature, it is of interest to model them using qualitative and quantitative models. One popular formalisation for modelling CPS is via Petri nets.

Fig. 1 - CPSS Overview

Recently, definition of cyber-physical-social systems (CPSS) has been proposed, which integrates components/dependencies originated from social constraints into CPSs. In this new paradigm human has a centric role to design systems. Actually, there is lack of semantic design methodology in many existing systems.

3.2 Petri nets

Petri nets (PN) are a graphical and mathematical modelling formalism, which are proper for analysis of behavioural properties and performance evaluation of discrete event systems [4].

Petri nets were initially introduced by Carl Adam Petri in the 1960s and have been receiving attention from different fields and areas of application. Petri nets are adequate to model core concepts of concurrent systems, namely concurrency itself, sequences, synchronisation, conflicts and resource sharing, benefiting from a rigorous execution semantics. Petri nets have a simple graphical representation, complemented by mathematical representation, as well as a text representation using the Petri Net Markup Language (PNML) defined in the standard ISO/IEC 15909 Part 2, allowing their usage within computational frameworks. The graphical representation of Petri nets is a bipartite graph composed by two types of nodes, normally referred as places and transitions, interconnected by directed arcs. Places represent the passive elements in the system, including conditions, states, resources or objects, and transitions model the dynamic part of the system.

(4)

Several extensions have been introduced, accommodating their usage for specific areas, namely controller modelling and performance analysis, among others, leading to the proposal of non-autonomous Petri nets classes.

Considering controller behaviour modelling, dependencies on the input and output signals and events coming from the environment under control need to be explicitly accommodated, as in [9]. The IOPT nets class proposed in [10] [11], which will be used as the underlying autonomous Petri net class used in this paper, is a non-autonomous extension of the well-known Place-Transition net class [4], integrating dependencies on signals and events, priorities and conditions associated with transition firing, allowing a deterministic execution, considering a cycle accurate single server maximal step execution semantics.

Considering performance analysis, time dependencies need to be added to the modelling capabilities. During the last decades different classes and definitions are introduced to expand application of the Petri nets to these areas. Time Petri nets (TPN) and Stochastic PNs (SPN) classes are extensions of PNs associating a random firing time to each transition, as in [12]. Remarkably, Generalized Stochastic Petri nets (GSPN) [13] were proposed considering two types of transitions: timed transitions (to accommodate the modelling and execution of time consuming activities) and immediate transitions (to describe transition firing not considering time dependencies), which are mostly used in performance evaluation where immediate (null delay) transitions are freely mixed with timed transitions [14]. Of particular relevance for this paper, Dynamic Time Petri net (DTPN) class, proposed in [12], on top of the static time interval associated with the firing of transitions, consider that the timing constraints are updated with a dynamic time interval mechanism.

4 Introducing a traffic light control system

Traffic management, as a common and daily problem, took the attention for being studied in this work. In this paper, an intersection traffic light is modelled as a case study of a CPSS and will be used to illustrate the effectiveness of the presented proposals. Traffic light system is composed by one physical controller component, which is in communication with computation sections. In addition, social aspects are effective parameters affecting the performance of the system. Regarding modelling of the intelligent traffic light control system, several variables can be considered to constraint the time management of the system. Table 1 lists the more relevant ones.

Table 1 Traffic light control variables

No. Variables Description

1 Number of Lights Traffic; Pedestrian

2 Number of Vehicles on the road

3 Tuning Movements Straight, Right, Left

4 Time and Days Rush hours; morning; lunch time;

mid-day; night; Mid-night.

Weekdays, Weekends and Holidays

5 Determined time for Red light Max time for stopping Vehicles

6 Number of Pedestrians

7 Vehicles type Cars; Bus; Trucks; Tractor

(5)

The objective of an intelligent traffic system is to improve performance of controlling the volume of traffic, reducing the queues and waiting times both for vehicles and pedestrians. Therefore, it is important to design a model which yield safe and efficient operation for the prevailing conditions.

Most of the previous studies found in the literature consider several operation modes (night, day, rush hours, etc.), each of them having pre-defined sequences and temporal behaviour (fixed or almost-fixed time periods). In this paper it is intended to allow that the time periods can be dynamically adjusted considering specific arrival profiles of vehicles and pedestrians.

For that end, the Petri nets class to be used will be augmented with a new attribute accommodating support for dynamically adjusted time delays, which will allow to take into consideration the variables presented in Table 1.

5 Extending IOPT nets with dynamic time delays

As referred in section 3.2, the IOPT nets class will be used as the underlying non-autonomous Petri net class for this paper; additional information about IOPT nets can be obtained from [10] and [11]. Formal definition is not presented here due to space limitations.

The extension proposed is based on the addition of a new characteristic, named as TimeDelay, which can be associated to each transition of the model having the same operational semantics as in time Petri nets [12] (which means that the firing of the transition will be delayed by a specific time interval after being enabled and ready to fire). In addition, this new characteristic is obtained as a result of the computation of an expression involving the values of dedicated input signals (this means that the value of TimeDelay is a non-autonomous characteristic, in opposition to other proposals in the literature where the time is fixed or computed based on the Petri net model characteristics). Formal definition is not presented here due to space limitations.

6 Modelling a traffic light control system

The first step to model a traffic light control system is realising the transportation system and associated processes. The traffic light which is considered has five signal lights shown in Fig. 2(a) including Red light (R), Amber (A), left turn arrow on green (GL), straight arrow on green (GS), right turn arrow on green (GR), as in the example used in [15].

(6)

(a) (b) Fig. 2 (a) Traffic Light (b) Three phase strategy for vehicle transitions

Four traffic lights are placed at intersection entrances including north, south, east, and west. Several sequences for light activation are possible to be adopted, depending on specific characteristics of the intersection. For the application example, we will adopt a 3-phase strategy as shown in Fig 2. (b), and also referred in [15] (among other possible configurations).

Overall, the system can be divided into three components: one responsible for the vehicles’ traffic lights activation (mainly actuators), other responsible for the pedestrians’ lights activation (mainly actuators), and a third one responsible for the acquisition of information from the floor regarding vehicles’ and pedestrians’ arrivals (receiving information from a sensor network) and producing recommendations for the dynamic time delays to be used by the other two components. While the third component can be seen as the intelligent part of the system, which will take into consideration the social constraints, the other two can be seen as configurable controllers, which can be modelled using models expressed through IOPT nets extended with dynamic time delays.

Fig. 3 – Petri net model for intersection vehicle traffic lights control.

The three components are modelled using Petri nets, as previously described. Due to space limitation, only the model for the component associated with the vehicles’ traffic lights activation is presented in Fig. 3. A simple modelling strategy was

(7)

adopted for Fig. 3, where a state machine representation with a Petri net notation is used, and where the input signals DTx (with x ranging from 1 to 9) are associated with the TimeDelay attribute associated with each transition. A different modelling attitude taking advantage of Petri nets modelling capabilities (namely concurrency and synchronisation capabilities) could also be used, but for a simple intersection as the one under observation it is not worth to use.

To briefly explain the model of Fig. 3, we consider the 3-phase strategy as illustrated in Fig. 2b). Each of the phases referred in Fig. 2b) is associated with three places plus three-time transitions (with dynamic time attribute) in Fig. 3. There are nine places (P11, P12, P13, P21, P22, P23, P31, P32, P33), which represent nine states of the vehicles movement (active output lights are referred close to each place), and nine-time transitions (T1, …, T9), which defines firing sequences considering nine-time delays (DT1, …, DT9) determined after computation occurred at the other component. As the computation associated with these time delays depends on different parameters according with Table 1, the behaviour of the system is dynamically tuned to optimise the performance of the system in terms of the waiting time for vehicles and pedestrians.

7 Conclusions and future work

In this work, the control part of a CPSS was modelled by Petri nets, where the list of attributes that can be associated with transitions firing was augmented with a dynamic time attribute (extending Time Petri nets common execution semantics). This attribute is the result of a calculation involving specific input signals. In this sense, this proposal put together and reuse time dependencies, normally considered for performance analysis, also in the context of controller modelling, introducing this non-autonomous characteristic as an external value.

Taking into consideration the validation provided by the presented application example, we can conclude that Petri nets are a promising formalism to support adequate modelling of CPSS kind of systems.

As future work it is foreseen to completely characterise the impact of introducing this new dynamic time attribute in terms of the verification techniques applicable to the analysis of the Petri nets models, as well as in terms of the automatic code generation amenable to be deployed into the CPS implementation platforms.

The presented application example considers a central node to manage the whole system. However, it is also possible (but outside the focus of this paper) to consider a distributed execution of different parts of the model, where dedicated communication channels are considered to accommodate synchronisation between distributed components, as proposed in [16].

References

1. D. Broman, E. A. Lee, S. Tripakis, and M. Torngren, Viewpoints, formalisms, languages, and tools for cyber-physical systems. In: 6th International Workshop on Multi-Paradigm Modeling. pp. 49–54 (2012)

2. F. Y. Wang, The Emergence of Intelligent Enterprises: From CPS to CPSS, IEEE Intelligent Systems, vol. 25, no. 4, pp. 85-88, July-Aug. (2010)

(8)

3. S.A. Seshia, S. Hu, W. Li, and Q. Zhu, Design Automation of Cyber-Physical Systems : Challenges , Advances , and Opportunities. IEEE Trans. Comput. Des. Integr. cirl. Syst. vol. 36, no. 9, pp. 1421–1434 (2017)

4. C. Girault, and R. Valk, “Petri Nets for Systems Engineering - A Guide to Modeling, Verification, and Applications”. Springer. (2003)

5. R. Mitchell, and I.-R. Chen, Effect of Intrusion Detection and Response on Reliability of Cyber Physical Systems. IEEE Trans. Reliab. vol. 62, no. 1, pp. 199–210 (2013)

6. G. Denker, N. Dutt, S. Mehrotra, M.-O. Stehr, C. Talcott, and N. Venkatasubramanian, Resilient dependable cyber-physical systems : a middleware perspective, J. Internet Serv. Appl., vol. 3, no. 1, pp. 41–49 (2012)

7. J. Zeng, L. T. Yang, M. Lin, H. Ning, and J. Ma, A survey: Cyber-physical-social systems and their system-level design methodology. Futur. Gener. Comput. Syst., no. 17 Auguest, p. in press (2016)

8. A. Zanni, Cyber-physical systems and smart cities - Learn how smart devices,sensors,and actuators are advancing Internet of Things

implementations,pp.1–8(2015) (accessed at

https://www.ibm.com/developerworks/library/ba-cyber-physical-systems-and-smart-cities-iot/)

9. H.-M. Hanisch, and A. Lüder, A Signal Extension for Petri Nets and its Use in Controller Design”, Fundamenta Informaticae, vol. 41, no. 4, pp. 415–431 (2000) 10. L. Gomes, J.-P. Barros, A. Costa, and R. Nunes; The Input-Output

Place-Transition Petri Net Class and Associated Tools, In INDIN’2007 - 5th IEEE International Conference on Industrial Informatics, 23-26 July, Vienna, Austria, (2007)

11. L. Gomes, F. Moutinho, F. Pereira, J. Ribeiro, A. Costa, and J.-P. Barros; Extending Input-Output Place-Transition Petri nets for Distributed Controller Systems development,In: ICMC’2014 - International Conference on Mechatronics and Control, Jinzhou, China, pp.1099-1104 (2014)

12. S. D. Zilio, L. Fronc, B. Berthomieu, and F. Vernadat, Time Petri Nets with Dynamic Firing Dates: Semantics and Applications,In: in 12th International Conference, FORMATS, Florence, Italy, pp 85-99 (2014)

13. M.A. Marsan, A. Bobbio, and S. Donatelli, Petri Nets in Performance Analysis : An Introduction. In: Reisig W., Rozenberg G. (eds) Lectures on Petri Nets I: Basic Models. ACPN 1996. Lecture Notes in Computer Science, vol 1491. Springer, Berlin, Heidelberg (1998)

14. G. Maione, A. M. Mangini, and M. Ottomanelli, A Generalized Stochastic Petri Net Approach for Modeling Activities of Human Operators in Intermodal Container Terminals, IEEE Trans. Autom. Sci. Eng., vol. 13, no. 4, pp. 1504–1516 ( 2016)

15. Y.-S. Huang, and T.-H. Chung, Modeling and Analysis of Urban Traffic Lights Control Systems Using Timed CP-nets, J. Inf. Sci. Eng., vol. 24, no. 3, pp. 875– 890 ( 2008)

16. F. Moutinho, and L. Gomes, Asynchronous-channels within Petri net based GALS distributed embedded systems modeling, IEEE Transactions on Industrial Informatics, vol.10, issue: 4, pp 2024-2033 (2014)

Imagem

Fig. 1 - CPSS Overview
Fig. 3 – Petri net model for intersection vehicle traffic lights control .

Referências

Documentos relacionados

The basic idea of the proposed decision-making method for service-oriented manufacturing systems is to combine the knowledge extracted from Petri nets models, mainly the

The objective of this paper is to report the conception and application of a simulation and supervisory control model, based on colored Petri nets, which

O objetivo do trabalho foi avaliar os efeitos da suplementação de gordura protegida de óleo de palma proporcionados na fase inicial de seu fornecimento sob aspectos

RESUMO: Com o objetivo de avaliar a porcentagem de repelência de extratos aquosos de plantas sobre o adulto da broca da bananeira (Cosmopolites sordidus), testou-se

8.29 Comparison of the design variable (time interval between major inspections, t insp ) with the three objective functions (mean condition state, total maintenance cost at the

A methodology for modeling manufacturing systems based on Petri Nets (PN), and considering a hierarchical and modular approach for detection and treatment of faults

Dentre as inúmeras proteínas participantes do mecanismo de transdução de sinais tem se destacado a proteína quinase de adesão focal, cujo conhecimento do

Figura 6.9 - Perfil final com suporte de baterias à esquerda e perfil da bateria ao longo do tempo à direita, com a carga inicial da bateria de 100%, para a semana de