EconPapers    
Economics at your fingertips  
 

CattleNet-XAI: An explainable CNN framework for efficient cattle weight estimation

Md Junayed Hossain, Jannatul Ferdaus, Ashraful Islam and M Ashraful Amin

PLOS ONE, 2025, vol. 20, issue 11, 1-33

Abstract: Accurate estimation of cattle weight is essential for effective farm management, health assessment, and productivity optimization. Traditional manual methods for weight estimation, however, are labor-intensive, time-consuming, and prone to inaccuracies. Recent advances in computer vision have facilitated the automation of weight prediction from image data. However, traditional regression models, such as Random Forest and Linear Regression, face challenges in capturing the complex, nonlinear relationships within image data, leading to less accurate predictions. To address these issues, we introduce CattleNet-XAI, a framework designed for both efficiency and explainability, which utilizes a custom Convolutional Neural Network (CNN). For the CNN-based approach, we incorporated advanced image preprocessing techniques, including normalization and histogram equalization, to enhance the input data quality. We compared its performance with other CNN models, the pretrained EfficientNetB3 model, and traditional machine learning methods like Random Forest and Linear Regression. For the traditional methods, we first leveraged the YOLOv5 algorithm for precise feature extraction from the cattle images. All the models were trained and evaluated on a dataset of cattle images and associated weight data, with performance measured by Mean Absolute Error (MAE), Mean Squared Error (MSE), and Root Mean Squared Error (RMSE). Our results show that one variation of our custom CNN (3Conv3Dense) model significantly surpasses other conventional models, achieving a low MAE of 18.02 kg and an RMSE of 19.85 kg, which demonstrates superior accuracy. We also present LIME visualization and error case analysis to provide insights into the decision-making process of the model. This study emphasizes the capability of deep learning, especially CNN, in automating and enhancing the precision of livestock weight estimation, offering a modern and effective approach to cattle management.

Date: 2025
References: View complete reference list from CitEc
Citations:

Downloads: (external link)
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0336434 (text/html)
https://journals.plos.org/plosone/article/file?id= ... 36434&type=printable (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:plo:pone00:0336434

DOI: 10.1371/journal.pone.0336434

Access Statistics for this article

More articles in PLOS ONE from Public Library of Science
Bibliographic data for series maintained by plosone ().

 
Page updated 2025-11-29
Handle: RePEc:plo:pone00:0336434