Manuscript Offprint
arXiv:2610.33661Tracking Is Not Sensing: Artifact-Aware Thermal Video Respiration Estimation in Head-Free Marmosets
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Continuous physiological monitoring is essential for linking behavior, internal state, and neural activity in neuroscience and translational research. In common marmosets, a key nonhuman primate model for social neuroscience, respiratory rate provides a basic readout of arousal, stress, and physiological regulation. Contact sensors can provide accurate measurements, but they add preparation burden and may interfere with head-free behavioral protocols. Thermal video offers a noncontact alternative by capturing breathing-related temperature changes around the nose and mouth. However, in head-free marmosets, these cues are weak, localized, and easily corrupted by head motion, pose changes, and fur. Here we show that this setting exposes a broader challenge in video-based physiological sensing: visually reliable tracking does not necessarily imply physiologically valid measurement. Using synchronized thermal video and contact respiration recordings, we show that marmoset respiration is recoverable from thermal video but strongly ROI-sensitive. Under head-free motion, visually plausible nasal tracking can still produce traces inconsistent with contact respiration, demonstrating that tracking is not sensing. We therefore estimate respiratory rate from learned temporal signals extracted from thermal clips and introduce Selective Temporal Attenuation Regularization (STAR). STAR selectively attenuates high-motion thermal discontinuities through local temporal imputation during training, regularizing models toward respiration-consistent dynamics while leaving inference unchanged on raw video. Across multiple deep-learning backbones, STAR improves head-free estimation, reaching 2.23 bpm MAE compared with 20.76 bpm for tracked ROI analysis.
1. Introduction
Continuous physiological monitoring is increasingly important for linking behavior, internal state, and neural activity in naturalistic neuroscience and translational research. Physiological signals such as respiratory rate, heart rate, heart rate variability, and surface temperature provide quantitative readouts of autonomic regulation, arousal, stress, and behavioral state [1, 12, 21, 24, 29]. In animal neuroscience, these measurements are especially valuable because internal state can strongly modulate perception, action, and social behavior. However, many physiological measurements still rely on contact sensors or invasive instrumentation. Although such devices provide accurate reference signals, their physical attachment can add a preparation burden, disrupt behavior, and interfere with head-free experimental protocols. These limitations are particularly important for common marmosets, a small nonhuman primate model widely used for social neuroscience and systems neuroscience [20]. In marmosets, respiratory and autonomic rhythms provide important readouts of physiological state and arousal-related behavior [6, 7, 15].
Thermal video offers a promising noncontact modality because breathing induces periodic temperature changes around the nostrils, subnasal region, and mouth [2, 3, 22]. Thermal imaging has also been used in marmosets to study nasal temperature changes related to emotional state [11]. However, head-free marmoset respiration is a challenging vision problem with weak physiological signals: the cue is small, spatially localized, and easily corrupted by fur, pose changes, nostril orientation changes, and head motion.
This setting exposes a broader challenge in video-based physiological sensing: visually reliable tracking does not necessarily imply physiologically valid measurement. Conventional thermal respiration pipelines localize a nasal or perinasal region of interest (ROI), average its temperature
Corresponding author.
over time, and estimate respiratory rate from the dominant frequency [2, 3]. These methods assume that a tracked ROI remains aligned with a stable respiratory thermal source. In head-free marmosets, this assumption can fail: a tracker may maintain a visually plausible nasal region while the averaged thermal trace is dominated by motion-induced thermal discontinuities rather than respiration. In other words, tracking is not sensing.
We study this problem using synchronized thermal video and contact respiration recordings from common marmosets under fixed-head and head-free conditions. Fixed-head recordings show that respiration-related thermal information is recoverable from video, but highly sensitive to ROI selection. Head-free recordings reveal a stronger failure mode: even visually plausible nasal tracking can produce traces inconsistent with contact respiration. These observations motivate a shift from ROI-averaged tracking to learned spatiotemporal physiological signal extraction.
We therefore estimate respiratory rate from temporal signals predicted from thermal clips and adapt representative video-based physiological measurement backbones, originally developed for remote photoplethysmography, to recover respiratory waveforms from thermal sequences [9, 16, 33, 34]. To address motion-corrupted observations during training, we introduce Selective Temporal Attenuation Regularization (STAR), a motion-aware training strategy that uses local temporal imputation to attenuate high-motion thermal discontinuities and encourage respiration-consistent temporal dynamics. Our contributions are summarized as follows:
• We study thermal respiratory monitoring in marmosets under fixed-head and head-free conditions using synchronized thermal video and contact respiration recordings.
• We show that thermal respiration is highly ROI-sensitive: under head motion, even visually plausible nasal tracking can fail to preserve respiratory signals.
• We introduce STAR, a motion-aware training strategy that improves head-free estimation across multiple backbones, achieving 2.23 bpm MAE versus 20.76 bpm for tracked ROI analysis.
Thermal video for respiratory monitoring. Thermal imaging is well suited for respiratory monitoring because respiration induces periodic temperature variations around the nasal region. Classical methods typically extract a temperature trace from a nasal region of interest and analyze its temporal variations to estimate respiratory rate [2]. Recent work has explored learning based approaches for thermal respiratory rate estimation [3, 22]. Beyond human studies, thermal imaging has also been applied to animal physiology monitoring, including rodents, pigs, and wildlife [4, 5, 26, 27]. These studies demonstrate the feasibility of thermal respiration monitoring. However, they are typically conducted in controlled settings or on larger subjects. This limits their applicability to marmoset behavior with large motion variation. In such settings, small and highly localized respiratory regions make reliable signal extraction particularly challenging.
Respiratory monitoring in head-free marmosets. Common marmosets are widely used in neuroscience and social behavior research [20]. Their physiological rhythms are closely related to arousal, stress, and behavioral state [7, 15]. Recent vision tools have begun to support marmoset behavioral analysis, including pose estimation [10]. Thermal imaging has also been used to study marmoset emotional state through nasal temperature variations [11]. However, continuous respiratory rate estimation from thermal video remains underexplored in scenarios with large motion variation. In particular, small respiratory regions, rapid motion, and pose changes make ROI based thermal respiration estimation unreliable, motivating robust respiratory signal recovery methods.
3. From Localized Respiratory Cues to Tracking Failure
3.1. Thermal Video Respiratory Rate Estimation
We record synchronized thermal video and contact respiration from common marmosets. The thermal camera (MAG62 thermal imaging camera, Magnity Electronics Co., Ltd.) captures frames at 50 Hz and supports external triggering. The contact respiration signal is sampled on the same hardware timed acquisition system, so every thermal frame is aligned to the reference signal. The full collection contains 48 five minute sessions from four male marmosets, for 240 minutes of synchronized thermal respiration data: 32 head-free sessions (160 minutes) and 16 fixed-head sessions (80 minutes).

