Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jul:131:104173.
doi: 10.1016/j.jtherbio.2025.104173. Epub 2025 Jun 12.

Advanced mastitis detection in Bos indicus cows: A deep learning approach integrated with infrared thermography

Affiliations

Advanced mastitis detection in Bos indicus cows: A deep learning approach integrated with infrared thermography

S L Gayathri et al. J Therm Biol. 2025 Jul.

Abstract

Mastitis is a significant challenge in the global dairy industry, impacting animal welfare, milk quality, and production efficiency. This study proposes infrared thermography (IRT) combined with deep learning algorithms for mastitis detection in Tharparkar cattle (Bos indicus), a breed known for its resilience to harsh climates. A total of 7223 udder thermograms were collected from quarters classified as healthy, subclinical mastitis (SCM), and clinical mastitis (CM) across seasons. Thermographic imaging, the California Mastitis Test (CMT), and somatic cell count (SCC) were used to assess udder health. Thermographic variables were evaluated using receiver operating characteristic (ROC) analysis to establish threshold values. Convolutional neural networks (CNNs'), alongside ResNet-50 and VGG16 architectures, were applied to classify udder health statuses. The results revealed significant increases (p < 0.01) in the udder and teat skin surface temperatures (USST and TSST) in SCM and CM quarters compared to healthy ones, with the most substantial changes in winter. USST and TSST correlated strongly with CMT scores and log10SCC values (p < 0.01). CNN models outperformed others, achieving training and validation accuracies of 0.98 and 0.93 for Normal vs. Clinical, and 0.98 and 0.90 for Normal vs. Sub-clinical cases. This study demonstrates the potential of integrating IRT with AI-driven diagnostic models to provide non-invasive, accurate mastitis detection. These findings offer a scalable approach for enhancing herd health management, promoting economic sustainability, and enabling data-driven decision-making in resource-limited dairy systems.

Keywords: CNN; Deep learning; Mastitis; Tharparkar cows; Thermograms.

PubMed Disclaimer

Conflict of interest statement

Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

LinkOut - more resources