methods for sensor based farrowing prediction and floor-heat regulation: the intelligent farrowing...

125

Upload: aparna-udupi

Post on 08-Jul-2015

194 views

Category:

Presentations & Public Speaking


2 download

DESCRIPTION

Piglet mortality is a current issue in the pig production and the large variability between herds suggests a management component to the mortality. Studies show that the mortality may be reduced by the supervision of farrowing or through climate regulation in the farrowing pens. However, this is possible only if the farrowing time is known and thus provides sufficient time for the management to make and execute the decisions. The gestation period of a sow is approximately 115 (SD=2) days. However, an initial cost-benefit analysis recommended increased precision in the prediction of farrowing to make the increased management efforts cost-effective for the pig producer. Recently, a wide range of sensor technology have become available to monitor the behavioural and physiological changes of sow. Evidence show that appropriate utilization of sensor technology may increase the precision of prediction of onset of farrowing. Prediction is feasible only if the prediction is online and automated. The thesis is focused on constructing a system that can give predictions about the expected time to farrowing of individual sows based on automatic sensor recordings such as water consumption, video based activity measurements, and photo-cells based activity measurements. The warnings could serve to activate the floor heating system to ensure a sufficiently high temperature for the new born piglets, as well as to help the farmer to organize extra surveillance around farrowing. The thesis is based on three submitted manuscripts, describing the system at different stages. The kernel in the thesis is a Markov process with four subsequent states Before Nest-Building, Nest-Building, Resting and the absorbing state Farrowing; the states were selected based on ethological knowledge about sow behaviour. However, the sojourn time distribution in each state is not exponential. Therefore a continuous time discrete state semi-Markov process based on a Phase-Type distribution (in this case Erlang distributed) was formulated. Finally, the Markov process was transformed to a discrete time process. A Hidden Markov Model (HMM) was used for this process. The model is called Hidden Phase-type Markov Model (HPMM), and the time steps corresponded to each updating with sensor information at which the time to farrowing was predicted. The POMDP model for optimizing the floor-heat regulation system was used to demonstrate the decision support tool as an extension to the prediction algorithm. The tools for the prediction of onset of farrowing, estimation of HPMM and optimal decision making provides a framework for handling a large amount of sensor data available and gives an overview of how to integrate information from several sensors on the pen level. The complexity of the models imply that the prediction algorithm and decision tool may be run on the herd level computer; whereas the parameters were estimated on the central level computers.

TRANSCRIPT

Page 1: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Methods for Sensor Based Farrowing Prediction and

Floor-heat Regulation

The Intelligent Farrowing Pen

Ph.D. Dissertation

Aparna U.

Dept. of Animal Science

Aarhus University

Denmark

18 March, 2014

Aparna U. The Intelligent Farrowing Pen 1 / 42

Page 2: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Objective

To develop and validate an automated system that

monitors the pre-parturition behaviour of the sow in thefarrowing pen,

predicts the onset of farrowing

would further help the farm manager to optimize the decisionsrelated to parturition and post-parturition - e.g. optimal�oor-heat regulation system

by integrating several sensor information

purpose

"to reduce the piglet mortality"

*Study was supported by The Danish National Advanced TechnologyFoundation

Aparna U. The Intelligent Farrowing Pen 2 / 42

Page 3: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 3 / 42

Page 4: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 3 / 42

Page 5: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 3 / 42

Page 6: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 3 / 42

Page 7: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 3 / 42

Page 8: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm

Estimation Algorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 3 / 42

Page 9: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 3 / 42

Page 10: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 3 / 42

Page 11: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation SystemAparna U. The Intelligent Farrowing Pen 3 / 42

Page 12: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm

Aparna U. The Intelligent Farrowing Pen 4 / 42

Page 13: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Gestation PeriodBehavioural States

Mating Farrowing

115±2 days

Aparna U. The Intelligent Farrowing Pen 5 / 42

Page 14: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Gestation PeriodBehavioural States

Mating Farrowing

115±2 days

Nest-Building

Aparna U. The Intelligent Farrowing Pen 5 / 42

Page 15: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Gestation PeriodBehavioural States

Mating Farrowing

115±2 days

Nest-Building

Resting

Aparna U. The Intelligent Farrowing Pen 5 / 42

Page 16: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Gestation PeriodBehavioural States

Mating Farrowing

115±2 days

Nest-Building

RestingBefore Nest-Building

Aparna U. The Intelligent Farrowing Pen 5 / 42

Page 17: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Gestation PeriodBehavioural States

Mating Farrowing

115±2 days

Nest-Building

RestingBefore Nest-Building

110 days Into FarrowingPen

Aparna U. The Intelligent Farrowing Pen 5 / 42

Page 18: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Farrowing PenNumber of sows observed: 64

