Submitted:
20 July 2023
Posted:
21 July 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
- The SSPD-PER addresses sequentially generated images from video clips and prevents testing sample sharing with the PER model during training, thereby enhancing objective evaluation.
- The SSPD-PER discards a significant number of irrelevant pixels before training the Xception model, allowing focus on the pig region in an image and training the PER model with only pertinent information.
- The Xception architecture, known for its lightweight design and competitive results, can be trained with the SSPD-PER dataset, potentially outperforming existing simple-CNN architectures [13].
2. Related Work
3. SSPD-PER System
3.1. PER Dataset
3.2. SSPD-PER: Semi-Shuffling System
3.3. SSPD-PER: Pig Detector
3.4. SSPD-PER: PER Model
4. Experimental Analysis
4.1. Experimental Conditions
5. Discusssion
5.1. Enhancing Objectivity: The Role of Semi-Shuffling in Reducing Bias in Experimental Outcomes
5.2. SSPD-PER Method’s Promising Impact on Pig Well-being and the Challenges of its Real-world Implementation
5.3. Deciphering Relevance: Criteria for Eliminating Extraneous Elements in Video Data Analysis
5.4. Outshining Competition: Benchmarking the Xception Architecture’s Competitive Edge in Lightweight Design
5.5. Translating Theory into Practice: Unveiling the Real-World Impact and Challenges of Novel Methods in Pig Welfare Enhancement
6. Conclusion
Author Contributions
Funding
Conflicts of Interest
References
- Kittawornrat, A.; Zimmerman, J.J. Toward a better understanding of pig behavior and pig welfare. Animal Health Research Reviews 2011, 12, 25–32. [Google Scholar] [CrossRef] [PubMed]
- Oh, S.-H.; See, M. Pork preference for consumers in China, Japan and South Korea. Asian-Australasian journal of animal sciences 2012, 25, 143. [Google Scholar] [CrossRef]
- Sinclair, M.; Fryer, C.; Phillips, C.J. The benefits of improving animal welfare from the perspective of livestock stakeholders across Asia. Animals 2019, 9, 123. [Google Scholar] [CrossRef] [PubMed]
- Zhang, L.; Gray, H.; Ye, X.; Collins, L.; Allinson, N. Automatic individual pig detection and tracking in pig farms. Sensors 2019, 19, 1188. [Google Scholar] [CrossRef] [PubMed]
- Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv arXiv:1409.1556, 2014.
- Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. In Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition; 2015; pp. 1–9. [Google Scholar]
- He, K.; Zhang, X.; Ren, S.; Sun, J. In Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition; 2016; pp. 770–778. [Google Scholar]
- Howard, A.G.; Zhu, M.; Chen, B.; Kalenichenko, D.; Wang, W.; Weyand, T.; Andreetto, M.; Adam, H. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv 2017, arXiv:1704.04861 2017. [Google Scholar]
- Chollet, F. In Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition; 2017; pp. 1251–1258. [Google Scholar]
- Miotto, R.; Wang, F.; Wang, S.; Jiang, X.; Dudley, J.T. Deep learning for healthcare: review, opportunities and challenges. Briefings in bioinformatics 2018, 19(6), 1236–1246. [Google Scholar] [CrossRef]
- Lv, Y.; Duan, Y.; Kang, W.; Li, Z.; Wang, F.-Y. Traffic flow prediction with big data: a deep learning approach. IEEE Transactions on Intelligent Transportation Systems 2014, 16(2), 865–873. [Google Scholar] [CrossRef]
- Neethirajan, S. Affective State Recognition in Livestock—Artificial Intelligence Approaches. Animals 2022, 12(6), 759. [Google Scholar] [CrossRef]
- Kim, J.H.; Poulose, A.; Han, D.S. The Extensive Usage of the Facial Image Threshing Machine for Facial Emotion Recognition Performance. Sensors 2021, 21(6), 2026. [Google Scholar] [CrossRef] [PubMed]
- Berrar, D. Cross-Validation. 2019.
- Kim, J.H.; Han, D.S. In Data Augmentation & Merging Dataset for Facial Emotion Recognition. In Proceedings of the Symposium of the 1st Korea Artificial Intelligence Conference, Jeju, Korea; 2020; pp. 12–16. [Google Scholar]
- Kim, J.H.; Poulose, A.; Han, D.S. In Facial Image Threshing Machine for Collecting Facial Emotion Recognition Dataset. In Proceedings of the Symposium of the Korean Institute of communications and Information Sciences (KICS) Fall Conference; 2020; pp. 67–68. [Google Scholar]
- Wutke, M.; Heinrich, F.; Das, P.P.; Lange, A.; Gentz, M.; Traulsen, I.; Warns, F.K.; Schmitt, A.O.; Gültas, M. Detecting Animal Contacts—A Deep Learning-Based Pig Detection and Tracking Approach for the Quantification of Social Contacts. Sensors 2021, 21(22), 7512. [Google Scholar] [CrossRef] [PubMed]
- Mota-Rojas, D.; Orihuela, A.; Martínez-Burnes, J.; Gómez, J.; Mora-Medina, P.; Alavez, B.; Ramírez, L.; González-Lozano, M. Neurological modulation of facial expressions in pigs and implications for production. Journal of Animal Behaviour and Biometeorology 2020, 8(4), 232–243. [Google Scholar] [CrossRef]
- Di Giminiani, P.; Brierley, V.L.; Scollo, A.; Gottardo, F.; Malcolm, E.M.; Edwards, S.A.; Leach, M.C. The assessment of facial expressions in piglets undergoing tail docking and castration: toward the development of the piglet grimace scale. Frontiers in veterinary science 2016, 3, 100. [Google Scholar] [CrossRef] [PubMed]
- Krause, A.; Puppe, B.; Langbein, J. Coping style modifies general and affective autonomic reactions of domestic pigs in different behavioral contexts. Frontiers in behavioral neuroscience 2017, 11, 103. [Google Scholar] [CrossRef] [PubMed]
- Lezama-García, K.; Orihuela, A.; Olmos-Hernández, A.; Reyes-Long, S.; Mota-Rojas, D. Facial expressions and emotions in domestic animals. CABI Reviews 2019, (2019), 1–12. [Google Scholar] [CrossRef]
- Jun, K.; Kim, S.J.; Ji, H.W. Estimating pig weights from images without constraint on posture and illumination. Computers and Electronics in Agriculture 2018, 153, 169–176. [Google Scholar] [CrossRef]
- Zhang, L.; Gray, H.; Ye, X.; Collins, L.; Allinson, N. Automatic individual pig detection and tracking in pig farms. Sensors 2019, 19(5), 1188. [Google Scholar] [CrossRef]
- Neethirajan, S. Happy cow or thinking pig? Wur wolf—facial coding platform for measuring emotions in farm animals. AI 2021, 2(3), 342–354. [Google Scholar] [CrossRef]
- Briefer, E.F.; Sypherd, C.C.-R.; Linhart, P.; Leliveld, L.M.; Padilla de la Torre, M.; Read, E.R.; Guérin, C.; Deiss, V.; Monestier, C.; Rasmussen, J.H. Classification of pig calls produced from birth to slaughter according to their emotional valence and context of production. Scientific Reports 2022, 12(1), 3409. [Google Scholar] [CrossRef] [PubMed]
- Hansen, M.F.; Baxter, E.M.; Rutherford, K.M.; Futro, A.; Smith, M.L.; Smith, L.N. Towards Facial Expression Recognition for On-Farm Welfare Assessment in Pigs. Agriculture 2021, 11(9), 847. [Google Scholar] [CrossRef]
- Hakansson, F.; Jensen, D.B. Automatic monitoring and detection of tail-biting behavior in groups of pigs using video-based deep learning methods. Frontiers in Veterinary Science 2022, 9. [Google Scholar] [CrossRef] [PubMed]
- Imfeld-Mueller, S.; Van Wezemael, L.; Stauffacher, M.; Gygax, L.; Hillmann, E. Do pigs distinguish between situations of different emotional valences during anticipation? Applied Animal Behaviour Science 2011, 131((3-4)), 86–93. [Google Scholar] [CrossRef]
- Capuani, F.M. Discerning Positive And Negative Emotions In Swine Vocalisations Through Machine Learning. Tilburg University.
- Wang, Y.; Li, S.; Zhang, H.; Liu, T. A lightweight CNN-based model for early warning in sow oestrus sound monitoring. Ecological Informatics 2022, 72, 101863. [Google Scholar] [CrossRef]
- Ocepek, M.; Žnidar, A.; Lavrič, M.; Škorjanc, D.; Andersen, I.L. DigiPig: First developments of an automated monitoring system for body, head and tail detection in intensive pig farming. Agriculture 2021, 12(1), 2. [Google Scholar] [CrossRef]
- Xu, S.; He, Q.; Tao, S.; Chen, H.; Chai, Y.; Zheng, W. Pig Face Recognition Based on Trapezoid Normalized Pixel Difference Feature and Trimmed Mean Attention Mechanism. IEEE Transactions on Instrumentation and Measurement 2022. [CrossRef]
- Son, S.; Ahn, H.; Baek, H.; Yu, S.; Suh, Y.; Lee, S.; Chung, Y.; Park, D. StaticPigDet: Accuracy Improvement of Static Camera-Based Pig Monitoring Using Background and Facility Information. Sensors 2022, 22(21), 8315. [Google Scholar] [CrossRef] [PubMed]
- Low, B.E.; Cho, Y.; Lee, B.; Yi, M.Y. Playing Behavior Classification of Group-Housed Pigs Using a Deep CNN-LSTM Network. Sustainability 2022, 14(23), 16181. [Google Scholar] [CrossRef]
- Colaco, S.J.; Kim, J.H.; Poulose, A.; Neethirajan, S.; Han, D.S. DISubNet: Depthwise Separable Inception Subnetwork for Pig Treatment Classification Using Thermal Data. Animals 2023, 13(7), 1184. [Google Scholar] [CrossRef] [PubMed]
- Colaco, S.J.; Kim, J.H.; Poulose, A.; Van, Z.S.; Neethirajan, S.; Han, D.S. In Pig Treatment Classification on Thermal Image Data using Deep Learning. In Proceedings of the 2022 Thirteenth International Conference on Ubiquitous and Future Networks (ICUFN); IEEE, 2022; pp. 8–11. [Google Scholar]
- Beery, S.; Van Horn, G.; Perona, P. In Recognition in terra incognita. In Proceedings of the European conference on computer vision (ECCV); 2018; pp. 456–473. [Google Scholar]
- Swanson, A.; Kosmala, M.; Lintott, C.; Simpson, R.; Smith, A.; Packer, C. Snapshot Serengeti, high-frequency annotated camera trap images of 40 mammalian species in an African savanna. Scientific data 2015, 2(1), 1–14. [Google Scholar] [CrossRef]
- Jacobs, C.E.; Ausband, D.E. An evaluation of camera trap performance–What are we missing and does deployment height matter? Remote Sensing in Ecology and Conservation 2018, 4(4), 352–360. [Google Scholar] [CrossRef]
- Beery, S.; Morris, D.; Yang, S. Efficient pipeline for camera trap image review. arXiv 2019, arXiv:1907.06772 2019. [Google Scholar]
- Bruch, S.; Wang, X.; Bendersky, M.; Najork, M. In An analysis of the softmax cross entropy loss for learning-to-rank with binary relevance. In Proceedings of the 2019 ACM SIGIR International Conference on Theory of Information Retrieval; 2019; pp. 75–78. [Google Scholar]
- Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980 2014. [Google Scholar]
- Agarap, A.F. Deep learning using rectified linear units (relu). arXiv 2018, arXiv:1803.08375 2018. [Google Scholar]
- Van Laarhoven, T. L2 regularization versus batch and weight normalization. arXiv 2017, arXiv:1706.05350, 2017. [Google Scholar]
- Wang, R.; Li, J. In Bayes test of precision, recall, and f1 measure for comparison of two natural language processing models. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics; 2019; pp. 4135–4145. [Google Scholar]








| The PER Dataset | |||||
| Approach | Accuracy (%) | Precision (%) | Recall (%) | f1-Score (%) | Real-time fidelity |
| Raw image based approach 90:10 from Figure 8(a) | 99.55 | 99.55 | 99.55 | 99.55 | False |
| Raw image based approach 70:30 from Figure 8(b) | 99.53 | 99.51 | 99.50 | 99.50 | False |
| Raw image with expanded numbers of dataset (Xception) from Figure 8(c) | 98.45 | 98.45 | 98.45 | 98.45 | False |
| Raw image with expanded of semi-shuffled dataset (Xception) from Figure 8(d) | 75.97 | 75.39 | 75.97 | 74.21 | False |
| Fully-shuffled raw images with 256 pixels sized and 1 FPS from Figure 8(e) | 97.83 | 97,84 | 97.83 | 97.83 | False |
| Semi-shuffled raw images with 256 pixels sized and 1 FPS from Figure 8(f) | 59.56 | 65.85 | 55.91 | 59.56 | False |
| Semi-shuffled pig detected images with 256 pixels sized and 1 FPS from Figure 8(g) | 23.61 | 20.87 | 23.61 | 15.02 | True |
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. |
© 2023 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 (http://creativecommons.org/licenses/by/4.0/).