<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Numerical P Systems: Variants and Applications</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Radu Traian Bobe</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marian Gheorghe</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Florentin Ipate</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ionuţ Mihai Niculescu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, Faculty of Mathematics and Computer Science University of Bucharest</institution>
          ,
          <addr-line>Str Academiei 14, Bucharest, 010014</addr-line>
          ,
          <country country="RO">Romania</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Faculty of Engineering and Informatics, University of Bradford</institution>
          ,
          <addr-line>Bradford, West Yorkshire, BD7 1DP</addr-line>
          ,
          <country country="UK">United Kingdom</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Numerical P systems are compuational models which are inspired by cellular processes and use numerical values inside the membrane structure. In this paper we will present the variants of numerical P systems that have been proposed in the literature. In particular, we will discuss the advantages introduced by these extensions in terms of Turing completeness and potential applications. Moreover, using a reference example, we will experiment a mapping between some important numerical P systems variants.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Membrane Computing</kwd>
        <kwd>Numerical P systems</kwd>
        <kwd>Spiking Neural P systems</kwd>
        <kwd>Enzymatic Numerical P systems</kwd>
        <kwd>Modelling</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>interactions and transport across the cells.</p>
      <p>
        Diferent variants of the original model were then
proThe innovative and precise character of natural processes, posed, based on the interactions and positioning of the
often referred to as "the intelligence of matter" has led to cells. If cell-like P systems feature a hierarchical
conthe emergence of an interdisciplinary area at the inter- figuration of membranes as in a cell, tissue-like P
syssection of biology and computer science, called natural tems [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] have several one-membrane cells arranged as
computing. Membrane computing, evolutionary compu- nodes in an undirected graph. This arrangement gave the
tation, cellular automata, as well as neural computing are model name, because the cells are organized as in a tissue.
just a few of the most important areas of natural comput- Moreover, Ionescu et al. introduced in 2006 neural-like
ing. P systems, that incorporates the idea of spiking neurons
Membrane computing is a branch of natural comput- into the area of membrane computing. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. This novel
ing, developed by Gh. Păun in 1998 [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The concept category of membrane systems has cells represented as
is inspired by the biological functionality of living cells, neurons from a neural net. The communication between
abstracting computational models. A cell-like membrane them is represented as electrical impulses called spikes.
system, also called a P system is a formalism that ab- More definitions about membrane computing, as well as
stracts and mimics the processes observed in living cells, examples and technical results can be found in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
specifically focusing on how membranes within cells A category of cell-like P systems that use numerical
valinteract and process information. The membranes are ues in the compartments sparked interest and
innovarepresented as compartments that encapsulates objects tions in fields like economics or robotics. These
memand rules. We can refer to objects as entities that in- brane systems are called numerical P sytems [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and focus
habit inside membranes and are transformed according on manipulating numerical values inside the membrane
to the rules. A rule is similar to a chemical reaction, to structure. This paper aims to present the variants of
nuthe extent that dictates the evolution of objects within merical P systems. In particular, we will highlight the
and across membranes. Continuing the analogy with the main diferences between them, analysing the
computabio-chemical domain, this process is similar to molecular tional power. We will also demonstrate a transformation
24rd Conference ITAT: Workshop on Natural Computing between the most interesting models proposed in the
lit* Corresponding author. erature, taking the examples from the reference articles.
† These authors contributed equally. This paper is structured as follows: Section 2 introduces
$ radu.bobe@s.unibuc.ro (R. T. Bobe); m.gheorghe@bradford.ac.uk the formal definition of numerical P systems and spiking
(M. Gheorghe); florentin.ipate@unibuc.ro (F. Ipate); numerical P systems. Section 3 presents and classifies all
ionutmihainiculescu@gmail.com (I. M. Niculescu) the numerical P systems variants. Section 4 illustrates
httphstt:/p/sw:/w/www.ifwso.bfrta.rdof/o~rflodr.eanct.uink./isptaatf/em/ g(Fh.eIopragthe)e; (M. Gheorghe); the conversion from a numerical P system to a numerical
https:\ionutmihainiculescu.ro (I. M. Niculescu) P system with Boolean condition and a numerical spiking
0009-0005-6611-3176 (R. T. Bobe); 0000-0002-2409-4959 neural P system. Section 5 states the conclusions of this
(M. Gheorghe); 0000-0001-8777-3425 (F. Ipate); paper as well as future research directions.
0000-0002-6135-9135 (I. M. Niculescu)
      </p>
      <p>© 2024 Copyright for this paper by its authors. Use permitted under Creative Commons License
CPWrEooUrckReshdoinpgs IhStpN:/c1e6u1r3-w-0s.o7r3g ACttEribUutRion W4.0oInrtekrnsahtioonpal (PCCroBYce4.0e).dings (CEUR-WS.org)
• Vari is a set of variables from membrane
• Vari (0 ) is the initial values of the variables from
• Pri is the set of programs from membrane</p>
    </sec>
    <sec id="sec-2">
      <title>2. Preliminaries</title>
      <sec id="sec-2-1">
        <title>2.1. Numerical P System Definition</title>
        <p>
          Before presenting any variant of numarical P system,
we find it useful to introduce the formal definition
of numerical P systems, the central concept of our
survey. Without reiterating any details about membrane
computing, we present a numerical P system [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] as the
following tuple:

= (m, H , , (Var1 , Pr1 , Var1 (0 )), . . . ,
(Varm , Prm , Varm (0 )))
(1)
        </p>
        <sec id="sec-2-1-1">
          <title>1 is degree of the system Π (the number of</title>
        </sec>
        <sec id="sec-2-1-2">
          <title>A numerical P system evolves by iteratively applying</title>
          <p>the rules that transform numerical values according to
the dynamics defined. In this way, numerical processes
observed in economics, robotics or real-word phenomena
are simulated.</p>
        </sec>
        <sec id="sec-2-1-3">
          <title>An example of numerical P system is presented later in this paper, in Section 4.1.</title>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. From Artificial Neural Networks to</title>
      </sec>
      <sec id="sec-2-3">
        <title>Spiking Neural P Systems</title>
        <p>
          Artificial Neural Networks [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] are computational models
inspired by the interaction between biological neural
networks from the human brain. The central computing
elements of an Artifical Neural Network (ANN) is
called neuron. The connections between neurons, called
synapses are made through input signals. The strength
of these signals is controlled by the weights associated
with synapses.
        </p>
        <sec id="sec-2-3-1">
          <title>Spiking Neural Networks (SNNs) [8] are ANNs models</title>
          <p>of computation that mimic the functioning of neural
networks. Unlike traditional ANNs, which use continuous
activation functions, SNNs use discrete events known as
"spikes" to transmit information. This leads to a more
eficiently processing of time-dependent data.</p>
        </sec>
        <sec id="sec-2-3-2">
          <title>Spiking Neural P systems (SN P systems) are a variant</title>
          <p>of membrane computing model that combine concepts
from Spiking Neural Networks and membrane systems.</p>
        </sec>
        <sec id="sec-2-3-3">
          <title>Neurons are individual units that send out signals in</title>
          <p>when the neuron accumulates enough input signals to
reach a threshold. SN P systems were formalized by</p>
        </sec>
        <sec id="sec-2-3-4">
          <title>Ionescu et al. in [3].</title>
          <p>During each computation step, the rules within each
neuron are executed in parallel. If a neuron contains
multiple rules, one of them will be nondeterministically
chosen and applied. At any step, the configuration of the
system is described by the states of the neurons
represented by the quantity of spikes present in each neuron
at that time.</p>
        </sec>
        <sec id="sec-2-3-5">
          <title>The computing power of SN P systems is significant and represents a key component in the research area of</title>
        </sec>
        <sec id="sec-2-3-6">
          <title>Turing complete which means that they can compute any</title>
          <p>computation that can be done if provided with enough
memory and time. Moreover, SN P systems are powerful
tools in biological modeling, as one of the main
motivations for developing them was to understand and model
biological neural networks.</p>
        </sec>
        <sec id="sec-2-3-7">
          <title>An in-depth survey detailing the computational process</title>
          <p>
            of Spiking Neural P systems as well as the computational
power of its variants can be consulted in [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ].
cal arrangement of membranes that can be
visualized as an expression of matching brackets,
each pair representing a membrane.
          </p>
        </sec>
        <sec id="sec-2-3-8">
          <title>It also</title>
          <p>
            organizes inter-membrane communication [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ] .
          </p>
          <p>The programs are the components responsible
for computing the values of the variables at each
has the following form:
simulation step. A program Prli ,i , 1 ≤ li ≤</p>
          <p>mi
Fli ,i (x1 ,i , . . . , xk,i ) → c1 ,i |v1 + c2 ,i |v2 + . . .</p>
          <p>+cmi ,i |vmi
tion, c1 ,i |v1 + c2 ,i |v2 + · · ·</p>
          <p>
            + cmi ,i |vmi is the
repartition protocol, and x1 ,i , . . . , xk,i are
variables from  . Variables 1, 2 . . .  can be
from the membrane where the programs are
located, and from its outer and inner compartments,
for a particular membrane . If a compartment
contains more than one program, a common
strategy is to execute all the programs in parallel. This
is called all-parallel mode. More details about how
the variables values are computed according to
the programs are presented in [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ].
          </p>
          <p>
            The membrane structure  is a hierarchi- form of spikes to other neurons. These spikes occur
where Fli ,i (x1 ,i , . . . , xk,i ) is the production func- this topic. It has been shown [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ] that SN P systems are
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Numerical P systems variants</title>
      <p>
        one-parallel ENP systems as number generators, two
enzymatic variables are suficient. The results significantly
The use of numerical values in the compartments of a improved upon the previous data, where the numbers of
cell-like membrane structure has naturally led to possible enzymatic variables were 13 and 52 for the all-parallel
use cases in economics. Even if the economic interpre- and one-parallel systems, respectively.
tations of the variables evolution inside a numerical P Numerical P systems with thresholds (TNP systems)
system may vary, complex interactions between diferent [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] employ a similar strategy to the enzymatic control in
currency exchange models or economic policies can be the sense that they use evolution programs in controlled
done. manner. The diference is that a program can be applied
Programs are fundamental to the functionality of NP only when the values of the variables involved in the
systems and define computational processes, enabling production function are not smaller (Lower Threshold
powerful computing performance and numerical anal- Numerical P systems) or not greater (Upper Threshold
ysis. Starting from the importance of programs within Numerical P systems) than the constant. A related
a numerical P system and driven by the desire of better approach was introduced in [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] where a production
control the processes, numerous variants of NP systems threshold control strategy is implemented. Instead of
have been proposed. In short, researchers have employed comparing every value of variables involved in the
diferent mtehods of using the evolution programs to find program with a constant, in numerical P systems
new possible real-life applications of NP systems or to with production thresholds (PTNP systems), the entire
study the universality results as well as the computa- production value is compared with a constant. The
tional power of the resulted variants. production function is applied only when its value is
In this section, we will briefly present the extensions in- not smaller (the lower-threshold case) or not greater
troduced by each variant to the basic model, as well as (the upper-threshold case) than its associated constant.
some initial results and possible use cases. Even if the usability of these two numerical P systems
In the classical model of a NP system, only one production in concrete applications remains an open subject, the
function can be applied from each membrane in a time language generating power of numerical P systems with
unit. This case is called deterministic. In the stochastic thresholds was discussed in [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ].
case, if a membrane contains more than one production Numerical P systems with thresholds were the
fundafunction, one of them is randomly chosen. Enzymatic Nu- mental concept for other research topics as well, with
merical P systems (ENP systems) allow a better control their integration with Petri Nets being investigated in
of programs applications, by incorporating enzymes into [26], where the operations of Petri Nets were associated
the production functions, which allows for more accu- with the evolutions in TNP systems. Another interesting
rate transformations of numerical values. As presented approach is presented in [17] where six mall universal
in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], in an ENP system a rule can only be applied (in function computing devices of TNP systems were
this case, the rule is called active) if the corresponding en- constructed.
zyme is present in the necessary amount. It is important
to mention that an enzyme can be present in more than Taking into consideration the above mentioned
one production functions. All the active rules are then ifndings, it is unanimously accepted that control
executed in parallel. In this way, more precise and regu- conditions play a crucial role in controlling the evolution
lated transformations of numerical values are obtained, of numerical P systems. Addressing potential practical
reflecting the catalytic and regulatory roles of enzymes applications, the large majority of dynamic systems
in biological systems. In addition to the use of numerical requires an accurate control. The above mentioned
P systems in economics, enzymatic numerical P systems numerical P systems variants have introduced the
can be utilized in robotics to enhance the precision and concept of control conditions. However, this conditions
adaptability of control algorithms [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. tend to have a simple logic and may not be able to
Enzymatic numerical P systems were proved to be Tur- achieve the requirements in a real-world dynamic
ing universal, aspects like the complexity of polynomial system scenario. In order to overcome this limitation,
production functions or the number of variables being Liu et al. [18] introduced the control condition in
investigated. The computational power on ENP systems Boolean form and proposed a new variant of NP
was discussed in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. The topic was considered from systems, called Numerical P Systems with Boolean
a diferent point of view in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], with the focus on de- condition (BNP systems). Even if the control condition
termining the smallest number of enzymatic variables in the previous variants of numerical P systems can be
needed for universal ENP systems. Zhang et al. proved expressed as a Boolean condition, there were still a lot
that if ENP systems are used as number acceptors in of Boolean expressions that cannot be expressed in all
the all-parallel or one-parallel mode, only one enzymatic these variants. In a BNP system, the condition can be
variable is needed to achieve universality. In the case of any Boolean expression using relational operators and
have introduced a stronger control mechanism that
can be useful in real-world applications of NP systems.
      </p>
      <sec id="sec-3-1">
        <title>Moreover, it was proved that BNP systems are Turing universal as number generating/accepting devices and function computing devices, respectively, working in all-parallel, one-parallel and sequential mode.</title>
      </sec>
      <sec id="sec-3-2">
        <title>In addition to these variants that target control</title>
        <p>conditions, other extensions of numerical P systems
have also been proposed. Pavel and Dumitrache [19]
introduced Hybrid Numerical P systems (HNP systems).</p>
      </sec>
      <sec id="sec-3-3">
        <title>Numerical P systems with migrating variables (MNP</title>
        <p>
          systems) [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] were inspired by the fact that in standard
P systems an object can pass through membranes,
between regions of the same cell, between cells, or
between cells and their environment. In 2020, Yang
et al.
        </p>
        <p>proposed another extension of NP systems,
called Stochastic numerical P systems (StNP systems)
[20]. The main diference arises from the stochastic
production function-reparticion protocol, obtaining
a class of distributed parallel computing models with
applications in data clustering problems.</p>
      </sec>
      <sec id="sec-3-4">
        <title>Another</title>
        <p>interesting approach was proposed in [21], where a</p>
      </sec>
      <sec id="sec-3-5">
        <title>MIMD (Multiple Instruction Multiple Data) architecture is used to parallelise the elements of a NP system. Also, the generative capacity of numerical P systems as language generators was investigated in [22].</title>
      </sec>
      <sec id="sec-3-6">
        <title>In the following, we will focus on P systems extensions</title>
        <p>obtained by combining the advantages ofered by
numerical P systems and spiking neural P systems (SNP systems).</p>
      </sec>
      <sec id="sec-3-7">
        <title>One of the main advantages of numerical P systems re</title>
        <p>mains the use of numerical values as data representation.</p>
      </sec>
      <sec id="sec-3-8">
        <title>At the same time, SN P systems combine the strengths of</title>
        <p>membrane computing and spiking neural networks, the
temporal aspect being one of the most attractive features.</p>
      </sec>
      <sec id="sec-3-9">
        <title>In 2020, Wu et al. [23] introduced numerical spiking neu</title>
        <p>ral P systems (NSN P systems), a new class of membrane
systems that combines the advantages of NP systems and
SNP systems. Similar to SNP systems, NSN P systems
have a network architecture with an enhanced capability
tion is encoded using numerical variables, involved in
production functions that determine how the variables
within the neurons evolve over time. The repartition
protocol involves that after a production function in a
neuron is executed, the resulted value is sent to all the
variables present in adjacent neurons. Each production
function can have a threshold and will be executed only
when each value of the variables involved in it is not
smaller than the threshold. The formal definition of NSN
P systems is the following:

= ( 1 , . . . ,  m , syn, in, out )</p>
        <p>(2)
of representing complex topologies. Also, the informa- in the production functions, values of the variables
in•  1 , . . . ,  m represent the neurons of the form
 i = (Vari , Prfi , Vari (0 )), 1 ≤ i ≤</p>
        <p>m, where:
(a) Vari = {, | 1 ≤
 ≤</p>
        <p>} represents
the set of variables present in  i , where
x1 ,i . . . xk,i can be viewed as components
of a n-dimensional real space vector
(b) Vari (0) = {,(0) | ,(0) ∈ R, 1 ≤
 ≤
of the corresponding variables from Vari</p>
        <p>} refers to the set of initial values
(c) Prfi represents the set of production
func</p>
        <p>tions associated with each neuron
• syn is the</p>
        <p>set of synapses for each
(i , j ) ∈ syn, 1 ≤ i , j ≤</p>
        <p>m, i ̸= j
• in, out are the input and output neurons</p>
      </sec>
      <sec id="sec-3-10">
        <title>Turing universality of NSN P systems has also been</title>
        <p>demonstrated in [23]. In terms of potential
applications, NSN P systems can be suitable for applications
that involve numerical information. Moreover, adding
the threshold have made NSN P systems a powerful tool
for applications that require deterministic mechanisms.</p>
      </sec>
      <sec id="sec-3-11">
        <title>In 2022, Jiang et al. [24] considered working with NSN</title>
        <p>P systems in asynchronous manner. They also proposed
an extension of the traditional threshold strategy,
introducing an extended threshold strategy which involves
using a threshold interval. More precisely, a production
function can be executed only if all of the variables
involved are within the range of the threshold interval. In
this way, the obtained asynchronous numerical spiking
neural P systems (ANSN P systems) will be more flexible.</p>
      </sec>
      <sec id="sec-3-12">
        <title>The Turing universality as well as the computing power</title>
        <p>of ANSN P systems has also been discussed in [24].</p>
      </sec>
      <sec id="sec-3-13">
        <title>The extension of NSN P systems is an active research</title>
        <p>direction, with concrete results in recent years. In this
context, Yin et al. [25] introduced in 2021 a new variant
of NSN P systems, called Novel numerical spiking neural</p>
      </sec>
      <sec id="sec-3-14">
        <title>P systems with a variable consumption strategy (NSNVC</title>
      </sec>
      <sec id="sec-3-15">
        <title>P systems). This new variant has led to improvements</title>
        <p>volved having prescribed consumption rate without all
being set to 0 after the execution. NSNVC P systems also
use polarization of the neurons in order to control the
execution of a production function.</p>
        <p>Another variant that aims to improve the flexibility of
the system has been introduced by Xu et al. [26] in 2023
by adding weights into NSN P systems. The resulted
numerical spiking neural P systems with weights (NSNW P
systems) are still Turing universal and the their
computational power was demonstrated using fewer neurons
than NSN P systems.</p>
        <p>An interesting approach was proposed in [27]. While
in the classic NSN P systems the production functions
are placed inside the neurons, in numerical spiking
neural P systems with production functions on synapses
(NSNFS P systems), the production functions of each
neuron are placed on synapses. In this way, a neuron will
contain only numerical variables. Potential applications
of NSNFS P systems are further investigated.</p>
        <p>A more practical initiative was presented by Zhang et.
al in [28], where enzymatic numerical spiking neural
membrane systems (ENSNP systems) were introduced.
In the aforementioned paper, the practicality of ENSNP
systems is demonstrated by modelling ENSNP membrane
controllers for robots implementing wall following.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Illustrative Examples</title>
      <sec id="sec-4-1">
        <title>4.1. Numerical P System</title>
        <p>
          In this section we will illustrate two numerical P systems
variants with similar evolution, using as starting point
an example of numerical P system. By analysing the Figure 1: Illustration of the numerical P system  1
evolution of the proposed NP system, we designed two
entities of diferent NP systems variants, achieving
similar functioning. We chose to use a well-known NP system 4.2. Numerical P system with Boolean
example, extracted from the article that introduced the
concept of numerical P systems [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. Let us introduce condition
the system  1 , having three membranes, each of them As presented in Section 3, by integrating Boolean
condicontaining one variable. Examining the structure of  1 tions into NP systems, the control over the computation
presented in Figure 1, we can observe that the rules sug- process is improved, making selective rule application
gest a sequential dependency where the variable values one of the main advantages of using Numerical P
sysof each membrane influences the next. All membranes tems with Boolean condition (BNP systems). Thus, we
start with an initial value of zero for the variables defined will proceed with the modelling of a BNP system that
inside them. calculates the perfect squares starting with 1, similar to
Analysing the system rules and starting with the third  1 . Moreover, by introducing Boolean conditions, we
membrane, we can note that variable x1 ,3 increases by 1 will store the even and the odd values of perfect squares
at each simulation step. The value of x1 ,3 is also trans- in diferent membranes, using the same number of
memmitted to x1 ,2 , as assigned in the repartition protocol. branes and variables as the initial NP system presented
In membrane 2, the value 2x1 ,2 + 1 is transmitted to above.
x1 ,1 . Also, it can be observed that the value of x1 ,1 is Looking at the resulted BNP system  2 which is
illusnever consumed, hence its value increases continuously. trated in Figure 2, we can observe that the number
Taking this observation into account, we can see that of membranes is the same as in  1 . Compartment 3
the value of the targeted variable x1 ,1 is constructed at contains three programs. The first program is
increaseach simulation step using the following algebraic iden- ing the value of the variable x1 ,3 . The next two
protity: n2 = (n − 1 )2 + 2 (n − 1 ) + 1 , n &gt; 0 . Table 1 grams distribute the value needed to obtain the next
contains the values of the variables after n = 4 simulation odd/even perfect square that is calculated inside x1 ,1 ,
steps. respectively x1 ,2 . Both the programs have Boolean
conAs stated before, we chose this example of numerical ditions based on the value of x1 ,3 and at each simulation
P system and next we will present two mappings into step only one of them will be executed. It is important
diferent numerical P systems variants, emphasizing the to mention that the obtained BNP system works in the
characteristics of each one. all-parallel mode, executing all the applicable rules at
each step. The distribution of the accumulated values
into separate variables for odd and even perfect squares
is based on a formula that is similar to the one used for
 1 : n2 = (n − 2 )2 + 4 (n − 1 ), n &gt; 0 . The formula
0
1
2
3
4
3
2
1
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>4.3. Numerical Spiking Neural P System</title>
        <p>In order to obtain another membrane system with the
same functionality as  1 , we designed  3 , a NSN P
system looking for the set of values taken by variable x1 ,1 ,
which is never consumed. Moreover, we can observe
that  3 follows the same recursive formula as  1 , x1 ,1
receiving 2 (n − 1 ) + 1 at each simulation step n. The
result is graphically presented in Figure 3.</p>
        <p>The NSN P system illustrated in Figure 3 consists
of four neurons, each containing one variable with an
initial value of zero. Neurons  2 ,  3 ,  4 also contain
the production functions that will be executed during
the evolution of the system. It is important to mention
that the first index of each variable represents the order
of the variable within the neuron (as we have only one
variable in each neuron, the first index will be 1 for all
the variables), whilst the second index represents the
label of the neuron. However, the target variable remains
can be observed by analysing how x1 ,1 and x1 ,2 accumu- x1 ,1 , whilst x1 ,2 and x1 ,3 maintain similar roles as in
late values at each simulation step, based on the values  1 . Table 3 illustrates the first simulation steps of the
obtained at the previous steps. The first simulation steps NSN P system obtained.
are presented in Table 2. We note that the values of
variables x1 ,1 and x1 ,2 should be considered just for odd,
respectively even values of n, as they change at diferent
steps.
2
1
3
4</p>
        <p>Initially, the value of variable x1 ,3 is zero and the
production function from neuron  3 is executed. In this
way, neuron  3 transmits a value of 1 to neurons  2
and  4 . Looking at the production function from the
neuron  3 , it can be observed that it does not replicate
the original production function from the membrane 3
of the NP system  1 , even if neuron  3 seems to be
the correspondent of membrane 3. This aspect can be
explained by the repartition protocol of the program
from membrane 3, dividing the value between x1 ,3 and
x1 ,2 . According to the distribution stage of a NSN P
system, the computed production value is transmitted to
each variable from all the neighboring neurons, so there
is no need to divide it. After executing the production
function, the value of x1 ,3 is reset to zero.</p>
        <p>Returning to the analysis of the system, we note that
neuron  3 receives 1 from neuron  4 . Neuron  4 is used
as an auxiliary structure, implementing the behavior
of the program inside membrane 3 of the original NP
system, where the variable x1 ,3 appears both in the
production function and the repartition protocol. In
order to achieve this functionality in the NSN P system,
we used neuron  4 to transmit the updated value of the
variable after being calculated.</p>
        <p>At the same time, neuron  2 transmits a value of 1 to
variable x1 ,1 . As  1 does not contain any production
function, the value of x1 ,1 will be accumulated.</p>
        <p>One can observe that  1 and  3 use the same
recursive formula, n2 = (n − 1 )2 + 2 (n − 1 ) + 1 , where
(n − 1 )2 is stored in x1 ,1 of compartment 1 and
2 (n − 1 ) + 1 is computed in compartment 2 of each
of them. The second model,  2 , a BNP system,
computing two sets of perfect squares, uses another recurrence,
n2 = (n − 2 )2 + 4 (n − 1 ), where (n − 2 )2 is stored
either in compartment 1 or 2, depending on whether n is
odd or even, respectively, and 4 (n − 1 ) is computed in
compartment 3, the only compartment containing
programs.  3 has a slightly more complex architecture,
with more compartments and implicitly programs and
variables.</p>
        <p>Even for a relatively simple example, one can notice
slight variations in providing models with three diferent
numerical P systems. It is expected that more complex
case studies may require more diverse set of features
for each of the models involved, hence the need to find
optimal ones, with respect to certain criteria, such as
descriptional complexity measures (number of
compartments, connections, rules and programs complexity).</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Concluding remarks</title>
      <sec id="sec-5-1">
        <title>This paper presented the main theoretical results concern</title>
        <p>ing numerical P systems and their variants. We briefly
described each computation model, highlighting the
innovations and potential applications. By exploring these
extensions of the basic concept, the reader can consider
using a targeted model adapted to specific requirements.
We also used a numerical P system with a concise
structure to illustrate the mapping to numerical P systems
with Boolean condition (BNP systems) and numerical
spiking neural P systems (NSN P systems). The results
highlighted the main improvements introduced by each
variant.</p>
        <p>As further developments, we will include more
computation models in our mappings, also considering other
examples. As a testing methodology [29] for SNP systems
already exists, the mapping from NP systems to NSN P
systems can serve as the starting point of a promising
research line to develop a testing methodology for NSN P
systems. Furthermore, motivated by the applicability of
numerical P systems in areas of significant importance,
such as economics or robotics, we will elaborate a testing
theory and some testing methods for the most relevant
numerical P systems classes.
Science 988 (2024) 114376.
[17] L. Liu, W. Yi, Q. Yang, H. Peng, J. Wang, Small
universal numerical P systems with thresholds for
computing functions, Fundamenta Informaticae
176 (2020) 43–59.
[18] L. Liu, W. Yi, Q. Yang, H. Peng, J. Wang, Numerical P
systems with boolean condition, Theoretical
Computer Science 785 (2019) 140–149. doi:10.1016/j.
tcs.2019.03.021.
[19] A. B. Pavel, I. Dumitrache, Hybrid numerical P
systems 78 (2016) 139–146.
[20] J. Yang, H. Peng, X. Luo, J. Wang, Stochastic
numerical P systems with application in data clustering
problems, IEEE Access 8 (2020) 31507–31518.
[21] D. Reid, A. Oddie, P. Hazlewood, Parallel numerical
P systems using a mimd based architecture, in:
2010 IEEE Fifth International Conference on
BioInspired Computing: Theories and Applications
(BIC-TA), IEEE, 2010, pp. 1646–1653. doi:10.1109/
BICTA.2010.5645257.
[22] Z. Zhang, T. Wu, L. Pan, On string languages
generated by sequential numerical P systems,
Fundamenta Informaticae 145 (2016) 485–509.
[23] T. Wu, L. Pan, Q. Yu, K. C. Tan, Numerical spiking
neural P systems, IEEE Transactions on Neural
Networks and Learning Systems 32 (2020) 2443–
2457. doi:10.1109/TNNLS.2020.3005538.
[24] S. Jiang, Y. Liu, B. Xu, J. Sun, Y. Wang,
Asynchronous numerical spiking neural P systems,
Information Sciences 605 (2022) 1–14.
[25] X. Yin, X. Liu, M. Sun, Q. Ren, Novel numerical
spiking neural P systems with a variable consumption
strategy, Processes 9 (2021) 549.
[26] B. Xu, S. Jiang, Z. Shen, X. Zhu, T. Liang, Numerical
spiking neural P systems with weights, Journal
of Membrane Computing 5 (2023) 12–24. doi:10.
1007/s41965-022-00116-3.
[27] S. Jiang, B. Xu, T. Liang, X. Zhu, T. Wu, Numerical
spiking neural P systems with production functions
on synapses, Theoretical Computer Science 940
(2023) 80–89.
[28] L. Zhang, F. Xu, D. Xiao, J. Dong, G. Zhang, F. Neri,
Enzymatic numerical spiking neural membrane
systems and their application in designing membrane
controllers, International Journal of Neural Systems
32 (2022) 2250055.
[29] F. Ipate, M. Gheorghe, A model learning based
testing approach for spiking neural P systems, Theor.
Comput. Sci. 924 (2022) 1–16.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Gh</surname>
          </string-name>
          . Păun,
          <article-title>Computing with membranes</article-title>
          ,
          <source>Journal of Computer and System Sciences</source>
          <volume>61</volume>
          (
          <year>2000</year>
          )
          <fpage>108</fpage>
          -
          <lpage>143</lpage>
          . doi:
          <volume>10</volume>
          .1006/jcss.
          <year>1999</year>
          .
          <volume>1693</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>C. M.</given-names>
            <surname>Vide</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Pazos</surname>
          </string-name>
          , Gh. Păun,
          <string-name>
            <given-names>A. R.</given-names>
            <surname>Patón</surname>
          </string-name>
          , Tissue P systems,
          <source>Theoretical Computer Science</source>
          <volume>296</volume>
          (
          <year>2003</year>
          )
          <fpage>295</fpage>
          -
          <lpage>326</lpage>
          . doi:
          <volume>10</volume>
          .1016/S0304-
          <volume>3975</volume>
          (
          <issue>02</issue>
          )
          <fpage>00659</fpage>
          -
          <lpage>X</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ionescu</surname>
          </string-name>
          , Gh. Păun, T. Yokomori,
          <article-title>Spiking neural P systems</article-title>
          , Fundamenta informaticae
          <volume>71</volume>
          (
          <year>2006</year>
          )
          <fpage>279</fpage>
          -
          <lpage>308</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Gh</surname>
          </string-name>
          . Păun,
          <source>Membrane Computing: An Introduction</source>
          , Springer Science &amp; Business
          <string-name>
            <surname>Media</surname>
          </string-name>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Gh. Păun</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Păun</surname>
          </string-name>
          ,
          <article-title>Membrane computing and economics: Numerical P systems</article-title>
          ,
          <source>Fundamenta Informaticae</source>
          <volume>73</volume>
          (
          <year>2006</year>
          )
          <fpage>213</fpage>
          -
          <lpage>227</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>R. T.</given-names>
            <surname>Bobe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Ipate</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I. M.</given-names>
            <surname>Niculescu</surname>
          </string-name>
          ,
          <article-title>Modelling and search-based testing of robot controllers using enzymatic numerical P systems</article-title>
          , arXiv preprint arXiv:
          <volume>2309</volume>
          .13795 (
          <year>2023</year>
          ). doi:
          <volume>10</volume>
          .48550/ arXiv.2309.13795.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>K.</given-names>
            <surname>Gurney</surname>
          </string-name>
          ,
          <article-title>An introduction to neural networks</article-title>
          , CRC press,
          <year>2018</year>
          . doi:
          <volume>10</volume>
          .1201/9781315273570.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S.</given-names>
            <surname>Ghosh-Dastidar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Adeli</surname>
          </string-name>
          ,
          <article-title>Spiking neural networks</article-title>
          ,
          <source>International journal of neural systems 19</source>
          (
          <year>2009</year>
          )
          <fpage>295</fpage>
          -
          <lpage>308</lpage>
          . doi:
          <volume>10</volume>
          .1142/ S0129065709002002.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>A.</given-names>
            <surname>Leporati</surname>
          </string-name>
          , G. Mauri,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zandron</surname>
          </string-name>
          ,
          <article-title>Spiking neural P systems: main ideas and results</article-title>
          ,
          <source>Natural Computing</source>
          <volume>21</volume>
          (
          <year>2022</year>
          )
          <fpage>629</fpage>
          -
          <lpage>649</lpage>
          . doi:
          <volume>10</volume>
          .1007/ s11047-022-09917-y.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>A.</given-names>
            <surname>Pavel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Arsene</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Buiu</surname>
          </string-name>
          ,
          <article-title>Enzymatic numerical P systems-a new class of membrane computing systems</article-title>
          ,
          <source>in: International Conference on Bio-Inspired Computing: Theories and Applications</source>
          , IEEE,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>A. B. Pavel</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Buiu</surname>
          </string-name>
          ,
          <article-title>Using enzymatic numerical P systems for modeling mobile robot controllers</article-title>
          ,
          <source>Natural Computing</source>
          <volume>11</volume>
          (
          <year>2012</year>
          )
          <fpage>387</fpage>
          -
          <lpage>393</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>C. I.</given-names>
            <surname>Vasile</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. B.</given-names>
            <surname>Pavel</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Dumitrache</surname>
          </string-name>
          , Gh. Păun,
          <article-title>On the power of enzymatic numerical P systems</article-title>
          ,
          <source>Acta Informatica</source>
          <volume>49</volume>
          (
          <year>2012</year>
          )
          <fpage>395</fpage>
          -
          <lpage>412</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , T. Wu,
          <string-name>
            <given-names>A.</given-names>
            <surname>Păun</surname>
          </string-name>
          , L. Pan,
          <article-title>Universal enzymatic numerical P systems with small number of enzymatic variables</article-title>
          ,
          <source>Science China Information Sciences</source>
          <volume>61</volume>
          (
          <year>2018</year>
          )
          <fpage>1</fpage>
          -
          <lpage>12</lpage>
          . doi:
          <volume>10</volume>
          .1007/ s11432-017-9103-5.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , L. Pan,
          <article-title>Numerical P systems with thresholds</article-title>
          ,
          <source>International Journal of Computers Communications &amp; Control</source>
          <volume>11</volume>
          (
          <year>2016</year>
          )
          <fpage>292</fpage>
          -
          <lpage>304</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>L.</given-names>
            <surname>Pan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , T. Wu,
          <string-name>
            <given-names>J.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <article-title>Numerical P systems with production thresholds</article-title>
          ,
          <source>Theoretical Computer Science</source>
          <volume>673</volume>
          (
          <year>2017</year>
          )
          <fpage>30</fpage>
          -
          <lpage>41</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>L.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <article-title>Languages generated by numerical P systems with thresholds</article-title>
          , Theoretical Computer
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>