GasTwinFormer: A Hybrid Vision Transformer for Livestock Methane Emission Segmentation and Dietary Classification in Optical Gas Imaging
Toqi Tahamid Sarker, Mohamed Embaby, Taminul Islam, Amer AbuGhazaleh, Khaled R Ahmed

TL;DR
GasTwinFormer is a novel hybrid vision transformer that enables real-time methane emission segmentation and dietary classification in livestock using optical gas imaging, with high accuracy and efficiency.
Contribution
It introduces a new hybrid transformer architecture with a Mix Twin encoder and a lightweight decoder, along with a comprehensive beef cattle methane emission dataset.
Findings
Achieves 74.47% mIoU and 83.63% mF1 in segmentation.
Attains 100% accuracy in dietary classification.
Operates at 114.9 FPS with only 3.348M parameters.
Abstract
Livestock methane emissions represent 32% of human-caused methane production, making automated monitoring critical for climate mitigation strategies. We introduce GasTwinFormer, a hybrid vision transformer for real-time methane emission segmentation and dietary classification in optical gas imaging through a novel Mix Twin encoder alternating between spatially-reduced global attention and locally-grouped attention mechanisms. Our architecture incorporates a lightweight LR-ASPP decoder for multi-scale feature aggregation and enables simultaneous methane segmentation and dietary classification in a unified framework. We contribute the first comprehensive beef cattle methane emission dataset using OGI, containing 11,694 annotated frames across three dietary treatments. GasTwinFormer achieves 74.47% mIoU and 83.63% mF1 for segmentation while maintaining exceptional efficiency with only…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAtmospheric and Environmental Gas Dynamics · Spectroscopy and Laser Applications · Advanced Chemical Sensor Technologies