Aparna U. The Intelligent Farrowing Pen 6 / 42

Page 19: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Sensor set-up at the pen levelNumber of sows observed: 64

Aparna U. The Intelligent Farrowing Pen 7 / 42

Page 20: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Online Recording of Sensor Observation for a Sow - An ideaWater consumption

Aparna U. The Intelligent Farrowing Pen 8 / 42

Page 21: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Sensor observation for a sow - meanActivity

●●

●●

●●●

●●●

●●

●●

●●

●●

●●●

●●●

●●●●●

●●

●●

●●●

●●

●●

●●

●●

●●●●●

●●●

●●

●●●

●●

●●

●●

●●●●

●●

●●

●●

●●

●●

●●●

●●

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●

●●●●

●●

●●

●●

●●

●●

●●●

●●

●●

●●

●●

●●

●●●

●●

●●

34

56

78

910

Day of Farrowing:2009−01−15 03:47:09

Time Of Day

mea

nAct

ivity

(lo

g tr

ansf

orm

ed)

Jan 06 Jan 08 Jan 10 Jan 12 Jan 14

case−1

Aparna U. The Intelligent Farrowing Pen 9 / 42

Page 22: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

time line:-

t0 t

Tt : remaining time to onset of farrowing

X Stochastic process

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 23: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

time line:-

t0 t

Tt : remaining time to onset of farrowing

X Stochastic process

?Markov process

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 24: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

time line:-

t0 t

Tt : remaining time to onset of farrowing

X Stochastic process

?Markov process

(ω1, ς1) (ω2, ς2) (ω3, ς3)

Erlang

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 25: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

time line:-

t0 t

Tt : remaining time to onset of farrowing

X Stochastic process

(ω1, ς1) (ω2, ς2) (ω3, ς3)

Erlang

Markov process "semi-Markov process"

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 26: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

time line:-

t0 t

Tt : remaining time to onset of farrowing

X Stochastic process

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

Markov process "semi-Markov process"

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 27: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 28: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 29: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 30: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 31: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 32: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 33: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 34: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 35: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 36: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 37: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 38: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 39: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 40: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 41: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 42: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

States into smaller divisions -> "Behavioural Phases"

'phases' re�ect the time since mating

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 43: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 44: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

"Farrowing process" as a Markov Model

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

(ω1, ς1) (ω2, ς2) (ω3, ς3)Erlang

(m1, λ1) (m2, λ2) (m3, λ3)

'semi' Markov Process over phases

Phase-type

Convolution of three Phase-type distributions

Aparna U. The Intelligent Farrowing Pen 10 / 42

Page 45: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Farrowing and Prediction Process

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

'Hidden' +

'Markov Model'

αt : distribution of phases

Tt :time to onset of farrowing ∼ PH(αt ,S)

Prediction process

t0 tI t2 t3 tN

- discrete time points

Sensor

Pr(Yt | Phaset)

YI Y2 Y3

Aparna U. The Intelligent Farrowing Pen 11 / 42

Page 46: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Farrowing and Prediction Process

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

'Hidden' +

'Markov Model'

αt : distribution of phases

Tt :time to onset of farrowing ∼ PH(αt ,S)

Prediction process

t0 tI t2 t3

tN

- discrete time points

Sensor

Pr(Yt | Phaset)

YI Y2 Y3

Aparna U. The Intelligent Farrowing Pen 11 / 42

Page 47: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Farrowing and Prediction Process

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

'Hidden' + 'Markov Model'αt : distribution of phases

Tt :time to onset of farrowing ∼ PH(αt ,S)

Prediction process

t0 tI t2 t3

tN

- discrete time points

Sensor

Pr(Yt | Phaset)

YI Y2 Y3

Aparna U. The Intelligent Farrowing Pen 11 / 42

Page 48: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Farrowing and Prediction Process

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

'Hidden' + 'Markov Model'αt : distribution of phases

Tt :time to onset of farrowing ∼ PH(αt ,S)

Prediction process

t0 tI t2 t3

tN

- discrete time points

Sensor

Pr(Yt | Phaset)

YI Y2 Y3

Aparna U. The Intelligent Farrowing Pen 11 / 42

Page 49: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Farrowing and Prediction Process

Farrowing process - continuous time

Before Nest-Building Nest-Building Resting F

'Hidden' + 'Markov Model'αt : distribution of phases

Tt :time to onset of farrowing ∼ PH(αt ,S)

Prediction process

t0 tI t2 t3 tN

- discrete time points

Sensor

Pr(Yt | Phaset)

YI Y2 Y3

Aparna U. The Intelligent Farrowing Pen 11 / 42

Page 50: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Prediction of Onset of Farrowing

t0 tI t t + δ tI + Nδ

?

Yt

αt+δ: distribution of phases in the next prediction point

Prediction of αt+δ

