References

Anagnostopoulos A, Griffiths BE, Siachos N, Neary J, Smith RF, Oikonomou G Initial validation of an intelligent video surveillance system for automatic detection of dairy cattle lameness. Front Vet Sci.. 2023; 10 https://doi.org/10.3389/fvets.2023.1111057

Berckmans D General introduction to precision livestock farming. Animal Frontiers.. 2017; 7:(1)6-11 https://doi.org/10.2527/af.2017.0102

Borderas TF, Rushen J, von Keyserlingk MA, de Passillé AM Automated measurement of changes in feeding behavior of milk-fed calves associated with illness. J Dairy Sci.. 2009; 92:(9)4549-4554 https://doi.org/10.3168/jds.2009-2109

Borges Oliveira DA, Ribeiro Pereira LG, Bresolin T A review of deep learning algorithms for computer vision systems in livestock’. Livestock Science. 2021; 253 https://doi.org/10.1016/j.livsci.2021.104700

Carslake C, Vázquez-Diosdado JA, Kaler J Machine learning algorithms to classify and quantify multiple behaviours in dairy calves using a sensor: moving beyond classification in precision livestock. Sensors (Basel).. 2020; 21:(1) https://doi.org/10.3390/s21010088

Clifton DA, Niehaus KE, Charlton P, Colopy GW Health Informatics via Machine Learning for the Clinical Management of Patients. Yearb Med Inform.. 2015; 10:(1)38-43 https://doi.org/10.15265/IY-2015-014

Ebrahimie E, Ebrahimi F, Ebrahimi M Hierarchical pattern recognition in milking parameters predicts mastitis prevalence. Comp Electro Agri.. 2018; 147:6-11 https://doi.org/10.1016/J.COMPAG.2018.02.003

Esteva A, Kuprel B, Novoa RA Dermatologist-level classification of skin cancer with deep neural networks. Nature.. 2017; 542:(7639)115-118 https://doi.org/10.1038/nature21056

De Fauw J, Ledsam JR, Romera-Paredes B Clinically applicable deep learning for diagnosis and referral in retinal disease. Nat Med.. 2018; 24:(9)1342-1350 https://doi.org/10.1038/s41591-018-0107-6

Fenlon C, O’Grady L, Mee JF, Butler ST, Doherty ML, Dunnion J A comparison of 4 predictive models of calving assistance and difficulty in dairy heifers and cows. J Dairy Sci.. 2017; 100:(12)9746-9758 https://doi.org/10.3168/jds.2017-12931

Gunčar G, Kukar M, Notar M An application of machine learning to haematological diagnosis. Sci Rep.. 2018; 8:(1) https://doi.org/10.1038/s41598-017-18564-8

Guzella TS, Caminhas WM A review of machine learning approaches to spam filtering. Expert Syst Appl.. 2009; 36:(7)10206-10222 https://doi.org/10.1016/J.ESWA.2009.02.037

Henderson AC, Hudson CD, Bradley AJ, Sherwin VE, Green MJ Prediction of intramammary infection status across the dry period from lifetime cow records. J Dairy Sci.. 2016; 99:(7)5586-5595 https://doi.org/10.3168/jds.2015-10684

Hennessey E, DiFazio M, Hennessey R, Cassel N Artificial intelligence in veterinary diagnostic imaging: A literature review. Vet Radiol Ultrasound. 2022; 63:(Suppl 1)851-870 https://doi.org/10.1111/vru.13163

Hudson C, Kaler J, Down P Using big data in cattle practice.. Practice. 2018; 40:(9)396-410 https://doi.org/10.1136/inp.k4328

Hyde RM, Down PM, Bradley AJ Automated prediction of mastitis infection patterns in dairy herds using machine learning. Sci Rep.. 2020; 10 https://doi.org/10.1038/s41598-020-61126-8

Hyde R, Green M, Hudson C, Remnant J Practical data skills for the farm animal vet.. Practice. 2021; 43:(5)257-268 https://doi.org/10.1002/INPR.53

Ingle S, Phute M Tesla autopilot: semi autonomous driving, an uptick for future autonomy. Int Res J Eng Tech.. 2016; 3:(9)369-372

Kaur K, Rampersad G Trust in driverless cars: Investigating key factors influencing the adoption of driverless cars. J Eng Tech Manag.. 2018; 48:87-96 https://doi.org/10.1016/j.jengtecman.2018.04.006

The BellKor Solution to the Netflix Grand Prize. 2009. https://www.netflixprize.com/leaderboard

Lynch CJ, Liston C New machine-learning technologies for computer-aided diagnosis. Nat Med.. 2018; 24:(9)1304-1305 https://doi.org/10.1038/s41591-018-0178-4

Machado G, Mendoza MR, Corbellini LG What variables are important in predicting bovine viral diarrhea virus? A random forest approach. Vet Res.. 2015; 46:(1) https://doi.org/10.1186/s13567-015-0219-7

