IoT-Based Multi-Sensor Fusion for Goat Behavioral Pattern Recognition Using K-Means Clustering in a Smart Farming Environment
DOI:
https://doi.org/10.55927/fjcis.v5i1.16599Keywords:
IoT, Sensor Fusion, K-Means Clustering, Goat Behavior, Data CleaningAbstract
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
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.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Yudhistira Pratama, Normalina Napitupulu, Zulhamsyah Fachrurrazi Nasution, Adli Abdillah Nababan

This work is licensed under a Creative Commons Attribution 4.0 International License.



































