<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Comput. Neurosci.</journal-id>
<journal-title>Frontiers in Computational Neuroscience</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Comput. Neurosci.</abbrev-journal-title>
<issn pub-type="epub">1662-5188</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fncom.2022.784967</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Neuroscience</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Brain-Inspired Affective Empathy Computational Model and Its Application on Altruistic Rescue Task</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name><surname>Feng</surname> <given-names>Hui</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1489471/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Zeng</surname> <given-names>Yi</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/104116/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Lu</surname> <given-names>Enmeng</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Research Center for Brain-Inspired Intelligence, Institute of Automation, Chinese Academy of Sciences</institution>, <addr-line>Beijing</addr-line>, <country>China</country></aff>
<aff id="aff2"><sup>2</sup><institution>School of Artificial Intelligence, University of Chinese Academy of Sciences</institution>, <addr-line>Beijing</addr-line>, <country>China</country></aff>
<aff id="aff3"><sup>3</sup><institution>Center for Excellence in Brain Science and Intelligence Technology, Chinese Academy of Sciences</institution>, <addr-line>Shanghai</addr-line>, <country>China</country></aff>
<aff id="aff4"><sup>4</sup><institution>National Laboratory of Pattern Recognition, Institute of Automation, Chinese Academy of Sciences</institution>, <addr-line>Beijing</addr-line>, <country>China</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Giovanni Mirabella, University of Brescia, Italy</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Andres Pinilla, Technical University of Berlin, Germany; Radwa Khalil, Jacobs University Bremen, Germany; Ye Yuan, Shanghai Jiao Tong University, China</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Yi Zeng <email>yi.zeng&#x00040;ia.ac.cn</email></corresp>
</author-notes>
<pub-date pub-type="epub">
<day>18</day>
<month>07</month>
<year>2022</year>
</pub-date>
<pub-date pub-type="collection">
<year>2022</year>
</pub-date>
<volume>16</volume>
<elocation-id>784967</elocation-id>
<history>
<date date-type="received">
<day>11</day>
<month>02</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>22</day>
<month>06</month>
<year>2022</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2022 Feng, Zeng and Lu.</copyright-statement>
<copyright-year>2022</copyright-year>
<copyright-holder>Feng, Zeng and Lu</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license></permissions>
<abstract>
<p>Affective empathy is an indispensable ability for humans and other species&#x00027; harmonious social lives, motivating altruistic behavior, such as consolation and aid-giving. How to build an affective empathy computational model has attracted extensive attention in recent years. Most affective empathy models focus on the recognition and simulation of facial expressions or emotional speech of humans, namely Affective Computing. However, these studies lack the guidance of neural mechanisms of affective empathy. From a neuroscience perspective, affective empathy is formed gradually during the individual development process: experiencing own emotion&#x02014;forming the corresponding Mirror Neuron System (MNS)&#x02014;understanding the emotions of others through the mirror mechanism. Inspired by this neural mechanism, we constructed a brain-inspired affective empathy computational model, this model contains two submodels: (1) We designed an Artificial Pain Model inspired by the Free Energy Principle (FEP) to the simulate pain generation process in living organisms. (2) We build an affective empathy spiking neural network (AE-SNN) that simulates the mirror mechanism of MNS and has self-other differentiation ability. We apply the brain-inspired affective empathy computational model to the pain empathy and altruistic rescue task to achieve the rescue of companions by intelligent agents. To the best of our knowledge, our study is the first one to reproduce the emergence process of mirror neurons and anti-mirror neurons in the SNN field. Compared with traditional affective empathy computational models, our model is more biologically plausible, and it provides a new perspective for achieving artificial affective empathy, which has special potential for the social robots field in the future.</p></abstract>
<kwd-group>
<kwd>affective empathy</kwd>
<kwd>mirror neuron system</kwd>
<kwd>spiking neural network</kwd>
<kwd>Artificial Pain</kwd>
<kwd>altruistic behavior</kwd>
<kwd>self-awareness</kwd>
</kwd-group>
<counts>
<fig-count count="11"/>
<table-count count="1"/>
<equation-count count="7"/>
<ref-count count="64"/>
<page-count count="15"/>
<word-count count="10255"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1. Introduction</title>
<p>Empathy is the ability to understand the state of others through observation, imagination, and inference, which is the motivation for altruistic behaviors such as consolation and aid-giving (Waal and Preston, <xref ref-type="bibr" rid="B56">2017</xref>). Empathy plays a vital role in human society as it is the biological basis of social morality (Lou, <xref ref-type="bibr" rid="B36">2011</xref>). In addition, empathy is cross-species (Malin et al., <xref ref-type="bibr" rid="B38">2011</xref>), which maintains communication not only within the same species but also between different species. In general, empathy is fundamental to the harmonious coexistence of social groups.</p>
<p>Empathy is divided into cognitive empathy and affective empathy (Asada, <xref ref-type="bibr" rid="B1">2015</xref>). Cognitive empathy refers to the ability that observers to imagine and infer the target&#x00027;s feeling or state. Affective empathy refers to the ability that observers are directly affected by the emotional state of another by matching it (Waal and Preston, <xref ref-type="bibr" rid="B56">2017</xref>). Affective empathy is more fundamental and more common, and it appears in the early stage of life development and also exists in most non-human species such as rodents and birds (Shamay-Tsoory et al., <xref ref-type="bibr" rid="B53">2009</xref>). Affective empathy also has essential research value in the field of social robotics as it is conducive to the communication and cooperation between robots and between humans and robots. Our work mainly focuses on the affective empathy computational model and its applications.</p>
<p>Emotion is an embodied internal state of the organism&#x00027;s brain that is formed through interaction with the environment (Lerner et al., <xref ref-type="bibr" rid="B35">2015</xref>). Emotion not only represents the organism&#x00027;s state but also generates emotional overt actions such as facial expressions to communicate with peers and achieve affective empathy. From the psychology perspective, the observer can use the Perception-Action Mechanism (PAM) to empathize with others (Preston and de Waal, <xref ref-type="bibr" rid="B48">2017</xref>). Perceiving other people&#x00027;s emotions will activate the same emotion representation in the observer&#x00027;s brain, which is equivalent to the observer experiencing that emotion. Recently, much neuroscience literature has shown that the Mirror Neuron System (MNS) supports the PAM (Rizzolatti and Sinigaglia, <xref ref-type="bibr" rid="B52">2016</xref>). The MNS consists of a group of neurons with sensory-motor properties, and they are activated both during action execution and action observation (Erhan et al., <xref ref-type="bibr" rid="B15">2006</xref>; Khalil et al., <xref ref-type="bibr" rid="B29">2018b</xref>). The MNS a collection of Motor brain regions in the parietal and frontal lobes. In the process of affective empathy, when we perceive others&#x00027; emotions, such as seeing their facial expressions or hearing them cry, we first achieve motor-level understanding through the MNS and then further achieve emotion-level understanding (Carr et al., <xref ref-type="bibr" rid="B8">2003</xref>). It is worth noting that the activation patterns of the brain during experiencing own emotion and empathizing with others are different because of the presence of anti-mirror neurons (Christian and Valeria, <xref ref-type="bibr" rid="B9">2010</xref>). Thus, the brain can distinguish who is the producer of emotion, which is called primary self-awareness (Lamm et al., <xref ref-type="bibr" rid="B31">2011</xref>).</p>
<p>We argue that computational modeling of affective empathy should follow its neural mechanisms: First, the model should have an internal state similar to human emotion. Second, the model should develop its own mirror mechanism similar to the human MNS function, so as to understand others&#x00027; emotions with its own experience. Third, the model should have the ability to distinguish self from others and adopt adaptive responding behaviors.</p>
<p>Most of the existing affective empathy computational models mainly belong to the Affective Computing field, which uses machine learning algorithms to recognize and simulate human emotion overt signals, such as facial expressions, speeches, and body movements (Claret et al., <xref ref-type="bibr" rid="B10">2017</xref>; Soujanya et al., <xref ref-type="bibr" rid="B54">2017</xref>; Huang et al., <xref ref-type="bibr" rid="B22">2020</xref>; Lee and Kang, <xref ref-type="bibr" rid="B33">2020</xref>). (Leite et al., <xref ref-type="bibr" rid="B34">2014</xref>) designed an iCat robot to play chess with children. It can analyze the state of the chess game and the child&#x00027;s facial expressions to make a corresponding response such as encouragement. Zheng et al. (<xref ref-type="bibr" rid="B63">2019</xref>) proposed a children&#x00027;s companion robot called BabeBay, which has affective computing ability for multi-modal information such as expression, body gesture, and text, to maintain companionship with different children. These traditional approaches are only computational processing of the emotion overt signals, but the emotion overt signals are not equal to the emotion. Emotion is a complex embodied internal state. It is obvious that these approaches do not define this internal state; they treat emotion as a mere label. Therefore, we believe that these approaches are far from enough to achieve real artificial affective empathy. In addition to that, these approaches also do not follow the guidance of any neural mechanism of affective empathy. Woo et al. (<xref ref-type="bibr" rid="B60">2017</xref>) implemented the affective empathy process using the spiking neural network, However, this study only used brain-like modeling tools and did not involve a mirror mechanism. Watanabe et al. (<xref ref-type="bibr" rid="B58">2007</xref>) modeled a communication model for the virtual robot similar to the &#x00027;intuitive parenting&#x00027; process between babies and their caregivers. The robot can establish the relationship between the emotions and the caregiver&#x00027;s facial expressions by mirror mechanism, then they can respond to the other&#x00027;s emotion by observing human facial expressions. But again, this study did not define emotion as an internal state of the robot, and this model cannot distinguish the producer of emotion between self and others.</p>
<p>In this article, we construct a more sophisticated brain-inspired affective empathy computational model. First, we constructed a computational model of emotion as an internal state: the neural mechanisms by which emotions emerge have not been well studied. The Free Energy Principle (FEP) has been proposed as a unified Bayesian interpretation of perception, learning, and action, describing the relationship between the internal model of the brain and the relevant sensations from the environment (Joffily and Coricelli, <xref ref-type="bibr" rid="B24">2013</xref>). Coincidentally, emotion is a neural activity formed through the interaction of brain expectations with the real situation of the environment (Brown and Brune, <xref ref-type="bibr" rid="B6">2012</xref>). Therefore, in this article, we use FEP as a theoretical basis to model a specific emotion&#x02013;pain. Second, we modeled the mirror mechanism of empathy: we used a spiking neural network to reproduce the emergence process of mirror neurons and anti-mirror neurons, the process of empathizing with others through mirror mechanism, and the ability of self-other differentiation.</p>
<p>The contributions of our study can be summarized as follows: (1) Inspired by FEP, we modeled the Artificial Pain as an internal state. (2) We constructed an affective empathy spiking neural network (AE-SNN), which can simulate the mirror mechanism of MNS to empathize with others and have the ability of self-others differentiation. (3) We also explored the intrinsic motivations of altruistic behavior, together with the above parts, to complete the pain empathy and altruistic rescue task in the grid world.</p></sec>
<sec sec-type="materials and methods" id="s2">
<title>2. Materials and Methods</title>
<sec>
<title>2.1. The Neural Mechanism</title>
<p>The whole process of affective empathy is shown in <xref ref-type="fig" rid="F1">Figure 1</xref>. It involves the following brain areas: On the far left is the Emotion Cortex. Different emotional trigger signals can result in different firing patterns in this cortex, producing different emotional states. The Emotion Cortex contains many sub-regions, such as the Anterior Cingulate Cortex (ACC) and Amygdala (AMYG), which are essential components of the Limbic System (Reep et al., <xref ref-type="bibr" rid="B50">2007</xref>). The ACC is often thought to be associated with pain (Corradi-Dell&#x00027;Acqua et al., <xref ref-type="bibr" rid="B11">2016</xref>). The AMYG is often thought to be associated with fear (Davis, <xref ref-type="bibr" rid="B13">1992</xref>). In the middle is the Motor Cortex. In the affective empathy process, the Motor Cortex is mainly responsible for producing emotional overt actions (Mukamel et al., <xref ref-type="bibr" rid="B46">2010</xref>), such as painful facial expressions, shouting, and crying. The Motor Cortex contains many sub-regions. Our study considers only three representative sub-regions: Inferior Frontal Gyrus (IFG), Supplementary Motor Cortex (SMA), and Primary Motor Cortex (M1). IFG is responsible for encoding the intention of actions (Jabbi, <xref ref-type="bibr" rid="B23">2008</xref>). SMA is responsible for the initialization of the action sequence (Rizzolatti and Luppino, <xref ref-type="bibr" rid="B51">2001</xref>). M1 guides the muscles to perform specific actions (Gazzola and Keysers, <xref ref-type="bibr" rid="B19">2008</xref>). There are mirror neurons (MN) in the Motor Cortex (Erhan et al., <xref ref-type="bibr" rid="B16">2013</xref>), as shown in <xref ref-type="fig" rid="F1">Figure 1</xref>. On the far right is the Perception Cortex, which is used to perceive the emotional overt actions of oneself or others, such as seeing the painful facial expressions and hearing the cry. We also listed three of the most representative sub-regions in the Perception Cortex: Primary Auditory Cortex (A1) and Primary Visual Cortex (V1) perform primary processing of visual and auditory information (Zipser et al., <xref ref-type="bibr" rid="B64">1996</xref>; Morosan et al., <xref ref-type="bibr" rid="B45">2001</xref>). The Superior Temporal Sulcus (STS) is a high-order perception area that integrates visual and auditory information about the body and facial actions (Keysers and Gazzola, <xref ref-type="bibr" rid="B25">2014</xref>). The connection between the Motor Cortex and the Emotion Cortex is bidirectional (Jabbi, <xref ref-type="bibr" rid="B23">2008</xref>). The connection between the Perception Cortex and the Motor Cortex is also bidirectional (Kilner and Frith, <xref ref-type="bibr" rid="B30">2007</xref>), but for the affective empathy process in our study, we only considered the connection from the Perception Cortex to the Motor Cortex.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>The neural mechanism of affective empathy. The brain areas contain: Emotion Cortex, Motor Cortex, and Perception Cortex. All the blue arrows represent the process of experiencing own emotions, and all the orange arrows represent the process of empathizing with others. The blue dashed arrow represents the process of action execution and action re-afference, and the orange dashed arrow represents perceiving other&#x00027;s overt action. There are mirror neurons (MN) in the Motor Cortex.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0001.tif"/>
</fig>
<p>Different emotional trigger signals will lead to the production of corresponding emotions. In this article, we explore a particular emotion&#x02013;pain. External noxious stimuli specifically activate the Nociceptors in the skin of organisms, then the noxious information will be transmitted to the cerebral cortex through the Anterolateral System (Asada, <xref ref-type="bibr" rid="B2">2019</xref>). In the cerebral cortex, the pain will be evoked from two aspects: the sensory discrimination component will be formed in the Somatosensory Cortex (S1, S2), and the affective and motivational component will be formed in the Anterior Cingulate Cortex (ACC) (Donald, <xref ref-type="bibr" rid="B14">2000</xref>). However, this pathway is specific and formed in thousands of years of evolution (Walters and Williams, <xref ref-type="bibr" rid="B57">2019</xref>). We argue that the Artificial Pain Model should not follow the physiological mechanism completely, because many intelligent agents, such as robots, do not have a physiological structure similar to organisms. We should explore the essence and significance of pain for the survival of organisms.</p>
<p>Broom et al. proposed that the emergence of pain was first related to physical injury in the evolutionary process (Broom, <xref ref-type="bibr" rid="B5">2001</xref>). Pain is a kind of neural activity that occurs with physical injury and is preserved and internalized in the brain because of its survival benefits. In further learning, the experience of pain can also be associated with injury-related cues, such as scenes or voices of injury. When a similar cue occurs again, the brain will produce the same pain experience and avoid potential injury (Wiech and Tracey, <xref ref-type="bibr" rid="B59">2013</xref>).</p>
<p>Certain emotions will trigger the Motor Cortex to perform corresponding emotional overt action, as shown by the blue dashed arrow in <xref ref-type="fig" rid="F1">Figure 1</xref>. After experiencing own emotions, the observer can use the mirror mechanism of the Mirror Neuron System (MNS) to empathize with others. Mirror neurons are widely present in the Motor Cortex, and both the previously mentioned IFG and SMA sub-regions contain mirror neurons (Rizzolatti and Sinigaglia, <xref ref-type="bibr" rid="B52">2016</xref>). MNS is formed gradually during individual development. Keysers et al. proposed that the emergence of mirror neurons is due to synchronous action execution and action re-afference. You can see or hear your emotional overt action when you execute it. This kind of perceptual input resulting from your action is called action re-afference (Keysers and Gazzola, <xref ref-type="bibr" rid="B25">2014</xref>), as shown by the blue dashed arrow in <xref ref-type="fig" rid="F1">Figure 1</xref>. The existence of the time overlap between action execution and action re-afference strengthens the synapse weights between the neurons in the Motor Cortex and the Perception Cortex representing the same action, and weakens the synapse weights representing different actions, resulting in some neurons of the Motor Cortex having mirror properties, namely mirror neurons. In the process of affective empathy, perceiving the emotional overt action of others will first activate the corresponding neurons in the Perception Cortex, as shown by the orange dashed arrow in <xref ref-type="fig" rid="F1">Figure 1</xref>. Subsequently, the mirror neurons of the Motor Cortex that perform the same emotional overt action will fire, forming the internal motor level representation of other&#x00027;s emotion. The Motor Cortex is connected to the Emotion Cortex, which further activates the corresponding emotional neurons, forming an internal emotion-level representation of others&#x00027; emotions, as shown by the orange solid arrow in <xref ref-type="fig" rid="F1">Figure 1</xref>. For example, when a baby is experiencing emotions, it will instinctively activate the Motor Cortex to produce emotional overt actions (Yamada, <xref ref-type="bibr" rid="B61">1993</xref>), such as crying or facial expressions. Babies can also perceive these emotional overt actions by their Auditory Cortex or Visual Cortex. When a baby performs a happy facial expression, their caregiver will imitate their expression so that they will also see the caregiver&#x00027;s expression, called Intuitive Parenting (Watanabe et al., <xref ref-type="bibr" rid="B58">2007</xref>). Due to the similar activation time, the synaptic weights from the neurons in the Perception Cortex to the neurons in the Motor Cortex that represent the same emotional overt action will be strengthened, forming mirror neurons. When seeing others&#x00027; facial expressions or hearing others&#x00027; cries, they can understand others&#x00027; emotions through the mirror mechanism.</p>
<p>In addition, the affective empathy network of the brain can distinguish the self from others. The reason is that the anti-mirror neurons in Motor Cortex are activated during action execution and deactivated during action observation (Christian and Valeria, <xref ref-type="bibr" rid="B9">2010</xref>), leading to different firing patterns when executing own actions or only observing others&#x00027; actions. The existence of anti-mirror neurons can distinguish who is the producer of the emotional overt action, which is also the embodiment of preliminary self-awareness. Anti-mirror neurons were found in the M1 region in Motor Cortex, the emergence of which is due to the gating mechanism of SMA neurons (Gazzola and Keysers, <xref ref-type="bibr" rid="B19">2008</xref>). SMA neurons directly project to M1 neurons; the firing state of M1 neurons is totally decided by SMA neurons. SMA neurons will produce different firing patterns during action observation and action execution, which can control M1 neurons to activate during action execution and deactivate during action observation. This process is considered to be the basis for self-other differentiation (Mukamel et al., <xref ref-type="bibr" rid="B46">2010</xref>).</p></sec>
<sec>
<title>2.2. The Architecture of the Computational Model</title>
<p>This subsection describes the overall architecture of the brain-inspired affective empathy computational model. As shown in <xref ref-type="fig" rid="F2">Figure 2</xref>, the model is divided into two submodels: the Artificial Pain Model and the affective empathy spiking neural network (AE-SNN).</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>The architecture of the brain-inspired affective empathy computational model. The two dotted boxes represent two submodels: The Artificial Pain Model and the affective empathy spiking neural network (AE-SNN). Each circle represents a neuron population. The orange arrows indicate excitatory connections, and the blue arrow indicates inhibitory connections.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0002.tif"/>
</fig>
<p>The Artificial Pain Model defines Artificial Pain from the Free Energy perspective, and it can receive different external stimuli and produce the corresponding pain state, the output of this model will be used as the input of the AE-SNN.</p>
<p>The AE-SNN simulates the function and connection of the brain regions mentioned in Section 2.1, which contains the Emotion Module, Motor Module, and Perception Module. Each module is a neuron population. The different emotional states are represented by population coding in the Emotion Module (Fang et al., <xref ref-type="bibr" rid="B17">2021</xref>). The Motor Module represents the different emotional overt actions. The mirror neurons and anti-mirror neurons will emerge in Motor Module. Because anti-mirror neurons are formed due to the SMA neurons and M1 neurons, we set a certain number of neurons in this population to simulate the properties of M1 and SMA neurons. M1 neurons are only activated by SMA neurons, as shown by the orange curved arrow in <xref ref-type="fig" rid="F2">Figure 2</xref>. The Perception Module represents the perception information of the different emotional overt actions, which are also encoded by population coding. The Motor Module and the Emotion Module are connected in a bidirectional way, all of which are excitatory connections. The connection from the Perception Module to the Motor Module contains inhibitory connections to SMA neurons and excitatory connections to other neurons. In <xref ref-type="fig" rid="F2">Figure 2</xref>, the orange arrows indicate excitatory connections, and the blue arrow indicates inhibitory connections.</p></sec>
<sec>
<title>2.3. Model Implementation</title>
<sec>
<title>2.3.1. Artificial Pain as an Internal State</title>
<p>We propose that the traditional approaches followed by previous studies in the Affective Computing field are far from enough to achieve real artificial affective empathy. Emotion should be modeled as the bottom-up internal state of the agent so that it can process environmental information more adaptively and carry out affective empathy more reasonably. This subsection discusses the modeling of a particular emotion&#x02013;pain.</p>
<p>As mentioned in Subsection 2.1, the first step of the Artificial Pain Model is to quantify the actual damage of intelligent agents. From the perspective of Free Energy, body damage is an unexpected state, called the entropy increasing state (Friston, <xref ref-type="bibr" rid="B18">2010</xref>). However, the entropy of organisms cannot be directly quantified; the Free Energy is the upper bound of entropy, and minimizing Free Energy approximates minimizing the entropy (Ramstead et al., <xref ref-type="bibr" rid="B49">2018</xref>). Thus, FEP is a way to quantify the damage.</p>
<p>Bogacz demonstrated the relationship between Free Energy and entropy (Bogacz, <xref ref-type="bibr" rid="B4">2017</xref>), providing the definition and expression of Free Energy in detail: the brain could not directly know the actual state of the external world &#x003D5;; it can only constantly estimate the state of the external world <inline-formula><mml:math id="M1"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula>; the sensory information <italic>s</italic> received by the sense organs is used to verify the estimation. The Free Energy is finally simplified and expressed as the negative logarithm of the joint probability distribution of the state estimation <inline-formula><mml:math id="M2"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula> and the sensory information <italic>s</italic>. According to the definition, the larger the joint probability distribution, the smaller the Free Energy, and the more accurate the estimation. Expanded by the Bayesian formula <inline-formula><mml:math id="M3"><mml:mi>p</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>s</mml:mi><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>p</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>s</mml:mi><mml:mo>|</mml:mo><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mi>p</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>:</p>
<disp-formula id="E1"><label>(1)</label><mml:math id="M4"><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mi>F</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:mo>&#x02212;</mml:mo><mml:mi>ln</mml:mi><mml:mi>p</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:mi>s</mml:mi><mml:mo>,</mml:mo><mml:mover accent='true'><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo stretchy='false'>)</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mo>&#x02212;</mml:mo><mml:mi>ln</mml:mi><mml:mi>p</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:mi>s</mml:mi><mml:mo>&#x0007C;</mml:mo><mml:mover accent='true'><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo stretchy='false'>)</mml:mo><mml:mo>&#x02212;</mml:mo><mml:mi>ln</mml:mi><mml:mi>p</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:mover accent='true'><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo stretchy='false'>)</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>We replace the probability distribution with a Gaussian distribution <italic>f</italic>(<italic>s</italic>; <italic>g</italic>(.), &#x003C3;) with mean <italic>g</italic>(.) and variance &#x003C3;, supposing &#x003C3; &#x0003D; 1:</p>
<disp-formula id="E2"><label>(2)</label><mml:math id="M5"><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mi>E</mml:mi><mml:mi>F</mml:mi><mml:mo>=</mml:mo><mml:mo>&#x02212;</mml:mo><mml:mi>ln</mml:mi><mml:mo>&#x000A0;</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo stretchy='false'>(</mml:mo><mml:mi>s</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>g</mml:mi><mml:mi>s</mml:mi></mml:msub><mml:mo stretchy='false'>(</mml:mo><mml:mover accent='true'><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo stretchy='false'>)</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x003C3;</mml:mi><mml:mi>s</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mo>&#x02212;</mml:mo><mml:mi>ln</mml:mi><mml:mo>&#x000A0;</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mn>2</mml:mn></mml:msub><mml:mo stretchy='false'>(</mml:mo><mml:mover accent='true'><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo>;</mml:mo><mml:msub><mml:mi>&#x003BC;</mml:mi><mml:mi>&#x003D5;</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x003C3;</mml:mi><mml:mi>&#x003D5;</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msup><mml:mrow><mml:mo stretchy='false'>[</mml:mo><mml:mi>s</mml:mi><mml:mo>&#x02212;</mml:mo><mml:msub><mml:mi>g</mml:mi><mml:mi>s</mml:mi></mml:msub><mml:mo stretchy='false'>(</mml:mo><mml:mover accent='true'><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo stretchy='false'>)</mml:mo><mml:mo stretchy='false'>]</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:mn>2</mml:mn><mml:msub><mml:mi>&#x003C3;</mml:mi><mml:mi>s</mml:mi></mml:msub></mml:mrow></mml:mfrac><mml:mo>+</mml:mo><mml:mfrac><mml:mrow><mml:msup><mml:mrow><mml:mo stretchy='false'>[</mml:mo><mml:mover accent='true'><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo>&#x02212;</mml:mo><mml:msub><mml:mi>&#x003BC;</mml:mi><mml:mi>&#x003D5;</mml:mi></mml:msub><mml:mo stretchy='false'>]</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:mn>2</mml:mn><mml:msub><mml:mi>&#x003C3;</mml:mi><mml:mi>&#x003D5;</mml:mi></mml:msub></mml:mrow></mml:mfrac><mml:mo>&#x02212;</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mi>ln</mml:mi><mml:mo>&#x000A0;</mml:mo><mml:msub><mml:mi>&#x003C3;</mml:mi><mml:mi>s</mml:mi></mml:msub><mml:mo>&#x02212;</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mi>ln</mml:mi><mml:mo>&#x000A0;</mml:mo><mml:msub><mml:mi>&#x003C3;</mml:mi><mml:mi>&#x003D5;</mml:mi></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:msup><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>s</mml:mi><mml:mo>&#x02212;</mml:mo><mml:msub><mml:mi>g</mml:mi><mml:mi>s</mml:mi></mml:msub><mml:msup><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mover accent='true'><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mn>2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mover accent='true'><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo>&#x02212;</mml:mo><mml:msub><mml:mi>&#x003BC;</mml:mi><mml:mi>&#x003D5;</mml:mi></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>The first item in Equation 2 is the sensory dynamic (McGregor et al., <xref ref-type="bibr" rid="B41">2015</xref>). <italic>g</italic><sub><italic>s</italic></sub>() is the sensory generating function, mapping the relationship between the world state and the sensory information learned by experience in advance. The brain actively estimates the world state <inline-formula><mml:math id="M6"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula>, then predicts sensory information through the generating function <inline-formula><mml:math id="M7"><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>. The actual sensory information <italic>s</italic> received through the sense organs is used to calculate prediction errors. The second term in Equation 2 is the environmental dynamic (McGregor et al., <xref ref-type="bibr" rid="B41">2015</xref>). The estimation of the brain depends on prior knowledge &#x003BC;<sub>&#x003D5;</sub> of the environment and this item is similar to the prior error of Bayes theorem. Environmental dynamic and sensory dynamic jointly determine the value of Free Energy.</p>
<p>For robotic systems, the world state mentioned above is the body state of the robot and the sensory information for robots are vision <italic>s</italic><sub><italic>v</italic></sub> and proprioception <italic>s</italic><sub><italic>p</italic></sub> (Lanillos and Cheng, <xref ref-type="bibr" rid="B32">2018</xref>), as shown in Equation 3. The robot continuously estimates its body state <inline-formula><mml:math id="M8"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula>, and predicts the vision <inline-formula><mml:math id="M9"><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>v</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> and proprioception <inline-formula><mml:math id="M10"><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>p</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>, respectively. The generating functions <italic>g</italic><sub><italic>sv</italic></sub>() and <italic>g</italic><sub><italic>sp</italic></sub>() can be learned by motor babbling in advance (Lanillos and Cheng, <xref ref-type="bibr" rid="B32">2018</xref>), which is the mapping relationship between the body state and the vision information or proprioception information. Therefore, the sensory dynamic of the robotic system includes visual prediction error and proprioception prediction error. For the environmental dynamic, the body state &#x003D5; of the robot at the current moment is determined by the state &#x003D5; and the action <italic>a</italic>&#x02032; at the last moment. <italic>g</italic><sub>&#x003D5;</sub>() represents the mapping relationship. When the robot&#x00027;s body structure is deformed, or the sensor is damaged, the sensory dynamic will be affected. When the robot motor structure is damaged, the environmental dynamic will be affected. In these cases, the value of Free Energy will change. So the value of Free Energy is taken to evaluate the robot&#x00027;s body damage.</p>
<disp-formula id="E3"><label>(3)</label><mml:math id="M11"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>F</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msup><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>v</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>v</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msup><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>p</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msup><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>In living organisms, physical damage can result in a pain state, and physical damage can be quantified by the value of Free Energy. Thus, in a robotic or virtual agent system, Artificial Pain can be considered relative to the value of Free Energy that represents their body damage. When the Free Energy is greater than 0, the body is in an injured state and then causes a pain state; When the Free Energy equals 0, the body is in a normal state.</p>
<p>In some potential dangerous scenarios, substantial injury has not occurred, but the organisms can also feel pain. This is because the brain can associate the experience of pain with injury-related cues so that it can quickly avoid similar cues. In the actual application of the robot, after the robot suffered substantial body damage, the robot&#x00027;s vision system should capture the corresponding dangerous scenarios. The robot will then associate it with the internal pain state and avoid potential damage. The significance of pain is that it is a warning signal for the actual and potential body damage of the living organisms to protect themselves (Melzack, <xref ref-type="bibr" rid="B42">2001</xref>). The Artificial Pain created with the proposed model can not only generate a pain warning signal when the body damage actually occurs, but also avoid potential damage in the future, achieving the same significance as the living organisms&#x00027; pain.</p></sec>
<sec>
<title>2.3.2. The Affective Empathy Spiking Neural Network</title>
<p>When different internal emotional states are generated through the Artificial Pain Model, the AE-SNN simulating mirror mechanism will be trained. This subsection describes the concrete design and implementation of the AE-SNN.</p>
<p><bold>1. LIF neuron model and STDP learning rule</bold>. Compared to conventional artificial neural networks, spiking neural network (SNN) captures more essential characteristics of the biological brain (Ghosh-Dastidar and Adeli, <xref ref-type="bibr" rid="B20">2009</xref>; Khalil et al., <xref ref-type="bibr" rid="B27">2017</xref>, <xref ref-type="bibr" rid="B26">2018a</xref>; Zhao et al., <xref ref-type="bibr" rid="B62">2018</xref>). In recent years, SNN has been successfully applied in many aspects of cognitive function modeling, such as decision making and creative processes (H&#x000E9;ric&#x000E9; et al., <xref ref-type="bibr" rid="B21">2016</xref>; Khalil and Moustafa, <xref ref-type="bibr" rid="B28">2022</xref>). The Leaky Integrate-and-fire (LIF) neuron is a well accepted computational model for SNN neurons (Tal and Schwartz, <xref ref-type="bibr" rid="B55">1997</xref>), and we use it as the basic unit of our model. The LIF neuron dynamics are described by the following Equation 4 and Equation 5:</p>
<disp-formula id="E4"><label>(4)</label><mml:math id="M12"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>&#x003C4;</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mfrac><mml:mrow><mml:mi>d</mml:mi><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:mfrac><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>s</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x0002B;</mml:mo><mml:mi>R</mml:mi><mml:mi>I</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E5"><label>(5)</label><mml:math id="M13"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mstyle displaystyle="true"><mml:munder class="msub"><mml:mrow><mml:mo class="qopname">lim</mml:mo></mml:mrow><mml:mrow><mml:mi>&#x003B4;</mml:mi><mml:mo>&#x02192;</mml:mo><mml:mn>0</mml:mn></mml:mrow></mml:munder></mml:mstyle><mml:mi>u</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>f</mml:mi></mml:mrow></mml:msup><mml:mo>&#x0002B;</mml:mo><mml:mi>&#x003B4;</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>s</mml:mi><mml:mi>e</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p><italic>u</italic><sub><italic>t</italic></sub> is the membrane potential of the neuron at time <italic>t</italic>, <italic>u</italic><sub><italic>rest</italic></sub> is the membrane potential at steady-state, <italic>R</italic> is the resistance, <italic>I</italic>(<italic>t</italic>) is the input current, and &#x003C4;<sub><italic>m</italic></sub> is the time constant. When the membrane potential <italic>u</italic><sub><italic>t</italic></sub> exceeds a certain threshold <italic>u</italic><sub><italic>th</italic></sub>, the neuron fires and <italic>t</italic><sub><italic>f</italic></sub> is the firing time. Once the neuron has fired, the membrane potential returns to its reset state <italic>u</italic><sub><italic>reset</italic></sub> (Fang et al., <xref ref-type="bibr" rid="B17">2021</xref>). In this article, the parameters of the LIF neuron are: <italic>u</italic><sub><italic>rest</italic></sub> &#x0003D; <italic>u</italic><sub><italic>reset</italic></sub> &#x0003D; 0<italic>mV</italic>, &#x003C4;<sub><italic>m</italic></sub> &#x0003D; 30<italic>ms</italic>, <italic>u</italic><sub><italic>th</italic></sub> &#x0003D; 60<italic>mV</italic>.</p>
<p>We use Spike Timing Dependent Plasticity (STDP) as a synapse learning rule to update synaptic weights. STDP is the most basic learning method in the brain, which relies on the time difference between the firing of pre-synaptic neurons and post-synaptic neurons to train the synaptic weight (Caporale and Dan, <xref ref-type="bibr" rid="B7">2008</xref>). The weight update can be written as Equation 6:</p>
<disp-formula id="E6"><label>(6)</label><mml:math id="M14"><mml:mrow><mml:mi>&#x00394;</mml:mi><mml:mi>&#x003C9;</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:msup><mml:mi>A</mml:mi><mml:mo>+</mml:mo></mml:msup><mml:mi>e</mml:mi><mml:mi>x</mml:mi><mml:mi>p</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:mfrac><mml:mrow><mml:mi>&#x00394;</mml:mi><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mi>&#x003C4;</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:mfrac><mml:mo stretchy='false'>)</mml:mo><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mi>&#x00394;</mml:mi><mml:mi>t</mml:mi><mml:mo>&#x0003C;</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>&#x02212;</mml:mo><mml:msup><mml:mi>A</mml:mi><mml:mo>&#x02212;</mml:mo></mml:msup><mml:mi>e</mml:mi><mml:mi>x</mml:mi><mml:mi>p</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:mfrac><mml:mrow><mml:mo>&#x02212;</mml:mo><mml:mi>&#x00394;</mml:mi><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mi>&#x003C4;</mml:mi><mml:mo>&#x02212;</mml:mo></mml:msup></mml:mrow></mml:mfrac><mml:mo stretchy='false'>)</mml:mo><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mi>&#x00394;</mml:mi><mml:mi>t</mml:mi><mml:mo>&#x0003E;</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mrow></mml:math></disp-formula>
<p>Here, &#x00394;<italic>t</italic> &#x0003D; <italic>t</italic><sub><italic>i</italic></sub>&#x02212;<italic>t</italic><sub><italic>j</italic></sub>, <italic>t</italic><sub><italic>i</italic></sub> and <italic>t</italic><sub><italic>j</italic></sub> are the time of the firing of the pre-synaptic neuron and the post-synaptic neuron, respectively (Zhao et al., <xref ref-type="bibr" rid="B62">2018</xref>). <italic>A</italic><sup>&#x0002B;</sup> and <italic>A</italic><sup>&#x02212;</sup> are the learning rates. &#x003C4;<sub>&#x0002B;</sub> and &#x003C4;<sub>&#x02212;</sub> are the time constants. According to this rule, the connections will be strengthened when pre-synaptic neurons fire before post-synaptic neurons and will be weakened when pre-synaptic neurons fire after post-synaptic neurons. Here, &#x003C4;<sub>&#x0002B;</sub> &#x0003D; &#x003C4;<sub>&#x02212;</sub> &#x0003D; 10<italic>ms</italic>, <italic>A</italic><sup>&#x0002B;</sup> &#x0003D; 0.25, <italic>A</italic><sup>&#x02212;</sup> &#x0003D; 0.01.</p>
<p><bold>2. The training process</bold>. We describe the training process of AE-SNN from two aspects: First, set the value of fixed weights in the three modules. In the Motor Module, the excitatory synaptic weights between SMA neurons and M1 neurons are set so that once the SMA neurons are activated, the connected M1 neurons are activated immediately. In addition, The Emotion Module connects all neurons in the Motor Module except M1 neurons. We set these fixed synapse weights because the different emotion overt actions are determined by hereditary genetic factors (Darwin, <xref ref-type="bibr" rid="B12">2015</xref>). Different emotion neurons&#x00027; firing will lead to different motor neurons&#x00027; firing. Since the connection between the two modules is bidirectional, these synapse weights can also be used in reverse when known the activation of the Motor Module to infer the activation of the Emotion Module.</p>
<p>Second, train the synapse weights between the Perception Module and the Motor Module. For the emergence of mirror neurons, we simulated the process of action execution and action re-afference and used the STDP learning rule to adjust the synapse weights. It takes 100 ms from the firing of the motor neurons to action execution, 100ms from the hearing/watching of that action to trigger the firing of the perception neurons, and the total time delay is 200 ms (Keysers and Gazzola, <xref ref-type="bibr" rid="B25">2014</xref>). In the training process, the emotion neurons fire at first, the corresponding motor neurons will fire and execute the emotional overt action, and after 200 ms, the corresponding perception neurons will fire. Because action execution is a continuous process, the firing of the motor neurons is still going on, as shown in <xref ref-type="fig" rid="F3">Figure 3</xref>. Due to this temporal correlation, the excitatory connections between the motor neurons executing the action and the perception neurons representing the same action will be strengthened by STDP, forming the mirror neurons in the Motor Module. In the emergence process of anti-mirror neurons, due to the connections between the SMA neurons and the perception neurons being inhibitory, the inhibitory connections between the SMA neurons and the perception neurons representing the same action will be strengthened by STDP. However, M1 neurons are only activated by SMA neurons, so M1 neurons are deactivated after the SMA neurons are inhibited, and the connection between the M1 neurons and the perception neurons will not be established. The M1 neurons are only activated during action execution, reproducing the property of anti-mirror neurons.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>The spike sequence of the three module neurons and the STDP training process between the Motor neuron and the Perception neuron. The firing of the Emotion neuron triggers the firing of the corresponding Motor neuron. As a result of action re-afference, the Perception neuron subsequently fires. There is a 200 ms delay from the firing of the Motor neuron to the firing of the Perception neuron. The blue curved arrows indicate the causality of the three modules, and the blue straight arrows represent the STDP training process.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0003.tif"/>
</fig>
<p>In the training stage, the connections among the three modules are established, and the mirror neurons and anti-mirror neurons emerge. When perceiving the emotional overt action of others, the perception information of overt action will be encoded in the Perception Module as input. Then it will activate the mirror neurons in the Motor Module, and further activate the corresponding emotion neurons to empathize with others.</p></sec></sec>
<sec>
<title>2.4. Intrinsic Motivation for Altruistic Behavior</title>
<p>Waal and Preston proposed that altruistic behavior derives from intrinsic motivation, and affective empathy is a major factor to generate this motivation (Waal and Preston, <xref ref-type="bibr" rid="B56">2017</xref>). Many psychologists argued that emotion is the motivation for most decisions, guiding individuals to avoid negative emotions (such as pain and sadness), which is an intrinsic motivation for survival, such as eating (Lerner et al., <xref ref-type="bibr" rid="B35">2015</xref>). When people have negative emotions, they will adopt adaptive behaviors to eliminate negative emotions, as the blue arrow shown in <xref ref-type="fig" rid="F4">Figure 4A</xref>. When observing others&#x00027; negative emotions, the ability of affective empathy can transfer the others&#x00027; negative emotions to the observer, as the orange arrows shown in <xref ref-type="fig" rid="F4">Figure 4B</xref>. This shared negative emotion provides intrinsic motivation for the observer&#x00027;s altruistic behavior, In order to eliminate shared negative emotion, the observer will try to adopt altruistic behavior actively, such as help, and consolation, as the blue arrow shown in <xref ref-type="fig" rid="F4">Figure 4B</xref>. When the others&#x00027; negative emotion is eliminated, the observer&#x00027;s shared negative emotion is indirectly eliminated by affective empathy. Therefore, Altruistic behavior originates from spontaneous intrinsic motivation. Affective empathy can provide this motivation by realizing emotion transfer.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>The intrinsic motivation of altruistic behavior. <bold>(A)</bold> Self-pain relief. <bold>(B)</bold> Altruistic behaviors that relieve others&#x00027; pain.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0004.tif"/>
</fig>
<p>After exploring the intrinsic motivation of the altruistic behavior, we combine the brain-inspired affective empathy computational model proposed above to complete an altruistic rescue task and achieve the rescue of companions by an intelligent agent in the grid world. In our model, the AE-SNN has self-other differentiation ability. When the intelligent agent has negative emotion, if the negative emotion comes from itself, it will act on itself; if the negative emotion comes from others, it will act to help the others and, thus, indirectly help itself.</p></sec></sec>
<sec id="s3">
<title>3. Experiment</title>
<p>This subsection introduces the applications of the brain-inspired affective empathy computational model on intelligent agents in the grid world environment. Bartal et al. studied that rats learned to open doors to rescue their companions trapped in containers through trial and error (Bartal et al., <xref ref-type="bibr" rid="B3">2011</xref>). We designed the experiment inspired by this behavior paradigm. The experiment process is divided into two phases: (1) The development of pain empathy ability. We designed an agentA to explore the grid world and experience pain state through the Artificial Pain Model. Then train its AE-SNN to develop its pain empathy ability. (2) The altruistic rescue task. We design a two-agent task, in which agentA uses the trained AE-SNN to empathize with agentB and implements rescue behavior driven by intrinsic altruistic motivation.</p>
<sec>
<title>3.1. Environment Settings</title>
<p>The setups of the grid world are shown in <xref ref-type="fig" rid="F5">Figure 5A</xref>. The green pentagon represents the agent. The direction pointed by the tip of the pentagon is the direction of the agent&#x00027;s next action, and the green dotted line represents the next position. The gray area in the middle is walls, splitting the danger zone on the left and the safety zone on the right. The black circle in the danger zone is a dangerous object, which can lead to damage when the agent crashes into it. The yellow circle is the switch. When the switch is turned on, a passage from the danger zone to the safety zone can be established as shown in <xref ref-type="fig" rid="F5">Figure 5B</xref>, then the agent can enter the safety zone spontaneously and immediately, and the damaged agent will recover to the normal state (just like when the container is opened the trapped rat will quickly leave the container, as mentioned in the Bartal et al., <xref ref-type="bibr" rid="B3">2011</xref>). In the action execution process, the agent can detect its internal state through the Artificial Pain Model. For the AE-SNN of the agent, the number of neurons in the Emotion Module, Motor Module, and Perception Module are 40, 50, and 40, respectively. When different internal states arise, the corresponding neurons of the Emotion Module of AE-SNN will fire, activating the neurons of the Motor Module to produce corresponding emotional overt actions. In our experiments, we designed the color change of the agent to be equivalent to emotional overt actions (e.g., human facial expressions or crying). The agent shows red in a pain state and green in a normal state. Agents can use their own Perception Module to perceive their own and others&#x00027; emotional overt actions, just as people can hear their own and others&#x00027; cries. The trained AE-SNN makes the agent have empathy ability.</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>The setups of the grid world. The green pentagon represents the agent. The direction pointed by the tip of the pentagon is the direction of the agent&#x00027;s next action. The gray area is walls, the danger zone is on the <bold>(A)</bold>, and the safety zone is on the <bold>(B)</bold>. The yellow circle is the switch. The black circle in the danger zone is a dangerous object.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0005.tif"/>
</fig></sec>
<sec>
<title>3.2. The Developing of Pain Empathy Ability</title>
<sec>
<title>3.2.1. Experimental Procedure</title>
<p>We place dangerous objects, a switch, walls, and an agentA in the grid world. The agentA explores the environment and uses the Artificial Pain Model to detect its own internal state, completing the training of the AE-SNN.</p>
<p>We set the damage rule of agent: when an agent collides with a dangerous object, its ability to act will be impaired. For example, if a command is given to the right, the agent actually moves a unit to the left. For the Artificial Pain Model, the &#x00027;environmental dynamic&#x00027; of the Free Energy will result in errors, as the third item in Equation 3. We first set the mapping relationship <inline-formula><mml:math id="M15"><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mi>&#x003D5;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> of the Artificial Pain Model, which is the moving rule of the agent: When the agent performs an action, its horizontal and vertical coordinates will change accordingly. For example, if an upward action is performed, its vertical-coordinate&#x00027;s value reduces, and if a rightward action is performed, its horizontal-coordinate&#x00027;s value adds. The agent knows its moving rule in advance and uses this rule to continuously and actively predict its next position. When the prediction is wrong, the Free Energy is greater than 0, indicating that damage occurs and the agent will be in the pain state.</p>
<p><xref ref-type="fig" rid="F6">Figure 6A</xref> shows that agentA is colliding with the dangerous object. <xref ref-type="fig" rid="F6">Figure 6B</xref> shows that the next motion command of agentA is toward the right, the prediction is the position of the green dotted line. But <xref ref-type="fig" rid="F6">Figure 6C</xref> shows that the actual action of the agentA is toward the left. At the same time, the motor damage will be detected by the Artificial Pain Model, and the agentA will be in the pain state. After the pain state generates, the first 20 neurons in the Emotion Module that represent pain will fire and activate the neurons in the Motor Module to produce painful overt action. In this experiment, the color of the agentA turns red, as shown in <xref ref-type="fig" rid="F6">Figure 6D</xref>. After that, the agentA&#x00027;s Perception Module will perceive its own color information. The first 20 neurons of the Perception Module that represent perceiving red will be activated, completing a training epoch of AE-SNN in the pain state by STDP. After 100 training epochs, the AE-SNN finishes training, and the agent has pain empathy ability. <xref ref-type="fig" rid="F6">Figures 6E,F</xref> show that agentA touches the switch during exploration and establishes the passage from the danger zone to the safety zone. Then it enters the safety zone and recovers to its normal state. These two figures aim to illustrate the role of the switch.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>The random exploration process of agentA. The agentA explores the environment and uses the Artificial Pain Model to detect its own internal state, completing the training of the AE-SNN. <bold>(A,B)</bold> Show that agentA collides with the dangerous object during the exploration. <bold>(C,D)</bold> Show that agentA generates a motor damage and is detected by the Artificial Pain Model; agentA is in the pain state and turnsred. <bold>(E,F)</bold> Show that the switch being touched, establishing a pathway from the danger zone to the safety zone; agentA then enters the safety zone and returns to the normal state.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0006.tif"/>
</fig></sec>
<sec>
<title>3.2.2. Results Analysis</title>
<p><xref ref-type="fig" rid="F7">Figure 7</xref> represents the value of Free Energy during exploration. The X-axis represents the number of steps. The Y-axis represents the value of Free Energy. The value of Free Energy is the sum of the square of the difference between the predicted agentA&#x00027;s coordinates and the actual agentA&#x00027;s coordinates. We designed the agent as a pentagon, each vertex has a 2D coordinate (<italic>X, Y</italic>), so the agent has five sets of 2D coordinates at each position, i.e., (<italic>X</italic><sub>1</sub>, <italic>Y</italic><sub>1</sub>), (<italic>X</italic><sub>2</sub>, <italic>Y</italic><sub>2</sub>)...(<italic>X</italic><sub>5</sub>, <italic>Y</italic><sub>5</sub>). The Free Energy is equal to the sum of the squares of the differences in the corresponding coordinates, as described in Equation 7. The unit grid length is 25, resulting in the Free Energy range of [3125,12500]. Since our model is only related to whether the Free Energy is greater than 0, we put all values that are greater than 3125 equal to 3125. PointA indicates that the agentA collides with a dangerous object at 19 steps, and the damage generates. The Free Energy is greater than 0, causing the agentA to be in the pain state. PointB indicates that the agentA enters the safe zone at 82 steps, and recovers its normal state. The Free Energy is equal to 0, causing the agentA&#x00027;s pain state to be alleviated.</p>
<disp-formula id="E7"><label>(7)</label><mml:math id="M16"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>F</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>5</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>X</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>X</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>c</mml:mi><mml:mi>t</mml:mi><mml:mi>u</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>&#x0002B;</mml:mo><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>y</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>5</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>Y</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>Y</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>c</mml:mi><mml:mi>t</mml:mi><mml:mi>u</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p>The value of Free Energy. The X-axis represents the number of steps and Y-axis represents the value of Free Energy. Point (A) indicates that the agentA collides with a dangerous object at 19 steps, and the damage generates; Point (B) indicates that the agent enters the safe zone at 82 steps and recovers to its normal state.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0007.tif"/>
</fig>
<p><xref ref-type="fig" rid="F8">Figures 8A&#x02013;C</xref> is the spike diagrams of the three modules of AE-SNN in the pain state. The X-axis represents the firing time, and each unit represents 100 ms. The Y-axis represents the index of the neurons. <xref ref-type="fig" rid="F8">Figure 8A</xref> represents the firing of neurons that represent the pain state in the Emotion Module. <xref ref-type="fig" rid="F8">Figure 8B</xref> shows the firing of neurons that represent the painful overt action in the Motor Module as the agentA&#x00027;s color turns red. <xref ref-type="fig" rid="F8">Figure 8C</xref> shows the firing of neurons in the Perception Module, which corresponds to agentA perceiving its color information. The firing of the Emotion Module will then trigger the firing of the Motor Module by setting weights in advance, and then the Perception Module will fire after a 200ms delay, indicating the time interval for action execution and action re-afference. With the time correlation, the connections between the Perception Module and the Motor Module can be established by STDP.</p>
<fig id="F8" position="float">
<label>Figure 8</label>
<caption><p>The spikes of the neurons in the Emotion Module <bold>(A)</bold>, Motor Module <bold>(B)</bold>, and Perception Module <bold>(C)</bold> in the training phase of AE-SNN. The X-axis represents the firing time, and each unit represents 100 ms. Y-axis represents the index of the neurons.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0008.tif"/>
</fig>
<p><xref ref-type="fig" rid="F9">Figure 9A</xref> shows the synaptic weights training process from the Perception Module to the Motor Module. The X-axis represents the training epochs. The Y-axis represents the value of weights. The purple line indicates the change of inhibitory weights between the Perception neurons and the SMA neurons. The green line indicates a change of weights between the Perception neurons and the M1 neurons, and due to the gate mechanism of the SMA neurons, the weight is maintained near 0, which is equivalent to not establishing synaptic connections. The yellow line indicates the change of excitatory weights between the Perception neurons and other neurons in the Motor Module, and the value of the weight gradually increases, indicating that these neurons are mirror neurons. <xref ref-type="fig" rid="F9">Figure 9B</xref> shows the trained synaptic weights between the Perception Module and the Motor Module. The X-axis represents the index of Perception neurons. The Y-axis represents the index of Motor neurons. The color represents the value of the weight. The purple areas represent inhibitory synaptic weights between the Perception neurons and the SMA neurons. The yellow areas represent excitatory synaptic weights between the Perception neurons and the mirror neurons that represent the same emotional overt action. The green areas represent unestablished synaptic connections, which contain the connections between M1 neurons and Perception neurons.</p>
<fig id="F9" position="float">
<label>Figure 9</label>
<caption><p>The synaptic weights from the Perception neurons to the Motor neurons. <bold>(A)</bold> The change of synaptic weights. The X-axis represents the training epochs and Y-axis represents the value of weights. <bold>(B)</bold> The trained value of synaptic weights. The X-axis represents the index of Perception neurons and Y-axis represents the index of Motor neurons.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0009.tif"/>
</fig></sec></sec>
<sec>
<title>3.3. The Altruistic Rescue Task</title>
<sec>
<title>3.3.1. Experimental Procedure</title>
<p>Using the AE-SNN trained in Section 3.2, we designed an altruistic rescue task. <xref ref-type="fig" rid="F10">Figure 10A</xref> shows that two agents, a dangerous object, a switch, and walls are placed in the grid world. In the previous task, the agentA with affective empathy ability is placed in the right safety zone, and agentB (green pentagon with black border) is placed in the danger zone for exploration. We place the yellow switch on the side of the safety zone, so agentB has no self-rescue ability and could only be rescued through agentA.</p>
<fig id="F10" position="float">
<label>Figure 10</label>
<caption><p>The altruistic rescue process. The agentA through AE-SNN empathizes with agentB and carries out rescue behavior. <bold>(A)</bold> Shows that agentA with affective empathy ability is placed in the safe zone and agentB (green pentagon with black border) is placed in the danger zone for exploration. <bold>(B)</bold> Shows that agentB inevitably collides with a dangerous object, causing the pain state and turning red; agentA generates pain empathy through AE-SNN. <bold>(C)</bold> Shows that agentA learns to find the switch. <bold>(D)</bold> Shows that the switch is touched, agentB enters the safe zone and relieves the pain state.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0010.tif"/>
</fig>
<p>When agentB explores the environment, it will inevitably encounter a dangerous object, resulting in pain and turning into red color, as shown in <xref ref-type="fig" rid="F10">Figure 10B</xref>. AgentA will perceive the color information of agentB, then generate empathy pain through AE-SNN. The intrinsic altruistic motivation will drive agentA to take action to rescue agentB and find the optimal strategy by the reinforcement learning method. Eventually, agentA learned to go to the switch as soon as possible and establish the passage from the danger zone to the safety zone, as shown in <xref ref-type="fig" rid="F10">Figure 10C</xref>. After the switch is turned on, agentB will enter the safety zone and relief the pain state, then agentA&#x00027;s empathy pain will also be relieved through AE-SNN as shown in <xref ref-type="fig" rid="F10">Figure 10D</xref>, completing the rescue of the companion.</p></sec>
<sec>
<title>3.3.2. Results Analysis</title>
<p><xref ref-type="fig" rid="F11">Figures 11A&#x02013;C</xref> shows the spike diagrams of the three modules of the agentA during the altruistic rescue process. <xref ref-type="fig" rid="F11">Figure 11A</xref> shows the firing of the neurons in the Perception Module, representing agentB&#x00027;s color information. <xref ref-type="fig" rid="F11">Figure 11B</xref> shows the firing of the mirror neurons in the Motor Module, which realizes the understanding of the pain state at the motor level. <xref ref-type="fig" rid="F11">Figure 11C</xref> shows the firing of the neurons in the Emotion Module, which realizes the understanding of the pain state at the emotional level. Moreover, in this process, compared with <xref ref-type="fig" rid="F8">Figure 8B</xref> mentioned in Section 3.2.2, not all neurons in the motor area are activated (in fact only mirror neurons are activated), so the conditions for executing painful overt actions do not arrive. Therefore, although the agentA feels pain, it does not turn red.</p>
<fig id="F11" position="float">
<label>Figure 11</label>
<caption><p>The spikes of the neurons in the Perception Module <bold>(A)</bold>, Motor Module <bold>(B)</bold>, and Emotion Module <bold>(C)</bold> in the altruistic rescue task phase. The X-axis represents the firing time and each unit represents 100 ms. Y-axis represents the index of the neurons.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-16-784967-g0011.tif"/>
</fig></sec></sec></sec>
<sec sec-type="discussion" id="s4">
<title>4. Discussion</title>
<p>This article focuses on the brain-inspired affective empathy computational model and its application. Inspired by the neural mechanism of affective empathy, we simulated the generation process of pain, trained the emergence of mirror neurons and anti-mirror neurons, and completed the altruistic rescue task. In this section, we will discuss the strengths and limitations of our computational model and its application prospects.</p>
<p>In the AE-SNN, we reproduced the emergence process of mirror neurons and anti-mirror neurons. Inspired by the gating mechanism from SMA to M1 proposed in the neuroscience literature (Christian and Valeria, <xref ref-type="bibr" rid="B9">2010</xref>), we also set up neurons with similar functions in the Motor Module of AE-SNN. This eventually led to eight main types of neurons in the Motor Module, as shown in <xref ref-type="table" rid="T1">Table 1</xref>. If a neuron is activated when executing action1 and observing action1, it is the mirror neuron of action1, which is used to understand emotional overt action1. If a neuron is activated when executing action2 and observing action2, it is the mirror neuron of action2, which is used to understand emotional overt action2. If a neuron is activated during the execution of both action1 and action2 and is deactivated during the observation of both action1 and action2, it is the anti-mirror neuron, which is used to distinguish between self and others and avoid unnecessary emotional overt actions in the affective empathy process.</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>The analysis of the eight main neuron types in the Motor Module.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th/>
<th valign="top" align="left"><bold>Action1</bold></th>
<th valign="top" align="left"><bold>Action2</bold></th>
<th valign="top" align="left"><bold>Perception1</bold></th>
<th valign="top" align="left"><bold>Perception2</bold></th>
<th valign="top" align="left"><bold>Type</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1</td>
<td valign="top" align="left">&#x0221A;</td>
<td/>
<td/>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">2</td>
<td valign="top" align="left">&#x0221A;</td>
<td/>
<td valign="top" align="left">&#x0221A;</td>
<td/>
<td valign="top" align="left">MN(1)</td>
</tr>
<tr>
<td valign="top" align="left">3</td>
<td/>
<td valign="top" align="left">&#x0221A;</td>
<td/>
<td/>
<td/>
</tr>
<tr>
<td valign="top" align="left">4</td>
<td/>
<td valign="top" align="left">&#x0221A;</td>
<td/>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">MN(2)</td>
</tr>
<tr>
<td valign="top" align="left">5</td>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">&#x0221A;</td>
<td/>
<td valign="top" align="left">MN(1)</td>
</tr>
<tr>
<td valign="top" align="left">6</td>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">&#x0221A;</td>
<td/>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">MN(2)</td>
</tr>
<tr>
<td valign="top" align="left">7</td>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">MN(1,2)</td>
</tr>
<tr>
<td valign="top" align="left">8</td>
<td valign="top" align="left">&#x0221A;</td>
<td valign="top" align="left">&#x0221A;</td>
<td/>
<td/>
<td valign="top" align="left">ANTI-MN</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The MN refers to mirror neuron and the ANTI-MN refers to anti-mirror neuron. &#x0221A; indicates whether the neuron is activated under these four conditions (Action 1, Action 2, Perception 1, Perception 2)</italic>.</p>
</table-wrap-foot>
</table-wrap>
<p>Gazzola and Keysers studied the fMRI data of human subjects and concluded that mirror neurons were reliably observed in the premotor cortex (PM), the supplementary motor cortex (SMA), and other brain regions, and anti-mirror neurons were observed in the M1. They also discussed the gating mechanism of the SMA neurons (Gazzola and Keysers, <xref ref-type="bibr" rid="B19">2008</xref>). Mukamel et al. also illustrated a similar conclusion, and further discussed that anti-mirror neurons can maintain self-other differentiation (Mukamel et al., <xref ref-type="bibr" rid="B46">2010</xref>). The results in <xref ref-type="table" rid="T1">Table 1</xref> show that the AE-SNN produces neuron types consistent with these two references.</p>
<p>In the altruistic rescue task, agentA&#x00027;s rescue path optimization used reinforcement learning. Unlike traditional reinforcement learning, the reward function in this task is not an extrinsic reward set by the human in advance, but an intrinsic reward obtained through the agent&#x00027;s internal model. First, agentB generates pain states through the Artificial Pain Model, and agentA generates empathy pain through its AE-SNN. When agentA touches the yellow switch accidentally, the passage from the danger zone to the safety zone will be established, then agentB will enter the safe zone, the pain will be relieved, and then the pain empathized by agentA will be relieved. For the brain, the relief of negative emotions can be seen as an intrinsic reward (Porreca and Navratilova, <xref ref-type="bibr" rid="B47">2017</xref>). Thus, agentA marks the yellow switch as a positive reward. Then it can continuously optimize its Q-table to learn the optimal rescue path based on this reward.</p>
<p>There are some limitations to our study. First, there is a simplification in the design of anti-mirror neurons. In fact, the gate mechanism of SMA neurons is complex (Gazzola and Keysers, <xref ref-type="bibr" rid="B19">2008</xref>), which is not easy to realize for computational modeling. Our study could be seen as the first step toward a more biologically realistic computational model of anti-mirror neurons from a functional perspective. In addition, there is some simplification in the process of artificial emotion generation. Emotion is a very complex cognitive function of organisms involving the regulation of a variety of hormones and neural circuits (L&#x000F6;vheim, <xref ref-type="bibr" rid="B37">2012</xref>). The Artificial Pain Model proposed in this article is just a prototype. In the future, we will study more about the nature of emotion and the relationship between emotion and emotional overt actions (Mirabella, <xref ref-type="bibr" rid="B43">2018</xref>; Mancini et al., <xref ref-type="bibr" rid="B39">2020</xref>, <xref ref-type="bibr" rid="B40">2022</xref>; Mirabella et al., <xref ref-type="bibr" rid="B44">2022</xref>).</p>
<p>Currently, our study is only to realize the application of the mirror mechanism in a virtual environment. In the social robots field, the mirror mechanism is also necessary (Asada, <xref ref-type="bibr" rid="B1">2015</xref>). If the robot associates its emotion with the perception information of the corresponding emotion overt action, it will understand its companion&#x00027;s emotion when perceiving similar emotion overt information from the companion. This mirror mechanism can help robots to empathize with their companions. We will explore the application of these mechanisms in robots in the future.</p>
<p>The prediction process in the Artificial Pain Model simulates the evolution of pain. Organisms evolved pain by experiencing physical damage (Walters and Williams, <xref ref-type="bibr" rid="B57">2019</xref>). We use the Free Energy Principle (FEP) to model this detection process of physical damage: The brain detects abnormal sensations through continuous prediction of multiple physical sensations. That is a prediction at the physical sensation level. It is worth noting that the brain also has predictions at the event level, such as predicting that the organism will be injured. This is essentially a prediction of whether an injury event will occur, which is different from the prediction at the physical sensation level in the Artificial Pain Model.</p>
<p>In summary, we proposed a brain-inspired affective empathy computational model, which involves the generation process of Artificial Pain and the reproduction of the mirror mechanism of MNS, along with the self-other differentiation ability. We apply this model to achieve pain empathy and altruistic behavior in the virtual grid world environment. We hope that our study will contribute to the harmonious coexistence among robot groups and between humans and robots.</p></sec>
<sec sec-type="data-availability" id="s5">
<title>Data Availability Statement</title>
<p>The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.</p></sec>
<sec id="s6">
<title>Author Contributions</title>
<p>HF and YZ designed the study, and performed the experiments. HF, YZ, and EL developed the algorithm and performed the result analysis, wrote and revised the manuscript. All authors contributed to the article and approved the submitted version.</p></sec>
<sec sec-type="funding-information" id="s7">
<title>Funding</title>
<p>This work was supported by the New Generation of Artificial Intelligence Major Project of the Ministry of Science and Technology of the People&#x00027;s Republic of China (Grant No. 2020AAA0104305), the Strategic Priority Research Program of the Chinese Academy of Sciences (Grant No. XDB32070100), and the Beijing Municipal Commission of Science and Technology (Grant No. Z181100001518006).</p></sec>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of Interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p></sec>
<sec sec-type="disclaimer" id="s8">
<title>Publisher&#x00027;s Note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p></sec>
</body>
<back>
<ack><p>We appreciate Feifei Zhao, Dongcheng Zhao, Yuxuan Zhao, and Hongjian Fang for valuable discussions. We would like to thank all the reviewers for their help in shaping and refining the manuscript.</p>
</ack>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Asada</surname> <given-names>M</given-names></name></person-group> (<year>2015</year>). <article-title>Towards artificial empathy</article-title>. <source>Int. J. Soc. Robotics</source> <volume>7</volume>, <fpage>19</fpage>&#x02013;<lpage>33</lpage>. <pub-id pub-id-type="doi">10.1007/s12369-014-0253-z</pub-id></citation>
</ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Asada</surname> <given-names>M</given-names></name></person-group> (<year>2019</year>). <article-title>Artificial pain may induce empathy, morality, and ethics in the conscious mind of robots</article-title>. <source>Philosophies</source> <volume>4</volume>, <fpage>38</fpage>&#x02013;<lpage>30</lpage>. <pub-id pub-id-type="doi">10.3390/philosophies4030038</pub-id></citation>
</ref>
<ref id="B3">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bartal</surname> <given-names>I. B.-A.</given-names></name> <name><surname>Decety</surname> <given-names>J.</given-names></name> <name><surname>Mason</surname> <given-names>P.</given-names></name></person-group> (<year>2011</year>). <article-title>Empathy and pro-social behavior in rats</article-title>. <source>Science</source> <volume>334</volume>, <fpage>1427</fpage>&#x02013;<lpage>1430</lpage>. <pub-id pub-id-type="doi">10.1126/science.1210789</pub-id><pub-id pub-id-type="pmid">22158823</pub-id></citation></ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bogacz</surname> <given-names>R</given-names></name></person-group> (<year>2017</year>). <article-title>A tutorial on the free-energy framework for modelling perception and learning</article-title>. <source>J. Math. Psychol</source>. <volume>76</volume>, <fpage>198</fpage>&#x02013;<lpage>211</lpage>. <pub-id pub-id-type="doi">10.1016/j.jmp.2015.11.003</pub-id><pub-id pub-id-type="pmid">28298703</pub-id></citation></ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Broom</surname> <given-names>D. M</given-names></name></person-group> (<year>2001</year>). <article-title>Evolution of pain</article-title>. <source>Vlaams Diergeneeskd Tijdschr</source>. <volume>70</volume>, <fpage>17</fpage>&#x02013;<lpage>21</lpage>.</citation>
</ref>
<ref id="B6">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Brown</surname> <given-names>E. C.</given-names></name> <name><surname>Brune</surname> <given-names>M.</given-names></name></person-group> (<year>2012</year>). <article-title>The role of prediction in social neuroscience</article-title>. <source>Front. Hum. Neurosci</source>. 6, 147. <pub-id pub-id-type="doi">10.3389/fnhum.2012.00147</pub-id><pub-id pub-id-type="pmid">22654749</pub-id></citation></ref>
<ref id="B7">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Caporale</surname> <given-names>N.</given-names></name> <name><surname>Dan</surname> <given-names>Y.</given-names></name></person-group> (<year>2008</year>). <article-title>Spike timing-dependent plasticity: a hebbian learning rule</article-title>. <source>Ann. Rev. Neurosci</source>. <volume>31</volume>, <fpage>25</fpage>&#x02013;<lpage>46</lpage>. <pub-id pub-id-type="doi">10.1146/annurev.neuro.31.060407.125639</pub-id><pub-id pub-id-type="pmid">18275283</pub-id></citation></ref>
<ref id="B8">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Carr</surname> <given-names>L.</given-names></name> <name><surname>Iacoboni</surname> <given-names>M.</given-names></name> <name><surname>Dubeau</surname> <given-names>M.-C.</given-names></name> <name><surname>Mazziotta</surname> <given-names>J. C.</given-names></name> <name><surname>Lenzi</surname> <given-names>G. L.</given-names></name></person-group> (<year>2003</year>). <article-title>Neural mechanisms of empathy in humans: a relay from neural systems for imitation to limbic areas</article-title>. <source>Proc. Natl. Acad. Sci. U.S.A</source>. <volume>100</volume>, <fpage>5497</fpage>&#x02013;<lpage>5502</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.0935845100</pub-id><pub-id pub-id-type="pmid">12682281</pub-id></citation></ref>
<ref id="B9">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Christian</surname> <given-names>K.</given-names></name> <name><surname>Valeria</surname> <given-names>G.</given-names></name></person-group> (<year>2010</year>). <article-title>Social neuroscience: Mirror neurons recorded in humans</article-title>. <source>Curr. Biol</source>. 20, R353-R354. <pub-id pub-id-type="doi">10.1016/j.cub.2010.03.013</pub-id><pub-id pub-id-type="pmid">21749952</pub-id></citation></ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Claret</surname> <given-names>J. A.</given-names></name> <name><surname>Venture</surname> <given-names>G.</given-names></name> <name><surname>Basaez</surname> <given-names>L.</given-names></name></person-group> (<year>2017</year>). <article-title>Exploiting the robot kinematic redundancy for emotion conveyance to humans as a lower priority task</article-title>. <source>Int. J. Soc. Robotics</source> <volume>9</volume>, <fpage>277</fpage>&#x02013;<lpage>292</lpage>. <pub-id pub-id-type="doi">10.1007/s12369-016-0387-2</pub-id></citation>
</ref>
<ref id="B11">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Corradi-Dell&#x00027;Acqua</surname> <given-names>C.</given-names></name> <name><surname>Tusche</surname> <given-names>A.</given-names></name> <name><surname>Vuilleumier</surname> <given-names>P.</given-names></name> <name><surname>Singer</surname> <given-names>T.</given-names></name></person-group> (<year>2016</year>). <article-title>Cross-modal representations of first-hand and vicarious pain, disgust and fairness in insular and cingulate cortex</article-title>. <source>Nat. Commun</source>. 7, 10904. <pub-id pub-id-type="doi">10.1038/ncomms10904</pub-id><pub-id pub-id-type="pmid">26988654</pub-id></citation></ref>
<ref id="B12">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Darwin</surname> <given-names>C</given-names></name></person-group> (<year>2015</year>). <source>The Expression of the Emotions in Man and Animals</source>. <publisher-loc>Chicago, IL</publisher-loc>: <publisher-name>University of Chicago Press</publisher-name>.<pub-id pub-id-type="pmid">27803286</pub-id></citation></ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Davis</surname> <given-names>M</given-names></name></person-group> (<year>1992</year>). <article-title>The role of the amygdala in fear and anxiety</article-title>. <source>Ann. Rev. Neurosci</source>. <volume>15</volume>, <fpage>353</fpage>&#x02013;<lpage>375</lpage>. <pub-id pub-id-type="doi">10.1146/annurev.ne.15.030192.002033</pub-id><pub-id pub-id-type="pmid">1575447</pub-id></citation></ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Donald</surname> <given-names>D. P</given-names></name></person-group> (<year>2000</year>). <article-title>Psychological and neural mechanisms of the affective dimension of pain</article-title>. <source>Science</source> <volume>288</volume>, <fpage>1769</fpage>&#x02013;<lpage>1772</lpage>. <pub-id pub-id-type="doi">10.1126/science.288.5472.1769</pub-id><pub-id pub-id-type="pmid">10846154</pub-id></citation></ref>
<ref id="B15">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Erhan</surname> <given-names>O.</given-names></name> <name><surname>Mitsuo</surname> <given-names>K.</given-names></name> <name><surname>Michael</surname> <given-names>A.</given-names></name></person-group> (<year>2006</year>). <article-title>Mirror neurons and imitation: a computationally guided review</article-title>. <source>Neural Netw</source>. <volume>19</volume>, <fpage>254</fpage>&#x02013;<lpage>271</lpage>. <pub-id pub-id-type="doi">10.1016/j.neunet.2006.02.002</pub-id><pub-id pub-id-type="pmid">16595172</pub-id></citation></ref>
<ref id="B16">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Erhan</surname> <given-names>O.</given-names></name> <name><surname>Mitsuo</surname> <given-names>K.</given-names></name> <name><surname>Michael</surname> <given-names>A. A.</given-names></name></person-group> (<year>2013</year>). <article-title>Mirror neurons: functions, mechanisms and models</article-title>. <source>Neurosci. Lett</source>. <volume>540</volume>:<fpage>43</fpage>&#x02013;<lpage>55</lpage>. <pub-id pub-id-type="doi">10.1016/j.neulet.2012.10.005</pub-id><pub-id pub-id-type="pmid">23063951</pub-id></citation></ref>
<ref id="B17">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Fang</surname> <given-names>H.</given-names></name> <name><surname>Zeng</surname> <given-names>Y.</given-names></name> <name><surname>Zhao</surname> <given-names>F.</given-names></name></person-group> (<year>2021</year>). <article-title>Brain inspired sequences production by spiking neural networks with reward-modulated stdp</article-title>. <source>Front. Comput. Neurosci</source>. 15, 8. <pub-id pub-id-type="doi">10.3389/fncom.2021.612041</pub-id><pub-id pub-id-type="pmid">33664661</pub-id></citation></ref>
<ref id="B18">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Friston</surname> <given-names>K</given-names></name></person-group> (<year>2010</year>). <article-title>The free-energy principle: a unified brain theory?</article-title> <source>Nat. Rev. Neurosci</source>. <volume>11</volume>, <fpage>127</fpage>&#x02013;<lpage>138</lpage>. <pub-id pub-id-type="doi">10.1038/nrn2787</pub-id><pub-id pub-id-type="pmid">20068583</pub-id></citation></ref>
<ref id="B19">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gazzola</surname> <given-names>V.</given-names></name> <name><surname>Keysers</surname> <given-names>C.</given-names></name></person-group> (<year>2008</year>). <article-title>The observation and execution of actions share motor and somatosensory voxels in all tested subjects: Single-subject analyses of unsmoothed fmri data</article-title>. <source>Cereb. Cortex</source> <volume>19</volume>, <fpage>1239</fpage>&#x02013;<lpage>1255</lpage>. <pub-id pub-id-type="doi">10.1093/cercor/bhn181</pub-id><pub-id pub-id-type="pmid">19020203</pub-id></citation></ref>
<ref id="B20">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Ghosh-Dastidar</surname> <given-names>S.</given-names></name> <name><surname>Adeli</surname> <given-names>H.</given-names></name></person-group> (<year>2009</year>). Spiking neural networks. International Journal of Neural Systems, 19, 295-308. PMID: 19731402. <pub-id pub-id-type="doi">10.1142/S0129065709002002</pub-id><pub-id pub-id-type="pmid">19731402</pub-id></citation></ref>
<ref id="B21">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>H&#x000E9;ric&#x000E9;</surname> <given-names>C.</given-names></name> <name><surname>Khalil</surname> <given-names>R.</given-names></name> <name><surname>Moftah</surname> <given-names>M.</given-names></name> <name><surname>Boraud</surname> <given-names>T.</given-names></name> <name><surname>Guthrie</surname> <given-names>M.</given-names></name> <name><surname>Garenne</surname> <given-names>A.</given-names></name></person-group> (<year>2016</year>). <article-title>Decision making under uncertainty in a spiking neural network model of the basal ganglia</article-title>. <source>J. Integrat. Neurosci</source>. <volume>15</volume>, <fpage>515</fpage>&#x02013;<lpage>538</lpage>. <pub-id pub-id-type="doi">10.1142/S021963521650028X</pub-id><pub-id pub-id-type="pmid">28002987</pub-id></citation></ref>
<ref id="B22">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Huang</surname> <given-names>J. Y.</given-names></name> <name><surname>Lee</surname> <given-names>W. P.</given-names></name> <name><surname>Chen</surname> <given-names>C. C.</given-names></name> <name><surname>Dong</surname> <given-names>B. W.</given-names></name></person-group> (<year>2020</year>). <article-title>Developing emotion-aware human-robot dialogues for domain-specific and goal-oriented tasks</article-title>. <source>Robotics</source> <volume>9</volume>, <fpage>31</fpage>. <pub-id pub-id-type="doi">10.3390/robotics9020031</pub-id></citation>
</ref>
<ref id="B23">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jabbi</surname> <given-names>M.</given-names></name> <name><surname>Keysers</surname> <given-names>C.</given-names></name></person-group> (<year>2008</year>). <article-title>Inferior frontal gyrus activity triggers anterior insula response to emotional facial expressions</article-title>. <source>Emotion</source> <volume>8</volume>, <fpage>775</fpage>&#x02013;<lpage>780</lpage>. <pub-id pub-id-type="doi">10.1037/a0014194</pub-id><pub-id pub-id-type="pmid">19102588</pub-id></citation></ref>
<ref id="B24">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Joffily</surname> <given-names>M.</given-names></name> <name><surname>Coricelli</surname> <given-names>G.</given-names></name></person-group> (<year>2013</year>). <article-title>Emotional valence and the free-energy principle</article-title>. <source>PLoS Comput. Biol</source>. 9, e1003094. <pub-id pub-id-type="doi">10.1371/journal.pcbi.1003094</pub-id><pub-id pub-id-type="pmid">23785269</pub-id></citation></ref>
<ref id="B25">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Keysers</surname> <given-names>C.</given-names></name> <name><surname>Gazzola</surname> <given-names>V.</given-names></name></person-group> (<year>2014</year>). <article-title>Hebbian learning and predictive mirror neurons for actions, sensations and emotions</article-title>. <source>Philos. Trans. R. Soc. B Biol. Sci</source>. 369, 20130175. <pub-id pub-id-type="doi">10.1098/rstb.2013.0175</pub-id><pub-id pub-id-type="pmid">24778372</pub-id></citation></ref>
<ref id="B26">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Khalil</surname> <given-names>R.</given-names></name> <name><surname>Karim</surname> <given-names>A. A.</given-names></name> <name><surname>Khedr</surname> <given-names>E.</given-names></name> <name><surname>Moftah</surname> <given-names>M.</given-names></name> <name><surname>Moustafa</surname> <given-names>A. A.</given-names></name></person-group> (<year>2018a</year>). <article-title>Dynamic communications between gabaa switch, local connectivity, and synapses during cortical development: a computational study</article-title>. <source>Front. Cell Neurosci</source>. 12, 468. <pub-id pub-id-type="doi">10.3389/fncel.2018.00468</pub-id><pub-id pub-id-type="pmid">30618625</pub-id></citation></ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Khalil</surname> <given-names>R.</given-names></name> <name><surname>Moftah</surname> <given-names>M. Z.</given-names></name> <name><surname>Moustafa</surname> <given-names>A. A.</given-names></name></person-group> (<year>2017</year>). <article-title>The effects of dynamical synapses on firing rate activity: a spiking neural network model</article-title>. <source>Eur. J. Neurosci</source>. <volume>46</volume>, <fpage>2445</fpage>&#x02013;<lpage>2470</lpage>. <pub-id pub-id-type="doi">10.1111/ejn.13712</pub-id><pub-id pub-id-type="pmid">28921686</pub-id></citation></ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Khalil</surname> <given-names>R.</given-names></name> <name><surname>Moustafa</surname> <given-names>A. A.</given-names></name></person-group> (<year>2022</year>). <article-title>A neurocomputational model of creative processes</article-title>. <source>Neurosci Biobehav Rev</source>. <volume>137</volume>:<fpage>104656</fpage>. <pub-id pub-id-type="doi">10.1016/j.neubiorev.2022.104656</pub-id><pub-id pub-id-type="pmid">35430189</pub-id></citation></ref>
<ref id="B29">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Khalil</surname> <given-names>R.</given-names></name> <name><surname>Tindle</surname> <given-names>R.</given-names></name> <name><surname>Boraud</surname> <given-names>T.</given-names></name> <name><surname>Moustafa</surname> <given-names>A. A.</given-names></name> <name><surname>Karim</surname> <given-names>A. A.</given-names></name></person-group> (<year>2018b</year>). <article-title>Social decision making in autism: on the impact of mirror neurons, motor control, and imitative behaviors</article-title>. <source>CNS Neurosci. Therapeut</source>. <volume>24</volume>, <fpage>669</fpage>&#x02013;<lpage>676</lpage>. <pub-id pub-id-type="doi">10.1111/cns.13001</pub-id><pub-id pub-id-type="pmid">29963752</pub-id></citation></ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><collab>Kilner J. M. and Friston K. Frith C.</collab></person-group> (<year>2007</year>). <article-title>Predictive coding: an account of the mirror neuron system</article-title>. <source>Cogn. Process</source> <volume>8</volume>, <fpage>159</fpage>&#x02013;<lpage>166</lpage>. <pub-id pub-id-type="doi">10.1007/s10339-007-0170-2</pub-id><pub-id pub-id-type="pmid">17429704</pub-id></citation></ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lamm</surname> <given-names>C.</given-names></name> <name><surname>Decety</surname> <given-names>J.</given-names></name> <name><surname>Singer</surname> <given-names>T.</given-names></name></person-group> (<year>2011</year>). <article-title>Meta-analytic evidence for common and distinct neural networks associated with directly experienced pain and empathy for pain</article-title>. <source>Neuroimage</source> <volume>54</volume>, <fpage>2492</fpage>&#x02013;<lpage>2502</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2010.10.014</pub-id><pub-id pub-id-type="pmid">20946964</pub-id></citation></ref>
<ref id="B32">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Lanillos</surname> <given-names>P.</given-names></name> <name><surname>Cheng</surname> <given-names>G.</given-names></name></person-group> (<year>2018</year>). <article-title>&#x0201C;Adaptive robot body learning and estimation through predictive coding,&#x0201D;</article-title> in <source>2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)</source> (<publisher-loc>Madrid</publisher-loc>: <publisher-name>IEEE</publisher-name>), <fpage>4083</fpage>&#x02013;<lpage>4090</lpage>.</citation>
</ref>
<ref id="B33">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lee</surname> <given-names>H. S.</given-names></name> <name><surname>Kang</surname> <given-names>B. Y.</given-names></name></person-group> (<year>2020</year>). <article-title>Continuous emotion estimation of facial expressions on jaffe and ck&#x0002B; datasets for human-robot interaction</article-title>. <source>Intell. Serv. Robotics</source> <volume>13</volume>, <fpage>15</fpage>&#x02013;<lpage>27</lpage>. <pub-id pub-id-type="doi">10.1007/s11370-019-00301-x</pub-id></citation>
</ref>
<ref id="B34">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Leite</surname> <given-names>I.</given-names></name> <name><surname>Castellano</surname> <given-names>G.</given-names></name> <name><surname>Pereira</surname> <given-names>A.</given-names></name></person-group> (<year>2014</year>). <article-title>Empathic robots for long-term interaction</article-title>. <source>Int. J. of Soc. Robotics</source> <volume>6</volume>, <fpage>329</fpage>&#x02013;<lpage>341</lpage>. <pub-id pub-id-type="doi">10.1007/s12369-014-0227-1</pub-id></citation>
</ref>
<ref id="B35">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lerner</surname> <given-names>J. S.</given-names></name> <name><surname>Li</surname> <given-names>Y.</given-names></name> <name><surname>Valdesolo</surname> <given-names>P.</given-names></name> <name><surname>Kassam</surname> <given-names>K. S.</given-names></name></person-group> (<year>2015</year>). <article-title>Emotion and decision making</article-title>. <source>Ann. Rev. Psychol</source>. <volume>66</volume>, <fpage>799</fpage>&#x02013;<lpage>823</lpage>. <pub-id pub-id-type="doi">10.1146/annurev-psych-010213-115043</pub-id><pub-id pub-id-type="pmid">25251484</pub-id></citation></ref>
<ref id="B36">
<citation citation-type="web"><person-group person-group-type="author"><name><surname>Lou</surname> <given-names>A</given-names></name></person-group> (<year>2011</year>). <source>Empathy and Sympathy in Ethics. Internet Encyclopedia of Philosophy</source>. Available online at: <ext-link ext-link-type="uri" xlink:href="http://www.iep.utm.edu/empsymp/">http://www.iep.utm.edu/empsymp/</ext-link> (accessed July 1, 2022).</citation>
</ref>
<ref id="B37">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>L&#x000F6;vheim</surname> <given-names>H</given-names></name></person-group> (<year>2012</year>). <article-title>A new three-dimensional model for emotions and monoamine neurotransmitters</article-title>. <source>Med. Hypotheses</source> <volume>78</volume>, <fpage>341</fpage>&#x02013;<lpage>348</lpage>. <pub-id pub-id-type="doi">10.1016/j.mehy.2011.11.016</pub-id><pub-id pub-id-type="pmid">22153577</pub-id></citation></ref>
<ref id="B38">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Malin</surname> <given-names>A.</given-names></name> <name><surname>Jakob</surname> <given-names>E.</given-names></name> <name><surname>Eric</surname> <given-names>M. H.</given-names></name></person-group> (<year>2011</year>). <article-title>A comparison of empathy for humans and empathy for animals</article-title>. <source>Anthrozo&#x000F6;s</source> <volume>24</volume>, <fpage>369</fpage>&#x02013;<lpage>377</lpage>. <pub-id pub-id-type="doi">10.2752/175303711X13159027359764</pub-id></citation>
</ref>
<ref id="B39">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Mancini</surname> <given-names>C.</given-names></name> <name><surname>Falciati</surname> <given-names>L.</given-names></name> <name><surname>Maioli</surname> <given-names>C.</given-names></name> <name><surname>Mirabella</surname> <given-names>G.</given-names></name></person-group> (<year>2020</year>). <article-title>Threatening facial expressions impact goal-directed actions only if task-relevant</article-title>. <source>Brain Sci</source>. 10, 794. <pub-id pub-id-type="doi">10.3390/brainsci10110794</pub-id><pub-id pub-id-type="pmid">33138170</pub-id></citation></ref>
<ref id="B40">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mancini</surname> <given-names>C.</given-names></name> <name><surname>Falciati</surname> <given-names>L.</given-names></name> <name><surname>Maioli</surname> <given-names>C.</given-names></name> <name><surname>Mirabella</surname> <given-names>G.</given-names></name></person-group> (<year>2022</year>). <article-title>Happy facial expressions impair inhibitory control with respect to fearful facial expressions but only when task-relevant</article-title>. <source>Emotion</source> <volume>22</volume>, <fpage>142</fpage>&#x02013;<lpage>152</lpage>. <pub-id pub-id-type="doi">10.1037/emo0001058</pub-id><pub-id pub-id-type="pmid">34968143</pub-id></citation></ref>
<ref id="B41">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>McGreyor</surname> <given-names>S.</given-names></name> <name><surname>Baltieri</surname> <given-names>M.</given-names></name> <name><surname>Buckley</surname> <given-names>C. L.</given-names></name></person-group> (<year>2015</year>). <article-title>A minimal active interference agent</article-title>. <source>arXiv [Preprint]</source>. arXiv: 1503.04187. <pub-id pub-id-type="doi">10.48550/ARXIV.1503.04187</pub-id></citation>
</ref>
<ref id="B42">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Melzack</surname> <given-names>R</given-names></name></person-group> (<year>2001</year>). <article-title>Pain and the neuromatrix in the brain</article-title>. <source>J. Dent. Educ</source>. <volume>65</volume>, <fpage>1378</fpage>&#x02013;<lpage>1382</lpage>. <pub-id pub-id-type="doi">10.1002/j.0022-0337.2001.65.12.tb03497.x</pub-id><pub-id pub-id-type="pmid">25855820</pub-id></citation></ref>
<ref id="B43">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Mirabella</surname> <given-names>G</given-names></name></person-group> (<year>2018</year>). <article-title>The weight of emotions in decision-making: How fearful and happy facial stimuli modulate action readiness of goal-directed actions</article-title>. <source>Front. Psychol</source>. 9, 1334. <pub-id pub-id-type="doi">10.3389/fpsyg.2018.01334</pub-id><pub-id pub-id-type="pmid">30116211</pub-id></citation></ref>
<ref id="B44">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Mirabella</surname> <given-names>G.</given-names></name> <name><surname>Grassi</surname> <given-names>M.</given-names></name> <name><surname>Mezzarobba</surname> <given-names>S.</given-names></name> <name><surname>Bernardis</surname> <given-names>P.</given-names></name></person-group> (<year>2022</year>). <article-title>Angry and happy expressions affect forward gait initiation only when task relevant</article-title>. <source>Emotion</source>. <pub-id pub-id-type="doi">10.1037/emo0001112</pub-id><pub-id pub-id-type="pmid">35588387</pub-id></citation></ref>
<ref id="B45">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Morosan</surname> <given-names>P.</given-names></name> <name><surname>Rademacher</surname> <given-names>J.</given-names></name> <name><surname>Schleicher</surname> <given-names>A.</given-names></name> <name><surname>Amunts</surname> <given-names>K.</given-names></name> <name><surname>Schormann</surname> <given-names>T.</given-names></name> <name><surname>Zilles</surname> <given-names>K.</given-names></name></person-group> (<year>2001</year>). <article-title>Human primary auditory cortex: cytoarchitectonic subdivisions and mapping into a spatial reference system</article-title>. <source>Neuroimage</source> <volume>13</volume>, <fpage>684</fpage>&#x02013;<lpage>701</lpage>. <pub-id pub-id-type="doi">10.1006/nimg.2000.0715</pub-id><pub-id pub-id-type="pmid">11305897</pub-id></citation></ref>
<ref id="B46">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mukamel</surname> <given-names>R.</given-names></name> <name><surname>Ekstrom</surname> <given-names>A.</given-names></name> <name><surname>Kaplan</surname> <given-names>J.</given-names></name> <name><surname>Iacoboni</surname> <given-names>M.</given-names></name> <name><surname>Fried</surname> <given-names>I.</given-names></name></person-group> (<year>2010</year>). <article-title>Single-neuron responses in humans during execution and observation of actions</article-title>. <source>Curr. Biol</source>. <volume>20</volume>, <fpage>750</fpage>&#x02013;<lpage>756</lpage>. <pub-id pub-id-type="doi">10.1016/j.cub.2010.02.045</pub-id><pub-id pub-id-type="pmid">20381353</pub-id></citation></ref>
<ref id="B47">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Porreca</surname> <given-names>F.</given-names></name> <name><surname>Navratilova</surname> <given-names>E.</given-names></name></person-group> (<year>2017</year>). <article-title>Reward, motivation and emotion of pain and its relief</article-title>. <source>Pain</source> <volume>158</volume>(<supplement>Suppl. 1</supplement>), S43. <pub-id pub-id-type="doi">10.1097/j.pain.0000000000000798</pub-id><pub-id pub-id-type="pmid">28106670</pub-id></citation></ref>
<ref id="B48">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Preston</surname> <given-names>S.</given-names></name> <name><surname>de Waal</surname> <given-names>F.</given-names></name></person-group> (<year>2017</year>). <article-title>Only the pam explains the personalized nature of empathy</article-title>. <source>Nat. Rev. Neurosci</source>. 18, 769. <pub-id pub-id-type="doi">10.1038/nrn.2017.140</pub-id><pub-id pub-id-type="pmid">29097789</pub-id></citation></ref>
<ref id="B49">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ramstead</surname> <given-names>M. J. D.</given-names></name> <name><surname>Badcock</surname> <given-names>P. B.</given-names></name> <name><surname>Friston</surname> <given-names>K. J.</given-names></name></person-group> (<year>2018</year>). <article-title>Answering schr&#x000F6;dinger&#x00027;s question: a free-energy formulation</article-title>. <source>Phys. Life Rev</source>. <volume>24</volume>, <fpage>1</fpage>&#x02013;<lpage>16</lpage>. <pub-id pub-id-type="doi">10.1016/j.plrev.2017.09.001</pub-id><pub-id pub-id-type="pmid">29029962</pub-id></citation></ref>
<ref id="B50">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Reep</surname> <given-names>R. L.</given-names></name> <name><surname>Finlay</surname> <given-names>B. L.</given-names></name> <name><surname>Darlington</surname> <given-names>R. B.</given-names></name></person-group> (<year>2007</year>). <article-title>The limbic system in mammalian brain evolution</article-title>. <source>Brain Behav. Evol</source>. <volume>70</volume>, <fpage>57</fpage>&#x02013;<lpage>70</lpage>. <pub-id pub-id-type="doi">10.1159/000101491</pub-id><pub-id pub-id-type="pmid">17409735</pub-id></citation></ref>
<ref id="B51">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rizzolatti</surname> <given-names>G.</given-names></name> <name><surname>Luppino</surname> <given-names>G.</given-names></name></person-group> (<year>2001</year>). <article-title>The cortical motor system</article-title>. <source>Neuron</source> <volume>31</volume>, <fpage>889</fpage>&#x02013;<lpage>901</lpage>. <pub-id pub-id-type="doi">10.1016/S0896-6273(01)00423-8</pub-id><pub-id pub-id-type="pmid">11580891</pub-id></citation></ref>
<ref id="B52">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rizzolatti</surname> <given-names>G.</given-names></name> <name><surname>Sinigaglia</surname> <given-names>C.</given-names></name></person-group> (<year>2016</year>). <article-title>The mirror mechanism: a basic principle of brain function</article-title>. <source>Nat. Rev. Neurosci</source>. <volume>17</volume>, <fpage>757</fpage>&#x02013;<lpage>765</lpage>. <pub-id pub-id-type="doi">10.1038/nrn.2016.135</pub-id><pub-id pub-id-type="pmid">27761004</pub-id></citation></ref>
<ref id="B53">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Shamay-Tsoory</surname> <given-names>S. G.</given-names></name> <name><surname>Judith</surname> <given-names>A. P.</given-names></name> <name><surname>Daniella</surname> <given-names>P.</given-names></name></person-group> (<year>2009</year>). <article-title>Two systems for empathy: a double dissociation between emotional and cognitive empathy in inferior frontal gyrus versus ventromedial prefrontal lesions</article-title>. <source>Brain</source> <volume>132</volume>(<issue>Pt 3</issue>), <fpage>617</fpage>&#x02013;<lpage>627</lpage>. <pub-id pub-id-type="doi">10.1093/brain/awn279</pub-id><pub-id pub-id-type="pmid">18971202</pub-id></citation></ref>
<ref id="B54">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Soujanya</surname> <given-names>P.</given-names></name> <name><surname>Erik</surname> <given-names>C.</given-names></name> <name><surname>Rajiv</surname> <given-names>B.</given-names></name> <name><surname>Amir</surname> <given-names>H.</given-names></name></person-group> (<year>2017</year>). <article-title>A review of affective computing: From unimodal analysis to multimodal fusion</article-title>. <source>Inf. Fusion</source> <volume>37</volume>, <fpage>98</fpage>&#x02013;<lpage>125</lpage>. <pub-id pub-id-type="doi">10.1016/j.inffus.2017.02.003</pub-id></citation>
</ref>
<ref id="B55">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tal</surname> <given-names>D.</given-names></name> <name><surname>Schwartz</surname> <given-names>E. L.</given-names></name></person-group> (<year>1997</year>). <article-title>Computing with the leaky integrate-and-fire neuron: Logarithmic computation and multiplication</article-title>. <source>Neural Comput</source>. <volume>9</volume>, <fpage>305</fpage>&#x02013;<lpage>318</lpage>. <pub-id pub-id-type="doi">10.1162/neco.1997.9.2.305</pub-id><pub-id pub-id-type="pmid">9117905</pub-id></citation></ref>
<ref id="B56">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Waal</surname> <given-names>F.</given-names></name> <name><surname>Preston</surname> <given-names>S.</given-names></name></person-group> (<year>2017</year>). <article-title>Mammalian empathy: behavioural manifestations and neural basis</article-title>. <source>Nat. Rev.Neurosci</source>. <volume>18</volume>, <fpage>498</fpage>&#x02013;<lpage>509</lpage>. <pub-id pub-id-type="doi">10.1038/nrn.2017.72</pub-id><pub-id pub-id-type="pmid">28655877</pub-id></citation></ref>
<ref id="B57">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Walters</surname> <given-names>E. T.</given-names></name> <name><surname>Williams</surname> <given-names>A. C. d. C.</given-names></name></person-group> (<year>2019</year>). <article-title>Evolution of mechanisms and behaviour important for pain</article-title>. <source>Philos. Trans. R. Soc. B Biol. Sci</source>. 374, 20190275. <pub-id pub-id-type="doi">10.1098/rstb.2019.0275</pub-id><pub-id pub-id-type="pmid">31544614</pub-id></citation></ref>
<ref id="B58">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Watanabe</surname> <given-names>A.</given-names></name> <name><surname>Ogino</surname> <given-names>M.</given-names></name> <name><surname>Asada</surname> <given-names>M.</given-names></name></person-group> (<year>2007</year>). <article-title>Mapping facial expression to internal states based on intuitive parenting</article-title>. <source>J. Rob. Mechatron</source>. <volume>19</volume>, <fpage>315</fpage>&#x02013;<lpage>323</lpage>. <pub-id pub-id-type="doi">10.20965/jrm.2007.p0315</pub-id></citation>
</ref>
<ref id="B59">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Wiech</surname> <given-names>K.</given-names></name> <name><surname>Tracey</surname> <given-names>I.</given-names></name></person-group> (<year>2013</year>). <article-title>Pain, decisions, and actions: a motivational perspective</article-title>. <source>Front. Neurosci</source>. 7, 46. <pub-id pub-id-type="doi">10.3389/fnins.2013.00046</pub-id><pub-id pub-id-type="pmid">23565073</pub-id></citation></ref>
<ref id="B60">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Woo</surname> <given-names>J.</given-names></name> <name><surname>Botzheim</surname> <given-names>J.</given-names></name> <name><surname>Kubota</surname> <given-names>N.</given-names></name></person-group> (<year>2017</year>). <article-title>Emotional empathy model for robot partners using recurrent spiking neural network model with hebbian-lms learning</article-title>. <source>Malaysian J. Comput. Sci</source>. <volume>30</volume>, <fpage>258</fpage>&#x02013;<lpage>285</lpage>. <pub-id pub-id-type="doi">10.22452/mjcs.vol30no4.1</pub-id></citation>
</ref>
<ref id="B61">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Yamada</surname> <given-names>H</given-names></name></person-group> (<year>1993</year>). <article-title>Visual information for categorizing facial expression of emotions</article-title>. <source>Appl. Cogn. Psychol</source>. <volume>7</volume>, <fpage>257</fpage>&#x02013;<lpage>270</lpage>. <pub-id pub-id-type="doi">10.1002/acp.2350070309</pub-id></citation>
</ref>
<ref id="B62">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Zhao</surname> <given-names>F.</given-names></name> <name><surname>Zeng</surname> <given-names>Y.</given-names></name> <name><surname>Xu</surname> <given-names>B.</given-names></name></person-group> (<year>2018</year>). <article-title>A brain-inspired decision-making spiking neural network and its application in unmanned aerial vehicle</article-title>. <source>Front. Neurorobot</source>. 12, 56. <pub-id pub-id-type="doi">10.3389/fnbot.2018.00056</pub-id><pub-id pub-id-type="pmid">30258359</pub-id></citation></ref>
<ref id="B63">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Zheng</surname> <given-names>M.</given-names></name> <name><surname>She</surname> <given-names>Y.</given-names></name> <name><surname>Liu</surname> <given-names>F.</given-names></name> <name><surname>Chen</surname> <given-names>J.</given-names></name> <name><surname>Shu</surname> <given-names>Y.</given-names></name> <name><surname>XiaHou</surname> <given-names>J.</given-names></name></person-group> (<year>2019</year>). <article-title>&#x0201C;Babebay-a companion robot for children based on multimodal affective computing,&#x0201D;</article-title> in <source>2019 14th ACM/IEEE International Conference on Human-Robot Interaction (HRI)</source> (<publisher-loc>Daegu</publisher-loc>: <publisher-name>IEEE</publisher-name>), <fpage>604</fpage>&#x02013;<lpage>605</lpage>.</citation>
</ref>
<ref id="B64">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zipser</surname> <given-names>K.</given-names></name> <name><surname>Lamme</surname> <given-names>V. A. F.</given-names></name> <name><surname>Schiller</surname> <given-names>P. H.</given-names></name></person-group> (<year>1996</year>). <article-title>Contextual modulation in primary visual cortex</article-title>. <source>J. Neurosci</source>. <volume>16</volume>, <fpage>7376</fpage>&#x02013;<lpage>7389</lpage>. <pub-id pub-id-type="doi">10.1523/JNEUROSCI.16-22-07376.1996</pub-id></citation>
</ref>
</ref-list>
</back>
</article>