Abstract
Videofluoroscopy (VF) is one of the most commonly used tools to assess oropharyngeal dysphagia as well as to visualize musculoskeletal structures of humans and animals engaged in various behaviors, including feeding. Despite its importance in clinical and scientific use, processing VF data has historically been extremely tedious because it is performed using manual frame-by-frame methods. With recent technological advances, the frame rate for scientific use has been increasing along with the use of high speed data capture systems. In the current study, we used non-human primates as a model animal to study human feeding behaviors to capture tongue movement based on markers implanted into the tongue. Here, we introduce a semi-automatic marker tracking algorithm that yields high tracking accuracy (> 90%) and dramatic speed improvements (faster than real time labeling). Furthermore, we quantify the sources of tracking errors and the tracking performance as a function of marker speeds. Our results indicate that there is more room for methodological improvements both in detection and prediction of marker positions. Moreover, correspondingly faster frame rates will be required to capture faster kinematic behaviors such as those of mice, which are extensively used to study both control and pathological conditions.
I. Introduction
Marker-based motion capture technology has been widely and successfully used to obtain kinematic data for various types of behaviors involving the lower and upper limbs/extremities, where reflective markers can be relatively easily placed on subjects of various sizes, including humans, horses, and rodents. However, imaging methods such as ultrasound [1], computed tomography CT [2] and videofluoroscopy (VF) are essential to study feeding and swallowing behaviors in which tissue surfaces are not directly visible [3], [4], [5], [6]. VF is commonly used to assess swallowing impairment (dysphagia) in major neurological diseases such as stroke [7], Parkinsons’ disease [8], and amyotrophic lateral sclerosis (ALS) [9], just to name a few. Dysphagia often not only compromises the quality of life of patients but also causes lethal consequences due to malnutrition and aspiration pneumonia [10], [11]. Non-human primate models exhibit similar kinematic behaviors to those by human subjects, particularly tongue and swallowing kinematics, and it is feasible to place markers in the monkeys.
A major bottleneck of VF image analysis, especially compared to the surface marker based motion capture approach, is a lack of established methods for feature tracking. In the current study, we recorded VF data during manual feeding of a non-human primate with markers implanted in the tongue to characterize tongue kinematics as a part of the whole feeding sequence analysis, including swallowing. Then we developed a method of semiautomatic tracking of markers using the speeded up robust features (SURF) algorithm [12] coupled with a Kalman filter to make predictions about the spatial location of tongue markers. Furthermore, we quantified the sources of errors in tracking as well as tracking performance against marker speeds. Our method yielded significant improvement in time to track markers compared to manual labeling by well-trained researchers. Additionally, our speed-tracking performance analysis suggested that a faster capture system and further algorithmic developments are necessary to reliably capture the high speed kinematics of feeding and swallowing in monkeys and other animal models of swallowing, particularly mice which are better suited for studying particular diseases.
II. Methods
A. Experimenal Procedure and Behavioral task
All of the surgical and experimental procedures were approved by the University of Chicago Animal Care and Use Committee and conformed to the principles outlined in the Guide for the Care and Use of Laboratory Animals (NIH publication no 86-23, revised 1985). One female rhesus macaque (Macaca mulatta) was trained to be seated by using a pole and collar technique. The neck collar was removed during training and data recording sessions. The head was restrained with a halo coupled to the cranium through chronically implanted head-posts. At least one month prior to data recording, three 0.5 mm diameter tantalum balls (RSA Biomedical, Sweden) were implanted by hypodermic needle into the anterior, middle, and posterior regions of the tongue at midline, under isoflurane anesthesia. Post-surgery, the monkey was trained to perform a manual feeding task and eat various types of foods in preparation for VF testing.
B. Videofluoroscopy and Post-processing
While the monkey self-fed various foods, two-dimensional lateral view VF recordings of jaw and tongue movements were acquired at a frame rate of 100 Hz using an OEC 9600 C-arm fluoroscope retrofitted with a Redlake Motion Pro 500 video camera (Redlake MASD LLC, San Diego, CA) [6]. All data used in subsequent analyses were manually labeled by trained researchers using Pro Analyst (Xcitex, Woburn, MA) to provide a gold standard for comparison with our novel automated methods.
C. Marker Tracking Algorithm
We developed a semi-automatic algorithm to detect the position of the three tongue markers. All computational analysis and tracking was performed within the Matlab (The Mathworks, Natick, MA) computing environment using the computer vision toolbox.
1) Feature Detection
We used the “speeded up robust features” (SURF) algorithm [12] to identify visual features of the fluoroscopy data that were putatively tongue markers. This algorithm identifies scale invariant blob-like features of images by analyzing images at multiple spatial scales. Because the tongue markers were relatively small, we used only fine scale spaces. Particularly, the four spatial filters used by the SURF algorithm were of size 9 × 9, 15 × 15, 21 × 21, and 27 × 27 pixels where the 9 × 9 and 27 × 27 pixel filter captured the finest and coarsest spatial information, respectively.
On every frame, the SURF algorithm identified N = 25 interest points (Fig. 1B) that contained visual features consistent with those of the tongue markers.
Fig. 1. Overview of tongue tracking algorithm.

