An IoT-Enabled Smart System Utilizing Linear Regression for Sheep Growth and Health Monitoring
Abstract
The global livestock industry faces significant pressures from climate change, land constraints, and rising consumer demand, necessitating greater efficiency and sustainability in production. To address these challenges, there is a critical need for accessible, data-driven tools; however, accessible and individualized tools for monitoring the growth and health of livestock like sheep remain underdeveloped, limiting farmers' ability to transition from reactive to proactive management. This study developed and validated an Internet of Things (IoT) smart system for monitoring sheep using an Arduino and ESP32 platform equipped with a DHT22 sensor for temperature and humidity and a load cell for weight. Weekly weight data from 15 sheep were collected over a six-month period. Simple linear regression was then applied to model the individual growth trajectory of each animal. The IoT system was successfully implemented and deployed in a farm setting. The primary finding was that individualized linear regression models provided a highly accurate method for tracking sheep growth, with R² values consistently exceeding 99% for most animals. The system effectively delivered real-time reports on growth trajectories and health-relevant environmental conditions (e.g., temperature and humidity) to a smartphone interface, confirming its practical utility. The primary implication of this research is a validated framework for practical and interpretable precision livestock farming. The system empowers farmers to shift from reactive to proactive management by using individualized growth curves as baselines for early problem detection. This dual-function system enhances productivity through precise growth tracking while supporting animal welfare via environmental monitoring, offering a valuable tool for modern, sustainable sheep farming.
Keywords
Full Text:
PDFReferences
Y. T. Bahta and V. A. Myeki, “The Impact of Agricultural Drought on Smallholder Livestock Farmers: Empirical Evidence Insights From Northern Cape, South Africa,” Agriculture, 2022, doi: 10.3390/agriculture12040442.
Y. B. Ngoshe, É. Etter, J. P. Gómez-Vázquez, and P. N. Thompson, “Knowledge, Attitudes, and Practices of Communal Livestock Farmers Regarding Animal Health and Zoonoses in Far Northern KwaZulu-Natal, South Africa,” Int. J. Environ. Res. Public. Health, 2022, doi: 10.3390/ijerph20010511.
G. Koutouzidou, A. Ragkos, and K. Melfou, “Evolution of the Structure and Economic Management of the Dairy Cow Sector,” Sustainability, 2022, doi: 10.3390/su141811602.
W. Ahmed et al., “Harnessing Wastewater Surveillance to Detect Livestock-Linked Viruses,” 2023, doi: 10.20944/preprints202309.1616.v1.
K. M. Rich, D. Enahoro, S. T. Bahta, C. Mensah, and S. Oloo, “Current and Future Trade in Livestock Products,” Rev. Sci. Tech. Oie, 2021, doi: 10.20506/rst.40.2.3232.
Z. Du et al., “Silage Preparation and Sustainable Livestock Production of Natural Woody Plant,” Front. Plant Sci., 2023, doi: 10.3389/fpls.2023.1253178.
D. Rovai, S. Amin, R. Lesniauskas, K. Wilke, J. Garza, and A. Lammert, “Are Early Adopters Willing to Accept Frozen, ready‐to‐cook Mealworms as a Food Source?,” J. Sens. Stud., 2022, doi: 10.1111/joss.12774.
Y. Shvets, D. Morkovkin, M. Basova, A. Yashchenko, and T. Petrusevich, “Robotics in Agriculture: Advanced Technologies in Livestock Farming and Crop Cultivation,” E3s Web Conf., 2024, doi: 10.1051/e3sconf/202448003024.
A. Cogato, M. Brščić, H. Guo, F. Marinello, and A. Pezzuolo, “Challenges and Tendencies of Automatic Milking Systems (AMS): A 20-Years Systematic Review of Literature and Patents,” Animals, 2021, doi: 10.3390/ani11020356.
J. M. Moorby and M. D. Fraser, “Review: New Feeds and New Feeding Systems in Intensive and Semi-Intensive Forage-Fed Ruminant Livestock Systems,” Animal, 2021, doi: 10.1016/j.animal.2021.100297.
M. J. N. Han and M. J. Kim, “A critical review of the smart city in relation to citizen adoption towards sustainable smart living,” Habitat Int., vol. 108, p. 102312, 2021.
Y. Kalyani and R. Collier, “A Systematic Survey on the Role of Cloud, Fog, and Edge Computing Combination in Smart Agriculture,” Sensors, 2021, doi: 10.3390/s21175922.
M. O. Ojo, I. Viola, S. Miretti, E. Martignani, S. Giordano, and M. Baratta, “A Deep Learning Approach for Accurate Path Loss Prediction in LoRaWAN Livestock Monitoring,” Sensors, 2024, doi: 10.3390/s24102991.
M. O. Ojo, I. Viola, M. Baratta, and S. Giordano, “Practical Experiences of a Smart Livestock Location Monitoring System Leveraging GNSS, LoRaWAN and Cloud Services,” Sensors, 2021, doi: 10.3390/s22010273.
S. Efendi, F. Nurahmadi, and P. I. Nainggolan, “The Role of Recurrent Convolutional Neural Network in IoT for Building a Security Artificial Intelligence and Home Assistance System,” Int. J. Saf. Secur. Eng., vol. 13, no. 3, pp. 403–408, 2023, doi: 10.18280/ijsse.130303.
A. Khalifeh et al., “Wireless sensor networks for smart cities: Network design, implementation and performance evaluation,” Electronics, vol. 10, no. 2, p. 218, 2021, doi: 10.3390/electronics10020218.
M. Z. Chowdhury, M. Shahjalal, M. K. Hasan, and Y. M. Jang, “The role of optical wireless communication technologies in 5G/6G and IoT solutions: Prospects, directions, and challenges,” Appl. Sci., vol. 9, no. 20, p. 4367, 2019, doi: 10.3390/app9204367.
L. Chettri and R. Bera, “A comprehensive survey on Internet of Things (IoT) toward 5G wireless systems,” IEEE Internet Things J., vol. 7, no. 1, pp. 16–32, 2019, doi: 10.1109/JIOT.2019.2948888.
Z. Li, X. Yang, Y. Chen, and J. Zhang, “Application of Wireless Communication in Intelligent Distribution Network Communication Technology,” in 2021 International Wireless Communications and Mobile Computing (IWCMC), 2021, pp. 1879–1883. doi: 10.1109/IWCMC51323.2021.9498881.
C. Aquilani, A. Confessore, R. Bozzi, F. Sirtori, and C. Pugliese, “Precision Livestock Farming technologies in pasture-based livestock systems,” Animal, vol. 16, no. 1, p. 100429, 2022, doi: 10.1016/j.animal.2021.100429.
C.-S. Chen and W.-C. Chen, “Research and development of automatic monitoring system for livestock farms,” Appl. Sci., vol. 9, no. 6, p. 1132, 2019, doi: 10.3390/app9061132.
H. K. Sharma, J. C. Patni, P. Ahlawat, and S. S. Biswas, “Sensors based smart healthcare framework using internet of things (IoT),” Int J Sci Technol Res, vol. 9, no. 2, pp. 1228–1234, 2020.
H. S. Bhaskaran, M. Gordon, and S. Neethirajan, “Development of a Cloud-Based IoT System for Livestock Health Monitoring Using AWS and Python,” 2024, doi: 10.1101/2024.06.08.598087.
A. Chairunnas and A. P. Putra, “Optimization of Livestock Monitoring System in Outdoor Based on Internet of Things (Iot),” Jitk J. Ilmu Pengetah. Dan Teknol. Komput., 2024, doi: 10.33480/jitk.v9i2.5312.
D. K. Nguyen and N. T. Sơn, “Developing an Iot System to Alert Heat-Stress for Livestock,” Tra Vinh Univ. J. Sci., 2023, doi: 10.35382/tvujs.13.6.2023.2106.
N. A. Kopawar and K. G. Wankhede, “Internet of Things in Agriculture : A Review,” Int. J. Sci. Res. Sci. Eng. Technol., 2024, doi: 10.32628/ijsrset2411215.
Y. Qiao et al., “Intelligent Perception-Based Cattle Lameness Detection and Behaviour Recognition: A Review,” Animals, 2021, doi: 10.3390/ani11113033.
A. Hamadani and N. A. Ganai, “Development of a Multi-Use Decision Support System for Scientific Management and Breeding of Sheep,” Sci. Rep., 2022, doi: 10.1038/s41598-022-24091-y.
I. Pavlovic et al., “Control of Coccidiosis of Farm Breeding Sheep,” SPJVS, 2023, doi: 10.61900/spjvs.2023.01.15.
K. Vijayalakshmy, “Impact of Climate Change on Small Ruminants Production: A Review,” Approaches Poult. Dairy Vet. Sci., 2021, doi: 10.31031/apdv.2021.08.000680.
R. Priyadharsini and R. Kanimozhi, “A Hybrid Solar Photovoltaic and Wind Turbine Power Generation for Stand-Alone System with IoT-Based Monitoring and MPPT Control,” Electr. Power Compon. Syst., pp. 1–19, 2023.
A. K. Nalendra, H. Priyawaspada, M. N. Fuad, M. Mujiono, and D. Wahyudi, “Monitoring System IoT-Broiler Chicken Cage Effectiveness of Seeing Reactions from Chickens,” in Journal of Physics: Conference Series, IOP Publishing, 2021, p. 12097.
T. Norton, C. Chen, M. L. Larsen, and D. Berckmans, “Precision livestock farming: Building ‘digital representations’ to bring the animals closer to the farmer,” Animal, vol. 13, no. 12, pp. 3009–3017, 2019, doi: 10.1017/S175173111900199X.
M. K. Obaid, B. Sh. Z. Abood, W. K. Alazzai, and L. Jasim, “From Field to Fork: The Role of AI and IoT in Agriculture,” E3s Web Conf., 2024, doi: 10.1051/e3sconf/202449102006.
A. H. Abdul Hussein, K. A. Jabbar, A. Mohammed, and L. Jasim, “Harvesting the Future: AI and IoT in Agriculture,” E3s Web Conf., 2024, doi: 10.1051/e3sconf/202447700090.
N. S. Abu et al., “Internet of Things Applications in Precision Agriculture: A Review,” J. Robot. Control Jrc, 2022, doi: 10.18196/jrc.v3i3.14159.
M. A. Ahmed et al., “LoRa Based IoT Platform for Remote Monitoring of Large-Scale Agriculture Farms in Chile,” Sensors, 2022, doi: 10.3390/s22082824.
N. Hamini and M. Yagoubi, “Round Robin MQTT-based Routing Algorithm for Agricultural IoT Network: Communication Optimization Between Sensors, Actuators and Brokers,” 2024, doi: 10.21203/rs.3.rs-3833170/v1.
S. Dimitrov, T. Stoilov, and K. Stoilova, “Intelligent Analysis of Active Management of Animal Husbandry,” SHS Web Conf., 2021, doi: 10.1051/shsconf/202112003005.
H. K. Adli et al., “Recent Advancements and Challenges of AIoT Application in Smart Agriculture: A Review,” Sensors, 2023, doi: 10.3390/s23073752.
E. M. B. Karunathilake, A. T. Le, S. Heo, Y. S. Chung, and S. Mansoor, “The Path to Smart Farming: Innovations and Opportunities in Precision Agriculture,” Agriculture, 2023, doi: 10.3390/agriculture13081593.
A. Rezaeipanah, “An IoT Fast and Low Cost Based Smart Irrigation Intelligent System Using a Fuzzy Energy-Aware Routing Approach,” 2021, doi: 10.21203/rs.3.rs-685815/v1.
N. N. Misra, Y. Dixit, A. Al-Mallahi, M. Bhullar, R. Upadhyay, and A. Martynenko, “IoT, Big Data, and Artificial Intelligence in Agriculture and Food Industry,” Ieee Internet Things J., 2022, doi: 10.1109/jiot.2020.2998584.
S. A. Bhat and N.-F. Huang, “Big Data and AI Revolution in Precision Agriculture: Survey and Challenges,” Ieee Access, 2021, doi: 10.1109/access.2021.3102227.
A. M. Wahid, T. Hariguna, and G. Karyono, “Optimization of Recommender Systems for Image-Based Website Themes Using Transfer Learning,” J. Appl. Data Sci., vol. 6, no. 2, Art. no. 2, Mar. 2025, doi: 10.47738/jads.v6i2.671.
M. Aldossary, H. A. Alharbi, and C. A. ul Hassan, “Internet of Things (IoT)-Enabled Machine Learning Models for Efficient Monitoring of Smart Agriculture,” Ieee Access, 2024, doi: 10.1109/access.2024.3404651.
K. R. Ananda et al., “Impact of Mobile Technology on Extension Service Delivery in Remote Farming Communities: A Review,” J. Sci. Res. Rep., 2024, doi: 10.9734/jsrr/2024/v30i31853.
A. M. Wahid, T. Hariguna, and G. Karyono, “Optimizing Feature Extraction for Website Visuals: A Comparative Study of AlexNet and Inception V3,” in 2024 12th International Conference on Cyber and IT Service Management (CITSM), Oct. 2024, pp. 1–6. doi: 10.1109/CITSM64103.2024.10775681.
R. Alharbey, A. Shafiq, A. Daud, H. Dawood, A. Bukhari, and B. Alshemaimri, “Digital Twin Technology for Enhanced Smart Grid Performance: Integrating Sustainability, Security, and Efficiency,” Front. Energy Res., 2024, doi: 10.3389/fenrg.2024.1397748.
I. Dbibih, “An Efficient Algorithm for End-to-End Latency Optimization Over IEEE 802.15.4 Wireless Network for IoT Applications,” Int. J. Intell. Eng. Syst., 2021, doi: 10.22266/ijies2021.1031.30.
W. Xu and N. Xie, “IEC61850 Sample-Value Service Based on Reduced Application Service Data Unit for Energy IOT,” 2022, doi: 10.48550/arxiv.2202.07394.
S. Khizar, N. Zine, N. Jaffrézic‐Renault, A. Elaı̈ssari, and A. Errachid, “Prospective Analytical Role of Sensors for Environmental Screening and Monitoring,” Trac Trends Anal. Chem., 2022, doi: 10.1016/j.trac.2022.116751.
D. Tonelli et al., “Interpretation of Bridge Health Monitoring Data From Satellite InSAR Technology,” Remote Sens., 2023, doi: 10.3390/rs15215242.
A. M. Wahid, T. Turino, K. A. Nugroho, T. S. Maharani, D. Darmono, and F. S. Utomo, “Optimasi Logistic Regression dan Random Forest untuk Deteksi Berita Hoax Berbasis TF-IDF,” J. Pendidik. Dan Teknol. Indones., vol. 4, no. 8, Art. no. 8, 2024, doi: 10.52436/1.jpti.602.
M. Reyneke, B. Mullins, and M. Reith, “LoRaWAN &Amp; The Helium Blockchain: A Study on Military IoT Deployment,” Int. Conf. Cyber Warf. Secur., 2023, doi: 10.34190/iccws.18.1.944.
R. Roges, “Communication Protocols for Smart Sensors in IoT Applications,” Int. J. Intell. Commun. Comput. Netw., 2021, doi: 10.51735/ijiccn/001/13.
M. F. Bado and J. R. Casas, “A Review of Recent Distributed Optical Fiber Sensors Applications for Civil Engineering Structural Health Monitoring,” Sensors, 2021, doi: 10.3390/s21051818.
H. Noh, Y. S. Park, and I. W. Seo, “A Novel Efficient Method of Estimating Suspended‐To‐Total Sediment Load Fraction in Natural Rivers,” Water Resour. Res., 2023, doi: 10.1029/2022wr034401.
P. F. Giordano, S. Quqa, and M. P. Limongelli, “The Value of Monitoring a Structural Health Monitoring System,” Struct. Saf., 2023, doi: 10.1016/j.strusafe.2022.102280.
Y. Deng, H. Ju, W. Zhai, A. Li, and Y. Ding, “Correlation Model of Deflection, Vehicle Load, and Temperature for In‐service Bridge Using Deep Learning and Structural Health Monitoring,” Struct. Control Health Monit., 2022, doi: 10.1002/stc.3113.
M. S. Farooq, O. O. Sohail, A. Abid, and S. Rasheed, “A Survey on the Role of IoT in Agriculture for the Implementation of Smart Livestock Environment,” Ieee Access, 2022, doi: 10.1109/access.2022.3142848.
S. B. Dhal et al., “Internet of Things (IoT) in Digital Agriculture: An Overview,” Agron. J., 2023, doi: 10.1002/agj2.21385.
A. Pennings, H. van den Heuvel, A. M. Pelaez, I. V. der Werff, and S. Neethirajan, “Sensor-Data Enabled Indicators in the Investigation of Livestock Resilience,” 2021, doi: 10.36227/techrxiv.16635130.v1.
G. S. Richardson et al., “The Influence of Inherent Soil Factors and Agricultural Management on Soil Organic Matter,” Ecosphere, 2023, doi: 10.1002/ecs2.4459.
L. Wu, “Agricultural Products Industry Chain Construction Based on Multiple Regression Analysis on the Innovation of Rural Management Mode,” Appl. Math. Nonlinear Sci., 2023, doi: 10.2478/amns.2023.2.01635.
L. M. Aravalath and C. M. Kasim, “Flood‐induced Vulnerability of a Below Sea Level Farming System in Southern India: An Assessment Through Coping Strategy Intensity,” Disasters, 2022, doi: 10.1111/disa.12488.
X. Xie and J. Shen, “Waterlogging Resistance Evaluation Index and Photosynthesis Characteristics Selection: Using Machine Learning Methods to Judge Poplar’s Waterlogging Resistance,” Mathematics, 2021, doi: 10.3390/math9131542.
R. G. Gawryla and K. W. Curry, “Science Citizenship Through Secondary Agricultural Education,” J. Agric. Educ., 2022, doi: 10.5032/jae.2022.04039.
G. Agitew, Z. Berhanie, and S. Gebremedhin, “Nutrition Sensitivity of Smallholder Agricultural Production in Northwest Ethiopia,” 2023, doi: 10.21203/rs.3.rs-2821487/v1.
X. Liang, Y. He, L. Zhu, F. Shi-jie, Y. Zou, and C. Ye, “Nitrogen and Phosphorus Emission to Water in Agricultural Crop - Animal Systems and Driving Forces in Hainan Island, China,” 2022, doi: 10.21203/rs.3.rs-1162971/v1.
N. Xu, W. Zhang, H. Li, and W. Chen, “Fiscal Support and Carbon Productivity of Agriculture—Empirical Evidence From China,” Energy Environ., 2023, doi: 10.1177/0958305x231151683.
F. Bobrakov, A. Bashkireva, V. Aseev, R. Ushakov, and T. Bashkireva, “Assessing Fertility Complexity of Agro-Gray Soil on the East European Plain Using Correlation-Regression Analysis,” E3s Web Conf., 2023, doi: 10.1051/e3sconf/202343101005.
Q. Wan, C. Ranran, L. Jing-suo, and N. Khan, “Toward a Sustainable Agricultural System in China: Exploring the Nexus Between Agricultural Science and Technology Innovation, Agricultural Resilience and Fiscal Policies Supporting Agriculture,” Front. Sustain. Food Syst., 2024, doi: 10.3389/fsufs.2024.1390014.
A. Sharma, A. Jain, P. Gupta, and V. Chowdary, “Machine Learning Applications for Precision Agriculture: A Comprehensive Review,” Ieee Access, 2021, doi: 10.1109/access.2020.3048415.
J. Astill, R. A. Dara, E. D. G. Fraser, B. Roberts, and S. Sharif, “Smart poultry management: Smart sensors, big data, and the internet of things,” Comput. Electron. Agric., vol. 170, p. 105291, 2020, doi: 10.1016/j.compag.2020.105291.
M. Babiuch and J. Postulka, “Smart home monitoring system using esp32 microcontrollers,” Internet Things, pp. 82–101, 2020.
J. Wu et al., “Multifunctional and high-sensitive sensor capable of detecting humidity, temperature, and flow stimuli using an integrated microheater,” ACS Appl. Mater. Interfaces, vol. 11, no. 46, pp. 43383–43392, 2019, doi: 10.1021/acsami.9b16336.
S. R. Collett et al., “Principles of disease prevention, diagnosis, and control,” Dis. Poult., pp. 1–78, 2020, doi: 10.1002/9781119371199.ch1.
DOI: https://doi.org/10.47738/jads.v6i3.901
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)