The present protocol describes the development of an open-source 5-choice serial reaction time task toolbox for rodent animal models, using Arduino and related hardware and a versatile Matlab toolbox, including an optional script for automated behavioral training. The scripts are customizable and facilitate the implementation of different trial-and-test designs.
The 5-choice serial reaction time task (5-CSRTT) is a behavioral test often used to study visuospatial attention and impulsiveness in rodents. The task requires animals to allocate attention to a horizontal array of five small apertures equipped with light sources and, within a limited time window, nose-poke one illuminated target aperture to get a food reward at the food magazine located in the opposite wall of the chamber. The task considers behavioral control measures such as response accuracy and reaction times and allows to infer selective attention and impulsivity. Task difficulty can be controlled by modifying the stimulus duration and task design in general. Commercially available apparatus usually consists of an experimental chamber and particular software to specify task parameters, but due to fixed hard- and software, they pose many limitations on changes in the general experimental design and specific task requirements and the related data output. This article explains a fully customizable alternative based on an easy-to-use single-board microcontroller and standard electrotechnical components, an open-access Arduino script, and a Matlab-toolbox for hardware control and behavioral task specifications, respectively. The toolbox includes an optional staircase procedure, enabling automated behavioral training. The complete hardware setup, which can be installed in customized chambers, and the freely adaptable software encourage non-standardized task and chamber design. The design of the system and the open-source code for hardware control and experimental setup are described.
The 5-CSRTT is a behavioral test, often used in rodents to study visual attentional processes and impulsivity1,2,3,4,5,6, such as determining the cholinergic system's role in attention and the influence of norepinephrine reuptake inhibitors on impulsive behaviors7. The standard apparatus allows for observing various control measures such as response accuracy, reaction times, impulsive and compulsive behavior, motor ability, and motivation1,2,3,4,5. It consists of a horizontal array of five LED-equipped apertures, a food magazine on the chamber walls opposing the apertures, and house lights2,5. In a typical task, the house light is illuminated, and the beginning of a session is marked by the illumination of the food magazine, where a free pellet is delivered. The trial course is initiated when the animal nose-pokes the magazine to retrieve the pellet1. After that, the food magazine light is extinguished, and the inter-trial interval (ITI) starts, during which the animal is supposed to direct its attention toward the apertures. Once the ITI elapses, a stimulus illumination is presented in one of the apertures1,2,5. The stimulus is given for a specific length known as the stimulus duration (StD). The animal can respond to the stimulus while it's being presented or during a limited time window after the StD is over, known as limited hold (LH). To respond, the animal has to nose-poke the target aperture and, if done correctly, a reward is released in the food magazine1,2,5. Otherwise, any incorrect response, as well as any responses before stimulus presentation (anticipatory or premature) or any failure to respond (omission) results in a timeout (TO), during which the house light is turned off for a certain duration1,2,5 (Figure 1). In general, the discriminative stimulus accuracy measures attentional functioning, whereas premature and perseverative responses (repeated responses at the apertures after stimulus presentation) are considered measures of impulsive behavior and compulsivity, respectively1,4,5,6.
Figure 1: Possible trial sequences of a typical 5-CSRTT. Following the Intertrial Interval, the stimulus light is turned on for a specific duration, and then turned off during the Limited Hold interval. The rat can either answer correctly and receive a reward or answer incorrectly and get a timeout during this time. If the rat does not answer in time, its omission results in a timeout. Similarly, if it responds before the presentation of the light stimulus, its premature response results in a timeout. Another trial starts after the collection of the reward or the end of the timeout period. Please click here to view a larger version of this figure.
The 5-CSRTT is widely used due to its flexibility: by changing parameters of the trial design, different subcategories of attention can be investigated. For example, while the animal is supposed to divide its attention across the five different apertures (visuospatial attention), the use of irrelevant stimuli (e.g., auditory stimuli) enables the testing of selective or sustained attention1,2,5,6. For that purpose, the experimental setup can be extended by including speakers, which can be used as distracting or even reinforcing stimuli1,2,5,6. Moreover, the attentional load can be directly modulated by altering the stimulus presentation or randomizing the ITI duration10. The 5-CSRTT is not only used in rodents3,7, but has recently been adapted to test non-human primates1,7,8 and fish7,9, further showcasing its feasibility. A fully customizable 5-CSRTT toolbox allows for easy adaptation of the standard rodent paradigm to other animal models. Moreover, the customization flexibility of the 5-CSRTT toolbox also encourages research using non-standard task designs.
The fully customizable 5-CSRTT toolbox presented here contains an Arduino script for hardware control, programmed in an integrated development environment. It also consists of a Matlab toolbox (version R2019b or younger) for experiment control. The following protocol explains how to configure the 5-CSRTT toolbox with the widely used standard paradigm and shows optional configurations for non-standard paradigms.
The experimental procedure in this protocol was performed following the recommendations of the EU directive 2010/63 for the Welfare of Experimental Animals and in accordance with the Animal Welfare Act issued by the Federal Government of Germany and was approved by the local authorities. Since the research only required behavioral training, no animals were euthanized, and all were kept in the husbandry after the research was conducted. The research was conducted using ten male Lister hooded rats (4 months of age at the start of behavioral training).
1. Animal housing, husbandry, and handling
2. Preparation of the hardware and control software
3. Preparation of the experiment control software
4. Configuration of parameters used in the 5-CSRTT toolbox
5. Behavioral experiment
Figure 2: The 5-CSRTT apparatus used for the current study. The apparatus runs on a laptop equipped with the 5-CSRTT toolbox, which provides a script for controlling the microcontroller and all related equipment and multiple scripts for controlling the 5-CSRTT experiment. Please click here to view a larger version of this figure.
The fully customizable toolbox is easy to use and based on a single-board microcontroller and standard electrotechnical components. Figure 3 shows a simplified circuit and wiring diagram. The whole aperture consists of 5 LEDs as the light stimuli and five infrared sensors to detect nose pokes. The house light consists of one strip with eight LEDs, and the food magazine is made out of an aperture with a flap door with a micro switch, a motor-driven pellet dispenser, and a strip with eight LEDs for lighting. The circuit also exemplifies connections for optional components such as the passive buzzer speaker for auditory feedback and a digital potentiometer for volume adjustment. For a list of the equipment used in developing this toolbox, please see Table of Materials.
Figure 3: Simplified circuit of the microcontroller hardware. To be easily and quickly customizable, the microcontroller equipment is connected via a breadboard. From top left to bottom left, clockwise: A microcontroller board is connected to a motor shield and a DC motor (representing the pellet dispenser motor). To the right are the LED strips for both the house and food magazine lights, and in the middle are all five white LEDs for the stimulus light and the five infrared sensor pairs used in the apertures. Below the microcontroller board is a simple microswitch (representing the switch used in the food magazine flap door). Finally, a passive buzzer speaker and a digital potentiometer are depicted in the middle. This image was made using the open-source software Fritzing. Please click here to view a larger version of this figure.
Figure 4: Linkage and functions of all components of the experiment control scripts and simplified diagram of the "Code" function. (A) The "User" script sends its parameters to the "Code" function, which in turn links directly to the "Staircase" function, allowing it to update any parameter used in the "Code" function while the experiment is ongoing. The "Code" function then sends its results to the "DataProc" function at the end of the session. (B) Before starting an experiment session, the "Code" function first checks whether it is supposed to start the habituation protocol. If not, it sets up the parameters based on the definitions chosen in the "User" script. Before each trial begins, the function then checks whether the ESC key on the keyboard was pressed. If not, it continues with a new trial. Otherwise, it stops the experiment session and passes the gathered data to the DataProc function. This critical check before each trial start allows the program to stop before any chosen time limit is reached. Please click here to view a larger version of this figure.
Interactions between the different experiment control scripts can be seen in Figure 4A. The "User" script includes all the parameters that define the experiment. There, variables that determine the experiment's timing, number and brightness of illuminated stimuli, ITI duration, and the like can be freely chosen. The Code function (Supplementary File 5) includes a detailed description of a single trial and all possible outcomes, which is reiterated throughout the experiment, as shown in Figure 4B. Moreover, it consists of a protocol for the habituation of the animal to the apparatus. The Code function also regularly checks the performance of the animal. Furthermore, the Staircase function is optional. The subject's performance is compared to previously set criteria, and desired parameters are automatically updated if the animal's performance meets these criteria. The Staircase function may also consider the acquired results from the previous day's session. While the experiment is running, a performance check at the end of a trial will calculate accuracy, omissions, and the total number of correct responses of the completed trials and compare the outcome with desired criteria for a level update, as specified in the Staircase function. Finally, the DataProc function processes all the gathered data and generates simple graphs for quick analysis. At the end of a session, the toolbox automatically saves all the data into a *.mat file and generates an extra *.xlsx file with the essential information from the experiment.
Figure 5: Example of different stimulus configurations of the 5-CSRTT toolbox. The diagram exemplifies possible combinations of target stimuli in dependence on the chosen configuration. Both the "all" and "single" configurations are used in the standard paradigm (for the habituation and behavioral experiment). The "neighbour" and "shifted" configurations show non-standard stimulus configurations, allowing the use of other numbers of lit stimuli, which may also have a different contrast than the target stimulus. Please click here to view a larger version of this figure.
Protocol step 4.2.7.7 mentions an optional feature: changing the grouping of target apertures. The standard 5-CSRTT paradigm makes use of one single target stimulus. Here, we exemplify how the toolbox presented allows for modifications of the standard paradigm. Figure 5 displays some possible group combinations out of a total of five apertures concerning the chosen configuration. The "all" configuration lights up all the available apertures so that each aperture is now a target aperture, which can be helpful in the initial training stages. The neighbour configuration makes sure that the (freely chosen) number of target apertures will be neighboring each other. Settings can be specified such that the neighbors will not be identical with the target aperture but be illuminated at lower (or even higher) contrast. The use of apertures with different illumination contrasts allows for testing new paradigms, such as using differently graded rewards for nose-pokes in the high- or low-contrast apertures. Figure 5 shows an example with three target apertures with identical illumination. The single configuration is typically used in the standard 5-CSRTT, where only a single target is illuminated. Finally, the shifted configuration extends the neighbor configuration. It shifts the neighbor stimulus toward the last or first aperture in case the target aperture is at the first or last position, respectively. As in the neighbor configuration, the illumination strength of the neighbors can be freely chosen, being either the same or different from the target aperture. Also, the number of overall lit stimuli can be freely chosen. The toolbox then computes all possible stimuli automatically. However, the parameter "Config.LED.NumHighLED" must be set to "1" for this configuration.
Following the protocol, the training of rats (N = 10) for the 5-CSRTT was performed according to the training stages presented in Table 1.
Table 1: 5-CSRTT training schedule and criteria to move to the next level. (A) The inter-trial interval was kept constant at 5 s in every training level. (B) Stimulus duration for every training level. (C) Limited Hold (LH) time window, the maximum time tolerated between stimulus off and any nose-poke response. (D) The total number of correct responses needed to pass the respective training level. (E) The accuracy percentage is calculated as . (F) Percentage of omission errors is defined as . This criterion does not include premature responses. Please click here to download this Table.
The performance of the rats was compared to the number of training days (sessions) required to complete each training level given in Table 1. All the animals started at training level 1 with an StD and LH of 60 s each. However, some rats (N = 5) received enhanced habituation training to test some of the additional stimulus options reported earlier, which explains the difference in the number of sessions the individual animals stayed in training level 1. Completion of the level was marked by reaching a total of 30 or more correct responses. StD and LH decreased during the following levels, while the criteria for advancing to the next training level got tougher, increasing the attentional demand of the task1,6.
Table 2 shows the automatically generated *.xlsx spreadsheet of one example rat during one session. The rat started with the configuration specified in training level 5. After four trials, the rat advanced to level 6, considering the trials performed in the current session plus the accuracy achieved in the previous session. How many trials have to be performed at a minimum in the current session to advance to the next training level is specified in the variable "Config.Experiment.MinNumTrials". In the same session, the rat advanced to training level 7 after completing 66 trials in level 6 and achieving the requirement of > 80% accuracy and < 20% omission. In total, rats were trained for 26 days using the configuration of training levels as provided in Table 1. The number of sessions spent per training level is provided in Figure 6A. The black line shows the average across all subjects, and each colored line displays the data of one rat. All rats reached the eighth level within 14-22 sessions (Figure 6B). Figure 6C shows the mean performance of subjects per training level and across all training days in the 5-CSRTT apparatus. The dashed black line represents the accuracy percentage, and the straight black line represents the omission percentage. Accuracy was calculated as the ratio between the number of correct responses and the total number of responses. Omissions were calculated as the ratio between the number of omissions and the total number of trials (i.e., the sum of correct responses, incorrect responses, and omissions). The gray line indicates the average total number of correct responses across all trials in each level. Figure 6D displays the final accuracy achieved by each subject on the eighth and final training level.
On average, rats spent 5.9 (±1.03 SEM) sessions to complete level 1, between 1.5 (±0.17) and 3.5 (±0.5) sessions to complete level 2 to 6, and 1.7 (±0.16) sessions to complete level 7 before they reached the final level 8. As is evident from Figure 6A, the variance between subjects was most significant in the initial levels (SD = 3.25 in level 1, 1.58 in level 2) and decreased in later levels (0.47 and 0.48 in levels 6 and 7, respectively). In level 4, when the stimulus duration was further reduced, the average number of sessions spent (2.6 ± 0.52), and variance between rats (1.64) increased, with two rats taking 5 and 6 days to conclude the level.
Figure 6: Results of the behavioral experiment with the 5-CSRTT toolbox. (A) The number of sessions performed at each training level. The black line depicts the average number of sessions of all subjects for each level (mean ± SEM), and colored lines represent individual subjects' data. (B) The absolute number of sessions needed to reach the final level, per subject. (C) Averaged performance measures throughout training (mean ± SEM). The dotted black line depicts the accuracy of all subjects across all given responses in all sessions per training level, and the black line shows the corresponding omission percentage. The gray line depicts the average absolute number of correct answers of all subjects at each training level. (D) Accuracy per subject during the eighth and final training level. Please click here to view a larger version of this figure.
Table 2: Gathered data from one example rat during one training session. Column A displays the trial count over the session regarding the current training level, as shown in column B. Column C displays the ITI duration, and column D displays the trial start time. Columns E to I show the brightness level for the LED stimulus in apertures 1 to 5, respectively. A brightness level of 0 means the stimulus was off, and a brightness level of 0.2 means the stimulus was turned on with 20% of its maximal intensity. Columns J and K show the exact time the stimulus was turned on and off, respectively. Column L displays the outcome of the trial: 0 means "omission", 1 means "correct response", 3 means "incorrect response" (nose poke into non-target aperture) and 4 means "premature". Column M shows which aperture was nose-poked during the trial, while column N depicts the exact time of the nose-poke. Columns O, P, and Q show the time when the pellet dispenser motor was turned on, the corresponding motor number, and the time when the rat opened the pellet dispenser to get its reward, respectively. Column R displays the trial end time. Columns S, T, U, V, and W show the total number of premature responses, timeouts, panel pushes during an ITI, the total number of perseverative answers, and the total runtime of the session in minutes, respectively. Please click here to download this Table.
Supplementary File 1: Script for the hardware control of the IDE software (Arduino code). This includes all commands to control the hardware and electrotechnical components of the toolbox. Please click here to download this File.
Supplementary File 2: Script for the function "User" in the experiment control software. This includes all the parameters that define the experiment. Please click here to download this File.
Supplementary File 3: Script for the function "Staircase" in the experiment control software. This monitors the subject's performance and compares it to the previously set criteria. The desired parameters are automatically updated if the animal's performance meets these criteria. Please click here to download this File.
Supplementary File 4: Script for the function "DataProc" in the experiment control software. This processes all the gathered data and generates simple graphs for quick analysis. Please click here to download this File.
Supplementary File 5: Script for the "Code" function. This includes a detailed description of a single trial and all the possible outcomes, which is reiterated throughout the experiment. Please click here to download this File.
The present protocol aims to develop and test a low-cost and fully customizable alternative to the standard, commercially available 5-choice serial reaction time task apparatus. Usually, commercially available types of apparatus provide a limited set of features as needed to run the standard research 5-CSRTT. Because of this, non-standard modifications in the specific trial design, such as changes to the trial sequence or target stimulus combinations, are usually not possible. In addition, many of the available types of apparatus come with specific, closed software that may not provide access to all behavioral data of the experiment, such as the timing and aperture number of premature and perseverative answers. In contrast, the vital advantage of the toolbox presented here is – besides its low cost – the possibility of implementing many different trial designs and research paradigms. Currently, the toolbox supports the definition of multiple stimulus designs, such as permitting dimmed stimuli and using two pellet delivery systems and reward dependence on reaction time. It also supports the use of a miniature speaker for auditory feedback. However, the primary purpose is to allow for easy modifications of the trial sequence according to the user's objective, such as introducing dimmed lit apertures and rewarding schedules for decision-making tasks or integrating state-of-the-art positive reinforcement training approaches11. Additionally, all raw data acquired over the session are made available for further analysis. The toolbox provides a Staircase function for automated behavioral training, which is also fully customizable and allows the user to change the criteria for each level update, the number of training levels, and the parameters to be updated. Furthermore, the apparatus itself is highly adaptable, and changes in the trial design and the chamber layout are easily feasible, making it possible to apply the 5-CSRTT paradigm to animal species that need a different research design than what the commercially available types of apparatus offer.
Specific parts of the protocol for the software configuration are critical to ensure a smooth workflow: especially for the first day of the experiment, the preparation of both the hardware and experiment control software (steps 2 and 3) and the configuration of step 5.3 is crucial. Ensuring that the serial port connection between the microcontroller hardware, its software, and the experiment control software is working properly is critical to establishing a fully functioning 5-CSRTT toolbox. At the beginning of each experiment day, it's advisable to repeat the three steps mentioned above to ensure that the hardware and experiment control scripts are configured correctly.
Finally, the current limitation of the toolbox is its implementation to one exclusive programming platform, which unfortunately compromises its use as a complete open-source toolbox. Nevertheless, in principle, the toolbox should be easily adaptable to other programming languages such as Python since the course of one trial remains unchanged.
In comparison to existing alternative methods, the 5-CSRTT toolbox introduced here allows the implementation of the standard 5-CSRTT paradigm and modifications of it such as defining a set time window for perseverative answers or introducing distracting or reinforcing stimuli like speakers or blinking lights. In addition to being easy to use and highly adaptable, the apparatus is low-cost and can be easily replicated, and it incentivizes research using non-rodent animal models.
The authors have nothing to disclose.
This work is supported by DFG WE 5469/3-1.
1200 Ohm Resistor | Already available in the lab | ||
8-bit 10 kΩ digital potentiometer | Microchip | MCP42010-I/P | From Conrad.de: 1083205 |
ARD MEGA2560 KIT Arduino – Mega 2560 R3 Lernset | JOY-IT | ARD-Set01 | From Reichelt.de: ARD MEGA2560 KIT |
ARD SHD MOTOR Arduino Shield – Motor | Adafruit | 1438 | From Reichelt.de: ARD SHD MOTOR |
ARDUINO STACKABLE HEADER KIT – R3 | Sparkfun Electronics | PRT-11417 | From Antratek.de: PRT-11417 |
Chow | Altromin | 1324 N | Altromin chow products |
Euro-Gehäuse | Hammond Electronics | 1591EBK | From Conrad.de: 520691 |
Food pellets | Bio-Serv | F0021 | From Bio-serv.com: Dustless Precision Pellets Rodent |
Fritzing | Interaction Design Lab Potsdam | Fritzing Software download | |
Integrated Development Environment | Arduino | Arduino IDE download (Freely available) | |
IR Break Beam Sensor – 3mm LEDs | Adafruit | 2167 | From Mouser.de: 485-2167 |
Laptop or Computer | |||
LED white round 5mm 2000mcd 20mA | TruComponents | 1573731 | From Conrad.de: 1573731 |
Microswitch | Hartmann | MBB1 01 A 01 C 09 A | From Conrad.com: 707243 |
NeoPixel Stick – 8 WS2812 5050 RGB LEDs | Adafruit | 1426 | From Reichelt.de: DEBO LED NP8 2 |
Passive buzzer Speaker | Conrad Components | 93038c213a | From Conrad.de: 1511468 |
Pellet release disk | Already available in the lab. Similar products depicted below. Keep in mind that some of these products make use of different (and stronger) motors and infrared sensors. The use of the microswitch (row 7) and the Arduino Motor Shield (row 3) need to be adapted to fit these new specifications. We recommend 3d printing the disk to work with the provided materials and software. Carbatec universal base plate Open Science Framework Open Feeder Open Ephys 3d Model Food Pellet Dispenser Campden Instruments 45mg pellet dispenser |
||
Programming platform | Mathworks | R2019b or younger | |
Psychtoolbox Software | V3 | Psychtoolbox-3 download | |
Spur GEAR-MOTOR with DC brush motor | Micromotors | B138F.12.208 | Micromotos Series B138F Technical data |