<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    ijis
   </journal-id>
   <journal-title-group>
    <journal-title>
     International Journal of Intelligence Science
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2163-0283
   </issn>
   <issn publication-format="print">
    2163-0356
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/ijis.2025.151003
   </article-id>
   <article-id pub-id-type="publisher-id">
    ijis-140420
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Computer Science 
     </subject>
     <subject>
       Communications
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    An Emotion Model for Predator-Prey Bird Behavior
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Ana Lilia
      </surname>
      <given-names>
       Laureano-Cruces
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       André
      </surname>
      <given-names>
       Navarro-Bárcenas
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff2"> 
      <sup>2</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Ricardo
      </surname>
      <given-names>
       Céspedes-Valle
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff2"> 
      <sup>2</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Martha
      </surname>
      <given-names>
       Mora-Torres
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Lourdes
      </surname>
      <given-names>
       Sánchez-Guerrero
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
   </contrib-group> 
   <aff id="aff1">
    <addr-line>
     aDepartamento de Sistemas, Universidad Autónoma Metropolitana-Azcapotzalco, Ciudad de México, México
    </addr-line> 
   </aff> 
   <aff id="aff2">
    <addr-line>
     aIngeniería en Computación, Universidad Autónoma Metropolitana-Azcapotzalco, Ciudad de México, México
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     13
    </day> 
    <month>
     01
    </month>
    <year>
     2025
    </year>
   </pub-date> 
   <volume>
    15
   </volume> 
   <issue>
    01
   </issue>
   <fpage>
    56
   </fpage>
   <lpage>
    78
   </lpage>
   <history>
    <date date-type="received">
     <day>
      14,
     </day>
     <month>
      December
     </month>
     <year>
      2024
     </year>
    </date>
    <date date-type="published">
     <day>
      23,
     </day>
     <month>
      December
     </month>
     <year>
      2024
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      23,
     </day>
     <month>
      December
     </month>
     <year>
      2024
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    One of the main objectives of artificial intelligence lies in the simulation of the behavior of living organisms; emotions are a fundamental part of life, and they cannot be left aside when simulating behavior. In this research, software is developed that simulates the behavior of birds with different characteristics. The latter interacts by considering different stimuli from the environment (external), and the internal state of the subject (objectives). To achieve this, a model of birds in the role of prey and predators is developed that focuses on the study of the interaction between these organisms that exhibit specific behaviors in their environment. This project is a seminal work that aims to represent the emotions of birds, and the latter caused by stimuli from a dynamic environment.
   </abstract>
   <kwd-group> 
    <kwd>
     Predator-Prey Bird Behavior
    </kwd> 
    <kwd>
      Affective-Cognitive Structure
    </kwd> 
    <kwd>
      Computer Simulation Multi-Agent Systems
    </kwd> 
    <kwd>
      Mental Models
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>In this research, the different reactions of prey and predator birds are explored, considering the specific characteristics of each one and its environment. This work has its beginnings in an experiment that was carried out with various types of pets (bird, turtle and dog) <xref ref-type="bibr" rid="scirp.140420-1">
     [1]
    </xref>, where the foundations of emotions are laid as a consequence of the degree of consciousness that they can have according to their objectives and the stimuli coming from different environments. The above applies the five axioms of consciousness of Igor Alexander <xref ref-type="bibr" rid="scirp.140420-2">
     [2]
    </xref>.</p>
   <p>The software is based on the artificial intelligence stream, where the Multi-Agent Systems (MAS) paradigm is used to simulate the interaction between birds. The above is to achieve intelligent behavior coordinated between a collection of autonomous agents. The latter coordinate their knowledge, objectives, skills, and plans to execute an action or solve a problem <xref ref-type="bibr" rid="scirp.140420-3">
     [3]
    </xref>-<xref ref-type="bibr" rid="scirp.140420-5">
     [5]
    </xref> related to the interaction of birds with their environment, including within this, other birds of their species and other species. The bird flight behavior algorithm is based on the flocking algorithm used in bird simulation, which was enriched by including emotions and different roles in bird behavior <xref ref-type="bibr" rid="scirp.140420-6">
     [6]
    </xref>.</p>
   <p>This project focuses on exploring fields of study such as ethology and cognitive psychology, synthetic emotions, and MAS applied to the interaction between birds: prey and predators <xref ref-type="bibr" rid="scirp.140420-6">
     [6]
    </xref> <xref ref-type="bibr" rid="scirp.140420-7">
     [7]
    </xref>.</p>
   <p>According to <xref ref-type="bibr" rid="scirp.140420-8">
     [8]
    </xref>, all behavior has motivation as its main driving force and this originates from various causes; one of them is emotions and these are the ones that determine processes as important as decision-making to show rational behaviors.</p>
   <p>This research aims to provide an argument about the different circumstances and decisions that allow for better performance, according to the objectives of each subject.</p>
   <p>To achieve this, the theory related to the cognitive structure of emotions is used as a theoretical framework, specifically the theory developed by Ortony, Clore, and Collins <xref ref-type="bibr" rid="scirp.140420-9">
     [9]
    </xref>, known as the OCC Theory. This theory allows us to formalize the algorithms related to the emotions that intervene in a behavior that interacts with that of other organisms.</p>
   <p>Given that affects are the cognitive representation of emotions and are underlain by substantial information that is considered in the decision-making process. It is important to consider it to represent the behavior of any animated organism.</p>
  </sec><sec id="s2">
   <title>2. Simulation of Behaviors and Their Environments</title>
   <p>A simulation is a virtual representation of a real-world system or process using software and mathematical models. Its main objective is to imitate the behavior and interactions of the elements of the real system in order to study, understand or predict its operation in different situations.</p>
   <p>Computer simulations are used to study the dynamic behavior of objects or systems in response to conditions that cannot be easily or safely applied in real life. Simulations are beneficial for allowing observers to measure and predict. This leads us to ask how the functioning of an entire system might be affected by altering individual components of this system <xref ref-type="bibr" rid="scirp.140420-10">
     [10]
    </xref>.</p>
   <p>Within this project, simulation not only allows the study of individual behavior of prey and predator birds, but also facilitates the observation of how these interactions are affected by factors such as the availability of food, shelters, and changes in the environment. Furthermore, using OCC Theory, it is possible to analyze how emotions influence the decisions and actions of the simulated birds.</p>
  </sec><sec id="s3">
   <title>3. Ethology of Prey Birds</title>
   <p>From an ethological perspective, the behavior of birds of prey <xref ref-type="bibr" rid="scirp.140420-11">
     [11]
    </xref> has a series of strategies to survive in environments where they constantly face the threat of predators. Some key aspects of their ethology include:</p>
  </sec><sec id="s4">
   <title>4. Ethology of Predatory Birds</title>
   <p>Ethology is a science based on the observation of animal behavior to discern the objectives of their different behaviors in the environments. According to Charles Darwin “the mental difference between man and the higher animals, though great, is certainly one of scale and not of kind” <xref ref-type="bibr" rid="scirp.140420-12">
     [12]
    </xref>. Based on the above, it is considered that cognition focuses on acquiring knowledge and intelligence on the ability to apply it successfully.</p>
   <p>According to <xref ref-type="bibr" rid="scirp.140420-12">
     [12]
    </xref>, it is undeniable that humans are animals, so when we study the behaviors of other animals, we are not comparing separate intelligence but rather considering variation within a single category.</p>
   <p>Based on the above points, the simulation experiment is based on considering bird cognition as a variant of animal cognition, which of course, includes human beings. From an ethological point of view, predatory birds <xref ref-type="bibr" rid="scirp.140420-13">
     [13]
    </xref> exhibit a unique set of strategies that allow them to capture prey and ensure their survival. Some important aspects of their ethology include:</p>
  </sec><sec id="s5">
   <title>5. OCC Theory</title>
   <p>The OCC theory <xref ref-type="bibr" rid="scirp.140420-9">
     [9]
    </xref> is a cognitive psychology theory that focuses on understanding and studying emotions and how they affect decision-making and perception. It was developed by two cognitive psychologists and a cognitive science computer scientist Andrew Ortony, Gerald Clore, and Allan Collins in the 1980s. <xref ref-type="fig" rid="fig1">
     Figure 1
    </xref> graphically summarizes the OCC Theory. For more information on the OCC Theory, consult the references included in this article.</p>
   <fig id="fig1" position="float">
    <label>Figure 1</label>
    <caption>
     <title>Figure 1. OCC Theory. Own elaboration, based on <xref ref-type="bibr" rid="scirp.140420-9">
       [9]
      </xref>.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId14.jpeg?20250225050638" />
   </fig>
   <p>The assessment structure for decision making according to OCC Theory is made up of the following elements:</p>
   <p>1) Macrostructure of assessment of the knowledge representation system.</p>
   <p>2) Central/global variables that allow giving value to the logical object (events, agents, or objects).</p>
   <p>The central variables of intensity (reactions) of the OCC theory are the following:</p>
   <p>A) Desirability: the intensity of emotions about events correlates with the degree of desirability.</p>
   <p>B) Plausibility (to abide or to violate): plausibility depends on the agent’s effort or lack of effort (control of action, responsibility) to comply with or violate these norms, and may produce the actions listed below.</p>
   <p>C) Ability to attract: the ability to attract does not imply an understanding of its meaning (contrary to desirability, which considers consequences). This is why it is significant in emotions with low cognitive content.</p>
   <p>The global variables used in OCC theory are:</p>
   <p>A) Sense of reality: the degree to which the event, agent, or object underlying the affective reaction appears real to the person experiencing the emotion.</p>
   <p>B) Proximity: attempts to reflect the psychological proximity of the event, agent or object that induces the emotion.</p>
   <p>C) Unexpected quality: affects the control that one has over the environment.</p>
   <p>D) Excitement: the previously existing level affects the intensity of the emotions.</p>
   <p>Three types of goals are considered within this theory:</p>
   <p>Active pursuit goals</p>
   <p>Goals of interest</p>
   <p>Fill goals</p>
  </sec><sec id="s6">
   <title>6. Multi-Agent Architecture</title>
   <p>Distributed artificial intelligence (DAI) is used for distributed problem solving. It consists of dividing modules that cooperate, and the knowledge about the problem is separated and/or shared between them <xref ref-type="bibr" rid="scirp.140420-14">
     [14]
    </xref>-<xref ref-type="bibr" rid="scirp.140420-16">
     [16]
    </xref>.</p>
   <p>Hence, intelligent behavior is achieved through coordinating their knowledge, objectives, skills, and plans to execute an action or complete a task.</p>
   <p>Depending on the different forms of communication between agents, we have systems:</p>
   <p>1) Strongly coupled, where communication takes place through a shared memory.</p>
   <p>2) Loosely coupled, where communication is through message passing.</p>
   <p>In this type of system, three factors influence the choice of a particular organization: (1) the complexity of the problem that involves the number of agents, (2) the imprecision and uncertainty, (3) the eventual existence of a decomposition of the problem. In the case study, it was decided to use DAI given the complexity of the problem since it demands local points of view, which allow for a rapid transition between perception and action.</p>
   <p>Design based on a local view is a promising approach to solving complex problems. It is easy to obtain results by avoiding the difficulties of trying to solve a problem, that is, results emerge as a result of local interactions. Systems must be able to adapt to dynamic environments. In the context of a Multi-Agent system, it is assumed that reasoning is always local due to the inherent distribution. This allows agents to appear and disappear during execution.</p>
   <p>The design of these architectures is influenced by the behavioral psychology theory Brooks, Chapman and Agree, Kelabling, Maes, Ferber, Arkin mentioned in <xref ref-type="bibr" rid="scirp.140420-15">
     [15]
    </xref>. This class of agents is also known as: (1) behavior-based, (2) located (immersive), and (3) reactive.</p>
   <p>The dynamics of action-selection for this type of system emerges based on two basic aspects: (1) the conditions of the environment, and (2) the internal objectives of each agent. Its main characteristics involve dynamic interaction with the environment, and internal mechanisms that allow working with limited resources and incomplete information hence an intelligent agent can exhibit the following behaviors:</p>
   <p>According to <xref ref-type="bibr" rid="scirp.140420-16">
     [16]
    </xref>-<xref ref-type="bibr" rid="scirp.140420-19">
     [19]
    </xref>, a Multi-Agent system contains several agents with the following characteristics:</p>
  </sec><sec id="s7">
   <title>7. Project Development</title>
   <p>The project consists of three essential modules that are described below and their operation is summarized in <xref ref-type="fig" rid="fig2">
     Figure 2
    </xref>.</p>
   <fig id="fig2" position="float">
    <label>Figure 2</label>
    <caption>
     <title>Figure 2. Use case diagram.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId15.jpeg?20250225050643" />
   </fig>
   <p>Capture module: this module is responsible for obtaining the simulation parameters that will be entered by the user, such as the number of birds, the environmental conditions and the type of prey or predator birds present in the simulation.</p>
   <p>Representation tools module: this module is responsible for modeling the interaction of prey and predator birds in the environment that surrounds them. OCC theory is used to represent the decision-making of birds regarding their behavior based on the information perceived in the capture module. It is also responsible for defining and executing the specific behaviors of the agents in response to the decisions made using the flocking algorithm.</p>
   <p>Simulations module: its main function is to graphically show, through simulations, the interaction of prey and predator birds based on the model established in the representation tools module.</p>
   <sec id="s7_1">
    <title>Technical Specification</title>
    <p>The project was developed in Java using the Processing IDE, which is specifically</p>
    <p>designed for creating interactive design projects, as it provides predefined functions and classes that allow working with images, sound, animations, vector graphics, and other visual elements. In addition, Processing allows you to run projects directly in the IDE, which facilitates quick visualization of results. To address the different use cases, the project consists of the following modules:</p>
    <p>In the case of the predator, algorithms were used to model its behavior in front of prey. An area is defined in which a sign of nearby prey is randomly searched for. The situation is then analyzed in order to determine the possibility of attacking the prey (in a flock or alone). This allows the pursuit and capture of the prey to begin.</p>
   </sec>
  </sec><sec id="s8">
   <title>8. Mental Models</title>
   <p>According to <xref ref-type="bibr" rid="scirp.140420-20">
     [20]
    </xref>, a cognitive model comprises the point of view of the animal behavior in question within its environment and is limited to a specific activity. Hence, the formality of mental models to be able to recreate reactive behavior through precise algorithms. Mental models allow us to represent the behaviors we want to incorporate in the different systems involving artificial intelligence. In the case study, we refer to the behaviors of birds in their two roles as predator and prey.</p>
   <p>In this work, a mental model corresponds to a certain behavior that will come into action when a stimulus is presented, allowing it to interact with the dynamic and random environment on any given day. These mental models are algorithms represented through control structures and first-order logic.</p>
   <p>In some cognitive areas, it is possible to formulate theories of competence, which specify what has to be calculated, when, and why. Later, based on these theories, develop an algorithm that represents it. This area of study is known as the theory of competence and is carried out based on mental models.</p>
   <sec id="s8_1">
    <title>8.1. Prey Bird</title>
    <p>The behavior of the bird-prey is represented by two mental models that characterize its conduct.</p>
    <p>1) Surviving, represents the main behavior (<xref ref-type="fig" rid="fig3">
      Figure 3
     </xref>).</p>
    <p>2) Satisfying Needs, is a complementary behavior (<xref ref-type="fig" rid="fig4">
      Figure 4
     </xref>).</p>
    <fig id="fig3" position="float">
     <label>Figure 3</label>
     <caption>
      <title>Figure 3. Survive.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId16.jpeg?20250225050650" />
    </fig>
    <fig id="fig4" position="float">
     <label>Figure 4</label>
     <caption>
      <title>Figure 4. Satisfying needs.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId17.jpeg?20250225050650" />
    </fig>
    <p>Six emotions are related to this behavior, which will be reflected in the affective-cognitive structure (<xref ref-type="fig" rid="fig5">
      Figure 5
     </xref>). These are: 1) fear, 2) anxiety, 3) relief, 4) satisfaction, 5) worry, 6) security.</p>
    <fig id="fig5" position="float">
     <label>Figure 5</label>
     <caption>
      <title>Figure 5. Affective-cognitive structure of the pray bird.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId18.jpeg?20250225050650" />
    </fig>
   </sec>
   <sec id="s8_2">
    <title>8.2. Predatory Bird</title>
    <p>The behavior of the predatory bird is represented by three mental models that characterize its conduct.</p>
    <p>1) Daily, represents the main behavior (<xref ref-type="fig" rid="fig6">
      Figure 6
     </xref>).</p>
    <p>2) Hunting, is a complementary behavior (<xref ref-type="fig" rid="fig7">
      Figure 7
     </xref>).</p>
    <p>3) Facing Predators, is a complementary behavior (<xref ref-type="fig" rid="fig8">
      Figure 8
     </xref>).</p>
    <fig id="fig6" position="float">
     <label>Figure 6</label>
     <caption>
      <title>Figure 6. Daily.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId19.jpeg?20250225050653" />
    </fig>
    <fig id="fig7" position="float">
     <label>Figure 7</label>
     <caption>
      <title>Figure 7. Hunting behavior.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId20.jpeg?20250225050651" />
    </fig>
    <fig id="fig8" position="float">
     <label>Figure 8</label>
     <caption>
      <title>Figure 8. Facing predators behavior.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId21.jpeg?20250225050652" />
    </fig>
    <p>Four emotions are related to this behavior, which will be reflected in the affective-cognitive structure (<xref ref-type="fig" rid="fig9">
      Figure 9
     </xref>). These are: 1) anxiety, 2) satisfaction, 3) frustration, 4) aggression.</p>
    <p>Based on what was explained in Sections 5 and 6, the affective-cognitive structure of the two roles of prey-predator birds is elaborated. They are represented in <xref ref-type="fig" rid="fig4">
      Figure 4
     </xref> and <xref ref-type="fig" rid="fig9">
      Figure 9
     </xref>, respectively.</p>
   </sec>
  </sec><sec id="s9">
   <title>9. Multi-Agent System</title>
   <p>In this project, a Multi-Agent structure is implemented that effectively represents a dynamic virtual ecosystem. This system includes multiple agents represented in each of the roles: prey-predator birds, food and shelters. Through the interaction of these agents, a precise and detailed representation of the behaviors and relationships between the different entities in the simulated ecosystem is achieved.</p>
   <fig id="fig9" position="float">
    <label>Figure 9</label>
    <caption>
     <title>Figure 9. Affective-cognitive structure of the predator bird.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId22.jpeg?20250225050655" />
   </fig>
   <p>Prey birds: birds of prey seek to survive in the simulated environment. They have behaviors such as searching for food, shelter, and flocks to increase their probability of survival. In addition, they are programmed to detect the presence of predatory birds and take evasive measures when they are in danger. They are represented by the following agents:</p>
   <p>Predator birds: they are the hunters of the ecosystem. Their main objective is to search for and hunt pray birds. Their behavior is based on the detection of prey, hunting and competition with other predatory birds for available resources. They are represented by the following agents:</p>
   <p>As for the environment, this is represented by food; these are essential resources for the survival of birds of prey. Refuges are safe areas where prey birds can hide from predators; they offer a place for birds to protect themselves and recover from risky situations.</p>
   <p>The Multi-Agent structure allows for dynamic interaction between these agents. Prey birds seek food and shelter, while predatory birds hunt and compete with each other.</p>
   <p>Prey birds may also seek the safety of shelters and form flocks to increase their collective protection.</p>
   <p>Each agent follows a set of rules and behaviors defined according to its function to show coherent behavior of birds in the ecosystem. That is, predatory birds may follow hunting strategies, while prey birds may have evasion patterns in response to the presence of predators. They are reactive agents interacting with a dynamic environment.</p>
  </sec><sec id="s10">
   <title>10. Examples of Artificial Ecosystem</title>
   <p>The main menu is shown below, where the initial parameters for performing the simulations will be obtained (<xref ref-type="fig" rid="fig10">
     Figure 10
    </xref>).</p>
   <p>This menu uses two sliding scales, better known in the computer field by their term in English sliders, to determine how many birds of each type will be initially found in the simulation. Where there can be a maximum of 100 prey birds and a maximum of 5 predatory birds. It also has three drop-down lists of options, better known in the computer field as combo boxes, where the parameters are determined: a) climate (sunny-cloudy), b) number of shelters: none, few (from 1 … 4), normal (from 5 … 8) or many (from 9 … 12), and c) amount of food that will exist at the beginning of the simulation: none, little (from 20 … 30), normal (from 31 … 40) or a lot (from 41 … 60). These will be displayed as a value is selected for each parameter, at the end a button will be displayed to start the simulation (<xref ref-type="fig" rid="fig11">
     Figure 11
    </xref>).</p>
   <fig id="fig10" position="float">
    <label>Figure 10</label>
    <caption>
     <title>Figure 10. Main menu.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId23.jpeg?20250225050657" />
   </fig>
   <fig id="fig11" position="float">
    <label>Figure 11</label>
    <caption>
     <title>Figure 11. Main menu with selected parameters.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId24.jpeg?20250225050657" />
   </fig>
   <p>The following images are used to simulate the flight of predatory birds (<xref ref-type="fig" rid="fig12">
     Figure 12
    </xref>).</p>
   <fig id="fig12" position="float">
    <label>Figure 12</label>
    <caption>
     <title>Figure 12. Movement of predatory birds.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId25.jpeg?20250225050657" />
   </fig>
   <p>The following arrangement of images is used to simulate the flight of birds of prey (<xref ref-type="fig" rid="fig13">
     Figure 13
    </xref>).</p>
   <fig id="fig13" position="float">
    <label>Figure 13</label>
    <caption>
     <title>Figure 13. Bird-prey movement.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId26.jpeg?20250225050657" />
   </fig>
   <p>Shelters, food and rain were represented in the program with the images shown in <xref ref-type="fig" rid="fig14">
     Figure 14
    </xref>.</p>
   <fig id="fig14" position="float">
    <label>Figure 14</label>
    <caption>
     <title>Figure 14. Elements of the environment.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId27.jpeg?20250225050657" />
   </fig>
   <p>During the execution of the program, one can have an environment with a sunny day, or a rainy day as shown in <xref ref-type="fig" rid="fig15">
     Figure 15
    </xref> and <xref ref-type="fig" rid="fig16">
     Figure 16
    </xref>, respectively.</p>
   <fig id="fig15" position="float">
    <label>Figure 15</label>
    <caption>
     <title>Figure 15. Sunny day.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId28.jpeg?20250225050657" />
   </fig>
   <fig id="fig16" position="float">
    <label>Figure 16</label>
    <caption>
     <title>Figure 16. Rainy day.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId29.jpeg?20250225050657" />
   </fig>
   <p>While it is raining, predatory birds remain wandering around, while prey seek to feel safe, either by staying in a flock or by seeking shelter, from which they will leave to return to their natural behavior once the rain has stopped, as shown in <xref ref-type="fig" rid="fig17">
     Figure 17
    </xref>.</p>
   <fig id="fig17" position="float">
    <label>Figure 17</label>
    <caption>
     <title>Figure 17. Prey birds leaving the refuge.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId30.jpeg?20250225050658" />
   </fig>
   <p>Certain statistics for predator birds can be displayed, such as their food level, speed, whether or not they are competing, and whether they are hunting or roaming, as shown in <xref ref-type="fig" rid="fig18">
     Figure 18
    </xref>.</p>
   <fig id="fig18" position="float">
    <label>Figure 18</label>
    <caption>
     <title>Figure 18. Predator Statistics.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId31.jpeg?20250225050658" />
   </fig>
   <p>When starting the program, a box is also displayed in the upper right corner that indicates general information about the simulation, such as the number of prey birds that have been hunted by predators, how many have starved to death, or how many predators have starved to death as shown in <xref ref-type="fig" rid="fig19">
     Figure 19
    </xref>.</p>
   <p>It is also possible to check the emotions felt by both prey and predatory birds at any time with the left mouse button, as shown in <xref ref-type="fig" rid="fig20">
     Figure 20
    </xref> and <xref ref-type="fig" rid="fig21">
     Figure 21
    </xref>, respectively.</p>
   <fig id="fig19" position="float">
    <label>Figure 19</label>
    <caption>
     <title>Figure 19. Simulation statistics.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId32.jpeg?20250225050658" />
   </fig>
   <fig id="fig20" position="float">
    <label>Figure 20</label>
    <caption>
     <title>Figure 20. Emotions of a prey bird.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId33.jpeg?20250225050658" />
   </fig>
  </sec><sec id="s11">
   <title>11. Analysis and Discussion of Results</title>
   <p>During the simulation development, we encountered several challenges that required ingenious solutions. One of the initial obstacles was the design of the classes and objects that would represent the birds in the simulation. To solve this, we carried out an exhaustive class design, defining the properties and methods needed for each one; which corresponds to the multi-agent architecture that represents the different elements (agents) that make up the behavior of prey and predator birds; as well as their environment.</p>
   <p>Interactions between birds also presented a challenge, as we had to manage how prey birds responded to the presence of predators or the weather, and how predators hunted or competed when they were close to each other. Establishing clear rules for these interactions turned out to be essential.</p>
   <fig id="fig21" position="float">
    <label>Figure 21</label>
    <caption>
     <title>Figure 21. Emotions of a predatory bird.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId34.jpeg?20250225050700" />
   </fig>
   <p>Another problem that arose was the logic behind knowing when behaviors such as searching for food or shelter should occur. To do this, we relied on our mental models and affective-cognitive structures to determine which emotions led to the execution of these behaviors.</p>
   <p>Performance also became a concern as the simulation grew in complexity and size. To optimize it, we applied techniques such as eliminating unnecessary calculations and using efficient data structures.</p>
   <p>This program could be used as a basis in the future to be explored with circumstances that were not considered for this specific program. Examples could be: bird reproduction, different ecosystems and climates, specific bird species, etc.</p>
   <sec id="s11_1">
    <title>Simulated Scenarios</title>
    <p>Within this project, it is considered that every 50 seconds of real time are equivalent to one day within the simulation. Another consideration is the level of food for each bird, which has a range from 0 to 100, where the value 100 represents that the bird is completely satisfied and, if it reaches the value 0, the bird dies of hunger.</p>
    <p>At the beginning of the simulation, initial parameters such as shelters and food are randomized within a specific range.</p>
    <p>For shelters:</p>
    <p>For food:</p>
    <p>According to bird ethologies <xref ref-type="bibr" rid="scirp.140420-15">
      [15]
     </xref> <xref ref-type="bibr" rid="scirp.140420-17">
      [17]
     </xref> <xref ref-type="bibr" rid="scirp.140420-18">
      [18]
     </xref>, prey birds, needing less energy to survive than predators, increase their food level more each time they eat, and they also spend less energy. For these reasons, within the program, a prey bird, assuming it starts with a food level of 100, can survive 2 days (100 seconds in real time) until its food level reaches 0 and it dies of hunger. Prey birds will make searching for food their main priority once their food level reaches 50. This is because they must separate from their flocks to feed themselves, thus exposing themselves to attack by a predator, and they would have enough time within the simulation (1 day) to find food.</p>
    <p>On the other hand, predators need more energy to survive, so their food level decreases from 100 to 0 in the span of a day (50 seconds in real time). For these reasons, predators begin actively foraging (hunting for prey) once their food level reaches a value of 70. Assuming a predator starts with a food level value of 100, it would take about 8 hours within the simulation to begin actively foraging (15 seconds of real time).</p>
    <p>Taking into account the above, below are 3 simulated scenarios within the program:</p>
    <p>First scenario: for the first scenario we started the simulation with 50 prey birds and 3 predator birds, with no shelters and little food. After 1 minute and 50 seconds of real time (2 days and 5 hours into the simulation as shown in <xref ref-type="fig" rid="fig22">
      Figure 22
     </xref>), the predator birds had already hunted half of the prey birds.</p>
    <fig id="fig22" position="float">
     <label>Figure 22</label>
     <caption>
      <title>Figure 22. First scenario after 2 days and 5 hours.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId35.jpeg?20250225050702" />
    </fig>
    <p>After 3 minutes and 40 seconds of real time (4 days and 10 hours within the simulation as shown in <xref ref-type="fig" rid="fig23">
      Figure 23
     </xref>) all the prey birds had been hunted, except for one that died of starvation. This may be because, without shelters in the environment, it was easier for prey birds to be hunted by predators, and because, as the number of prey birds decreased, there was less competition for food that appeared in the environment.</p>
    <p>Second scenario: the simulation begins with 100 prey birds and 1 predator bird, few shelters and no initial food. After 1 minute and 30 seconds of real time (1 day and 20 hours within the simulation represented in <xref ref-type="fig" rid="fig24">
      Figure 24
     </xref>), the predator birds had hunted 7 prey birds, while another 43 had died of starvation.</p>
    <fig id="fig23" position="float">
     <label>Figure 23</label>
     <caption>
      <title>Figure 23. First scenario after 4 days and 10 hours.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId36.jpeg?20250225050703" />
    </fig>
    <fig id="fig24" position="float">
     <label>Figure 24</label>
     <caption>
      <title>Figure 24. Second scenario after 1 day and 20 hours.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId37.jpeg?20250225050703" />
    </fig>
    <p>This is because the initial number of prey birds was too high for all of them to survive, considering that there was no food in the environment at the start of the simulation. It can also be seen that, as there was only one predator, not as many birds had been hunted, which leads us to assume that, in a scenario with more predators, the number of birds that died from being hunted and those that died of hunger would have been more balanced.</p>
    <p>After 5 minutes and 10 seconds of real time (6 days and 5 hours within the simulation as we can see in <xref ref-type="fig" rid="fig25">
      Figure 25
     </xref>) all the prey birds had died. It can be seen that the time between the first half of the prey birds dying was much longer compared to the second half. This is because they were not as threatened by predators as in other scenarios, since there was only one in the simulation, and because there was less competition for food that was appearing in the environment, there was a greater chance that any bird could feed. This is demonstrated by the values represented in the simulation, where 78 birds died of hunger and only 22 were hunted.</p>
    <fig id="fig25" position="float">
     <label>Figure 25</label>
     <caption>
      <title>Figure 25. Second scenario after 6 days and 5 hours.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId38.jpeg?20250225050702" />
    </fig>
    <p>Third scenario: for the third scenario we started the simulation with 25 prey birds and 5 predator birds, normal shelters, and plenty of food. After only 25 seconds of real time (12 hours within the simulation shown in <xref ref-type="fig" rid="fig26">
      Figure 26
     </xref>), the predator birds had already hunted half of the prey birds. After 1 minute and 10 seconds of real time (1 day and 10 hours within the simulation that we can see in <xref ref-type="fig" rid="fig27">
      Figure 27
     </xref>) all the prey birds had been hunted. This result was expected, since the initial number of prey birds was even smaller than the initial amount of food, so it was not expected that any bird would die of hunger. It is worth noting the speed with which all the birds died, because the number of predators was so high that it was reasonable to think that they would hunt relatively quickly such a small number of prey birds.</p>
    <p>It is worth mentioning that, within each simulation, predators will begin to starve once there is no more prey in the environment, so this project could be expanded with new functionalities such as reproduction between entities to obtain more extensive simulation results.</p>
    <fig id="fig26" position="float">
     <label>Figure 26</label>
     <caption>
      <title>Figure 26. Third scenario after 12 hours.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId39.jpeg?20250225050702" />
    </fig>
    <fig id="fig27" position="float">
     <label>Figure 27</label>
     <caption>
      <title>Figure 27. Third scenario after 1 day and 10 hours.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1680420-rId40.jpeg?20250225050701" />
    </fig>
   </sec>
  </sec><sec id="s12">
   <title>12. Conclusions</title>
   <p>The behavior of birds of prey and predators was successfully represented in an environment with different characteristics using various graphical tools to demonstrate the results of the simulation.</p>
   <p>Managing the interaction between prey and predator birds has required the definition of clear rules to achieve realistic and predictable behaviors. This involved the implementation of detection and decision-making systems that contributed to the authenticity of the simulation.</p>
   <p>The simulation of the behavior of birds of prey and predators represents a significant achievement in the creation of a realistic and functional virtual environment that can be applied in various contexts for studying and analyzing bird behavior in their natural environment.</p>
  </sec><sec id="s13">
   <title>Acknowledgements</title>
   <p>This work represents the research conducted by André Navarro-Bárcenas and Ricardo Céspedes-Valle to obtain a Bachelor’s degree in Computer Engineering from Universidad Autónoma Metropolitana-Azcapotzalco. It is also part of the divisional project Design of intelligent interfaces for simulating the behavior of living or animate organisms, from the same University.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.140420-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Laureano-Cruces, A.L., Valdez-Gómez, S.L., Medina-Salas, E.I., González-Cruz, R., Ramírez-Laureano, E. and Romero-Villagrana, O. (2020) Is There Consciousness in Animals? IJISET-International Journal of Innovative Science, Engineering&amp;Technology, 7, 318-331.
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Aleksander, I. (2005) The World in My Mind, My Mind in the World. IA Press.
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Laureano Cruces, A. L., Miranda Rochin, E., Ramírez Rodríguez, J., Mora Torres, M. and Sánchez Guerrero, L. (2018) Emotions, Implicit Information That Allows the Conscious Phenomenon. International Journal of Innovative Science, Engineering Technology, 5, 55-77. 
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Laureano-Cruces, A.L., de la Cruz-González, J.M., Ramírez-Rodríguez, J. and Solano-González, J. (2004) Reactive Agents to Improve a Parallel Genetic Algorithm Solution. In: Monroy, R., Arroyo-Figueroa, G., Sucar, L.E. and Sossa, H., Eds., MICAI 2004: Advances in Artificial Intelligence, Springer, 698-706. &gt;https://doi.org/10.1007/978-3-540-24694-7_72
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Laureano-Cruces, A.L. and Barceló-Aspeitia, A.A. (2003) Formal Verification of Multi-Agent Systems Behaviour Emerging from Cognitive Task Analysis. Journal of Experimental &amp; Theoretical Artificial Intelligence, 15, 407-431. &gt;https://doi.org/10.1080/0952813031000119719
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Krebs, J.R. and Davies, N.B. (2012) Avian Behavioral Ecology. Princeton University Press.
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Bretagnolle, V. and Terraube, J. (2019) Predator-Prey Interactions and Climate Change. In: Dunn, P.O. and Møller, A.P., Eds., Effects of Climate Change on Birds, Oxford University Press, 199-220. &gt;https://doi.org/10.1093/oso/9780198824268.003.0015
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Reeve, J. (2009) Understanding Motivation and Emotion. 5th Edition, John Wiley&amp;Sons Inc.
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ortony, A., Clore, G.L. and Collins, A. (1988) The Cognitive Structure of Emotions. Cambridge University Press. &gt;https://doi.org/10.1017/cbo9780511571299
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Encyclopaedia Britannica (2023) Computer Simulation. &gt;https://www.britannica.com/technology/computer-simulation 
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Espinoza, G. (2018) Estrategias de defensa de las aves frente a los depredadores. Animales Biología. &gt;https://animalesbiologia.com/aves/temas/estrategias-de-defensa-de-las-aves 
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     De Waal, F. (2016) Are We Smart Enough to Know How Smart Animals Are? W. W. Norton&amp;Company.
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ramírez Santos, P. (2017) Conducta de aves en la interacción presa-depredador en la Selva El Ocote, Chiapas, México. Ph.D. Thesis, El Colegio de la Frontera Sur. &gt;https://ecosur.repositorioinstitucional.mx/jspui/bitstream/1017/1846/1/100000045 
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Miranda Rochin, E. (2016) Simulación Dinámica en el Proceso de Toma de Decisiones en una Sociedad Multiagente. Bachelor’s degree in Computer Engineering. Universidad Autónoma Metropolitana-Azcapotzalco.
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Laureano Cruces, A.L. (2000) Interacción Dinámica en Sistemas de Enseñanza Inteligentes. Ph.D. Thesis, Instituto de Investigaciones Biomédicas. Universidad Nacional Autónoma de México. &gt;https://ru.dgb.unam.mx/handle/20.500.14330/TES01000273111
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     D’Inverno, M. and Luck, M. (2001) Understanding Agent Systems. Springer. &gt;https://doi.org/10.1007/978-3-662-04607-4 
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref17">
    <label>17</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Laureano-Cruces, A.L. and Espinosa-Paredes, G. (2005) Behavioral Design to Model a Reactive Decision of an Expert in Geothermal Wells. International Journal of Approximate Reasoning, 39, 1-28. &gt;https://doi.org/10.1016/j.ijar.2004.08.002
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref18">
    <label>18</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Jennings, N.R. (2000) On Agent-Based Software Engineering. Artificial Intelligence, 117, 277-296. &gt;https://doi.org/10.1016/s0004-3702(99)00107-1
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref19">
    <label>19</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Brooks, R.A. (1991) Intelligence without Representation. Artificial Intelligence, 47, 139-159. &gt;https://doi.org/10.1016/0004-3702(91)90053-m
    </mixed-citation>
   </ref>
   <ref id="scirp.140420-ref20">
    <label>20</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Laureano Cruces, A.L. (2024) Methodology for the Analysis and Design of a Cognitive Model: Emotions and Artificial Conscience Simulation, Edition 1. 1-85. &gt;https://doi.org/10.9734/bpi/mono/978-93-48859-90-7
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>