Skip to content

Sequence

Kravitz Lab edited this page Aug 26, 2025 · 1 revision

This program modifies the standard FR1 (Fixed-Ratio 1) task to implement sequence training, where mice must learn to perform a specific sequence of pokes to receive a reward.

How It Works

  1. Progressive Complexity: The task starts simple (just the first item in the sequence) and gradually increases in complexity every 50 pellets earned.

  2. Sequence Learning: Mice must learn to perform the correct sequence of pokes (Left, Right, Center, etc.) to receive a food pellet.

  3. Error Feedback: Incorrect sequences result in audio/haptic feedback and the sequence resets.

  4. Timeout Protection: If the mouse waits more than 10 seconds without poking, the sequence automatically resets.

  5. Level Progression: Every 50 successful pellets, the required sequence length increases by one item.

Default Sequence

The default sequence is: L,R,C,R,L,C (Left, Right, Center, Right, Left, Center)

  • Level 1: Just "L" (Left)
  • Level 2: "L,R" (Left, Right)
  • Level 3: "L,R,C" (Left, Right, Center)
  • Level 4: "L,R,C,R" (Left, Right, Center, Right)
  • Level 5: "L,R,C,R,L" (Left, Right, Center, Right, Left)
  • Level 6: "L,R,C,R,L,C" (Left, Right, Center, Right, Left, Center)

Customization

Modifying the Sequence

Edit the configuration section in FR1_Sequence.ino to customize the training:

// Change the target sequence
const char* TARGET_SEQUENCE = "L,R,C,R,L,C";

// Update the sequence length to match
const int SEQUENCE_LENGTH = 6;

Clone this wiki locally