D-FINE Small Region Segmentation Model fine-tuned on Leibniz's Manuscripts (17th–Early 18th Century)
Contributors
Project manager:
Description
D-FINE Small Leibniz Region Segmentation Model
We fine-tuned the small dfine_kraken pre-trained model on the manually annotated pages of Gottfried Wilhelm Leibniz's manuscripts for region detection. The model detects 8 region types following SegmOnto vocabulary.
This model was developed within the framework of the ERC PHILIUMM project: The Philosophy of Leibniz in the Light of his Unpublished Mathematical Manuscripts, hosted at SPHERE (UMR 7219), Univ. Paris Cité - CNRS, Paris, France.
This fine-tuned model can be used directly in eScriptorium. For Python-based pipelines, we also provide a fine-tuned RF-DETR model, which achieved higher segmentation scores on Leibniz's manuscripts: https://zenodo.org/records/23919636.
Training Data
We fine-tuned the small pre-trained dfine_kraken model on 334 manually annotated images. We then evaluated the model on 58 validation images. The model was evaluated on the validation set.
The dataset is available at: dataset.
Uses
Intended to detect document zones in Leibniz's manuscripts such as: main text, margin text, graphic zones, digitization artefacts, numbering zones, as well as complex multi-lines formulae, inline formulae within text and struck-through formulae.
Bias, Risks and Limitations
- This model performs object detection: each predicted region is returned as a bounding box, not as a precise polygon. As a result, boxes of neighbouring regions may overlap.
- Training data is composed of one author's manuscripts for a precise period of time. It was not tested on manuscripts of different authors of the same or different periods.
- Mathematical formulae classes obtain lower scores than the other classes. Lowering the confidence score to 0.3-0.4 (for the math classes) retrives more math zones: below this range, overlapping zones start to appear; above it, some correct predictions with low confidence are lost.
Training
- Precision: bf16-mixed
- Epochs: 50
- Learning rate: 1e-4
- Schedule: constant with 1000-step warmup
- Weight decay: 1e-5
- Batch size: 8
- Image size: 1280x1280
- Augmentation: true
Evaluation
No test split is provided: all available pages were used for training in order to maximize the amount of training data. The model was evaluated on the validation split.
Metrics
Overall
| Model size | mAP@50 | mAP@50:95 | Precision | Recall | F1 |
| small | 0.5352 | 0.3945 | 0.5352 | 0.7481 | 0.6240 |
Per class
| Class | mAP@50:95 | Precision | Recall |
| DigitizationArtefactZone | 0.9840 | 0.9987 | 0.9867 |
| GraphicZone-figure | 0.3604 | 0.6553 | 0.5824 |
| MainZone | 0.7653 | 0.8557 | 0.9368 |
| MarginTextZone | 0.5532 | 0.7658 | 0.7241 |
| MathsRegion-complex | 0.0227 | 0.0596 | 0.3238 |
| MathsRegion-inline | 0.0936 | 0.2080 | 0.3409 |
| MathsRegion-strikethrough | 0.0080 | 0.0271 | 0.1473 |
| NumberingZone | 0.3690 | 0.7110 | 0.5000 |
| Overall | 0.3945 | 0.5352 | 0.5678 |