Datasets:

Cassiebastress commited on
Commit
a685188
·
verified ·
1 Parent(s): 8142b00

add experiment2 report: CH-Fco Ms. 2

Browse files
data/CH-Fco_Ms2/experiment2/report.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Experiment 2 Report: CATDOES Pipeline on CH-Fco Ms. 2
2
+
3
+ **Manuscript:** CH-Fco Ms. 2 ([Cantus source 123672](https://cantusdatabase.org/source/123672))
4
+ **Folios:** 002r, 002v, 003r, 003v, 005r, 005v, 006r, 006v, 007r, 007v, 008r, 008v, 009r, 009v, 029v, 030v, 032r, 032v, 034r, 040v (20 non-contiguous folios)
5
+ **Date run:** 2026-07-27
6
+ **Wall-clock time:** ~3m 11s (CPU only, ~3.4 cores via parallelism)
7
+
8
+ ---
9
+
10
+ ## Overview
11
+
12
+ This experiment runs the CATDOES pipeline on 20 non-contiguous folios of CH-Fco Ms. 2, a manuscript with volpiano encoding in the Cantus Database. The goals were to test two capabilities not exercised in experiment 1: (1) volpiano `77`-break anchors in the NW allocator, and (2) FolioState reset behaviour at contiguity gaps. The pipeline ran to completion with no crashes or bugs.
13
+
14
+ ---
15
+
16
+ ## Volpiano Encoding
17
+
18
+ Unlike experiment 1 (MS 0234), chants on this manuscript have volpiano encoding. The NW allocator uses `77` markers in the volpiano field as hard line-break anchors, snapping word boundaries to the physical end of a music line. Across the 20 folios, 19 `page_break_77` anchor hits were recorded in the debug output, confirming that volpiano-guided alignment was active throughout the run.
19
+
20
+ ---
21
+
22
+ ## Stage 0 Masking: Non-Chant Text
23
+
24
+ The primary source of alignment degradation on this manuscript is the Stage 0 region segmentation model failing to classify large blocks of non-chant text correctly. When these blocks are misclassified as chant regions, they are not masked out, so Kraken's line segmentation model detects them as text lines and they enter the NW allocation step.
25
+
26
+ **006v** is the most severely affected folio (mean NW score: −1.03). A large non-chant text block at the top of the page is detected as chant by the region model. Because this block appears first in reading order, the NW allocator begins aligning CantusDB words to it from the start of the folio, producing a cascading alignment failure down the entire page.
27
+
28
+ **008v** contains the single worst-scoring line in the run (norm = −7.93): a `euouae` psalm-tone termination where the allocator assigns one word to a long OCR line that actually spans non-chant text. Seven folios in the run (003v, 006v, 007r, 007v, 008r, 009r, 040v) have negative mean NW scores, all attributable to this masking issue to varying degrees.
29
+
30
+ On folios with little non-chant text — for example, **006r** — alignment quality is considerably better, demonstrating that the pipeline performs well when Stage 0 masking is accurate.
31
+
32
+ A secondary masking issue is that the region segmentation model occasionally misses individual chant words. The missed words are masked out and thus not seen by Kraken, degrading bounding-box accuracy and OCR quality on those lines even when the overall folio layout is correct.
33
+
34
+ ---
35
+
36
+ ## No Bugs Found
37
+
38
+ No bugs were identified in this run. The issues described above are a known limitation of the region segmentation model's ability to discriminate chant from non-chant text, not errors in the pipeline logic.
39
+
40
+ ---
41
+
42
+ ## Output Structure
43
+
44
+ Four output directories, 20 files each:
45
+
46
+ | Directory | Contents |
47
+ |-----------|----------|
48
+ | `pipeline_json/` | Pipeline JSON per folio: lines with bounding boxes, polygons, OCR text, and Cantus-aligned word/syllable segmentation |
49
+ | `ocr_debug/` | NW alignment debug per folio: fused OCR transcripts and per-line alignment detail |
50
+ | `mothra_json/` | YOLO annotation output from Stage 0 masking |
51
+ | `yolo_debug/` | Human-readable YOLO detection summary per folio |
52
+
53
+ Output is also stored on HuggingFace at `DDMAL-lab/CATDOES` under `data/CH-Fco_Ms2/experiment2/`. Source images are at `data/CH-Fco_Ms2/images/`.
54
+
55
+ ---
56
+
57
+ ## Alignment Quality
58
+
59
+ Across 253 lines (all 20 folios), normalized NW scores ranged from −7.93 to 7.80, with a mean of 2.41 and median of 2.98. 114 lines (45%) scored below 2.0, compared to 14% in experiment 1.
60
+
61
+ The increase in low-scoring lines is primarily explained by the masking failures described above. The later isolated folios (029v, 030v, 032r, 032v, 034r), which were processed with reset FolioState and appear to contain less non-chant text, scored considerably better.