Extending the Hierarchy of System Specifications and Morphisms with SES Abstraction
Abstract
:1. Introduction
“In recent decades, modeling and simulation has evolved to the point where it is now a recognized discipline and provides infrastructure for disciplines spanning the whole spectrum of human knowledge, intellectual and practical effects. The term “modeling and simulation” grants equal stress on both modeling and simulation aspects of this discipline. The Modeling and Simulation Body of Knowledge (M&S BoK) is a living work in process with the goal of establishing a kernel of topics that categorically characterize the discipline of modeling and simulation as it drives the progress of multifold disciplines in science, engineering, and the arts. The essence of M&S is the creation of conceptual representations of entities, relations, and processes describing a problem domain with the goal of making them computationally executable artifacts. Such simulation models can be used to perform experiments or to gain experience; both dimensions provide a multitude of possibilities”.
- Use of system specification hierarchy and associated morphisms. The levels of system specification range from lowest level behavior specification to highest level structural specification [3]. Corresponding to each system specification level is a morphic relation appropriate to a pair of systems specified at that level. Morphisms at each level are defined such that a morphism which preserves the structural features of one system in another system at one level also preserves its features at all lower levels.
- Development Method. The morphisms at the Input/output Function and State Transition levels underlie the minimal realization and homomorphic image concepts supporting the quest for minimal explanatory forms and computationally feasible implementations. Validation of the latter proceeds via proofs and Discrete Event System Specification (DEVS)-based simulations. The prioritization of behaviors for first consideration is motivated by the desire to come up with, and define, building blocks and architectural coupling patterns for ubiquitous, composable, and reusable application [2].
- Minimal forms. In line with the hoary dictum of philosophy, Occam’s razor, we seek explanations of behavior that contain only those assumptions that are necessary to the explanation. However, the minimal realizations that we seek are based on concepts formulated in mathematical systems theory derived from both linear systems theory and finite automata theory [5]. Proving that a realization of a behavior is minimal in this sense implies that it is a homomorphic image in relation to any implementation of the same behavior. Moreover, definitions for state-based realization of behaviors based on mathematical system theory and DEVS fundamentally include temporal and probabilistic characteristics of system inputs, state, and outputs [3]. Moreover, they provide a solid system-theoretical foundation and simulation modeling framework for both low and high-performance computational support of complex phenomena model development.
- Network construction. The hierarchy of system specifications includes levels for definition of networks of components with coupling specification. This is exemplified by the DEVS coupled model definition with its well defined coupling specification. The proof of closure under coupling shows how resultant networks are equivalent to basic models, and can be treated as such in hierarchical construction [3].
- Model formalism for Simulation and Design. DEVS enables formal and complete description of hybrid continuous/discrete model components and subsystems. DEVS-based software tool sets provide atomic model and hierarchical coupled model specifications that support graphical description of the internals and interfaces of component behavior combining energy, material, and information flows. The hybrid DEV&DESS [3] formalisms enable expressing differential and algebraic equations for energy-related internal variables intermixed with discrete behavior described in state-based system form. Finally, transparent implementation of the canonical DEVS abstract simulator for handling events and equations enable design of dedicated simulation functionality.
2. Operationalizing the Hierarchy of System Specifications and Morphisms
- MetaSES for Neural Net:
- Classes: N, S
- Coupling: N sends Spike to S, S sends Spike to N
- Free Digraph pre-image of MetaSES:
- Components: neurons in N, synapses in S
- Coupling: all-to-all N to S via Spike, all-to-all S to N via Spike
- Transformable SES:
- Components: neurons in N indexed 1,2,…|N|, synapses in S indexed by all pairs (i,j) where i ! = j
- Coupling: each neuron sends Spike to the synapses with the same left index,
Summary of MetaSES Application Examples
3. Application to Event-Based Language Processing
3.1. Finite State Language Acceptance
- Classes: AN (Activation Node), Elementary Perception Unit (EPU), First Arrival (FA)
- Coupling:
- ○
- FSA sends X to EPU, (external input coupling)
- ○
- EPU sends Activate to AN, (internal coupling)
- ○
- AN sends Activate to EPU,
- ○
- AN sends Activate to FA,
- ○
- FA sends Activate to FSA (external output coupling)
- Free Digraph pre-image of MetaSES:
- Components:
- ○
- {ANq | q ∈ Q} (Activation Node for each state)
- ○
- {EPUx| x ∈ X} (EPU for each input element}
- ○
- FA
- Coupling:
- ○
- FSA sends Activate to all AN (external input coupling)
- ○
- FSA sends X to all EPU (external input coupling)
- ○
- all EPU sends Activate to all AN,
- ○
- all AN sends Activate to all EPU,
- ○
- all AN sends Activate to FA, (internal coupling)
- ○
- FA sends Activate to FSA (external output coupling)
- Transformable SES:
- Components:
- ○
- {ANq | q ∈ Q} (Activation Node for each state)
- ○
- {EPUx,i | x ∈ X, i = 1, …, Number occurrences of x in delta} (There is one EPU for each occurrence of x, and it causes a distinct state transition so it must be identified uniquely)
- ○
- FA
- Coupling:
- ○
- FSA sends Activate to ANq0
- ○
- For each q in F, ANq sends Activate to FA,
- ○
- FA sends Activate to FSA
- ○
- FSA sends X to all EPU
- Algorithm Sketch:
- Assignment algorithm to properly restrict couplings of the form: all EPU sends Activate to all AN, and all AN sends Activate to all EPU.
- For each x ∈ X, index the occurrences of x
- Define Dict = {(q,xi,q’) where q’ = delta(q,xi) and xi is the ith occurrence of x ∈ FSA}
- For each triple (q,x,q’) ∈ Dict
3.2. Resolving Competing Solutions in Language Acceptance
- MetaSES: Given FSA = <Q,X,delta,qo,F>
- Coupling:
- ○
- FSA sends X as DeActivate to AN
- ○
- AN sends Spike as Activate to FA
- Transformable SES:
- Coupling:
- ○
- For each q in F, FSA sends X as DeActivate to ANq
- ○
- For each q in F, ANq sends Spike as Activate to FA,
- ○
- FA sends Activate to FSA
3.3. Finite State Language Generation
- MetaSES: Given FGA = < Q,X,delta,qo,F>
- Classes: AN (Activation Node), Elementary Generation Unit (EPU)
- Coupling:
- ○
- FGA send Activate to AN (external input coupling)
- ○
- EGU sends X to FGA (external output coupling)
- ○
- EGU sends Activate to AN,
- ○
- AN sends Activate to EGU,
- ○
- EGU sends Bid to EGU
3.4. Resolving Competing Outputs in Language Generation
3.5. Summary: MetaSES Enhancement of System Specification
4. MetaSES for Hierarchical Compositions
- MetaSES for NN
- Classes: Neuron, N
- Coupling:
- ○
- Neuron sends Spike to Neuron
- MetaSES for Neuron
- Classes: Dendrite (D), CellBody (CB), Axon (A)
- Coupling:
- ○
- N sends Spike to D, (external input coupling)
- ○
- D sends Spike to CB,
- ○
- CB sends Fire to A,
- ○
- A sends Spike to N, (external output coupling)
- Transformable SES for NN:
- Components:
- ○
- Neurons, N
- Coupling:
- ○
- All Neuron sends Spike to all Neuron
- Transformable SES for Neuron, N
- Classes: Dendrite (D), CellBody (CB), Axon (A)
- Coupling:
- ○
- N sends Spike to all D, (external input coupling)
- ○
- All D sends Spike to CB,
- ○
- CB sends Fire to all A,
- ○
- All A sends Spike to N, (external output coupling)
- ○
- For each ai in components of A, ai sends Spike to N as Spikei.
- ○
- For each di in components of D, N sends Spikei to di.
5. MetaSES and Model Continuity: DEVS Random Forest AI/ML Models
6. Implication of MetaSES for Modeling and Simulation Methodology
6.1. Implications for Multi-Resolution Modeling
6.2. Implications for Simulation Modeling Repositories
6.3. Implications for Cyber-Physical System Design
6.4. Implications for Automated Code Generation
7. Conclusions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A
Appendix A.1. Transformation of MetaSES Specifications through the Identified Stages into Executable Simulation Models
- Construction of Coupled DEVS model from MetaSES description
- We construct the free digraph represented by the MetaSES and then the coupled model derived from it. For simplicity we consider only internal couplings. The mapping to external couplings can be handled with the same approach.
- MetaSES G = <Nodes,Edges> where Nodes = Classes = {A}, e ∈ Edges implies e = (A,(op,ip),B), and A, B ∈ Classes (where we allow A = B).
- FreeDigraph generated by G: Given cardinality of A, |A|, for each A ∈ Classes, we have
- FG = < Nodes,Edges> where Nodes = Disjoint Union of Components of A in Classes, where components of A = {a1,a2,…,a|A|,} and Edges = { (ai,(op,ip), bj)| ai, ∈ Components of A, bj, ∈ Components of B, and e = (A,(op,ip),B) is an edge in G.
- The Coupled DEVS Model constructed from FG,
- N(FG) = < D, {Md|d ∈ D, IC>
- Where D = Nodes of FG and for each d ∈ D, Md is a DEVS model with input ports, IPd, and output ports, OPd.
- Here, IPd = {ip| there is an edge ∈ G of the form (A, (op,ip), B), where d ∈ B } (ip is the input port for some specified coupling)
- OPd = {op| there is an edge ∈ G of the form (A, (op,ip), B), where d ∈ A } } (op is the output port for some specified coupling)
- For each edge e = (A,(op,ip),B) ∈ Edges of G, each component ai of A and each component bj of B, we add a coupling pair (ai,(op,ip), bj) to IC. Thus we have all-to-all coupling from components of A to components of B for every pair of classes A, B mentioned in the MetaSES, G.
- Thus, IC = < ((ai,op), (bj,ip) | (ai,(op,ip), bj) is an edge of FG>
- Algorithm sketch to write the Free SES i given MetaSES, G
- Given DEVS models MA, MB, MC,.. for Classes A,B,C,…
- and given respective sizes NA,NB,NC,… define an SES to construct the DEVS coupled model N(FG)
- Define a string s = “”;
- 1.
- Create HashSets for each class, X ∈ Classes
- HSX = {id0_X, id1_X,..,}
- 2.
- Write the first line for the SES:
- s + = “From the system perspective, N is made of “;
- For each X ∈ Classes
- For each x ∈ HSX
- s + = x+”,”;
- s + = “!”;
- 3.
- Write the internal coupling:
- For each pair (A,B) for which there is an edge e = (A,(op,ip),B) ∈ G
- For each a ∈ HSA
- For each b ∈ HSB
- s + = “From the system perspective,
- “+a+” sends “+op+” to “+b+” as “+ip+”!”
Appendix A.2. Example of SES and DEVS Network Model Generated from MetaSES: Recognition of L = {a,aa}
- From the fsa perspective, FSAAARecNet is made of FirstArrival, XN1_EPU,XN2_EPU, passive_ActivationWHold, TwoA_ActivationWHold, and OneA_ActivationWHold!!
- From the fsa perspective, passive_ActivationWHold sends Activate to XN1_EPU!
- From the fsa perspective, XN1_EPU sends Activate to OneA_ActivationWHold!
- From the fsa perspective, OneA_ActivationWHold sends Activate to XN2_EPU!
- From the fsa perspective, XN2_EPU sends Activate to TwoA_ActivationWHold!
- From the fsa perspective,FSAAARecNet sends Activate to passive_ActivationWHold!
- From the fsa perspective, OneA_ActivationWHold sends outSpike to FirstArrival as inX!
- From the fsa perspective, TwoA_ActivationWHold sends outSpike to FirstArrival as inX!
- From the fsa perspective, FirstArrival sends outY to FSAAARecNet as outActivate!
- From the fsa perspective, FSAAARecNet sends inX to XN1_EPU as inSpike!
- From the fsa perspective, FSAAARecNet sends inX to OneA_ActivationWHold as inDeActivate!
- From the fsa perspective, FSAAARecNet sends inX to TwoA_ActivationWHold as inDeActivate!
- From the fsa perspective, FSAAARecNet sends inX to XN2_EPU as inSpike!
- From the fsa perspective, FSAAARecNet sends inX to OneA_ActivationWHold as inDeActivate!
- From the fsa perspective, FSAAARecNet sends inX to TwoA_ActivationWHold as inDeActivate
- The network DEVS model generated from this SES is shown in Figure A1.
References
- Oren, T.; Zeigler, B.P.; Tolk, A. (Eds.) Body of Knowledge for Modeling and Simulation; Springer: Berlin/Heidelberg, Germany, 2022. [Google Scholar]
- Zeigler, B.P. Exploiting the levels of system specification for modeling of mind. In Proceedings of the Winter Simulation Conference (WSC), Singapore, 11–14 December 2022. [Google Scholar]
- Zeigler, B.P.; Muzy, A.; Kofman, E. Theory of Modeling and Simulation: Discrete Event Iterative System Computational Foundations; Academic Press: New York, NY, USA, 2018. [Google Scholar]
- Wymore, W.A. A Mathematical Theory of Systems Engineering—The Elements; Wiley: Hoboken, NJ, USA, 1967. [Google Scholar]
- Zeigler, B. DEVS-Based Building Blocks and Architectural Patterns for Intelligent Hybrid Cyberphysical System Design. Information 2021, 12, 531. [Google Scholar] [CrossRef]
- Grossberg, S. Conscious Mind/Resonant Brain: How Each Brain Makes a Mind; Oxford University Press: New York, NY, USA, 2021. [Google Scholar]
- Minsky, M. The Society of Mind; Simon and Schuster: New York, NY, ISA, 1986. [Google Scholar]
- Wang, Y. On Cognitive Informatics. Brain Mind 2003, 4, 151–167. [Google Scholar] [CrossRef]
- Wilsdorf, P.; Heller, J.; Budde, K.; Zimmermann, J.; Warnke, T.; Haubelt, C.; Timmermann, D.; van Rienen, U.; Uhrmacher, A.M. A Model-Driven Approach for Conducting Simulation Experiments. Appl. Sci. 2022, 12, 7977. [Google Scholar] [CrossRef]
- Pawletta, T. Basic System Entity Structure (SES) Concepts. In Body of Knowledge for Modeling and Simulation; Oren, T., Zeigler, B.P., Tolk, A., Eds.; Springer: Berlin/Heidelberg, Germany, 2022; Chapter 1.5. [Google Scholar]
- Folkerts, H.; Pawletta, T.; Deatcu, C.; Santucci, J.; Capocchi, L. An Integrated Modeling, Simulation and Experimentation Environment in Python Based on SES/MB and DEVS. In Proceedings of the SummerSim-SCSC, Berlin, Germany, 22–24 July 2019. [Google Scholar]
- Keller, N.; Zeigler, B.; Kim, D.; Anderson, C.; Ceney, J. Supporting the reuse of algorithmic simulation models. In Proceedings of the Spring Simulation Conference, Baltimore, MD, USA, 15–18 April 2018. [Google Scholar]
- Zeigler, B.P.; Sarjoughian, H. Modeling and Simulation of Systems of Systems; Springer Pub. Co.: New York, NY, USA, 2017. [Google Scholar]
- Zeigler, B.P. Hybrid Iterative System Specification of Cyberphysical Systems: Neurocognitive Behavior Application. In Proceedings of the 2020 Spring Simulation Conference (SpringSim), Virtual Conference, Fairfax, VA, USA, 18–21 May 2020. [Google Scholar]
- Seo, C.; Zeigler, B.; Coop, R.; Kim, D. DEVS Modeling and Simulation Methodology with MS4Me Software TMS. In Proceedings of the 2013 Spring Simulation Multiconference, San Diego, CA, USA, 7–10 April 2013. [Google Scholar]
- Vahie, S. Dynamic Neuronal Ensembles: Neurobiologically Inspired Discrete Event Neural Networks. In Discrete Event Modeling and Simulation Technologies; Sarjoughian, H., Ed.; Springer: Berlin/Heidelberg, Germany, 2000. [Google Scholar]
- Alam, M.S.; Vuong, S.T. Random Forest Classification for Detecting Android Malware. In Proceedings of the IEEE International Conference on Green Computing and Communications, Beijing, China, 20–23 August 2013; pp. 663–669. [Google Scholar]
- Zeigler, B.P.; Kim, D. Multi-Resolution Modeling for Adaptive UAV Service Systems. In Proceedings of the 2019 Spring Simulation Conference (SpringSim), Tucson, AZ, USA, 29 April–2 May 2019; pp. 1–12. [Google Scholar] [CrossRef] [Green Version]
- Valdemar, V. Graciano Neto and Cláudio Gomes, 2022 Resource Repositories. In Body of Knowledge for Modeling and Simulation; Oren, T., Zeigler, B.P., Tolk, A., Eds.; Springer: Berlin/Heidelberg, Germany, 2022. [Google Scholar]
- Basciani, F.; Di Rocco, J.; Di Ruscio, D.; Pierantonio, A.; Ludovico, I. Model repositories: Will they become reality? In Proceedings of the International Workshop on Model-Driven Engineering on and for the Cloud (CloudMDE), Ottawa, ON, Canada, 29 September 2015. [Google Scholar]
- Zeigler, B.P. Simulation-Based Evaluation of Morphisms for Model Library Organization. In Model Engineering for Simulation; Lin, Z., Bernard, P.Z., Yuanjun, L., Eds.; Academic Press: Cambridge, MA, USA, 2019. [Google Scholar]
- Gourlis, G.; Kovacic, I. Energy efficient operation of industrial facilities: The role of the building in simulation-based optimization. IOP Conf. Ser. Earth Environ. Sci. 2020, 410, 012019. [Google Scholar] [CrossRef]
- Zeigler, B.P.; Mittal, S.; Traore, M. MBSE With/Out Simulation: State of the Art and Way Forward. Systems 2018, 6, 40. [Google Scholar] [CrossRef] [Green Version]
- Juan, B.-R.; Besada-Portas, E.; López-Orozco, J.A. Cloud DEVS-based computation of UAVs trajectories for search and rescue missions. J. Simul. 2022, 16, 572–588. [Google Scholar] [CrossRef]
- Alshareef, A.; Seo, C.; Kim, A.; Zeigler, B.P. DEVS Markov Modeling and Simulation of Activity-Based Models for MBSE Application. In Proceedings of the 2021 Winter Simulation Conference, Phoenix, AZ, USA, 12–15 December 2021. [Google Scholar]
- Xpand Code Generation Based on EMF Models. 2021. Available online: https://projects.eclipse.org/projects/modeling.m2t.xpand (accessed on 13 May 2021).
- Xtext Language Engineering for Everyone. 2021. Available online: https://www.eclipse.org/Xtext/ (accessed on 13 May 2021).
- Sirius. The Easiest Way to Get Your Own Modeling Tool. 2021. Available online: https://www.eclipse.org/sirius/ (accessed on 13 May 2021).
- Acceleo. Generate Anything from Any EMF Model. 2021. Available online: https://www.eclipse.org/acceleo/ (accessed on 10 November 2022).
- Xie, K.; Li, X.; Zhang, L.; Gu, P.; Chen, Z. SES-X: A MBSE methodology based on SES/MB and XLanguage. Inf. J. 2023, 14, 23. [Google Scholar]
- Tolk, A. Simulation-Based Optimization: Implications of Complex Adaptive Systems and Deep Uncertainty. Information 2022, 13, 469. [Google Scholar] [CrossRef]
Level | Specification Name | What We Know at This Level | Examples to Be Discussed in the Sequel |
---|---|---|---|
0 | I/O Frame | How to stimulate the system with inputs; what variables to measure and how to observe them over a time base; | Input: set of symbols from an alphabet Output: Boolean variable indicating acceptance or not of input stream as sequence in regular language |
1 | I/O Relation | Time-indexed data collected from a source system; consists of input/output pairs | Union of I/O Functions over all initial states so that multiple output segments may result from the same input segment (depending on which state actually was in force initially.) |
2 | I/O Function | Knowledge of initial state; given an initial state, every input segment produces a unique output segment. | Pairing of unique output value with input segment of symbols indicating acceptance, or not, of input stream as sequence in regular language. |
3 | I/O System | How states are affected by inputs; given a state and an input what is the state after the input stimulus is over; what output event is generated by a state. | This is the specification level at which the minimal realization of an I/O Function resides. For example, the acceptor with the smallest number of states for a given language is described at this level. |
4 | Structured System | The I/O System state is described in terms of a cross-product of state sets, such as a point in a vector space. | The description of the Random Forest model as it transits from global state to global state under input and activation events. |
5 | Multi-component System | The system is specified as composition of components whose outputs are directly linked to inputs of other components | The Verilog implementation of the Random Forest model resides at this level where components are tightly “wired” lacking the ability to stand alone. |
6 | Network of Systems | Components and how they are coupled together. The components can be specified at lower levels or can even be structure systems themselves–leading to hierarchical structure. | The SES-based implementation of the Random Forest model resides at this level as a composition of modular systems with explicit coupling rather than hard wired connections. |
Type of Network Model | Hierarchy | MetaSES | Transformable SES |
---|---|---|---|
Artificial Neural Nets | Single level | Neurons and Synapses are coupled via Spikes | Synapses are in one-one correspondence with pairs of Neurons |
Language Acceptance | Single level | Activation Nodes and Elementary Perception Units are coupled by Activate signals to recognize external input streams of symbols. | Activation and input have distinct coupling patterns; DeActivateable nodes enable later solutions to win. |
Language Generation | Single level | Activation Nodes and Elementary Generation Units are coupled by Activate signals to generate external output streams of symbols. | Activation and output have distinct coupling patterns; Competing transitions vie for activation with a bidding protocol. |
Dynamic Neuronal Ensembles | Two level composition of (1) Neurons and (2) Neuron components | (1) Neurons at the top level of a hierarchical composition are coupled via Spikes. (2) Neurons are composed of dendrites, cellbody interacting via fire signals and Spikes. | Axon outputs and dendrite inputs are individual exposed as ports at the Neuron level to enable control of axon to dendrite couplings. |
Random Forest of Decision Trees | Two level composition of (1) Decision trees and (2) Decision tree components | (1) Forest composed of trees in parallel composition with output collector. (2) Decision Tree is composed of input image, Yes/No Decision models and report nodes. | Yes/No Decision models, receive external features from the input image and channel decision making via downstream Activate signals to final classification report notes. |
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. |
© 2022 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zeigler, B.P. Extending the Hierarchy of System Specifications and Morphisms with SES Abstraction. Information 2023, 14, 22. https://doi.org/10.3390/info14010022
Zeigler BP. Extending the Hierarchy of System Specifications and Morphisms with SES Abstraction. Information. 2023; 14(1):22. https://doi.org/10.3390/info14010022
Chicago/Turabian StyleZeigler, Bernard P. 2023. "Extending the Hierarchy of System Specifications and Morphisms with SES Abstraction" Information 14, no. 1: 22. https://doi.org/10.3390/info14010022
APA StyleZeigler, B. P. (2023). Extending the Hierarchy of System Specifications and Morphisms with SES Abstraction. Information, 14(1), 22. https://doi.org/10.3390/info14010022