Related Experiment Video
Updated: Feb 12, 2026

Asthma Detection Research Based on Voice Signal Processing and Machine Learning
Published on: July 22, 2025
Machine learning for detection of subclinical mastitis: A Bayesian approach incorporating diagnostic test properties
Charlott Olofsson1, Aliaksandr Hubin2, Hilde Vinje2
1Department of Production Animal Clinical Sciences, Faculty of Veterinary Medicine, Norwegian University of Life Sciences, Universitetstunet 3, Å s, 1433, Norway.
Abstract:
The large amount of data collected through automatic milking systems (AMS) may be used for early detection of intramammary infections and become instrumental for monitoring udder health in dairy herds. Machine learning (ML) techniques can aid in improving diagnostic test properties of current indicators of subclinical mastitis (SCM). In this study, we present novel customized ML models for predicting SCM from AMS data. We show how results from several diagnostic tests can be incorporated into ML model training by explicitly accounting for their sensitivity and specificity. The underlying infection status was modeled as a latent variable derived from bacteriological culture (BC) and polymerase chain reaction (PCR) results on milk samples. Model performance was evaluated using a customized log-likelihood (CLL) function, addressing uncertainty in prediction target, and compared with traditional metrics using simulated data. Our study demonstrates that incorporating prior knowledge of sensitivity and specificity of the tests directly into the likelihood function during model training enables reliable ML even in scenarios with an imperfect target variable. The customized models achieved the highest CLL scores on real data and demonstrated significantly better calibration on simulated data. At the same time, all models showed similarly near-perfect area under the curve (AUC) on simulated data. Further validation across herds is needed, but our approach shows promise for robust SCM prediction from AMS data using ML. The framework is applicable to other scenarios in veterinary epidemiology with imperfectly measured outcomes.
Related Concept Videos
Machines
A free-body diagram of the...
Machines: Problem Solving II
Machines: Problem Solving I
The toggle clamp system is a machine structure consisting of movable, pin-connected multi-force members that form a stabilized system to transmit forces. The...
Avoidance Learning and Learned Helplessness
Avoidance learning occurs when an organism learns that a specific behavior can prevent an unpleasant outcome. For example, a student who receives a bad grade may start studying harder to avoid future poor grades. This behavior persists even when the negative outcome is no longer present. Avoidance learning is powerful because it maintains behavior in the absence of the...
Physical and Chemical Properties of Matter
Properties of Transition Metals