Figure 1. Tracking is not sensing in head-free thermal respiration monitoring. Left to right: synchronized thermal video and contact respiration provide paired observations; respiration related thermal cues are local and ROI sensitive; under head-free motion, visually successful CSRT tracking can still produce temperature traces that do not match respiration; robust estimation therefore requires recovering respiratory dynamics from thermal clips rather than relying on ROI averaged tracking alone.
For respiratory rate estimation, clip-level predictions are aggregated into a 20 s analysis window following the frequency domain estimation protocol of Cennini et al. [8]. To ensure reliable physiological labels, windows are excluded by manual inspection only when the reference respiration signal is severely corrupted, such as by contact-sensor detachment or signal truncation. This exclusion was based only on the quality of the reference respiration signal and was applied before evaluation. The final evaluation set consists of 63 fixed-head and 150 head-free analysis windows. Examples of excluded and retained respiratory windows are provided in Appendix A.
3.2. Evaluation Protocol
Let be a thermal clip, where is the -th thermal frame. For each analysis window, we estimate respiratory rate in breaths per minute and compare it with the contact reference . Traditional approaches compute an ROI averaged temperature trace from the input clip, and estimate respiratory rate from its dominant frequency. In contrast, learning based methods directly estimate a respiratory waveform from the input clip, from which respiratory rate is derived using the same frequency domain estimation protocol.
We evaluate respiratory rate error using mean absolute error (MAE), mean absolute percentage error (MAPE), and Pearson correlation:
Given a respiratory ROI , the frequency domain baseline computes the mean thermal signal
After detrending, normalization, and band pass filtering, we estimate the power spectral density and choose the dominant frequency within the respiratory band:
This baseline is interpretable and computationally cheap, but it assumes that the ROI stays aligned with a respiratory thermal source and that the ROI mean is dominated by respiratory variation.
3.3. Fixed Head Feasibility and ROI Sensitivity
Fixed-head recordings provide a controlled setting to test whether marmoset thermal video contains recoverable respiratory information. ROI based frequency analysis indicates that respiration related thermal variation can be measured when the region is appropriately localized, following classical thermal respiration approaches that estimate breathing from temperature variation in a nasal or perinasal ROI [2]. We first observe that respiratory rate estimation varies significantly across different ROI selections around the nasal region, indicating strong spatial sensitivity of the thermal signal. To further analyze this sensitivity, we evaluate a post hoc oracle ROI that serves as a nondeployable diagnostic upper bound for ROI frequency analysis. The oracle ROI is obtained by minimizing respiratory rate error at the analysis window level. The search procedure is described in Appendix B.
Table 1. Fixed-head ROI frequency analysis. The oracle ROI is a post hoc diagnostic upper bound and is not deployable.
| ROI setting | MAE ↓ | MAPE ↓ | ρ ↑ |
|---|---|---|---|
| Manual ROI | 2.46 | 3.57% | 0.87 |
| Oracle ROI | 0.45 | 0.66% | 0.99 |

(a) Thermal frame

(b) RR Power Map
(c) PSD
Figure 2. Manual ROI versus post-hoc oracle ROI under fixed-head conditions.
As shown in Table 1, the manual ROI achieves moderate accuracy, while the oracle ROI significantly improves performance. This gap indicates that the thermal respiratory signal is present but highly sensitive to precise spatial localization. Figure 2 further supports this finding. The RR band power map shows that respiratory energy is strongly localized near the nostril region. A signal energy heatmap analysis (details in Appendix A) further confirms this spatial sparsity, showing that only a small region contributes most of the respiratory band power. Compared with the manual ROI, the oracle ROI captures this concentrated region more effectively, resulting in a sharper spectral peak in the power spectral density (PSD) that is better aligned with the contact reference signal. Overall, these results indicate that respiratory information is spatially localized, and that estimation errors under fixed-head conditions are primarily caused by imperfect spatial localization rather than the absence of a measurable respiratory signal.
3.4. Tracking Availability Does Not Ensure Respiratory Accuracy
A natural extension of ROI based analysis is to track the respiratory region over time under head-free motion. We first evaluate Kernelized Correlation Filter (KCF) [13], following prior thermal respiratory monitoring work that used KCF for nose and eye ROIs [27]. Since KCF often fails under marmoset head-free motion, we further evaluate the Channel and Spatial Reliability Tracker (CSRT) [19] as a stronger tracker for comparison. We evaluate tracked ROI baselines on 150 head-free analysis windows. Each tracker is initialized from a manual perinasal ROI and updated frame by frame. CSRT achieves high visual continuity across most windows, where ROI availability is defined in Appendix B. However, availability only measures tracking continuity and does not guarantee that the ROI accurately covers the respiratory region. We further perform manual verification to ensure consistent nasal region coverage and retain 141 valid head-free analysis windows satisfying this criterion. Even under this stricter criterion, respiratory rate estimation remains poor, as shown in Table 2. Additional tracking examples are provided in Appendix E.
Table 2. Head-free tracking results. High ROI availability and visually correct nasal coverage do not translate into accurate respiratory-rate estimation.
| Method | Windows | MAE ↓ | MAPE ↓ | ρ ↑ |
|---|---|---|---|---|
| KCF ROI | 150 | 21.68 | 21.80 | 0.06 |
| CSRT ROI | 150 | 22.17 | 22.54 | 0.08 |
| CSRT ROI | 141 | 20.76 | 21.55 | 0.10 |
These results expose the mismatch between visual tracking and physiological sensing. Although a tracker can maintain a plausible nasal bounding box, head motion alters facial orientation, thermal distribution, and the proportion of respiratory signal within the ROI. As a result, the ROI mean becomes dominated by motion induced thermal variation rather than respiration.
4. Method
4.1. Thermal Respiratory Signal Recovery
Existing video based physiological backbones learn spatiotemporal representations from video under supervised learning. These models recover weak physiological signals by exploiting temporal and spatial dependencies in the input sequence, making them suitable for thermal respiratory monitoring. Instead of reducing a thermal clip to a single ROI averaged temperature trace, we model the task as recovering a continuous respiratory signal from the full spatiotemporal thermal sequence.
We adapt three representative backbones to thermal respiratory waveform prediction: TS-CAN [16], PhysNet [33], and PhysFormer [34]. Each model takes a thermal facial clip as input and predicts a continuous respiratory signal. This formulation keeps the frequency readout comparable to the traditional ROI baseline while replacing the fragile ROI averaged trace with a learned waveform extractor.
Given input clip , the model predicts a waveform
Respiratory rate is derived from the predicted waveform using the same dominant-frequency readout as the ROI baseline.
4.2. Selective Temporal Attenuation Regularization
Existing video based physiological models often improve robustness through model internal mechanisms, such as at-