Obermeyer Z, Emanuel EJ Predicting the future - big data, machine learning, and clinical medicine. N Engl J Med.. 2016; 375:(13)1216-1219 https://doi.org/10.1056/NEJMp1606181

Parikh RB, Teeple S, Navathe AS Addressing bias in artificial intelligence in health care. JAMA.. 2019; 322:(24)2377-2378 https://doi.org/10.1001/jama.2019.18058

Riaboff L, Shalloo L, Smeaton AF Predicting livestock behaviour using accelerometers: A systematic review of processing techniques for ruminant behaviour prediction from raw accelerometer data. Comput Electron Agric.. 2022; 192 https://doi.org/10.1016/j.compag.2021.106610

Rodenburg J Robotic milking: Technology, farm design, and effects on work flow. J Dairy Sci.. 2017; 100:(9)7729-7738 https://doi.org/10.3168/jds.2016-11715

Steensels M, Antler A, Bahr C, Berckmans D, Maltz E, Halachmi I A decision-tree model to detect post-calving diseases based on rumination, activity, milk yield, BW and voluntary visits to the milking robot. Animal.. 2016; 10:(9)1493-1500 https://doi.org/10.1017/S1751731116000744

The BigChaos Solution to the Netflix Grand Prize. 2009. https://www.asc.ohio-state.edu/statistics/statgen/joul_aut2009/BigChaos.pdf

The future of AI for livestock veterinary practice

02 November 2023
6 mins read
Volume 28 · Issue 6
 There is great potential for autonomous AI algorithms in reducing labour demands for veterinarians and farmers.
There is great potential for autonomous AI algorithms in reducing labour demands for veterinarians and farmers.

Abstract

Artificial intelligence is a hot topic at present, although there is some confusion about what it involves. Translating artificial intelligence technology into production animal veterinary practice has the potential to transform how veterinary surgeons operate. The farm veterinarians of the future will no doubt require additional tools and skills that leverage advances in artificial intelligence for the improvement of animal health, welfare and productivity.

The use of artificial intelligence (AI) algorithms has become normalised in our everyday lives, from filtering our spam emails (Guzella and Caminhas, 2009) and suggesting which films to watch on Netflix (Koren, 2009; Töscher et al, 2009) to the advent of semi-autonomous vehicles (Ingle and Phute, 2016). The possibility to translate AI technology into production animal veterinary practice is extremely exciting and has the potential to transform how we operate as veterinary surgeons. The role of the farm animal veterinarian has evolved greatly over the last few decades, with a shift from routine procedures (such as disbudding) to a more preventative management role through the use of big data in cattle practice (Hudson et al, 2018). The list of critical farm animal veterinary equipment has shifted from having a disbudding iron in the car, to needing a laptop for herd health data analysis, and the farm vet of the future will no doubt further evolve to require additional tools and skills that leverage advances in AI for the improvement of animal health, welfare and productivity.

What is AI?

There is often a degree of confusion as to what ‘AI’ is; particularly with the ‘intelligence’ component, with it often being presumed that AI algorithms are truly intelligent, and able to ‘think’ as humans do. We are not yet at the stage of truly sentient algorithms, but they are able to mimic human outputs extremely accurately, such as the advent of ChatGPT. AI algorithms are often seen as a ‘black box’ where (contrary to conventional modelling techniques) the exact parameters utilised are not clear, but they largely learn in the same way that a veterinary student might do; learning patterns in data to make accurate decisions (Obermeyer and Emanuel, 2016), which we can subsequently test on novel data to measure the performance of the algorithms. There have been a range of medical applications of AI algorithms reported in scientific literature, including the accurate classification of skin cancer (Esteva et al, 2017), retinal disease (De Fauw et al, 2018), and haematological interpretation (Gunčar et al, 2018).

There is a range of publications exploring AI approaches to veterinary diagnostic imaging (Hennessey et al, 2022). While there is great potential for AI to accurately classify disease in a medical setting, these will only be effective for patients from a collaborative approach between data scientists and practitioners (Lynch and Liston, 2018), and although there are a large number of research projects showing the benefits of AI in the clinical management of patients, translation of this into clinical practice is far more seldom (Clifton et al, 2015). In livestock a commonly used term is precision livestock farming, which aims to provide real-time monitoring and management systems for farmers by combining different sensor technologies, data analytics and automation (Berckmans, 2017).

What is already available?

There are a range of monitoring systems already in practice on UK farms, including the prediction of high somatic cell counts (Ebrahimie et al, 2018) and the onset of calving (Fenlon et al, 2017). Sensor technology is being analysed to make decisions on anything from fertility to identifying disease through changes in rumination (Steensels et al, 2016). The use of automated feeding stations for animals represents an exciting opportunity for the early identification of disease; for example, the changes in feeding behaviour of calves being related to disease in calves (Borderas et al, 2009). Sensors could also be used to detect indicators of positive welfare states, such as play behaviour in calves (Carslake et al, 2020). In addition, there is also the potential for predictive models, including using somatic cell count to predict the the likelihood of recovery from a disease (Henderson et al, 2016). It is also possible to diagnose disease at a herd level such as with bovine viral diarrhoea (Machado et al, 2015) and the mastitis origin of a herd (Hyde et al, 2020).