At each prediction point,

1 calculates αt+δ using time transition (Markov chain)

2 updates αt+δ using the sensor information

Aparna U. The Intelligent Farrowing Pen 12 / 42

Page 51: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Prediction of Distribution of Phases αt+δ

Aparna U. The Intelligent Farrowing Pen 13 / 42

Page 52: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Prediction of Onset of Farrowing

Prediction of αt+δ

At each prediction point,

1 calculates αt+δ using time transition (Markov chain)

2 updates αt+δ using the sensor information

Tt+δ: time to onset of farrowing ∼ PH(αt+δ,S)

Statistical measures...

Expected time to onset of farrowing

Probability of onset of farrowing in 12 hours

Aparna U. The Intelligent Farrowing Pen 14 / 42

Page 53: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Prediction of Onset of Farrowing

Prediction of αt+δ

At each prediction point,

1 calculates αt+δ using time transition (Markov chain)

2 updates αt+δ using the sensor information

Tt+δ: time to onset of farrowing ∼ PH(αt+δ,S)

Statistical measures...

Expected time to onset of farrowing

Probability of onset of farrowing in 12 hours

Aparna U. The Intelligent Farrowing Pen 14 / 42

Page 54: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Validating the Prediction - how???

Aparna U. The Intelligent Farrowing Pen 15 / 42

Page 55: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Validating the Prediction - how???

Aparna U. The Intelligent Farrowing Pen 15 / 42

Page 56: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Online Prediction Curve - an example

Aparna U. The Intelligent Farrowing Pen 16 / 42

Page 57: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Warning periods - success Vs failure

Aparna U. The Intelligent Farrowing Pen 17 / 42

Page 58: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Example of False-warning Period

Aparna U. The Intelligent Farrowing Pen 18 / 42

Page 59: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Validating the Prediction Algorithm

SensorSample True Warning Dur.

Errorsize Warnings (hours)

% Mean SD (hours)

Water 38 21 11.7 2.2 3.4Video 55 98 14.4 12.5 1.6Water-Video 35 97 11.5 4.6 0.7

*threshold set at 12 hours

Aparna U. The Intelligent Farrowing Pen 19 / 42

Page 60: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Validating the Prediction Algorithm

SensorSample True Warning Dur.

Errorsize Warnings (hours)

% Mean SD (hours)

Water 38 21 11.7 2.2 3.4Video 55 98 14.4 12.5 1.6Water-Video 35 97 11.5 4.6 0.7

*threshold set at 12 hours

Aparna U. The Intelligent Farrowing Pen 19 / 42

Page 61: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Validating the Prediction Algorithm

SensorSample True Warning Dur.

Errorsize Warnings (hours)

% Mean SD (hours)

Water 38 21 11.7 2.2 3.4Video 55 98 14.4 12.5 1.6Water-Video 35 97 11.5 4.6 0.7

*threshold set at 12 hours

Aparna U. The Intelligent Farrowing Pen 19 / 42

Page 62: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Estimation Algorithm

Aparna U. The Intelligent Farrowing Pen 20 / 42

Page 63: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Estimation Algorithm

Aparna U. The Intelligent Farrowing Pen 20 / 42

Page 64: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Estimation of HPMM Parameters

by maximizing the likelihood function

Stochastic Expectation-Maximization algorithm (SEM algorithm)-iterative method

Uses time of mating and farrowing information in addition tosensor information

Phases are allocated by weighted sampling - Stochastic

Aparna U. The Intelligent Farrowing Pen 21 / 42

Page 65: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Estimation of HPMM Parameters

by maximizing the likelihood functionStochastic Expectation-Maximization algorithm (SEM algorithm)-iterative method

Uses time of mating and farrowing information in addition tosensor information

Phases are allocated by weighted sampling - Stochastic

Aparna U. The Intelligent Farrowing Pen 21 / 42

Page 66: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Estimated Sojourn time distribution

Behavioural StateDuration Number Rate(hours) of (per hour)

Mean SD PhasesBefore Nest-Building 751.20∗ 29.58 645 0.86

Nest-Building 17.02 0.80 458 26.91

Resting 0.53 0.22 6 11.40

Gestation period, days 117 1.2 1109 -

*in addition to 85 days

Aparna U. The Intelligent Farrowing Pen 22 / 42

Page 67: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Estimated Sojourn time distribution

Behavioural StateDuration Number Rate(hours) of (per hour)

Mean SD PhasesBefore Nest-Building 751.20∗ 29.58 645 0.86

Nest-Building 17.02 0.80 458 26.91

Resting 0.53 0.22 6 11.40

Gestation period, days 117 1.2 1109 -

*in addition to 85 days

Aparna U. The Intelligent Farrowing Pen 22 / 42

Page 68: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Estimated Sojourn time distribution