A. An exemplar frame of fluoroscopy data. Note the three opaque markers implanted in the tongue in anterior, middle, and posterior locations. B. The SURF algorithm was applied to the fluoroscopy image to identify interest points that putatively correspond to tongue markers. The 25 most salient visual features identified by the algorithm are shown as green circles with crosses in their center. Many salient features identified were of jaw screws and other markers that were not implanted on the tongue. Each of the three tongue markers were detected. C. A Kalman filter was used to make predictions about the spatial location of the tongue markers based on their location, velocity, and acceleration in previous frames. The predicted location of each tongue marker is indicated by a blue symbol (×). A dark-to-light color gradient indicates the anterior-to-posterior axis of the tongue. D. A matching algorithm was used to assign interest points (B) to the predicted marker locations (C). The interest point that was identified as a tongue marker is shown by a blue circle whose color corresponds to the predictions in C. Each tongue marker was successfully identified by the algorithm.
2) One-step Ahead Prediction
A Kalman filter [13] was used to predict the spatial location of each tongue marker on a frame-by-frame basis. At time t, the position of tongue marker, m was predicted from the previous frames using the following equations:
where xm(t) is the state of tongue marker m at time t; A is the state transition matrix; wm(t) is process noise; H is the measurement model; vm(t) is measurement noise at time t, and zm(t) is the estimated position of tongue marker m at time t (Fig. 1C).
3) Matching Detected Features to Predictions
Ascertaining which, if any, of the N interest points correspond to the P predicted locations of the tongue markers can be formulated as a combinatorial optimization problem. This class of problem is commonly referred to as the assignment problem, and is solved in polynomial time [14]. In assignment problems, there is a cost, cnp, to assign interest point n ∈ N, to prediction p ∈ P. Here, we used the Euclidean distance between n and p as the cost to assign interest point n to prediction p. We computed the pairwise distance between all pairs of interest points and predicted marker locations to generate a cost matrix, C. If the distance between all of the interest points and the estimated tongue position exceeded a threshold (here, 15 pixels), then no interest point was assigned to that tongue marker. We used an optimized algorithm to solve this assignment problem with O(n3) worst case and O(n) average case performance, respectively (Fig. 1D) [15].
4) Advancing to the Next Frame
After algorithmically predicting the location of tongue markers, a trained research analyst verified the correctness of the prediction. If one of the tongue markers was not assigned an interest point, the researcher manually labeled the position of the marker. Similarly, if the algorithm incorrectly identified one of the tongue markers, it was manually corrected. After manual verification/correction, the Kalman filter was updated to predict the next frame.
III. Results
We applied our tongue tracking algorithm to several primate feeding sequences. On a limited subset of trials, our algorithm failed to correctly predict the position of one or more tongue markers. These frames may have been incorrectly labeled because the feature detector did not find the tongue marker (Fig. 2A) or because the predicted location of the tongue marker greatly deviated from its actual position, resulting in a different interest point being incorrectly assigned as a tongue marker (Fig. 2B). We will henceforth refer to these two types of errors as detection and prediction errors, respectively.
Fig. 2. Two types of tracking error.

