diff --git a/manuscript/20210908_Adriaens_UWB_.aux b/manuscript/20210908_Adriaens_UWB_.aux index 4ae7a0c748f92af272f0c3d4fd19b8ecb6cfff1a..e06129a54b9410dd958f9edf222a66af4d9101dd 100644 --- a/manuscript/20210908_Adriaens_UWB_.aux +++ b/manuscript/20210908_Adriaens_UWB_.aux @@ -12,9 +12,9 @@ \@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.1}Data editing}{3}{}\protected@file@percent } \@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2}Data selection}{3}{}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {3.4}Changepoint analysis}{3}{}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {3.5}Statistical analysis}{3}{}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {4}Results \& discussion}{4}{}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {5}Conclusions}{5}{}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {6}Acknowledgements}{5}{}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {7}References}{5}{}\protected@file@percent } -\gdef \@abspage@last{5} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.5}Statistical analysis}{4}{}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {4}Results \& discussion}{5}{}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {5}Conclusions}{6}{}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6}Acknowledgements}{6}{}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7}References}{6}{}\protected@file@percent } +\gdef \@abspage@last{6} diff --git a/manuscript/20210908_Adriaens_UWB_.log b/manuscript/20210908_Adriaens_UWB_.log index d0a8e16de0539eeab10310fb18354eba111d31db..873562dcd98ffe80d569b6ba577980301a1f244f 100644 --- a/manuscript/20210908_Adriaens_UWB_.log +++ b/manuscript/20210908_Adriaens_UWB_.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.2) (preloaded format=pdflatex 2021.5.7) 8 SEP 2021 14:40 +This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.2) (preloaded format=pdflatex 2021.5.7) 8 SEP 2021 15:01 entering extended mode **./20210908_Adriaens_UWB_.tex (20210908_Adriaens_UWB_.tex @@ -60,6 +60,10 @@ Package babel Info: \l@australian = using hyphenrules for ukenglish (babel) (\language73) on input line 105. Package babel Info: \l@newzealand = using hyphenrules for ukenglish (babel) (\language73) on input line 108. +) +(C:\Users\adria036\AppData\Local\Programs\MiKTeX\tex/latex/babel-english\englis +h.ldf +Language: english 2017/06/06 v3.3r English support from the babel system )) (C:\Users\adria036\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty Package: amsmath 2020/09/23 v2.17i AMS math features @@ -183,20 +187,20 @@ File: l3backend-pdftex.def 2021-02-18 L3 backend support: PDF output (pdfTeX) ) (20210908_Adriaens_UWB_.aux) \openout1 = `20210908_Adriaens_UWB_.aux'. -LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 24. -LaTeX Font Info: ... okay on input line 24. -LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 24. -LaTeX Font Info: ... okay on input line 24. -LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 24. -LaTeX Font Info: ... okay on input line 24. -LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 24. -LaTeX Font Info: ... okay on input line 24. -LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 24. -LaTeX Font Info: ... okay on input line 24. -LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 24. -LaTeX Font Info: ... okay on input line 24. -LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 24. -LaTeX Font Info: ... okay on input line 24. +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 25. +LaTeX Font Info: ... okay on input line 25. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 25. +LaTeX Font Info: ... okay on input line 25. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 25. +LaTeX Font Info: ... okay on input line 25. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 25. +LaTeX Font Info: ... okay on input line 25. +LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 25. +LaTeX Font Info: ... okay on input line 25. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 25. +LaTeX Font Info: ... okay on input line 25. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 25. +LaTeX Font Info: ... okay on input line 25. (C:\Users\adria036\AppData\Local\Programs\MiKTeX\tex/context/base/mkii\supp-pdf .mkii @@ -221,38 +225,46 @@ Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4 ) [1 {C:/Users/adria036/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] -LaTeX Font Info: Trying to load font information for U+msa on input line 29. +LaTeX Font Info: Trying to load font information for U+msa on input line 30. (C:\Users\adria036\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\umsa.fd File: umsa.fd 2013/01/14 v3.01 AMS symbols A ) -LaTeX Font Info: Trying to load font information for U+msb on input line 29. +LaTeX Font Info: Trying to load font information for U+msb on input line 30. (C:\Users\adria036\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\umsb.fd File: umsb.fd 2013/01/14 v3.01 AMS symbols B ) -[2] [3] [4] [5] (20210908_Adriaens_UWB_.aux) ) +[2] [3] [4] [5] [6] (20210908_Adriaens_UWB_.aux) ) Here is how much of TeX's memory you used: - 3804 strings out of 479334 - 50506 string characters out of 2855660 - 357487 words of memory out of 3000000 - 21222 multiletter control sequences out of 15000+200000 - 413800 words of font info for 53 fonts, out of 3000000 for 9000 + 3818 strings out of 479334 + 50800 string characters out of 2855660 + 361535 words of memory out of 3000000 + 21231 multiletter control sequences out of 15000+200000 + 416185 words of font info for 62 fonts, out of 3000000 for 9000 1141 hyphenation exceptions out of 8191 - 68i,6n,74p,241b,284s stack positions out of 5000i,500n,10000p,200000b,50000s - <C:\Users\adria036\AppData\Local -\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1000.pk> <C:\Users\adria036\AppD -ata\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\tcrm1000.pk> <C:\Users\adri -a036\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1440.pk> <C:\U -sers\adria036\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1200. -pk> <C:\Users\adria036\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ -ecrm1200.pk> <C:\Users\adria036\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/e -c/dpi600\ecrm1728.pk> <C:\Users\adria036\AppData\Local\MiKTeX\fonts/pk/ljfour/j -knappen/ec/dpi600\ecrm1000.pk> -Output written on 20210908_Adriaens_UWB_.pdf (5 pages, 62638 bytes). + 68i,6n,74p,2272b,284s stack positions out of 5000i,500n,10000p,200000b,50000s + <C:\Users\adria036\AppData\L +ocal\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecti1000.pk> <C:\Users\adria036\ +AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1000.pk> <C:\Users\ +adria036\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\tcrm1000.pk> < +C:\Users\adria036\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1 +440.pk> <C:\Users\adria036\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi +600\ecbx1200.pk> <C:\Users\adria036\AppData\Local\MiKTeX\fonts/pk/ljfour/jknapp +en/ec/dpi600\ecrm1200.pk> <C:\Users\adria036\AppData\Local\MiKTeX\fonts/pk/ljfo +ur/jknappen/ec/dpi600\ecrm1728.pk> <C:\Users\adria036\AppData\Local\MiKTeX\font +s/pk/ljfour/jknappen/ec/dpi600\ecrm1000.pk><C:/Users/adria036/AppData/Local/Pro +grams/MiKTeX/fonts/type1/public/amsfonts/cm/cmex10.pfb><C:/Users/adria036/AppDa +ta/Local/Programs/MiKTeX/fonts/type1/public/amsfonts/cm/cmmi10.pfb><C:/Users/ad +ria036/AppData/Local/Programs/MiKTeX/fonts/type1/public/amsfonts/cm/cmmi7.pfb>< +C:/Users/adria036/AppData/Local/Programs/MiKTeX/fonts/type1/public/amsfonts/cm/ +cmr10.pfb><C:/Users/adria036/AppData/Local/Programs/MiKTeX/fonts/type1/public/a +msfonts/cm/cmr7.pfb><C:/Users/adria036/AppData/Local/Programs/MiKTeX/fonts/type +1/public/amsfonts/cm/cmsy10.pfb> +Output written on 20210908_Adriaens_UWB_.pdf (6 pages, 121055 bytes). PDF statistics: - 208 PDF objects out of 1000 (max. 8388607) + 260 PDF objects out of 1000 (max. 8388607) 0 named destinations out of 1000 (max. 500000) 1 words of extra memory for PDF output out of 10000 (max. 10000000) diff --git a/manuscript/20210908_Adriaens_UWB_.pdf b/manuscript/20210908_Adriaens_UWB_.pdf index db57ca4a1f031576b746473367a4b4d476b0a754..9747039fdf1991896a5eaa19286e3c300e235601 100644 Binary files a/manuscript/20210908_Adriaens_UWB_.pdf and b/manuscript/20210908_Adriaens_UWB_.pdf differ diff --git a/manuscript/20210908_Adriaens_UWB_.synctex.gz b/manuscript/20210908_Adriaens_UWB_.synctex.gz index b44fe84238f24678842aa2d441c252ffe032fcfa..652f2397e552ebb9a6525434419159696f90b64a 100644 Binary files a/manuscript/20210908_Adriaens_UWB_.synctex.gz and b/manuscript/20210908_Adriaens_UWB_.synctex.gz differ diff --git a/manuscript/20210908_Adriaens_UWB_.tex b/manuscript/20210908_Adriaens_UWB_.tex index bd88cac24bcd0a8d645f82403f6a2ec9e6d15869..d32ae14dc8ab9406bc10559144f4e7ee99445edc 100644 --- a/manuscript/20210908_Adriaens_UWB_.tex +++ b/manuscript/20210908_Adriaens_UWB_.tex @@ -1,4 +1,5 @@ % load packages +\PassOptionsToPackage{english}{babel} \documentclass[10pt,a4paper,draft]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} @@ -69,9 +70,27 @@ \subsection{Ultra-wide band data} \subsubsection{Data editing} + + \subsubsection{Data selection} \subsection{Changepoint analysis} +Changepoints are time instants or samples in which the statistical properties (i.e. distribution) of a (time) series change abruptly. In this study, we detected and combined the individual changepoints per cow per day in two time series of (x,y,z)-coordinate positioning data. Intuitively, one could argue to mainly rely on the position in the vertical (z) direction (height), as a cow that lies down is expected to remain in a lower and more stable position compared to when she is up. However, the z-position has been shown to be the most unreliable and noisy (range, variability,..) of all three coordinates, with its inaccuracy variable in time and space, and depending on e.g. the position in the barn, the behaviour and speed of the animals, the collar attachment and their interactions, etc. Similarly, relying on detection of a stable position in the (x,y)-direction (which is unmistakably true during lying bouts) is imprecise as well, as cow activity varies over the day, and oftentimes animals stand still for a longer period of time apart from their lying bouts, for example when grooming other animals, feeding, drinking or ruminating. These periods of “standing” inactivity might additionally depend on accessibility of cubicles and lying places, hierarchy, climate of the barn etc. In this study, we chose to work on a combination of two position derived time series. The first is the z-coordinate (height) of the animals, as this is the most straightforward one. The second time series is the ‘centre distance’ (CD), i.e. the position relative to the centre of the barn. The main advantage of using CD and not the raw (x,y)-position is that it summarizes position and movement of the animals in a single signal, less dependent on the actual direction of movement, and with a lower variability. Should a cow move in a perfect circle around the centre of the barn, however, CD remains constant (as is the case when a cow stands still or lies down). We assumed that this would be extremely rare, and when it would happen for a short period of time, this would not impair the analysis because movement as such causes the signal to be more variable, which also changes the statistical properties of the time series. +The changepoint analysis relies on a parametric method that separates the time series in segments and computes either the level (average value, z-coordinate), or level and variability (mean and variance) of each segment from point \textit{m} to point \textit{n} as follows: + +\[\dfrac{1}{n-m+1}\sum_{r=m}^{n}x_{r}\] + +\[\dfrac{1}{n-m+1}\sum_{r=m}^{n}{(x_{r}-mean([x_{m}...x_{n}])^2}\] + + + + + +Based on the minimization of the sums of squares of the residual error (i.e. the maximum log likelihood), it finds the number of changepoints \textit{k} for which: + + + +Is smallest. \subsection{Statistical analysis}