IoT-Based Multi-Sensor Fusion for Goat Behavioral Pattern Recognition Using K-Means Clustering in a Smart Farming Environment

Authors

  • Yudhistira Pratama Universitas Sumatera Utara
  • Normalina Napitupulu Universitas Sumatera Utara
  • Zulhamsyah Fachrurrazi Nasution Universitas Sumatera Utara
  • Adli Abdillah Nababan Universitas Bina Nusantara

DOI:

https://doi.org/10.55927/fjcis.v5i1.16599

Keywords:

IoT, Sensor Fusion, K-Means Clustering, Goat Behavior, Data Cleaning

Abstract

Monitoring goat behavior in commercial farms typically relies on direct observation, which does not scale and misses conditions that develop gradually. This study deployed an eight-sensor IoT network across two zones of a slatted-floor goat pen in North Sumatra, Indonesia, and applied K-Means clustering to 49 days of sensor data. After a systematic data cleaning step that removed sensor dropouts, ADC saturation events, and an isolated methane spike, 213,704 records were retained (98.6% of raw data). K-Means with K=8 on the cleaned dataset yielded a Silhouette Score of 0.297 and Davies-Bouldin Index of 1.177, identifying eight behavioral and environmental states without a dedicated anomaly cluster. Results include two heat stress levels (THI means 90.7 and 92.1), three nocturnal resting states differentiated by waste pit gas concentration, a daytime active-vocal state, and an evening post-feeding fermentation peak.

Downloads

Download data is not yet available.

References

Amon, B., Dragoni, F., Levati, E., Misselbrook, T., Provolo, G., & Ravarotto, L. (2023). Ammonia and greenhouse gas emissions from livestock housing: Review of measurement and monitoring techniques. Science of the Total Environment, 869, 161688.

Berckmans, D. (2014). Precision livestock farming technologies for welfare management in intensive livestock systems. Revue Scientifique et Technique, 33(1), 189-196.

BPS. (2023). Statistik Peternakan dan Kesehatan Hewan 2023. Direktorat Jenderal Peternakan dan Kesehatan Hewan, Kementerian Pertanian Republik Indonesia.

Groot Koerkamp, P. W. G., Metz, J. H. M., Uenk, G. H., Phillips, V. R., Holden, M. R., & Wathes, C. M. (1998). Concentrations and emissions of ammonia in livestock buildings in Northern Europe. Journal of Agricultural Engineering Research, 70(1), 79-95.

Islam, M. S., Garcia, S. C., Clark, C. E. F., & Kerrisk, K. L. (2021). Heat stress in dairy goats in a hot and humid climate: A review. Animals, 11(1), 78.

Neethirajan, S., & Kemp, B. (2021). Digital livestock farming. Sensing and Bio-Sensing Research, 32, 100408.

Peng, Y., Kondo, N., Fujiura, T., Suzuki, T., Yoshioka, H., & Itoyama, E. (2021). Behavior classification of group-housed goats using acceleration data and a machine learning algorithm. Biosystems Engineering, 211, 36-45.

Riaboff, L., Shalloo, L., Smeaton, A. F., Couvreur, S., Madouasse, A., & Keane, M. T. (2022). Predicting livestock behaviour using accelerometers: A systematic review of processing techniques for ruminant behaviour prediction from raw accelerometer data. Computers and Electronics in Agriculture, 192, 106610.

Rousseeuw, P. J. (1987). Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. Journal of Computational and Applied Mathematics, 20, 53-65.

Sejian, V., Bhatta, R., Gaughan, J. B., Malik, P. K., Naqvi, S. M. K., & Lal, R. (2021). Review: Livestock metabolic adaptations to heat stress in a changing climate. Animal, 15(7), 100344.

Stygar, A. H., Gomez, Y., Berteselli, G. V., Dalla Costa, E., Canali, E., Niemi, J. K., Llonch, P., & Pastell, M. (2021). A systematic review on commercially available and validated sensor technologies for welfare assessment of dairy cattle. Frontiers in Veterinary Science, 8, 634338.

Tullo, E., Finzi, A., & Guarino, M. (2019). Environmental impact of livestock farming and precision livestock farming as a mitigation strategy. Science of the Total Environment, 650, 2751-2760.

Zhao, K., Bewley, J. M., He, D., & Jin, X. (2023). Precision livestock farming: Applications in goat production — a review. Frontiers in Veterinary Science, 10, 1101083.

Zhuang, X., Bi, M., Guo, J., Wu, S., & Zhang, T. (2022). Development of an early warning algorithm to detect sick broilers. Computers and Electronics in Agriculture, 144, 102-113.

Published

2026-03-30

How to Cite

Pratama, Y., Napitupulu, N., Nasution, Z. F., & Nababan, A. A. (2026). IoT-Based Multi-Sensor Fusion for Goat Behavioral Pattern Recognition Using K-Means Clustering in a Smart Farming Environment. Formosa Journal of Computer and Information Science, 5(1), 99–110. https://doi.org/10.55927/fjcis.v5i1.16599

Issue

Section

Articles