Figure 3. Overview of STAR. A spatiotemporal network predicts a respiratory waveform from thermal clips. During training, high motion frames are identified from adjacent thermal differences and locally imputed using temporal neighbors with probability , attenuating motion-induced thermal discontinuity while inference uses raw clips.
tention modules, difference frame inputs or temporal shift modules [9, 16, 34]. These mechanisms improve spatiotemporal feature extraction, but they do not explicitly address motion-corrupted input observations during training. In head-free marmoset thermal video, raw clips can contain short, high amplitude motion induced thermal changes caused by head pose changes and changing nostril orientation. These changes are visually prominent, but they do not correspond to abrupt changes in the contact respiration waveform. Thus, the training data contains time points where the local video observation is inconsistent with the physiological label.
STAR addresses this input level mismatch without modifying the backbone architecture. It constructs a complementary training view by imputing selected high motion frames from temporal neighbors while keeping the same respiratory label. Stochastic exposure to both raw and attenuated clips encourages the model to rely on respiration-consistent thermal dynamics, while inference remains unchanged on raw thermal video. Given a raw thermal clip , STAR first computes a framewise motion score from adjacent thermal differences:
Adjacent frame differences are used only to locate likely motion-corrupted frames, not as a normalized difference input to the backbone. High motion frames are selected adaptively within each clip by thresholding the motion score at a percentile:
where is the selected frame ratio. We set by default, selecting approximately the top 10% high motion frames in each clip.
For a selected high motion frame, the current observation may contain an abrupt thermal change that is not caused by respiration. We assume that, in the absence of strong motion artifacts, the underlying respiration related thermal observation varies smoothly over adjacent frames. Let denote the latent respiration-consistent thermal observation. This assumption can be written as
Because is not directly available, STAR uses the two neighboring observed frames to form a symmetric local estimate for selected high motion frames:
Frames outside the high motion mask and boundary frames remain unchanged. This operation preserves clip length and temporal alignment with the respiratory waveform label. It is not intended to reconstruct a visually perfect thermal frame; instead, it selectively attenuates abrupt frame-level thermal discontinuities at likely motion-corrupted time points while keeping low-motion frames raw.
During training, we use stochastic raw/attenuated exposure:
The raw view preserves the input distribution used at inference, while the attenuated view reduces local observation-label mismatch during training. Inference always uses raw thermal clips.
5. Experiments
We evaluate thermal respiratory signal recovery under progressively more challenging conditions. We first test whether thermal video contains recoverable respiratory information under head-fixed conditions. We then evaluate head-free respiratory estimation, where pose changes and nostril orientation changes can corrupt local thermal evidence. For learned models, we report both individual-dependent and individual-independent evaluation, following common participant-dependent and participant-independent protocols in video-based physiological measurement [9]. The tracked ROI frequency baseline from Section 3 is included as a non-learning reference.
Protocol. All learned marmoset models use the same data split, clip construction, respiratory rate estimation procedure, and evaluation code. The main setting is individual-dependent cross-session evaluation. In each split, one recording session is held out for testing, while the remaining sessions are used for training and validation. The same individual marmoset may appear across splits, but recording sessions are disjoint across training, validation, and test sets. This prevents window-level leakage and evaluates within-individual generalization across recording sessions. We additionally report four-fold individual-independent evaluation as a harder setting. In each fold, one individual marmoset is held out for testing, and the remaining individuals are used for training and validation. This setting tests cross-individual generalization under differences in thermal appearance, facial geometry, and motion patterns.
Each input sample contains 50 thermal frames, following short sequence spatiotemporal modeling protocols of [33]. For respiratory rate estimation, predictions from clips are aggregated into a 20 s analysis window following the frequency domain estimation protocol of [8]. The aggregated signal is filtered in the 0.8–2.5 Hz respiratory band [6, 7], and respiratory rate is computed from the dominant spectral peak. The contact respiration signal is processed with the same procedure to obtain the reference rate.
Training. All learned models use temporal signal supervision from the synchronized contact respiration signal. For each backbone, we follow the corresponding training objective and implementation practice in rPPG-Toolbox [18]. Following standard rPPG preprocessing practice, thermal frames are cropped to a fixed facial ROI before clip construction. All models are trained with AdamW for 20 epochs, batch size 16, and learning rate . For STAR, we use and by default.
Metrics. We report MAE, MAPE, and Pearson correlation as defined in Section 3. Additional preprocessing and implementation details appear in Appendix B.
5.1. Head-fixed Respiratory Signal Recovery
The head-fixed experiment asks whether waveform prediction can reduce the dependence on a manually defined ROI. Table 3 compares the manual ROI frequency baseline with three adapted video based physiological signal recovery backbones. All learned models use the same head-fixed evaluation windows and the same frequency domain respiratory rate estimation procedure. TS-CAN provides a modest reduction in MAE and MAPE, while PhysNet and PhysFormer substantially improve both error and correlation. PhysFormer achieves the best overall performance, with 0.82 bpm MAE and a Pearson correlation of 0.97. These results show that learned spatiotemporal models can recover fixed-head respiratory signals more reliably than a temperature trace obtained by averaging a manually selected nasal ROI.
Table 3. Head-fixed comparison between traditional ROI methods and spatiotemporal waveform prediction.
| Method | MAE ↓ | MAPE ↓ | ρ ↑ |
|---|---|---|---|
| Manual ROI | 2.46 | 3.57 | 0.87 |
| TS-CAN | 2.16 | 3.10 | 0.83 |
| PhysNet | 0.93 | 1.40 | 0.95 |
| PhysFormer | 0.82 | 1.21 | 0.97 |
Interpretability We next examine whether the head-fixed model uses physiologically plausible spatial evidence. We use Grad-CAM [28], which visualizes image regions that contribute strongly to the model output through gradient based localization. Figure 4 shows Grad-CAM examples for thermal respiratory signal recovery. The high response regions concentrate around the nostril and nearby local thermal structures, rather than spreading uniformly across the full crop. This pattern agrees with the ROI sensitivity analysis in Section 3: the respiratory cue is local, but the learned model can combine multiple local thermal regions instead of collapsing the input to one fixed ROI average.

