Ethograms reveal a fear conditioned visual cue to organize diverse behaviors

Abstract Recognizing and responding to threat cues is essential to survival. In rats, freezing is the most common behavior measured. Previously we demonstrated a threat cue can organize diverse behaviors (Chu et al., 2024). However, the experimental design of Chu et al. (2024) was complex and the findings descriptive. Here, we gave female and male Long Evans rats simple paired or unpaired presentations of a light and foot shock (8 total) in a conditioned suppression setting, using a range of shock intensities (0.15, 0.25, 0.35 or 0.5 mA). We found that conditioned suppression was only observed at higher foot shock intensities (0.35 mA and 0.5 mA). We constructed comprehensive, temporal ethograms by scoring 22,272 frames of behavior for 12 mutually exclusive behavior categories in 200 ms intervals around cue presentation. A 0.5 mA and 0.35 mA shock-paired visual cue suppressed reward seeking, rearing and scaling, as well as light-directed rearing and light-directed scaling. The shock-paired visual paired cue further elicited locomotion and freezing. Linear discriminant analyses showed that ethogram data could accurately classify rats into paired and unpaired groups. Considering the complete ethogram data produced superior classification than considering subsets of behaviors. The results demonstrate diverse threat-elicited behaviors – in a simple Pavlovian fear conditioning design – containing sufficient information to distinguish the fear learning status of individual rats.


Introduction
In a typical Pavlovian fear conditioning procedure, a neutral cue is paired with foot shock.As a result, the shock-paired cue is endowed with a multitude of properties (McDannald, 2023).One property is the ability to elicit behavior.Most well-known is that a shock-paired cue (or context) can elicit freezing (Bolles and Collier, 1976).Pavlovian conditioning procedures measuring freezing have been used to great effect to reveal neural bases of fear (LeDoux et al., 1988;De Oca et al., 1998;Goosens and Maren, 2001).
A shock-paired cue can suppress reward seeking (Estes and Skinner, 1941), commonly referred to as conditioned suppression.A simple explanation for conditioned suppression is response competition via freezing.A shock-paired cue that elicits freezing will suppress responding for reward.Indeed, conditioned freezing and conditioned suppress can be correlated in some (Bouton and Bolles, 1980;Mast et al., 1982) but not all (Chu et al., 2024) settings.
Observing conditioned suppression in the absence of conditioned freezing means either nonfreezing behaviors compete to inhibit reward seeking, or suppression is not achieved through direct behavioral competition.
We recently demonstrated that a shock-paired auditory cue will suppress reward seeking, elicit locomotion, rearing and jumping, and also elicit freezing (Chu et al., 2024).Though consistent with some studies, observing such diversity of threat-elicited behaviors is not common.It is possible we observed this diversity was due to the complexity of our experimental design.Rats discriminated between two or three cues associated with unique foot shock probabilities (i.e., danger, uncertainty, and safety).Rats also received many conditioning sessions.Further, the results of the prior study were descriptive.Percent behavior to danger and safety were measured for each category of interest then statistically compared.Behaviors specifically engaged by the danger cue were then determined.If there is a robust relationship between a cue's learning status (pairing with shock) and these diverse behaviors, then we should be able to predict an individual's learning status based on individual's total behavior.The primary goal of the present experiments was to comprehensively quantify behaviors controlled by a shock-paired visual cue.We chose a visual cue for three reasons.First, to test how well our auditory findings (Chu et al., 2024) generalize to another modality.Second, it is known that a visual cue supports conditioned suppression that is equivalent to an auditory cue, despite producing little conditioned freezing (Kim et al., 1996).Yet, in the study by Kim and colleagues non-freezing behaviors evoked by the shock-paired visual cue could not be established.This means that there is a small but important gap in the literature concerning visually-evoked, fear conditioned behaviors.Third, conditioned suppression following lesioninduced abolishment of conditioned freezing was obtained with visual cues (McDannald, 2010;McDannald and Galarce, 2011).If conditioned suppression is achieved through alternative behaviors these behaviors should be most readily observed in conditioned suppression setting using a visual cue.
A secondary goal asked more specifically if a shock-paired visual cue supports locomotion (also termed darting or flight).This goal is generally motivated by observations that flight responses can be readily obtained in Pavlovian fear conditioning settings (Gruene et al., 2015;Totty et al., 2021;Mitchell et al., 2022;Le et al., 2023;Borkar et al., 2024) but see (Trott et al., 2022).Specific motivation comes from our prior study (Chu et al., 2024) in which we observed locomotion elicited by a shock-paired auditory cue during conditioning sessions in which foot shock was present and extinction in which foot shock was absent.
To reveal behaviors engaged by a shock-paired visual cue we performed two experiments.
Mildly food-deprived, Long Evans rats were trained to nose poke for food, then received Pavlovian fear conditioning over a baseline of rewarded poking.Both experiments used a between-subjects, 2 x 2 design (group x intensity) in which female and male rats (50/50 split) had a 10-s visual cue paired or unpaired with foot shock.In the vein of Holland (1979), we wanted to determine the lowest shock intensity that would support complete conditioned suppression (Holland, 1979).In Experiment 1 paired or unpaired rats received 0.15 or 0.25 mA foot shock.In Experiment 2 paired or unpaired rats received 0.35 or 0.5 mA foot shock.All rats received 8 total cue illuminations and shock presentations; simper and shorter experiments compared to our prior work (Chu et al., 2024).TTL-triggered cameras were installed in testing chambers and were programmed to capture frames at 200-ms intervals prior to, during, and following cue light illumination.For Experiment 2, 22,272 frames were hand scored for twelve behaviors under categories of Immobility (freezing and stretching), Horizontal movement (locomotion and backpedaling), Vertical movement (rearing, scaling, and jumping) and Reward-related behavior (nose port and food cup) behavior.We further differentiated light-directed variants of each Vertical movement type.
Comprehensive ethograms were constructed from the scored frames.Multivariate and univariate ANOVA performed on the ethogram data revealed behaviors that differed between groups.Latent discriminant analyses determined if group membership (paired vs. unpaired) could be classified from ethogram data.

