Deep learning ensemble approach for classification of indigenous pig breeds in India
82 / 6
Keywords:
Computer vision, Ensemble learning, Image, Meta learner, Pig breed classification, Transfer learningAbstract
Breed identification plays a crucial role in conserving indigenous pig breeds, managing genetic resources and developing effective breeding strategies. Traditional methods of breed recognition are often time-consuming, subjective and prone to errors. Therefore, an automated mechanism is required to replicate expert skills for pig breed identification within farm environment, providing significant benefits to the farmers in the piggery sector. To fulfil this necessity, ensemble learning-based approach for the automated identification of indigenous pig breeds in India using models based on convolutional neural networks (CNNs) has been proposed. Four transfer learning models such as EfficientNetB0, Xception, InceptionV3 and InceptionResNetV2 models were combined to construct stacking ensemble model. In this approach, multiple meta-learners including SVC (Linear), Logistic Regression, Ridge Classifier, SGD Classifier and MLP Classifier were used to enhance the ensemble performance and the best- performing combination is selected. In this study, image datasets consisting of front and side view images of eight indigenous pig breeds of India were used. Experimental results demonstrated that the proposed stacking ensemble approach with Ridge Classifier achieved superior classification accuracy of 98% (average of three-fold cross validation) outperforming individual models by 3.5–8.3%, highlighting its potential as a practical tool for smart pig farming, breed conservation and genetic resource management. The study emphasized the application of vision intelligence and ensemble learning in precisely and efficiently distinguishing between various indigenous pig breed and management in India.
Downloads
References
1. Berkson J. 1944. Application of the logistic function to bio-assay. Journal of the American Statistical Association 39(227): 357– 365, 10.1080/01621459.1944.10500699. DOI: https://doi.org/10.1080/01621459.1944.10500699
2. Chollet F. 2017. Xception: Deep learning with depth wise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 1251–1258), https://doi.org/10.1109/CVPR.2017.195. DOI: https://doi.org/10.1109/CVPR.2017.195
3. Cortes C and Vapnik V. 1995. Support-vector networks. Machine Learning 20(3): 273–297. https://doi.org/10.1007/BF00994018. DOI: https://doi.org/10.1023/A:1022627411411
4. Fernandes A F A, Dórea J R R and Rosa G J D M. 2020. Image analysis and computer vision applications in animal sciences: An overview. Frontiers in Veterinary Science 7: 551269. https://doi.org/10.3389/fvets.2020.551269. DOI: https://doi.org/10.3389/fvets.2020.551269
5. He J, Ding L, Jiang L Ma L. 2014. July. Kernel ridge regression classification. In 2014 International Joint Conference on Neural Networks (IJCNN): 2263-2267. IEEE, 10.1109/ IJCNN.2014.6889396. DOI: https://doi.org/10.1109/IJCNN.2014.6889396
6. He K, Zhang X, Ren S and Sun J. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition 770-778. https://doi.org/10.1109/CVPR.2016.90. DOI: https://doi.org/10.1109/CVPR.2016.90
7. Himel G M S, Islam M M and Rahaman M. 2024. Vision intelligence for smart sheep farming: applying ensemble learning to detect sheep breeds. Artificial Intelligence in Agriculture 11: 1–12. https://doi.org/10.1016/j.aiia.2023.11.002. DOI: https://doi.org/10.1016/j.aiia.2023.11.002
8. ICAR-NBAGR 2024. National Bureau of Animal Genetic Resources: Registered Pig Breeds of India. Karnal, Haryana, India.
9. Jarraya I, BenSaid F, Ouarda W, Pal U and Alimi A M. 2023. A new convolutional neural network based on a sparse convolutional layer for animal face detection. Multimedia Tools and Applications 82(1): 91–124. https://doi.org/10.1007/s11042-022-12610-y. DOI: https://doi.org/10.1007/s11042-022-12610-y
10. Mehta S and Bhattacharjee M. 2024. Sustainable pork production and processing: A step toward empowering tribal women in Northeast India. Frontiers in Nutrition 11: 1425020. https://doi.org/10.3389/fnut.2024.1425020. DOI: https://doi.org/10.3389/fnut.2024.1425020
11. Noor A, Zhao Y, Koubâa A, Wu L, Khan R and Abdalla F Y. 2020. Automated sheep facial expression classification using deep transfer learning. Computers and Electronics in Agriculture 175: 105528. https://doi.org/10.1016/j.compag.2020.105528. DOI: https://doi.org/10.1016/j.compag.2020.105528
12. Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, Blondel M, Prettenhofer P, Weiss R, Dubourg V and Vanderplas J. 2011. Scikit-learn: Machine learning in Python. the Journal of machine Learning research 12: 2825–2830.
13. Plested J, Phiri M and Gedeon T. 2026. Deep transfer learning for image classification: a survey. Artificial Intelligence Review. https://doi.org/10.1007/s10462-026-11491-z DOI: https://doi.org/10.1007/s10462-026-11491-z
14. Rosenblatt F. 1958. The perceptron: a probabilistic model for information storage and organization in the brain. Psychological Review 65(6): 386. https://doi.org/10.1037/h0042519. DOI: https://doi.org/10.1037/h0042519
15. Sarkar N K, Singh M M, Nandi U and Mandal J K. 2025. Ensemble transfer learning for image classification. ECTI Transactions on Computer and Information Technology (ECTI-CIT) 19(1): 25–36. https://doi.org/10.37936/ecti-cit.2025191.257836. DOI: https://doi.org/10.37936/ecti-cit.2025191.257836
16. Singh M, Pongenere N, Mollier R T, et al. 2023. Participatory assessment of management and biosecurity practices of smallholder pig farms in North East India. Frontiers in Veterinary Science 10: 1196955. https://doi.org/10.3389/fvets.2023.1196955. DOI: https://doi.org/10.3389/fvets.2023.1196955
17. Szegedy C, Ioffe S, Vanhoucke V and Alemi A. 2017. February. Inception-v4, inception-resnet and the impact of residual connections on learning. In Proceedings of the AAAI conference on artificial intelligence 31: 1. https://doi.org/10.1609/aaai.v31i1.11231. DOI: https://doi.org/10.1609/aaai.v31i1.11231
18. Tan M and Le Q. 2019. May. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning (pp. 6105–6114).
19. Team K. 2017. Keras Documentation: Inception_v3. [WWW Document] keras.io.https://keras.io/api/applications/ inceptionv3/.
20. Thomas R, Singh V and Gupta V K. 2021. Current status and development prospects of India’s pig industry. Indian Journal of Animal Sciences 91(4): 255–268. https://doi.org/10.56093/ijans.v91i4.114325. DOI: https://doi.org/10.56093/ijans.v91i4.114325
21. Yin Y, Du B, Dai X, Shen W, Wang X and Kou S. 2025. An ensemble of deep learning frameworks applied for pig cough recognition in a complex piggery environment. Computers and Electronics in Agriculture 237: 110755. https://doi. org/10.1016/j.compag.2025.110755. DOI: https://doi.org/10.1016/j.compag.2025.110755
22. Zhou Z, Wang Y, Zhang W, Zheng Y, Du X and Jin C. 2025, April. Achieving Ensemble-Like Performance in a Single Model: A Feature Diversification Framework for Image- Text Matching. In Proceedings of the AAAI Conference on Artificial Intelligence 39: 10, pp. 10879–10886), https://doi. org/10.1609/aaai.v39i10.33182. DOI: https://doi.org/10.1609/aaai.v39i10.33182
Downloads
Published
Issue
Section
License
Copyright (c) 2026 The Indian Journal of Animal Sciences

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
The copyright of the articles published in The Indian Journal of Animal Sciences is vested with the Indian Council of Agricultural Research, which reserves the right to enter into any agreement with any organization in India or abroad, for reprography, photocopying, storage and dissemination of information. The Council has no objection to using the material, provided the information is not being utilized for commercial purposes and wherever the information is being used, proper credit is given to ICAR.