A. A representative frame containing a detection error of the anterior tongue marker. The actual location of the tongue marker based on labeling by a trained researcher is indicated by the yellow circle (all other conventions same as Fig. 1). Note that the Kalman filter predicted the marker would be very close to its actual location. B. A representative frame showing a prediction error of the anterior tongue marker. Here, the predicted location of the tongue marker (dark blue ×) was far from its actual location (yellow circle). Instead, a different interest point was incorrectly identified as the tongue marker.
We found that an overwhelming majority of frames were correctly identified by our algorithm. Of the 1896 fluoroscopy frames that were analyzed, we correctly identified the position of the anterior, middle, and posterior tongue markers on 1734 (91.5%), 1827 (96.4%), and 1877 (99.0%) frames, respectively (Fig. 3). Detection errors occurred on 89 (4.7%), 34 (1.8%), and 18 (1%) frames, while prediction errors were present on 73 (3.9%), 35 (1.9%), and 1 (0.05%) frames for the three tongue markers, respectively.
Fig. 3. Tracking outcomes.

We correctly identified the location of the tongue marker on over 90% of frames (top). On frames that contained an error, we quantified the proportion that were due to detection errors and prediction errors. For the anterior and middle tongue markers, detection and prediction errors occurred in roughly equal proportion. For the posterior tongue marker, detection errors comprised nearly all of the total errors.
We calculated tracking performance as a function of tongue speed and found that in each instance, our ability to track tongue markers worsened as the tongue moved faster (Fig. 4).
Fig. 4. Tracking performance as a function of tongue speed.

We found that both detection and prediction errors were more likely to occur as the tongue moved faster. Color scheme is the same as Fig. 3.
We compared the amount of time trained researchers spent manually labeling the tongue tracking data with the amount of time it took a trained researcher to verify and correct mislabeled algorithmic data. We found that the labeling rate, expressed as frames labeled per unit time, was nearly 500% faster for algorithmically labeled data.
IV. Discussion
Our method yielded a satisfactory tracking performance of markers in much less time than human intervention. Furthermore, the error classification analysis suggests that both the detection and prediction components can be further improved. In the current study, we did not manipulate the image quality of the VF data. Thus, preprocessing of images such as contrast adjustments should improve the detection performance. However, in the present study, there was an inherent blurring of frames due to the high speed kinematics of feeding and swallowing relative to the slower camera frame rate. The anterior marker showed a much wider range of speed, and the faster the speed of the marker, the worse the tracking performance became. This kinematic speed - frame speed relation will be a critical issue to overcome when studying mice, a more common animal model in feeding and swallowing research. The wide availability of both control and diseased models of mice, in conjunction with established experimental protocols to obtain VF data [16], make the development of VF analysis tools for mice an essential step in the progression of neurodegenerative disease research. Behaviorally, tongue movements of mice are much faster than the tongue kinematics of the monkey included in our study, with mice reaching lick rates of 7–8Hz or higher [16], [17]. In order to capture relevant kinematics from mice, it will be essential to develop a much faster VF capture system than is currently available, and based on our analysis, the frame rate needs to be at least a few times faster than the 100 frames/sec camera used in our study. Furthermore, although most VF studies are limited to two dimensions, most of the movements analyzed with VF are inherently three dimensional. New devices have been developed to capture three dimensional morphological data during mammalian feeding [18]. Our future work will incorporate constraints posed by two camera images in three dimensional imaging and geometric constraints of marker locations in relation to rigid body elements in animal models. In order to make clinical translation of our work to connect our animal models and human subjects, we are in the process of detecting dynamic features without markers such that soft tissue kinematics and food/liquid bolus flow can be detected and predicted with high accuracy and compared against data with markers.
Fig. 5. Improvement in tracking speed.