Results
Our first objective was to determine the lowest foot shock intensity that would support conditioned suppression to a visual cue.Rats were shaped to nose poke in a central port for a food reward which was delivered via a cup below.The cue light was positioned above the central port.Cue light presentation resulted in bright, focal illumination of the light itself as well as diffuse illumination of the entire context, which was otherwise dark (Figure 1A).In Experiment 1, rats received cue light presentations paired or unpaired with a 0.25 or 0.15 mA foot shock.In Experiment 2, rats received cue light presentations paired or unpaired with a 0.5 or 0.35 mA foot shock (Figure 1B).Behavior chambers were equipped with TTL-triggered cameras capturing 5 frames/s starting 5 s prior to cue light presentation and ending 2.5 s following cue offset.

12
).Now, a significant sex x group interaction was observed (F1,24 = 9.21, p = 0.006).Paired rats showed higher suppression ratios than unpaired rats across sexes, but this difference was greater in Female rats.Two-tailed, independent samples t-tests found significant differences between the paired and unpaired rats receiving the 0.5 mA foot shock (t = 8.24, p = 3.52 x 10 -6 ) and the 0.35 mA foot shock (t = 7.37, p = 9.68 x 10 -7 ).

Scoring 12 mutually exclusive behaviors with high inter-rater reliability and low interrater confusion
We defined (Table 1) and scored 12 mutually exclusive behaviors in 200-ms intervals around cue light presentation.These behaviors belonged to 4 different categories: Immobile (freezing and stretching), Reward (cup and port), Vertical (rearing, scaling, and jumping), and Horizontal (locomotion and backpedaling).Within the Vertical behavior we further separated rearing and scaling that were directed towards the light.Light-directed behavior reflect stimulus orienting while non-light-directed behavior reflects context exploration.
We focused our scoring efforts on Experiment 2, in which rats receiving the 0.5 mA and 0.35 mA foot shock intensities showed robust conditioned suppression.Six observers blind to group, sex, and intensity (see methods for blinding details) scored 22,272 total frames: 11,136 from the second foot-shock session, and 11,136 from the extinction session.Additionally, these six observers scored 696 frames spanning eight separate comparison trials.We determined interrater reliability by calculating the % identical observations for each observer-observer pair across the 696 frames (Figure 2A).Mean inter-rater reliability was 72.41%.Although inter-rater reliability was higher when fewer behaviors were present in a trial (e.g., 77.7% when 3 present); inter-rater reliability was 71.9% even when eight behaviors were present (Figure 2B).Disagreement rarely involved two observers assigning different, specific behaviors to a single frame.Instead, disagreement occurred when one observer assigned background to a frame, while the other observer assigned a specific behavior to that frame.To quantify disagreements, we constructed a confusion matrix (Figure 2C) composed of every single-frame judgment for every observer-observer pair.Zero confusion, identical observations for every frame, would manifest as a diagonal line across the matrix (top left to bottom right).Confusing a specific behavior and background would manifest as a horizontal line on the top edge or a vertical line on the left edge.Confusing a specific behavior for another specific behavior would manifest as values occurring between the diagonal and edges.The confusion matrix shows the vast majority of values fall on the diagonal, with most of the remaining values on the left edge.The confusion matrix results reveal high scoring specificity.