Behavioural StateDuration Number Rate(hours) of (per hour)

Mean SD PhasesBefore Nest-Building 751.20∗ 29.58 645 0.86

Nest-Building 17.02 0.80 458 26.91

Resting 0.53 0.22 6 11.40

Gestation period, days 117 1.2 1109 -

*in addition to 85 days

Aparna U. The Intelligent Farrowing Pen 22 / 42

Page 69: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Estimated Sojourn time distribution

Behavioural StateDuration Number Rate(hours) of (per hour)

Mean SD PhasesBefore Nest-Building 751.20∗ 29.58 645 0.86

Nest-Building 17.02 0.80 458 26.91

Resting 0.53 0.22 6 11.40

Gestation period, days 117 1.2 1109 -

*in addition to 85 days

Aparna U. The Intelligent Farrowing Pen 22 / 42

Page 70: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Conditional Distribution of Sensor Observation

Challenges with conditional model

changing pattern with calender time - BehaviouralPhases/States

diurnal rhythm conditioned on the Phase/State

model selection

dependency of the variables

dependency on the phases

Aparna U. The Intelligent Farrowing Pen 23 / 42

Page 71: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Conditional Distribution of Sensor Observation

Challenges with conditional model

changing pattern with calender time - BehaviouralPhases/States

diurnal rhythm conditioned on the Phase/State

model selection

dependency of the variables

dependency on the phases

Aparna U. The Intelligent Farrowing Pen 23 / 42

Page 72: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Conditional Distribution of Sensor Observation

Challenges with conditional model

changing pattern with calender time - BehaviouralPhases/States

diurnal rhythm conditioned on the Phase/State

model selection

dependency of the variables

dependency on the phases

Aparna U. The Intelligent Farrowing Pen 23 / 42

Page 73: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Conditional Distribution of Sensor Observation

Challenges with conditional model

changing pattern with calender time - BehaviouralPhases/States

diurnal rhythm conditioned on the Phase/State

model selection

dependency of the variables

dependency on the phases

Aparna U. The Intelligent Farrowing Pen 23 / 42

Page 74: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Conditional Distribution of Sensor Observation

Challenges with conditional model

changing pattern with calender time - BehaviouralPhases/States

diurnal rhythm conditioned on the Phase/State

model selection

dependency of the variables

dependency on the phases

Aparna U. The Intelligent Farrowing Pen 23 / 42

Page 75: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Conditional Distribution of Sensor Observation

meanActivity - sdActivity - grid activity

Pr(Yt | Si ) ∼ N (µ(Y )i , σ2i

(Y ))ζ

Simple linear model

sine-cosine functions - harmonic variables

Aparna U. The Intelligent Farrowing Pen 24 / 42

Page 76: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Conditional Distribution of Sensor Observations

0 5 10 15 20

56

78

9

Mean Level of meanActivity

Time (hrs)

mea

nAct

ivity

● ●●

●●

●● ● ●

●●

●●

●● ● ●

●● ● ●

●●

●●

● ●●

●●

●● ● ●

●●

● ● ●●

●●

state−1state−2state−3

Aparna U. The Intelligent Farrowing Pen 25 / 42

Page 77: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Pattern of Water Consumption

*

*

***

*

*

*

*

*****

*

***

**

***********

*

**

*

*

*

*

*

*

*

*

***

***

*

**

*

*

*

**

*

*

***

*

*****

*

**********

*

**

*

**

*

*

*

*

*

*

*

*

*

*

**

*

*

*

*

*

*

*

*

*

********

*

****

*

********

*

**

*

*

**

****

*

**

**

***

*

*

*

*

**

*

*

***

**

*

*****

*

****

*

*

********

*

*

*

**

**

*

*

*

*

*

***

**

*

**

*

**

*

*

*

*

*

*

******

*

******

*

***

*

*

*

*****

*

*

*

*

*

*

*

*

**

***

**

**

*

**

*

****

*

*********

*

***

*

*

*

*

*

*

*

*

**

*

*

*

*

*

*

*

*

*

**

**

*

*

**

*

**

*

**

**

*

*

*

*

*

*

*

*

*

***

*

*

**

*

*

*

*

*

***

**

*

*

*

*

**

**

**

*

*

*

*

*

**

*

***

*

*

*

*

*

***

*

**

*

*

*

*

*

****

*

*

*

*

*

*

**

*

*

*

***

*

*

*

*

*

*

***********

**

****

*

*

*

**

*

**

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

**

*

*

*

*

*

*

*

*

**

*

******

**

*

*

**********

*

*

*

*

***

*

*

*

***

*

*

*

*

*

*

**

*

*

**************

*

*

******

*

*

***

*

*

*

*

***

*

***

*

*

*

*

*

*

*

*

*

***

106 108 110 112 114 116 118

02

46

8

sinceMating

