Abstract
Conspecific acceptance thresholds (Reeve 1989 Am. Nat. 133, 407–435), which have been widely applied to explain ecological behaviour in animals, proposed how sensory information, prior information and the costs of decisions determine actions. Signal detection theory (Green & Swets 1966 Signal detection theory and psychophysics; SDT), which forms the basis of CAT models, has been widely used in psychological studies to partition the ability to discriminate sensory information from the action made as a result of it. In this article, we will review the application of SDT in interpreting the behaviour of laboratory animals trained in operant conditioning tasks and then consider its potential in ecological studies of animal behaviour in natural environments. Focusing on the nest-mate recognition systems exhibited by social insects, we show how the quantitative application of SDT has the potential to transform acceptance rate data into independent indices of cue sensitivity and decision criterion (also known as the acceptance threshold). However, further tests of the assumptions underlying SDT analysis are required. Overall, we argue that SDT, as conventionally applied in psychological studies, may provide clearer insights into the mechanistic basis of decision making and information processing in behavioural ecology.
This article is part of the theme issue ‘Signal detection theory in recognition systems: from evolving models to experimental tests’.
Keywords: animal behaviour, psychology, insects, signal detection theory, psychology
1. Introduction
Signal detection theory (SDT; [1]) is a theoretical framework that was developed to analyse behavioural responses of mammals (principally humans) performing a perceptual task (e.g. auditory, visual and tactile) in a laboratory. It has been applied to analyse a wide variety of psychological [2] and neuroscience [3] experiments, but it has also found application in areas as diverse as medical diagnostics, weather forecasting (see [4]), marketing [5], eye-witness testimony [6], and engineering [7].
Reeve's conspecific acceptance threshold model (CAT; [8]) sought to provide a theoretical basis for how decisions must be made by non-human animals in their natural environments. This model has been applied widely to help understand how animals make decisions in their natural environment, when decisions must be made with uncertainty [9–13]. In particular, it considered how an acting animal must repeatedly make a judgement about another animal of the same species. Guarding behaviour in a social insect nest is a good example of this: a ‘guard’ needs to make a decision to accept or reject an incoming individual; if it wrongly accepts a non-nest-mate, this could carry costs to the colony in terms of egg dumping/social parasitism or stealing resources. Guarding, therefore, is effectively a series of largely independent binary (accept or reject) decisions made by an individual in response to some sensory information––e.g. the smell or appearance of an incomer. This process is remarkably similar to perceptual experiments in a laboratory, where subjects must repeatedly perform a series of very similar trials and are forced to make an (often) binary decision on every trial.
CAT conceptualizes a task as three components: production of sensory cues, recognition of sensory cues and an action. SDT does not consider cue production, but it does divide the task into the recognition of sensory cues and an action. Both consider sensory information, originating from a given object in the world, as a single noisy variable (i.e. a number). In both theories, the decision-making process compares the incoming sensory variable against an ‘acceptance threshold’ (for CAT) or ‘decision criterion’ (for SDT).
SDT and CAT have been largely applied separately to different problems. SDT has been applied in the context of animal behaviour; for example, identifying mates of the correct species [14], choosing prey [15], and in mimicry [16]. Some theoretical studies have suggested that SDT may have limitations in behavioural ecology owing to its simplicity [17–19]; others call for the wider application of SDT to communication (e.g. [20,21]) and real ecological data [22]; and there is a recent wider interest in how SDT might be applicable to understanding animal responses to modified landscapes [23,24]. Despite this interest, there is a lack of quantitative applications of SDT in behavioural studies or tests of the assumptions made by SDT.
Here, we first provide a tutorial-style overview of SDT and consider an example applied to animals in operant conditioning tasks. Second, we compare this briefly to Reeve's theory. Third, we apply a specific analysis in SDT to some behavioural ecology data: guarding behaviour in social insects.
We show that SDT can be useful in analysing such data: the benefits are that it transforms raw data on decision rates into indices that separately show the sensitivity of the response to both the cue and decision criterion. The decision criterion corresponds directly to the acceptance threshold in Reeve's model. On the other hand, the sensitivity gives a measure of the combined reliability of the differences between stimuli (or cues) and the reliability of the processing by the nervous system. Importantly, sensitivity does not depend on the decision made by the animal (i.e. the acceptance threshold), and vice versa. These indices, therefore, correspond well with typical experimental hypotheses on sensory cues. By contrast, empirical acceptance rates are a combination of both criterion and sensitivity and are, therefore, difficult to interpret in terms of CAT, SDT or any other quantitative theory. We argue for further development in the use of SDT in behavioural ecology, including the testing of its underlying assumptions.
2. Signal detection theory in perception
(a). Introduction to signal detection theory
A simple example of using SDT in experimental psychology is when testing the ability of a subject to detect a short tone pip (beep) in a background of white noise (‘ssss…’; [1]). Over repeated trials subjects are required to decide whether there was a tone present or not. Tones are typically presented randomly on 50% of those trials, while for the other 50% of trials, there is only the background noise. Performance tends to vary from 100% correct when the amplitude of tone is large (loud), to 50% correct (chance, guessing) when the amplitude is small (faint; quiet). When the tone becomes faint, perceptions become ambiguous. Under these conditions, subjects vary in their propensity to say ‘yes’ or ‘no’. Early researchers seeking to probe sensory perception realized this, and saw these ‘decision biases’ as separate to the subjects' true perceptual acuity and therefore as a barrier to measuring it accurately (for a brief history, see [25, p. 22]).
SDT assumes that a subject's ability to discriminate between sensory stimuli is limited by the variability of the internal representations of those stimuli (figure 1a). Any given stimulus could illicit a range of sensory values from one instance of the same stimulus to another, owing to variability in the stimulus itself and/or noise in the nervous system. If the distributions of these representations for two different stimuli overlap, then some mistakes are inevitable. The more the distributions overlap, the more errors are made (c.f. figure 1a,b).
Figure 1.
(a,b) Showing the principles of signal detection theory with the difference in the means (d′ – a measure of sensitivity or responsiveness to a particular cue), the decision criterion (c – a metric reflecting the action taken), and the area under each distribution to the right of c, which gives the hits (red) and false alarms (blue). A case of very easy ((a) d′ = 4) and more difficult ((b) d′ = 2) discrimination between two stimuli. In all cases of SDT, the costs of errors in either direction are assumed to be equal. (c) Comparative example of the conspecific acceptance threshold model [8]. Shaded areas correspond to the hits and false alarms for an acceptance threshold (c = 3.7) which maximizes overall per cent of correct decisions, which is also optimal when costs of errors are equal. A lower threshold (c = 1.7) corresponds to optimal if the costs of errors are unequal. In this case, the cost of deciding a stimulus from class 2 belongs to class 1 is 10× that of deciding that a stimulus from class 1 belongs to class 2.
The task of the subject is to decide which stimulus they think produced the sensation. In SDT, the subject is assumed to facilitate this by choosing a ‘decision criterion’ (vertical lines in figure 1a,b). Their response then only depends on which side of the criterion line a given individual sensory event lies. This decision criterion (labelled as c in figure 1) is an important parameter in SDT.
In our example, there are four possible outcomes: a correct identification of a tone is recorded as a ‘hit’, while failing to detect the tone is a ‘miss’. Correctly identifying that there is no tone is a ‘correct rejection’, while an erroneous call for a tone that is not there is a ‘false alarm’ (i.e. wrongly perceiving the occurrence of a tone). In figure 1, if the area under each curve sums to one, then the areas to the right of the criterion value indicate the probabilities of hits (shaded red) and false alarms (shaded blue), whereas the areas to the left of the criterion (not shaded) give the misses and correct rejections. The probability of hits, misses, false alarm and correct rejections vary depending on where the decision criterion is placed. As the criterion becomes more conservative (moving to the right in figure 1), hit and false alarm probabilities drop.
The most common version of SDT makes strong assumptions about the underlying shape of the distributions associated with the subject's internal representations. It assumes that the distributions are normal (or Gaussian) in shape and of equal variance. In this equal variance SDT model, the only difference between the representations of stimulus classes is the mean values. Moreover, we can standardize the units of this difference to be the number of standard deviations (s.d.) separating their means (sometimes called a Z-score). Thus, SDT is not concerned with what that cue (or combination of cues) is, only the sensitivity of the representation to differences between stimuli. This is the second parameter in SDT and is known as the sensitivity measure, ‘d-prime’ (d′). A d′ of 1 means that the two distributions are 1 s.d. apart.
These two parameters provide useful information on the nature of the signal–action relationship. Measuring d′ tells us about the information made available for a subject in the form of a signal or cue, on which to make a decision. The d′ value is dependent on both how different the stimulus classes are (e.g. how loud the tone is, or how strong the pheromone is) and how clearly these differences are represented by the nervous system (e.g. how accurately neurons represent the stimulus, sometimes referred to as ‘internal-noise’). SDT cannot reveal which of these is the limiting factor. It simply quantifies the overall sensitivity of the subject's perception to a stimulus difference.
The decision criterion is useful because it tells us about the subject's action: what do they do with the information? Unlike d’, the decision criterion is always under the subject's control. The choice of criterion is likely to depend on the circumstances. Overall performance is maximized if the criterion is placed to bisect the two distributions. By convention, SDT considers this to be a criterion of zero, because the decision is not biased towards either action. In the context of a laboratory test of hearing, being unbiased makes sense because the subject is trying to get as many trials correct as possible. However, in the context of behavioural ecology, not all errors are equally costly. An extremely conservative (positive c) criterion can sometimes make sense, as we shall see shortly. SDT does not seek to explain the selection pressures that set the criterion, but it does provide a simple means to measure it.
The power of the assumptions in this model is that one can unambiguously calculate the model parameters–sensitivity to the sensory cue (d′) and the decision criterion (c)––directly from empirical data on hit and false alarm rates (figure 1).
For normal distributions of equal variance, the calculations are:
| 2.1 |
and
| 2.2 |
where hits and false alarms are expressed as a probability or proportion (from 0 to 1). The function Z(.) is the ‘inverse of the cumulative normal distribution’ (sample R code is given in the electronic supplementary material). To illustrate Z(.) intuitively, the probability of a hit in figure 1b is 0.618. This value is the area (shaded red and blue) under the normal distribution from c upwards (to infinity). The criterion line (grey) is 0.3 s.d. below the mean of the distribution for stimulus class 2. Thus, Z(0.618) = 0.3. Conversely for the false alarms, the criterion line is 1.7 standard deviations above the mean of the distribution. This can be calculated from the blue-shaded region, which has an area of 0.045, and Z(0.045) = −1.7.
Thus, the power of SDT is that it converts empirical measurements of hit and false alarm rates into separate quantifications of sensory acuity (d′) and the decision rule for action (c). For a more detailed account, we highly recommend the very readable textbook by Macmillan & Creelman [25].
(b). Using signal detection theory to show how animals use information changes under different conditions
A good practical application of SDT is to disambiguate cue and decision rule changes across different contexts. For example, consider a predator who hunts using auditory or olfactory cues and whose main source of food fluctuates seasonally. One might hypothesize that in periods of plenty, they can afford to act only on salient cues, but in fallow periods, they might need to act on the faintest sound or smell: a change in the decision criterion (c). Alternatively, seasonal changes in prey odour or behaviour might alter the sensory cues themselves (d′).
We illustrate this use of SDT using a set of operant conditioning laboratory experiments on auditory perception in mammals. Operant conditioning methods are widely used in animal behaviour studies to pair a behaviour with a specific behavioural response: correct (but not incorrect) responses to a stimulus are reinforced by a reward [26]. Sensory perception experiments in psychology use this same approach to measure how the ability to perform a task depends on some stimulus parameter and then apply SDT to the data to ultimately determine the parameters and their relationships with the signal. We will examine how the sound level (loudness) of a tone pip affects the ability of ferrets to detect a tone in a background of noise; i.e. how sensitive their auditory perception is to the cue [27]. Such perceptual measurements are difficult and time consuming to collect for animal subjects and can depend on how well the animals are trained and/or the cognitive demands of the task. We wished to establish the accuracy of measuring the sensitivity of the auditory system, and how (if at all) the methods used were affecting the data. Therefore, we varied the task in a way that should not alter d’ if we were measuring stable perceptual sensitivity to the cue.
The ferrets (Mustela putorius) were trained in a forced choice task working for water rewards, to indicate whether they heard a tone in the background noise, or just background noise (see the electronic supplementary material, and also Alves-Pinto et al. [27] for details on experimental methods). After training, the level of the tone was varied systematically and the ferrets' performance in the task recorded using a computer. Ferrets then performed two different versions of the task which differed in the order by which test tones were presented. One version used the ‘method of limits’ (ML): ferrets were tested at a different tone level on different days, with the tone level getting lower (more difficult to detect) each day. The second version used the ‘method of constant stimuli’ (MCS): ferrets were presented with a similar range of sound levels in each behavioural session, with the sound level varying randomly from trial-to-trial. The perceptual sensitivity to presence of tones (d′) and how this varies with sound level should be the same for both methods, because the underlying representation of sound in the brain is unchanged. However, the decision criterion should depend on the method, and thus patterns of hits and false alarms are expected to be different.
The data show that the way hits and false alarms vary with sound level depends on the method used (figure 2a). As expected, d’ is the same irrespective of the method used (figure 2b). By contrast, the decision criterion (figure 2c) becomes increasingly conservative at higher sound levels for the method of constant stimuli (MCS), but remains virtually constant at all sound levels for the ML.
Figure 2.
SDT analysis of tone-in-noise detection in ferrets, showing how decision criterion depends on the method of data collection, but the measure of sensitivity d′ is consistent; these are consistent with the predictions of SDT. (a) Hit and false alarm rates versus the sound level of the tone for the two variants of data collection method. (b) The SDT calculation of d′ (cue sensitivity) for the two variants. (c) The SDT calculation of the decision criterion c. (d) Receiver operating characteristic curve measured for a ferret by varying the amount of water rewarded at each spout, for a tone at 0.60 dB SPL (d′ approx. 1). Points represent hit versus false alarm rates for individual sessions (diamonds) and from all trials at a given reward condition (black squares). The grey line represents the SDT model prediction for a d′ of 1.4.
Why would SDT predict the differences in decision criterion between the task variants? Recall that a criterion close to zero indicates an unbiased response which maximizes overall performance for the two stimulus classes under consideration. When presented with a single sound level on each session (ML), the ferret can optimize the decision criterion so that performance overall is always maximal. When presented with a mix of sound levels on different trials of a single session (MCS) the ferret must choose a single criterion regardless of the sound level. Thus, the criterion can only be unbiased at a single sound level (approx. 60 dB SPL). Overall, the robustness of the underlying cue sensitivity (d′) to varying methods of stimulus presentation supports the SDT model and shows that behaviour can be explained as a stable stimulus representation followed by an adaptable decision-making process.
Although designed for an experimental psychology question on the nature of perception, these contrasting methods have some relevance to ecology where sometimes a cue may be sporadic and variable in intensity as in MCS (e.g. stochastic variation in prey abundance [28]). At other times, it may be a cue that becomes increasingly weak as in ML (e.g. seasonal (often gradual) reduction in the population density and hence the cue intensity of a migratory prey or predator [29]). Thus, measuring how the decision criterion varies with the level of an experimental cue may provide insights into the behaviour and ecology of the signaller.
This analysis rests upon the assumption of equal variance normal distributions. A way to empirically test these assumptions is to try to alter the decision criterion experimentally, while keeping the stimuli the same. The equal variance SDT model predicts that the hit and false alarm rates will covary according to an exact relationship, which is determined by the normal distributions. Figure 2d shows the measurement of this relationship in one ferret (methods given in the electronic supplementary material). Tones are presented at a single sound level, and the ferret is encouraged to modify its decision criterion by experimentally altering the relative amounts of water available at the ‘yes’ and ‘no’ answer spouts from one test session to the next. Thus, when (for example) 5× as much water is available at the ‘yes’ spout, they are much more likely to answer there. Plotting hits against false alarms for different behavioural sessions with different reward ratios for the two responses makes it clear that these data follow a smooth parabola and fit reasonably well to the curve predicted by an equal variance SDT model with a d’ of 1.4. This curve is called the receiver operating characteristic (ROC). These data support that, to a good approximation, the ferret is behaving like an equal variance SDT model. Subsequent experiments further supported this ([2,30,31]; also see the electronic supplementary material).
3. Signal detection theory analysis of behavioural ecology in insects
Is this simple equal variance version of SDT of value in behavioural ecology? To our knowledge, there are no explicit tests to this effect; we address this below. In behavioural ecology, Reeve's CAT model [8] is the most widely used ‘signal-detection’ model. In the next section, we compare Reeve's CAT model with SDTs.
(a). Signal detection theory and the conspecific acceptance threshold model
Reeve sought to provide a theoretical framework for how environmental and evolutionary pressures would influence an animal's decisions: i.e. how the acceptance threshold should be set. He derived a mathematical framework describing how this threshold would be optimized according to the frequency of encounters between different classes of conspecifics (e.g. nest-mates and non-nest-mates) and the relative costs of different kinds of errors (e.g. accepting a non-nest-mate versus rejecting a nest-mate). Examples of these factors are illustrated in figure 1c. The optimal acceptance threshold will bisect the two distributions symmetrically if the costs of different kinds of error are equal. However, if the cost of making one error is much greater than the other, an overall optimal decision is to accept more errors of one class than the other; e.g. if the costs of accepting a non-nest-mate (e.g. from social parasitism) are greater than the cost of rejecting a nest-mate.
Although SDT acknowledges these factors, a mathematical framework for why a criterion should take a particular value is missing from SDT. Often, the criterion is seen as a confound in determining the underlying sensory acuity. In SDT an optimal and ‘unbiased’ decision is one which maximizes overall performance: SDT provides methods for directly calculating the decision criterion from the data and leaves the interpretation to the experimenter.
Another important difference is how SDT and CAT are applied in practice. In CAT, the underlying distributions could be normal (see [8, p. 413], or some other shape (figure 1c follows fig. 3 from [8]), and there is no expectation that the variance of two normal distributions would be the same (e.g. fig. 1 in [8]). The assumption of equal variance normal distributions is not ubiquitous in SDT, but the analytical power to separate sensitivity and criterion from a single-hit and single-false alarm probability depends on it.
CAT is a richer and more complete model of the process: it allows the consideration of the ecological costs and benefits of decisions. However, it also has numerous free parameters. SDT, in its most common guise, has no parameters to fit. Its analytical power follows from this simplicity. Often it is the complexities of nature which make it so interesting, and this is what CAT tries to capture. SDT is a more reductionist's approach to understanding behaviour. We now apply SDT to some published datasets on nest-mate recognition in social insects, to determine the extent to which it can explain signal perception and response in an ecological context. According to SDT, hits and false alarms analysed separately cannot be used to unambiguously infer changes in sensitivity to the cue, or decision criterion because hits and false alarms are affected by both. Some recent studies [32,33] recognize this problem but did not address it in their analysis. SDT provides the basis for separation of these factors. However, SDT has (as far as we have found) not been formally applied to analysis of insect behaviour. Therefore, we will now present test cases based on previously published data. The primary purpose here is not to re-evaluate scientific findings but to illustrate the application of SDT in behavioural ecology and to tentatively evaluate its value.
(b). Recognition and acceptance in the guard behaviour of insects
The ideas behind Reeve's model have been widely applied in analysing insect behaviour [34,35]. Of particular interest is guarding behaviour in social insect colonies, where nest-mates defend their colony from conspecific intruders who may seek to steal resources or parasitise (egg dump; cuckoo) the nest [36,37]. There is strong selection for colonies to evolve effective strategies to detect and repel non-nest-mates, who would otherwise exploit the colony's resources. When a guard encounters another conspecific, they may respond by accepting them into the nest, or aggressively rejecting them. By recording these actions, the ability to recognize kin and/or alter their acceptance thresholds in response to a changing environment can be determined. Such studies have found that recognition acuity can depend on the context of the judgements, and that acceptance thresholds can shift according to the costs associated with the decision, consistent with the CAT model. Many of these studies report ‘hit’ (e.g. successfully ejecting an intruder) or ‘false alarm’ (inadvertently ejecting a nest-mate) rates and compare them across conditions (e.g. in the nest or away from it). Typically behavioural differences in acceptance rates across experimental conditions are quantified using statistical analyses.
(i). Example: the effect of context on nest-mate recognition in honeybees and stingless bees
We start with an example of guard behaviour in honeybees. Couvillon et al. [11] studied how context affects recognition in honeybees (Apis mellifera) and stingless bees (Tetragonisca angustula). Here we shall apply SDT to their data on honeybees. A similar analysis of stingless bees is provided in the electronic supplementary material.
The discrimination of nest-mates from non-nest-mates was investigated in honeybees that were either in their natural context at the hive entrance, or in plastic test arenas away from the hive entrance. In the natural conditions, an experimenter introduced bees at the hive entrance near where the guard bees were located (the ‘hive’ condition). Introduced bees could be nest-mates from the same hive, or non-nest-mates collected from other hives. Acceptance or rejection of the introduced bee by the guard bees was scored by the experimenter. In the plastic test arena, the process was similar, except that the context for recognition was manipulated to assess how the presence/absence of colony odour or guard number (1 versus 2 bees) influenced acceptance. The authors found that guard bees of A. mellifera made more errors in nest-mate recognition when they were tested away from the hive: guards accepted more non-nest-mates. The presence of colony odour reduced these errors but guard number had no effect (primary data replotted in figure 3a). Viewed this way, the increase in false alarms might be interpreted as indicating a change in the acceptance threshold in a CAT framework.
Figure 3.
SDT analysis of guard behaviour in honeybees (A. mellifera) in different contexts [11]. (a) Original data expressed as acceptance rates for nest-mates (NM; blue) and non-nest-mates (NNM; red). Error bars are omitted for simplicity. (b) The same data expressed as proportion of correct responses (NM acceptance is unchanged; NNM proportion correct = 1 – acceptance rate). Yellow points and line show the mean of NM and NNM accuracy. (c) SDT models of behaviour, showing the probability distributions of sensory values, and the position of the decision criterion (i.e. acceptance threshold). (i) shows the behaviour at the hive entrance. Shaded areas indicate the areas associated with acceptance, corresponding to the proportion of hits (nest-mates) and false alarms (non-nest-mates). (ii) and (iii) show the behaviour in the non-hive context with and without odour, respectively. Guards do not affect sensitivity and thus the distributions (coloured lines) overlie closely for each odour condition. In (ii), the criterion (grey dashed lines) differ numerically with the guard condition; in (iii) they are indistinguishable. (d) SDT statistics for each condition. (i) shows the sensitivity to sensory cues d′; and (ii) shows the decision criteria c. Post-hoc tests (Bonferonni corrected) of the hive compared with the other conditions are shown above the points and a significant effect of odour on criterion (probit analysis described in main text) are indicated below the points.
Figure 3b replots these data to illustrate better the accuracy of recognition. Expressed in this way the nest-mate and non-nest-mate recognition can be averaged to produce an overall recognition accuracy (solid line), which makes it clear that recognition becomes less accurate when guards are away from the hive (again see [11] for quantification and more detailed analysis), and when there are no odour cues. Viewed in this way, the drop in recognition rates might be interpreted as a reduction in the salience of the sensory cues.
Which is the correct interpretation? Do the data indicate a change in the acceptance thresholds applied by the guards? Or are the guards less able to discriminate nest-mates from non-nest-mates? The decision criterion (c) and sensitivity (d′) of SDT, respectively, can tell us this.
Figure 3c(i) shows a pictorial representation of the SDT analysis for the hive condition. Here, it is most intuitive to consider ‘hits’ as correct acceptance of nest-mates (note that this is the opposite way around to the CAT in figure 1c where the internal variable is assumed to be dissimilarity to a nest-mate; SDT is symmetrical so we are free to choose the most intuitive labelling). A ‘false alarm’ is therefore the acceptance of a non-nest-mate. Hits and false alarms correspond to the area under each probability distribution to the right of the decision criterion. Using equations (2.1) and (2.2), we can calculate d’ and c directly from the acceptance rates:
Essentially, we have ‘fitted a model’ to the data: the model predicts the underlying sensory cues. Importantly, because we are assuming that both cues are normally distributed with equal variance, the model is parameter free. The d′ (=2.11) value quantifies the number of standard deviations separating the means of these distributions; this is a measure of the size of the sensory cue for discriminating nest-mates (right hand side curve) from non-nest-mate (left hand side curve) bees. The c value (=−0.34) describes the criterion as the number of standard deviations away from an optimal criterion which bisects the two distributions equally (i.e. c = 0); this is the threshold at which bees will be accepted. A value of −0.34 suggests that decisions are not strongly biased. Thus, SDT provides a complete description of these data in terms of sensitivity to the sensory cues (d′) and criterion threshold (c), as an alternative to acceptance rates.
To quantify the effects odour and guard number, we now repeat this analysis for the non-hive condition experiments (figure 3c(ii),(iii)). Plotting d′ and c across all experiments provides a clear picture of the effects of hive versus non-hive conditions on nest-mate discrimination by guards (figure 3d): d′ and c are both reduced compared with in-hive conditions, suggesting reduced sensitivity and an acceptance threshold that is more permissive. Using probit analysis [38], it is possible to confirm the statistical significance of changes in d′ ( p < 0.01) and c ( p < 0.0001) across the five experimental conditions (figure 3d shows Bonferroni corrected post-hoc comparisons with hive behaviour). Away from the hive, there is significant effect of odour on the decision criterion ( p < 0.0001) but not the number of guards ( p = 0.11). Changes in d′ do not reach significance ( p ≥ 0.122 for comparisons between all d′ pairs) away from the hive.
Couvillion and colleagues suggest three possible explanations for the increase in changes in behaviour away from the hive: that guards are missing salient cues; that being away from the nest results in reduced expression of aggressive behaviour by guards because the costs of aggression no longer outweigh the benefits of defending a colony; or that guards away from their hive are simply not behaving normally. The SDT approach allows us to clearly separate the contributions of changes in sensitivity to sensory cues and criterion (or acceptance thresholds) in a single analysis procedure. It supports two of these explanations simultaneously: there is both a reduction in the salience of the cues and an overall reduction in aggressive behaviour. One important next line of inquiry would be to determine whether this reduction in sensitivity is owing to lower quality physical cues, or a reduced neuronal capacity of guards to interpret the signal away from the hive. This might be achieved via independent manipulation of cues for recognition and the context of the recognition, paired with simultaneous electrophysiological recordings from neurons (e.g. [39]).
(ii). Are the assumptions underlying signal detection theory valid in behavioural ecology?
We have shown how SDT can be applied to behavioural data from insects, and how it putatively helps us to unpack differences in sensitivity to recognition cues versus decision criterion (acceptance thresholds). However, this comes with a caveat: we have not demonstrated that the model assumptions are valid. In particular: are the data consistent with the assumption of equal variance normally distributed sensory representation? Note that this does not require that the physical cues are normally and equally distributed; only that the variability of the internal representation of these cues in the nervous system is. Thus, this must be tested through behavioural measurements.
In our study of ferrets, we were able to construct ROC curves, shifting the decision criterion by experimentally varying the rewards. This showed that the shape of the ROC curve was consistent with the model assumptions (figure 1d). Another method for mapping out an ROC is to collect a measurement of subjects' confidence in their decision: ‘on a scale of 1–5, how sure are you that there was a tone?’
In the study of insect behaviour, a human observer must make a judgement about whether an insect ‘recognised’ another individual, based on an observation of behaviour. In the case of guarding, the response to a non-nest-mate should be aggression, which is expressed through a number of behaviours such as movement of the mandibles, biting or stinging. A count of each type of aggressive behaviour, therefore, may represent the insect's confidence in determining whether it has encountered a non-nest-mate or nest-mate. In a study on the guarding behaviour of carpenter ants, Rossi et al. [32] characterized the strength of the ants' responses in this manner, to a considerable level of detail. We will show how these data can be used to test the equal variance assumption made by SDT.
Figure 4a shows a subset of the data from Rossi and colleagues. It shows the proportion of occasions when guarding ants responded to an introduced ant with either no aggressive responses (0), or a single aggressive response (1), (2), (3) and so on. It is clear from this that ants performed aggressive responses more frequently when encountering non-nest-mates than nest-mates. By simple mathematical steps (see the electronic supplementary material), the number of aggressive responses can be used to derive hit and false alarm rates at different levels of confidence and construct ROC curves.
Figure 4.
Testing the assumptions of SDT using data on guard behaviour in ants [32]. (a) Original data expressed as the proportion of different aggressive responses grouped according to the number of responses made (0 = no response, 1 = 1 aggressive response etc.). (b) A diagrammatic SDT representation of ant responses to nest-mates (red) and non-nest-mates (blue), where the vertical dashed lines show different decision criterion, each corresponding to a different confidence level with a different number of actions (a selection are chosen for clarity). Shaded areas indicate the hits (red) and false alarms (blue) at the criterion level corresponding to four or more actions. Probability scale is in arbitrary units (AU). (c) ROC analysis of the data. Points show the hit and false alarm rates for a given criterion, with error bars showing bootstrapped 95% confidence interval. Solid grey line shows the ROC curve predicted by an equal variance SDT model with a d′ = 0.85. Dotted line shows d′ = 0.
An intuitive understanding of this analysis can be gained through visual representations of the data (figure 4b). The more confident an animal is that it has encountered a non-nest-mate, the more aggressive responses it will make. A given number of responses, therefore, corresponds to a certain confidence level, and in SDT, a confidence level corresponds to a specific decision criterion. For example, the shaded area under the distributions in figure 4b equals the hit (red) and false alarm (blue) rates for a confidence level corresponding to ‘four actions’. For the ants, a sensory cue of this magnitude or larger warrants four or more aggressive responses. Notice that a higher confidence level (e.g. nine actions; grey dotted lines in figure 4b) corresponds to a smaller proportion of the distributions, and hence lower hit and false alarm rates.
Figure 4c shows a ROC curve constructed from these data. Each point on the plot shows the hit (aggression toward a non-nest-mate) and false alarm (aggression toward a nest-mate) rates, for a different criterion threshold. For example, the top-right most point shows the proportion of hits and false alarms when ants make any aggressive response (minimum 1) at all. This corresponds to the lowest level of confidence. These hit (0.82; nest-mates) and false alarm rates (0.56; non-nest-mates) correspond to the height of the stacked bar plots for one action in figure 4a. This would be the hit and false alarm rates that we would record if the experimenter scored any response at all as a hit or false alarm. As we descend the points (leftwards and downwards) in figure 4c, each successive point represents a higher level of confidence. Thus, if experimenters only scored a hit or false alarm when the ants made four or more aggressive responses, then the hit and false alarm rates would be 0.38 and 0.1, respectively. Appropriately enough, the probability of observing higher confidence levels (more aggressive reactions) is lower: hits and false alarms are reduced. Together these data points prescribe a smooth parabola––a pattern of hit and false alarm rates as a function of the criterion threshold.
How do we test whether this ROC is consistent with the assumptions of SDT? Recall that for the case where the sensory cues are normally distributed with equal variance, this curve takes a particular shape for a given value of d′. Such a solid line is plotted in figure 4c. The mean data values fall quite closely to them and are within the bootstrapped 95% confidence intervals for the hit and false alarm rates. Rossi and colleagues also examined the ants' behaviour when exposed to formic acid; analyses of these data are shown in the electronic supplementary material. The electronic supplementary material also considers other ways of scoring the ants’ responses, such as considering the type of response made rather than just the number (which is picked here as the simplest, with the fewest assumptions). These data do not suggest any obvious failing of the model; indeed, they suggest that the conformation to equal variance in these data may be no worse than for ferrets in an operant conditioning task. This analysis provides some confidence to suggest that data from behavioural ecology studies can conform to the assumptions of SDT.
4. Concluding comments
We have demonstrated the potential value of using SDT––a widely used tool in experimental psychology, engineering and medicine––in behavioural ecology studies, using the example of guarding behaviour in social insects as a test case. Our analyses suggest that SDT has the potential to be a useful, theoretically motivated basis and valid method for separating sensitivity to recognition cues. SDT does not seek to explain the constraints on setting a decision threshold while CAT additionally provides an account of how the costs of decisions should influence decisions. Yet, SDT is simpler to apply quantitatively to data.
In re-analysing previously published results, we have proceeded with the assumptions of the ‘equal variance Gaussian’ model of signal detection. Strong undermining of these assumptions in psychological studies of perception is rare. The tests presented here suggest that the same may be true of insect behaviour. Nevertheless, it is important that these assumptions are tested further. Some data already exist to do this, and a logical next step is to perform a systematic and exhaustive review of the literature, and re-analysis of data where appropriate and possible. The equal variance assumption may prove widely valid, and simple d’ and c calculations may be valid from a single-hit and single-false alarm rate; or it may be necessary to collect data suitable for constructing ROCs in every case, and to apply more complex models (e.g. unequal variance models) than are used here. Equally, existing data from experiments that were not designed for ROC analysis may not yield definitive conclusions of any kind. For example, the detailed, fine-scale/multi-rank scoring of guarding behaviour used for constructing ROCs of ant behaviour is not as common in studies of guarding behaviour in bee and wasp colonies, partly because these are often more difficult to observe than in ants. A systematic re-analysis of existing data may be helpful in designing new ways of recording behaviour for such analyses.
Even if the assumptions of SDT turn out not to hold in behavioural ecology, this article has illustrated some of the flaws in the current thinking. Most obviously, changes in the acceptance threshold cannot be inferred from false alarm rates alone. SDT also illustrates how hit and false alarm acceptance rates separately cannot be used to unambiguously infer changes in either acceptance thresholds or sensitivity to sensory cues (recognition rates). If disambiguating these factors is important, then it is necessary to find a valid quantitative model. While equal variance SDT is probably the simplest of all such models that can be envisaged, more complex models are available. An unequal variance SDT model is possible and changes the ROC in a predictable way [25]. More generally, SDT is closely related to theories of statistical decision making, which provides a theoretical base for modern machine learning (a.k.a. ‘artificial intelligence’; [40]) methods. Bayesian methods, which are increasingly applied in behavioural ecology, neuroscience and machine learning, extend the power of decision models to account for prior knowledge and cost in a way which can encapsulate the environmental and evolutionary drivers which were formalized by the CAT model.
For the immediate future, we would argue that the value of equal variance SDT needs exploring first. It is important to test the SDT model against a much more extensive range of empirical measurements than was possible here. It may hold in some circumstances, but more complex models may be required in others. Of course, complexity comes at the cost of more model parameters, which require more data to fit unambiguously (the current extreme example of this being deep neural networks). It is the simplicity of the SDT model which allows for separation of sensory cue sensitivity and decision criterion with minimal data. Furthermore, following the truism that ‘all models are wrong’, the critical requirement is that the model complexity is matched sensibly to the experimental measurement error. Equal variance SDT may be the solution to what researchers in the field are already searching for [32]: a better way to interpret their data in terms of recognition and action.
Supplementary Material
Acknowledgements
The authors would like to thank Margaret Couvillon and Francisca Segers for providing us with their data, and Mark Hauber, Kern Reeve and three anonymous reviewers for careful reading of the manuscript. The operant conditioning data was collected by Ana Alves-Pinto.
Ethics
Behavioural experiments with ferrets were performed under PPL 40/3380 under authority from the UK Home Office.
Data accessibility
All the data and code are available at: https://doi.org/10.5281/zenodo.3648062. All data are with permission from the original authors.
Authors' contributions
C.J.S. and S.S. conceived and planned the work. C.J.S. performed all the data analysis and wrote the paper. S.S. helped write the paper.
Competing interests
We declare we have no competing interests.
Funding
We received no funding for this study.
References
- 1.Green DA, Swets JA. 1966. Signal detection theory and psychophysics. Oxford, UK: John Wiley. [Google Scholar]
- 2.Sollini J, Alves-Pinto A, Sumner CJ. 2016. Relating approach-to-target and detection tasks in animal psychoacoustics. Behav. Neurosci. 130, 393–405. ( 10.1037/bne0000143) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Scholes C, Palmer AR, Sumner CJ. 2015. Stream segregation in the anesthetized auditory cortex. Hear. Res. 328, 48–58. ( 10.1016/j.heares.2015.07.004) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Swets JA. 1996. Signal detection theory and ROC analysis in psychology and diagnostics: collected papers. Hillsdale, NJ: Erlbaum Associates. [Google Scholar]
- 5.Singh SN, Churchill GAJ. 1986. Using the theory of signal detection to improve ad recognition testing. J. Mark. Res. 23, 327–336. ( 10.1177/002224378602300402) [DOI] [Google Scholar]
- 6.Wixted JT, Mickes L. 2015. Evaluating eyewitness identification procedures: ROC analysis and its misconceptions. J. App. Res. Mem. Cognit. 4, 318–323. ( 10.1016/j.jarmac.2015.08.009) [DOI] [Google Scholar]
- 7.Schonhoff T, Giordano A. 2007. Detction and estimation theory. New York, NY: Peason. [Google Scholar]
- 8.Reeve HK. 1989. The evolution of conspecific acceptance thresholds. Am. Nat. 133, 407–435. ( 10.1086/284926) [DOI] [Google Scholar]
- 9.Starks PT, Fischer DJ, Watson RE, Melikian GL, Nath SD. 1998. Context-dependent nestmate-discrimination in the paper wasp, Polistes dominulus: a critical test of the optimal acceptance threshold model. Anim. Behav. 56, 449–458. ( 10.1006/anbe.1998.0778) [DOI] [PubMed] [Google Scholar]
- 10.D'Ettorre P, Brunner E, Wenseleers T, Heinze J. 2004. Knowing your enemies: seasonal dynamics of host-social parasite recognition. Naturwissenschaften 91, 594–597. ( 10.1007/s00114-004-0573-1) [DOI] [PubMed] [Google Scholar]
- 11.Couvillon MJ, Segers FHID, Cooper-Bowman R, Truslove G, Nascimento DL, Nascimento FS, Ratnieks FLW. 2013. Context affects nestmate recognition errors in honey bees and stingless bees. J. Exp. Biol. 216, 3055–3061. ( 10.1242/jeb.085324) [DOI] [PubMed] [Google Scholar]
- 12.Engel KC, Manner L, Ayasse M, Steiger S. 2015. Acceptance threshold theory can explain occurrence of homosexual behaviour. Biol. Lett. 11, 20140603 ( 10.1098/Rsbl.2014.0603) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Mora-Kepfer F. 2014. Context-dependent acceptance of non-nestmates in a primitively eusocial insect. Behav. Ecol. Sociobiol. 68, 363–371. ( 10.1007/s00265-013-1650-2) [DOI] [Google Scholar]
- 14.Price JJ. 2013. Why is birdsong so repetitive? Signal detection and the evolution of avian singing modes. Behaviour 150, 995–1013. ( 10.1163/1568539X-00003051) [DOI] [Google Scholar]
- 15.Coombs S. 1999. Signal detection theory, lateral-line excitation patterns and prey capture behaviour of mottled sculpin. Anim. Behav. 58, 421–430. ( 10.1006/anbe.1999.1179) [DOI] [PubMed] [Google Scholar]
- 16.McGuire L, Van Gossum H, Beirinckx K, Sherratt TN.. 2006. An empirical test of signal detection theory as it applies to Batesian mimicry. Behav. Process. 73, 299–307. ( 10.1016/j.beproc.2006.07.004) [DOI] [PubMed] [Google Scholar]
- 17.McNamara JM, Trimmer PC. 2019. Sequential choices using signal detection theory can reverse classical predictions. Behav. Ecol. 30, 16–19. ( 10.1093/beheco/ary132) [DOI] [Google Scholar]
- 18.Trimmer PC, Ehlman SM, McNamara JM, Sih A. 2017. The erroneous signals of detection theory. Proc. R. Soc. B 284, 20171852 ( 10.1098/Rspb.2017.1852) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Sih A, Trimmer PC, Ehlman SM. 2016. A conceptual framework for understanding behavioral responses to HIREC. Curr. Opin. Behav. Sci. 12, 109–114. ( 10.1016/j.cobeha.2016.09.014) [DOI] [Google Scholar]
- 20.Wiley RH. 2006. Signal detection and animal communication. Adv. Stud. Behav. 36, 217–247. ( 10.1016/S0065-3454(06)36005-6) [DOI] [Google Scholar]
- 21.Wiley RH. 2013. A receiver-signaler equilibrium in the evolution of communication in noise. Behaviour 150, 957–993. ( 10.1163/1568539X-00003063) [DOI] [Google Scholar]
- 22.Kikuchi DW, Malick G, Webster RJ, Whissell E, Sherratt TN. 2015. An empirical test of 2-dimensional signal detection theory applied to Batesian mimicry. Behav. Ecol. 26, 1226–1235. ( 10.1093/beheco/arv072) [DOI] [Google Scholar]
- 23.Fletcher RJ, Maxwell CW, Andrews JE, Helmey-Hartman WL. 2013. Signal detection theory clarifies the concept of perceptual range and its relevance to landscape connectivity. Landscape Ecol. 28, 57–67. ( 10.1007/s10980-012-9812-6) [DOI] [Google Scholar]
- 24.Rosa P, Koper N. 2018. Integrating multiple disciplines to understand effects of anthropogenic noise on animal communication. Ecosphere 9, e0212710 ( 10.1002/ecs2.2127) [DOI] [Google Scholar]
- 25.Macmillan NA, Creelman CD. 2005. Detection theory: a user's guide. Mahwah, NJ: Lawrence Erlbaum Associates. [Google Scholar]
- 26.Stebbins WC. 1970. Principles of animal psychophysics. In Animal psychophysics: the design and conduct of sensory experiments (ed. WC Stebbins), pp. 1–19. Boston, MA: Springer. [Google Scholar]
- 27.Alves-Pinto A, Sollini J, Sumner CJ. 2012. Signal detection in animal psychoacoustics: analysis and simulation of sensory and decision-related influences. Neuroscience 220, 215–227. ( 10.1016/j.neuroscience.2012.06.001) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Coblentz KE. 2020. Relative prey abundance and predator preference predict individual diet variation in prey-switching experiments. Ecology 101, e02911 ( 10.1002/ecy.2911) [DOI] [PubMed] [Google Scholar]
- 29.Hulthen K, Chapman BB, Nilsson PA, Vinterstare J, Hansson LA, Skov C, Brodersen J, Baktoft H, Bronmark C. 2015. Escaping peril: perceived predation risk affects migratory propensity. Biol. Lett. 11, 20150466 ( 10.1098/rsbl.2015.0466) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Mill RW, Alves-Pinto A, Sumner CJ. 2014. Decision criterion dynamics in animals performing an auditory detection task. PLoS ONE 9, e114076 ( 10.1371/journal.pone.0114076) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Sumner CJ, Wells TT, Bergevin C, Sollini J, Kreft HA, Palmer AR, Oxenham AJ, Shera CA. 2018. Mammalian behavior and physiology converge to confirm sharper cochlear tuning in humans. Proc. Natl Acad. Sci. USA 115, 11 322–11 326. ( 10.1073/pnas.1810766115) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Rossi N, Baracchi D, Giurfa M, d'Ettorre P. 2019. Pheromone-induced accuracy of nestmate recognition in carpenter ants: simultaneous decrease in Type I and Type II errors. Am. Nat. 193, 267–278. ( 10.1086/701123) [DOI] [PubMed] [Google Scholar]
- 33.Larson J, Fouks B, Bos N, d'Ettorre P, Nehring V. 2014. Variation in nestmate recognition ability among polymorphic leaf-cutting ant workers. J. Insect. Physiol. 70, 59–66. ( 10.1016/j.jinsphys.2014.09.002) [DOI] [PubMed] [Google Scholar]
- 34.Downs SG, Ratnieks FLW. 2000. Adaptive shifts in honey bee (Apis mellifera L.) guarding behavior support predictions of the acceptance threshold model. Behav. Ecol. 11, 326–333. ( 10.1093/beheco/11.3.326) [DOI] [Google Scholar]
- 35.Couvillon MJ, Robinson EJH, Aktinson B, Child L, Dent KE, Ratneiks FLW. 2008. En guarde: rapid shifts in honeybee, Apis mellifera, guarding behaviour are triggered by the onslaught of conspecific intruders. Anim. Behav. 76, 1653–1658. ( 10.1016/j.anbehav.2008.08.002) [DOI] [Google Scholar]
- 36.Cini A, Gioli L, Cervo R. 2009. A quantitative threshold for nest-mate recognition in a paper social wasp. Biol. Lett. 5, 459–461. ( 10.1098/rsbl.2009.0140) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Pirk CWW, Neumann P, Hepburn R. 2007. Nestmate recognition for eggs in the honeybee. Behav. Ecol. Sociobiol. 61, 1685–1693. ( 10.1007/s00265-007-0399-x) [DOI] [Google Scholar]
- 38.DeCarlo LT. 1998. Signal detection theory and generalized linear models. Psychol. Methods 3, 186–205. ( 10.1037/1082-989x.3.2.186) [DOI] [Google Scholar]
- 39.Hussaini SA, Menzel R. 2013. Mushroom body extrinsic neurons in the honeybee brain encode cues and contexts differently. J. Neurosci. 33, 7154–7164. ( 10.1523/Jneurosci.1331-12.2013) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Duda RO, Hart PE, Stork DG. 2001. Pattern classification. New York, NY: Wiley. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
All the data and code are available at: https://doi.org/10.5281/zenodo.3648062. All data are with permission from the original authors.