There is great potential for autonomous AI algorithms in reducing labour demands for veterinarians and farmers, with one example being robotic milking units (Rodenburg, 2017). While there are always concerns with the effects of labour replacement on job security, far from replacing the job of the farmer, these technologies have the potential to liberate the modern proactive farmer from the more mundane physical tasks of dairy farming and moving them to a position of being able to act in a managerial role – a far better direction of labour. Automatically identifying disease and segregating animals for treatment has the potential to reduce manual labour, and potentially reduce animal handling stress in the same fashion.

There is great potential for autonomous AI algorithms in reducing labour demands for veterinarians and farmers.

While sensors are commonplace, they can be limited in the information transmitted (Riaboff et al, 2022), often being based on accelerometer or XYZ coordinates. The advent of accurate computer vision algorithms means that detailed health and welfare behaviour can be monitored for groups of animals (Borges Oliveira et al, 2021) with a single camera, rather than requiring a single sensor per animal. Using cameras and AI to automatically monitor how livestock are behaving could provide vets and farmers with objective insights into livestock management, health and welfare. Such monitoring could pave the way for new veterinary consultancy services and performance monitoring. Computer vision can also help identify different diseases, such as the accurate identification of cattle lameness compared with human observers (Anagnostopoulos et al, 2023). There is a range of data skills that the production animal veterinary surgeon can learn to upskill in the age of AI (Hyde et al, 2021).

There are a number of challenges in developing AI algorithms, including the sheer volume of data from a myriad of sources; if we can pull all these together AI would have a better chance of learning patterns, but the fragmented nature of data including cattle movement records (and births/deaths), herd management software, milk recording organisation data, milking parlour/robot data, activity monitors, not to mention paper records, make this challenging (Hudson et al, 2018). Only by streamlining the currently disparate sources of data in effective pipelines will we unlock the true potential of AI algorithms.

Risks of AI

There are concerns about loss of jobs, but it should be anticipated that AI for veterinary surgeons will provide an incredible tool to improve their veterinary ability, shifting some of the more mundane elements of the job into more engaging tasks deciding what practical management changes to make depending on the data. There is certainly a risk of bias in AI, which has been seen in the human field with relation to race, gender and social status (Parikh et al, 2019). The risk of bias is a real possibility in production animal medicine, and AI trained on certain breeds, scenarios or in certain environments may not provide information that can be generalised to other animals or environments. There is a question as to whether a veterinary surgeon relying on AI for diagnosis would be responsible for a misdiagnosis, and there are a range of ethical questions around the responsible use of AI in veterinary medicine. There is certainly a need for regulatory oversight.

Trust in AI can be challenging, and in the autonomous driving literature it has been shown that even if driverless cars were accurate there are a multitude of reasons why people might still distrust their efficacy (Kaur and Rampersad, 2018). It is very hard to assess whether an AI algorithm is ‘good’ enough to trust as a vet would be trusted; an accuracy of 95% in classifying disease might sound excellent, but if the prevalence of disease in the dataset was 5% then the algorithm could completely miss all disease cases (0% sensitivity) and still end up with a 95% ‘accuracy’. It will be important for companies providing AI tools for vets and farmers to provide multiple performance metrics (such as sensitivity, specificity and balanced accuracy) to allow veterinary surgeons to make informed decisions. It is also important to avoid the ‘black box’ nature of some algorithms by providing the confidence interval of an algorithm to practitioners; a ‘negative’ diagnosis of anthrax by a (well-calibrated) algorithm with a confidence of 51% might be treated entirely differently to an equally ‘negative’ diagnosis of anthrax, but with a confidence of 99.999%.

The future of AI in production animal veterinary practice

There is no doubt that there have been, and will continue to be, incredible developments in the field of AI for animal health. The use of AI algorithms to diagnose/prevent disease in livestock will continue to advance, and the role of the veterinary surgeon will need to evolve to keep pace with these advances in technology. A further shift away from providing physical services to one of data management and interpretation is certainly possible. As more data and AI driven insights become available, it is likely that other stakeholders, such as welfare assurance schemes and product buyers, will want access to help verify and improve production standards. Vets will have a vital role to play in ensuring the veracity of these data and that insights are used to make tangible improvements to health and welfare. Indeed, while the accurate performance of AI algorithms to provide useful data is exciting, it is only useful (and often only safe) if it is interpreted and actioned upon by someone with a detailed holistic understanding of production animal health and welfare, and veterinary surgeons are well placed to fill this role.

Technological advances in the field of AI will happen whether veterinary surgeons are involved or not, and veterinary practitioners must decide whether they wish to be in the driver's seat, making the most of the potential of AI in revolutionising animal health and welfare, or simply as a passenger.