LWat

er

**

***

*

*

*

*

*****

*

***

**

***********

*

**

*

*

*

*

*

*

*

*

***

***

*

**

*

*

*

**

*

*

***

*

*****

*

**********

*

**

*

**

*

*

*

*

**

*

**

*

**

*

*

*

*

*

*

*

*

*

********

*

****

*

********

*

**

*

*

**

****

***

**

***

*

*

*

*

**

*

*

***

**

*

*****

*

****

*

*

********

**

***

**

*

*

*

*

*

*****

*

**

*

**

*

*

*

*

*

*

******

*

******

*

***

*

*

*

*****

*

*

*

*

*

*

*

*

**

***

**

**

*

**

*

****

*

*********

*

***

*

*

*

*

*

*

*

*

**

*

*

*

*

*

*

*

*

*****

*

*

**

*

**

*

**

**

*

*

*

*

*

*

*

*

*

***

*

*

**

*

*

*

*

****

**

*

*

*

*

**

**

**

*

*

*

*

*

**

*

***

**

*

*

*

***

***

**

*

*

*

****

*

*

*

**

*

**

*

*

****

**

*

***

***********

**

****

*

*

*

**

*

**

*

*

**

*

*

*

*

*

*

*

*

*

*

*

*

**

*

***

*

*

*

*

**

*

******

**

*

*

**********

*

*

*

*

***

*

*

*

***

*

*

*

*

****

**

**************

*

Aparna U. The Intelligent Farrowing Pen 26 / 42

Page 78: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Pattern of Water Consumption

*

*

***

*

*

*

*

*****

*

***

**

***********

*

**

*

*

*

*

*

*

*

*

***

***

*

**

*

*

*

**

*

*

***

*

*****

*

**********

*

**

*

**

*

*

*

*

*

*

*

*

*

*

**

*

*

*

*

*

*

*

*

*

********

*

****

*

********

*

**

*

*

**

****

*

**

**

***

*

*

*

*

**

*

*

***

**

*

*****

*

****

*

*

********

*

*

*

**

**

*

*

*

*

*

***

**

*

**

*

**

*

*

*

*

*

*

******

*

******

*

***

*

*

*

*****

*

*

*

*

*

*

*

*

**

***

**

**

*

**

*

****

*

*********

*

***

*

*

*

*

*

*

*

*

**

*

*

*

*

*

*

*

*

*

**

**

*

*

**

*

**

*

**

**

*

*

*

*

*

*

*

*

*

***

*

*

**

*

*

*

*

*

***

**

*

*

*

*

**

**

**

*

*

*

*

*

**

*

***

*

*

*

*

*

***

*

**

*

*

*

*

*

****

*

*

*

*

*

*

**

*

*

*

***

*

*

*

*

*

*

***********

**

****

*

*

*

**

*

**

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

**

*

*

*

*

*

*

*

*

**

*

******

**

*

*

**********

*

*

*

*

***

*

*

*

***

*

*

*

*

*

*

**

*

*

**************

*

*

******

*

*

***

*

*

*

*

***

*

***

*

*

*

*

*

*

*

*

*

***

106 108 110 112 114 116 118

02

46

8

sinceMating

LWat

er

**

***

*

*

*

*

*****

*

***

**

***********

*

**

*

*

*

*

*

*

*

*

***

***

*

**

*

*

*

**

*

*

***

*

*****

*

**********

*

**

*

**

*

*

*

*

**

*

**

*

**

*

*

*

*

*

*

*

*

*

********

*

****

*

********

*

**

*

*

**

****

***

**

***

*

*

*

*

**

*

*

***

**

*

*****

*

****

*

*

********

**

***

**

*

*

*

*

*

*****

*

**

*

**

*

*

*

*

*

*

******

*

******

*

***

*

*

*

*****

*

*

*

*

*

*

*

*

**

***

**

**

*

**

*

****

*

*********

*

***

*

*

*

*

*

*

*

*

**

*

*

*

*

*

*

*

*

*****

*

*

**

*

**

*

**

**

*

*

*

*

*

*

*

*

*

***

*

*

**

*

*

*

*

****

**

*

*

*

*

**

**

**

*

*

*

*

*

**

*

***

**

*

*

*

***

***

**

*

*

*

****

*

*

*

**

*

**

*

*

****

**

*

***

***********

**

****

*

*

*

**

*

**

*

*

**

*

*

*

*

*

*

*

*

*

*

*

*

**

*

***

*

*

*

*

**

*

******

**

*

*

**********

*

*

*

*

***

*

*

*

***

*

*

*

*

****

**

**************

*

Aparna U. The Intelligent Farrowing Pen 26 / 42

Page 79: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Probability of Water Consumptionat given time of day and state

0 5 10 15 20

0.0

0.2

0.4

0.6

