Skip to content

Commit ada615d

Browse files
new chapter on embeddings
1 parent 9c91e11 commit ada615d

3 files changed

Lines changed: 59 additions & 0 deletions

File tree

_quarto.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ book:
6262
chapters:
6363
- vec_obia.qmd
6464
- vec_creating.qmd
65+
- part: embeddings.qmd
66+
chapters:
67+
- emb_build.qmd
6568
- part: annex.qmd
6669
chapters:
6770
- annex_export.qmd

emb_build.qmd

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: "Object-based time series image analysis"
3+
format: html
4+
---
5+
6+
### Configurations to run this chapter{-}
7+
8+
:::{.panel-tabset}
9+
## R
10+
```{r}
11+
#| echo: true
12+
#| eval: true
13+
#| output: false
14+
# load package "tibble"
15+
library(tibble)
16+
# load packages "sits" and "sitsdata"
17+
library(sits)
18+
library(sitsdata)
19+
# set tempdir if it does not exist
20+
tempdir_r <- "~/sitsbook/tempdir/R/vec_obia"
21+
dir.create(tempdir_r, showWarnings = FALSE)
22+
```
23+
## Python
24+
```{python}
25+
#| echo: true
26+
#| eval: true
27+
#| output: false
28+
# load "pysits" library
29+
from pysits import *
30+
from pathlib import Path
31+
# set tempdir if it does not exist
32+
tempdir_py = Path.home() / "sitsbook/tempdir/Python/vec_obia"
33+
tempdir_py.mkdir(parents=True, exist_ok=True)
34+
```
35+
:::
36+
37+
38+
<a href="https://www.kaggle.com/code/esensing/object-based-image-time-series-classification" target="_blank"><img src="https://kaggle.com/static/images/open-in-kaggle.svg"/></a>
39+
40+
## Introduction

embeddings.qmd

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "Foundational Models and Embeddings"
3+
format: html
4+
---
5+
6+
## Introduction
7+
8+
The ideas of foundational models and embeddings are among the most recent developments in field of Earth Observation (EO). A Foundational Model (FM) in the context of Earth Observation is a deep learning architecture that is pre-trained on unannotated, multi-modal satellite data. A FM learns the fundamental physical, spatial, and temporal rules of the Earth’s surface by finding patterns in the data. Since does not use labelled samples, this mode of operation is called *self-supervised learning (SSL)*.
9+
10+
The two most common SSL methods used by foundational models are:
11+
12+
* Masked Autoencoders (MAE): The model is fed a satellite image or data cube where a large portion (often up to 75%) of the values has been masked. The model's aims to reconstruct the missing values based on the available values. To do this successfully, the model must learn what features naturally co-occur in the real world. In the case of image patches, the model learns boundaries of objects; when processing time-series data, the FM learns the temporal signatures of land cover and land use pixels.
13+
14+
* Contrastive Learning: Techniques such as Barlow Twins present the model with two slightly augmented views of the same geographic location (e.g., an image with simulated cloud cover and one without, or time series with different ). The model is forced to mathematically align the representations of these two views while pushing apart the representations of entirely different locations. This teaches the model to ignore atmospheric noise and focus on the underlying biophysical reality.
15+
16+

0 commit comments

Comments
 (0)