Segmenting Wildboar trajectories

Author

Jonas Amacher

Exercise A: Segmentation

Inport the dataset

Task 1: Calculate distances

Simple feature collection with 10 features and 11 fields
Geometry type: POINT
Dimension:     XY
Bounding box:  xmin: 2568906 ymin: 1206117 xmax: 2570123 ymax: 1206473
Projected CRS: CH1903+ / LV95
# A tibble: 10 × 12
   TierID TierName CollarID DatetimeUTC                E        N
   <chr>  <chr>       <dbl> <dttm>                 <dbl>    <dbl>
 1 018A   Ruth        13974 2015-06-30 22:01:14 2570123. 1206473.
 2 018A   Ruth        13974 2015-06-30 22:15:32 2570031. 1206402.
 3 018A   Ruth        13974 2015-06-30 22:31:41 2569584. 1206247.
 4 018A   Ruth        13974 2015-06-30 22:46:38 2569207. 1206117.
 5 018A   Ruth        13974 2015-06-30 23:01:46 2568947. 1206275.
 6 018A   Ruth        13974 2015-06-30 23:16:39 2568911. 1206339.
 7 018A   Ruth        13974 2015-06-30 23:30:22 2568992. 1206293.
 8 018A   Ruth        13974 2015-06-30 23:45:09 2568914. 1206338.
 9 018A   Ruth        13974 2015-07-01 00:00:13 2568906. 1206297.
10 018A   Ruth        13974 2015-07-01 00:15:41 2568951. 1206308.
# ℹ 6 more variables: geometry <POINT [m]>, nMinus2 <dbl>, nMinus1 <dbl>,
#   nPlus1 <dbl>, nPlus2 <dbl>, stepMean <dbl>

Task 2: Specify and apply threshold d

   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
  1.677   5.898  20.312  82.202  90.998 760.357       4 

[1] 82.20176

Task 3: Visualize segmented trajectories

Task 4: Segment-based analysis

Simple feature collection with 10 features and 14 fields
Geometry type: POINT
Dimension:     XY
Bounding box:  xmin: 2568812 ymin: 1206110 xmax: 2569584 ymax: 1206696
Projected CRS: CH1903+ / LV95
# A tibble: 10 × 15
   TierID TierName CollarID DatetimeUTC                E        N
   <chr>  <chr>       <dbl> <dttm>                 <dbl>    <dbl>
 1 018A   Ruth        13974 2015-06-30 22:31:41 2569584. 1206247.
 2 018A   Ruth        13974 2015-06-30 22:46:38 2569207. 1206117.
 3 018A   Ruth        13974 2015-06-30 23:01:46 2568947. 1206275.
 4 018A   Ruth        13974 2015-06-30 23:16:39 2568911. 1206339.
 5 018A   Ruth        13974 2015-07-01 00:15:41 2568951. 1206308.
 6 018A   Ruth        13974 2015-07-01 00:30:28 2568989. 1206223.
 7 018A   Ruth        13974 2015-07-01 00:47:09 2568812. 1206110.
 8 018A   Ruth        13974 2015-07-01 01:01:08 2568950. 1206327.
 9 018A   Ruth        13974 2015-07-01 01:15:43 2569072. 1206503.
10 018A   Ruth        13974 2015-07-01 01:30:28 2569192. 1206696.
# ℹ 9 more variables: geometry <POINT [m]>, nMinus2 <dbl>, nMinus1 <dbl>,
#   nPlus1 <dbl>, nPlus2 <dbl>, stepMean <dbl>, static <lgl>, segment_id <fct>,
#   duration <dbl>

Exercise B: Similarity

Task 1: Similarity measures

Task 2: Calculate similarity