0.8

time of day (hours)

prob

abili

ty o

f drin

king

● ●●

●●

●●

● ● ● ● ● ●●

●●

●●

● ●●

●●

● ●●

●●

●● ● ● ● ● ● ● ● ● ●

state−1state−2

Aparna U. The Intelligent Farrowing Pen 27 / 42

Page 80: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Estimation of HPMM Parameters

Challenges with conditional model

changing pattern with calender time - BehaviouralPhases/States X

diurnal rhythm conditioned on the Phase/State X

model selection X

dependency of the variables ?

dependency on the phases ?

Conclusion

Duration of the Nest-Building state is similar to other studies

Computational time - 26mins per iteration

Aparna U. The Intelligent Farrowing Pen 28 / 42

Page 81: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 29 / 42

Page 82: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 29 / 42

Page 83: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Overview of the StudyHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Optimal Floor-Heat Regulation System

Aparna U. The Intelligent Farrowing Pen 29 / 42

Page 84: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat Regulation on Pen Level

Time since onset of farrowing

Floor-tem

perature

−20 0 20 40 60 80

10

15

20

25

30

35

40

HeatOn

HeatO�

Farrowing

Malmkvist et. al. (2006)→ survival of one extra piglet per litter

Aparna U. The Intelligent Farrowing Pen 30 / 42

Page 85: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat Regulation on Pen Level

Time since onset of farrowing

Floor-tem

perature

−20 0 20 40 60 80

10

15

20

25

30

35

40

HeatOn

HeatO�

Farrowing

Malmkvist et. al. (2006)→ survival of one extra piglet per litter

Aparna U. The Intelligent Farrowing Pen 30 / 42

Page 86: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat Regulation on Pen Level

Time since onset of farrowing

Floor-tem

perature

−20 0 20 40 60 80

10

15

20

25

30

35

40

HeatOn

HeatO�

Farrowing

Phase-(A)

Phase-(B)

Phase-(C)

Malmkvist et. al. (2006)→ survival of one extra piglet per litter

Aparna U. The Intelligent Farrowing Pen 30 / 42

Page 87: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat Regulation on Pen Level

Time since onset of farrowing

Floor-tem

perature

−20 0 20 40 60 80

10

15

20

25

30

35

40

HeatOn

HeatO�

Farrowing

Phase-(A)

Phase-(B)

Phase-(C)

Malmkvist et. al. (2006)→ survival of one extra piglet per litter

Aparna U. The Intelligent Farrowing Pen 30 / 42

Page 88: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat Regulation on Pen Level

Time since onset of farrowing

Floor-tem

perature

−20 0 20 40 60 80

10

15

20

25

30

35

40

HeatOn

HeatO�

Farrowing

Phase-(A)

Phase-(B)

Phase-(C)

Malmkvist et. al. (2006)→ survival of one extra piglet per litter

Aparna U. The Intelligent Farrowing Pen 30 / 42

Page 89: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat Regulation on Pen Level

Time since onset of farrowing

Floor-tem

perature

−20 0 20 40 60 80

10

15

20

25

30

35

40

HeatOn

HeatO�

Farrowing

Phase-(A)

Phase-(B)

Phase-(C)

Malmkvist et. al. (2006)→ survival of one extra piglet per litterAparna U. The Intelligent Farrowing Pen 30 / 42

Page 90: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat Regulation on Pen Level

Time since onset of farrowing

Floor-tem

perature

−20 0 20 40 60 80

10

15

20

25

30

35

40

HeatOn

HeatO�

Farrowing

Phase-(A)

Phase-(B)

Phase-(C)

Malmkvist et. al. (2006)→ survival of one extra piglet per litterAparna U. The Intelligent Farrowing Pen 30 / 42

Page 91: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat Regulation on Pen Level

Time since onset of farrowing

Floor-tem

perature

−20 0 20 40 60 80

10

15

20

25

30

35

40

Farrowing

HeatOn

HeatO�

Phase-(A)

Phase-(B)

Phase-(C)

Malmkvist et. al. (2006)→ survival of one extra piglet per litter

Aparna U. The Intelligent Farrowing Pen 30 / 42

Page 92: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

How to choose threshold???

Aparna U. The Intelligent Farrowing Pen 31 / 42

Page 93: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat regulation System"Partially Observable Markov Decision Process (POMDP)"

Aparna U. The Intelligent Farrowing Pen 32 / 42

Page 94: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat regulation System"Partially Observable Markov Decision Process (POMDP)"

Aparna U. The Intelligent Farrowing Pen 32 / 42

Page 95: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat regulation System"Partially Observable Markov Decision Process (POMDP)"

belief

time

phase

sensor obs.

temperature

decision

heating cost

t1 t2

U1 U2

Y1

C1

d1

H1

