Automated detection of oestrus and mastitir in dairy cows by