Method Article

Experimental Assessment of Mouse Sociability Using an Automated Image Processing Approach

DOI:

10.3791/52508

May 15th, 2016

In This Article

Summary

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This protocol describes a method to quantify mouse sociability. Mice are videotaped as they move and interact in a special cage. Movie processing allows for the automated quantification of sociability with excellent accuracy and reliability.

Abstract

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Mouse is the preferred model organism for testing drugs designed to increase sociability. We present a method to quantify mouse sociability in which the test mouse is placed in a standardized apparatus and relevant behaviors are assessed in three different sessions (called session I, II, and III).

The apparatus has three compartments (see Figure 1), the left and right compartments contain an inverted cup which can house a mouse (called "stimulus mouse").

In session I, the test mouse is placed in the cage and its mobility is characterized by the number of transitions made between compartments. In session II, a stimulus mouse is placed under one of the inverted cups and the sociability of the test mouse is quantified by the amounts of time it spends near the cup containing the enclosed stimulus mouse vs. the empty inverted cup. In session III, the inverted cups are removed and both mice interact freely. The sociability of the test mouse in session III is quantified by the number of social approaches it makes toward the stimulus mouse and by the number of times it avoids a social approach by the stimulus mouse.

The automated evaluation of the movie detects the nose of the test mouse, which allows the determination of all described sociability measures in session I and II (in session III, approaches are identified automatically but classified manually). To find the nose, the image of an empty cage is digitally subtracted from each frame of the movie and the resulting image is binarized to identify the mouse pixels. The mouse tail is automatically removed and the two most distant points of the remaining mouse are determined; these are close to nose and base of tail. By analyzing the motion of the mouse and using continuity arguments, the nose is identified.

Animal behavior tracking diagram; mouse movement across sessions in maze environment.
Figure 1. Assessment of Sociability During 3 sessions. Session I (top): Acclimation of test mouse to the cage. Session II (middle): Test mouse moving freely in the cage while the stimulus mouse is enclosed in an inverted cup. Session III (bottom): Both test mouse and stimulus mouse are allowed to move freely and interact with each other.

Introduction

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Impaired sociability is one of the primary symptom domains in a range of neurodevelopmental disorders, including autism spectrum disorders (ASDs)1,2. It severely limits the patients' ability to develop relationships and greatly affects patients, families, and caregivers2,3.

In an effort to better understand the mechanism underlying impaired sociability and develop treatments, several mouse models have been studied1,4–9. One such strain is the BALB/c mouse, an inbred strain that exhibits strikingly low sociability, resembling features seen in patients with ASD58–12. For example, the BALB/c mouse displays a lower frequency of social approaches and a usually negative response to social approaches by a stimulus mouse (e.g., social avoidance) than the Swiss Webster comparator strain10.

To test whether a proposed treatment is effective in increasing sociability, objective measures are needed. A widely accepted framework is to analyze the sociability in a standardized apparatus that has three compartments (see Figure 1).

The left and right compartments each contain an inverted wire cup which houses a socially salient stimulus mouse. The test mouse is released into the apparatus for three intervals of 10 min (sessions I-III); session I assesses the locomotor activity of the test mouse, while sessions II and III assess different aspects of the test mouse's sociability.

In session I, the test mouse is allowed to acclimate to the apparatus. In this session, the number of transitions that the test mouse makes between the different compartments is measured. Importantly, sociability measures obtained in the standard three-compartment apparatus are dependent upon locomotor activity, and reduced locomotor activity can confound interpretation of sociability data.

In session II, the test mouse is moving freely and a stimulus mouse is placed under one of the inverted cups (counterbalanced). The stimulus mice are 4-week old outbred male ICR mice, age- and sex-matched to the test mice. The stimulus mouse is enclosed in an inverted cup in the side designated as the social compartment, and an empty inverted cup is placed in the side designated as the nonsocial compartment. In session II, the sociability of the test mouse is quantified by comparing the time it spends near the “social” inverted cup (less than 2 cm away) vs. the time it spends near the “nonsocial” inverted cup, and by the time it spends in the social compartment vs. the time it spends in the nonsocial compartment. Swiss Webster comparator mice spend significantly more time in the social compartment and near the social inverted cup compared to BALB/c mice that show no significant preference for the social inverted cup or the social compartment12.