Ethograms reveal diverse fear conditioned behaviors
We constructed comprehensive, high-temporal resolution ethograms for paired (Figure 3A) and unpaired (Figure 3B) rats from Experiment 2. For both groups, baseline behavior largely consisted of rearing, food cup and port behavior, with very small amounts of freezing and locomotion.Paired and unpaired behavior dramatically parted during cue light illumination.
Paired rats increased freezing and locomotion during cue illumination, then increased locomotion, backpedaling and jumping during and following shock presentation.At the same time, paired rats decreased rearing and food cup behavior.By contrast, unpaired rats increased light scaling, rearing, and light rearing during cue light illumination.Although increases in light rearing were observed in paired rats, these increases were blunted compared to unpaired rats.
Unpaired rats receiving the 0.35 mA foot shock backpedaled then locomoted following shock presentation, but rarely jumped.
Finally, univariate ANOVA found significant group x time x sex interactions for 3 of the 12 behaviors: rear (F86,2064 = 1.80, p = 1.41 x 10 -5 ), jump (F86,2064 = 1.93, p = 1.12 x 10 -6 ), and backpedal (F86,2064 = 1.63, p = 2.79 x 10 -4 ).Line graphs separately plotting female and male rats for each of the 3 behaviors are shown in Figure 3 -Supplemental Figure 2. Sex differences were not all or none -both paired females and males reduced rearing and increased jumping and backpedaling.Instead, differences amount to behavior timing and magnitude.Paired female rats suppressed rearing during late cue presentation while males suppressed post-cue.Paired female rats had a longer locomote bout, on average, compared to males following shock presentation.Paired males showed greater levels of backpedaling compared to females following shock presentation.

Behavioral diversity persists in extinction
To determine if any behaviors were differentially expressed in the absence of foot shock, we constructed complete ethograms for paired (Figure 4A) and unpaired (Figure 4B) rats during extinction testing.As during conditioning, baseline behavior largely consisted of food-related behavior and rearing, and was similar for paired and unpaired rats.Paired and unpaired behavior parted following cue light illumination.Paired rats increased freezing and locomotion during cue illumination, then increased locomotion following cue offset.Freezing accounted for less than ~5% of total behavior.Unpaired rats increased scaling throughout cue illumination and maintained high levels of light rearing throughout cue and post-cue periods.Both scaling and light rearing were suppressed in paired rats.

Ethograms predict group membership (paired vs. unpaired)
Given the multitude of differing behaviors, it should be possible to use ethogram data to predict group membership.To do this we turned to latent discriminant analysis.We used ethogram data to create a linear array for each of the 64 sessions (32 conditioning and 32 extinction).Linear discriminant analysis sampled a subset of the 64 sessions to train a linear classifier to predict group membership.The linear classifier was then tested on the held-out sessions.This process was repeated 100 times.The data of primary interest was mean ± SEM group classification accuracy for the held-out data, with chance classification being 50%.
We first performed linear discriminant analysis for the total ethogram data (1044 value array for each session, 12 behaviors x 87 samples).We compared linear discriminant analysis of the total ethogram data to two kinds of shuffled ethogram data.Session-shuffled ethogram data were shuffled by row, meaning that the relationship between group membership and ethogram was lost.Temporal-shuffled ethogram data were shuffled by column, meaning the group membership information was intact but the temporal structure of behavior was lost.
Ethograms predicted group membership, and prediction did not deteriorate when temporal structure was lost.Mean ± SEM classification accuracy for the total ethogram data was 82.64 ± 0.003%, exceeding chance (one sample t-test, p = 9.31 x 10 -109 ; Figure 5A).Mean ± SEM classification accuracy for session-shuffled data was 49.53 ± 0.008%, which did not differ from chance (one sample t-test, p = 0.57).Mean ± SEM classification accuracy for the temporalshuffled ethogram data was 83.16 ± 0.003%, exceeding chance (one sample t-test, p = 1.71 x 10 -112 ).Total ethogram and temporal-shuffled ethogram classification did not differ from one another (one sample t-test, p = 0.18).
In fact, latent discrimination analysis to classify session type (conditioning vs. extinction) from all 87 frames for the total ethogram data achieved chance accuracy (49.55%).