(a) Thermal frame

(b) Grad-CAM
Figure 4. Grad-CAM visualization under head-fixed conditions.
5.2. Head-Free Robust Respiration Estimation
The main experiment evaluates thermal respiratory signal recovery under head-free motion. This setting is challenging because pose changes, nostril orientation changes, fur, and partial occlusion can corrupt local thermal traces.
Table 4 compares head-free respiratory-rate estimation under two evaluation settings. For comparison, we also include the tracked CSRT ROI frequency baseline from Section 3. This baseline is a non-learning method and does not involve train or test splits. The upper block reports individual-dependent evaluation, while the lower block reports individual-independent evaluation.
Individual dependent performance. Under individual dependent evaluation, all learned signal recovery models substantially outperform the tracked ROI baseline. Although CSRT achieves high visual tracking availability, its respiratory-rate error remains extremely large (20.76 bpm MAE), indicating that tracking continuity does not guarantee physiological signal fidelity. This gap is important for head-free thermal sensing: the tracked box can remain spatially stable even when the nostril heat exchange is weak, off-axis, or mixed with fur and background temperature changes. In contrast, learned models reduce the error by a large margin. PhysFormer and PhysNet achieve the strongest performance, both reaching below 4 bpm MAE and Pearson correlation above 0.90, while TS-CAN remains less accurate but still outperforms ROI based tracking. Moreover, STAR consistently improves all evaluated backbones, suggesting that motion-guided temporal attenuation mitigates the mismatch between motion-corrupted frames and synchronized respiratory labels in the individual-dependent setting.
Individual independent performance. Under individual independent evaluation, performance degrades across all learned models. This indicates that inter-individual domain shift is a major challenge for head-free respiratory estimation. Learned respiratory representations may still depend on individual-specific thermal appearance, facial geometry, and motion patterns. This gap separates motion corruption within known individuals from generalization to unseen individuals, which remains outside the direct objective of STAR. Among the learned models, STAR clearly improves PhysNet and gives limited gains for PhysFormer. For TS-CAN, it slightly improves MAPE and correlation but not MAE. These results suggest that STAR reduces motion-induced observation mismatch, but does not fully resolve cross-individual domain shift.
Table 4. Head-free respiratory rate estimation under individual-dependent and individual-independent evaluation.
| Method | MAE ↓ | MAPE ↓ | ρ ↑ |
|---|---|---|---|
| Tracked ROI reference | |||
| CSRT ROI | 20.76 | 21.55 | 0.10 |
| Individual dependent | |||
| PhysFormer | 3.31 | 3.98 | 0.91 |
| PhysFormer + STAR | 2.71 | 3.28 | 0.94 |
| PhysNet | 2.69 | 3.54 | 0.92 |
| PhysNet + STAR | 2.23 | 2.90 | 0.94 |
| TS-CAN | 7.97 | 9.81 | 0.64 |
| TS-CAN + STAR | 7.05 | 9.11 | 0.70 |
| Individual independent | |||
| PhysFormer | 9.76 | 11.69 | 0.53 |
| PhysFormer + STAR | 9.49 | 11.68 | 0.58 |
| PhysNet | 8.56 | 9.93 | 0.59 |
| PhysNet + STAR | 7.06 | 8.78 | 0.67 |
| TS-CAN | 11.70 | 14.69 | 0.48 |
| TS-CAN + STAR | 11.81 | 14.61 | 0.51 |
Additional motion-stratified comparisons between learned waveform prediction and ROI frequency analysis are provided in Appendix D.
5.3. Ablation Study
Ablation protocol. We conduct ablations on the B6 head-free subset using an individual-dependent protocol, where training, validation, and test samples are split by recording session. This controlled setting isolates the effect of STAR design choices from inter-individual variation.
Temporal operation. This ablation isolates three factors in STAR: motion guided frame selection, the choice between smoothing and imputation for selected high motion frames, and whether the gain can be explained by replacing frames with lower motion observations. The raw baseline applies no temporal operation. The proposed imputation follows Eq. (10): selected high motion frames are replaced by an adjacent frame estimate, while other frames remain unchanged. As a comparison, temporal filtering applies a centered three frame kernel,
This filter is equivalent to a convex combination of the current frame and the adjacent frame estimate used by STAR. Therefore, when the current frame is motion corrupted, filtering can still retain part of the corrupted observation. Random filtering and random imputation apply temporal operations at randomly selected time points, testing whether temporal modification alone is sufficient without motion guided selection. Low motion imputation replaces selected high motion frames with randomly sampled low motion frames from the same session, testing whether lower motion appearance alone explains the gain.
The ablation results in Table 5 support this design. Random filtering and random imputation do not improve the raw baseline, indicating that temporal operations must be targeted to motion-corrupted frames. Low-motion imputation performs worse, indicating that lower motion is insufficient without temporal alignment to the respiratory phase. Temporal filtering degrades performance, consistent with the fact that it still retains part of the corrupted center frame. The best result is obtained only when the operation is both motion-guided and based on local temporal imputation. This supports viewing STAR as a targeted reliability intervention rather than generic temporal augmentation: it modifies frames only when motion makes the local thermal evidence less trustworthy.
Table 5. STAR ablation on B6 under individual-dependent evaluation.
| Variant | MAE | MAPE | |
| Operation | |||
|---|---|---|---|
| Raw | 1.13 | 1.32 | 0.98 |
| Random filter | 1.19 | 1.36 | 0.97 |
| Low-motion | 2.09 | 2.45 | 0.93 |
| Filter | 2.00 | 2.39 | 0.94 |
| Random imput. | 1.26 | 1.53 | 0.95 |
| STAR | 0.97 | 1.11 | 0.98 |
| Raw/attenuated probability | |||
| Filter, | 2.00 | 2.39 | 0.94 |
| Filter, | 4.42 | 4.91 | 0.77 |
| STAR, | 0.97 | 1.11 | 0.98 |
| STAR, | 1.22 | 1.43 | 0.97 |
| Mask ratio | |||
| Top 5% | 1.75 | 2.11 | 0.94 |
| Top 10% | 0.97 | 1.11 | 0.98 |
| Top 20% | 1.87 | 2.23 | 0.94 |
Exposure probability and mask ratio. We further ablate two parameters of STAR: the probability of using the attenuated view during training, and the fraction of frames selected by the motion mask. As shown in Table 5, stochastic raw and attenuated exposure ( ) gives the best performance. For STAR, increasing to 1.00 causes only a moderate drop, suggesting that local temporal imputation produces an attenuated view that remains largely consistent with respiratory signal recovery. In contrast, temporal filtering degrades sharply when always applied ( ), indicating that generic filtering introduces a stronger train test mismatch and can suppress useful respiratory dynamics while retaining part of the corrupted center frame.
The motion mask ratio controls how many high-motion frames are selected for local imputation. Selecting too few frames may miss motion artifacts, whereas selecting too many frames may overprocess frames that still contain useful respiratory dynamics. The top 10% setting gives the best balance. Together, these results support the default setting of and a top 10% motion mask. This behavior matches the goal of STAR: correcting likely motion corruption while leaving most respiratory evidence unchanged.
6. Discussion and Conclusion
In head-free marmosets, visually plausible nasal tracking can fail to preserve respiratory signals, motivating learned waveform recovery from thermal video. STAR applies local temporal imputation to selected high-motion frames during training to reduce motion-induced observation-label mismatch. These findings may also inform learning from perturbed visual evidence [30, 36] and sensing affected by motion artifacts or cross-sensor misalignment [14, 35].
Our modest cohort and controlled recordings limit generalization, particularly across individuals. Future work should expand the cohort and develop quality control for naturalistic motion, occlusion, camera distance changes, and social interactions.
Acknowledgment
This work was supported by the Strategic Priority Research Program of the Chinese Academy of Sciences under Grant XDB1010102, the STI 2030—Major Projects under Grant 2021ZD0201500, and the National Natural Science Foundation of China under Grant T2341003.
Compliance with Ethical Standards
All animal procedures were conducted in accordance with institutional and national animal care guidelines and were approved by the Institutional Animal Care and Use Committee (IACUC) of Tsinghua University.
References
[1] Bradley M Appelhans and Linda J Luecken. Heart rate variability as an index of regulated emotional responding. Review of General Psychology, 10(3):229–240, 2006. 1
[2] Carina Barbosa Pereira, Xinchi Yu, Michael Czaplik, Rolf Rossaint, Vladimir Blazek, and Steffen Leonhardt. Remote monitoring of breathing dynamics using infrared thermography. Biomedical Optics Express, 6(11):4378–4394, 2015. 1, 2, 3
[3] Carina Barbosa Pereira, Xinchi Yu, Michael Czaplik, Vladimir Blazek, Boudewijn Venema, and Steffen Leonhardt. Estimation of breathing rate in thermal imaging videos: A pilot study on healthy human subjects. Journal of Clinical Monitoring and Computing, 31(6):1241–1254, 2017. 1, 2
[4] Carina Barbosa Pereira, Janosch Kunczik, Leonie Zieglowski, René Tolba, Ahmed Abdelrahman, Dietmar Zechner, Brigitte Vollmar, Heike Janssen, Thomas Thum, and Michael Czaplik. Remote welfare monitoring of rodents using thermal imaging. Sensors, 18(11):3653, 2018. 2
[5] Carina Barbosa Pereira, Henriette Dohmeier, Janosch Kunczik, Nadine Hochhausen, René Tolba, and Michael Czaplik. Contactless monitoring of heart and respiratory rate in anesthetized pigs using infrared thermography. Plos one, 14(11):e0224747, 2019. 2
[6] Mitchell Bishop, Maximilian Weinhold, Ariana Z Turk, Afuh Adeck, and Shahriar SheikhBahaei. An open-source tool for automated analysis of breathing behaviors in common marmosets and rodents. eLife, 11:e71647, 2022. 1, 6
[7] Jeremy I Borjon, Daniel Y Takahashi, Diego C Cervantes, and Asif A Ghazanfar. Arousal dynamics drive vocal production in marmoset monkeys. Journal of neurophysiology, 116(2):753–764, 2016. 1, 2, 6
[8] Giovanni Cennini, Jeremie Arguel, Kaan Aksit, and Arno van Leest. Heart rate monitoring via remote photoplethysmography with motion artifacts reduction. Optics express, 18(5):4867–4875, 2010. 3, 6
[9] Weixuan Chen and Daniel McDuff. Deepphys: Video-based physiological measurement using convolutional attention networks. In Proceedings of the european conference on computer vision (ECCV), pages 349–365, 2018. 2, 5, 6
[10] Chaoqun Cheng, Zijian Huang, Ruiming Zhang, Guozheng Huang, Han Wang, Likai Tang, and Xiaoqin Wang. Marmopose: A deep learning-based system for real-time multimarmoset 3d pose tracking. bioRxiv, 2024. 2
[11] FA Ermatinger, RK Brügger, and JM Burkart. The use of infrared thermography to investigate emotions in common marmosets. Physiology & behavior, 211:112672, 2019. 1, 2
[12] Paul Grossman and Edwin W Taylor. Toward understanding respiratory sinus arrhythmia: Relations to cardiac vagal tone, evolution and biobehavioral functions. Biological Psychology, 74(2):263–285, 2007. 1
[13] João F Henriques, Rui Caseiro, Pedro Martins, and Jorge Batista. High-speed tracking with kernelized correlation filters. IEEE Transactions on Pattern Analysis and Machine Intelligence, 37(3):583–596, 2015. 4
[14] Keli Huang, Botian Shi, Xiang Li, Xin Li, Siyuan Huang, and Yikang Li. Multi-modal sensor fusion for auto driving perception: A survey. arXiv preprint arXiv:2202.02703, 2022. 8
[15] Robin Kramer and Monika Burns. Normal clinical and biological parameters of the common marmoset (callithrix jacchus). In The common marmoset in captivity and biomedical research, pages 93–107. Elsevier, 2019. 1, 2
[16] Xin Liu, Josh Fromm, Shwetak Patel, and Daniel McDuff. Multi-task temporal shift attention networks for on-device contactless vitals measurement. Advances in Neural Information Processing Systems, 33:19400–19411, 2020. 2, 4, 5
[17] Xin Liu, Brian Hill, Ziheng Jiang, Shwetak Patel, and Daniel McDuff. Efficientphys: Enabling simple, fast and accurate camera-based cardiac measurement. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pages 5008–5017, 2023. 2
[18] Xin Liu, Girish Narayanswamy, Akshay Paruchuri, Xiaoyu Zhang, Jiankai Tang, Yuzhe Zhang, Roni Sengupta, Shwetak Patel, Yuntao Wang, and Daniel McDuff. rppg-toolbox: Deep remote ppg toolbox. Advances in Neural Information Processing Systems, 36:68485–68510, 2023. 6, 13
[19] Alan Lukezic, Tomas Vojir, Luka Cehovin Zajc, Jiri Matas, and Matej Kristan. Discriminative correlation filter with channel and spatial reliability. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6309–6318, 2017. 4
[20] Cory T Miller, Winrich A Freiwald, David A Leopold, Jude F Mitchell, Afonso C Silva, and Xiaoqin Wang. Marmosets: a neuroscientific model of human social behavior. Neuron, 90(2):219–233, 2016. 1, 2
[21] Nunzia Molinaro, Emiliano Schena, Sergio Silvestri, Fabrizio Bonotti, Damiano Aguzzi, Erika Viola, Fabio Buccolini, and Carlo Massaroni. Contactless vital signs monitoring from videos recorded with digital cameras: An overview. Frontiers in physiology, 13:801709, 2022. 1
[22] Mohsen Mozafari, Andrew J Law, Rafik A Goubran, and James R Green. Respiratory rate estimation from thermal video data using spatio-temporal deep learning. Sensors, 24(19):6386, 2024. 1, 2
[23] Girish Narayanswamy, Yujia Liu, Yuzhe Yang, Chengqian Ma, Xin Liu, Daniel McDuff, and Shwetak Patel. Bigsmall: Efficient multi-task learning for disparate spatial and temporal physiological measurements. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 7914–7924, 2024. 2
[24] Ioannis Pavlidis, Panagiotis Tsiamyrtzis, Dvijesh Shastri, Avinash Wesley, Yan Zhou, Peggy Lindner, Pradeep Budharaju, Rohan Joseph, Anitha Mandapati, Brian Dunkin, et al. Fast by nature-how stress patterns define human experience and performance in dexterous tasks. Scientific Reports, 2(1):305, 2012. 1
[25] Ming-Zher Poh, Daniel J McDuff, and Rosalind W Picard. Advancements in noncontact, multiparameter physiological measurements using a webcam. IEEE transactions on biomedical engineering, 58(1):7–11, 2010. 2
[26] Caroline L Rzucidlo, Erin Curry, and Michelle R Shero. Non-invasive measurements of respiration and heart rate across wildlife species using eulerian video magnification of infrared thermal imagery. BMC biology, 21(1):61, 2023. 2
[27] Ehsan Sadeghi, Zinan Guo, Alessandro Chiumento, and Paul Havinga. Non-invasive monitoring of vital signs in calves using thermal imaging technology. arXiv preprint arXiv:2405.11532, 2024. 2, 4
[28] Ramprasaath R. Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-CAM: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, pages 618–626, 2017. 6
[29] Fred Shaffer and Jay P Ginsberg. An overview of heart rate variability metrics and norms. Frontiers in Public Health, 5: 258, 2017. 1
[30] Zhan Tong, Yibing Song, Jue Wang, and Limin Wang. Videomae: Masked autoencoders are data-efficient learners for self-supervised video pre-training. In Advances in Neural Information Processing Systems, pages 10078–10093, 2022. 8
[31] Wim Verkruyssen, Lars O Svaasand, and J Stuart Nelson. Remote plethysmographic imaging using ambient light. Optics express, 16(26):21434–21445, 2008. 2
[32] Wenjin Wang, Albertus C Den Brinker, Sander Stuijk, and Gerard De Haan. Algorithmic principles of remote ppg. IEEE Transactions on Biomedical Engineering, 64(7):1479–1491, 2016. 2
[33] Zitong Yu, Xiaobai Li, and Guoying Zhao. Remote photoplethysmograph signal measurement from facial videos using spatio-temporal networks. arXiv preprint arXiv:1905.02419, 2019. 2, 4, 6
[34] Zitong Yu, Yuming Shen, Jingang Shi, Hengshuang Zhao, Philip HS Torr, and Guoying Zhao. Physformer: Facial video-based physiological measurement with temporal difference transformer. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4186–4196, 2022. 2, 4, 5
[35] Maxim Zaitsev, Julian Maclaren, and Michael Herbst. Motion artifacts in MRI: A complex problem with many partial solutions. Journal of Magnetic Resonance Imaging, 42(4): 887–901, 2015. 8
[36] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 13001–13008, 2020. 8
A. Data Collection and Screening Details
Acquisition hardware. The acquisition system records thermal video and contact respiration on a shared hardware time base. Thermal video is captured using a MAG62 thermal imaging camera (Magnity Electronics Co., Ltd.) with spatial resolution, 50 Hz frame rate, approximately 50 mK thermal sensitivity, and external trigger support. External triggering aligns each thermal frame with the contact respiration reference.
The contact respiration reference is recorded using a Respiration Pillow Sensor 9" (SAII), a noninvasive air bladder sensor for animal respiration monitoring. During breathing, abdominal motion induces small pressure changes inside the sealed bladder. These pressure changes are transmitted to the sensing unit and converted into a continuous analog voltage waveform.
During acquisition, the bladder is placed near the abdomen and secured with a medical elastic tubular bandage. The bandage maintains stable contact while avoiding excessive compression, allowing the sensor to measure respiratory motion without contacting the nasal or oral region.