In session III, test and stimulus mice are allowed to interact freely (inverted cups are removed). Measures of sociability, stereotypic behaviors and transitions between compartments are reliably obtained in the third 10 min session of free interaction between test and stimulus mice and analyzed. In this report, the sociability of the test mouse is quantified via two measures: 1) the number of social approaches it makes toward the stimulus mouse, where a social approach is defined as moving forward (nose first) towards the stimulus mouse so that the nose is less than 2 cm away from the stimulus mouse; 2) the number of avoidances of social approaches by the stimulus mouse. The test mouse is considered to be avoiding the approach if it turns or moves away from the stimulus mouse, or if it temporarily stops moving (“freezing behavior”) after the stimulus mouse has approached the test mouse. BALB/c mice show a decrease in number of social approaches made towards the stimulus mouse and an increase in the number of negative responses to social approaches by the stimulus mouse, compared to the Swiss Webster comparator strain10.

The evaluation of the behavioral movies has traditionally been done manually, i.e., by watching the movie carefully (possibly at reduced speed) and activating stopwatches for the time the mouse spends in a certain compartment or near one of the inverted cups10. This method requires watching of the movie repeatedly and is, therefore, very time-consuming. Also, the accuracy is limited by the rater’s reaction time for the stopwatch measurements and ability to perceive whether the mouse is within 2 cm of the inverted cup. In recent work, two compounds, (D-serine and D-cycloserine) have proven effective in restoring sociability in BALB/c mice9,10,12. It is known that both components modulate the NMDA receptor, which is known to play a central role in social behavior2,12. A large array of compounds is known to modulate NMDA receptor activity in a variety of well-defined ways, and the potential for a breakthrough in ASD treatment makes the expedited evaluation of these compounds a priority and a fast automatic method for evaluation highly desirable.

Described below is an automatic analysis procedure developed for the assessment of mouse sociability. It uses image processing methods on all the frames of the mouse movies to identify the position of the mouse or mice. In sessions I and II, it further detects nose position and uses it to compute sociability measures. In session III, it automatically detects all approaches, but manual classification (social approach, social avoidance, or other) is required.

Access restricted. Please log in or start a trial to view this content.

Protocol

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The protocol for the ease of explanation has been divided into 2 parts: 1) Experimental procedure and 2) Automated analysis. All animals were treated according to the Guide for the Care and Use of Laboratory Animals15, and all procedures were approved by the Institutional Animal Care and Use Committee.

1. Experimental Procedure

  1. Set up the cage, which is a black non-reflective Plexiglas rectangular box (52 x 25 x 23 cm3) divided into three compartments: social, nonsocial, and a neutral middle compartment (Figure 1). Place inverted wire cups in each of the end compartments during sessions I and II (discussed below) and house the stimulus mouse during session II.
  2. Set up the camera in such a manner that the cage fills the field of view. Since lighting can interfere with mouse behavior, maintain a luminance of no more than 3.5 lux inside the cage, coming from indirect light from an incandescent light bulb and measured on the cage floor in upward direction. Also use an infrared light source, which mice cannot sense but the camera can detect. Record all movies in 720 x 480 standard definition.
  3. Record a single frame of an empty cage for later image processing (called the “reference frame”) and save as a grayscale image.
  4. Session I: Introduce test mouse into the cage and wave hand over the cage, indicating the start of session (compare Automated Analysis). Record movie for 10 min. At the end of 10 min, put the mouse back into its original cage.
  5. Session II: Put the stimulus mouse under one of the inverted cups (counterbalanced).
  6. Use the “Social left” or “Social right” button to select whether the stimulus mouse is in the inverted cup on the left or in the inverted cup on the right.
    NOTE: The inverted cup with the stimulus mouse is called the “social cup”, whereas the other cup the “nonsocial cup”. The compartment in which the social cup is located is called the social compartment, the compartment with the nonsocial cup is the nonsocial compartment, and the middle compartment is the “neutral compartment”.
  7. Introduce the test mouse into the cage. Wave hand over the cage to indicate the start of the session. Record movie for 10 min. Importantly, keep mice in the sociability apparatus before removing the inverted cups to begin Session III.
  8. Session III: Remove the inverted cups, release both mice and allow the test and stimulus mice to interact freely with each other. Wave hand over the cage to indicate the start of the session. Record movie for 10 min. At the end of 10 min, put both mice back into their respective cages.

