Abstract
Several studies have suggested that vertebrate and invertebrate species may possess a number sense, i.e. an ability to process in a non-symbolic and non-verbal way the numerousness of a set of items. However, this hypothesis has been challenged by the presence of other non-numerical continuous physical variables, which vary along with numerosity (i.e., any change in the number of visual physical elements in a set naturally involves a related change in visual features such as area, density, contour length and convex hull of the stimulus). It is therefore necessary to control and manipulate the continuous physical information when investigating the ability of humans and other animals to perceive numerousness. During decades of research, different methods have been implemented in order to address this issue, which has implications for experiment replicability and inter-species comparisons, since no general standardized procedure is currently being used. Here we present the ‘Generation of Numerical Elements Images Software’ (GeNEsIS) for the creation of non-symbolic numerical arrays in a standardized and user-friendly environment. The main aim of this tool is to provide researchers in the field of numerical cognition a manageable and precise instrument to produce visual numerical arrays controlled for all the continuous variables. Additionally, we implemented the ability to actively guide stimuli presentation during habituation/dishabituation and dual-choice comparison tasks used in human and comparative research.
Supplementary Information
The online version contains supplementary material available at 10.3758/s13428-021-01580-y.
Keywords: Number sense, Numerical abilities, Number comparison, Quantity discrimination, Approximate number system (ANS), Continuous physical variables, Standardized method, Numerical stimuli generator, MATLAB GUI
Introduction
The ability to operate with numerical information is an essential skill to deal with our everyday lives. However, the symbolic numerical system and the formal arithmetic developed by humans are believed to be rooted in a more ancient and possibly innate numerical ability, the so-called number sense (Dehaene, 1997). This sense of numbers is a non-symbolic, language-independent and evolutionarily conserved ability that allows humans and other animals to represent numerical sets of physical items in the surrounding environment (Ferrigno & Cantlon, 2017; Vallortigara, 2014, 2017). Animals, both vertebrates and invertebrates, can take advantage of this ability in order to optimize foraging decisions (vertebrates: Garland et al., 2012; Gazzola et al., 2018; Hanus & Call, 2007; Stancher et al., 2015; invertebrates: Bar-Shai et al., 2011; Hemptinne et al., 1992; Nelson & Jackson, 2012), conflicts between groups, defensive strategies (vertebrates: McComb et al., 1994; Potrich et al., 2015; Wilson et al., 2002; invertebrates: Tanner, 2006), mating competition (vertebrates: Flay et al., 2009; invertebrates: Carazo et al., 2009) and parental care (Lyon, 2003).
It has been hypothesized that the number sense is actually instantiated in an approximate number system (ANS), a non-verbal mechanism that allows one to estimate and represent the numerosity of sets of physical elements, which obeys Weber’s Law (Gallistel, 1990), i.e. as the ratio between the numbers to be discriminated increases, response times increase and accuracy decreases (e.g., discriminating 5 vs. 15, with a 0.33 ratio, is easier than discriminating 10 vs. 20, with a 0.5 ratio; Gallistel & Gelman, 1992; for general reviews see e.g. Butterworth, 1999; Hyde, 2011; Nieder & Dehaene, 2009). Evidence for a dedicated neural network for processing numerical information involving parietal and prefrontal cortical regions has been reported in humans (Arsalidou & Taylor, 2011; Piazza & Eger, 2016) and non-human primates (Wang et al., 2015). Furthermore, neurons that show tuned selectivity to specific numerousness have been described in both humans (see Nieder, 2016 for review) and non-human species, such as primates (Viswanathan & Nieder, 2013) and corvids (Ditz & Nieder, 2015; Wagener et al., 2018). Recently, evidence for neurons sensitive to numerousness has been reported in the dorso-central pallium of zebrafish (Messina et al., 2020a, 2020b).
The evidence supporting non-symbolic numerical estimation in a variety of species is robust; however, specifying the precise nature of what is actually estimated is challenging, since it has been argued that estimation may be guided by non-numerical continuous physical variables, such as the amount of stimulus extension in space (Leibovich et al., 2017). The debate regarding the existence of a number sense is rooted in a methodological issue for which it is empirically impossible to separate numerical information from all other continuous properties at once, making it difficult to study the non-symbolic numerosity processed in isolation from continuous magnitudes. In a natural environment, a change in numerosity of a set of items usually involves a change in the overall items’ properties (such as volume, area and perimeter) that co-varies with numbers: five objects normally occupy a larger space than three objects. At the same time, if the elements are displaced at the same distance one from the others, the global occupied field (known also as convex hull) will be different, and inversely, by pairing the global field, the larger group will present a higher density.
As an alternative to the number sense theory, some authors have suggested that numbers are estimated and compared by combining the different sensory cues comprising the numerical value using a sensory-integration-system (Gebuis et al., 2016). According to another hypothesis, numerosities and magnitudes would be processed holistically, thus arguing that it would be more appropriate to refer to a sense of magnitude than to a sense of number (Leibovich et al., 2017). Evidence supporting a broader processing of numerosity and continuous magnitudes has been reported by several studies. Using an algorithm capable of generating dot arrays in which continuous variables might be congruent or incongruent with the number of elements in the set, Gebuis and Reynvoet (2011, 2012) showed that the participants’ judgement was influenced by the visual properties of the elements’ arrays. Continuous magnitude appears to influence performance even with numerosities in the subitizing range (Leibovich et al., 2015; Salti et al., 2017). Studies carried out in humans and different animal species have shown that numerical tasks might be influenced by non-numerical cues such as the overall surface area (Feigenson et al., 2002; Stevens et al., 2007; Tokita & Ishiguchi, 2010), the individual size (Beran et al., 2008; Henik et al., 2017), the spatial frequency (Felisatti et al., 2020), and the density of the elements array (Dakin et al., 2011; Gómez-Laplaza & Gerlai, 2013).
This debate between sense of number and sense of magnitude is leading researchers to pay particular attention to the control of continuous physical variables. The simultaneous balancing of all these variables at the same time, however, is not viable: for instance, when the convex hull of the stimuli increases, the density decreases and vice versa; similarly, when the overall area of two sets of elements with different numerousness is balanced, their overall contour length would differ (Gebuis et al., 2014; Leibovich & Henik, 2014; Mix et al., 2002). It is therefore important to set up control conditions in which the different continuous physical variables are randomized and contrasted with numerousness as such to rule out their possible use as non-numerical cues that may guide the discrimination.
The most common solution to the issue of continuous physical variables is to use sets of numerical stimuli controlled, in turn, for some (and different) visual features. The principle strategy is to make these continuous variables uninformative cues for discriminative judgement.
The use of computerized methods to create visual sets of stimuli allows reasonable advantages. In the last years, new algorithms have been developed for this purpose (see for example De Marco & Cutini, 2020; DeWind et al., 2015; Guillaume et al., 2020; Salti et al., 2017; see Table 1 for a comparison). These algorithms are usually based on strict mathematical constraints that tolerate a certain amount of error, usually minimal (e.g. up to a ± 0.001% pixel tolerance limit; De Marco & Cutini, 2020). Mathematical calculation also allows a standardized procedure to evaluate the continuous variables in the group of elements; thus, the experimenter can study their impact on the subjects’ performance, as well as being provided with a general method that makes it possible to study intra- and inter-species differences. This minimizes the impact of biased errors and experimental procedure differences (De Marco & Cutini, 2020; Guillaume et al., 2020).
Table 1.
The green check symbol indicates the ability of the program to perform the corresponding task, while the red cross indicates the absence of that tool. The yellow check indicates a limited possibility for the corresponding task: for instance, NASCO does not present the ability to select a custom total perimeter value, but since in this software the radius is fixed inside an array, the perimeter could be indirectly controlled; in Salti's software, instead, the controlled variables are not fully settable since the program only allows fixing their ratio across numerosities. With density, we refer here to a measure of mean occupancy, as slightly differently defined in the corresponding papers (De Marco & Cutini, 2020; Gebuis & Reynvoet, 2012; Guillaume et al., 2020; Salti et al., 2017), while with inter-distance we refer to the definition ‘most geometrically close to distance‘ that we gave (or similar definitions that can be found such as in De Marco and Cutini (2020), even if only presented in output and thus not directly controlled)
An example of these recent tools is given by Guillaume et al. (2020); despite taking into careful account the influence of several continuous variables, such as area, size, convex hull and each element’s spatial occupancy, the program does not allow proper control of the internal size of elements, producing arrays composed of identical items. This may cause important differences in terms of spatial frequency.
An alternative tool was developed by De Marco and Cutini (2020), allowing a flexible creation of dot arrays; however, this program lacks some important features, such as an active control of the items' inter-distance, the minimum and maximum distance that can divide neighbour elements, as well as a fixed minimum and/or maximum dimension of elements. Besides, this program does not present an interactive interface that allows a non-expert user to simply interact with the program.
The main goal of the algorithm we present here, GeNEsIS (Generation of Numerical Elements Images Software, GeNEsIS), would be to provide an alternative tool that integrates all the aforementioned features, helping in solving the issues related to the creation of numerical stimuli. The program will guide the user throughout the creation of sets of elements with a user-friendly interface, making it possible to freely utilize the output images for different purposes. Moreover, it provides a tool to perform the stimuli presentation on screen through two of the most common experimental methods: a habituation/dishabituation task and a simultaneous dual-choice discrimination task. We believe that our software is a step towards a standardization of stimulus presentation in the study of numerical cognition. It improves the way in which experiments can be designed and controlled with respect to previous programs, adding more flexibility and a wider handling spectrum on continuous physical variables on which the experimenter could act (see Table 1 for a schematic comparison between the main existing programs, and Fig. 5 for accuracy comparisons among the most recent ones).
Materials and methods
We present a custom program (GeNEsIS) written in MATLAB (MATLAB R2019a, The MathWorks Inc., Natick, MA, USA), using Appdesigner. GeNEsIS is user-friendly, with a step-by-step tutorial; both the program code and the tutorial can be freely downloaded from https://github.com/MirkoZanon/GeNEsIS.
Using GeNEsIS, the user can create stimuli with completely custom characteristics, precisely controlling all the relevant parameters and physical variables like convex hull, density, mean inter-distance, total surface area and total perimeter (see Fig. 1 for an example of each controllable variable; program accuracy in a stimuli generation sample is shown in the Supplementary Materials; see Fig. 1 Supplementary Materials). GeNEsIS is easy to use and allows great flexibility in stimuli creation. Moreover, the program implements a tool to perform automatized experiments using habituation/dishabituation and simultaneous discrimination procedures; the script can also be adapted and modified to fulfil different user necessities in presenting stimuli in many different ways. The presentation on screen exploits Psychtoolbox-3 (the Psychophysics Toolbox extensions; Brainard, 1997; Kleiner et al., 2007; Pelli, 1997). Notably, the main tool to generate controlled stimuli is completely unrelated to any specific experiment or theory; thus it has a huge applicability spectrum and the creation of stimuli can be adapted to different theoretical frameworks.
The program works with MATLAB 2019 or more recent versions, and it has been thoroughly tested and proven to function in both Windows PC (e.g. Windows 10 Intel® Core™ i7-3770 - CPU: 3.4 GHz - RAM: 8 GB and Intel® Core™ i5-4570 - CPU: 3.2 GHz - RAM: 8 GB) and Mac (e.g. MacBook Pro Intel® Core™ i7 - CPU: 2.6 GHz - SSD: 512 GB - RAM: 16 GB and Intel® Core™ i5 - CPU: 2.7 GHz - RAM: 8 GB) environments.
The controlled physical variables
GeNEsIS allows complete control over six main continuous variables (i.e. inter-distance, convex hull, density, radius, total perimeter and total area) and many other additional parameters (i.e., number of items in the array, shape and colour, arena type and dimension, accepted error and number of generations). Here we report a summary of all the parameters that the user can access and control, explaining how they are calculated.
Inter-distance (ID): the average of the distances between all the possible pairs of elements (Fig. 1a). These are calculated as the Euclidean distances between the element centres. ID is not defined for one element.
Convex hull (CH): the area of the smallest convex polygon containing all the elements (Fig. 1b); it is calculated through the convhull() MATLAB function using the points of all the elements’ perimeters. Thus, it can be seen as the surface area defined by the outermost stimuli perimeters. If only one element is presented, the CH value corresponds to its area.
Density (D): the physical definition of elements’ density in a two-dimensional space, i.e. the number of elements (n) divided by the total occupied area (D = n/CH), (Fig. 1c). D is not defined for one element.
Radius: the specific dimension of the elements. For the circular shapes it is the proper circle radius (Fig. 1d); for squares, diamonds and triangles it refers to the side dimension of the shapes.
Total perimeter (TP): the sum of the perimeters (contours) of all elements (Fig. 1e).
Total area (TA): the sum of the areas (surfaces) of all elements (Fig. 1f).
Additional controls of secondary variables can be applied, concerning the following points:
Number of elements: number of elements in the visual array (the user is allowed to select 1 to n possible elements).
Arena radius: the dimension of the field in which elements are created; it is possible to choose a circular or squared arena (in which case the term ‘radius’ refers to half the square side). The colour can be set using the RGB colour code.
Shape and colour: the characteristics of elements that can be created, choosing between circles, squares, rotated squares (diamonds) and equilateral triangles. Completely custom colours can be set in RGB code.
Accepted error: the tolerance of the program. Variables differing from the set value less than the ‘accepted error’ percent are considered to fulfil the requirements.
Generations: the number of stimuli that are created at a time.
GeNEsIS workflow
The program is structured in three steps: the computation of the stimuli with controlled physical variables (GeNEsIS_create), the saving of the final images with a custom layout (GeNEsIS_save) and the optional presentation of images on screen for experimental use (GeNEsIS_display).
First step: the computation of stimuli with controlled geometrical characteristics
This step is performed with GeNEsIS_create. Here the user will be guided through two passages (Fig. 2): the control of elements’ distribution and of their shape. The first step allows the creation of stimuli distribution in space (controlling points’ convex hull, density, inter-distance), while the second step allows the control of area, perimeter, type of shape, and finally to eventually adjust the shaped elements’ distribution to match the selected convex hull (see later for a detailed discussion).
In the first passage, after setting the arena dimension and shape (i.e., circular or squared arena), and the number of elements, the script will continuously generate configurations with these characteristics, keeping only the ones fulfilling the spatial distribution constraints. It will stop after collecting the selected number of generations. Later, it will further discard the ones that do not meet the chosen shape/geometrical constraints (see below). For this reason, it would be desirable to perform a big number of generations in order to obtain a final pool of a reasonable number of items. Since this could take a long time, an ‘accepted error’ option is settable in order to keep also configurations differing from the set constraints by an error smaller than the accepted one. Already, with an accepted error of 0.01%, there is a huge improvement in the computational time (for example, when applying this threshold, the computational speed more than doubles in most cases). As noted, all the variables are calculated here for point distributions.
In the second passage, the geometrical characteristics of the elements like shape, dimensions, areas and perimeters can be set. It is also possible to impose strong constraints on the radii. If the elements do not have a fixed radius, a mean radius and a variability can be chosen. The program will try to generate the elements with radii belonging to a Gaussian distribution with that mean and sigma (variability). Also, the minimum and maximum radius for the elements arrays are settable and can be maintained fixed across arrays (Fig. 6). Every time the user changes the parameters and re-computes the elements, a new random set fulfilling the user's constraints is generated on the same positions. A fundamental step to improve the program precision when controlling the CH is the refinement of the elements’ positions. If the user chooses a fixed CH, only the initial disposition of points (in the previous passage) will fulfil that value. However, when shaping the elements around these points, their extensions in space increase and so does the effective CH. For this reason, the ‘real’ CH (i.e., considering the shapes’ perimeters) is recalculated in this second passage, and the elements’ positions are moved by small steps towards their centre of mass until the desired CH is matched. In this way, GeNEsIS will give a more precise estimation of the CH (with a negligible error at the pixel level, related to the set tolerance), considering the physical extension of all the elements. If the user does not select a fixed CH, the program will simply calculate and update the effective CH value. Saving these data, a MATLAB GeNEsIS file is created, ready to be used to customize layout characteristics as reported in the second step.
Second step: saving the final images with custom layout
This step is performed with GeNEsIS_save. After the creation of the stimuli pools, it is possible to save the created stimuli configurations as images ready to be presented during the experiment. Here, the effective dimensions, colours and other graphic characteristics can be chosen simultaneously for two different sets (Fig. 3). The tool allows for the greatest flexibility in colour customization, and moreover makes it possible to save different configurations of images as single or multiple stimuli in different orientations (horizontal or vertical). The output can be a PNG image file or a MATLAB matrix of images, ready to be used in an automated presentation with a computer. The elements’ dimensions in the output image can be precisely optimized, setting the output canvas dimension in pixels and the corresponding effective dimension in centimetres. In this way, fixing the desired effective dimension of the arena -taken as reference-, the user will obtain a figure with the exact final size. An Excel file is also saved in output as reference, with all the relevant characteristics of all the generated stimuli.
Third step: the presentation of stimuli on screen
This step is performed with GeNEsIS_display. This supplementary tool, exploiting Psychtoolbox, allows the user to perform classical experiments on numerosity with the GeNEsIS stimuli (Fig. 4).
Two type of experimental paradigms can be implemented: the ‘habituation/dishabituation’ task and the ‘simultaneous dual-choice discrimination’ task, which are widely used in developmental and comparative cognition (Giurfa, 2019; Halberda & Feigenson, 2008; Messina et al., 2020b; Potrich et al., 2015; Xu & Spelke, 2000). The former implies the presentation of sets of stimuli whose physical properties all change from trial to trial, while maintaining the numerosity unchanged throughout the trials. During the dishabituation phase, novel stimuli with different characteristics (i.e., novel number of elements) are presented. The latter paradigm allows the user to display and visually compare two sets of stimuli that can differ in number. The stimuli to be compared can be balanced for one or more physical aspects and randomized among the session’s trials. The user can load different files created with GeNEsIS, up to four sets (numerosities) and choose the ones to present; the number of images per set is settable as well. In both experiments, the user can proceed to a subsequent trial, by pressing the keyboard or automatically, choosing the times of images presentation and pause. Again, all the sequences of stimuli presented during the experiments can be saved as an Excel file containing all relevant variables during the different presentation trials to help in the final evaluation of the experiment.
These are only two examples of experimental paradigms implemented using our program. The stimuli creation can be adapted for various needs and a large number of different experimental paradigms. Moreover, as reported above, the stimuli can also be saved as image files (PNG) and printed or used with other software (even different from GeNEsIS) to perform the final experiments.
Results
Comparison with existing tools
As previously reported, many available programs have different useful characteristics, but are not distilled into a suite of ideal tools for full control over the main continuous variables. With our software, we include all the main useful characteristics, adding additional features to refine the experimental design. We reported in Table 1 a sketched comparison of the main available programs developed so far (De Marco & Cutini, 2020; Gebuis & Reynvoet, 2012; Guillaume et al., 2020; Salti et al., 2017), focusing on the main tools a program could embed.
We also performed a comparison simulation with the two most recent (and most flexible, given the wider range of applications) programs (De Marco & Cutini, 2020; Guillaume et al., 2020). The outcome of the comparison is reported in Table 1.
The goal of the simulation was to create different arrays for three numerosities (5, 10, 20 elements), keeping constant the convex hull (controlled at 150000 pixels) and the total area (controlled at 20000 pixels) across quantities. In order to compare the simulations at the same level, and since NASCO (Guillaume et al., 2020) can only create dots with a constant radius inside an array, the array’s elements radius was kept constant in all simulations. For each numerosity, we created 100 images in order to collect the final output average and relative standard error. To test the fine precision of the different software, the error tolerance was set at 0.0001% for GeNEsIS, or the minimum possible reached by others.
The results are shown in Fig. 5, with the relative graphs representing the controlled features (convex hull and total area). In all the simulations, GeNEsIS showed high accuracy among the numerosities created, both when controlling the convex hull and when controlling the overall area.
It is interesting to note, across all these simulations, the very high accuracy of GeNEsIS (though the magnitude of errors is probably negligible in most cases; see Fig. 5).
We especially stress the usefulness of GeNEsIS for the wide range of tools it could provide compared with the other existing software (see Table 1) and the flexibility with which it can be used in many different contexts.
Examples of stimuli creation for different theoretical frameworks
Physical variables controlled in combination
As previously reported, GeNEsIS controls different variables independently (see Fig. 1). Given the flexibility of the program, the user could also control custom combinations of these variables, with the only limitations given by the geometry and visual properties of the elements’ arrays (for example, it will never be possible to simultaneously fix total area and total perimeter given their geometrical characterization: as the first varies with the second power of the radius, the second varies linearly). A comprehensive overview is summarized in Table 2, in which the most significant variables are considered and coupled in accordance with their geometrical limitations. An example of multiple controls between numerosities 3 and 5 is also reported (Fig. 6).
Table 2.
TA | TP | |||||||
ID | TA+ID | TP+ID | ||||||
D | TA+D | TP+D | ||||||
CH | TA+CH | TP+CH | Rmin | Rmax | Rmin+Rmax | Requal | Rfree | |
TA+ID | TA+ID+Rmin | TA+ID+Rmax | TA+ID+Rmin+Rmax | TA+ID+Requal | TA+ID+Rfree | |||
TA+D | TA+D+Rmin | TA+D+Rmax | TA+D+Rmin+Rmax | TA+D+Requal | TA+D+Rfree | |||
TA+CH | TA+CH+Rmin | TA+CH+Rmax | TA+CH+Rmin+Rmax | TA+CH+Requal | TA+CH+Rfree | |||
TP+ID | TP+ID+Rmin | TP+ID+Rmax | TP+ID+Rmin+Rmax | TP+ID+Requal | TP+ID+Rfree | |||
TP+D | TP+D+Rmin | TP+D+Rmax | TP+D+Rmin+Rmax | TP+D+Requal | TP+D+Rfree | |||
TP+CH | TP+CH+Rmin | TP+CH+Rmax | TP+CH+Rmin+Rmax | TP+CH+Requal | TP+CH+Rfree |
We consider different combinations of inter-distance (ID), density (D), convex hull (CH), total area (TA), total perimeter (TP) and radius (R) (the last of which can be free to vary or equal inside an array; Rmin and Rmax refer to the ability to fix the minimum and maximum radius in the array). GeNEsIS can handle all these kinds of configurations, and even many other possible custom configurations that are less restrictive than these. The control of more variables at a time, different to the ones reported here, is not allowed given the geometrical limitations of these variables (i.e., their reciprocal dependency and their different covariation with numerosity)
Tests were additionally performed on the multiple control of different variables across numerosities, and all the main possible configurations were created. An exemplification of simulation for some of the most relevant combinations is reported in the Supplementary Material (Supplementary Fig. 1), where the accuracy of GeNEsIS in handling fixed variables and how the free variables vary across numerosities can be seen.
Creation of congruent and incongruent stimuli
Another possible use of GeNEsIS is given by the creation of sets of stimuli whose numerosity may vary congruently or incongruently with non-numerical physical variables. In order to report an example of this approach, we performed a simulation with 20 vs. 40 dots considering their total area as the continuous variable of interest. In Fig. 7a, the reference numerosity 20 is depicted with a fixed total area of 600 px; Fig. 7b shows a balanced stimulus with 40 dots, in which the numerosity doubles but the total area is still constant at 600 px (overall surface area is equal between the two numerosities). If instead one would create a congruent stimulus, this can be done by increasing the total area as the numerosity increases (Fig. 7c: the total area doubles with numerosity); on the contrary, it is possible to create incongruent stimuli by decreasing the overall area as the numerosity increases (Fig. 7d shows a stimulus incongruent for the total area).
This idea can be applied to every kind of variable and adapted to different theoretical backgrounds, showing the huge flexibility of GeNEsIS.
Discussion and conclusions
Numerical abilities are important for many different species, since organisms use numerical information to perform adaptive choices (Haun et al., 2010; Nieder, 2020). However, researchers also identify alternative strategies to number encoding, based on perceptual cues that vary according to numerosity (Gebuis & Reynvoet, 2011, 2012); this raised the hypothesis of the existence of a more general sense of magnitude (Leibovich et al., 2017). Indeed, organisms could use the variation in continuous cues, such as area, perimeter or space occupied by elements, to discriminate arrays containing a different number of items.
For these reasons, a careful consideration of the variation in continuous physical variables when visual arrays are presented should be a mandatory aspect of investigation in numerical cognition. Despite previous studies having carefully applied several controls in the investigation of numerical abilities of different species, a common and standardized experimental method to guide such controls seems to be missing.
In the last few years, new programs have been developed to help researchers with numerosity element array creation (De Marco & Cutini, 2020; Guillaume et al., 2020; Salti et al., 2017). Despite their usefulness, each of them lacks some fundamental tool to allow full flexibility in creating controlled stimuli (see Table 1 for a comparison between programs). Here we propose GeNEsIS as a tool to create numerousness stimuli controlled in their physical continuous variables in a standardized and highly accurate (Fig. 5 and Supplementary Fig. 1) way. Our program sums up all the aforementioned utilities in a comprehensive tool, implementing the features that until now were missing (Table 1). In particular, with GeNEsIS the user can easily control convex hull, mean inter-distance, density, total area, total perimeter, elements’ number and size independently or in combination, with the only limitations imposed by the geometry (Table 2). Moreover, the layout is completely customizable, allowing the user to also create elements with different colours and shapes (circles, triangles, diamonds and squares). All the procedures are guided by an intuitive graphical user interface, permitting those even with less practical coding experience to easily create the stimuli. In addition, we implemented a tool to perform the presentation of these images on screen, during standardized experiments of habituation/dishabituation or dual choice tasks.
With this program we hope to fill the gap in the current state of the art in numerical cognition experiments, providing a tool that can improve the way in which experiments are conducted, reducing at a minimum the bias in numerousness array due to continuous physical variables, and standardizing the procedure of stimuli creation and presentation to facilitate experimental replicability and inter- and intra-species comparisons.
Supplementary Information
Authors' contributions
M.Z. designed and implemented the program. M.Z., D.P., M.B. contributed in testing the program. D.P, M.B., M.Z contributed to the writing of the manuscript. G.V. supervised the project. All the authors contributed to the final version of the manuscript.
Funding
Open access funding provided by Università degli Studi di Trento within the CRUI-CARE Agreement. This project has received funding from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (grant agreement No 833504 SPANUMBRA to G.V.), and by Progetti di Rilevante Interesse Nazionale (PRIN 2017 ERC-SH4–A 2017PSRHPZ to G.V.)
Data Availability
All the reported materials, data and the program code are freely available at https://github.com/MirkoZanon/GeNEsIS.
Declaration
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- Arsalidou M, Taylor MJ. Is 2+2=4? Meta-analyses of brain areas needed for numbers and calculations. NeuroImage. 2011;54(3):2382–2393. doi: 10.1016/j.neuroimage.2010.10.009. [DOI] [PubMed] [Google Scholar]
- Bar-Shai N, Keasar T, Shmida A. The use of numerical information by bees in foraging tasks. Behavioral Ecology. 2011;22(2):317–325. doi: 10.1093/beheco/arq206. [DOI] [Google Scholar]
- Beran MJ, Evans TA, Harris EH. Perception of food amounts by chimpanzees based on the number, size, contour length and visibility of items. Animal Behaviour. 2008;75(5):1793–1802. doi: 10.1016/j.anbehav.2007.10.035. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Brainard, D. H. (1997). The Psychophsycis Toolbox. Spatial Vision, 10(4), 433–436. [PubMed]
- Butterworth, B. (1999). The mathematical brain. Macmillan.
- Carazo P, Font E, Forteza-Behrendt E, Desfilis E. Quantity discrimination in Tenebrio molitor: Evidence of numerosity discrimination in an invertebrate? Animal Cognition. 2009;12(3):463–470. doi: 10.1007/s10071-008-0207-7. [DOI] [PubMed] [Google Scholar]
- Dakin SC, Tibber MS, Greenwood JA, Kingdom FAA, Morgan MJ. A common visual metric for approximate number and density. Proceedings of the National Academy of Sciences of the United States of America. 2011;108(49):19552–19557. doi: 10.1073/pnas.1113195108. [DOI] [PMC free article] [PubMed] [Google Scholar]
- De Marco D, Cutini S. Introducing CUSTOM: A customized, ultraprecise, standardization-oriented, multipurpose algorithm for generating nonsymbolic number stimuli. Behavior Research Methods. 2020;52(4):1528–1537. doi: 10.3758/s13428-019-01332-z. [DOI] [PubMed] [Google Scholar]
- Dehaene, S. (1997). The number sense. How the mind creates mathematics. Oxford University Press.
- DeWind NK, Adams GK, Platt ML, Brannon EM. Modeling the approximate number system to quantify the contribution of visual stimulus features. Cognition. 2015;142:247–265. doi: 10.1016/j.cognition.2015.05.016. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ditz HM, Nieder A. Neurons selective to the number of visual items in the corvid songbird endbrain. Proceedings of the National Academy of Sciences of the United States of America. 2015;112(25):7827–7832. doi: 10.1073/pnas.1504245112. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Feigenson L, Carey S, Spelke E. Infants’ discrimination of number vs. continuous extent. Cognitive Psychology. 2002;44(1):33–66. doi: 10.1006/cogp.2001.0760. [DOI] [PubMed] [Google Scholar]
- Felisatti, A., Laubrock, J., Shaki, S., & Fischer, M. (2020). A biological foundation for spatial–numerical associations: the brain’s asymmetric frequency tuning. Annals of the New York Academy of Sciences, July. 10.1111/nyas.14418 [DOI] [PubMed]
- Ferrigno, S., & Cantlon, J. F. (2017). Evolutionary Constraints on the Emergence of Human Mathematical Concepts. In: Evolution of Nervous Systems, Second Edition (Vol. 3, pp. 511–521). 10.1016/B978-0-12-804042-3.00099-3Evolution
- Flay CD, He XZ, Wang Q. Influence of male density on the courtship and mating duration of male rice weevils, sitophilus oryzae. New Zealand Plant Protection. 2009;62:76–79. doi: 10.30843/nzpp.2009.62.4788. [DOI] [Google Scholar]
- Gallistel, C. R. (1990). Learning, development, and conceptual change. The organization of learning. The MIT Press.
- Gallistel CR, Gelman R. Preverbal and verbal counting and computation. Cognition. 1992;44:43–74. doi: 10.1016/0010-0277(92)90050-R. [DOI] [PubMed] [Google Scholar]
- Garland A, Low J, Burns KC. Large quantity discrimination by North Island robins (Petroica longipes) Animal Cognition. 2012;15(6):1129–1140. doi: 10.1007/s10071-012-0537-3. [DOI] [PubMed] [Google Scholar]
- Gazzola A, Vallortigara G, Pellitteri-Rosa D. Continuous and discrete quantity discrimination in tortoises. Biology Letters. 2018;14(12):1–4. doi: 10.1098/rsbl.2018.0649. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Gebuis T, Cohen Kadosh R, Gevers W. Sensory-integration system rather than approximate number system underlies numerosity processing: A critical review. Acta Psychologica. 2016;171:17–35. doi: 10.1016/j.actpsy.2016.09.003. [DOI] [PubMed] [Google Scholar]
- Gebuis T, Gevers W, Cohen Kadosh R. Topographic representation of high-level cognition: Numerosity or sensory processing? Trends in Cognitive Sciences. 2014;18(1):1–3. doi: 10.1016/j.tics.2013.10.002. [DOI] [PubMed] [Google Scholar]
- Gebuis T, Reynvoet B. Generating nonsymbolic number stimuli. Behavior Research Methods. 2011;43(4):981–986. doi: 10.3758/s13428-011-0097-5. [DOI] [PubMed] [Google Scholar]
- Gebuis T, Reynvoet B. The interplay between nonsymbolic number and its continuous visual properties. Journal of Experimental Psychology: General. 2012;141(4):642–648. doi: 10.1037/a0026218. [DOI] [PubMed] [Google Scholar]
- Giurfa M. An Insect’s Sense of Number. Trends in Cognitive Sciences. 2019;23(9):720–722. doi: 10.1016/j.tics.2019.06.010. [DOI] [PubMed] [Google Scholar]
- Gómez-Laplaza LM, Gerlai R. Quantification abilities in angelfish (Pterophyllum scalare): The influence of continuous variables. Animal Cognition. 2013;16(3):373–383. doi: 10.1007/s10071-012-0578-7. [DOI] [PubMed] [Google Scholar]
- Guillaume, M., Schiltz, C., & Van Rinsveld, A. (2020). NASCO: A new method and program to generate dot arrays for non-symbolic number comparison tasks. Journal of Numerical Cognition, 6(1), 129–147. 10.5964/jnc.v6i1.231
- Halberda J, Feigenson L. Developmental Change in the Acuity of the “Number Sense”: The Approximate Number System in 3-, 4-, 5-, and 6-Year-Olds and Adults. Developmental Psychology. 2008;44(5):1457–1465. doi: 10.1037/a0012682. [DOI] [PubMed] [Google Scholar]
- Hanus D, Call J. Discrete Quantity Judgments in the Great Apes (Pan paniscus, Pan troglodytes, Gorilla gorilla, Pongo pygmaeus): The Effect of Presenting Whole Sets Versus Item-by-Item. Journal of Comparative Psychology. 2007;121(3):241–249. doi: 10.1037/0735-7036.121.3.241. [DOI] [PubMed] [Google Scholar]
- Haun DBM, Jordan FM, Vallortigara G, Clayton NS. Origins of spatial, temporal and numerical cognition: Insights from comparative psychology. Trends in Cognitive Sciences. 2010;14(12):552–560. doi: 10.1016/j.tics.2010.09.006. [DOI] [PubMed] [Google Scholar]
- Hemptinne JL, Dixon AFG, Coffin J. Attack strategy of ladybird beetles (Coccinellidae): factors shaping their numerical response. Oecologia. 1992;90(2):238–245. doi: 10.1007/BF00317181. [DOI] [PubMed] [Google Scholar]
- Henik A, Gliksman Y, Kallai A, Leibovich T. Size Perception and the Foundation of Numerical Processing. Current Directions in Psychological Science. 2017;26(1):45–51. doi: 10.1177/0963721416671323. [DOI] [Google Scholar]
- Hyde DC. Two systems of non-symbolic numerical cognition. Frontiers in Human Neuroscience. 2011;5:1–8. doi: 10.3389/fnhum.2011.00150. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kleiner, M., Brainard, D., Pelli, D., Ingling, A., Murray, R., & Broussard, C. (2007). What's new in psychtoolbox-3. Perception, 36(14), 1-16.
- Leibovich T, Henik A. Comparing performance in discrete and continuous comparison tasks. Quarterly Journal of Experimental Psychology. 2014;67(5):899–917. doi: 10.1080/17470218.2013.837940. [DOI] [PubMed] [Google Scholar]
- Leibovich T, Henik A, Salti M. Numerosity processing is context driven even in the subitizing range: An fMRI study. Neuropsychologia. 2015;77:137–147. doi: 10.1016/j.neuropsychologia.2015.08.016. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Leibovich, T., Katzin, N., Harel, M., & Henik, A. (2017). From “sense of number” to “sense of magnitude”: The role of continuous magnitudes in numerical cognition. Behavioral and Brain Sciences, 40. 10.1017/S0140525X16000960 [DOI] [PubMed]
- Lyon BE. Egg recognition and counting reduce costs of avian conspecific brood parasitism. Nature. 2003;422(6931):495–499. doi: 10.1038/nature01505. [DOI] [PubMed] [Google Scholar]
- McComb K, Packer C, Pusey A. Roaring and numerical assessment in contests between groups of female lions, Panthera leo. Animal Behaviour. 1994;47(2):379–387. doi: 10.1006/anbe.1994.1052. [DOI] [Google Scholar]
- Messina, A., Potrich, D., Schiona, I., Sovrano, V. A., Fraser, S. E., Brennan, C. H., & Vallortigara, G. (2020a). Neurons in the dorso-central division of zebrafish pallium respond to change in visual numerosity. 1–34. 10.1101/2020.11.11.377804 [DOI] [PMC free article] [PubMed]
- Messina A, Potrich D, Schiona I, Sovrano VA, Fraser SE, Brennan CH, Vallortigara G. Response to change in the number of visual stimuli in zebrafish:A behavioural and molecular study. Scientific Reports. 2020;10(1):1–11. doi: 10.1038/s41598-020-62608-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mix KS, Huttenlocher J, Levine SC. Multiple cues for quantification in infancy: Is number one of them? Psychological Bulletin. 2002;128(2):278–294. doi: 10.1037/0033-2909.128.2.278. [DOI] [PubMed] [Google Scholar]
- Nelson XJ, Jackson RR. The role of numerical competence in a specialized predatory strategy of an araneophagic spider. Animal Cognition. 2012;15(4):699–710. doi: 10.1007/s10071-012-0498-6. [DOI] [PubMed] [Google Scholar]
- Nieder A. The neuronal code for number. Nature Reviews Neuroscience. 2016;17(6):366–382. doi: 10.1038/nrn.2016.40. [DOI] [PubMed] [Google Scholar]
- Nieder, A. (2020). Absolute Numerosity Discrimination as a Case Study in Comparative Vertebrate Intelligence. Frontiers in Psychology, 11. 10.3389/fpsyg.2020.01843 [DOI] [PMC free article] [PubMed]
- Nieder A, Dehaene S. Representation of number in the brain. Annual Review of Neuroscience. 2009;32:185–208. doi: 10.1146/annurev.neuro.051508.135550. [DOI] [PubMed] [Google Scholar]
- Pelli DG. The VideoToolbox software for visual psychophysics: Transforming numbers into movies. Spatial Vision. 1997;26(10):437–442. doi: 10.1163/156856897X00366. [DOI] [PubMed] [Google Scholar]
- Piazza M, Eger E. Neural foundations and functional specificity of number representations. Neuropsychologia. 2016;83:257–273. doi: 10.1016/j.neuropsychologia.2015.09.025. [DOI] [PubMed] [Google Scholar]
- Potrich D, Sovrano VA, Stancher G, Vallortigara G. Quantity Discrimination by Zebrafish (Danio rerio) Journal of Comparative Psychology. 2015;129(4):388–393. doi: 10.1037/com0000012. [DOI] [PubMed] [Google Scholar]
- Salti M, Katzin N, Katzin D, Leibovich T, Henik A. One tamed at a time: A new approach for controlling continuous magnitudes in numerical comparison tasks. Behavior Research Methods. 2017;49(3):1120–1127. doi: 10.3758/s13428-016-0772-7. [DOI] [PubMed] [Google Scholar]
- Stancher G, Rugani R, Regolin L, Vallortigara G. Numerical discrimination by frogs (Bombina orientalis) Animal Cognition. 2015;18(1):219–229. doi: 10.1007/s10071-014-0791-7. [DOI] [PubMed] [Google Scholar]
- Stevens JR, Wood JN, Hauser MD. When quantity trumps number: Discrimination experiments in cotton-top tamarins (Saguinus oedipus) and common marmosets (Callithrix jacchus) Animal Cognition. 2007;10(4):429–437. doi: 10.1007/s10071-007-0081-8. [DOI] [PubMed] [Google Scholar]
- Tanner CJ. Numerical assessment affects aggression and competitive ability: A team-fighting strategy for the ant Formica xerophila. Proceedings of the Royal Society B: Biological Sciences. 2006;273(1602):2737–2742. doi: 10.1098/rspb.2006.3626. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tokita M, Ishiguchi A. How might the discrepancy in the effects of perceptual variables on numerosity judgment be reconciled? MIDORI. Attention, Perception & Psychophysics. 2010;72(7):1439–1459. doi: 10.3758/APP. [DOI] [PubMed] [Google Scholar]
- Vallortigara, G. (2015). Foundations of number and space representations in non-human species. In D.C. Geary, D. B. Bearch, & K. M. Koepke (Eds.), Evolutionary origins and early development of number processing (pp. 35–66). Elsevier. 10.1016/B978-0-12-420133-0.00002-8
- Vallortigara, G. (2017). An animal’s sense of number. In J. W. Adams, P. Barmby, & A. Mesoudi (Eds.), The nature and development of mathematics. Cross disciplinary perspective on cognition, learning and culture (pp. 43–65). Routledge.
- Viswanathan P, Nieder A. Neuronal correlates of a visual “sense of number” in primate parietal and prefrontal cortices. Proceedings of the National Academy of Sciences of the United States of America. 2013;110(27):11187–11192. doi: 10.1073/pnas.1308141110. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wagener L, Loconsole M, Ditz HM, Nieder A. Neurons in the endbrain of numerically naive crows spontaneously encode visual numerosity. Current Biology. 2018;28(\):1090–1094.e4. doi: 10.1016/j.cub.2018.02.023. [DOI] [PubMed] [Google Scholar]
- Wang L, Uhrig L, Jarraya B, Dehaene S. Representation of Numerical and Sequential Patterns in Macaque and Human Brains. Current Biology. 2015;25(15):1966–1974. doi: 10.1016/j.cub.2015.06.035. [DOI] [PubMed] [Google Scholar]
- Wilson ML, Britton NF, Franks NR. Chimpanzees and the mathematics of battle. Proceedings of the Royal Society B: Biological Sciences. 2002;269(1496):1107–1112. doi: 10.1098/rspb.2001.1926. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Xu F, Spelke ES. Large number discrimination in 6-month-old infants. Cognition. 2000;74(1):1–11. doi: 10.1016/S0010-0277(99)00066-9. [DOI] [PubMed] [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 reported materials, data and the program code are freely available at https://github.com/MirkoZanon/GeNEsIS.