{"id":{"repo_id":"texas-state","oai_identifier":"oai:digital.library.txst.edu:10877/25176"},"canonical_url":"https://search.ndltd.org/etd/texas-state/oai:digital.library.txst.edu:10877/25176","repository":{"repo_id":"texas-state","name":"Texas State University","base_url":"https://digital.library.txst.edu/server/oai/request"},"display":{"title":"A Transformer-Based Perception and Analytics Framework for Cattle Behavior Analysis across Diverse Ranch Environments","abstract":"Cattle behavior provides important information about animal health and welfare. Visionbased monitoring systems provide a non-contact means of observing these behaviors at scale. However, most existing systems are designed for controlled settings and perform poorly when applied to new ranch environments. Variations in lighting, weather, camera viewpoint, and scene layout often lead to performance degradation. This thesis investigates whether a unified computer vision framework can support reliable cattle behavior analysis across diverse ranch conditions without environment-specific retraining. The proposed system integrates detection, instance segmentation, multi-object tracking, and temporal behavior recognition into a single perception pipeline. Transformer-based models are used where global spatial or temporal context is required, while the overall design remains modular and dataset-driven. Identity-preserved animal tracks are used to generate per-animal temporal sequences for behavior recognition. A knowledge distillation approach is used to train a lightweight segmentation student model from a large foundation model teacher, achieving real-time inference throughput on commodity hardware. A central contribution of this work is an explicit generalization and robustness evaluation layer. Performance is analyzed under both in-domain and out-of distribution conditions using cross-dataset testing and controlled environmental perturbations. Detection performance ranged from 73.0% Mean Average Precision (mAP)@50 on a visually similar outdoor dataset to 27.3% on an overhead-viewpoint indoor dataset, with camera angle identified as the dominant generalization factor. In-domain behavior classification achieved a macro-F1 of 0.777; cross-domain transfer without fine-tuning dropped to 0.172–0.225, establishing the empirical cost of environmental domain shift. Beyond behavior classification, the system produces behavior timelines and activity summaries for individual animals. These analytics provide ecologically coherent outputs: outdoor cattle allocated 49.2% of observed time to foraging, while indoor barn cattle allocated 52.6% to standing, consistent with the known behavioral differences between pasture and confinement environments. The proposed framework emphasizes measurement, interpretability, and practical relevance for long-term monitoring of cattle.","abstract_html":"Cattle behavior provides important information about animal health and welfare. Visionbased monitoring systems provide a non-contact means of observing these behaviors at scale. However, most existing systems are designed for controlled settings and perform poorly when applied to new ranch environments. Variations in lighting, weather, camera viewpoint, and scene layout often lead to performance degradation. This thesis investigates whether a unified computer vision framework can support reliable cattle behavior analysis across diverse ranch conditions without environment-specific retraining. The proposed system integrates detection, instance segmentation, multi-object tracking, and temporal behavior recognition into a single perception pipeline. Transformer-based models are used where global spatial or temporal context is required, while the overall design remains modular and dataset-driven. Identity-preserved animal tracks are used to generate per-animal temporal sequences for behavior recognition. A knowledge distillation approach is used to train a lightweight segmentation student model from a large foundation model teacher, achieving real-time inference throughput on commodity hardware. A central contribution of this work is an explicit generalization and robustness evaluation layer. Performance is analyzed under both in-domain and out-of distribution conditions using cross-dataset testing and controlled environmental perturbations. Detection performance ranged from 73.0% Mean Average Precision (mAP)@50 on a visually similar outdoor dataset to 27.3% on an overhead-viewpoint indoor dataset, with camera angle identified as the dominant generalization factor. In-domain behavior classification achieved a macro-F1 of 0.777; cross-domain transfer without fine-tuning dropped to 0.172–0.225, establishing the empirical cost of environmental domain shift. Beyond behavior classification, the system produces behavior timelines and activity summaries for individual animals. These analytics provide ecologically coherent outputs: outdoor cattle allocated 49.2% of observed time to foraging, while indoor barn cattle allocated 52.6% to standing, consistent with the known behavioral differences between pasture and confinement environments. The proposed framework emphasizes measurement, interpretability, and practical relevance for long-term monitoring of cattle.","abstract_has_math":false,"creators":["Khan, Md Sakif Uddin"],"institution":"Texas State University","degree_name":"Master of Science","degree_level":"Masters","degree_discipline":"Engineering","degree_department":"Engineering","school":null,"contributors":[],"advisors":["Valles Molina, Damian"],"committee_chairs":[],"committee_members":["Asiabanpour, Bahram","Drewery, Merritt L."],"year":2026,"date_issued":"2026-08","date_published":"2026-08","updated_at":"2026-11-20T16:09:24Z","subjects":["cattle behavior recognition","computer vision","precision livestock farming","vision transformers","instance segmentation","multi-object tracking","knowledge distillation","domain generalization"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Khan, M. S. U. (2026). A transformer-based perception and analytics framework for cattle behavior analysis across diverse ranch environments. [Master's thesis, Texas State University]."],"render_values":[{"text":"Khan, M. S. U. (2026). A transformer-based perception and analytics framework for cattle behavior analysis across diverse ranch environments. [Master's thesis, Texas State University].","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10877/25176","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10877/25176","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Atexas-state%3Aoai%3Adigital.library.txst.edu%3A10877%2F25176","prefix":"oai_dc"},"source_record":{"url":"https://digital.library.txst.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adigital.library.txst.edu%3A10877%2F25176","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Valles Molina, Damian"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Asiabanpour, Bahram","Drewery, Merritt L."]},{"key":"dc:contributor.department","label":"Department","values":["Engineering"]},{"key":"dc:creator","label":"Author","values":["Khan, Md Sakif Uddin"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-07-28T15:06:14Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-08"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_department","label":"Department","values":["Engineering"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Texas State University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["cattle behavior recognition","computer vision","precision livestock farming","vision transformers","instance segmentation","multi-object tracking","knowledge distillation","domain generalization"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Khan, M. S. U. (2026). A transformer-based perception and analytics framework for cattle behavior analysis across diverse ranch environments. [Master's thesis, Texas State University]."]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10877/25176"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Cattle behavior provides important information about animal health and welfare. Visionbased monitoring systems provide a non-contact means of observing these behaviors at scale. However, most existing systems are designed for controlled settings and perform poorly when applied to new ranch environments. Variations in lighting, weather, camera viewpoint, and scene layout often lead to performance degradation. This thesis investigates whether a unified computer vision framework can support reliable cattle behavior analysis across diverse ranch conditions without environment-specific retraining. The proposed system integrates detection, instance segmentation, multi-object tracking, and temporal behavior recognition into a single perception pipeline. Transformer-based models are used where global spatial or temporal context is required, while the overall design remains modular and dataset-driven. Identity-preserved animal tracks are used to generate per-animal temporal sequences for behavior recognition. A knowledge distillation approach is used to train a lightweight segmentation student model from a large foundation model teacher, achieving real-time inference throughput on commodity hardware. A central contribution of this work is an explicit generalization and robustness evaluation layer. Performance is analyzed under both in-domain and out-of distribution conditions using cross-dataset testing and controlled environmental perturbations. Detection performance ranged from 73.0% Mean Average Precision (mAP)@50 on a visually similar outdoor dataset to 27.3% on an overhead-viewpoint indoor dataset, with camera angle identified as the dominant generalization factor. In-domain behavior classification achieved a macro-F1 of 0.777; cross-domain transfer without fine-tuning dropped to 0.172–0.225, establishing the empirical cost of environmental domain shift. Beyond behavior classification, the system produces behavior timelines and activity summaries for individual animals. These analytics provide ecologically coherent outputs: outdoor cattle allocated 49.2% of observed time to foraging, while indoor barn cattle allocated 52.6% to standing, consistent with the known behavioral differences between pasture and confinement environments. The proposed framework emphasizes measurement, interpretability, and practical relevance for long-term monitoring of cattle."]},{"key":"dc:embargo.terms","label":"Dc Embargo Terms","values":["This thesis is under a 2-year embargo. The full-text (PDF) will be made available August 2028."]},{"key":"dc:format","label":"Dc Format","values":["Text"]},{"key":"dc:format.extent","label":"Dc Format Extent","values":["106 pages"]},{"key":"dc:format.medium","label":"Dc Format Medium","values":["1 file (.pdf)"]},{"key":"dc:title","label":"Title","values":["A Transformer-Based Perception and Analytics Framework for Cattle Behavior Analysis across Diverse Ranch Environments"]},{"key":"others:access_status","label":"Others Access Status","values":["embargo"]}]}],"canonical_facts":{"dc:contributor.advisor":["Valles Molina, Damian"],"dc:contributor.committeemember":["Asiabanpour, Bahram","Drewery, Merritt L."],"dc:contributor.department":["Engineering"],"dc:creator":["Khan, Md Sakif Uddin"],"dc:date.accessioned":["2026-07-28T15:06:14Z"],"dc:date.issued":["2026-08"],"dc:description.abstract":["Cattle behavior provides important information about animal health and welfare. Visionbased monitoring systems provide a non-contact means of observing these behaviors at scale. However, most existing systems are designed for controlled settings and perform poorly when applied to new ranch environments. Variations in lighting, weather, camera viewpoint, and scene layout often lead to performance degradation. This thesis investigates whether a unified computer vision framework can support reliable cattle behavior analysis across diverse ranch conditions without environment-specific retraining. The proposed system integrates detection, instance segmentation, multi-object tracking, and temporal behavior recognition into a single perception pipeline. Transformer-based models are used where global spatial or temporal context is required, while the overall design remains modular and dataset-driven. Identity-preserved animal tracks are used to generate per-animal temporal sequences for behavior recognition. A knowledge distillation approach is used to train a lightweight segmentation student model from a large foundation model teacher, achieving real-time inference throughput on commodity hardware. A central contribution of this work is an explicit generalization and robustness evaluation layer. Performance is analyzed under both in-domain and out-of distribution conditions using cross-dataset testing and controlled environmental perturbations. Detection performance ranged from 73.0% Mean Average Precision (mAP)@50 on a visually similar outdoor dataset to 27.3% on an overhead-viewpoint indoor dataset, with camera angle identified as the dominant generalization factor. In-domain behavior classification achieved a macro-F1 of 0.777; cross-domain transfer without fine-tuning dropped to 0.172–0.225, establishing the empirical cost of environmental domain shift. Beyond behavior classification, the system produces behavior timelines and activity summaries for individual animals. These analytics provide ecologically coherent outputs: outdoor cattle allocated 49.2% of observed time to foraging, while indoor barn cattle allocated 52.6% to standing, consistent with the known behavioral differences between pasture and confinement environments. The proposed framework emphasizes measurement, interpretability, and practical relevance for long-term monitoring of cattle."],"dc:embargo.terms":["This thesis is under a 2-year embargo. The full-text (PDF) will be made available August 2028."],"dc:format":["Text"],"dc:format.extent":["106 pages"],"dc:format.medium":["1 file (.pdf)"],"dc:identifier.citation":["Khan, M. S. U. (2026). A transformer-based perception and analytics framework for cattle behavior analysis across diverse ranch environments. [Master's thesis, Texas State University]."],"dc:identifier.uri":["https://hdl.handle.net/10877/25176"],"dc:language.iso":["en"],"dc:subject":["cattle behavior recognition","computer vision","precision livestock farming","vision transformers","instance segmentation","multi-object tracking","knowledge distillation","domain generalization"],"dc:title":["A Transformer-Based Perception and Analytics Framework for Cattle Behavior Analysis across Diverse Ranch Environments"],"dc:type":["Thesis"],"others:access_status":["embargo"],"thesis:degree_department":["Engineering"],"thesis:degree_discipline":["Engineering"],"thesis:degree_level":["Masters"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["Texas State University"]},"updated_at":"2026-11-20T16:09:24Z"}