News|Articles|September 23, 2025

Mid-Infrared Spectroscopy Models Developed for Mastitis Detection in Dairy Cattle

Author(s)Will Wetzel
Fact checked by: Caroline Hroncich
Listen
0:00 / 0:00

Key Takeaways

  • Mastitis is a common, economically damaging disease in dairy farming, reducing milk yield and quality, and increasing veterinary costs.
  • Traditional mastitis detection relies on SCC and DSCC, which are costly and time-consuming, limiting widespread implementation.
SHOW MORE

Recently, a team of researchers from Huazhong Agricultural University developed diagnostic models using mid-infrared spectroscopy (MIR) to improve the detection of mastitis in dairy cattle. Their study, which was recently published in Animals, demonstrates how MIR technology can offer a faster, less costly alternative to conventional testing methods, while maintaining strong diagnostic accuracy (1).

What is mastitis?

Mastitis is an inflammation of the udder typically caused when microbes enter the teat (1,2). This infection is often described in two ways: clinical or subclinical. Clinical mastitis is the inflammatory response to infection that results in fibrin clots and unusual milk coloration (2). Subclinical mastitis is characterized by the absence of local inflammation or systemic involvement, and this generally results in a sharp decrease in milk production (2).

Mastitis is one of the most common and economically damaging diseases in dairy farming worldwide. Its presence leads to reduced milk yield, poorer milk quality, and higher veterinary costs, creating a substantial burden for dairy producers (1). Currently, the main indicators of udder health are somatic cell count (SCC) and differential somatic cell count (DSCC) (1). Although reliable, these indicators are measured through flow cytometry, a method that is expensive, time-consuming, and particularly difficult for widespread implementation when analyzing DSCC.

What did the researchers test in their study?

As part of their experimental procedure, the research team tested whether MIR spectroscopy could be adapted into accurate diagnostic models for udder health, with the goal of replacing or supplementing SCC and DSCC testing on dairy farms. MIR spectroscopy has been used in the assessment of milk composition because it is nondestructive and cheap (1). This study tried to see if MIR spectroscopy could be taken a step further in evaluating udder health.

The study analyzed 2,288 milk samples collected from dairy farms, using a CombiFoss 7 DC instrument manufactured by FOSS (1). The researchers tested three MIR spectral preprocessing methods, six modeling algorithms, and three different sets of MIR spectral data to design several diagnostic models (1).

What were the results of the study?

The results of the study showed that two models were very good for diagnosing udder health. The first model, which was named “DIFF-RF-1060 wavenumbers,” combined a spectral preprocessing method of difference (DIFF), a Random Forest (RF) algorithm, and 1,060 wavenumbers (1). This model successfully distinguished healthy cattle from those with mastitis, achieving an area under the curve (AUC) score of 1.00 in the training set and 0.80 in the test set (1).

The second model, which was called “DIFF-SVM-274 wavenumbers,” paired the DIFF preprocessing method with a Support Vector Machine (SVM) algorithm and 274 wavenumbers (1). This model differentiated cases of mastitis from chronic or persistent mastitis, achieving AUC scores of 0.87 in the training set and 0.85 in the test set (1).

The results demonstrate the significant potential of MIR-based diagnostic models to support dairy farmers with faster and more affordable mastitis detection.

What were the limitations of this study?

Although the two models demonstrated potential in diagnosing udder health, the researchers acknowledged more work is needed before their method is widely disseminated. They explained that a model designed to distinguish between healthy cattle and those with suspicious mastitis showed poor test performance, indicating that additional research is needed (1). The authors noted that incorporating more representative and diverse samples would likely improve the precision and versatility of the diagnostic models (1). They also suggested future work could integrate factors such as lactation stage data to refine prediction accuracy.

The development of these MIR-based diagnostic tools could mark a turning point in dairy health management. By expanding the application of SCC and DSCC proxies while lowering costs, the models have the potential to streamline mastitis monitoring, reduce economic losses, and improve animal welfare across dairy farms (1).

References

  1. Ren, X.; Chu, C.; Bao, X.; et al. Development of Mid-Infrared Spectroscopy (MIR) Diagnostic Model for Udder Health Status of Dairy Cattle. Animals 2025, 15 (15), 2242. DOI: 10.3390/ani15152242
  2. Wieland, M. Mastitis in Cattle. Merck Veterinary Manual. Merck & Co. Available at: https://www.merckvetmanual.com/reproductive-system/mastitis-in-large-animals/mastitis-in-cattle (accessed 2025-09-22).

Related to this article

Atoms Don't Lie–The Remaking of Atomic Spectroscopy, © Hallie -chronicles-stock.adobe.com
Atomic spectroscopy has quietly gone from counting elements in bulk to counting single nanoparticles, imaging tissue at the micrometer scale, and reading Martian rocks from several meters away. The instruments got smaller, the software got smarter, and the questions they can now answer got a lot more interesting.
Tutorial Tuesday: When to Use Infrared Spectroscopy
In this “Tutorial Tuesday” clip, Peter Larkin, who is a Manager of Spectroscopy, Thermal Analysis, and Chromatography at Syensqo, highlights how people use the method or technique that they are comfortable with, even if it’s not the best one to use.
Spectroscopy Top 10 DOI Articles of the Month (September 2026)
The following articles are the most accessed digital object identifier (DOI) manuscripts for Spectroscopy and LCGC International during the month of September 2026. Nine articles are individually ranked here by DOI page views; the third-highest entry (186 views) was recorded against the bare journal-level DOI rather than an individual article and is therefore not attributable to a single manuscript.
Work of the surgeon in the hospital operating room. Concentrated doctor with glasses. | Image Credit: © velimir - stock.adobe.com
Jürgen Popp explains how head and neck surgeons in Jena use a Raman probe to locate tumor borders, why the technique could replace frozen section biopsies, and why optical tools must adapt to clinical workflows rather than the other way around.