Discussion
We set out to comprehensively quantify behaviors engaged by a shock-paired visual cue.First, we found that the ability of a visual cue to support conditioned suppression depends on foot shock intensity (Holland, 1979).In rats showing robust conditioned suppression of rewardrelated responding, we also observed robust suppression of scaling and rearing, as well as suppression of light-directed scaling and rearing.Freezing was specific to a shock-paired visual cue, but was shown at low levels during conditioning and even lower levels during extinction testing.Our observation of minimal conditioned freezing, but robust conditioned by a shockpaired visual cue is consistent with prior studies (Kim et al., 1996).Finally, a shock-paired visual cue elicited locomotion during both cues and post-cue periods in conditioning as well as extinction.The results bolster our prior findings of diverse fear conditioned behaviors, and further demonstrate the ability of a shock-paired cue to elicit locomotion (Chu et al., 2024).
Compared to studies using auditory cues (Walker et al., 2018), visual cues produces higher levels of unconditioned suppression of reward-related behavior that persist for more sessions.This is likely because a visual stimulus, beyond illuminating the physical space occupied by the stimulus, provides more general context illumination.Visual cue illumination then provides the basis for two different types of behavior: stimulus-directed orienting and context exploration.
This means that a shock-paired visual cue will not only suppress reward-related behavior, but stimulus orienting and context exploration.While it is possible that all three are achieved through response competition with freezing and locomotion (which would also compete with one another), it is more likely the capacity to suppress each of the three is independent of other overt behaviors.Conditioned suppression of contextual exploration would represent a novel means of studying behavioral processes related to agoraphobia.
Our experimental design included the balanced use of female and male rats.This was done primarily for experimental rigor, but also because darting (similar to our locomotion) has been shown to be more prevalent in female rats.In general, we found female and male rats to be much behaviorally similar than different.However, we did find that during conditioning females tended to show longer jumping bouts and less frequent backpedaling bouts following shock presentation.Our finding of differences in shock-responsiveness that do not manifest as differences in cue-elicited behavior are consistent with recent results (Mitchell et al., 2024).
Our high-resolution approach to scoring (5 frames per second) gave us an unprecedented look at the temporal organization of behavior.Looking at ethograms, behavioral transitions across cue presentation, then from cue offset to shock onset were evident.Surprising to us, this temporal organization was not essential to classify rats as paired or unpaired based on their ethogram data.This means that whether a behavior occurred during a trial was more telling of paired or unpaired identity than when that behavior occurred.Consistent with this description, paired and unpaired identity could be classified above chance from only the freezing and stretching behavior data.This is despite the fact that freezing and stretching accounted for only a very small portion of the data.Still, group classification was most effective when all behaviors were considered across trial entirety.
The temporal organization of locomotion was highly conserved from conditioning to extinction.
As expected, paired rats showed robust locomotion following shock delivery during the conditioning sessions, an unconditioned response.Locomotion also occurred during cue light illumination in those same sessions, a conditioned response.Visual-cue elicited locomotion was further evident during the extinction session, again demonstrating a conditioned response.
However, not only did we observe locomotion following cue offset during extinction (when no shock is given), but its timing and magnitude strongly resembled that from the response to the shock itself.In fact, the organization of paired behavior during the extinction session was so similar to the conditioning session that linear discriminant analysis performed only on paired rats could not accurately classify conditioning vs. extinction sessions.Not only does a shock-paired visual cue engage diverse behaviors but this capacity transfers very well to an extinction setting.
Studies of Pavlovian fear conditioning measuring freezing have been invaluable for mapping neural circuits for fear learning and expression.These results join a host of recent studies (Le et al., 2023;Chanthongdee et al., 2024;Mitchell et al., 2024) demonstrating an impressive diversity of fear conditioned behaviors.Mapping neural circuits for these diverse fear behaviors will mean a more complete understanding of the brain basis of fear, that is more likely to translate to the full spectrum of anxiety and stressor-related disorders.