We compared the amount of time it took a human to label the tongue tracking data using a manual procedure with our semi-automatic tracking procedure. We found that algorithmic tracking of tongue position was nearly 500% faster than manual labeling.
Acknowledgments
This work was completed in part with resources provided by the University of Chicago Research Computing Center.
This work was supported by NIH grant R01 NS045853, R01 DE023816, R21 NS084870, and Mizzou advantage funding.
References
- 1.Dodds Wylie J. The physiology of swallowing. Dysphagia. 1989;3(4):171–178. doi: 10.1007/BF02407219. [DOI] [PubMed] [Google Scholar]
- 2.Orr CM, Leventhal EL, Chivers SF, Marzke MW, Wolfe SW, Crisco JJ. Studying primate carpal kinematics in three dimensions using a computed-tomography-based markerless registration method. Anatomical Record. 2010;293(4):692–701. doi: 10.1002/ar.21137. [DOI] [PubMed] [Google Scholar]
- 3.Langmore SE, Schatz K, Olson N. Endoscopic and videofluoroscopic evaluations of swallowing and aspiration. The Annals of otology, rhinology, and laryngology. 1991 Aug;100(8):678–681. doi: 10.1177/000348949110000815. [DOI] [PubMed] [Google Scholar]
- 4.Mahesh M. Fluoroscopy: patient radiation exposure issues. Radiographics : a review publication of the Radiological Society of North America, Inc. 2001;21(4):1033–1045. doi: 10.1148/radiographics.21.4.g01jl271033. [DOI] [PubMed] [Google Scholar]
- 5.Rugiu MG. Role of videofluoroscopy in evaluation of neurologic dysphagia. Acta otorhinolaryngologica Italica. 2007;27(6):306–316. [PMC free article] [PubMed] [Google Scholar]
- 6.Ross CF, Baden AL, Georgi J, Herrel A, Metzger KA, Reed DA, Schaerlaeken V, Wolff MS. Chewing variation in lepidosaurs and primates. The Journal of Experimental Biology. 2010;213(4):572–584. doi: 10.1242/jeb.036822. [DOI] [PubMed] [Google Scholar]
- 7.Shaker R, Geenen JE. Management of Dysphagia in Stroke Patients. 2011 May; [PMC free article] [PubMed] [Google Scholar]
- 8.Waxman MJ, Durfee D, Moore M, Morantz RA, Koller W. Nutritional aspects and swallowing function of patients with Parkinson’s disease. Nutrition in clinical practice. 1990;5(5):196–199. doi: 10.1177/0115426590005005196. [DOI] [PubMed] [Google Scholar]
- 9.Robbins J. Swallowing in ALS and motor neuron disorders. Neurologic clinics. 1987 May;5(2):213–229. [PubMed] [Google Scholar]
- 10.Cichero JAY, Murdoch BE, editors. Dysphagia: Foundation, Theory and Practice. 1st. Wiley; 2006. [Google Scholar]
- 11.Leonard R, Kendall K. Dysphagia Assessment and Treatment Planning: A Team Approach. 3rd. Plural Publishing Inc; 2013. [Google Scholar]
- 12.Bay H, Ess A, Tuytelaars T, Van Gool L. Speeded-Up Robust Features (SURF) Computer Vision and Image Understanding. 2008;110(3):346–359. [Google Scholar]
- 13.Kalman RE. A New Approach to Linear Filtering & Prediction Problems. Transactions of the ASME–Journal of Basic Engineering. 1960;82:35–45. Series D. [Google Scholar]
- 14.Munkres J. Algorithms for the Assignment and Transportation Problems. Journal of the SIAM. 1957;5(1):32–38. [Google Scholar]
- 15.Miller ML. Optimizing Murty s Ranked Assignment Method. Ieee Transactions On Aerospace And Electronic Systems. 1997;33(3):851–862. [Google Scholar]
- 16.Lever TE, Brooks RT, Thombs LA, Littrell LL, Harris RA, Allen MJ, Kadosh MD, Robbins KL. Videofluoroscopic Validation of a Translational Murine Model of Presbyphagia. Dysphagia. 2015;(1):6–10. doi: 10.1007/s00455-015-9604-7. [DOI] [PubMed] [Google Scholar]
- 17.Weijnen JAWM. Licking behavior in the rat. Neuroscience and Biobehavioral Reviews. 1998;22(6):751–760. doi: 10.1016/s0149-7634(98)00003-7. [DOI] [PubMed] [Google Scholar]
- 18.Brainerd EL, Baier DB, Gatesy SM, Hedrick TL, Metzger KA, Gilbert SL, Crisco JJ. X-ray reconstruction of moving morphology (XROMM): precision, accuracy and applications in comparative biomechanics research. Journal of experimental zoology Part A, Ecological genetics and physiology. 2010;313(5):262–279. doi: 10.1002/jez.589. [DOI] [PubMed] [Google Scholar]
