cs.CVMar 27, 2026

TRACE: Thermal Recognition Attentive-Framework for CO2 Emissions from Livestock

Authors: Taminul Islam, Abdellah Lakhssassi, Toqi Tahamid Sarker, Mohamed Embaby, Khaled R Ahmed, Amer AbuGhazaleh

Organizations: Southern Illinois University, Carbondale · University of California, Davis

Abstract

Quantifying exhaled CO2 from free-roaming cattle is both a direct indicator of rumen metabolic state and a prerequisite for farm-scale carbon accounting, yet no existing system can deliver continuous, spatially resolved measurements without physical confinement or contact. We present TRACE (Thermal Recognition Attentive-Framework for CO2 Emissions from Livestock), the first unified framework to jointly address per-frame CO2 plume segmentation and clip-level emission flux classification from mid-wave infrared (MWIR) thermal video. TRACE contributes three domain-specific advances: a Thermal Gas-Aware Attention (TGAA) encoder that incorporates per-pixel gas intensity as a spatial supervisory signal to direct self-attention toward high-emission regions at each encoder stage; an Attention-based Temporal Fusion (ATF) module that captures breath-cycle dynamics through structured cross-frame attention for sequence-level flux classification; and a four-stage progressive training curriculum that couples both objectives while preventing gradient interference. Benchmarked against fifteen state-of-the-art models on the CO2 Farm Thermal Gas Dataset, TRACE achieves an mIoU of 0.998 and the best result on every segmentation and classification metric simultaneously, outperforming domain-specific gas segmenters with several times more parameters and surpassing all baselines in flux classification. Ablation studies confirm that each component is individually essential: gas-conditioned attention alone determines precise plume boundary localization, and temporal reasoning is indispensable for flux-level discrimination. TRACE establishes a practical path toward non-invasive, continuous, per-animal CO2 monitoring from overhead thermal cameras at commercial scale. Codes are available at https://github.com/taminulislam/trace.

Figures & tables

Explore similar work

CardsList
  1. CowCare: A Unified Visual Framework for Viewpoint-Robust Cattle Tracking and Spatiotemporal Heat-Stress Analysis

    Oct 10, 2026Xin Liu, Weiran Li, Minghao Zhu +2Precision Livestock FarmingAgricultural Image Analysis

  2. Fully Automatic Trace Gas Plume Detection

    May 5, 2026Vít Růžička, David R. Thompson, Jay E. Fahlen +13Remote Sensing

  3. PuTR-CouT: Counting-by-Tracking in Camera-Trap Image Sequences

    Sep 4, 2026Fagner Cunha, Juan G. Colonna, Eulanda M. dos SantosObject CountingWildlife Monitoring