Automated Mastitis Pattern Analysis Tool simplifies mastitis control on UK farms

In late spring of 2022, the United Kingdom rolled out its new automated Mastitis Pattern Analysis Tool (MPAT), a tool that further simplifies its long-standing Mastitis Control Plan. The easy-to-use tool analyses individual herd data and offers producers and herd managers a report on the pattern of mastitis on-farm. It allows users to identify the predominant infection pattern, whether it is environmental or contagious and occurs during lactation or the dry period. It also identifies the seasonality of infection, as well as the presence of infection in heifers. According to Andrew Bradley, Professor of Dairy Herd Health and Production in the Faculty of Medicine & Health Sciences at the University of Nottingham and Director of Quality Milk Management Services Ltd. (QMMS), the tool has been a great success.
History of mastitis in the UK
The UK began its approach to controlling mastitis in the 1960s. Research done by the National Institute for Research in Dairying at the University of Reading resulted in a five-point plan that aimed to control the spread of contagious mastitis between cows during milking. Results have been positive. Incidence rates across the country fell from more than 150 cases per 100 cows per year in some herds to 40 cases per 100 cows per year between 1967 and 1982. At that time, national average bulk milk somatic cell counts also dropped from over 600,000 cells/ml to 400,000 cells/ml.
Since that time, researchers conducted several small studies to determine the national rates of clinical mastitis across the country. Rates of clinical mastitis had not changed much from 15–20 years earlier. The studies revealed, however, that the pathogens causing mastitis were significantly different. While incidence of contagious pathogens had dropped, environmental pathogens, which are adapted to survive in the environment, had risen. As a result, the UK’s Department for Environment, Food & Rural Affairs (Defra) began a campaign to increase awareness of environmental pathogens and added a sixth point to the five-point plan: control of the cow’s environment. The plan, however, did not go into detail on environmental management.
More recent work, which was carried out in 2004-2005, showed a higher incidence of clinical mastitis in UK dairy herds than previously understood. Some of the farms were reporting over 100 cases per 100 cows each year. The work confirmed a significant shift towards environmental causes, which demonstrated the need for an even more structured plan. Funded by DairyCo, the new plan, the DairyCo Mastitis Control Plan, was developed in 2004. The plan was rolled out nationwide in 2009. “It really started when Martin Green and I began analysing mastitis data to understand the importance of the lactating period versus the dry period in mastitis control,” said Bradley. “Martin and I initially did those analyses with spreadsheets and then with our software, TotalVet.”
Broadly speaking, infections can be categorised as environmental or contagious and occur during lactation or the dry period. The strength of the initial Mastitis Control Plan is that it narrowed down the areas that farmers needed to target for mastitis control.
“As we rolled out the Mastitis Control Plan initiative in the UK, demand came in from vets and consultants for support in differentiating the patterns of disease on-farm,” Bradley said.
Bradley and his colleagues first developed an Excel-based tool to assist in differentiating disease patterns, which was then wrapped up into a new initiative, Quarter Pro, to help further simplify the approach developed as part of the original Mastitis Control Plan. It helped farmers to identify problems areas, review and implement change, and then monitor herd health status over the long term. But it, too, was cumbersome.
“Before MPAT, everything was processed manually. The vet or consultant had to go and get the data, convert the data into a compatible format, download the tool, export the data into Excel, import it into the tool, and then actually go through loads of different tabs to see what the likely patter was before they could go and speak to the farmer,” Bradley explained.
The original Excel based tool became the basis upon which the MPAT was built, but with significant improvements with the addition of machine learning technology.
A new approach
Bradley and his team quickly realised how much simpler the process would be if they could only transfer data automatically from milk recording organisations to a tool that used machine learning, rather than manual labour, to predict patterns. The University of Nottingham in partnership with QMMS Ltd., supported by funding from the Biotechnology and Biological Sciences Research Council (BBSRC), were able to develop MPAT alongside a cloud-based project (REMEDY (funded by Innovate UK)). First, the team developed an automated data transfer link between milk recording organisations and the cloud-based REMEDY platform. Then, they added machine learning to analyse the automatically uploaded data. Today, any farmer who uses milk recording can utilise MPAT. Farmers who use milk recording can utilise MPAT.
The value of MPAT is that it not only analyses key performance indicators, but also detects patterns and predicts the relative importance of different disease patterns on farm. The single-page report issued highlights herd-specific and seasonal patterns on the farm, helping farmers and herd managers to prioritise key management areas and detect emerging problems on-farm. MPAT analyses several parameters, including, but not limited to the bulk milk somatic cell count, the proportion of the herd that is chronically infected, the proportion of the herd that is above 200,000 SCC, clinical mastitis parameters, the lactation new infection rate by cell count, the dry period new infection rate, and the apparent cure rate.

MPAT also assesses the quality of data used for the analysis. Quality is based on parameters such as the frequency of milk recording. Bradley said milk recording herds are at an advantage as individual SCC information is needed to run the MPAT. Data from historical records can be added to the tool for deeper analysis based on long-term data.
If requested, Mastitis Pattern Analysis reports can be emailed to farmers automatically following each milk recording. Currently, approximately 500 UK farms are signed up to receive a report. The report includes a QR-code at the bottom, which takes farmers to the AHDB website where they can find resources that provide further information on mastitis control. QMMS can provide further assistance in reading and understanding the report, if needed.
Recently, Bradley and his colleagues analysed data from 100 sentinel herds as part of an AHDB-funded project that demonstrated significant improvements in mastitis control in the UK over the past 10 years. The resulting paper, Improvement of mammary gland health in 81 ‘sentinel herds’ in England and Scotland between 2012 and 2021 (scan QR), was published in the Veterinary Record.

The sentinel farms were not totally randomly selected, as selections were based on strong records, which means the resulting report does not provide absolute values for the industry. However, overall, results were good. Over the 10-year period, the median incidence rate of clinical mastitis decreased from 40.0 to 21.0 cases per 100 cows per year (p < 0.001), with improvement in both lactation and dry period indicators. Lactation new infection rate calculated from individual cow somatic cell counts fell from 8.75% to 5.95% (p < 0.001), dry period new infection rate fell from 16.8% to 14.1% (p < 0.05) and proportion of cows over 200,000 cells/mL fell from 20.0% to 14.3% (p < 0.001).
With its easy-to-use platform, MPAT is sure to further improve udder health and further lower incidence of mastitis on-farm in the coming years. It is hoped that similar approaches to automated disease pattern analysis can be extended to lameness and infectious diseases such as John’s Disease. In parallel, the University of Nottingham and QMMS are working on tools to predict cow and farm level outcomes to help further inform treatment and management decisions on farm.







