IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0336434.html

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

Author

Listed:
  • Md Junayed Hossain
  • Jannatul Ferdaus
  • Ashraful Islam
  • M Ashraful Amin

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.

Suggested Citation

  • Md Junayed Hossain & Jannatul Ferdaus & Ashraful Islam & M Ashraful Amin, 2025. "CattleNet-XAI: An explainable CNN framework for efficient cattle weight estimation," PLOS ONE, Public Library of Science, vol. 20(11), pages 1-33, November.
  • Handle: RePEc:plo:pone00:0336434
    DOI: 10.1371/journal.pone.0336434
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0336434
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0336434&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0336434?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0336434. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.