Lesson 1 of 3 · Monotone temporal alignment
Follow an alignment path
20 minute lesson · 3 checks along the way
Your goal for this lessonCalculate a closed-end temporal alignment and distinguish local costs, accumulated costs and identity claims.
In this lesson 3 sections · 3 checks
Using archive links & definitions
Follow a linked name to explore its archive card. “Back to your lesson” brings you to the same part of the reading.
Read & understand
A seasonal pattern is a sequence, not a single value
DOST-ASTI’s February 2019 DATOS account describes crop mapping from temporal signatures and identifies dynamic time warping in its sugarcane example. This is dated evidence of a method used in that application, not a specification for every DATOS product. The 2022 transition account says the project ended in February 2020 while its activities continued as services. Neither statement establishes the exact methods or responsibilities in use today.
A field observed at several dates yields an ordered sequence. Two sequences can rise and fall in a similar order while reaching those stages at different times. Comparing only equal positions can penalize that timing difference. Alignment instead asks which ordered observations may be paired. It must retain acquisition dates, units and quality information: stretching an index is a modelling choice, not an extra satellite observation.
In the exercise ahead, an alignment path advances the first index, the second index, or both by one, and never goes backward. From pair (2,1), the possible next pairs are (3,1), (2,2) and (3,2), provided they exist in the sequences. This monotone unit-step rule keeps order while permitting one observation to pair with more than one on the other side.
The archive record “DATOS trains SRA researchers in sugarcane mapping” uses this group photograph from DOST-ASTI’s November 2018 training account. It does not verify the invented alignment scores in this course.
Look closely
Does this group photograph validate an alignment score?
See what to notice
It documents the institutional training context. Verification of a numerical alignment needs the actual sequences, dates, processing rules and independent evidence.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Define the path before calculating its score
Use invented dimensionless sequences X=[1,1,3] and Y=[1,3,3], each sampled at three common, equally spaced dates. Our classroom model starts at pair(1,1) and ends at pair(3,3), using one-based indices. From a pair, advance X, advance Y, or advance both by one position. Never move backwards or skip over a position. Advancing only one sequence pairs another observation with the same observation on the other side. Thus this is not the one-to-one object assignment taught in SARwAIS.
Each visited pair contributes the absolute difference |Xᵢ−Yⱼ|, including the starting pair. Rows follow X and columns follow Y. The local-cost rows are [0,2,2], [0,2,2] and [2,0,0]. Add the costs along an allowed path. These unweighted steps and closed endpoints define this exercise completely; they are not asserted DATOS settings or the symmetric2 default in the dtw software reference. Different step weights or endpoint rules define a different calculation.
Evaluate one allowed path before searching for the best: (1,1) → (2,1) → (3,2) → (3,3). For X=[1,1,3] and Y=[1,3,3], its paired values are (1,1), (1,1), (3,3) and (3,3). All four absolute differences are zero, so this path costs zero. The accumulation method below checks that result systematically.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Accumulate the best cost without losing the path
For each cell, add its local cost to the smallest reachable accumulated cost immediately above, immediately left, or diagonally above-left. Initialize the starting cell with its local cost and treat nonexistent predecessors as unreachable. The resulting accumulated rows are [0,2,4], [0,2,4] and [2,0,0]. The final zero is the smallest complete-path cost, not the cost of just the last pair. Keeping the selected predecessors lets us explain the answer rather than presenting an unexplained score.
One path is(1,1)→(2,1)→(3,2)→(3,3). Its four pair costs are all zero. Equal-position comparison instead takes(1,1)→(2,2)→(3,3), costing0+2+0=2. X and Y are still unequal sequences despite the zero alignment cost: the path repeats values on each side. Similarity under this rule therefore does not prove the same physical field, crop, growth calendar or observation history.
Follow the lowest-cost path
Original dimensionless exercise: monotone unit moves, closed endpoints, each visited cell charged once. Highlighted cells form a zero-cost alignment of unequal sequences.
Open full-size diagram in a new tab: Follow the lowest-cost pathRead diagram data as a table
| X index / value | Y₁=1 | Y₂=3 | Y₃=3 |
|---|---|---|---|
| X₁=1 | 0 | 2 | 2 |
| X₂=1 | 0 | 2 | 2 |
| X₃=3 | 2 | 0 | 0 |
Original dimensionless exercise: monotone unit moves, closed endpoints, each visited cell charged once. Highlighted cells form a zero-cost alignment of unequal sequences.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: DOST-ASTI: DATOS applications, February2019Dated sugarcane mapping caption names dynamic time warping. Not a complete algorithm specification, current-service guarantee or evidence for teaching scores.
- Read: DOST-ASTI: DATOS overviewInstitutional program context and qualified examples of interpreted products. Not numerical validation of the original classroom models.
- Read: DOST-ASTI: transition agreement, April2022Project ended February2020; activities continued as services; joint-operation transition agreement. Not proof that every later transfer step completed.
- Read: Giorgino: dtw referenceLocal distance, allowed steps, global constraints, endpoints and normalization are configurable. Exercise uses explicitly different unweighted steps; no package-default or DATOS implementation equivalence asserted.