(a) Respiration pillow sensor

(b) Elastic tubular bandage
Figure 5. Contact respiration reference hardware. The air bladder sensor converts abdominal respiratory motion into a pressure signal, while the elastic tubular bandage maintains stable contact during acquisition.

(a) Restraint apparatus
(b) Sensor components
Figure 6. Synchronized marmoset thermal respiration acquisition setup.
Subjects and sessions. The full collection contains 48 five minute sessions, corresponding to 240 minutes of synchronized thermal video and contact respiration from four male marmosets. The subjects are B4, B6, 200106, and ZJM, with approximate body weights of 438.7 g, 436.7 g, 433.2 g, and 395.7 g, respectively. Each recording session lasts 5 minutes, which balances thermal camera stabilization against behavioral disturbance caused by long restraint. The head-free condition contains 32 sessions (160 minutes), and the fixed-head condition contains 16 sessions (80 minutes). B4 and B6 were recorded under head-free conditions, while 200106 and ZJM were recorded under both fixed-head and head-free conditions.
Respiratory signal screening examples. Figure 7 shows representative examples from respiratory signal screening. This screening is applied to the contact reference signal before respiratory rate evaluation. Windows with severely corrupted respiratory signals are excluded because the reference rate is unreliable. Borderline windows are retained when motion causes waveform amplitude changes but the respiratory periodicity remains distinguishable.

