Polymorphism has fascinated evolutionary biologists since the time of Darwin. Biologists have observed discrete alternative mating strategies in many different species. In this study, we demonstrate that polymorphic mating strategies can emerge in a colony of hermaphrodite robots. We used a survival and reproduction task where the robots maintained their energy levels by capturing energy sources and physically exchanged genotypes for the reproduction of offspring. The reproductive success was dependent on the individuals' energy levels, which created a natural trade-off between the time invested in maintaining a high energy level and the time invested in attracting mating partners. We performed experiments in environments with different density of energy sources and observed a variety in the mating behavior when a robot could see both an energy source and a potential mating partner. The individuals could be classified into two phenotypes: 1) forager, who always chooses to capture energy sources, and 2) tracker, who keeps track of potential mating partners if its energy level is above a threshold. In four out of the seven highest fitness populations in different environments, we found subpopulations with distinct differences in genotype and in behavioral phenotype. We analyzed the fitnesses of the foragers and the trackers by sampling them from each subpopulation and mixing with different ratios in a population. The fitness curves for the two subpopulations crossed at about 25% of foragers in the population, showing the evolutionary stability of the polymorphism. In one of those polymorphic populations, the trackers were further split into two subpopulations: (strong trackers) and (weak trackers). Our analyses show that the population consisting of three phenotypes also constituted several stable polymorphic evolutionarily stable states. To our knowledge, our study is the first to demonstrate the emergence of polymorphic evolutionarily stable strategies within a robot evolution framework.
Citation: Elfwing S, Doya K (2014) Emergence of Polymorphic Mating Strategies in Robot Colonies. PLoS ONE 9(4): e93622. doi:10.1371/journal.pone.0093622
Editor: Stephen R. Proulx, UC Santa Barbara, United States of America
Received: July 18, 2013; Accepted: March 6, 2014; Published: April 9, 2014
Copyright: © 2014 Elfwing, Doya. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Funding: These authors have no support or funding to report.
Competing interests: The authors have declared that no competing interests exist.
If you come to any more conclusions about polymorphism, I should be very glad to hear the result: it is delightful to have many points fermenting in one's brain, and your letters and conclusions always give one plenty of this same fermentation.
- Charles Darwin, letter to Joseph Hooker, 1846 
Polymorphism has fascinated evolutionary biologists since the time of Darwin , . Polymorphism is defined as that there exist more than one distinct phenotype of a species occupying the same habitat at the same time , . Polymorphism does not include continuous variations, but only discrete variations or in the case of continuous traits, such as body size and color, strongly bimodal or multimodal phenotype variation distributions. The existence of more than one distinct phenotype of a species demands an explanation, because the theory of natural selection predicts that the fittest phenotype should drive the other, lesser fit phenotypes to extinction. In general, polymorphism is maintained if the “fitness curves” of the polymorphic phenotypes intersect, where the crossover-point is an evolutionarily stable state, realizing a polymorphic evolutionarily stable strategy (ESS) , . Common features of the evolution and the maintenance of behavioral polymorphism include: 1) that time or resources can be invested in more than one activity that contributes to the fitness; 2) that the individuals have rules about how to allocate time and resources among the alternative activities; and 3) that there is a trade-off between the activities that contribute to the fitness, i.e., the allocation of time and resources invested in one activity could be invested in another . Frequency-dependent selection , ,  is considered the most important explanation for the maintenance of polymorphism in a population. Frequency-dependent selection occurs when the fitness of the phenotypes depends on their frequencies in the population, and the fitness curves intersect at a crossover frequency where the phenotypes are equally successful. Alternative mating strategies (or alternative reproductive behaviors) – is the area of biological research most closely related to this study. Different mating tactics has been observed in a wide variety of species, both in males (e.g., –) and in females (e.g., –). However, there are relatively few cases where the differences in mating behavior have been confirmed to have a genetic basis –, and even fewer studies that have suggested equal average reproductive success, i.e., shown crossing of the fitness curves, of alternative phenotypes , , .
The use of robot evolution experiments to study biological phenomena has gained traction in recent years , as a complementary approach to biological studies and theoretical models. In comparison to biological studies, robot evolution has the advantage that the evolution of hundreds of generations of robot controllers can be completed within hours or days. The experiments can easily be repeated for different parameter settings and environmental conditions, which allows for quantitative testing and analysis of robustness and stability. In comparison with theoretical and numerical models, robot models can capture the often complex physical interactions between the agent and the environment, including other agents. Floreano and Keller with different co-authors have used robot evolution experiments to investigate the emergence and reliability of communication –, to quantitatively test Hamilton's rule for the evolution of altruism , and to test the influence of genetic architecture and mating frequency on the division of labor in social insect societies .
A distinctive feature of our earlier proposed embodied evolution framework  is that there is no explicit fitness function or algorithm for selecting individuals for recombination and mutations. Instead, offspring can only be created by the physical exchange of genotypes between two mating robots. In general, the choice of selection method requires careful consideration when using artificial evolution to study ESSs. A strong theoretical assumption underlying ESS analysis is that the population is infinitely large. Fogel et al. – demonstrated in simulation experiments, using the Hawk-Dove game, that for finite populations the results differed, at best, significantly from the theoretical ESS values and, at worst, bore no resemblance to the ESS. They, therefore, questioned the usefulness of ESSs to explain real biological phenomena in populations with limited population sizes. In response, Ficici and Pollock  showed that the difference between the theoretical ESS predictions and the observed simulation results could be accounted by the two selection methods used by Fogel et al..
The purpose of this study is to demonstrate that evolutionary stable alternative mating strategies can emerge in a small robot colony without any predefined mating preferences as a result of the trade-off between the resources spent on energy conservation and the resources spent on courtship of mating partners. As alternative mating strategies is a natural precursor for the evolution of sexual dimorphism, this line of research has the potential of increasing our understanding of the emergence of different sexes.
To investigate the ecological conditions for evolution of alternative mating strategies, we performed artificial evolution experiments, in simulation, with a small colony of Cyber Rodent robots  using our proposed embodied evolution framework . We performed the experiments in simulation because of the infeasibility of running hundreds of generations of evolution in hardware. In previous work , we have shown that learned and evolved behaviors in simulation have similar performance and behavior when transferred to the hardware setting. Each individual interacted in small groups of four robots and during its lifetime of 288 seconds an individual experienced three periods of group interactions, where the participants in each group were randomly selected. We placed the four robots in an arena (2.5×2.5 m) with 4 to 16 energy sources. The robots were equipped with two wheels, an infrared port for the exchange of genotypes, and a camera that could detect energy sources, and tail-lamps and faces of other robots (Figure 1). The robots could execute three basic behaviors, foraging, waiting (for a potential mating partner), and mating, which were learned by reinforcement learning . The mating strategy, i.e., the selection of basic behaviors, was controlled by a linear neural network and the (five) neural network weights were adapted by the evolutionary process (Figure 2). From a biological point of view, the population consisted of simultaneous hermaphrodites, who could reproduce offspring by mating (i.e., an exchange of genotypes with a mating partner). For each of the individuals involved in a mating event, the probability of reproducing offspring was linearly dependent on the individual's internal energy level (see Methods and ). This created a trade-off, where, in relative terms, an individual could maximize its fitness by maximizing either the frequency of mating events or the energy level at the mating events.
The Cyber Rodent robots used in the experiments were equipped infrared communication for the exchange of genotypes and cameras for visual detection of energy sources (blue), tail-lamps of other robots (green), and faces of other robots (red).
The control architecture consisted of a linear artificial neural network. The output of the network was the weighted sum () of the five network inputs () and the five evolutionarily tuned neural network weights (). In each time step, if the output was less or equal to zero then the foraging module was selected, otherwise the mating module was selected. The basic behaviors were learned from by reinforcement learning with the aid of evolutionarily tuned additional reward signals and meta-parameters. The foraging module learned a foraging behavior for capturing energy sources. The mating module learned both a mating behavior for the exchange of genotypes, when a face of another robot was visible, and a waiting behavior, when no face was visible.
After the evolutionary process converged after 1,000 generations of experiments, we frequently observed a variety in the mating behavior when a robot could see both an energy source and the tail-lamp of a potential mating partner. We classified their mating strategies into two types: 1) Forager strategy in which an individual never waited for a potential mating partner and only tried to mate if it saw the face of another robot, and 2) Tracker strategy in which an individual waited for potential mating partner to turn around and where the threshold for waiting depended on its current energy level, the distance to closest energy source, and the distance to tail-lamp of the closest potential mating partner (in our preliminary report , we called them roamer and stayer, respectively, borrowing the terminology by Sandell and Liberg ). Among the high fitness populations (5 highest fitness populations in each of the 7 environments with different levels of energy source density), 31% (11/35) consisted predominantly of foragers and 49% (17/35) consisted predominantly of trackers. In 20% (7/35) of the populations, and remarkable four of the seven highest fitness populations, there emerged a polymorphic population of foragers and trackers with distinct differences in genotype, phenotype, and behavior. Our analyses show that the polymorphic population could constitute an ESS with an evolutionarily stable state of approximately 25% foragers in the population. In one instance, the trackers were split into two subpopulations: trackers who almost always waited for potential mating partners (strong trackers), and trackers who only waited if the energy level was high and an energy source was close (weak trackers). The analyses show that a population consisting of three phenotypes (foragers, strong trackers, and weak trackers) also could constitute a globally stable polymorphic ESS with several attractors.
The basic behaviors (foraging, waiting, and mating) of each individual were learned from scratch in each generation by reinforcement learning and accelerated by the evolution of the shaping rewards. For a detailed description and analysis of the evolution of shaping rewards and meta-parameters in our embodied evolution framework, see . The fitness measured by the number of reproduced offspring correlated significantly with the learning performance of the mating behavior ( and ; Figure 3). The efficiency of the mating behavior depended strongly on the evolved shaping reward functions. On average, one time step (240 ms) reduction in the time to execute a successful mating lead to an increase in fitness by approximately one offspring.
The learning performance was estimated as the number of time steps the mating behavior was selected divided with number of mating events. The seven types of markers indicate the number of energy sources in the environment for each simulation.
The purpose of performing experiments with different number of energy sources in the environment was to investigate the effect of energy source density on the emergence of different mating strategies. In general, higher energy source density resulted in higher energy levels at the mating events, which increased the probability of reproducing offspring and, therefore, the fitness (see Figure 3). However, we could not find an effect of energy source density on the evolution of different mating strategies.
Analysis of Mating Strategies
Analyses of the behaviors in the final 20 generations of the evolutionary process show that almost all individuals in all experiments executed an opportunistic behavior when either only an energy source was visible or only a face of another robot was visible. In the former situation all individuals always executed the foraging behavior and in the latter situation they always executed the mating behavior. An interesting case happened when a robot could see both an energy source and the tail-lamp of another robot from its behind. While some robots (i.e., foragers) chose to take the foraging behavior of approaching the energy source, others (i.e., trackers) took the mating behavior of keeping track of the tail-lamp and approaching when the face became visible, as illustrated in Figure 4. The choice in general depended on the robot's stored energy level and the distances to the energy source and the tail-lamp.
A) The forager ignores the tail-lamp of the mating partner and executes the learned foraging behavior to capture the energy source. B) The tracker executes the learned waiting behavior and adjusts its position according to the trajectory of the mating partner.
In order to characterize these behavioral phenotypes, we took the average energy level threshold for the mating behavior, by computing the mean value over 676 equidistant visual inputs of the energy source and the tail-lamp (see Methods). With this criterion, the individual mating strategies emerged in the experiments could be classified: Forager strategy, in which an individual always took foraging behavior with equal or very close to the maximum threshold (1), and 2) Tracker strategy, in which an individual waited for the potential mating partners to turn around when its energy level is above a certain threshold, with smaller than 1.
We identified the three different types of populations by computing the median and the standard deviation of the average threshold for all 1600 individuals in the last 20 generations in each of the 70 experiments. The populations with median values larger than 0.98 were considered forager populations. The remaining populations were identified by their standard deviations. Those with standard deviations smaller than 0.19 were considered tracker populations and those with standard deviations larger than 0.19 were considered polymorphic populations, all of which had multimodal distributions.
We found 33, 28, and 9 populations of forager, tracker, and polymorphic strategies, respectively in the 70 populations. If we focus on the higher fitness populations (5 highest fitness populations in each of the 7 environments with different levels of energy source density), 31% (11/35) were foragers, 49% (17/35) were trackers, and 20% (7/35) were polymorphic. Remarkably, four of the seven highest fitness populations were polymorphic.
Analysis of Genotypes, Phenotypes, and Behaviors
The best example of an emerged polymorphic mating strategy is shown in Figures 5–7, which emerged in the experiment with the highest average fitness in the environment with four energy sources. Figure 5 shows the distribution of the values of , the bias for the mating behavior, and , the weight for the distance to another robot's face, of all 1600 individuals in the final 20 generation. We classified the population into the two subpopulations by k-means clustering in the and weight space and show the forager subpopulation in black and the tracker subpopulation in red in this and the following figures. Figure 6 shows the histogram of average energy thresholds of selection of the mating behavior. The genetically classified foragers and trackers formed clearly distinct distributions. Figure 7 shows the average percentage of the lifetimes executing the three basic behaviors of foraging, waiting (choice of mating despite the face is not visible), and mating.
The distribution of values of the bias weights () and the face distance weights () for all 1600 individuals in the final 20 generations.
The histograms of average waiting threshold values, , for all 1600 individuals in the final 20 generations.
The mean percentages of the lifetimes, with standard deviation, the individuals spent executing the three basic behaviors for all 1600 individuals in the final 20 generations.
The result clearly shows a polymorphic population with distinct bimodal distributions in genotype, phenotype, and behavior for a forager subpopulation and a tracker subpopulation. For the foragers, the median of average energy threshold was equal the maximum threshold of 1. They spent on average 77.5% of their lifetimes executing the foraging behavior and almost no time (0.6%) executing the waiting behavior. In comparison, for the trackers the median of threshold was 0.40. They spent on average 57.6% of their lifetimes executing the foraging behavior and 21.5% executing the waiting behavior.
Evolutionary Stability of Polymorphism
To investigate the evolutionarily stability of the emerged polymorphic population of foragers and trackers, we performed additional experiments in which we fixed the proportion of the two phenotypes in the polymorphic population shown in Figures 5–7. Individuals from the two genotypes were selected randomly from the final (1000th) generation of the evolutionary experiment, which consisted of 10 foragers and 70 trackers. The experiment was repeated 100 times for each proportion of the two phenotypes. Figure 8 shows the average number of mating events, Figure 9 shows the average normalized energy level at the mating events, and Figure 10 shows the average number of offspring (i.e., the fitness) for the two phenotypes, as functions of the tracker proportion in the population. The number of mating events increased, both for the population as a whole and for the two phenotypes, as the number of trackers in the population increased. The increase in the number of mating events was much larger for the foragers (black line in Figure 8), from 10 to almost 13 mating events, as the tracker proportion increased from 0% to 87.5%. In comparison, the number of mating events for the trackers (red line in Figure 8) increased with only approximately 1 mating event, from 12 to 13, as the tracker proportion increased from 12.5% to 100%. The average energy levels were approximately constant over all phenotype proportions for both foragers and trackers (dotted lines in Figure 9) with a mean value of 0.81 for the foragers and 0.77 for the trackers. The experimental result clearly show (Figure 10) that the emerged population of foragers and trackers constitute a polymorphic ESS with an evolutionarily stable state of around 25% foragers in the population. The stable state corresponded to group-interactions with only one forager in the environment where the three trackers would all wait and adjust their trajectories according to the forager's behavior.
The dotted lines show the best linear fit for the two subpopulations and the blue line shows average values for the population as a whole.
The dotted lines show the constant approximations as the average values over all phenotype proportions.
The foragers demonstrated negative frequency-dependent selection, i.e., the fitness increased as they became rarer. The foragers could be considered as a parasitic phenotype, because they relied on a high proportion of trackers to achieve a large number of mating events and, thereby, high fitness. In relative terms, the foragers tried to maximize the second term of the fitness function (Equation 1) by maximizing their own energy at the mating events, . The trackers demonstrated positive frequency-dependent selection, i.e., the fitness increased as they became more common. However, the proportion of trackers in population had much less effect on the trackers' fitness. The average fitness increased only about 8% as the tracker proportion increased from 25% to 100%, compared to the foragers that increased their average fitness 21% as the tracker proportion increased from 0% to 75%. In relative terms, the trackers maximized the first term of the fitness function, the mating frequency , by using the waiting behavior to attract potential mating partners. The result also shows that the evolved mating strategy could have a significant impact on the average population fitness. There was an almost 4 offspring increase in fitness between a population with only foragers (fitness of about 16 offspring) and a population with only trackers or an evolutionarily stable polymorphic population (fitness of about 20).
Mating Dynamics of Foragers and Trackers
Now let us investigate the dynamic interactions of the two subpopulations behind the observed fitness curves in Figure 10.
The average fitness , i.e., the number of reproduced offspring, is a function of the average number of mating events, , the average normalized energy level at the mating occasions (for offspring created by the individual), , and the mating partners' average normalized energy level (for offspring created by the mating partners), :(1)
In order to model the average fitness, we take the following hypotheses: H1) The trackers achieved almost perfect mixing of mating partners. H2) The foragers mated more frequently with trackers than the proportion of trackers in the population. H3) The mating frequencies of the foragers, , and the trackers, , were functions of the tracker proportion . Under these conditions, we predict the fitness curves of the two subpopulations.
Let us denote the average numbers of mating events in a lifetime of a forager with foragers by , with trackers by , and with either by . We also denote the average numbers of mating events of a tracker , , and in the same convention.
H1 can be represented as(2)This was true for all tested phenotype proportions, as shown by the red line in Figure 11.
The black and red dotted lines show the best linear fit for the two subpopulations. The blue dotted line shows the predicted ratio of forager mating events to tracker mating events from Equation 5 with .
H2 means that(3)with a positive . This was the case in our experiment with , as shown by the black line in Figure 11.
From H1 (Equation 2) and the symmetry condition , we have . From this and H2 (Equation 3), the ratio of the average numbers of mating events by foragers and trackers () can then be derived as(4)(5)In our experiment, the ratio of forager mating events to tracker mating events increased from 0.88 to 1.02 when the tracker proportion increased from 0.125 to 0.875, as shown by the blue line in Figure 11. This fits well with the model prediction in Equation 5 with , shown by the dotted blue line in Figure 11.
From H3, the average fitness (Equation 1) of the foragers, and the trackers, , can be rewritten as(6)(7)(8)(9)The dotted lines in Figure 10 shows the estimation of the average fitness of the foragers and the trackers, using Equations 7 and 9, respectively, with constant -values, and with the best linear fit of from the data (see dotted lines in Figures 9 and 8, respectively).
Population with Three Mating Strategies
As shown in Figure 6, the distribution of the average energy threshold for waiting, , of all trackers in the final 20 generations was very broad. Interestingly, in the final generation, the trackers' phenotype distribution was bimodal with two distinct peaks (Figure 12): a larger subpopulation (46 individuals) of strong trackers with a smaller median -value of approximately 0.22 and a smaller subpopulation (24 individuals) of weak trackers with a larger median -value of approximately 0.48. The separation in genotype between the strong and weak trackers was not as distinct, but it is clearly visible in and weight space (Figure 13).
The histograms of average waiting threshold values, , in the final generation.
The distribution of values of the bias weights () and the face distance weights () in the final generation.
To investigate the evolutionarily stability of a population consisting of foragers, weak trackers, and strong trackers, we conducted additional experiments in which we fixed the proportions of the three phenotypes and measured their fitnesses. As in the earlier experiments, the genotypes of the three subpopulations were randomly selected from the genotypes in the final generation of the evolutionary experiments and repeated 100 times for each proportion of the three phenotypes. The result of the experiments is summarized in the DiFinetti diagram in Figure 14. The proportion of each phenotype increases from the side of the triangle to the opposite vertex. The black circles represent the tested phenotype proportions. In general, the average population fitness (shown by the background coloring of the diagram) increased with the number of strong trackers in the population. The average population fitness was 16.2 offspring in population with only foragers, 18.2 offspring in population with only weak trackers, and 19.7 offspring in a population with only strong trackers, which was close to the maximum average fitness of 19.9 for a population consisting of 87.5% strong trackers and 12.5% foragers.
The small black circles indicate the tested phenotype proportions. The black arrows show the average direction and magnitude of the change in phenotype proportions (magnified by a factor of five for visualization purposes). The white numbered squares indicate the approximate population ratios of the five evolutionary stable states, where the ratios of the phenotypes (F, WT, ST) were 1: (31.25%, 0%, 68.75%), 2: (0%, 87.5%, 12.5%), 3: (12.5%, 87.5%, 0%), 4: (25%, 50%, 25%), and 5: (25%, 25%, 50%). The gray line, ending in the gray triangle, shows the phenotype proportions in final 20 generations of the evolutionary experiments. The background coloring visualizes the average population fitness.
Assuming a fixed population size, the proportion of phenotype i in the next generation, , can be calculated by the discrete replicator dynamic equation:(10)where, is the average fitness of phenotype i with proportion of the population in the current generation. The black arrows in Figure 14 show the average directions and magnitudes of the changes in phenotype proportions. Three populations consisting of only two of the phenotypes (as seen along the three sides of the triangle) were evolutionarily stable with populations proportions close to: 1) 31.25% foragers and 68.75% strong trackers (bottom side); 2) 87.5% weak trackers and 12.5% strong trackers (right side); and 3) 12.5% foragers and 87.5% weak trackers (left side). Populations consisting of all three phenotypes were globally stable, because all arrows in the inner triangle, representing populations consisting of at least 12.5% of each of the three phenotypes, point inside the triangle. The diagram suggests that there were two evolutionarily stable attractors where the magnitude of the change in the proportion of the phenotypes was zero, , with centers close to populations consisting of: 4) 25% foragers, 50% weak trackers, and 25% strong trackers () and 5) 25% foragers, 25% weak trackers, and 50% strong trackers (). For populations with 12.5% to 25% foragers, the average magnitudes of the change in phenotype proportions were small, i.e., low selection pressure, which meant that phenotype ratios could move relatively easily between the attractors by random genetic drift. For example, in the final 20 generations of the evolutionary experiment (illustrated by the gray line ending in the gray triangle), the phenotype ratios were first close to the fourth attractor (fitness of 19.1), and ended up close to the fifth attractor (fitness of 19.3).
In this study, we demonstrated that polymorphic mating strategies can emerge in a small robot colony under homogeneous evolutionary conditions, without a selection scheme or an explicit fitness function that promoted a certain outcome. Our study is, to our knowledge, the first to demonstrate the emergence of polymorphic ESSs within a robot evolution framework. This gives further evidence that artificial robot evolution (for an overview see ) can be a feasible and a valuable approach for investigating hypotheses of biological phenomena.
The importance of specific details of the genetic algorithm and the structure of the genotype were illustrated in this study. A condition for the evolution of the polymorphic ESSs consisting of foragers and trackers was the small proportion of genotype controlling the mating strategy, in combination with the relatively low crossover rate. The mating strategy was controlled by only 5 out of the 51 genes, located at the beginning of the genotype, and with a crossover rate of 0.1 there was only a 0.8% probability that an offspring would have a mating strategy controlled be a mixture of genes from both parents. A much more frequent mixing of the mating strategy genes would have made it more difficult or even impossible to evolve and maintain separate genetic traits in the same population. An assumption underlying evolutionary game theory , is that the payoffs that agents are assumed to be without noise. It is therefore very encouraging that evolutionarily stable polymorphic ESSs could emerge in our experiment with a small population size and with large variances in the performance of similar, and even identical, individuals. The lifetime learning of the basic behaviors by reinforcement learning introduced additional stochasticity. Even in the last part of the evolutionary process, a few individuals failed to capture any batteries or engage in any mating activity. This was usually caused by that the individual got trapped in a corner of the environment and failed to learn how to navigate out of it.
The forager strategy in the evolved polymorphic populations can be seen as a cheater strategy. To achieve high fitness, a forager relies on that all the other individuals in the environment (i.e., trackers) will adjust their behaviors according to the trajectory of the forager. The forager, therefore, avoids the cost of searching for mating opportunities. There exists a rich literature on the potential of cheating in hermaphrodite mating systems (for an overview see ). Usually, cheating refers to the attempt of individuals to take on the male role over the female role in mating encounters to avoid the cost offspring reproduction.
The most similar study to ours was conducted by Rold et al. . They co-evolved a population of predefined male and female robots. The robots, as in our experiments, remained alive by capturing energy sources and reproduced by physical mating, consisting of touching a robot of the opposite sex. The only difference between males and females was that the males remained reproductive throughout their lives, while the females became non-reproductive for a fixed period of time after an reproductive mating event. In their experiment, the reproduced offspring were not the result of a genetic exchange between mating robots. Instead, the males and females were evolved separately with the number of reproductive mating events used as fitness objective. The evolved behaviors of the males and females had distinct differences and their behaviors corresponded to observed behaviors of males and females in biological studies. Interestingly, the evolved behaviors of the males and females also matched the behavior of the foragers and trackers, respectively, in our study. The males opportunistically ate all the food they could find while looking for reproductive females. The reproductive females were less active and adopted a mating strategy of waiting for males to mate with them. This give some support to a hypothesis that polymorphic mating strategies, emerged due to basic trade-off between the resources spent on energy conservation and the resources spent on courtship of mating partners, is a precursor of sexual dimorphism. In our experiments, polymorphism could arise because the foragers and trackers optimized, in relative terms, different parts of the fitness function (Equation 1). The foragers maximized their own energy level, , by spending all their lives foraging for energy sources except for when a a potential mating partner was directly visible, while the trackers maximized the mating frequency, , by spending considerable amount of their lives waiting for potential mating partners. The evolution of “proto-sexes” is a research venue we plan to explore in future work. In the current experimental setup, both the sender and receiver can reproduce offspring at the mating events and the cost of mating is equal, whether offspring are reproduced or not (see Methods). A more biological plausible setup would be that only one of the agents took on the female role, e.g., the receiver, and also bore the main cost of reproducing offspring. The goal would then be to investigate if, and in such case under which conditions, a breeding system with distinct male and female roles could evolve from an initial population of hermaphrodites without any predefined mating preferences, and maybe even more exotic breeding systems such as androdioecy (males and hermaphrodites) and gynodioecy (females and hermaphrodites).
Four Cyber Rodent mobile robots  were placed in a 2.5×2.5 m arena, together with 4, 6, 8, 10, 12, 14, or 16 energy sources (Figure 1). The task of the robots were to survive by maintaining their internal energy level through foraging of energy sources and by reproduction of offspring through physical exchange of genotypes by infrared communication. We performed the experiments in a simulation environment, developed to mimic the features of the real Cyber Rodent hardware platform. The robots were equipped with a camera system with color blob detection, used to extract the distances and relative angles to nearest energy source (blue), the nearest tail-lamp of another robot (green), and the nearest face of another robot (red). Mimicking the real robotic hardware, the field of view of the simulated vision system set to . Within an angle range of , the robots could detect energy sources up to 2 m, tail-lamps up to 1.5 m, and faces up to 1 m. Outside this range, the detection capability decreased linearly down to 0.2 m for the maximum angles.
We performed 1000 generations of evolution and for each energy source density, we ran 10 evolution experiments. To be able to conduct robot evolution experiments with only only four robots, we utilized time-sharing in subpopulations of 20 individuals within each robot. Each individual in a subpopulation took control, in random order, of the robot for three time-sharings of 400 time steps, i.e., the total lifetime was 1200 time steps. An individual had a maximum internal energy level () of energy units. Each time step, the energy level decreased by unit and a capture of an energy source increased the energy level by units. At birth, an individual had an internal energy level of units. If an individual's energy was depleted, then the individual died and was removed from its subpopulation. When a robot captured an energy source it disappeared from its current position and reappeared in new, randomly selected, position.
We did not apply an explicit fitness function or a centralized selection process, instead offspring were created by a mating. The individuals controlling the robots could create offspring by a physical exchange of genotype through infrared communication. The infrared communication ports were located slightly to the right of center in the front of the Cyber Rodent robots, directed straight forward. In the simulation environment, the maximum range of the communication was set to 1 m and the angle range was set to . An individual could initiate the infrared communication by executing a predefined action selected by the mating behavior. For a mating event to be successful, both robots had to be within each others mating range before and after the individuals controlling the robots executed the actions of their currently selected reinforcement learning modules. The probability, for each of the two individuals involved in a mating event, of reproducing offspring was linearly depended on the individual's energy level (). A reproductive mating event created two offspring in the individual's subpopulation by applying one-point crossover with a probability of . The genes of the two newly created genotypes were then mutated with probability of , by adding value from a Gaussian distribution with zero mean and a standard deviation of 0.1. After all individuals in a subpopulation had survived for a full lifetime or died a premature death, a new subpopulation was created by randomly selecting a fixed number, i.e., 20 in our experiments, of the offspring reproduced during the last generation.
The genotype consisted of 51 real-valued genes: 1) 5 genes controlling the mating strategy by encoding the weights of the top-level neural network that selected basic behaviors (Figure 2); 2) 42 genes determining the parameters of the additional reward signals for the basic behaviors in the form of potential-based shaping rewards ; and 3) 4 genes determining the meta-parameters of the reinforcement learning algorithm. The five-dimensional input to the neural network consisted of a constant bias of 1 (), the individual's internal energy (), and the inverse distances to the nearest energy source (), tail-lamp (), and face (). The sensory inputs were linearly scaled to a range of . If a visual target was not visible, the corresponding input value was set to −1. In each sensory-motor cycle (time step), the output of the neural network () determined which of two reinforcement learning modules that was selected. If the output was greater than zero the mating module was selected, otherwise the foraging module was selected. After a successful mating event, whether it reproduced offspring or not, an individual could not select the mating module again until it had captured an energy source or until time steps had passed. During this time, the tail-lamp was turned off.
In the case when only an energy source and a tail-lamp were visible, the energy thresholds for the selection of the mating module, , was given by(11)which depended on the distance to the closest energy source () and the distance to the closest tail-lamp (). In order to derive the average energy threshold , we computed the mean of over 676 values of and (26 equidistant values between 0 and 1 for each of the two sensory inputs).
The reinforcement learning modules learned their behaviors from scratch in each generation with the aid of evolutionarily tuned potential-based shaping rewards and meta-parameters. The foraging module executed a foraging behavior using the relative angle and the distance to the nearest energy source as state variables. The mating module executed either a mating behavior or a waiting behavior, depending on the current sensory inputs. If a face of another robot was visible, the mating behavior was executed using the relative angle and the distance to the nearest face as state variables. Otherwise, the waiting behavior was executed using the relative angle and the distance to the nearest tail-lamp as state variables. The behaviors were learned by the Sarsa reinforcement learning algorithm ,  with tile coding  and potential-based shaping rewards . The global reward for the reinforcement learning modules was set to +1 for a successful mating event and +1 for a capture of an energy source, otherwise the reward was set to 0.
The additional experiments, conducted to investigate the evolutionarily stability of the emerged polymorphic ESSs, were performed in a similar manner as the evolution experiments. The only difference was that, in each generation, the subpopulations were created by randomly selecting the genotypes of the different phenotypes from the final generation of the evolution experiment according to the predefined phenotypes ratios.
For a detailed description of our embodied evolution framework and algorithm specifics, see .
Conceived and designed the experiments: SE KD. Performed the experiments: SE. Analyzed the data: SE. Wrote the paper: SE KD.
- 1. Darwin C (1987) The Correspondence of Charles Darwin: 1844–1846. Cambridge University Press.
- 2. Darwin C (1859) On the Origin of Species by Means of Natural Selection. London: Murray.
- 3. Darwin C (1874) The Descent of Man, and Selection in Relation to Sex (2nd ed.). London: Murray.
- 4. Ford EB (1975) Ecological Genetics (4th ed.). London: Chapman & Hall.
- 5. Smith JM (1998) Evolutionary Genetics (2nd ed.). Oxford University Press.
- 6. Smith JM, Price GR (1973) The logic of animal conflict. Nature 246: 15–18. doi: 10.1038/246015a0
- 7. Smith JM (1982) Evolution and the Theory of Games. Cambridge University Press.
- 8. Brockmann HJ (2001) The evolution of alternative strategies and tactics. Advances in the Study of Behavior 30: 1–51. doi: 10.1016/s0065-3454(01)80004-8
- 9. Anderson WW (1969) Polymorphism resulting from the mating advantage of rare male genotypes. Proceedings of the National Academy of Sciences of the United States of America 64: 190–197. doi: 10.1073/pnas.64.1.190
- 10. Gadgil M (1972) Male dimorphism as a consequence of sexual selection. The American Naturalist 106: 574–580. doi: 10.1086/282797
- 11. Rubenstein DI (1980) On the evolution of alternative mating strategies. In: Staddon JER, editor, Limits to Action: The Allocation of Individual Behavior, Academic Press, New York. pp. 65–100.
- 12. Gross MR (1996) Alternative reproductive strategies and tactics: Diversity within sexes. Trends in Ecology and Evolution 11: 92–98. doi: 10.1016/0169-5347(96)81050-0
- 13. Brockmann HJ, Taborsky M(2008) Alternative reproductive tactics and the evolution of alternative phenotypes. In: Oliveira R, Taborsky M, Brockmann HJ, editors, Alternative Reproductive Tactics: An integrative Approach, Cambridge University Press. pp. 25–51.
- 14. Bisazza A (1993) Male competition, female mate choice and sexual size dimorphism in poeciliid fishes. Marine Behaviour and Physiology 23: 257–286. doi: 10.1080/10236249309378869
- 15. Brockmann HJ, Penn D (1992) Male mating tactics in the horseshoe crab, limulus polyphemus. Animal Behaviour 44: 653–665. doi: 10.1016/s0003-3472(05)80293-3
- 16. Utami SS, Goossens B, Bruford MW, de Ruiter JR, van Hooff JARAM (2002) Male bimaturism and reproductive success in sumatran orang-utans. Behavioral Ecology 13: 643–652. doi: 10.1093/beheco/13.5.643
- 17. Roulin A, Ducret B, Ravussin PA, Altwegg R (2003) Female colour polymorphism covaries with reproductive strategies in the tawny owl strix aluco. Journal of Avian Biology 34: 393–401. doi: 10.1111/j.0908-8857.2003.03139.x
- 18. Mappes T, Koivula M, Koskela E, Oksanen TA, Savolainen T, et al. (2008) Frequency and densitydependent selection on life-history strategies a field experiment. Journal of Avian Biology 3: e1687. doi: 10.1371/journal.pone.0001687
- 19. Svensson E, Abbott JK, Gosden TP, Coreau A (2009) Female polymorphisms, sexual conflict and limits to speciation processes in animals. Evolutionary Ecology 23: 93–108. doi: 10.1007/s10682-007-9208-2
- 20. Zimmerer EJ, Kallman KD (1989) Genetic basis for alternative reproductive tactics in the pygmy swordtail, xiphophorus nigrensis. Evolution 43: 1298–1307. doi: 10.2307/2409364
- 21. Shuster SM, Wade MJ (1991) Equal mating success among male reproductive strategies in a marine isopod. Nature 350: 608–610. doi: 10.1038/350608a0
- 22. Ryan MJ, Pease CM, Morris MR (1992) A genetic polymorphism in the swordtail xiphophorus nigrensis: testing the prediction of equal fitnesses. American Naturalist 139: 21–31. doi: 10.1086/285311
- 23. Thompson CW, Moore IT, Moore MC (1993) Social, environmental and genetic factors in the ontogeny of phenotypic differentiation in a lizard with alternative male reproductive strategies. Behavioral Ecology and Sociobiology 33: 137–146. doi: 10.1007/bf00216593
- 24. Radwan J (1995) Male morph determination in two species of acarid mites. Heredity 74: 669–673. doi: 10.1038/hdy.1995.91
- 25. Lank DB, Smith CM, Hanotte O, Burke T, Cooke F (1995) Genetic polymorphism for alternative mating behavior in lekking male ruff philomachus pugnax. Nature 378: 59–62. doi: 10.1038/378059a0
- 26. Sinervo B, Lively CM (1996) The rock-paper-scissors game and the evolution of alternative male strategies. Nature 380: 240–243. doi: 10.1038/380240a0
- 27. Sinervo B, Zamudio KR (2001) The evolution of alternative reproductive strategies: fitness differential, heritability, and genetic correlation between the sexes. Journal of Heredity 92: 198–205. doi: 10.1093/jhered/92.2.198
- 28. Floreano D, Keller L (2010) Evolution of adaptive behaviour in robots by means of darwinian selection. PLOS Biology 8. doi: 10.1371/journal.pbio.1000292
- 29. Floreano D, Mitri S, Magnenat S, Keller L (2007) Evolutionary conditions for the emergence of communication in robots. Current Biology 17: 514–519. doi: 10.1016/j.cub.2007.01.058
- 30. Mitri S, Floreano D, Keller L (2009) The evolution of information suppression in communicating robots with conflicting interests. PNAS 106. doi: 10.1073/pnas.0903152106
- 31. Mitri S, Floreano D, Keller L (2011) Relatedness influences signal reliability in evolving robots. Proceedings of the Royal Society B 278: 378–383. doi: 10.1098/rspb.2010.1407
- 32. Wischmann S, Floreano D, Keller L (2012) Historical contingency affects signaling strategies and competitive abilities in evolving populations of simulated robots. PNAS Early Edition doi: 10.1073/pnas.1104267109
- 33. Waibel M, Floreano D, Keller L (2011) A quantitative test of hamilton's rule for the evolution of altruism. PLOS Biology 9. doi: 10.1371/journal.pbio.1000615
- 34. Tarapore D, Floreano D, Keller L (2010) Task-dependent influence of genetic architecture and mating frequency on division of labour in social insect societies. Behavioral Ecology and Sociobiology 64: 675–684. doi: 10.1007/s00265-009-0885-4
- 35. Elfwing S, Uchibe U, Doya K, Christensen HI (2011) Darwinian embodied evolution of the learning ability for survival. Adaptive Behavior 19: 101–120. doi: 10.1177/1059712310397633
- 36. Fogel DB, Fogel GB (1995) Evolutionary stable strategies are not always stable under evolutionary dynamics. In: Evolutionary Programming. pp. 565–577.
- 37. Fogel DB, Fogel GB, Andrews PC (1997) On the instability of evolutionary stable strategies. Biosystems 44: 135–152. doi: 10.1016/s0303-2647(97)00050-6
- 38. Fogel GB, Andrews PC, Fogel DB (1998) On the instability of evolutionary stable strategies in small populations. Ecological Modelling 109: 283–294. doi: 10.1016/s0304-3800(98)00068-4
- 39. Ficici S, Pollack JB (2000) Effects of finite populations on evolutionary stable strategies. In: Proceedings of the Genetic and Evolutionary Computation Conference (GECCO2000). pp. 927–934.
- 40. Doya K, Uchibe E (2005) The cyber rodent project: Exploration of adaptive mechanisms for self-preservation and self-reproduction. Adaptive Behavior 13: 149–160. doi: 10.1177/105971230501300206
- 41. Sutton RS, Barto A (1998) Reinforcement Learning: An Introduction. MIT Press.
- 42. Elfwing S, Uchibe E, Doya K (2009) Emergence of different mating strategies in artificial embodied evolution. In: Proceedings of International Conference Neural Information Processing (ICONIP2009). volume 5864: , pp. 638–647.
- 43. Sandell M, Liberg O (1992) Roamers and stayers: A model on male mating tactics and mating systems. The American Naturalist 139: 177–189. doi: 10.1086/285319
- 44. Leonard JL (2006) Sexual selection: lessons from hermaphrodite mating systems. Integrative and Comparative Biology 46: 349–367. doi: 10.1093/icb/icj041
- 45. Da Rold F, Petrosino G, Parisi D (2011) Male and female robots. Adaptive Behavior 19: 317–334. doi: 10.1177/1059712311417737
- 46. Ng AY, Harada D, Russell SJ (1999) Policy invariance under reward transformations: theory and application to reward shaping. In: Proceedings of the International Conference on Machine learning (ICML1999). San Francisco, CA: Morgan Kaufmann Publishers Inc., pp. 278–287.
- 47. Rummery GA, Niranjan M (1994) On-line Q-learning using connectionist systems. Technical Report CUED/F-INFENG/TR 166, Cambridge University Engineering Department.
- 48. Sutton RS (1996) Generalization in reinforcement learning: Successful examples using sparse coarse coding. In: Proceedings of Advances in Neural Information Processing Systems (NIPS1996). Volume 8: pp. 1038–1044.