2. Automated Analysis

NOTE: The commands in section 2 are issued via a graphical user interface (see Figure 2) that controls our software. Here we explain the step-by-step processing that our software allows; the software is also capable of performing the analysis in batch mode without user input.

  1. For every movie, execute the following processing steps:
    1. Load movie (click Load button).
    2. Select cage configuration, which tells the analysis program the location of cage boundaries, compartment boundaries, and cup locations. Select one of four saved configurations or manually adjust all coordinates.
      NOTE: The configuration usually does not change from one experiment to the next and can therefore be reused.
    3. For each frame of the movie, perform the following processing steps (2.1.3.1-2.1.3.6).
      1. Convert the frame to grayscale by clicking the “Grayscale” button.
      2. Digitally subtract the grayscale reference frame (see step 1.3) by clicking the “Subtract” button. NOTE: The goal of this step is to make the pixel values of the frame very close to zero everywhere except for the mouse position.
      3. Binarize the frame by setting all pixels below a certain threshold level to black, all pixels above that level to white (click the “Binarize” button).
        Note: The idea is that since the mouse pixels generally have higher values than the remaining pixels, the mouse pixels will become white and all other pixels black. The optimal threshold level depends on the lighting condition and can be determined by assessing the mouse shape throughout a movie. If the threshold is chosen too low, the mouse appears too large, and pixels that do not belong to the mouse can be colored white. If the threshold is too high, the mouse becomes small and can disintegrate into disconnected pieces. In the recorded movies, the optimal threshold was always between 20 and 35 (on a scale from 0 to 255).
      4. Erode13 the binarized picture e times, then dilate13 2e times, then erode again e times, by pushing the button “Erod/Dil”.
        Note: The purpose to this procedure is to remove the tail. For the resolution (720 x 480) that was used, e = 3 worked in all circumstances.
        Note: The software checks automatically for the presence of a hand in the picture (during the recording of movies, hands are waved through the picture to indicate the beginning of a session). If a hand is present, there will be unusually many white pixels in the binarized frame because the hand is much larger than a mouse. The condition for the presence of a hand is that there are more than 10,000 white pixels in the binarized frame. The software determines the beginnings of sessions I, II, and III, by detecting the range of frames in which hand movements occur.
  2. In sessions I and II, continue as follows:
    1. Detect the largest connected component of the set of white pixels (Click “LComp”). Note: The purpose of this step is to eliminate white pixels that do not belong to the mouse, e.g., caused by the motion of the stimulus mouse in session II. The largest connected component is in almost all frames the mouse.
    2. Determine the two most distant white pixels (called the “ends” of the mouse) by clicking “Find Ends”.
      Note: The software establishes the continuity of the two ends, i.e., for each of the ends in the first frame to which of the ends in the subsequent frames they belong. The general idea is that since frames are recorded at high rate, the ends cannot travel far from one frame to the next, so that for the correct continuation of the ends from one frame to the next is that which minimizes the sum of the distances that the ends move. See the Discussion for more detail.
    3. Determine which end of the mouse is the nose.
      1. Determine the direction in which a mouse moves by observing how the center of gravity (COG) changes from frame to frame (the COG’s motion is the motion of the sum of all mouse pixels).
        Note: The COG of a set of pixels p1, ... , pn  with coordinates x1, .. , xn   is defined by:
        Center of gravity formula, mathematical equation, Σpixi/Σpi, physics calculation method.
        Mice usually move forward (i.e., towards their nose). In a section of several hundred frames, there is always very high confidence in the head/tail detection.
        Note: The software automatically determines towards which of the detected ends the mouse is moving; this end is identified as the nose and marked with a red circle in the movie. When the detected nose is marked with a red circle in every frame, the user can check the quality of the detection.
  3. In session III, continue as follows:
    1. Detect two largest components of white pixels.
      1. If both are of acceptable size for a mouse and their centers of gravity (COGs) are compatible with the mouse COGs of the previous frame, consider these two components the two mice.
      2. Consider mouse sizes acceptable if they have not changed by more than 20% since the previous frame, and consider COGs of two consecutive frames as compatible if their difference is not larger than the distance a mouse can travel in the time between frames (this distance follows from the maximum mouse speed, which can be determined as part of the preparations of an experiment series by analyzing the motion of several individual mice (as in sessions I and II).
        Note: If the two largest components are not acceptable sizes for a mouse, or the COGs are too different from those in the previous frame, the software automatically increases the binarization threshold until the two largest components are of acceptable size and their COGs are compatible with those of the previous frame.
    2. Click the test mouse in the first frame. Use the analysis in 2.3.1 to identify both test and stimulus mouse in every frame of session III.
    3. Identify the frames in session III in which the one mouse socially approaches the other. Note: The software implements this step by automatically checking that the distance between the mice is less than the typical interaction distance of mice (we use 2 cm).
    4. When the software plays a short segment of the movie with the detected approach to the user, click a button to indicate whether this approach qualifies as a social approach by the test mouse, social avoidance by the test mouse, or neither.
      Note: Step 2.3.4 can be automatized if it is known which mouse is the test mouse. Since this information gets lost when the mice get too close to each other (or climb on top of each other), and since we have not yet found a way to label the mice in a way that can be detected reliably by our software AND does not affect their behavior, we have reverted to manual classification for now.
  4. To evaluate processed movies, load movie using Load button.
    1. Click on Start Session 1 to display the first frame of session 1 (or Start Session 2 to display the first frame of session 2).
    2. Click on Play/Stop to play and stop movies.
      Note: The processed movies will display mouse with head and tail marked with differently colored circles. All sociability measures are displayed on the screen and updated as the movie plays.
    3. Export sociability data in Excel format by clicking “Export”.
    4. Click on “Compile Data” to compile all the data of all movies in a folder into a single excel file.

Access restricted. Please log in or start a trial to view this content.

Results

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Figure 3 shows a color frame of a behavioral movie with an empty cage. The mouse has not been introduced into the cage yet. The position of the cups, (social and nonsocial) and the compartment boundaries are superimposed. The color frame of empty cage is converted to 8 bit grayscale as shown in Figure 4 and used as a reference frame. The reference frame is subtracted from every other frame of the captured movie.

Figure 5 shows one of the frame...

Access restricted. Please log in or start a trial to view this content.

Discussion

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

By combining videotaping mice and automatic movie analysis, we have created an affordable, reliable high-throughput screening technique.

The accuracy of the automated analysis was compared with the results of manual analysis for more than 100 movies. In the overwhelming majority of frames (> 99%) of frames, the nose of the mouse is identified with good precision. Most of the (few) misdetections have no effect on the sociability measures, so that around 80% of the movies do not require any c...

Access restricted. Please log in or start a trial to view this content.

Disclosures

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors have nothing to disclose.

Acknowledgements

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This research was supported by grant funding from Virginia’s Commonwealth Health Research Board.

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Plexiglas cageNorva Plastics, Norfolk, VAcustom madeDimensions and layout described in manuscript,
can be adjusted according to needs.
Use non-reflective plexiglas for to facilitate image processing
Wire cupsKitchen plus315Use one to house stimulus mouse, one empty
Video cameraSONYHDR-PJ790Can be replaced by any camera with
Comparable specifications
OpenCV (Image processing library)Willow GarageN/AAny modern image processing library
can be used.

References

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,
  1. Brodkin, E. S. BALB/c mice: Low sociability and other phenotypes that may be relevant to autism. Behavioural Brain Research. 176, 53-65 (2007).
  2. Deutsch, S. I., Burket, J. A., Urbano, M. R., Herndon, A. L., Winebarger, E. E. Impaired sociability of the BALB/c mouse, an animal model of autism spectrum disorders, is attenuated by NMDA receptor agonist interventions: clinical implications. Comprehensive Book on Autism Spectrum Disorders. Mohammadi, M. A. , InTech. Available from: http://www.intechopen.com/books/a-comprehensive-book-on-autism-spectrum-disorders/impaired-sociability-of-the-balb-c-mouse-an-animal-model-of-autism-spectrum-disorders-is-attenuated 323-342 (2011).
  3. Dunn, M. E., Burbine, T., Bowers, C. A., Tantleff-Dunn, S. Moderators of stress in parents of children with autism. Community Mental Health Journal. 37, 39-52 (2001).
  4. Babineau, B. A., Yang, M., Berman, R. F., Crawley, J. N. Low home cage social behaviors in BTBR T+tf/J mice during juvenile development. Physiology & Behavior. 114-115, 49-54 (2013).
  5. Benson, A. D., Burket, J. A., Deutsch, S. I. BALB/c mice treated with d-cycloserine arouse increased social interest in conspecifics. Brain Research Bulletin. 99, 95-99 (2013).
  6. Burket, J. A., Benson, A. D., Tang, A. H., Deutsch, S. I. Rapamycin improves sociability in the BTBR T(+)Itpr3(tf)/J mouse model of autism spectrum disorders. Brain Research Bulletin. 100, 70-75 (2014).
  7. Burket, J. A., Benson, A. D., Tang, A. H., Deutsch, S. I. D-Cycloserine improves sociability in the BTBR T+ Itpr3tf/J mouse model of autism spectrum disorders with altered Ras/Raf/ERK1/2 signaling. Brain Research Bulletin. 96, 62-70 (2013).
  8. Burket, J. A., Herndon, A. L., Deutsch, S. I. Locomotor activity of the genetically inbred BALB/c mouse strain is suppressed by a socially salient stimulus. Brain Research Bulletin. 83, 255-256 (2010).
  9. Deutsch, S. I., et al. D-cycloserine improves sociability and spontaneous typic behaviors in 4-week old mice. Brain Research. 1439, 96-107 (2012).
  10. Jacome, L. F., Burket, J. A., Herndon, A. L., Deutsch, S. I. Genetically inbred BALB/c mice differ from outbred Swiss Webster mice on discrete measures of sociability: relevance to a genetic mouse model of autism spectrum disorders. Autism Research. 4, 393-400 (2011).
  11. Jacome, L. F., Burket, J. A., Herndon, A. L., Cannon, W. R., Deutsch, S. I. D-serine improves dimensions of the sociability deficit of the genetically-inbred BALB/c mouse strain. Brain Research Bulletin. 84, 12-16 (2011).
  12. Deutsch, S. I., Burket, J. A., Jacome, L. F., Cannon, W. R., Herndon, A. L. D-Cycloserine improves the impaired sociability of the BALB/c mouse. Brain Research Bulletin. 84, 8-11 (2011).
  13. Shih, F. Y. Image Processing and Mathematical Morphology: Fundamentals and Applications. , CRC Press. (2009).
  14. Nixon, M. Feature Extraction & Image Processing. , Academic Press. (2008).
  15. National Research Council. Guide for the Care and Use of Laboratory Animals. , Eighth Edition, The National Academic Press. (2011).

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Request permission to reuse the text or figures of this JoVE article

Request Permission

Tags

Three Compartment CageSocial Approach DetectionNose Tracking AlgorithmBehavioral Session AnalysisMouse Movement QuantificationSocial Avoidance MeasurementImage Subtraction MethodSociability Data Export

Related Articles