Back to search

Texas State University

Development of a Wearable Sensor Unit for Cattle Behavior Prediction using Machine Learning

Abstract

dc:description.abstract

This thesis presents the design, development, and evaluation of a low-power, field-deployable wearable collar system for real-time cattle behavior monitoring, aimed at enabling autonomous livestock management. The system integrates a custom-designed PCB featuring a 6-axis IMU, GNSS receiver, Bluetooth/Wi-Fi connectivity, and onboard microSD storage. These components are housed within a rugged, waterproof clamshell enclosure optimized for long-term operation in pasture environments. The collar transmits sensor data wirelessly to a local edge server or autonomous agricultural rover, enabling real-time telemetry and intelligent decision-making. Field trials conducted on a steer at Freeman Center, Texas yielded multi-modal time-series data, which were labeled via synchronized video recordings and used to train both classical (Random Forest, XGBoost) and deep learning models (CNN, BiLSTM, CNN–BiLSTM) for behavior classification across four categories: grazing, walking, resting, and other. The Random Forest model achieved the highest overall accuracy (86.2%, macro F1 ≈ 0.691), while the CNN–BiLSTM model, trained with weighted focal loss, demonstrated improved recall for underrepresented classes (82.3% accuracy, macro F1 ≈ 0.612). Given its performance and computational efficiency, the Random Forest model was selected for deployment on a local FastAPI server. This work demonstrates a scalable system for continuous cattle monitoring and establishes a foundation for integrating machine learning and autonomous robotics in precision livestock farming.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Engineering
Department thesis:degree_department
Engineering
Grantor
Texas State University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ahmed, Tanvir
Advisor dc:contributor.advisor
  • Chen, Heping
Committee members dc:contributor.committeemember
  • Asiabanpour, Bahram
  • Valles Molina, Damian
  • Drewery, Merritt

Subjects

dc:subject × 9

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
Ahmed, T. (2025). Development of a wearable sensor unit for cattle behavior prediction using machine learning. [Master's thesis, Texas State University].

Chain of custody

source
Harvested from
Texas State University
Base URL
digital.library.txst.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

Ahmed, Tanvir. Development of a Wearable Sensor Unit for Cattle Behavior Prediction using Machine Learning. Masters thesis, Texas State University, 2025. https://hdl.handle.net/10877/23091