Guide/Experiment Planning for Freely Behaving Animals
Good calcium imaging experiments fail during planning, not during recording. This guide walks you through the decisions and practice steps that should happen before you schedule your first surgery.
Reviewing the literature
Before anything else, read 5–10 papers that used a similar behavioral paradigm with calcium imaging. Take notes on:
- How many animals they used per group, and how many were excluded after imaging (this tells you the real attrition rate, not the published n).
- The variability in their imaging metrics — signal-to-noise, number of active cells, event rate. This sets expectations for your own power analysis.
- What behavioral equipment setup they used, camera angles, arena dimensions, tracking software.
- What went wrong — read the limitations sections carefully. Problems with dental cement, fiber photometry interference, and poor behavioral performance are commonly mentioned and avoidable.
- How they reported behavioral metrics — this determines what your scoring software needs to output.
Determining animal numbers
Calcium imaging experiments have higher attrition than standard behavioral experiments. Budget for it explicitly.
Common causes of animal loss that you must account for:
- Viral non-expression or poor expression (~10–20% depending on virus batch and titer)
- GRIN lens implant misplacement (especially in deep targets)
- Animals that lose their implant or develop infection
- Animals that don't learn the behavioral task within your training window
- Miniscope detachment or dental cement failure during the experiment
A rough rule of thumb: plan to finish with your target n, and assume you may need 1.5–2x that number going into surgery, depending on your team's surgical experience and the difficulty of the target region.
If you have access to pilot data or published standard deviations for your imaging metric, run a formal power analysis before ordering animals. Imaging experiments are expensive — an underpowered study is not recoverable mid-experiment.
Choosing and sourcing behavioral equipment
Make a complete equipment list specific to your paradigm before ordering animals. At minimum, confirm you have:
- Behavioral arena or apparatus
- Appropriate dimensions for your species and task. Check that the arena walls are tall enough to prevent escape and don't interfere with the miniscope tether.
- Behavioral camera
- Frame rate requirements depend on your task. For licking or fine motor tasks you may need ≥100 fps. For open field or maze exploration 30–60 fps is typically sufficient. Confirm your camera and lens give you the spatial resolution to score the behavior you care about.
- Lighting
- Miniscope excitation LEDs (typically 470 nm) can bleed into a standard IR behavioral camera. Test your lighting and camera filter combination before implanting animals. Guide/Behavioral Camera Setup covers this in detail.
- Tracking and scoring software
- Set up and validate your tracking pipeline (e.g., DeepLabCut, SLEAP, EthoVision) before your first experiment. Know ahead of time how you will extract the behavioral variables you need for your analysis.
- Synchronization
- Plan how behavioral timestamps and miniscope frame timestamps will be aligned. A TTL sync pulse triggered at the start of recording is the most reliable approach.
Practicing the behavioral task on naive animals
Do not perform your first behavioral run on an implanted animal. Run the full behavioral protocol on naive, non-implanted animals first, until:
- Your camera placement, frame rate, and lighting are validated and produce clean trackable video.
- Your tracking software produces reliable output without manual correction.
- Animals can acquire the task (or, for innate behaviors, reliably express it) within the timeline your experiment requires.
- You understand what a good session versus a bad session looks like before you are making that call with precious imaging data.
For learned tasks (fear conditioning, operant tasks, spatial memory), also confirm that the number of training days in your experimental design is sufficient for your strain and age group to reach criterion. Pilot this with 3–5 animals before committing to your full cohort.
Practicing the surgical and experimental workflow
Identify every step that requires hands-on skill and practice it before your first real experiment:
- Virus injection — practice with dye or saline in non-survival surgeries until injection depth and rate are consistent.
- GRIN lens implantation — especially for deep targets (hippocampus, striatum), implant accuracy matters enormously. Coordinate with a core or collaborator who has done this before, or use non-survival practice surgeries.
- Baseplating — practice the full sequence including dental cement mixing, UV curing, and field-of-view selection on an anesthetized animal before doing it on an awake one.
- Cap removal and miniscope mounting on a moving animal — this is more difficult than it looks. Practice on an animal with a dummy cap before your first imaging session. See Guide/Animal Acclimation for a detailed protocol.
- Miniscope session workflow — run a mock session (recording software, behavioral tracking, sync pulses) from start to finish before your real data collection days.
Assign roles within your team for each step and run a dry-run of the full experiment day end-to-end.
Building your experimental timeline
Work backwards from your last experimental day to your first surgery date. A typical freely-moving calcium imaging experiment requires:
- Viral expression window: 3–6 weeks post-injection (virus-dependent)
- GRIN lens recovery: 1–2 weeks before baseplating
- Baseplating: done once animals are stable post-lens implant
- Miniscope habituation: 3–5 days (see Guide/Miniscope Habituation)
- Behavioral task training: task-dependent, typically 1–3 weeks
- Experiment: your recording sessions
Total from first surgery to first imaging data: typically 8–12 weeks depending on viral expression time and task complexity.
Block this timeline on your calendar before scheduling animals. Identify the hard constraints (animal order deadlines, core facility booking windows, lab member availability) and plan around them.