Guide/Behavioral Setup
Workflow
Overview
This guide covers the physical and technical requirements for the recording environment — the conditions that need to be in place before any implanted animal enters the apparatus on an experiment day. It is distinct from Guide/Data Acquisition, which covers the Miniscope-specific steps for each recording session.
The core principle throughout is that the recording environment must be validated before implanted animals are used in it. Every check in this guide should be completed on your setup as a whole system, with naive animals if possible, before your first implanted animal session. See also Guide/Experiment Planning for Freely Behaving Animals Step 4, which covers naive animal behavioral validation using this same setup.
Different behavioral paradigms have substantially different setup requirements. The specific needs of social interaction paradigms, spatial navigation tasks, fear conditioning, sleep recording, or operant tasks are not all addressed here — read the published protocols for your paradigm of interest and treat this guide as a general framework.
behaving animal experiments|Freely Moving Behavior Workflow]]. Prerequisites:
Guide/Animal Handling & Habituation. Next steps: Guide/Pre-Experiment Checklist (complete at the start of every recording session) and Guide/Data Acquisition.Recording Room Conditions
Noise and vibration
The Miniscope is sensitive to mechanical vibration. Locate your recording setup away from:
- HVAC vents with pulsatile airflow
- Centrifuges, refrigerators, or other equipment with motors or compressors
- High-foot-traffic corridors
- Sources of intermittent acoustic noise that could produce startle responses in the animal
Where possible, use a dedicated recording room or a well-isolated alcove. Consistency across sessions matters as much as absolute quiet — an animal that habituates to a background hum will be more disrupted by its unexpected absence than by its presence.
Humidity
Low humidity causes static buildup in the Miniscope coaxial cable. Static discharge can introduce electrical artifacts into the recording, which are difficult to distinguish from real neural signals and cannot be corrected in post-processing. Maintain relative humidity above 40% in the recording space.
A desktop humidifier positioned near (but not directly blowing on) the recording apparatus is an effective solution. Check humidity with a hygrometer before each session, particularly during dry winter months or in heavily air-conditioned spaces.
Lighting
Lighting in the behavioral arena requires careful consideration for two independent reasons.
First, illumination must be sufficient for behavioral camera tracking. Most tracking software requires consistent, even illumination across the arena floor without dark corners or hot spots from overhead point sources.
Second, illumination must not interfere with the Miniscope optical path. GCaMP is excited at approximately 470 nm (blue) and emits at approximately 510–530 nm (green). Any light source in the recording room that produces significant output in these wavelengths can increase background fluorescence and reduce signal-to-noise ratio. LED strips commonly used for arena illumination are often problematic — check the spectrum of any LED source against the excitation and emission windows of your indicator before using it.
| Light source type | Considerations |
|---|---|
| White LED (broadband) | Often contains blue component near 470 nm; check spectrum before use;
consider filtering |
| Warm white LED (>3000K color temperature) | Less blue content; generally preferable for GCaMP imaging setups |
| Red LED (>600 nm) | Well outside GCaMP excitation/emission; commonly used for low-light
behavioral recording |
| Incandescent or halogen | Warm spectrum; compatible with GCaMP imaging but produces heat; check thermal
effects on animal welfare |
| Overhead fluorescent | Often contains significant green emission; avoid direct exposure if possible |
lighting, mount the Miniscope, and check the live image with the LED off. Any visible background signal with the Miniscope LED off indicates environmental
light contamination. Address this before the experiment begins.Behavioral Camera Setup
The behavioral camera runs simultaneously with the Miniscope and provides the behavioral timestamps and positional data that the neural recording will be analyzed against. A poor behavioral video cannot be fixed in post-processing — decisions made here determine whether behavioral tracking is usable.
Camera position
- Mount the camera so that the full arena floor is visible without distortion. Overhead (top-down) positioning is generally preferred for open-field and maze paradigms.
- Verify that the Miniscope and cable do not occlude the animal's body at any point during normal task behavior.
- Check that the animal's head (or a defined body part used for tracking) is always visible, including at arena walls and corners.
- Avoid angles that create parallax errors when the animal is near arena walls.
Frame rate
| Behavioral metric | Minimum recommended frame rate |
|---|---|
| Gross location (zone occupancy, distance traveled) | 25–30 fps |
| Velocity and acceleration | 30–60 fps |
| Detailed locomotion analysis | 60+ fps |
| Social interaction (head direction, body orientation) | 30–60 fps |
| Fast movements (startle, jump, rapid approach) | 60–120 fps |
Synchronization
Behavioral camera timestamps and Miniscope imaging timestamps must be synchronized so that neural activity can be aligned to specific behavioral events. Confirm your synchronization method before the first recording session. See Guide/Data Acquisition for how timestamps are recorded during a session.
Tracking software validation
Run the full tracking pipeline on a test video from this specific setup before using any implanted animals:
| ☐ | Check |
|---|---|
| ☐ | Tracking is accurate across the full arena including at edges and
corners |
| ☐ | No tracking loss when the Miniscope cable is in frame |
| ☐ | Output file format is compatible with your downstream analysis
pipeline |
| ☐ | Any calibration or arena definition steps are completed and saved |
Tether and Commutator Management
Cable routing
The Miniscope coaxial cable must allow the animal full freedom of movement without creating a restoring force that pulls it toward the center of the arena or restricts exploration of the walls.
- Route the cable vertically from the recording rig down to the animal, with a controlled loop of slack — enough for full arena coverage, not so much that the animal can reach and chew it.
- The entry point of the cable into the arena should be centered over the apparatus, not at one side.
- Check cable routing during a brief test session with the animal before your first experimental session.
Commutator
A commutator is strongly recommended for any paradigm where the animal rotates significantly — including open field, novel object, and most maze paradigms. Without a commutator, cable twist accumulates over a session and creates an increasing rotational restoring force on the animal that both confounds behavior and risks torquing the baseplate.
| ☐ | Commutator pre-session check |
|---|---|
| ☐ | Commutator rotates freely with no significant mechanical resistance |
| ☐ | Signal is maintained through the commutator — check with a live
Miniscope image before the animal is placed in the apparatus |
| ☐ | Cable length above and below the commutator is appropriate for the
apparatus height |
If a commutator is not used, plan how cable twist will be managed during the session. Manual rotation by a second experimenter is feasible for short sessions but introduces experimenter presence as a variable.
System Integration Check
Before the first implanted animal session, run the complete system — Miniscope, DAQ, behavioral camera, commutator, tracking software, and recording computer — simultaneously for a full session length with a non-implanted animal wearing a dummy scope. Confirm:
| ☐ | Check |
|---|---|
| ☐ | All data streams record without dropped frames or gaps for the
planned session duration |
| ☐ | The recording computer write speed is sufficient for simultaneous
Miniscope and behavioral camera data at your target frame rates |
| ☐ | Timestamp synchronization between data streams is functioning and
verified |
| ☐ | No electrical interference between the Miniscope and other
equipment in the setup |
| ☐ | Humidity is above 40% for the full session duration |