Towards practical application of sensors for monitoring animal health; design and validation of a model to detect ketosis