Aparna U. The Intelligent Farrowing Pen 32 / 42

Page 96: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat regulation System"Partially Observable Markov Decision Process (POMDP)"

belief

time

phase

sensor obs.

temperature

decision

heating cost

t1 t2

U1 U2

Y1

C1 C2

d1

H1

Aparna U. The Intelligent Farrowing Pen 32 / 42

Page 97: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat regulation System"Partially Observable Markov Decision Process (POMDP)"

belief

time

phase

sensor obs.

temperature

decision

heating cost

t1 t2

U1 U2

Y1

C1 C2

d1 d2

H1

Aparna U. The Intelligent Farrowing Pen 32 / 42

Page 98: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat regulation System"Partially Observable Markov Decision Process (POMDP)"

belief

time

phase

sensor obs.

temperature

decision

heating cost

t1 t2

U1 U2

Y1

C1 C2

d1 d2

H1 H2

Aparna U. The Intelligent Farrowing Pen 32 / 42

Page 99: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat regulation System"Partially Observable Markov Decision Process (POMDP)"

belief

time

phase

sensor obs.

temperature

decision

heating cost

t1 t2 t3

U1 U2 U3

Y1 Y2

C1 C2

d1 d2

H1 H2

Aparna U. The Intelligent Farrowing Pen 32 / 42

Page 100: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat regulation System"Partially Observable Markov Decision Process (POMDP)"

belief

time

phase

sensor obs.

temperature

decision

heating cost

t1 t2 t3

U1 U2 U3

Y1 Y2

C1 C2 C3

d1 d2

H1 H2

Aparna U. The Intelligent Farrowing Pen 32 / 42

Page 101: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Floor-heat regulation System"Partially Observable Markov Decision Process (POMDP)"

belief

time

phase

sensor obs.

temperature

decision

heating cost

t1 t2 tF−1 tF tF+1

U1 U2 UF−1 UF UF+1

Y1 Y2 YF−1

C1 C2 CF−1 CF

d1 d2 dF−1

H1 H2 HF−1

I

Aparna U. The Intelligent Farrowing Pen 32 / 42

Page 102: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Approximate Solution

Approximate POMDP solution

Markov Decision Process - optimization for known phases

Value Iteration Method

Optimize the total expected utilityw.r.t. phase number and �oor-temperature

Greedy Strategies

Aparna U. The Intelligent Farrowing Pen 33 / 42

Page 103: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

MDP look-up decision tableApproximate POMDP Solution

Floor-temperature Behavioural Phase ∆Q(opt) Decision(opt)

21 Phase-121 Phase-2...

...21 Phase-100022 Phase-122 Phase-2...

...22 Phase-1000...

...

*∆Q(opt): reward of heating

Aparna U. The Intelligent Farrowing Pen 34 / 42

Page 104: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Approximating to POMDPDecision Vs Belief state for the given �oor-temperature

400 600 800 1000

0.00

0.01

0.02

0.03

0.04

0.05

0.06

0.07

phases

αt

t=112

t=114

t=117.6

t=118.1

t=118.3

Aparna U. The Intelligent Farrowing Pen 35 / 42

Page 105: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

POMDP Greedy Strategies

QMDP - expectation over all the phases

Most likely phase

Random phase

Voting

Random action

*Above greedy strategies return almost identical rewards.

Aparna U. The Intelligent Farrowing Pen 36 / 42

Page 106: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

POMDP Greedy Strategies

QMDP - expectation over all the phases

Most likely phase

Random phase

Voting

Random action

*Above greedy strategies return almost identical rewards.

Aparna U. The Intelligent Farrowing Pen 36 / 42

Page 107: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

POMDP Greedy Strategies

QMDP - expectation over all the phases

Most likely phase

Random phase

Voting

Random action

*Above greedy strategies return almost identical rewards.

Aparna U. The Intelligent Farrowing Pen 36 / 42

Page 108: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

POMDP Greedy Strategies

QMDP - expectation over all the phases

Most likely phase

Random phase

Voting

Random action

*Above greedy strategies return almost identical rewards.

Aparna U. The Intelligent Farrowing Pen 36 / 42

Page 109: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

POMDP Greedy Strategies

QMDP - expectation over all the phases

Most likely phase

Random phase

Voting

Random action

*Above greedy strategies return almost identical rewards.

Aparna U. The Intelligent Farrowing Pen 36 / 42

Page 110: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

POMDP Greedy Strategies

QMDP - expectation over all the phases

Most likely phase

Random phase

Voting

Random action

*Above greedy strategies return almost identical rewards.

Aparna U. The Intelligent Farrowing Pen 36 / 42

Page 111: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Robustness

POMDP for Floor-heat Regulation Strategy

Decision tool is robust to the changes in room temperature,

energy supply, mortality model and price of a piglet