(a) Excluded abnormal window

(b) Retained borderline window
Figure 7. Examples of respiratory signal screening.
B. Evaluation and Implementation Details
Post hoc oracle ROI search. The oracle ROI search supports the fixed-head ROI sensitivity analysis in Section 3. It is used only as a diagnostic analysis to test whether the error of a practical manual ROI is caused by weak thermal evidence or imperfect ROI placement.
Because head size, camera distance, and manual ROI scale vary across recordings, we normalize the search space by nostril distance (ND). The left and right nostril annotations define the nostril center and the distance . A candidate ROI is specified by a normalized center offset and normalized width and height:
Candidate boxes that extend outside the thermal frame are clipped to the valid image region.
The search uses a coarse to fine procedure. In the coarse stage, the center offsets are , and the width and height scales are . These candidates cover both small nostril adjacent regions and broader nasal regions. In the fine stage, we search around the best coarse candidate using center and scale perturbations of .
For every candidate ROI, we run the same frequency domain estimation pipeline used in the main evaluation. The ROI averaged thermal trace is detrended, normalized, filtered in the respiratory band, and converted to respiratory rate by the dominant spectral frequency. The oracle ROI is selected by minimizing respiratory rate error over retained fixed-head analysis windows:
This selection uses the contact reference error and is therefore not deployable. It is used only as an oracle upper bound for ROI frequency analysis.
To further examine scale sensitivity, we group candidate ROIs by ND normalized size and record the best result for each size. Table 6 shows that smaller local ROIs near the nostril region provide stronger respiratory frequency estimates, whereas larger ROIs dilute the respiratory signal with non respiratory pixels.
Table 6. ND normalized ROI scale sensitivity under fixed-head conditions.
| Size / ND | MAE ↓ | MAPE ↓ | ρ ↑ |
|---|---|---|---|
| 0.6 | 0.59 | 0.83% | 0.99 |
| 0.8 | 0.71 | 1.00% | 0.98 |
| 1.0 | 0.79 | 1.12% | 0.98 |
| 1.5 | 1.75 | 2.51% | 0.92 |
| 2.0 | 1.80 | 2.65% | 0.92 |
| 2.5 | 2.20 | 3.16% | 0.89 |
| 3.0 | 2.54 | 3.71% | 0.85 |
RR power map and ROI scale sensitivity. The RR power map in Figure 2 visualizes where respiratory-band thermal energy is concentrated. For each candidate ROI, we extract the mean thermal signal across pixels and compute its PSD within each analysis window. The signal is filtered to the respiratory range, normalized within the window, and converted to the frequency domain using a periodogram. We then integrate the PSD in a narrow band centered at the ground truth respiratory-rate frequency. This produces an RR-band power score for each candidate ROI. Mapping these scores back to the ROI locations yields the RR power map. Brighter regions indicate ROIs whose thermal fluctuations contain stronger respiratory frequency power.
We also quantify ND normalized scale sensitivity. For each ROI size, we search over candidate positions and record the best frequency estimation result at that scale.
Table 6 shows a clear trend. Smaller ROIs provide stronger respiratory estimates. The best scale in the searched range is 0.6 ND, with 0.59 bpm MAE, 0.83% MAPE, and Pearson . At 3.0 ND, MAE increases to 2.54 bpm and Pearson decreases to 0.85. This result supports the fixed-head conclusion: the marmoset thermal respiration cue is concentrated in a small nostril adjacent region, and broader ROIs dilute the periodic signal with non respiratory pixels.
ROI tracking and verified subset. The tracking analysis in Section 3 separates visual continuity from physiological validity. For head-free tracking experiments, KCF and CSRT are initialized from manually annotated respiratory ROIs and updated frame by frame. ROI availability measures whether the tracker returns a valid box, not whether the box contains a usable respiratory signal. It is defined as the fraction of frames in a 20 s window for which tracking succeeds:
In implementation, a frame is successful when the OpenCV tracker returns ok = 1 and the predicted bounding box lies within the valid image region. A window is counted as visually available when ROI availability is at least 95%. For the main tracking analysis, we use a ND bilateral nostril ROI because it covers both nostrils under small pose changes. We then manually inspect CSRT outputs and retain 141 windows in which the ROI consistently covers the nasal or perinasal region. This verified subset is used to show that visually plausible tracking still does not guarantee accurate respiratory-rate estimation.
Training details. All learned marmoset models use temporal signal supervision from the synchronized contact respiration signal. For each backbone, we follow the corre-sponding training objective, validation criterion, and implementation practice in rPPG-Toolbox [18]. Thermal frames are cropped to a fixed facial ROI before clip construction, following common video based physiological measurement preprocessing.
Unless otherwise specified, models are trained with AdamW for 20 epochs, batch size 16, and learning rate . All learned backbones use the same preprocessing, ROI crop, clip construction, respiratory rate estimation procedure, and evaluation code.
For individual-dependent cross-session evaluation, recording sessions are split so that training, validation, and test sets contain nonoverlapping sessions. The same individual marmoset may appear across splits, but clips from the same recording session never appear in more than one split. This prevents leakage at the clip or window level while evaluating within-individual generalization across recording sessions.
Synchronized videos are segmented into fixed length clips before training and evaluation. Each input clip contains 50 frames, corresponding to 2 s at the 25 fps training sampling rate, and the model output length is 50. Respiratory rate metrics are computed over 20 s analysis windows.
Table 7. Default training and evaluation configuration for the marmoset experiments.
| Config | Value |
|---|---|
| Backbones | TS-CAN, PhysNet, PhysFormer |
| Input modality | Cropped thermal facial clip |
| Training objective | Backbone specific objective following rPPG-Toolbox |
| Clip length | 2 s / 50 frames |
| Sampling rate | 25 fps |
| Input size | |
| Output length | 50 |
| Analysis window | 20 s / 500 frames |
| Batch size | 16 |
| Epochs | 20 |
| Learning rate | |
| Optimizer | AdamW |
| Motion mask per-centile | 0.90 |
| Imputed sample | 0.50 |
| probability | |
| Respiratory band | 0.80–2.50 Hz |
C. Supplementary Agreement Analysis
Figure 8 provides an additional agreement view for the STAR trained PhysNet model. The scatter plot compares predicted and reference respiratory rates across analysis windows. The Bland–Altman plot shows the signed error as a function of the average respiratory rate. Together, these plots complement the MAE, MAPE, and correlation metrics in the main text by showing the distribution of prediction errors.

