Integrated Model for Intelligent Monitoring and Diagnostics of Animal Health Based on IoT Technology for the Digital Farm
Abstract
1. Introduction
1.1. Motivation
- -
- High variability of individual behavior. Behavioral patterns of animals depend on age, physiological state, season, and housing conditions, making it difficult to apply uniform global thresholds for health assessment.
- -
- Impact of collective dynamics. Behavioral changes may be caused not only by individual factors but also by external conditions affecting the entire herd. For example, heat stress quantified by the Temperature–Humidity Index is associated with herd-wide reductions in rumination and changes in drinking/locomotion, and cows show pronounced lying synchrony around routine events (e.g., feeding/milking), so group-level shifts can reflect shared environmental drivers rather than individual pathology.
- -
- Need for combining different types of analytics. Linear and nonlinear time series analysis methods, fractal characteristics, and statistical indicators must be integrated into a single computational model.
1.2. State of the Art
- -
- -
- -
- -
- -
1.3. Objectives and Contribution
- -
- To define the structure of interaction between the IoT sensor network, machine learning modules, and components for complex systems analysis.
- -
- To develop a composite metric, the Deviation Score, which combines traditional statistical indicators (absolute deviation from the herd median, normalized by the interquartile range) with indicators from the theory of dynamic chaos and fractal analysis (Hurst exponent, BDS-statistic).
- -
- To implement Explainable AI methods for interpreting the model’s decisions, identifying the most significant predictors, and increasing user trust.
- -
- To integrate individual animal baseline profiles with group behavioral indicators for a two-stage anomaly detection process.
- -
- To validate the model on data from farms, comparing its accuracy, sensitivity, and resilience to anomalies with traditional health monitoring methods.
- -
- To relate the technical design to sustainability objectives by explaining how earlier, interpretable alerts and energy-aware IoT practices (on-device 60 s aggregation and one-minute uplinks) support animal welfare and resource-efficient farm operations.
- -
- Physiological and behavioral indicators collected from wearable and ambient sensors are reliable and periodically calibrated.
- -
- Statistical and chaotic metrics can be calculated under the limited resource conditions of edge or fog computing systems used in digital farms.
- -
- Data transmission latency is sufficiently low to ensure decision-making in a near-real-time mode.
- -
- Experimental validation is focused on cattle, but the model’s architecture allows for adaptation to other types of farm animals.
- -
- Environmental variables (temperature, humidity) are considered as external input parameters without a feedback effect on the animal health model.
- -
- The stability of the IoT infrastructure is assumed, and missing data are compensated for using imputation methods.
2. Materials and Methods
2.1. IoT System Architecture
- -
- Deduplication of uplink messages from devices in case multiple gateways within the device’s reach receive and forward the message to it.
- -
- Forwarding of uplink application payloads to the respective application servers.
- -
- Queuing of downlink application payloads.
- -
- Interaction with the Join Server during the join procedure.
2.2. Representation of Behavioral States (Classification, Encoding)
2.3. Wellness Score Formation Model
2.3.1. Generalized Model for Wellness Score Formation
2.3.2. Building an Individual Reference Profile
2.3.3. Contextualization Within Group Behavior (Herd-Level Scoring)
- —the absolute deviation of the feature value from the herd median, normalized by the interquartile range [33];
- xi—the value of the feature for the animal;
- —the corresponding feature in the entire herd;
- IQR—interquartile range;
- H—the Hurst exponent, which reflects the degree of persistence in a time series (the lower it is, the higher the level of randomness) [34];
- —the normalized value of the BDS statistic, which detects the presence of nonlinear dependencies in the signal [35];
- w1, w2, w3—weighting coefficients that can be set empirically or optimized through a model training procedure.
2.3.4. Results Explanation Module (Explainable AI)
3. Results
Evaluating the Effectiveness of the Wellness Score Prediction Model
- -
- Mean Absolute Error (MAE): 1.09 points;
- -
- Coefficient of Determination (R2): 0.84.
- -
- Identifying individuals with increased behavioral instability;
- -
- Localizing potential risks without lowering the Wellness Score for all animals;
- -
- Analyzing population risks (epizootics).
- -
- Mean Absolute Error (MAE): 1.05 points;
- -
- Coefficient of Determination (R2): 0.87.
4. Discussion
- -
- Comprehensive integration of different types of data (physiological, behavioral, contextual) into a single composite assessment;
- -
- The use of indicators from complex systems to increase sensitivity to anomalies;
- -
- Real-time explainability of results to support decision-making.
5. Conclusions
- An integrated architecture combines multisensory data collection devices, machine-learning modules, and tools for analyzing complex systems. The structure ensures coordinated interaction between hardware and software components and is designed for scalability and adaptability via per-minute on-device summarization and stateless, managed cloud services; the present evaluation used a single-farm dataset, and multi-scenario/large-scale validation will be addressed in future work.
- A composite metric, Deviation Score, has been formulated, which combines the absolute deviation from the herd median (normalized by the interquartile range) with the Hurst exponent, BDS statistics, and indicators of fractal complexity. It has been shown that its use increases the model’s sensitivity to detecting behavioral and physiological anomalies.
- Mechanisms of explainable artificial intelligence (Explainable AI) have been implemented, which ensure the interpretability of the decisions made and allow for the identification of the most significant features that influence the prediction of animal health status. This increases trust in the system and facilitates its practical implementation.
- Individual and group levels of analysis have been integrated, allowing for the detection of both deviations in the behavior of an individual animal from its own baseline profile and systemic changes within the entire herd. This approach increases the effectiveness of early disease risk detection.
- Testing on real farm data has been conducted, which confirmed the model’s effectiveness. The MAE and R2 estimates showed the competitiveness of the proposed approach compared to traditional monitoring methods, as well as its high sensitivity to anomalies, including hidden patterns not detected by standard systems.
Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Wolfert, S.; Ge, L.; Verdouw, C.; Bogaardt, M.-J. Big data in smart farming—A review. Agric. Syst. 2017, 153, 69–80. [Google Scholar] [CrossRef]
- Akhigbe, B.I.; Munir, K.; Akinade, O.; Akanbi, L.; Oyedele, L.O. IoT Technologies for Livestock Management: A Review of Present Status, Opportunities, and Future Trends. Big Data Cogn. Comput. 2021, 5, 10. [Google Scholar] [CrossRef]
- Tangorra, F.M.; Buoio, E.; Calcante, A.; Bassi, A.; Costa, A. Internet of Things (IoT): Sensors Application in Dairy Cattle Farming. Animals 2024, 14, 3071. [Google Scholar] [CrossRef] [PubMed]
- Norton, T.; Chen, C.; Larsen, M.L.V.; Berckmans, D. Precision livestock farming: Building “digital representations” to bring the animals closer to the farmer. Animal 2019, 13, 3009–3017. [Google Scholar] [CrossRef] [PubMed]
- Farooq, M.S.; Sohail, O.O.; Abid, A.; Rasheed, S. A Survey on the Role of IoT in Agriculture for the Implementation of Smart Livestock Environment. IEEE Access 2022, 10, 9483–9505. [Google Scholar] [CrossRef]
- Terence, S.; Immaculate, J.; Raj, A.; Nadarajan, J. Systematic Review on Internet of Things in Smart Livestock Management Systems. Sustainability 2024, 16, 4073. [Google Scholar] [CrossRef]
- Umstatter, C. The evolution of virtual fences: A review. Comput. Electron. Agric. 2011, 75, 10–22. [Google Scholar] [CrossRef]
- Ozger, Z.; Cihan, P.; Gokce, E. A Systematic Review of IoT Technology and Applications in Animals. Kafkas Univ. Vet. Fak. Derg. 2024, 30, 411–431. [Google Scholar] [CrossRef]
- Ruiz-Garcia, L.; Lunadei, L.; Barreiro, P.; Robla, I. A Review of Wireless Sensor Technologies and Applications in Agriculture and Food Industry: State of the Art and Current Trends. Sensors 2009, 9, 4728–4750. [Google Scholar] [CrossRef]
- Neethirajan, S. Recent advances in wearable sensors for animal health management. Sens. Bio-Sens. Res. 2017, 12, 15–29. [Google Scholar] [CrossRef]
- Kuchuk, H.; Husieva, Y.; Novoselov, S.; Lysytsia, D.; Krykhovetskyi, H. Load balancing of the layers IoT fog-cloud support network. Adv. Inf. Syst. 2025, 9, 91–98. [Google Scholar] [CrossRef]
- Yousefi, D.B.M.; Rafie, A.S.M.; Al-Haddad, S.A.R.; Azrad, S. A Systematic Literature Review on the Use of Deep Learning in Precision Livestock Detection and Localization Using Unmanned Aerial Vehicles. IEEE Access 2022, 10, 80071–80091. [Google Scholar] [CrossRef]
- Semenov, S.; Krupska-Klimczak, M.; Czapla, R.; Krzaczek, B.; Gavrylenko, S.; Poltorazkiy, V.; Vladislav, Z. Intrusion Detection Method Based on Preprocessing of Highly Correlated and Imbalanced Data. Appl. Sci. 2025, 15, 4243. [Google Scholar] [CrossRef]
- Moskalenko, V.; Kharchenko, V.; Semenov, S. Model and Method for Providing Resilience to Resource-Constrained AI-System. Sensors 2024, 24, 5951. [Google Scholar] [CrossRef]
- Yamsani, N.; Muthukumaran, K.; Kumar, D.; Asha, V.; Singh, N.; Arockia Dhanraj, J. IoT-Based Livestock Monitoring and Management System Using Machine Learning Algorithms. In Proceedings of the 2024 International Conference on Science Technology Engineering and Management (ICSTEM), Coimbatore, India, 26–27 April 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Shi, Z.; Zhang, A.; Jia, Y.; Li, J.; Wang, X.; Qiu, Y. Internet-of-Things Behavior Monitoring System Based on Wearable Inertial Sensors for Classifying Dairy Cattle Health Using Machine Learning. In Proceedings of the 2023 IEEE International Conference on Artificial Intelligence in Engineering and Technology (IICAIET), Kota Kinabalu, Malaysia, 12–14 September 2023; pp. 277–282. [Google Scholar] [CrossRef]
- Cantor, M.C.; Renaud, D.L.; Neave, H.W.; Costa, J.H.C. Feeding behavior and activity levels are associated with recovery status in dairy calves treated with antimicrobials for Bovine Respiratory Disease. Sci. Rep. 2022, 12, 4854. [Google Scholar] [CrossRef] [PubMed] [PubMed Central]
- Hill, T.M.; Suarez-Mena, F.X.; Hu, W.; Dennis, T.S.; Schlotterbeck, R.L.; Timms, L.L.; Hulbert, L.E. Technical Note: Evaluation of an ear-attached movement sensor to record rumination, eating, and activity behaviors in 1-month-old calves. Prof. Anim. Sci. 2017, 33, 743–747. [Google Scholar] [CrossRef]
- Costa, J.H.C.; Cantor, M.C.; Neave, H.W. Symposium review: Precision technologies for dairy calves and management applications. J. Dairy Sci. 2021, 104, 1203–1219. [Google Scholar] [CrossRef]
- Ray, A. Symbolic dynamic analysis of complex systems for anomaly detection. Signal Process. 2004, 84, 1115–1130. [Google Scholar] [CrossRef]
- Semyonov, S.G.; Gavrilenko, S.Y.; Chelak, V.V. Information processing on the computer system state using probabilistic automata. In Proceedings of the 2017 2nd International Ural Conference on Measurements (UralCon), Chelyabinsk, Russia, 16–19 October 2017; pp. 11–14. [Google Scholar] [CrossRef]
- Zhang, H.-Y.; Feng, Z.-Q.; Feng, S.-Y.; Zhou, Y. Typical Algorithms for Estimating Hurst Exponent of Time Sequence: A Data Analyst’s Perspective. IEEE Access 2024, 12, 185528–185556. [Google Scholar] [CrossRef]
- Kostenko, P.Y.; Barsukov, A.N.; Vasiuta, K.S.; Symonenko, S.N. Detection of the chaotic process distorted by the white noise using BDS statistics. Radioelectron. Commun. Syst. 2009, 52, 599–605. [Google Scholar] [CrossRef]
- Costa, M.; Healey, J.A. Multiscale entropy analysis of complex heart rate dynamics: Discrimination of age and heart failure effects. In Proceedings of the Computers in Cardiology, 2003, Thessaloniki, Greece, 21–24 September 2003; pp. 705–708. [Google Scholar] [CrossRef]
- Ma, Z.; Zhang, R.; Ai, B.; Lian, Z.; Zeng, L.; Niyato, D. Deep Reinforcement Learning for Energy Efficiency Maximization in RSMA-IRS-Assisted ISAC System. IEEE Trans. Veh. Technol. 2025, 1–6. [Google Scholar] [CrossRef]
- Huang, Z.; Wu, K.; Huang, S.; Zhou, Y.; Giagone, R.S. Automatic Field Extraction of Extended TLV for Binary Protocol Reverse Engineering. In Proceedings of the 2022 International Conference on Computer Communications and Networks (ICCCN), Honolulu, HI, USA, 25–28 July 2022; pp. 1–10. [Google Scholar] [CrossRef]
- Yu, Q.; He, D.; Lu, Z.; Wang, H. Layered Group-Based Chirp Spread Spectrum Modulation: Waveform Design and Performance Analysis. IEEE Trans. Commun. 2025, 73, 5051–5064. [Google Scholar] [CrossRef]
- Ma, H.; Tao, Y.; Fang, Y.; Chen, P.; Li, Y. Multi-carrier initial-condition-index-aided DCSK scheme: An efficient solution for multipath fading channel. IEEE Trans. Veh. Technol. 2025; early access. [Google Scholar] [CrossRef]
- Almuhaya, M.A.M.; Jabbar, W.A.; Sulaiman, N.; Abdulmalek, S. A Survey on LoRaWAN Technology: Recent Trends, Opportunities, Simulation Tools and Future Directions. Electronics 2022, 11, 164. [Google Scholar] [CrossRef]
- Bonilla, V.; Campoverde, B.; Yoo, S.G. A Systematic Literature Review of LoRaWAN: Sensors and Applications. Sensors 2023, 23, 8440. [Google Scholar] [CrossRef]
- Chakrabarti, A.; Sadhu, P.; Pal, P. AWS IoT Core and Amazon DeepAR-based predictive real-time monitoring framework for industrial induction heating systems. Microsyst. Technol. 2023, 29, 441–456. [Google Scholar] [CrossRef]
- Crump, A.; Jenkins, K.; Bethell, E.J.; Ferris, C.P.; Arnott, G. Pasture Access Affects Behavioral Indicators of Wellbeing in Dairy Cows. Animals 2019, 9, 902. [Google Scholar] [CrossRef]
- Kok, A.; van Knegsel, A.; Bokkers, E.A.M.; Kemp, B.; Thorup, V. Exploring synchrony of lying on commercial dairy farms in relation to management. Appl. Anim. Behav. Sci. 2023, 262, 105906. [Google Scholar] [CrossRef]
- Meleshko, Y.; Yakymenko, M.; Semenov, S. A Method of Detecting Bot Networks Based on Graph Clustering in the Recommendation System of Social Network. In Proceedings of the CEUR Workshop Proceedings, 5th International Conference on Computational Linguistics and Intelligent Systems, Lviv, Ukraine, 22–23 April 2021; Volume I, pp. 1249–1261. Available online: https://ceur-ws.org/Vol-2870/paper92.pdf (accessed on 3 July 2025).
- Pernagallo, G. Random walks, Hurst exponent, and market efficiency. Qual. Quant. 2025, 59 (Suppl. S2), S1097–S1119. [Google Scholar] [CrossRef]
- Semenov, S.G.; Gavrylenko, S.Y.; Chelak, V.V. Developing parametrical criterion for registering abnormal behavior in computer and telecommunication systems on the basis of economic tests. Actual Probl. Econ. Kyiv. 2016, 4, 451–459. [Google Scholar]
- Santos, M.R.; Guedes, A.; Sanchez-Gendriz, I. SHapley Additive exPlanations (SHAP) for Efficient Feature Selection in Rolling Bearing Fault Diagnosis. Mach. Learn. Knowl. Extr. 2024, 6, 316–341. [Google Scholar] [CrossRef]
- Gorokhovatskyi, O.; Peredrii, O.; Teslenko, O. Multiple recursive division explanations for image classification problems. Adv. Inf. Syst. 2025, 9, 5–13. [Google Scholar] [CrossRef]
Type (1 byte) | Length (1 byte) | Value (n bytes) |
---|---|---|
0 × 01 (temperature) | 0 × 02 (2 bytes) | 0 × 01F4 (500, which is equal to 50.0 °C) |
Sensor (Model) | Location | Measured Variable | Range | Resolution | Accuracy/Tolerance | Sampling |
---|---|---|---|---|---|---|
3-axis accelerometer (ST LIS3DH) | Ear tag | Acceleration (X,Y,Z) | ±8 g (configurable ±2/±4/±8/±16 g) | 12-bit | Sensitivity tolerance ≈ ±1%; zero-g offset ≈ ±40 mg (typ., 25 °C); noise density ≈ 220 µg/√Hz | 25 Hz |
Temperature sensor (TI TMP117) | Ear tag PCB | Device/ body-proximal temperature | −40−85 °C | 16-bit | ±0.1 °C (typ. 20…50 °C); up to ±0.2–0.3 °C over wider range | Every 2 min |
Ambient logger (Bosch BME280, Bosch Sensortec GmbH, Reutlingen, Germany) | Barn, 1.5 m | Ambient T/RH/Pressure | T: −40–85 °C; RH: 0–100%; P: 300–1100 hPa | 16-bit (T,P), 8-bit (RH) | T ± 1.0 °C; RH ± 3%RH; P ± 1 hPa | 1 Hz |
Condition Name | Condition Code (4 High Bits) | HEX Value | Binary Representation | Description |
---|---|---|---|---|
Resting | 0000 | 0 × 00 | 0000 | The animal lies without significant activity (deep rest). |
Ruminating | 0001 | 0 × 10 | 0001 | Animal is chewing |
Ingestion | 0010 | 0 × 20 | 0010 | Animal is actively consuming solid food or milk and drinking. |
Low-Energy Activity | 0011 | 0 × 30 | 0011 | Low activity, includes standing or grooming. |
Active Locomotion | 0100 | 0 × 40 | 0100 | Purposeful walking. |
High-Energy Events | 0101 | 0 × 50 | 0101 | High activity, includes running. |
Unclassified | 1111 | 0 × F0 | 1111 | Behavior not identified. |
Feature Name | Value Type | Description |
---|---|---|
ruminating_ratio_24h | Part | The proportion of time the animal spent in the “Ruminating” state in the last 24 h. A key indicator of digestive health. |
resting_passive_ratio_24h | Part | The proportion of time spent in the “Resting” state in the last 24 h. |
rumination_to_rest_ratio_12h | Ratio | The ratio of rumination time to total lying time; Ruminating/(Ruminating + Resting) in the last 12 h. |
ingestion_ratio_6h | Part | The proportion of time spent in the “Ingestion” state in the last 6 h. |
transitions_count_12h | Integer | The total number of transitions between any two behavioral states in the last 12 h. |
ingestion_bursts_24h | Integer | The number of continuous “Ingestion” periods lasting longer than 15 min in the last 24 h. |
time_since_last_rumination_h | Hours (fraction) | The time (in hours) elapsed since the last recorded “Ruminating” episode. |
active_locomotion_ratio_24h | Part | The proportion of time the animal spent in “Active Locomotion” in the last 24 h. |
Feature Name | Reference Value | Standard Deviation |
---|---|---|
ruminating_ratio_24h | 0.34 | 0.04 |
ingestion_ratio_6h | 0.21 | 0.03 |
resting_passive_ratio_24h | 0.39 | 0.05 |
transitions_count_12h | 15 | 2.1 |
Animal | Individual Value | Herd Median | IQR | δ | 1 − H | DS (0.5, 0.3, 0.2) | |
---|---|---|---|---|---|---|---|
014 | 0.34 | 0.38 | 0.04 | 1.00 | 0.23 | 0.08 | 0.68 |
017 | 0.41 | 0.38 | 0.04 | 0.75 | 0.15 | 0.03 | 0.52 |
021 | 0.22 | 0.38 | 0.04 | 4.00 | 0.56 | 0.44 | 2.80 |
Feature Name | SHAP Value | Influence on the Result |
---|---|---|
ruminating_ratio_24h | −0.28 | Score reduction |
Deviation Score | −0.21 | Score reduction |
transitions_count_12h | +0.14 | Score increase |
ingestion_ratio_6h | −0.12 | Score reduction |
resting_passive_ratio_24h | +0.09 | Score increase |
Feature Name | Importance |
---|---|
ingestion_ratio_6h | 0.981 |
ruminating_ratio_24h | 0.0069 |
ruminating_ratio_12h | 0.0052 |
ruminating_ratio_6h | 0.0052 |
transitions_count_12h | 0.0005 |
active_locomotion_ratio_12h | 0.0004 |
transitions_volatility_12h | 0.0004 |
low-energy_activity_ratio_6h | 0.00015 |
ingestion_ratio_24h | 0.000035 |
low-energy_activity_ratio_12h | 0.000028 |
Feature Name | Importance |
---|---|
ingestion_ratio_6h | 0.931045 |
deviation_score | 0.050000 |
ruminating_ratio_6h | 0.006738 |
ruminating_ratio_12h | 0.005390 |
ruminating_ratio_24h | 0.005217 |
active_locomotion_ratio_12h | 0.000436 |
transitions_count_12h | 0.000419 |
transitions_volatility_12h | 0.000368 |
z_ingestion_ratio_6h | 0.000150 |
z_transitions_count_12h | 0.000071 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Semenov, S.; Karlov, D.; Solecki, M.; Ruban, I.; Kovalenko, A.; Piskarov, O. Integrated Model for Intelligent Monitoring and Diagnostics of Animal Health Based on IoT Technology for the Digital Farm. Sustainability 2025, 17, 8507. https://doi.org/10.3390/su17188507
Semenov S, Karlov D, Solecki M, Ruban I, Kovalenko A, Piskarov O. Integrated Model for Intelligent Monitoring and Diagnostics of Animal Health Based on IoT Technology for the Digital Farm. Sustainability. 2025; 17(18):8507. https://doi.org/10.3390/su17188507
Chicago/Turabian StyleSemenov, Serhii, Dmytro Karlov, Mikołaj Solecki, Igor Ruban, Andriy Kovalenko, and Oleksii Piskarov. 2025. "Integrated Model for Intelligent Monitoring and Diagnostics of Animal Health Based on IoT Technology for the Digital Farm" Sustainability 17, no. 18: 8507. https://doi.org/10.3390/su17188507
APA StyleSemenov, S., Karlov, D., Solecki, M., Ruban, I., Kovalenko, A., & Piskarov, O. (2025). Integrated Model for Intelligent Monitoring and Diagnostics of Animal Health Based on IoT Technology for the Digital Farm. Sustainability, 17(18), 8507. https://doi.org/10.3390/su17188507