POMDP strategy performed better than simple heuristicstrategy especially when the room-temperature and energysupply was varied

POMDP does not suggest to turn on the heater if it is notbene�cial

Aparna U. The Intelligent Farrowing Pen 37 / 42

Page 112: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Robustness

POMDP for Floor-heat Regulation Strategy

Decision tool is robust to the changes in room temperature,energy supply,

mortality model and price of a piglet

POMDP strategy performed better than simple heuristicstrategy especially when the room-temperature and energysupply was varied

POMDP does not suggest to turn on the heater if it is notbene�cial

Aparna U. The Intelligent Farrowing Pen 37 / 42

Page 113: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Robustness

POMDP for Floor-heat Regulation Strategy

Decision tool is robust to the changes in room temperature,energy supply, mortality model

and price of a piglet

POMDP strategy performed better than simple heuristicstrategy especially when the room-temperature and energysupply was varied

POMDP does not suggest to turn on the heater if it is notbene�cial

Aparna U. The Intelligent Farrowing Pen 37 / 42

Page 114: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Robustness

POMDP for Floor-heat Regulation Strategy

Decision tool is robust to the changes in room temperature,energy supply, mortality model and price of a piglet

POMDP strategy performed better than simple heuristicstrategy especially when the room-temperature and energysupply was varied

POMDP does not suggest to turn on the heater if it is notbene�cial

Aparna U. The Intelligent Farrowing Pen 37 / 42

Page 115: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Robustness

POMDP for Floor-heat Regulation Strategy

Decision tool is robust to the changes in room temperature,energy supply, mortality model and price of a piglet

POMDP strategy performed better than simple heuristicstrategy especially when the room-temperature and energysupply was varied

POMDP does not suggest to turn on the heater if it is notbene�cial

Aparna U. The Intelligent Farrowing Pen 37 / 42

Page 116: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Robustness

POMDP for Floor-heat Regulation Strategy

Decision tool is robust to the changes in room temperature,energy supply, mortality model and price of a piglet

POMDP strategy performed better than simple heuristicstrategy especially when the room-temperature and energysupply was varied

POMDP does not suggest to turn on the heater if it is notbene�cial

Aparna U. The Intelligent Farrowing Pen 37 / 42

Page 117: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Final Remarks...

Aparna U. The Intelligent Farrowing Pen 38 / 42

Page 118: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Desired System - data management to decisionHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation Strategy

Aparna U. The Intelligent Farrowing Pen 39 / 42

Page 119: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Desired System - data management to decisionHerdLevelCom

puter

at the pen level

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

CentralLevelCom

puter

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Prediction Algorithm Estimation Algorithm

Optimal Floor-Heat Regulation StrategyAparna U. The Intelligent Farrowing Pen 39 / 42

Page 120: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Future works...

Studying the corners of the desired system

Including farmer's observation on farrowing into model

Improving the methods and the calculation speed ofEstimation algorithm

Similar decision support system for other applications

Aparna U. The Intelligent Farrowing Pen 40 / 42

Page 121: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Future works...

Studying the corners of the desired system

Including farmer's observation on farrowing into model

Improving the methods and the calculation speed ofEstimation algorithm

Similar decision support system for other applications

Aparna U. The Intelligent Farrowing Pen 40 / 42

Page 122: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Future works...

Studying the corners of the desired system

Including farmer's observation on farrowing into model

Improving the methods and the calculation speed ofEstimation algorithm

Similar decision support system for other applications

Aparna U. The Intelligent Farrowing Pen 40 / 42

Page 123: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Future works...

Studying the corners of the desired system

Including farmer's observation on farrowing into model

Improving the methods and the calculation speed ofEstimation algorithm

Similar decision support system for other applications

Aparna U. The Intelligent Farrowing Pen 40 / 42

Page 124: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

Take home message...

Contributions

Framework of an automated system starting from datamanagement to decision The Intelligent Farrowing Pen

Model for monitoring the pre-parturition behaviour of anindividual sow

Prediction of onset of farrowing - can directly calculate theexpected time to farrowing for an individual sow

Prediction model as the kernel of a decision support system

Modelling sows diurnal rhythm in sensor observations

Integrating information from several sensors

Aparna U. The Intelligent Farrowing Pen 41 / 42

Page 125: Methods for Sensor Based Farrowing Prediction and Floor-heat Regulation: The Intelligent Farrowing Pen

Prediction Estimation Decision Tool Final Remarks

The Intelligent Farrowing PenHerdLevelComputer

SensorObservations

HerdDatabase

PredictionAlgorithm

WarningStrategy

Central

LevelComputer

Historical Data

EstimationAlgorithm

Herd Speci�cParameters

Heat Parameters

MortalityModel

Costs

OptimizationAlgorithm

Aparna U. The Intelligent Farrowing Pen 42 / 42