Automating classification of veterinary biosecurity recommendations using machine learning
ProAction® is a mandatory Canadian milk quality assurance program that requires dairy farmers to conduct a biosecurity risk assessment with a veterinarian. Based on this assessment, the veterinarian provides personalized recommendations to improve farm biosecurity, resulting in a large volume of text data. This study aimed to develop a machine learning model capable of automatically classifying these biosecurity recommendations into 12 predefined categories. As the recommendations were written in French or English, all texts were translated into French to ensure consistency in feature extraction and model training. The model was trained on 11,250 manually classified veterinary recommendations from 3825 Québec dairy herds, collected between 2018 and 2021. Three algorithms were tested: Multinomial Naïve Bayes (MNB), Support Vector Machine (SVM), and Random Forest (RF). Performance was evaluated using precision, recall, and F1-score. The SVM achieved the highest performance while maintaining efficient processing time. The trained SVM model was selected to classify new recommendations collected between 2022 and 2024 from herds in Alberta, Ontario and Québec. To evaluate model's performance on this new dataset, a random sample of 250 recommendations was manually classified. The agreement between human classification and model predictions resulted in a Cohen's Kappa of 0.88, suggesting strong agreement. This study highlights the potential of machine learning to classify biosecurity recommendations and support timely, informed decision-making in dairy herd management.
Authors
- William Lelorel Nankam Nguekap (ORCID: https://orcid.org/0000-0002-6329-8268)
- David L. Renaud (ORCID: https://orcid.org/0000-0002-3439-3987)
- Manon Racicot (ORCID: https://orcid.org/0000-0002-5003-5901)
- Waseem Shaukat (ORCID: https://orcid.org/0000-0002-9117-3438)
- Simon Dufour (ORCID: https://orcid.org/0000-0001-6418-0424)
- D.F. Kelton (ORCID: https://orcid.org/0000-0001-9606-7602)
- Mariana Fonseca (ORCID: https://orcid.org/0000-0002-6383-2547)
- Juan Carlos Arango‐Sabogal (ORCID: https://orcid.org/0000-0003-3395-8410)
- Herman W. Barkema (ORCID: https://orcid.org/0000-0002-9678-8378)
- Nancy Beauregard (ORCID: https://orcid.org/0000-0002-2766-6051)
- M.P. Morin (ORCID: https://orcid.org/0000-0002-3671-0130)
- Jean‐Philippe Roy (ORCID: https://orcid.org/0000-0002-0444-2303)
- Cécile Aenishaenslin (ORCID: https://orcid.org/0000-0002-8594-4945)
- Marie-Ève Paradis (ORCID: https://orcid.org/0009-0003-4577-2645)
- Pablo Valdés Donoso (ORCID: https://orcid.org/0000-0003-1007-2668)
- Gilles Fecteau
- Solène Le Manac'h
- Faustin Farison
- Vitória R Lima-Campêlo (ORCID: https://orcid.org/0009-0005-6368-7465)
- Karol G Solano-Suarez
Institutions
- University of Calgary (CA)
- Cegep de Saint Hyacinthe (CA)
- Association des Médecins Vétérinaires du Québec (CA)
- Université de Montréal (CA)
- University of Guelph (CA)
Publication Details
- Journal
- Preventive Veterinary Medicine
- Published
- 2025-10-15
- DOI
- https://doi.org/10.1016/j.prevetmed.2025.106723
- Primary Topic
- Text and Document Classification Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00