Abstract
This study emphasizes the benefits of open-source software such as DeepLabCut (DLC) and R to automate, customize and enhance data analysis of motor behavior. We recorded 2 different spinocerebellar ataxia type 6 mouse models while performing the classic beamwalk test, tracked multiple body parts using the markerless pose-estimation software DLC and analyzed the tracked data using self-written scripts in the programming language R. The beamwalk analysis script (BAS) counts and classifies minor and major hindpaw slips with an 83% accuracy compared to manual scoring. Nose, belly and tail positions relative to the beam, as well as the angle at the tail base relative to the nose and tail tip were determined to characterize motor deficits in greater detail. Our results found distinct ataxic abnormalities such as an increase in major left hindpaw slips and a lower belly and tail position in both SCA6 ataxic mouse models compared to control mice at 18 months of age. Furthermore, a more detailed analysis of various body parts relative to the beam revealed an overall lower body position in the SCA684Q compared to the CT-longQ27PC mouse line at 18 months of age, indicating a more severe ataxic deficit in the SCA684Q group.
Similar content being viewed by others
Introduction
Many classical experiments testing the motoric performance of mice have been established over the last centuries. Traditionally, these tests have been scored manually by the researchers performing them. Although some of these tests, like measuring the stride lengths and widths using paint, paper and a ruler1,2, have become more sophisticated and automated through for example the CatWalk, LocoMouse and DigiGait3,4,5,6,7 or a self-made, simple gait analysis system using an open-field setup8. The automation of mouse movements during gait has provided a deeper understanding on the coordination of movement across multiple body parts and identification of abnormal, gait ataxia in a quantitative, unbiased manner under normal, unrestrained conditions. The DigiGait system even allows the researcher to challenge the subject on a treadmill with different levels of inclines and speeds for more subtle ataxic phenotypes7. However, subtle differences between ataxic mouse lines are sometimes not evident from normal gait analyses systems like the CatWalk and LocoMouse, unless placed under more technically challenging conditions to bring out mild ataxic differences such as the beamwalk. The beamwalk analysis can also be supportive and a verification of the gait analysis results. Many of these supportive motor coordination tests are still scored manually. This process is not only time consuming, but also prone to error and bias. In the classic beamwalk test the number of slips of any given paw will be scored, but like behavior itself, how one classifies the displacement of a paw as a slip is not well defined9. This classification becomes even more difficult when including phenotypes presenting distinct crossing strategies that do not fit the initial description of a slip. Furthermore, analyzing phenotypes only using discrete values, such as the number of slips, misses out on a more detailed analysis using continuous measurements like the relative position of body parts to the top of the beam. Enriching and unbiasing the analysis of this classic beamwalk test is likely to provide similar benefits like the transition from the classical foot printing test with painted paws to the CatWalk.
Many laboratories use mouse models for understanding the mechanisms underlying neurodegenerative diseases to advance the diagnostic and therapeutic possibilities for individual patients. Open-source software such as DeepLabCut (DLC) can provide a reliable, unbiased phenotypic readout of neurodegenerative disease progression in for example ataxic patients. Past studies have used open-source software such as DLC10,11 for markerless tracking of body parts to advance their research and to improve their analysis of characteristic motor impairments like ataxia in mice and men12,13,14,15. For example, a recent study applied DLC to identify tremors and abnormal ataxic behaviors in an ataxic and tremor rodent model called the shaker and a mouse model for Spinocerebellar ataxia type 3 (SCA3)12. Additionally, another group used the machine learning-based system JAABA (Janelia Atomatic Animal Behavior Annotator) to characterize the ataxic phenotype in a Purkinje cell-specific knockout of calcium/calmodulin-activated protein-phosphatase-2B (PP2B) mouse model for ataxia16. A more recent study in Parkinson’s patients utilized DLC and algorithms to objectively correlate neural signals with movement to ideally place deep brain stimulation electrodes13.
This study aimed to contribute with self-written scripts, written in the programming language R, to enhance the analysis of the classic beamwalk experiment using DLCs tracking in mouse models for Spinocerebellar Ataxia Type 6 (SCA6). Spinocerebellar Ataxia Type 6 is caused by an expanded polyglutamine (polyQ) repeat at the carboxy terminus (CT) of the P/Q-type calcium channel α1A subunit (Cacna1a) which leads to Purkinje cell (PC) degeneration and progressive ataxia17,18. Unaffected individuals normally have a polyQ expansion ranging from Q4-Q18, however SCA6 patients have a range of Q21-Q33. In humans, an alternative splicing event occurs resulting in 2 isoforms, one lacking (short) or one containing the CT polyQ expansion (long)19,20. Both isoform transcripts are equally abundant in adult cerebellar PC. However in individuals suffering from SCA6, the diseased long isoform transcript is doubled19 compared to the long isoform transcript from unaffected individuals. Moreover, the CT of the Cacna1a undergoes proteolytic degradation leading to a more stable diseased CT peptide fragment, which specifically accumulates in cytosolic and to a lesser extent in nuclear PC protein aggregates from SCA6 patients. To imitate the human SCA6 pathology, our lab demonstrated that the overexpression of 27 polyQs in the CT was sufficient to cause SCA6 like symptoms in mice such as late onset, progressive ataxia (≥ 8 months of age), PC degeneration and deficits in associative motor learning18. Additionally, Watase et al.21 generated a SCA6 knockin mouse model containing a hyperexpanded 84 polyQ tract in the CACNA1A locus which also showed late onset, progressive ataxia and aggregation of the hyperexpanded 84 polyQ tract. Interestingly the length of the polyQ repeats is inversely correlated to the age of onset and directly correlated to the severity of the disease in humans.
In order to characterize the disease progression between these 2 different genetically modified mouse models for SCA618,22 which were not evident in classical gait analyses and manually scored supportive motor coordination tests including the beamwalk, pole test and hangwire, we first validated the automated scoring of the self-written script which we coined as beamwalk analysis script (BAS) by comparing the BAS to manual scoring performed by a trained researcher. Once the BAS was validated, various body parts such as left forepaw, left hindpaw, nose, belly, back and tail positions were determined at preonset and late onset SCA6 disease stages for evaluation of their ataxic phenotypes.
Results
Validation of BAS
To initially evaluate the accuracy and validity of the trained DLC model as well as the slip classification of the self-written R script, 2 different SCA6 mouse models were compared to control mice. One was a mouse line with a CRE-regulated transgenic overexpression of CT containing an expanded polyQ repeat of 27 glutamines (similar amount found in SCA6 patients). The overexpression was specifically targeted to cerebellar Purkinje cells (PCs) postnatally by crossing them with the transgenic Pcp2-CRE mice where CRE recombinase is under the control of a PC specific promoter18. These mice were referred to as CT-longQ27PC and were compared to their littermate transgenic Pcp2-CRE only or CT-shortPC controls, where only the CT without a polyQ domain was overexpressed in PC postnatally. The second SCA6 mouse model characterized contained a knockin of 84 polyQ repeats into the α1A subunit of the P/Q-type calcium channel21. Both SCA6 mouse lines display progressive ataxia after 7 months of age, PCs degeneration and altered PC firing. To investigate if the markerless motion tracking could detect subtle changes in ataxic behavior, we tested SCA6 mice at preonset disease stage of 6 months and late onset disease stage of 18 months.
We first confirmed that there were no large differences in body size between the various mouse lines which would need to be considered in our analyses. The average area between the marked points for the nose, belly, tail base and back were calculated for every frame as an irregular rectangle for each mouse. There were no differences in the mean size (11.54 ± 0.1 cm2) for all mice at 18 months of age (Supplementary Table 1). However, SCA684Q mice at 6 months were smaller than controls and CT-longQ27PC mice (p = 0.0029) without affecting the phenotype. Therefore, we did not consider body size differences in our calculations.
Next, we confirmed the accuracy of the DLC tracking and BAS by comparing the number of minor and major left hindpaw slips (marked as an orange star in Figs. 1 and 2) counted by BAS and a trained researcher who analyzed the data frame-by-frame using the same thresholds. Minor slips were defined as hindpaw positions between 20 and 50% below the top edge of the beam, and major hindpaw slips as > 50% below the top edge of the beam (Supplementary Video 1). No significant difference in scores between the researcher and BAS were identified (Fig. 2). Ninety trials were counted by BAS for minor slips with a ± 1 difference to the researcher and with an ≈78% accuracy. For scoring major slips, 102 trials were counted by BAS with a ± 1 difference to the researcher and with an ≈89% accuracy. Overall minor and major slips were counted by BAS displaying an ≈83% accuracy compared to the researcher, indicating that the DLC tracking and BAS were both functioning with a satisfactory accuracy.
Classification of major and minor paw slips and quantification of relative paw position on the beam reveals ataxic motor impairments
To determine if there were detectable differences in minor and major paw slips between the SCA6 mouse lines compared to controls, we applied the BAS and found no changes in the number of minor slips (Fig. 3A) or position of the left hindpaw relative to the top of the beam (Fig. 3C and D) between mouse lines at 6 months of age. However, large discrepancies in major, left hindpaw slips were demonstrated at 18 months in both CT-longQ27PC (16.33 ± 8.61, p = 0.04) and SCA84Q (8.10 ± 1.69, p = 0.0074) mice compared to controls (1.42 ± 0.76, Fig. 3B). Additionally, SCA684Q mice (− 42.37 ± 10.35, p = 0.014) were likely to move their left hindpaw below the beam compared to control (− 1.73 ± 3.27, Fig. 3F) mice at 18 months of age. Although 18 months old CT-longQ27PC mice (− 32.28 ± 10.75, p = 0.06, Fig. 3F) did not show any significantly different paw positioning compared to control mice, the density plots (Fig. 3E) depicted a left shift in left hindpaw placement relative to the beam which was more evident in the SCA84Q mice. These results indicate that both SCA6 mouse lines tended to place their left hindpaw below the edge of the beam and that SCA84Q mice show a more severe ataxic phenotype than CT-longQ27PC mice. Unexpectedly, there were no differences in minor and major left forepaw slips in all mouse lines at both ages, even with lower thresholds for minor and major slips (Supplementary Fig. 1A and B). Six month old SCA684Q mice positioned their left forepaw slightly higher on the beam than CT-longQ27PC and control mice (Supplementary Fig. 1C and D). At 18 months of age CT-longQ27PC mice placed their left forepaw lower on the beam than controls (Supplementary Fig. 1E and F).
Classification of nose, belly and tail position
An ataxic phenotype will often lead to a broader stride width and shorter stride length, thus resulting in an overall lower body position to compensate for the ataxia and provide more gait stability1,23. To investigate if the body position was closer to the beam in the SCA6 mouse models, we also measured the nose, as well as the belly, back and tail positions, namely the tail base, tail center and the tail tip, relative to the top of the beam (Fig. 1). Not surprisingly, there were no differences in nose position at 6 months of age (Fig. 4A and B), but at 18 months of age SCA84Q mice (14.40 ± 1.09, p = 0.000095) were more likely to place their nose closer to the beam compared to control mice (26.96 ± 1.49, Fig. 4C and D). Comparable to the density plots for major slips, there was a clear shift to the left (i.e. nose closer to the beam) in the distribution of the nose position at 18 months of age in both SCA6 mouse models compared to controls, where the left shift was more drastic in the SCA84Q mice (Fig. 4C). Similarly, no divergence in the belly (Fig. 5A and B), back (Supplementary Fig. 2A and B) or tail base (Fig. 6A and B) positions was observed in all mouse groups at 6 months of age. However, at 18 months CT-longQ27PC (belly: 6.29 ± 1.85, p = 0.0021; tail base: 57.67 ± 4.91, p = 0.0013) and SCA84Q (belly: − 2.24 ± 3.06, p = 0.0005; tail base: 12.27 ± 6.58, p = 0.000012) mice were more likely to place their belly and base of their tail closer to the beam compared to control mice (belly: 19.54 ± 2.31, Fig. 5D; tail base: 92.43 ± 5.07, Fig. 6D). Less obvious changes in the back position were detected except in 18 month old SCA84Q mice (131.32 ± 6.73, p = 0.019), where they showed a lower position on the beam compared to control mice (155.56 ± 4.14, Supplementary Fig. 2D). There was a clear shift to the left in SCA6 belly and all 3 tail positions relative to the beam compared to controls in the density plots at 18 months of age (Figs. 5C and 6C, Supplementary Figs. 3C and 4C), indicating that SCA6 mice have a lower body position than controls. Unexpectedly, CT-longQ27PC tail center (Supplementary Fig. 3B) and tip (Supplementary Fig. 4B) positions were higher above the beam than SCA84Q and control mice at 6 months of age, which was confirmed by the angle at the tail base using the nose and the tail tip as reference points (Fig. 7C). In contrast, both SCA6 mouse lines demonstrated tail center (Supplementary Fig. 3D) and tip (Supplementary Fig. 4D) placement farther below the beam than controls, where SCA84Q mice exhibited a graver deficit than CT-longQ27PC mice. To determine if there were deviations in the tail base angle, we analyzed the angle at the tail base, utilizing the nose and tail tip as references (Fig. 7A, Supplementary Video 2). Tail base angles between 0° and 180°, indicate that the tail tip is higher than the tail base and therefore leading to a higher tail position relative to the beam. In contrast, tail base angles between 180° and 360° suggests that the tail tip is lower than the tail base and result in a tail base position below the beam. Unexpectedly, CT-longQ27PC displayed slightly lower mean tail base angle suggesting a higher tail position compared to controls and SCA684Q mice at 6 months of age (Fig. 7B and C). No changes in the mean angle at the tail base using the nose and the tail tip as reference points were observed between mouse groups at 18 months of age (Fig. 7E), even though SCA84Q mice demonstrated a clear peak in their probability distribution at ≈280° compared to the CT-longQ27PC and control mice (Fig. 7D). Altogether these data support an ataxic phenotype in both SCA6 mouse models, where the SCA684Q line appear to manifest a more severe phenotype than the CT-longQ27PC mice.
Discussion
This study automates and enriches the data analysis of the classic beamwalk experiment using self-written scripts which we coined the beamwalk analysis script or short BAS. Together with DeepLabCut (DLC), an open source, markerless pose estimation of body parts using deep neural networks10,11, BAS is able to differentiate between minor and major slips and count them with ≈83% accuracy compared to manual scoring by a researcher from mice undergoing a beamwalk test (Fig. 2). Furthermore, BAS determines not only the mean relative position of any tracked body part to the top of the beam, but also the probability distribution of the marked body part position. We initially trained DLC with adult C57/Bl6 wild-type and different ataxic mice to recognize and reliably track various body parts (Fig. 1), while the mice were undergoing a beamwalk test.
Two different ataxic mouse models for spinocerebellar ataxia type 6 (SCA6) called CT-longQ27PC and SCA684Q, were used to verify and test the reliability and reproducibility of the DLC tracking program and BAS compared to control mice. Our self-written BAS was able to count the number of minor and major slips with an ≈83% accuracy compared to a trained researcher. Additionally, it was able to confirm an increase in the number of major slips at a post-onset disease stage (18 months) but not at pre-onset stages (6 months) in both SCA6 mouse lines as previously reported18,21). There was also a distinct shift from left hindpaw position from the top to below the beam in 18 month old SCA6 mice which was notably worse for the SCA684Q mice (Fig. 3E). However, less consistent changes with the severity of the disease stage and SCA6 line was found in the left forepaw position. Moreover, BAS was able to detect changes in the average and probability distribution of various body positions relative to the beam including the nose, belly, back and tail and the angle of the tail base using the nose and the tail tip as reference points to further characterize the ataxic phenotype in mice. Altogether these results verify previously reported ataxic phenotypes in both SCA6 mouse models18,21 tested in this study with a more detailed and unbiased analysis which allows a reliable comparative study between different mouse lines to exam differences in severity of ataxic behaviors. In this study, we were able to consistently measure an increase in the number of major left hindpaw slips and nose, belly and tail (base, center and tip) positions closer to or below the beam in SCA6 mice at 18 months of age compared to controls. Our characterization of their ataxic behaviors also revealed a more drastic motor dysfunction in SCA684Q compared to CT-longQ27PC mice at 18 months of age which would not have been recognizable with the classical manual scoring method and other motor behavior tests such as the rotarod, pole test, hangwire and footprint analyses. These subtle changes in ataxic severity between the SCA684Q and CT-longQ27PC mouse lines were previously not reported. The SCA684Q mouse line is a knockin mouse line with widespread expression throughout the brain with a hyperexpanded, non-physiological number of 84 polyQs in the CT of the CACNA1A gene. Whereas the CT-longQ27PC line only overexpresses 27 polyQ repeats in specifically the affected cerebellar Purkinje cells, the same number of polyQs found in human patients. The number of polyQs are known in patients to be directly correlated to the severity of the disease and inversely to the age of onset. The widespread expression and high number of polyQs incorporated in the SCA684Q mice may mechanistically contribute to the degeneration of neurons, buildup of aggregates and thus leading to a slightly more severe ataxic phenotype compared to the CT-longQ27PC line.
BAS was developed to count paw slips comparable to a human rater, as well as analyze detailed gait parameters not typically investigated in the beamwalk test. It therefore sets itself apart from what one may obtain from performing the analysis with programs that target only gait parameters such as Visual Gait Lab24, LocoMouse7 and DigiGait4. As these were developed to process videos of animals freely walking in arenas or on a treadmill where paw slips would not occur, it is highly unlikely that they could provide a proper analysis of paw slips. Moreover, like many other gait analysis tools, Visual Gait Lab is made to handle videos taken from below rather than the side. Filming the beamwalk test from below would be highly unusual and likely difficult to work with as one would not see much of the animal.
Others have approached detailed beamwalk analysis by using behavioral classifiers such as SimBA25 and JAABA16, or by making general visualizations of the tracked position of individual body parts. Bidgood et al.26, used SimBA to classify periods of walking and falls in a model of Parkinson’s disease. This would not have been sufficient for the analysis of the current study, as the analysis was specifically focused on videos where animals crossed the beam without longer breaks and without falling off the beam. The aim of the current study was in part to investigate presence of discreet motor impairments in younger animals, where breaks in walking and falls were rare to the point of the latter representing outlier cases. Wahl et al.16 used a similar approach to classify stops and falls, using JAABA, but also included slips in their analysis. Notably, BAS goes one step further and was developed to provide additional details regarding not only the presence of a slip but also their relative severity. Finally, the approach of Lang et al.12, provided a visualization of the position of various body parts, and ultimately quantified a movement rhythmicity measurement. While interesting, the current models prominent hind paw impairments have so far made such measurements difficult to implement in a satisfactory way. As such, compared to other published beamwalk analysis approaches, BAS provides a satisfactory automated replacement of the classical slip score, while providing detailed information on both slips and gait parameters in a way others have not achieved.
In this study, we showed that the combination of DLC10,11 and BAS provides researchers with an unbiased, consistent and efficient method to analyze ataxic abnormalities in mice. It also allows a more detailed characterization of various body positions relative to the beam to provide more subtle evidence for ataxia onset during the early stages of the disease or in mild cases of ataxia. Finally, our BAS depicts the probability distribution of different body parts relative to the beam and determines the probability that a particular body part is below or closer to the beam. This visual shift in the distribution of the density plots allows one to gain a deeper insight into the data, where the effect or trend in redistribution was lost in the average position relative to the beam. In summary, the use of machine learning and neural networks such as DLC with BAS provides researchers with an objective, cost and time efficient and reliable system to compare and characterize mouse models with motor deficits using the classical beamwalk experiment. More importantly, this system can be applied to compare the effectiveness of various pharmacological, genetic or stimulation (i.e. optogenetic or deep brain stimulations) treatments on motor dysfunction.
Methods
Mouse lines
All mice were group housed with two to five mice inside conventional type III cages in the behavior laboratory on a 12/12 h normal light/dark cycle with food and water available ad libitum for the duration of the testing period. A paper tube and nesting paper were also present in each cage for enrichment. Cleaning of the cages was executed at least 2 days prior to testing and not during the testing period to avoid stress and distraction. All tests were performed during their dark phase between 6 pm and 4 am under artificial white light to minimize disruption of the sleep cycle. Mice were acclimated for at least 7 days to the behavior laboratory before testing. SCA684Q mice were a gift from Dr. Alanna Watt (McGill University, Montreal, Canada) with prior consent from Dr. Huda Zoghbi (Baylor College of Medicine, Houston, Texas).
Presence of transgene expression was detected by polymerase chain reaction analysis CT-shortPC and CT-longQ27PC as followed18,27,28. Forward 5 CGACCACTACCAGCAGAACA 3ˊ, reverse, 5ˊ CCACGGACTGAGAGTTAGGC 3ˊ and TgCre forward, 5ˊ ATTCTCCCACCACCGTCAGTACG 3ˊ, reverse, 5ˊ AAAATTTGCCTGCATTACCG 3ˊ. SCA684Q transgene presence was detected using forward 5ˊ ACGTGTCCTATTCCCCTGTGATCC 3ˊ and 5ˊ TGC-ACCCCGCGGCCGCTTGTGTC 3ˊ and reverse 5ˊ ACCAGTCGTCCTCGCTCTC 3ˊ.
Beamwalk
The age, sex and number of mice used in each mouse line is described in Table 1. Mice were trained to walk across a 1 × 2 × 63 cm (width × height × length) beam positioned 60 cm above the ground towards a dark enclosure at one end. Mice were habituated and trained on the beamwalk on the test day. Two markings on the beam, spaced 39 cm apart indicated the trial distance. Mice were placed on a starting platform outside the first marking and were allowed to cross the beam at their own initiative. Videos were recorded on a Sony HDR-CX730E camera with 50 frames per second, an ISO of 3500 and in 1920 by 1080 pixels with a slight increase in white balance. The camera was placed around 65 cm away from the beam. To illuminate the beam from both sides, 2 floodlights were positioned 80 cm away from the beam. On average, 3 trials were recorded and only successful trials where mice reached the end marking without falling or turning back were included into the analysis.
Pose estimation using DeepLabCut
In this study DeepLabCut (DLC) (version 2.2.1) was used for training a neural network capable of tracking multiple body parts and positions along the beam10,11. Specifically, 1105 frames were taken from 45 videos evenly selected from different age, sex and genotype groups to cover animals with differing motoric abilities. These frames were labeled and then 95% of them were used for training. Exclusively for training the network, lighting conditions, frames per second, frame size, number of frames and their selection method, as well as the set-up recorded varied between videos. A ResNet-50-based neural network29 with default parameters for 650,000 number of training iterations was used. After training, DLCs network evaluation indicated that the network had a test error of 2.77 pixels and a train error of 6.11 pixels (as validated with 6 number of shuffles and an image size of 1920 by 1080 pixels, without using any p-cutoff value). The network was trained to track four positions along the beam as well as the positions of the animal’s left eye, nose, paws, belly, back and three points along the tail (Fig. 1). Using a custom written R script through DLC obtained filtered .csv-files, different p-cutoff values were used for the tracked labels to condition the x- and y-coordinates for further analysis, as well as the change in position over time. Conditioning sufficed with a p-cutoff value of around 0.2. Tracking of the videos for the SCA6 mice were performed blindly.
Analysis using R
For the analysis of the obtained tracking data, the open-source software R (version 4.2.2) in combination with RStudio (version 2023.03.0 + 386) were used, as well as the following packages: photobiology (version 0.10.17), ggplot2 (version 3.4.2), ggpubr (version 0.6.0) and svglite (version 2.1.1).
The detailed functions of the script are described through code annotations in the supplied files at GitHub (https://github.com/RUB-Behavioral-Neuroscience/Beamwalk_Analysis_Script). A more general description is given here. The entire analysis is based on the absolute position, meaning the x- and y-coordinates, of the tracked labels (Fig. 1) obtained by DeepLabCut (DLC) filtered .csv-files that were conditioned to exclude inaccurate tracking using a custom written R script. For the analysis, only frames from the coordinates of the analyzed label that were between the start (light green square) and stop (dark green square) markings were considered. Furthermore, stationary frames were excluded from the analysis. An animal was considered stationary when the belly (blue circle), back (green circle) and tail base (yellow triangle) each did not change their position more than 1.5 pixels compared to the previous frame. The top of the beam was calculated as a hypothetical straight line through the coordinates that tracked the top of the beam on the left (dark blue square) and right side (light blue square).
Specific focus was put on the tracked positions of the left forepaw (pink star, Supplementary Fig. 1) and hindpaw (orange star, Fig. 3), to construct an automated slip classification. For this, frames that were below the calculated top of the beam were considered. Different thresholds were used for the minor and major slip classification for the left hind- and forepaw. For the hindpaw, tracked points needed to be between 20 to 50% below the beam to be considered as a minor slip and below 50% to be considered as a major slip. For the forepaw, tracked points needed to be between 10 and 30% below the beam to be considered as a minor slip and below 30% to be considered as a major slip. These thresholds were determined empirically through repeated testing.
From there on, peak and valley detection functions from the photobiology library were used to detect peaks and valleys in the data. In brief, the script considered the presence of peaks using different criteria, such as the width and spacing, as well as the number of consecutive frames below a given threshold, to assess whether one or multiple slips occurred during the period that body part was below that threshold. This process was similar, but not identical, for both minor and major slip classification.
Besides classifying slips, various body parts were tracked and depicted as a percentage relative to the beam. For example, 0% was at the top of the beam and 100% was equivalent to one beam height away from the top of the beam. In addition, the angle at the tail base relative to the nose (grey circle) and tail tip (dark brown triangle) was used as a rudimentary posture analysis. If the tail tip was for example occluded, the tail center (light brown triangle) was used to determine the angle as a back-up. The body area of an animal was also determined in each trial by calculating an irregular rectangle between the nose, belly, tail base and back, and then averaged for each animal. Other parameters included the trial length, which was any frame of a given body part between the start and stop markings, as well as the time spend below the beam from that trial length.
Variances were not equal between the groups being compared, and therefore nonparametric tests were performed. Furthermore, normality was not assumed, hence non-parametric tests were performed. Statistical significance was evaluated using two-tailed Mann–Whitney U tests. Bonferroni-Holm was used to correct for multiple testing. Statistical significance was indicated with ***p < 0.001, **p < 0.01 and *p < 0.05 and is reported in all figure legends. All values are reported as mean ± standard error of mean with p-values in Supplementary Table 3.
Ethics declaration
The present study was carried out in accordance with the European Communities Council Directive of 2010 (2010/63/EU) for the care of laboratory animals and approved by a local ethics committee (Bezirksamt Arnsberg) and the animal care committee of North Rhine-Westphalia, Germany, based at the LANUV (Landesamt für Umweltschutz, Naturschutz und Verbraucherschutz, Nordrhein-Westfalen, D-45659 Recklinghausen, Germany). The study was supervised by the animal welfare commission of the Ruhr-University Bochum. All efforts were made to minimize the number of mice used for this study by applying G*power 3.1 analyses (ANOVA: 0.05 alpha error probability, 0.95 1-beta error probability). This study is reported in accordance to the ARRIVE guidelines.
Data availability
All data will be made available by Melanie D. Mark (melanie.mark@rub.de) upon reasonable request. Scripts, images, tables and used software are available at GitHub (https://github.com/RUB-Behavioral-Neuroscience/Beamwalk_Analysis_Script).
References
Wertman, V., Gromova, A., La Spada, A. R. & Cortes, C. J. Low-cost gait analysis for behavioral phenotyping of mouse models of neuromuscular disease. J. Vis. Exp. JoVE https://doi.org/10.3791/59878 (2019).
Klapdor, K., Dulfer, B. G., Hammann, A. & van der Staay, F. J. A low-cost method to analyse footprint patterns. J. Neurosci. Methods 75, 49–54 (1997).
Lambert, C. S. et al. Gait analysis and the cumulative gait index (CGI): Translational tools to assess impairments exhibited by rats with olivocerebellar ataxia. Behav. Brain Res. 274, 334–343 (2014).
Kale, A. et al. Non-invasive physiology in conscious mice. Altern. Lab. Anim. ATLA 32(Suppl 1A), 195–201 (2004).
Timotius, I. K. et al. CatWalk XT gait parameters: A review of reported parameters in pre-clinical studies of multiple central nervous system and peripheral nervous system disease models. Front. Behav. Neurosci. 17, 1147784 (2023).
Kyriakou, E. I. et al. Automated quantitative analysis to assess motor function in different rat models of impaired coordination and ataxia. J. Neurosci. Methods 268, 171–181 (2016).
Machado, A. S., Darmohray, D. M., Fayad, J., Marques, H. G. & Carey, M. R. A quantitative framework for whole-body coordination reveals specific deficits in freely walking ataxic mice. ELife 4, e07892 (2015).
Leroy, T., Silva, M., D’Hooge, R., Aerts, J.-M. & Berckmans, D. Automated gait analysis in the open-field test for laboratory mice. Behav. Res. Methods 41, 148–153 (2009).
Levitis, D. A., Lidicker, W. Z. & Freund, G. Behavioural biologists don’t agree on what constitutes behaviour. Anim. Behav. 78, 103–110 (2009).
Nath, T. et al. Using DeepLabCut for 3D markerless pose estimation across species and behaviors. Nat. Protoc. 14, 2152–2176 (2019).
Mathis, A. et al. DeepLabCut: Markerless pose estimation of user-defined body parts with deep learning. Nat. Neurosci. 21, 1281–1289 (2018).
Lang, J. et al. Detecting and quantifying ataxia-related motor impairments in rodents using markerless motion tracking with deep neural networks. Annual International Conference of the IEEE Engineering in Medicine and Biology Society IEEE Engineering in Medicine and Biology Society Annual International Conference 2020, 3642–3648 (2020).
Baker, S. et al. Automatic extraction of upper-limb kinematic activity using deep learning-based markerless tracking during deep brain stimulation implantation for Parkinson’s disease: A proof of concept study. PLoS One 17, e0275490 (2022).
Haberfehlner, H. et al. Towards automated video-based assessment of dystonia in dyskinetic cerebral palsy: A novel approach using markerless motion tracking and machine learning. Front. Robot. AI 10, 1108114 (2023).
Andreoli, L., Abbaszadeh, M., Cao, X. & Cenci, M. A. Distinct patterns of dyskinetic and dystonic features following D1 or D2 receptor stimulation in a mouse model of Parkinsonism. Neurobiol. Dis. 157, 105429 (2021).
Wahl, L. et al. Detecting ataxia using an automated analysis of motor coordination and balance of mice on the balance beam. bioRxiv 18, 272 (2023).
Kordasiewicz, H. B. & Gomez, C. M. Molecular pathogenesis of spinocerebellar ataxia type 6. Neurotherapeutics 4, 285–294 (2007).
Mark, M. D. et al. Spinocerebellar ataxia type 6 protein aggregates cause deficits in motor learning and cerebellar plasticity. J. Neurosci. Off. J. Soc. Neurosci. 35, 8882–8895 (2015).
Tsunemi, T., Ishikawa, K., Jin, H. & Mizusawa, H. Cell-type-specific alternative splicing in spinocerebellar ataxia type 6. Neurosci. Lett. 447, 78–81 (2008).
Bourinet, E. et al. Splicing of alpha 1A subunit gene generates phenotypic variants of P- and Q-type calcium channels. Nat. Neurosci. 2, 407–415 (1999).
Watase, K. et al. Spinocerebellar ataxia type 6 knockin mice develop a progressive neuronal dysfunction with age-dependent accumulation of mutant CaV2.1 channels. Proc. Natl. Acad. Sci. U. A. A. 105, 11987–11992 (2008).
Jayabal, S. et al. Rapid onset of motor deficits in a mouse model of spinocerebellar ataxia type 6 precedes late cerebellar degeneration. eNeuro https://doi.org/10.1523/ENEURO.0094-15.2015 (2015).
Wiethölter, H., Eckert, S. & Stevens, A. Measurement of atactic and paretic gait in neuropathies of rats based on analysis of walking tracks. J. Neurosci. Methods 32, 199–205 (1990).
Fiker, R., Kim, L. H., Molina, L. A., Chomiak, T. & Whelan, P. J. Visual gait lab: A user-friendly approach to gait analysis. J. Neurosci. Methods 341, 108775 (2020).
Nilsson, S. R. O. et al. Simple behavioral analysis (SimBA)—An open source toolkit for computer classification of complex social behaviors in experimental animals. bioRxiv 70, 1100 (2020).
Bidgood, R., Zubelzu, M., Ruiz-Ortega, J. A. & Morera-Herreras, T. Automated procedure to detect subtle motor alterations in the balance beam test in a mouse model of early Parkinson’s disease. Sci. Rep. 14, 862 (2024).
THE JACKSON LABORATORY. Protocol 26097 - Cacna1a<tm3Hzo> repeat assay (2023).
Grömmke, M., Schulte, H., Theis, C. D. C., Nonnweiler, L. & Mark, M. D. Reduced cerebellar Gq-protein signaling elicits early onset spatial navigation deficits in a SCA6 mouse model. bioRxiv 314, 615 (2023).
He, K., Zhang, X., Ren, S. & Sun, J. Deep residual learning for image recognition (2015).
Acknowledgements
We are grateful for technical assistance by Winfried Junke, Stefan Dobers, Manuela Schmidt, Gina Hillgruber, Stephanie Krämer, Petra Knipschild and Margareta Möllmann as well as statistical advice by Nicolai Bissantz. This work was supported by Deutsche Forschungsgemeinschaft (DFG; German Research Foundation) MA 5806/2-1 (MDM), MA 5806/7-1 (MDM), Project number 316803389-SFB1280, Project A21 (MDM) and Project number 492434978-GRK 2862/1 Project 05 (MDM) and Project 06 (HPN).
Funding
Open Access funding enabled and organized by Projekt DEAL.
Author information
Authors and Affiliations
Contributions
D.P.: writing—original draft, review and editing, data acquisition, analysis, programming, visualization. E.K.H.C.: writing—review and editing, support, analysis. H.P.N.: supervision, funding acquisition. M.D.M.: writing—original draft, review and editing, support, supervision, funding acquisition.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Piotrowski, D., Clemensson, E.K.H., Nguyen, H.P. et al. Phenotypic analysis of ataxia in spinocerebellar ataxia type 6 mice using DeepLabCut. Sci Rep 14, 8571 (2024). https://doi.org/10.1038/s41598-024-59187-0
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-024-59187-0
Keywords
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.