From registration to information II Anders Ringgaard Kristensen - - PowerPoint PPT Presentation

from registration to information ii
SMART_READER_LITE
LIVE PREVIEW

From registration to information II Anders Ringgaard Kristensen - - PowerPoint PPT Presentation

Department of Large Animal Sciences From registration to information II Anders Ringgaard Kristensen Department of Large Animal Sciences Outline The decision making process revisited Trends in livestock farming, data sources Value of data (and


slide-1
SLIDE 1

From registration to information II

Anders Ringgaard Kristensen

Department of Large Animal Sciences

slide-2
SLIDE 2

Outline

The decision making process revisited Trends in livestock farming, data sources Value of data (and information) Measurement errors, including Categorical observations and thresholds

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 2

slide-3
SLIDE 3

Making decisions

Decision making is based on knowledge:

  • General knowledge: What you can read in a textbook on

animal nutrition, animal breeding, agricultural engineering etc.

  • Context specific knowledge: What relates directly to the

unique decision problem. Examples:

  • The milk yield of dairy cow No. 678 when considered for

culling.

  • The estrus status of sow No. 345 when considered for

insemination.

  • The current daily gain of the slaughter pigs in House 5

when considering whether or not to adjust protein contents of the diet.

When knowledge is represented in a form that may be used directly as basis for a decision, we call it information.

Department of Large Animal Sciences

Slide 3 Advanced Quantitative Methods in Herd Management

slide-4
SLIDE 4

Information sources

General knowledge:

  • Look in a textbook
  • Ask an expert

Context specific knowledge:

  • Obtained through registrations (observations) in the

herd:

  • Traditional registrations
  • Test day milk yield, cow 567
  • Litter size of sow 123
  • Sensor based registrations
  • Conductivity or temperature of milk from AMS
  • Accelerations of a sow from a censor node in

an ear tag

  • Computer vision (image analysis)

Department of Large Animal Sciences

Slide 4 Advanced Quantitative Methods in Herd Management

slide-5
SLIDE 5

From registrations to information

We refer to a collection (typically in a database) of registrations of the same kind as data. We don’t use data directly for decision making (huge amounts of data). Before we can use data we need to reduce it through some kind of processing. The resulting information is used for decision making (which again requires processing: optimization).

Department of Large Animal Sciences

Slide 5 Advanced Quantitative Methods in Herd Management

slide-6
SLIDE 6

A simple example of the path

Data: Test day milk yields Processing I: Calculating cumulated yields for individual cows over a standardized period and afterwards calculating the herd average. Information: Average milk yield in the herd. Processing II: Linear programming using the Simplex algorithm. Decision: Least cost feed ration for the cows. The path from test day milk yields to feed ration is not unique:

  • Both processing steps could be replaced by other methods.
  • Choosing a wise processing of data into information is an

important issue in herd management!

Department of Large Animal Sciences

Slide 6 Advanced Quantitative Methods in Herd Management

slide-7
SLIDE 7

Advanced example: Hogthrob

Activity Measurements – in Group Housed Pen

  • Accelerometer fitted on neck collar
  • Acceleration in 3 dimensions
  • Four measurements per second
  • Transfer PC via Blue Tooth
  • Gestation house and farrowing crate

Video Recordings

  • Four cameras used as web cam

Department of Large Animal Sciences

Slide 7 Advanced Quantitative Methods in Herd Management

slide-8
SLIDE 8

The Farrowing House

slide-9
SLIDE 9

Data Collected – Farrowing house

Farrowing

Department of Large Animal Sciences

Slide 9 Advanced Quantitative Methods in Herd Management

slide-10
SLIDE 10

Activity Classification – Farrowing

2 days before farrowing

Feeding: 7.15, 12.00, 15.30 Lying side 1 Lying side 2 Lying sternally Active

Department of Large Animal Sciences

Slide 10 Advanced Quantitative Methods in Herd Management

slide-11
SLIDE 11

Activity Classification – Farrowing

Farrowing day

Lying side 1 Lying side 2 Lying sternally Active Feeding / Rooting / Nesting

Department of Large Animal Sciences

Slide 11 Advanced Quantitative Methods in Herd Management

slide-12
SLIDE 12

Information retrieval – Farrowing (or heat)

Department of Large Animal Sciences

Slide 12 Advanced Quantitative Methods in Herd Management

slide-13
SLIDE 13

An advanced example of the path: Hogthrob

Data: Accelerations of a sow measured 4 times per second in 3 dimensions Processing I: Online time series analysis of the acceleration data using Dynamic Linear Models Information: Sow in heat? (yes/no). [Example: farrow] Processing II: Dynamic programming. Decision: Inseminate/leave open/cull Notice the reduction in the dimensionality of the information (one binary variable) compared to the data!

Department of Large Animal Sciences

Slide 13 Advanced Quantitative Methods in Herd Management

slide-14
SLIDE 14

The decision making process: Summary

The purpose of monitoring is to improve the decisions Processing of registrations into information is necessary Choosing the best processing is a key issue Information is a tractable representation of context specific knowledge. Monitoring is the sub-path from registration to information During this course we will follow the path from data to decision:

Department of Large Animal Sciences

Slide 14 Advanced Quantitative Methods in Herd Management

slide-15
SLIDE 15

Trends in livestock farming

Over the last decades we have seen:

  • Computers available to farmers
  • Process computers (climate control, feeding systems,

milking systems)

  • Computer networks
  • On farms
  • The internet
  • Automatic registrations by sensors
  • Improved methods for data filtering
  • State space models
  • Bayesian networks
  • Improved methods for decision support
  • Decision graphs
  • Markov decision processes (dynamic programming)
  • Improved biological understanding

How do we include this in herd management? How do we evaluate?

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 15

slide-16
SLIDE 16

PigIT: Sensors as installed in two experimental pens

Advanced Quantitative Methods in Herd Management Dias 16

Department of Large Animal Sciences

16 pens in 4 sections are monitored by sensors and cameras

slide-17
SLIDE 17

PigIT: Data infrastructure in a herd

Advanced Quantitative Methods in Herd Management Dias 17

Department of Large Animal Sciences

slide-18
SLIDE 18

PigIT: Sensor data – what does it look like?

Advanced Quantitative Methods in Herd Management Dias 18

Department of Large Animal Sciences

Water, Feed Local temp. Section: Temp. Humidity

slide-19
SLIDE 19

Data sources: Brain storm

Live weight assessment:

Heat detection

Detection/prediction of farrowing

Detection of diarrhea

Detection of mastitis

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 19

slide-20
SLIDE 20

Sensor types

Flowmeters Climate sensors (temperature, humidity) Pedometers Accelerometers Vision Acoustic (e.g. coughing) AMS related Sensors provide data!

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 20

slide-21
SLIDE 21

Value of data

The potential positive value of data is that they lead to better information and, thus, better decisions: Compare to evaluation of a feed additive:

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 21

Feed additive

Processing Mixing

Animals Response Data

Processing (twice)

Decision Response

slide-22
SLIDE 22

Value of data

Value of feed additive: Expected income with additive – Expected income without additive = Value of feed additive . Value of data: Expected income with data – Expected income without data = Value of data .

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 22

slide-23
SLIDE 23

Value of data

Data has only value if they improve the information and, consequently, lead to better management decisions:

  • Buying/selling of animals
  • Movement of animals
  • Insemination
  • Induction of events
  • Feed ration composition
  • Feeding level
  • Observing

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 23

slide-24
SLIDE 24

Value of data

Data has only value if they improve the information and, consequently, lead to better decisions. Data typically reduce uncertainty

  • In other words they improve the precision of the

information – cf. exercise on prediction of farrowings in sow herd.

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 24

slide-25
SLIDE 25

Example from exercises: Number of farrowings

Observations (data) s Number of sows inseminated (12) 1.66 + conception rate in herd (historical data) 1.39 + heat detection after 3 weeks (2 in heat) 0.98 + heat detection quality in herd 0.81 + ultra sound scanning of 10 sows 0.47

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 25

The purpose of the Bayesian network was to predict the number of farrowings expressed by the mean and the standard deviation (s) More data increase the precision of the prediction!

slide-26
SLIDE 26

Definition

A record: λ Data: Λ = {λ1, λ1, … , λk}, Λ ∈ Rk Processing: Ψ() Information: I = Ψ(Λ), I ∈ Rm, where m << k Decision: Θ Decision strategy: I → Θ The processing of data into information typically implies a huge reduction of data. The processing is specific to the decision problem.

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 26

slide-27
SLIDE 27

Utility value of data – The two sow problem

Problem description A smallholder sow farmer has only housing capacity for one sow. Recently his sow died. He has no gilt, so he wants to buy a new sow. His neighbor has two pregnant 2nd parity sows for sale: Sow A and Sow B. Both of them will farrow two weeks from now. The price is the same. Decision problem Should the smallholder buy Sow A or Sow B from his neighbor? Initial comments The old sow is dead – nothing can change that. Everything that doesn’t depend on the decision can be ignored in the optimization (partial budgeting principle). In this case we can ignore the price of the new sow.

Dias 27 AVEPM 2013 Schwabe Symposium, Chicago

Department of Large Animal Sciences

slide-28
SLIDE 28

The two sow problem

What kind of data would the small holder farmer like to have? Litter size of first parity! Any correlation between litter size of first and second parity?

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 28

slide-29
SLIDE 29

Elements

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 29

A record: Y1i Data: Λ = {Y1A, Y1B} Processing: Predicted litter size 10.0 0.2

8.5

Information: I = {

  • ,
  • }

Decisions: Select Sow A; Select Sow B Decision strategy:

  • : Select Sow A
  • : Select Sow B
  • : Select Sow A or Select Sow B

According to Example 6.1 the value of the data is 0.28 piglets. Would it be of any value to know the litter size of just one of the sows? If yes, what would the decision strategy look like? Refer also to exercises!

slide-30
SLIDE 30

Measurement errors

Registration failure – something is completely wrong Measurement precision – observation errors Indirect measure – what we observe is not exactly what we want to know Bias – systematic deviation from true value (calibrate!) Rounding errors – usually not a major problem Interval censuring – only thresholds known (date of farrowing versus time of farrowing)

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 30

slide-31
SLIDE 31

Categorical measurements

Variables observed only as a state: Heat detection: {In heat, Not in heat} Pregnancy test: {Pregnant, Not pregnant} Disease diagnosis: {Diseased, Not diseased} Body Condition Score: {1, 2, 3, 4, 5} State {d1, d2, … , dn}

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 31

slide-32
SLIDE 32

Categorical measurements

The measurement is (either literally or conceptually) a two step procedure:

  • 1. Measurement of a continuous variable y ~ N(µi, σi

2) if the

animal is in State di

  • 2. Assigning of a state di to the measurement depending on a

set of threshold values {τ1, …, τn-1}:

  • 1. τi-1 < y ≤ τi ⇒ State di observed

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 32

slide-33
SLIDE 33

Example – pregnancy diagnosis

State, di {Not pregnant (i = 0), Pregnant (i = 1)} Measurement Hormone level, h Distributions:

  • i = 0

h ~ N(10, 12)

  • i = 1

h ~ N(13, 12) Threshold: 11 Diagnose:

  • h ≤ 11

Not pregnant

  • h > 11

Pregnant

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 33

slide-34
SLIDE 34

As a Bayesian network (“ThresholdModel.xbn”)

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 34

Conception rate Pregnant (no/yes) Hormone level Test outcome Threshold value The threshold value determines sensitivity and specificity!

slide-35
SLIDE 35

Overall performance of test – ROC

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 35

By varying the threshold all combinations of sensitivity and specificity along the curve can be achieved. The circle corresponds to τ = 11.5, where the sensitivity is 0.93 and the specificity is also 0.93.

slide-36
SLIDE 36

Measure errors (continued)

Pre-selection (are animals representative) Registration of interventions (e.g. treatment or culling) Missing registrations as a source of information Selection:

  • Pigs with low daily gain stay longer in the herd (exercise)
  • High yielding cows are kept longer

Department of Large Animal Sciences

Advanced Quantitative Methods in Herd Management Slide 36