(a) Scatter plot
(b) Bland–Altman plot
Figure 8. Supplementary agreement analysis for STAR with PhysNet.
D. Motion Stratification Analysis
The main head-free results aggregate windows with different motion levels. Here, we stratify the head-free windows by two complementary motion summaries: motion intensity and motion duration. Motion intensity captures short bursts of large thermal change, whereas motion duration measures how much of a window is affected by motion.
For motion intensity, we compute the adjacent frame difference sequence
The 95th percentile of within each window is used as the motion intensity score.
For motion duration, we threshold the framewise motion sequence and measure the fraction of frames in the window that exceed the motion threshold.

Figure 9. Motion intensity definition.
We compare ROI frequency analysis with learned respiratory signal recovery within these motion strata. Un-
Fixed-condition frame_diff distribution

Figure 10. Motion duration definition.
der motion intensity grouping, ROI frequency analysis degrades rapidly as short burst thermal motion increases. The learned model is also affected by motion, but maintains higher success rates, especially under the 3 bpm and 5 bpm thresholds.
Breathing-rate success rate by motion intensity

Figure 11. Motion intensity stratified success rates on head-free windows.
Under motion duration grouping, ROI frequency analysis also degrades as the fraction of motion affected frames increases. The learned model maintains higher success rates across duration bins.
Breathing-rate success rate by motion duration

Figure 12. Motion duration stratified success rates on head-free windows.
E. Additional Tracking Examples
These examples complement the tracking analysis in Section 3. They are included to make the failure mode visually inspectable. KCF and CSRT can differ in trajectory stability, and CSRT can maintain a plausible nasal box even when the ROI averaged signal no longer tracks respiration.

(a) Example 1

(b) Example 2
Figure 13. Additional KCF and CSRT tracking comparisons under head-free motion.
250919T101247_106free_w04 | CSRT tracking

Waveform

Spectrum

(a) Successful case
250915T120210_B4_w14 | CSRT tracking

Waveform

Spectrum

(b) Failure case
Figure 14. Additional examples of tracked ROI respiratory rate estimation under head-free motion. Visual ROI continuity is not sufficient to guarantee an accurate respiratory trace.