Skip to ContentSkip to Navigation
Part of University of Groningen
Science LinX Science Linx News

Predicting calving problems before insemination

23 December 2022

A small percentage of cows will experience problems when calving and breeders would like to know which cows are at risk. Using the vast dataset of the Dutch cattle breeding company CRV, computer scientists at the University of Groningen used artificial intelligence to develop a predictive model that in theory could halve the number of calving problems. They published their results on 5 December in the journal Preventive Veterinary Medicine.

Cattle breeding is data science. Breeding firms provide semen from bulls and register the success of their offspring. Data on the milk yield of the cows and many other characteristics are collected and stored in a huge database, together with the genetic data from all the animals. This allows the companies to attribute an ‘estimated breeding value’ to the animals and find matches for optimal breeding.



One aspect of breeding is the birthing of calves. In about 3.3 percent of all cases, some kind of complication occurs during calving, which is referred to as dystocia. ‘This could range from the calf needing to be pulled to needing veterinary intervention,’ explains Ahmad Alsahaf. ‘There are models to predict the risk of dystocia, but these work with data that are only available after insemination. We wanted to produce a model that could predict the risk before insemination.’

Alsahaf now works as a postdoctoral researcher at the Department of Biomedical Sciences of Cells & Systems of the University Medical Center Groningen, but he has worked on a predictive model for dystocia during his PhD project at the Intelligent Systems research group at the Bernoulli Institute for Mathematics, Computer Science and Artificial Intelligence at the University of Groningen in The Netherlands.

‘We were asked to create this model for the cattle breeding company CRV and they gave us a large dataset comprising information on cows and bulls,’ says Alsahaf. ‘We first used a machine-learning system to analyse the data and create a provisional model. Then, we checked if the most important risk factors made sense. They did and, therefore, we proceeded to build a full model.’


There were two main challenges: the first was to clean up and compile the available data. The second was that only 3.3 percent of pregnant cows experience dystocia. ‘This meant that there was a huge imbalance in our dataset,’ explains Alsahaf. To solve this, he created a large number of subsets with balanced data and aggregated those to train the predictive model. ‘Subsequently, we tested this model on a subset of the data that was not used for training and studied the results.’ It turned out that the model performed significantly better than chance.

‘A colleague of ours calculated that, under ideal circumstances, our model could roughly halve the risk of dystocia. But this requires an ideal combination of bull and cow, which is not always possible.’ Nevertheless, the model can help farmers and the breeding company to assess the risk of a particular mating before insemination. ‘This is important since, so far, all other models require information gathered after insemination, which means you are not really preventing complications.’

Reference: Ahmad Alsahaf, Radu Gheorghe, André M. Hidalgo, Nicolai Petkov and George Azzopardi: Pre-insemination prediction of dystocia in dairy cattle. Preventive Veterinary Medicine, 5 December 2022

Last modified:23 December 2022 11.39 a.m.
View this page in: Nederlands

More news

  • 11 December 2023

    Join the 'Language and AI' community

    As a part of the Jantina Tammes School, the 'Language and AI' theme is an interdisciplinary initiative that aims to encourage collaboration among academics, PhD candidates, students, and industry representatives who share a keen interest in the...

  • 13 October 2023

    Moniek Tromp appointed Captain of Science of the Top Sector Chemistry

    Prof. Moniek Tromp has been appointed Captain of Science of the Chemistry Top Sector by the Minister of Economic Affairs and Climate Policy. As from 1 July 2023, she succeeded Prof. Bert Weckhuysen from Utrecht University.

  • 12 September 2023

    Art in times of AI

    Leonardo Arriagada Beltran conducted his PhD research on the interface of computer-generated art and the constantly evolving field of Artificial Intelligence (AI). He will defend his Phd thesis on 21 September. His research offers valuable insights...