Subjects
Experiments 1 and 2 each used thirty-two adult Long Evans rats (sixteen females), for a total of sixty-four rats (thirty-two females).Rats were obtained from Charles River Laboratories on postnatal day 55.Rats were single-housed on a 12-hr light cycle (lights off at 6:00pm) and maintained at their initial body weight with standard laboratory chow (18% Protein Rodent Diet #2018, Harlan Teklad Global Diets, Madison, WI).Water was available ad libitum in the home cage.All experiments were carried out in accordance with the NIH guidelines regarding the care and use of rats for experimental procedures.All procedures were approved by the Boston College Animal Care and Use Committee.The Boston College experimental protocol supporting these procedures is 2024-001.

Behavior apparatus
The behavior apparatus consisted of eight individual chambers with aluminum front and back walls, clear acrylic sides and top, and a grid floor.LED strips emitting 940 nm light were affixed to the acrylic top to constantly illuminate the behavioral chamber for frame capture.940 nm illumination was chosen because rats do not detect light wavelengths exceeding 930 nm (Nikbakht and Diamond, 2021).An array of three infrared lights were mounted to the chamber door to track trial period (baseline, light, and post-light).Each grid floor bar was electrically connected to an aversive shock generator (Med Associates, St. Albans, VT).An external food cup, a central port equipped with infrared photocells, and a key light were present on one wall.

Pellet exposure and nose poke shaping
Identical pellet exposure and nose poke shaping were performed for Experiments 1 and 2. Rats were food-restricted and specifically fed to maintain their body weight throughout behavioral testing.Each rat was given four grams of experimental pellets in their home cage in order to overcome neophobia.Next, the central port was removed from the experimental chamber, and rats received a 30-minute session in which one pellet was delivered every minute.The central port was returned to the experimental chamber for the remainder of behavioral testing.Each rat was then shaped to nose poke in the central port for experimental pellet delivery using a fixed ratio schedule in which one nose poke into the port yielded one pellet.Shaping sessions lasted 30 min or until approximately 50 nose pokes were completed.Each rat then received five sessions during which nose pokes into the port were reinforced on a variable interval schedule.
Session 1 used a variable interval 30 s schedule (poking into the port was reinforced every 30 s on average).All remaining sessions used a variable interval 60 s schedule.For the remainder of behavioral testing, nose pokes were reinforced on a variable interval 60 s schedule independent of light and shock presentation.

Light pre-exposure
Identical light pre-exposure was performed for Experiments 1 and 2. Each rat was pre-exposed to the 10-s light, four times during two, 43-minute sessions (Monday and Tuesday).The two pre-exposure sessions meant that each rat received eight total, light pre-exposures.Although light intensity was greatest at the source, light presentation generally illuminated the experimental chamber which was completely dark to the rat at all other times.

Light and shock presentations
Following pre-exposure, the 32 rats in each experiment were evenly divided into two groups: Paired (16 rats, 8 females) and Unpaired (16 rats, 8 females).Each Paired and Unpaired rat received 4 light, and 4 shock presentations during two, 43-minute sessions (Wednesday and Thursday).The two sessions meant that each rat received 8 total light and shock presentations.
For rats in the Paired group, the light was presented for 10 s.Light offset precisely coincided with foot shock presentation (0.5 s).For rats in the Unpaired group, light (10 s) and shock (0.5 s) were presented at distant times.The inter-event interval (in which both light and shock are considered events) was greater than five minutes.The order of Unpaired light and shock presentation was randomly determined and differed for each rat, each session.

Extinction test
Identical extinction tests were performed for Experiments 1 and 2. The single, extinction session (Friday) was identical to the pre-exposure session.Each rat received four, 10-s light presentations in a 43-minute session.

Calculating suppression ratio
Time stamps for cue light illumination, shock presentation, and nose pokes (photobeam break) were automatically recorded by the Med Associates program.Baseline nose poke rate was calculated for each trial by counting the number of pokes during the 20-s pre-light period and multiplying by 3. Light nose poke rate was calculated for each trial by counting the number of pokes during the 10-s light period and multiplying by 6. Nose poke suppression was calculated as a ratio: (baseline poke rate -light poke rate) / (baseline poke rate + light poke rate).A suppression ratio of '1' indicated complete suppression of nose poking during light presentation relative to baseline.A suppression ratio of indicated '0' indicates equivalent nose poke rates during baseline and light presentation.Gradations in suppression ratio between 1 and 0 indicated intermediate levels of nose poke suppression during light presentation relative to baseline.Negative suppression ratios indicated increased nose poke rates during light presentation relative to baseline.

Frame capture system
Behavior frames were captured using Imaging Source monochrome cameras (DMK 37BUX28; USB 3.1, 1/2.9"Sony Pregius IMX287, global shutter, resolution 720x540, trigger in, digital out, C/CS-mount).Frame capture was triggered by the Med Associates behavior program.The 28V Med Associates pulse was converted to a 5V TTL pulse via Adapter (SG-231, Med Associates, St. Albans, VT).The TTL adapter was wired to the camera's trigger input.Captured frames were saved to a PC (OptiPlex 7470 All-in-One) running IC Capture software (Imaging Source).
Frame capture began precisely 5 s before light onset, continued throughout 10-s light presentation, and ended 2.5 s following light offset.For Paired rats this meant frames were captured during the 0.5 s shock and the 2 s following.For Unpaired rats, the empty 2.5 s period was captured.Frames were captured at a rate of 5 per second, with a target of capturing 87 frames per trial, and 348 frames per session.

Anonymizing trial information
A total of 256 trials were scored from the 32 rats in Experiment 2. Trials came from the second session of light/shock presentations (Thursday) and the extinction test (Friday).We anonymized trial information in order to score behavior without bias.The numerical information from each trial (session #, rat # and trial #) was encrypted as a unique number sequence.A unique word was prepended to the sequence.The result was that each trial was converted into a unique word+number sequence.For example, trial dw01_01_03 (rat #1, session #1 and trial #3) would be encrypted as: abundant28515581.The trials were randomly assigned to 6 observers.The result of trial anonymization was that observers were completely blind to subject, group, and session.Further, random assignment meant that the 4 trials composing a single session were scored by different observers.

Post-acquisition frame processing
A Matlab script sorted the 348 frames into 4 folders, one for each trial, each containing 87 frames.Each 87-frame trial was made into an 87-slide PowerPoint presentation to be used for hand scoring.

Behavior categories and definitions
Frames were scored as one of twelve mutually exclusive behavior categories, defined as follows: Background.Specific behavior cannot be discerned because the rat is turned away from the camera or position of forepaws is not clear, or because the rat is not engaged in any of the other behaviors.
Backpedal.Rapid backward displacement of the body.Often (not always) the head is down and/or back is arched.The backward component of movement must be stronger than the lateral component.A lateral movement is not a backpedal.Backpedal considers the current frame (t) and the next two frames (t+1 and t+2).By frame t+2 the body and both back feet must be displaced backward relative to frame t.The rat can move the body and both feet by t+1, t+2 or move in combination of both frames; all count as backpedal for trial t. (See illustration for reference) Cup.Any part of the nose above the food cup but below the nose port.
Freeze.Arched back and stiff, rigid posture in the absence of movement, all four limbs on the floor (often accompanied by hyperventilation and piloerection).Side to side head movements and up and down head movements that do not disturb rigid posture are permitted.Activity such as sniffing, or investigation of the bars is not freezing.Freezing, as opposed to pausing, is likely to be 3 or more frames (600+ ms) long.
Groom.Any scratching, licking, or washing of the body.
Jump.All four limbs off the floor.Includes hanging which is distinguished when hind legs are hanging freely.
Locomote.Propelling body across chamber on all four feet, as defined by movement of back feet.Movement of back feet with front feet off floor is rearing.Locomote considers the current frame (t) and the next two frames (t+1 and t+2).By frame t+2 the body and both back feet must be displaced forward relative to frame t.The rat can move the body and both feet by t+1, t+2 or move in combination of both frames; all count as locomote for trial t.
Port.Any part of the nose in the port.Often standing still in front of the port but sometimes tilting head sideways with the body off to the side of the port.
Rear.One or two hind legs on the grid floor with both forepaws off the grid floor and not on the food cup.Usually (not always) stretching to full extent, forepaws usually (not always) on top of side walls of the chamber, often pawing walls; may be accompanied by sniffing or slow side-toside movement of head.Does not include grooming movements or eating, even if performed while standing on hind legs.Light rear.A rear happening within the 3D space defined by these planes: nose is above the poke (X), between the metal columns in the light area (Y), within the depth of the front edge of the food cup (Z).If the rats body is outside of the columns BUT the nose is within the defined 3D space, it is a Light Rear.Often the body will be near the wall and/or the forepaws will be on the wall.The nose can be above the light.The light does not have to be on to be scored as a Light Rear.
Scale.All four limbs off the floor but at least two limbs on the side of the chamber.Standing on the food cup counts as scaling.
Light scale.A scale that is happening when the nose is above the poke and between the metal columns in the light area.Including above the light.The light does not have to be on to be scored as a light scale.
Stretch.The body is elongated with the back posture 'flatter' than normal.Stretching is often accompanied by immobility, like freezing, but is distinguished by the shape of the back.

Frame scoring system
Frames were scored using a specific procedure.Frames were first watched in real time in Microsoft PowerPoint by setting the slide duration and transition to 0.19 s, then playing as a slideshow.Behaviors clearly observed were noted.Next, the observer went through all the frames scoring one behavior at a time.A standard scoring sequence was used: groom, port, cup, light rear, rear, light scale, scale, jump, freeze, locomote, backpedal, stretch.When the specific behavior was observed in a frame, that frame was labeled.Once all behaviors had been scored, the video was re-watched for freezing.The unlabeled frames were then labeled 'background'.Finally, all background frames were checked to ensure they did not contain a defined behavior.

Statistical analyses
Multivariate analysis of variance (MANOVA) and univariate analysis of variance (ANOVA) were performed for suppression ratios, and specific behaviors.Sex was used as a factor for all analyses.Group, session, intensity, and time were used as factors when relevant.Univariate ANOVA following MANOVA used a Bonferroni-corrected p value significance of 0.004167 (0.05/12) to account for the twelve quantified behaviors.Post-hoc comparisons were made using independent samples and one-sample t-tests.

Linear discriminant analysis
Linear discriminant analysis (MATLAB's fitcdiscr function) was used to predict group membership (paired vs. unpaired) from ethogram data.LDA is a linear classification method that projects the ethogram features into a space that maximizes the separation between groups.
Each LDA model used the entire dataset without any initial data splitting.To evaluate the performance of the LDA model, 10-fold cross-validation was applied using MATLAB's crossval function.Cross-validation divides the dataset into 10 equal parts (folds).For each iteration, the model was trained on 9 folds and tested on the remaining fold.This process was repeated 10 times so that each fold served as a test set once.The accuracy of the model (defined as 1 minus the loss, 1-L) was assessed by computing the classification error for each fold, and the overall performance was averaged across all folds.The crossval function was used in conjunction with kfoldLoss, which returns the average classification error across the folds.The performance of the LDA model was quantified using the average classification accuracy across the 10 folds.This approach provided a robust estimate of the model's generalization capability to unseen data, reducing the likelihood of overfitting.One hundred LDA models were made for each analyses.Prediction accuracies from each model were saved and used to calculate mean ± SEM prediction accuracies across all iterations, for each analysis.

Figure Captions
Box 1. Behavior definitions Background.Specific behavior cannot be discerned because the rat is turned away from the camera or position of forepaws is not clear, or because the rat is not engaged in any of the other behaviors.
Backpedal.Rapid backward displacement of the body.Often (not always) the head is down and/or back is arched.The backward component of movement must be stronger than the lateral component.A lateral movement is not a backpedal.Backpedal considers the current frame (t) and the next two frames (t+1 and t+2).By frame t+2 the body and both back feet must be displaced backward relative to frame t.The rat can move the body and both feet by t+1, t+2 or move in combination of both frames; all count as backpedal for trial t. (See illustration for reference) Cup.Any part of the nose above the food cup but below the nose port.
Freeze.Arched back and stiff, rigid posture in the absence of movement, all four limbs on the floor (often accompanied by hyperventilation and piloerection).Side to side head movements and up and down head movements that do not disturb rigid posture are permitted.Activity such as sniffing, or investigation of the bars is not freezing.Freezing, as opposed to pausing, is likely to be 3 or more frames (600+ ms) long.
Groom.Any scratching, licking, or washing of the body.
Jump.All four limbs off the floor.Includes hanging which is distinguished when hind legs are hanging freely.
Locomote.Propelling body across chamber on all four feet, as defined by movement of back feet.Movement of back feet with front feet off floor is rearing.Locomote considers the current frame (t) and the next two frames (t+1 and t+2).By frame t+2 the body and both back feet must be displaced forward relative to frame t.The rat can move the body and both feet by t+1, t+2 or move in combination of both frames; all count as locomote for trial t.
Port.Any part of the nose in the port.Often standing still in front of the port but sometimes tilting head sideways with the body off to the side of the port.
Rear.One or two hind legs on the grid floor with both forepaws off the grid floor and not on the food cup.Usually (not always) stretching to full extent, forepaws usually (not always) on top of side walls of the chamber, often pawing walls; may be accompanied by sniffing or slow side-to-side movement of head.Does not include grooming movements or eating, even if performed while standing on hind legs.Light rear.A rear happening within the 3D space defined by these planes: nose is above the poke (X), between the metal columns in the light area (Y), within the depth of the front edge of the food cup (Z).If the rats body is outside of the columns BUT the nose is within the defined 3D space, it is a Light Rear.Often the body will be near the wall and/or the forepaws will be on the wall.The nose can be above the light.The light does not have to be on to be scored as a Light Rear.
Scale.All four limbs off the floor but at least two limbs on the side of the chamber.Standing on the food cup counts as scaling.
Light scale.A scale that is happening when the nose is above the poke and between the metal columns in the light area.Including above the light.The light does not have to be on to be scored as a light scale.
Stretch.The body is elongated with the back posture 'flatter' than normal.Stretching is often accompanied by immobility, like freezing, but is distinguished by the shape of the back.

Figure 1 .
Figure 1.Experimental design and suppression ratio results.(A) Behavioral testing took place in a dark, Med Associates chamber equipped with a food cup, port, and cue light on one wall (left).Cue light illumination provided a discrete visual cue in addition to generally illuminating the chamber.(B) Rats in each experiment were divided into Paired (red; n=16) and Unpaired (gray; n=16) conditions.Experiment 1 used foot shock intensities of 0.15 mA and 0.25 mA, while Experiment 2 used foot shock intensities of 0.35 mA and 0.50 mA.(C) Mean ± SEM suppression ratio for Paired (red) and Unpaired (gray) rats receiving 0.25 mA (diamond) or 0.15 mA (square) foot shock over the two pre-exposure sessions (p1 and p2) and the two foot shock sessions (1 and 2) are shown for Experiment 1. Behavior frames were captured every 200 ms, 5 s prior to and 2.5 s following cue light presentation.(D) Group mean (bar) and individual mean (point) suppression ratio for the extinction test are shown for female (closed points) and male (open points), with color and shape meaning from C maintained.Experiment 2 suppression ratio data are shown in E and F. Formatting other than foot shock intensity (0.50 mA, circles; 0.35 mA, triangles) is identical to C and D.

Figure 3 .
Figure 3. Conditioning ethograms.(A) Ethogram for paired rats shows % behavior (y axis) for each behavioral category in 200-ms intervals from 5-s prior to cue onset (time 0) to 2.5 s following cue offset (time 10).Paired rats had shock delivered at cue offset.Colors for each behavior category: Freeze (red), Stretch (orange), Rear (mustard), Light Rear (yellow), Scale (light green), Light Scale (green), Jump (dark green), Locomote (cyan), Backpedal (sky blue), Cup (magenta), Port (purple), and Groom (gray).(B) Ethogram for unpaired rats, details identical to paired rats.Unpaired rats did not receive shock at cue offset.Line graphs for the 8 behaviors showing a significant group x time interaction are shown in panels C-J.% Behavior is shown for paired rats (P, red) and unpaired rats (U, gray).X axis same as in A/B, y axis scaled to best visualize behavior patterns.Colored bars at the top of each axis indicate 1-s time periods in which paired and unpaired % behavior differed (independent samples t-test, p < 0.05).Red bars indicate greater behavior in paired rats while gray bars indicate greater behavior in unpaired rats.

Figure 4 .
Figure 4. Extinction ethograms.(A) Ethogram for paired rats shows % behavior (y axis) for each behavioral category in 200-ms intervals from 5-s prior to cue onset (time 0) to 2.5 s following cue offset (time 10).No shock was delivered during this session.Colors for each behavior category: Freeze (red), Stretch (orange), Rear (mustard), Light Rear (yellow), Scale (light green), Light Scale (green), Jump (dark green), Locomote (cyan), Backpedal (sky blue), Cup (magenta), Port (purple), and Groom (gray).(B) Ethogram for unpaired rats, details identical to paired rats.Line graphs for the 4 behaviors showing a significant group x time interaction are shown in panels C-F.% Behavior is

Figure 5 .
Figure 5. Linear discriminant analysis results.(A) Group classification accuracy (paired vs. unpaired) is shown for the total ethogram data (left), baseline (second from left), cue light (second from right), and post cue light (right).Ethogram data were intact (Etho, black), shuffled by session (SS, gray), or shuffled temporally (TS, tan).Each data point represents the accuracy of a single model.The dotted line indicates chance classification.(B) Group classification accuracy for the cue light illumination period is shown for separate, multi-behavior categories (Immobile, red; Horizontal, cyan; Vertical, green; and Reward, purple).The dotted line indicates chance classification while the solid line indicates mean classification accuracy for the total ethogram data during cue light illumination.(C) Group classification accuracy for the post cue period is shown for separate, multi-behavior categories (color as in B).The dotted line indicates chance classification while the solid line indicates mean classification accuracy for the total ethogram data post cue light illumination.*Significance of a one-sample t-test compared to 0.5 (chance).+ Significance of an independent-samples t-test comparing Vertical classification to total ethogram classification.