File size: 3,603 Bytes
bcb16da
 
 
734cc82
 
 
bcb16da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
license: mit
task_categories:
- tabular-classification
- graph-ml
- other
language:
- en
tags:
- 3d-entity-matching
- spatio-temporal
- entity-resolution
- cityjson
- citygml
- building-matching
- disaster-response
- few-shot-learning
- geospatial
pretty_name: STEM - Spatio-Temporal 3D Entity Matching Benchmark
size_categories:
- 10M-100M
---

# STEM: Spatio-Temporal 3D Entity Matching Benchmark

[![HuggingFace](https://img.shields.io/badge/HuggingFace-STEM-blue)](https://huggingface.co/datasets/eduzrh/STEM)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

The **first spatio-temporal 3D entity matching benchmark** for evaluating matching algorithms on 3D building objects across both different data sources and different time points. Designed for both **unsupervised** and **few-shot** entity matching.

## Overview

Traditional entity matching operates on tabular records. But real-world geospatial entities — buildings, bridges, infrastructure — are inherently 3D objects. **STEM** enables rigorous evaluation of 3D entity matching under:

- **Cross-source** scenarios (different data providers, LOD levels)
- **Cross-time** scenarios (multi-epoch building inventories)
- **Post-disaster** scenarios (CRS misalignment + structural damage)

## Quick Start

```bash
# Clone the repo
git clone https://huggingface.co/datasets/eduzrh/STEM
cd STEM

# Install dependencies
pip install -r code/3dSAGER/requirements.txt

# Run baseline experiment
cd code/3dSAGER
python main.py --dataset_name Hague --evaluation_mode matching --blocking_method bkafi
```

## Benchmark Tasks

| Task | Description | Difficulty |
|---|---|---|
| **Task 1: Cross-Source** | Match buildings across different data providers (same epoch) | Medium |
| **Task 2: Cross-Time** | Match buildings across different time points (same provider) | Hard |
| **Task 3: Full ST-EM** | Match across both source AND time + disaster simulation | Very Hard |

## Datasets

| Dataset | Buildings | Epochs | Format | Status |
|---|---|---|---|---|
| The Hague (3D BAG) | 155,699 | 1 (2 sources) | CityJSON | ✅ Integrated |
| Lyon Multi-Epoch | ~150K/epoch | 4 (2009-2018) | CityGML | 🔄 In Progress |

## Baseline Results (The Hague, small subset)

| Model | Precision | Recall | F1 |
|---|---|---|---|
| XGBoost | 0.997 | 1.0 | 0.998 |
| Random Forest | 0.997 | 1.0 | 0.998 |
| AdaBoost | 0.991 | 1.0 | 0.995 |
| MLP | 0.958 | 0.979 | 0.968 |

*With disaster simulation (CRS rotation 184° + damage 80%) and RANSAC alignment (rotation error 0.03°)*

## Repository Structure

```
STEM/
├── README.md
├── docs/
│   └── STEM_benchmark_specification.md    # Full benchmark specification
├── code/
│   └── 3dSAGER/                            # Core pipeline adapted for STEM
│       ├── main.py
│       ├── pipelines.py
│       ├── disaster_simulation.py
│       ├── alignment.py
│       └── config.py
├── data/
│   └── hague/                              # The Hague baseline data
├── experiments/
│   ├── results/                            # Experiment outputs & logs
│   ├── run_full_pipeline.sh
│   └── run_experiments.sh
└── .gitattributes
```

## Citation

```bibtex
@misc{stem2026,
  title={STEM: A Spatio-Temporal 3D Entity Matching Benchmark},
  author={Edu, ZRH},
  year={2026},
  publisher={HuggingFace},
  howpublished={\url{https://huggingface.co/datasets/eduzrh/STEM}}
}
```

## License

MIT License — see LICENSE file for details.