Deep Learning Ensemble Approach for Classification of Indigenous Pig Breeds in India
11
DOI:
https://doi.org/10.56093/ijans.v96i8.172968Keywords:
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, we propose ensemble learning-based approach for the automated identification of indigenous pig breeds in India using models based on convolutional neural networks (CNNs). Four transfer learning models such as EfficientNetB0, Xception, InceptionV3 and InceptionResNetV2 models are combine 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 was selected. For this study, we used a dataset of 2040 images with eight distinct indigenous pig breeds of India. Experimental results demonstrate that the proposed stacking ensemble approach with Ridge Classifier achieves superior classification accuracy of 98% 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 emphasizes the application of vision intelligence and ensemble learning in precisely and efficiently distinguishing between various indigenous pig breed and management in India
Downloads
References
Berkson, J., 1944. Application of the logistic function to bio-assay. Journal of the American statistical association, 39(227), pp.357-365.
Chollet, F., 2017. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 1251-1258).
Cortes, C. and Vapnik, V., 1995. Support-vector networks. Machine learning, 20(3), pp.273-297.
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, p.551269.
He, J., Ding, L., Jiang, L. and Ma, L., 2014, July. Kernel ridge regression classification. In 2014 International Joint Conference on Neural Networks (IJCNN) (pp. 2263-2267). IEEE.
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 (pp. 770-778).
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, pp.1-12.
ICAR-NBAGR. (2024). National Bureau of Animal Genetic Resources: Registered Pig Breeds of India. Karnal, Haryana, India.
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), pp.91-124.
Mehta, S., & Bhattacharjee, M. (2024). Sustainable pork production and processing: A step toward empowering tribal women in Northeast India. Frontiers in Nutrition, 11, 1425020.
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, p.105528.
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, pp.2825-2830.https://scikit learn.org/stable/modules/generated/sklearn.linear_model.SGDClassifier.html
Rosenblatt, F., 1958. The perceptron: a probabilistic model for information storage and organization in the brain. Psychological review, 65(6), p.386.
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.
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 (Vol. 31, No. 1).
Tan, M. and Le, Q., 2019, May. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning (pp. 6105-6114). PMLR.
Team, K.,2017. Keras Documentation: Inception_v3. [WWW Document] keras.io.https://keras.io/api/applications/inceptionv3/.
Thomas, R., Singh, V., & Gupta, V. K. (2021). Current status and development prospects of India’s pig industry. Indian Journal of Animal Sciences, 91(4), 255-268.
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.