Prediction of Health Status of Small-Tailed Cold Sheep Based on Improved BP Neural Network
Abstract
:1. Introduction
2. Materials and Methods
2.1. General Description of the Wearable Multi-Sensor System
2.2. Hardware Design
2.2.1. Wearable Device Design
2.2.2. Critical Node Design
2.3. Cloud-Based Data Processing and Monitoring
2.4. Experimental Environment and Objects
3. Model for Predicting the Health Status of Small-Tailed Cold Sheep
3.1. Description of Factors Influencing the Health Status of Small-Tailed Cold Sheep
3.2. BP Neural Network Prediction Modeling
3.2.1. Input Data Variable Representation
3.2.2. Selection of BP Neural Network Parameters
- (1)
- Function Selection
- (2)
- Selection of the number of neurons
- (3)
- Step size selection
3.3. Improved BP Neural Network-Based Modeling of Health Status of Small-Tailed Cold Sheep
3.3.1. Beetle Antennae Search Algorithm
- Adjustment of running parameters
- (1)
- Initialization. Define the hunting space, set the initial position information and step decay factor, and randomly generate an individual beetle.
- (2)
- Head Orientation. Randomly generate the orientation of the beetle head.
- (3)
- Two whisker stretching. Calculate the position of the left and right tentacles according to the orientation of the beetle head.
- (4)
- Movement update. Determine the next movement direction of the beetle by comparing the beetle two-whisker fitness values, update the current position, and record the historical optimal fitness values.
- (5)
- Termination conditions. Stop the algorithm execution when the termination condition is satisfied, otherwise re-execute step 2.
3.3.2. Improved Social Learning Beetle Antennae Group Search Algorithm
Fundamentals of the SLBAS Algorithm
SLBAS Algorithm Convergence Process
3.3.3. SLBAS-BP Based Health Status Prediction Model for Small-Tailed Cold Sheep
- (1)
- Process the dataset, determine the network structure and initial BP neural network weights and thresholds, and use the mean square error obtained from the training of the BP neural network as the adaptation value.
- (2)
- Aiming at the problem that a single beetle does not have enough searching ability, this paper introduces the concept of intelligent population and extends a single beetle to multiple beetles. The method does not require centralized constraints, and the error of a single beetle does not have an impact on the overall problem-solving.
- (3)
- The number of beetles and the number of iterations in the algorithm are initialized.
- (4)
- The population of beetle s is initialized and the fitness of each beetle s within the population is calculated.
- (5)
- The fitness values of the beetles were sorted by size.
- (6)
- The beetle with the largest fitness value randomly learns from individuals better than itself according to Equations (11)–(19) and thus updates its position.
- (7)
- Calculate the fitness value of the individual beetle after updating its position.
- (8)
- If the conditions for the end of the iteration are satisfied, then the algorithm will get the optimal result, if the algorithm does not reach the optimal result, then the algorithm will go to step (5) and carry out the next iteration.
- (9)
- The BP neural network uses the optimal aspen individual locations obtained from the SLBAS algorithm as new weights and thresholds to predict and analyze the test set and output the classification results.
4. Results and Discussion
4.1. Results
4.1.1. BP Neural Network Prediction Model Training and Testing
4.1.2. SLBAS-BP Neural Network Prediction Model Training and Testing
4.2. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Conflicts of Interest
References
- Navon, S.; Mizrach, A.; Hetzroni, A.; Ungar, E.D. Automatic recognition of jaw movements in free-ranging cattle, goats and sheep, using acoustic monitoring. Biosyst. Eng. 2013, 114, 474–483. [Google Scholar] [CrossRef]
- Nakagawa, K.; Kobayashi, H.H. Optimal Arrangement of Wearable Devices Based on Lifespan of Animals as Device Transporter Materials for Long-term Monitoring of Wildlife Animal Sensor Network. Sens. Mater. 2020, 32, 13–25. [Google Scholar] [CrossRef]
- Zhang, G.; Xiao, W. Development Status and Trends of Smart Animal Husbandry. China’s Natl. Cond. Strength 2019, 11, 33–35. [Google Scholar]
- Kumar, A.; Hancke, G.P. A Zigbee-Based Animal Health Monitoring System. IEEE Sens. J. 2015, 15, 610–617. [Google Scholar] [CrossRef]
- Zhang, X.; Beebe, T.; Liu, Y.; Park, J.; Hsiai, T.; Tai, Y.-C. Wearable flexible micro electrode for adult zebrafish long term ecgmonitoring. In Proceedings of the IEEE International Conference on Micro Electro Mechanical Systems (MEMS), Estoril, Portugal, 18–22 January 2015; IEEE: Piscataway, NJ, USA, 2015; pp. 690–693. [Google Scholar] [CrossRef]
- Sheng, H.; Tan, J. BioLogger: A wireless physiological sensing and logging system with applications in poultry science. In Proceedings of the 2009 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Minneapolis, MN, USA, 3–6 September 2009; pp. 4828–4831. [Google Scholar] [CrossRef]
- Moyers, S.C.; Adelman, J.S.; Farine, D.R.; Moore, I.T.; Hawley, D.M. Exploratory behavior is linked to stress physiology and social network centrality in free-living house finches (Haemorhous mexicanus). Horm. Behav. 2018, 102, 105–113. [Google Scholar] [CrossRef] [PubMed]
- Debauche, O.; Mahmoudi, S.; Andriamandroso, A.L.H.; Manneback, P.; Bindelle, J. Cloud services integration for farm animals’ behavior studies based on smartphones as activity sensors. J. Ambient Intell. Humaniz. Comput. 2019, 10, 4651–4662. [Google Scholar] [CrossRef]
- Le Roux, S.P.; Wolhuter, R.; Niesler, T. Energy-Aware Feature and Model Selection for Onboard Behavior Classification in Low-Power Animal Borne Sensor Applications. IEEE Sens. J. 2019, 19, 2722–2734. [Google Scholar] [CrossRef]
- Pandey, A.; Gupta, G.S.; Singh, P. Remotely operated mechanical nociceptive device for sheep: Preliminary investigations. In Proceedings of the 2017 IEEE Sensors Applications Symposium (SAS), Glassboro, NJ, USA, 13–15 March 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 1–6. [Google Scholar] [CrossRef]
- Ramachandran, V.R.K.; Zhang, K.; Meratnia, N.; Havinga, P. Towards Implantable Body Sensor Networks—Performance of MICS Band Radio Communication in Animal Tissue. EAI Endorsed Trans. Cogn. Commun. 2016, 16, 2. [Google Scholar] [CrossRef]
- Greene, N.T.; Alhussaini, M.A.; Easter, J.R.; Argo, T.F., IV; Walilko, T.; Tollin, D.J. Intracochlear pressure measurements during acoustic shock wave exposure. Hear Res. 2018, 365, 149–164. [Google Scholar] [CrossRef] [PubMed]
- Zang, J.; Ye, S.; Xu, Z.; Wang, J.; Liu, W.; Bai, Y.; Yong, C.; Zou, X.; Zhang, W. Prediction Model of Carbon Dioxide Concentration in Pig House Based on Deep Learning. Atmosphere 2022, 13, 1130. [Google Scholar] [CrossRef]
- Zhang, L.; Tedde, A.; Ho, P.; Grelet, C.; Dehareng, F.; Froidmont, E.; Gengler, N.; Brostaux, Y.; Hailemariam, D.; Pryce, J.; et al. Mining data from milk mid-infrared spectroscopy and animal characteristics to improve the prediction of dairy cow’s liveweight using feature selection algorithms based on partial least squares and Elastic Net regressions. Comput. Electron. Agric. 2021, 184, 106106. [Google Scholar] [CrossRef]
- McCauley, I.; Matthews, B.; Nugent, L.; Mather, A.; Simons, J. Wired Pigs: Ad-Hoc Wireless Sensor Networks in Studies of Animal Welfare. In Proceedings of the Second IEEE Workshop on Embedded Networked Sensors, 2005. EmNetS-II, Sydney, NSW, Australia, 31 May 2005; IEEE: Piscataway, NJ, USA, 2005; pp. 29–36. [Google Scholar] [CrossRef]
- Fahey, B.J.; Nightingale, K.R.; McAleavey, S.A.; Palmeri, M.L.; Wolf, P.D.; Trahey, G.E. Acoustic radiation force impulse imaging of myocardial radiofrequency ablation: Initial in vivo results. IEEE Trans. Ultrason. Ferroelectr. Freq. Control 2005, 52, 631–641. [Google Scholar] [CrossRef] [PubMed]
- Smith, K.; Martinez, A.; Craddolph, R.; Erickson, H.; Andresen, D.; Warren, S. An Integrated Cattle Health Monitoring System. In Proceedings of the Conference International Conference of the IEEE Engineering in Medicine & Biology Society, New York, NY, USA, 30 August–3 September 2006; IEEE: Piscataway, NJ, USA, 2006; pp. 4659–4662. [Google Scholar] [CrossRef]
- Venkatraman, S.; Long, J.D.; Pister, K.S.J.; Carmena, J.M. Wireless inertial sensors for monitoring animal behavior. In Proceedings of the 2007 29th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Lyon, France, 22–26 August 2007; IEEE: Piscataway, NJ, USA, 2007; pp. 378–381. [Google Scholar] [CrossRef]
- Majerus, S.J.; Fletter, P.C.; Damaser, M.S.; Garverick, S.L. Low-Power Wireless Micromanometer System for Acute and Chronic Bladder-Pressure Monitoring. IEEE Trans. Biomed. Eng. 2011, 58, 763. [Google Scholar] [CrossRef] [PubMed]
- Li, S.; Zhang, C.; Wang, R.; Song, J.; Xin, H.; Zhang, Y.; Sun, Y. Establishment of a feed intake prediction model based on eating time, ruminating time and dietary composition. Comput. Electron. Agric. 2022, 202, 107296. [Google Scholar] [CrossRef]
- Tsenkov, Y.; Tsenev, V. Continuous analysis of free-roaming animals’ behavior with ear-tag device. In Proceedings of the 2017 40th International Spring Seminar on Electronics Technology (ISSE), Sofia, Bulgaria, 10–14 May 2017; pp. 1–5. [Google Scholar] [CrossRef]
- Chen, M.; Liu, Y.; Tam, J.; Chan, H.-Y.; Li, X.; Chan, C.; Li, W. Wireless AI-Powered IoT Sensors for Laboratory Mice Behavior Recognition. IEEE Internet Things J. 2022, 9, 1899–1912. [Google Scholar] [CrossRef]
- Rowland, M.A.; Perkins, E.J.; Mayo, M.L. Physiological fidelity or model parsimony? The relative performance of reverse-toxicokinetic modeling approaches. BMC Syst. Biol. 2017, 11, 35. [Google Scholar] [CrossRef] [PubMed]
- Leos-Barajas, V.; Gangloff, E.J.; Adam, T.; Langrock, R.; van Beest, F.M.; Nabe-Nielsen, J. Multi-scale Modeling of Animal Movement and General Behavior Data Using Hidden Markov Models with Hierarchical Structures. J. Agric. Biol. Environ. Stat. 2017, 22, 232–238. [Google Scholar] [CrossRef]
- Nagl, L.; Schmitz, R.; Warren, S.; Hildreth, T.S.; Erickson, H.; Andresen, D. Wearable sensor system for wireless state-of-health determination in cattle. In Proceedings of the International Conference of the IEEE Engineering in Medicine & Biology Society, Cancun, Mexico, 17–21 September 2003; IEEE: Piscataway, NJ, USA, 2003; pp. 3012–3015. [Google Scholar] [CrossRef]
- Brugarolas, R.; Dieffenderfer, J.; Walker, K.; Wagner, A.; Sherman, B.; Roberts, D.L.; Bozkurt, A. Wearable wireless biophotonic and biopotential sensors for canine health monitoring. In Proceedings of the Sensors, Valencia, Spain, 2–5 November 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 2203–2206. [Google Scholar] [CrossRef]
- Taneja, M.; Jalodia, N.; Malone, P.; Byabazaire, J.; Davy, A.; Olariu, C. Connected Cows: Utilizing Fog and Cloud Analytics toward Data-Driven Decisions for Smart Dairy Farming. IEEE Internet Things Mag. 2019, 2, 32–37. [Google Scholar] [CrossRef]
- Huang, C.H.; Shen, P.Y.; Huang, Y.C. IoT-based physiological and environmental monitoring system in animal shelter. In Proceedings of the 2015 Seventh International Conference on Ubiquitous and Future Networks, Sapporo, Japan, 7–10 July 2015; IEEE: Piscataway, NJ, USA, 2015; pp. 317–322. [Google Scholar] [CrossRef]
Physical Condition | Species | Body Temperature | Heart Rate | Behavior | Other Influencing Factors |
---|---|---|---|---|---|
Health | Sheep | 38.5~39.7 °C | 74~116 | Walk, run or jump | Gender. Age. Season. |
Sub-health | 39.5~40.7 °C | Slight change | Increased frequency of sleeping. | ||
Fever | 40.5~41.7 °C | Significantly accelerate | Most of them are in a resting state. | ||
Illness | Above 41 °C | It depends on the disease | It depends on the disease. |
Hardware | Software | ||
---|---|---|---|
Graphics card | NVIDIA Geforce RTX 2080Ti | Operating system | Windows10 |
Graphics memory | 16 G | Operating environment | Matlab 2022 |
CPU | Intel(R) Core i7-9700F 3.00 Hz | GPU | NVIDID Drivers |
Memory | 32 G | 516.94 | |
Hard disk | 2 T | Programming Language | C Language |
Number | Training Function | Learning Function | Hidden Layer Transfer Function | |||
---|---|---|---|---|---|---|
Logsig | Tansig | |||||
Step Width | MSE | Step Width | MSE | |||
1 | traingd | learngd | 15,000 | 0.0842 | 15,000 | 0.083 |
learngdm | 15,000 | 0.079 | 15,000 | 0.0801 | ||
2 | traingdm | learngd | 15,000 | 0.0878 | 15,000 | 0.0803 |
learngdm | 15,000 | 0.0845 | 15,000 | 0.0835 | ||
3 | traingda | learngd | 189 | 0.065 | 145 | 0.064 |
learngdm | 188 | 0.0612 | 172 | 0.0632 | ||
4 | traingdx | learngd | 98 | 0.0918 | 187 | 0.0618 |
learngdm | 103 | 0.0875 | 163 | 0.0663 | ||
5 | trainlm | learngd | 11 | 0.0623 | 9 | 0.0612 |
learngdm | 7 | 0.058 | 13 | 0.060 | ||
6 | trainbfg | learngd | 20 | 0.0677 | 41 | 0.0597 |
learngdm | 54 | 0.0678 | 25 | 0.0651 | ||
7 | trainrp | learngd | 35 | 0.0654 | 21 | 0.0662 |
learngdm | 29 | 0.0661 | 29 | 0.0642 | ||
8 | trainscg | learngd | 36 | 0.0652 | 41 | 0.0648 |
learngdm | 37 | 0.0654 | 11 | 0.0668 | ||
9 | traincgb | learngd | 42 | 0.0623 | 12 | 0.0654 |
learngdm | 20 | 0.0654 | 27 | 0.0642 | ||
10 | traincgf | learngd | 17 | 0.0642 | 23 | 0.0602 |
learngdm | 12 | 0.0649 | 17 | 0.0662 | ||
11 | traincgp | learngd | 45 | 0.0632 | 20 | 0.063 |
learngdm | 24 | 0.0624 | 23 | 0.064 | ||
12 | trainoss | learngd | 81 | 0.0662 | 25 | 0.0651 |
learngdm | 41 | 0.0654 | 23 | 0.654 |
Number of Neurons | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
---|---|---|---|---|---|---|---|---|---|
MSE | 0.0571 | 0.0568 | 0.0553 | 0.0546 | 0.0538 | 0.0537 | 0.0543 | 0.0540 | 0.0541 |
Training Step | 100 | 200 | 273 | 300 | 400 | 500 | 600 | 700 | 800 |
---|---|---|---|---|---|---|---|---|---|
MSE | 0.05550 | 0.05451 | 0.05380 | 0.05378 | 0.05378 | 0.05376 | 0.05374 | 0.05373 | 0.05373 |
BAS Algorithm Flow: | |
Input: | ; |
Output: | ; |
01 | |
02 | |
03 | According to the Formula (4) generate random search direction b; |
04 | |
05 | According to the Formula (6) update the position of the BAS; |
06 | |
07 | ; |
08 | ; |
09 | ,; |
10 | |
11 | end |
Physical Condition | Test Data | Predictive Health Data | Predictive Sub-Health Data | Predictive Fever Data | Predictive Illness Data | Single Prediction Accuracy | Average Prediction Accuracy |
---|---|---|---|---|---|---|---|
Health | 1652 | 1526 | 126 | 0 | 0 | 92.4% | 89.4% |
Sub-health | 3011 | 56 | 2736 | 219 | 0 | 90.9% | |
Fever | 2503 | 0 | 443 | 2060 | 0 | 82.3% | |
illness | 2407 | 0 | 0 | 172 | 2235 | 92.9% |
Physical Condition | Test Data | Predictive Health Data | Predictive Sub-Health Data | Predictive Fever Data | Predictive Illness Data | Single Prediction Accuracy | Average Prediction Accuracy |
---|---|---|---|---|---|---|---|
Health | 1652 | 1526 | 126 | 0 | 0 | 98.4% | 95.2% |
Sub-health | 3011 | 56 | 2736 | 219 | 0 | 94.5% | |
Fever | 2503 | 0 | 443 | 2060 | 0 | 90.4% | |
illness | 2407 | 0 | 0 | 172 | 2235 | 98.7% |
Arithmetic | Correct Rate of Health Prediction | Correct Rate of Sub-Health Prediction | Fever Prediction Accuracy | Illness prediction Accuracy | Average Prediction Accuracy |
---|---|---|---|---|---|
BP | 92.4% | 90.9% | 82.3% | 92.9% | 89.4% |
SLBAS-BP | 98.4% | 94.5% | 90.4% | 98.7% | 95.2% |
Lifting ratio | 6% | 3.6% | 8.1% | 5.8% | 5.8% |
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. |
© 2024 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
Fan, W.; Wang, H.; Hou, Y.; Du, H.; Zhang, H.; Yang, J.; Li, T.; Han, D. Prediction of Health Status of Small-Tailed Cold Sheep Based on Improved BP Neural Network. Electronics 2024, 13, 2602. https://doi.org/10.3390/electronics13132602
Fan W, Wang H, Hou Y, Du H, Zhang H, Yang J, Li T, Han D. Prediction of Health Status of Small-Tailed Cold Sheep Based on Improved BP Neural Network. Electronics. 2024; 13(13):2602. https://doi.org/10.3390/electronics13132602
Chicago/Turabian StyleFan, Wei, Haixia Wang, Yun Hou, Hongwei Du, Haiyang Zhang, Jing Yang, Tingxia Li, and Ding Han. 2024. "Prediction of Health Status of Small-Tailed Cold Sheep Based on Improved BP Neural Network" Electronics 13, no. 13: 2602. https://doi.org/10.3390/electronics13132602
APA StyleFan, W., Wang, H., Hou, Y., Du, H., Zhang, H., Yang, J., Li, T., & Han, D. (2024). Prediction of Health Status of Small-Tailed Cold Sheep Based on Improved BP Neural Network. Electronics, 13(13), 2602. https://doi.org/10.3390/electronics13132602