Update README
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ NEST3D is a multimodal dataset of 104 sociable weaver nests, combining drone-bas
|
|
| 27 |
- **Scale**: Multiple tree-nest scenes with consistent spatial and spectral coverage
|
| 28 |
- **Annotation**: Point-level semantic labels for 3D point clouds
|
| 29 |
- **Data Source**: Drone-based RGB and multispectral imagery
|
| 30 |
-
- **Application Domain**: Ecological monitoring, wildlife management, 3d semantic
|
| 31 |
|
| 32 |
## Dataset Organization
|
| 33 |
|
|
@@ -37,113 +37,163 @@ The dataset is organized into modality-specific directories to support flexible
|
|
| 37 |
|
| 38 |
```
|
| 39 |
NEST3D/
|
| 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 |
### Data Modalities
|
| 71 |
|
| 72 |
#### 1. **RGB Imagery**
|
| 73 |
- Raw drone images from aerial acquisition
|
| 74 |
-
- Format: JPEG
|
| 75 |
-
-
|
| 76 |
-
- Example path: `train/sample_001/RGB/sample001_RGB_119.JPG`
|
| 77 |
|
| 78 |
#### 2. **Multispectral Imagery**
|
| 79 |
- Four spectral bands from the same acquisitions as RGB
|
| 80 |
-
- Organized into four band-specific folders:
|
| 81 |
- **Green (G)**: Green channel imagery
|
| 82 |
- **Red (R)**: Red channel imagery
|
| 83 |
- **Red Edge (RE)**: Red Edge channel for vegetation analysis
|
| 84 |
- **NIR**: Near-Infrared channel for vegetation health assessment
|
| 85 |
- Format: GeoTIFF (.TIF)
|
| 86 |
-
- Example paths:
|
| 87 |
-
- `
|
| 88 |
-
- `
|
| 89 |
-
- `
|
| 90 |
-
- `
|
| 91 |
|
| 92 |
#### 3. **3D Point Clouds**
|
| 93 |
-
- One
|
| 94 |
-
- Format: `.
|
| 95 |
-
- Per-point attributes: `[x, y, z,
|
| 96 |
- **x, y, z**: 3D spatial coordinates (meters)
|
| 97 |
-
- **
|
| 98 |
-
- **
|
| 99 |
-
- Example path: `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
## Data Splits
|
| 102 |
|
| 103 |
-
|
| 104 |
|
| 105 |
-
|
| 106 |
-
- **Test Set**: Reserved for model evaluation and benchmarking
|
| 107 |
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
## Usage
|
| 111 |
|
| 112 |
### Loading 3D Point Clouds
|
| 113 |
|
| 114 |
```python
|
|
|
|
| 115 |
import numpy as np
|
| 116 |
|
| 117 |
# Load point cloud with semantic labels
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
# Extract coordinates
|
| 121 |
-
xyz = point_cloud[:, :3]
|
| 122 |
|
| 123 |
-
|
| 124 |
-
rgb =
|
| 125 |
-
|
| 126 |
-
# Extract semantic labels
|
| 127 |
-
labels = point_cloud[:, 6]
|
| 128 |
```
|
| 129 |
|
| 130 |
### Loading Multispectral Imagery
|
| 131 |
|
| 132 |
```python
|
|
|
|
| 133 |
from PIL import Image
|
| 134 |
import numpy as np
|
|
|
|
| 135 |
|
| 136 |
-
|
| 137 |
-
|
|
|
|
|
|
|
| 138 |
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
nir = np.array(Image.open('train/sample_001/MS/NIR/sample001_NIR_001.TIF'))
|
| 144 |
|
| 145 |
-
|
| 146 |
-
multispectral = np.stack([green, red, red_edge, nir], axis=-1)
|
| 147 |
```
|
| 148 |
|
| 149 |
### Using with Hugging Face Datasets Library
|
|
@@ -166,13 +216,14 @@ huggingface-cli download NEST3D/dataset --repo-type dataset --local-dir ./NEST3D
|
|
| 166 |
|
| 167 |
## Dataset Information
|
| 168 |
|
| 169 |
-
- **
|
| 170 |
-
|
|
|
|
|
|
|
| 171 |
- **Modalities**: RGB, Multispectral (4 bands), 3D Point Clouds
|
| 172 |
- **Image Format**: JPEG (RGB), GeoTIFF (Multispectral)
|
| 173 |
-
- **Point Cloud Format**:
|
| 174 |
-
- **Annotation Type**: Per-point semantic labels
|
| 175 |
-
|
| 176 |
|
| 177 |
## Citation
|
| 178 |
|
|
@@ -207,5 +258,5 @@ We extend our gratitude to our collaborators and field partners in Namibia for t
|
|
| 207 |
For questions, issues, or contributions, please visit the [dataset discussion forum](https://huggingface.co/datasets/NEST3D/dataset/discussions).
|
| 208 |
|
| 209 |
|
| 210 |
-
**Last Updated**:
|
| 211 |
-
**Dataset Version**: 1.
|
|
|
|
| 27 |
- **Scale**: Multiple tree-nest scenes with consistent spatial and spectral coverage
|
| 28 |
- **Annotation**: Point-level semantic labels for 3D point clouds
|
| 29 |
- **Data Source**: Drone-based RGB and multispectral imagery
|
| 30 |
+
- **Application Domain**: Ecological monitoring, wildlife management, 3d semantic segmentation, 3d reconstruction.
|
| 31 |
|
| 32 |
## Dataset Organization
|
| 33 |
|
|
|
|
| 37 |
|
| 38 |
```
|
| 39 |
NEST3D/
|
| 40 |
+
├── images/
|
| 41 |
+
│ ├── sample001.tar.gz
|
| 42 |
+
│ │ └── (extracts to:)
|
| 43 |
+
│ │ ├── RGB/
|
| 44 |
+
│ │ │ ├── sample001_RGB_001.JPG
|
| 45 |
+
│ │ │ └── ...
|
| 46 |
+
│ │ └── MS/
|
| 47 |
+
│ │ ├── Green/
|
| 48 |
+
│ │ │ ├── sample001_G_001.TIF
|
| 49 |
+
│ │ │ └── ...
|
| 50 |
+
│ │ ├── Red/
|
| 51 |
+
│ │ │ ├── sample001_R_001.TIF
|
| 52 |
+
│ │ │ └── ...
|
| 53 |
+
│ │ ├── Red_Edge/
|
| 54 |
+
│ │ │ ├── sample001_RE_001.TIF
|
| 55 |
+
│ │ │ └── ...
|
| 56 |
+
│ │ └── NIR/
|
| 57 |
+
│ │ ├── sample001_NIR_001.TIF
|
| 58 |
+
│ │ └── ...
|
| 59 |
+
│ ├── sample002.tar.gz
|
| 60 |
+
│ └── ...
|
| 61 |
│
|
| 62 |
+
├── reconstructions/
|
| 63 |
+
│ ├── sample001/
|
| 64 |
+
│ │ ├── sample001.ply
|
| 65 |
+
│ │ ├── sample001_rgb_cameras.json
|
| 66 |
+
│ │ ├── sample001_ms_cameras.json
|
| 67 |
+
│ │ └── sample001_summary.json
|
| 68 |
+
│ └── ...
|
| 69 |
+
│
|
| 70 |
+
├── metadata/
|
| 71 |
+
│ └── (ecological metadata — coming soon)
|
| 72 |
+
│
|
| 73 |
+
├── validation/
|
| 74 |
+
│ ├── expert_validation_R1.csv
|
| 75 |
+
│ └── expert_validation_R2.csv
|
| 76 |
+
│
|
| 77 |
+
├── scripts/
|
| 78 |
+
│ ├── preprocess_step1_correct_ply.py
|
| 79 |
+
│ ├── preprocess_step2_qc_plots.py
|
| 80 |
+
│ ├── preprocess_step3_ptv3.py
|
| 81 |
+
│ ├── preprocess_step4_o3dml.py
|
| 82 |
+
│ └── extract_metadata.py
|
| 83 |
+
│
|
| 84 |
+
├── train.txt
|
| 85 |
+
├── val.txt
|
| 86 |
+
└── test.txt
|
| 87 |
```
|
|
|
|
| 88 |
### Data Modalities
|
| 89 |
|
| 90 |
#### 1. **RGB Imagery**
|
| 91 |
- Raw drone images from aerial acquisition
|
| 92 |
+
- Format: JPEG, packaged per scene as a compressed archive
|
| 93 |
+
- Example path: `images/sample001.tar.gz` → `RGB/sample001_RGB_119.JPG`
|
|
|
|
| 94 |
|
| 95 |
#### 2. **Multispectral Imagery**
|
| 96 |
- Four spectral bands from the same acquisitions as RGB
|
| 97 |
+
- Organized into four band-specific folders within each scene's archive:
|
| 98 |
- **Green (G)**: Green channel imagery
|
| 99 |
- **Red (R)**: Red channel imagery
|
| 100 |
- **Red Edge (RE)**: Red Edge channel for vegetation analysis
|
| 101 |
- **NIR**: Near-Infrared channel for vegetation health assessment
|
| 102 |
- Format: GeoTIFF (.TIF)
|
| 103 |
+
- Example paths (inside `images/sample001.tar.gz`):
|
| 104 |
+
- `MS/Green/sample001_G_119.TIF`
|
| 105 |
+
- `MS/Red/sample001_R_119.TIF`
|
| 106 |
+
- `MS/Red_Edge/sample001_RE_119.TIF`
|
| 107 |
+
- `MS/NIR/sample001_NIR_119.TIF`
|
| 108 |
|
| 109 |
#### 3. **3D Point Clouds**
|
| 110 |
+
- One binary PLY file per scene containing the complete 3D reconstruction
|
| 111 |
+
- Format: `.ply` (binary, little-endian)
|
| 112 |
+
- Per-point attributes: `[x, y, z, red, green, blue, scalar_Classification]`
|
| 113 |
- **x, y, z**: 3D spatial coordinates (meters)
|
| 114 |
+
- **red, green, blue**: RGB color values (0–255)
|
| 115 |
+
- **scalar_Classification**: Semantic class label (float-encoded integer): `0` = grass, `1` = tree, `2` = nest, `255` = unclassified / ignore
|
| 116 |
+
- Example path: `reconstructions/sample001/sample001.ply`
|
| 117 |
+
- **Note on the ignore label**: a subset of points in some scenes could not be confidently assigned a class during manual annotation and are marked `255`. This affects 24 of the 104 scenes, ranging from 0.14% to 13.09% of points in the affected scenes. We recommend excluding these points from training and evaluation via an ignore-index mask.
|
| 118 |
+
|
| 119 |
+
#### 4. **Camera Parameters**
|
| 120 |
+
Each scene's `reconstructions/sampleXXX/` folder includes three JSON files:
|
| 121 |
+
- **`sampleXXX_rgb_cameras.json`**: per-image intrinsics (focal length, principal point, Brown–Conrady distortion coefficients) and extrinsics (camera-to-chunk / chunk-to-camera 4×4 transforms) for every RGB image used in the photogrammetric reconstruction.
|
| 122 |
+
- **`sampleXXX_ms_cameras.json`**: the same per-image intrinsics and extrinsics for every multispectral image (all four bands). Camera extrinsics are identical between the RGB camera and the four multispectral bands at each capture, reflecting the rigid multi-camera rig calibration in which all five sensors are treated as co-located on a shared gimbal. Intrinsics are estimated independently per sensor.
|
| 123 |
+
- **`sampleXXX_summary.json`**: per-scene summary metadata, including total point count, number of aligned RGB/multispectral cameras per band, and the chunk-to-world georeferencing transform.
|
| 124 |
+
|
| 125 |
+
#### 5. **Ecological Metadata**
|
| 126 |
+
*(Section coming soon — derived per-scene ecological statistics, e.g. tree height, canopy area, nest count and volume.)*
|
| 127 |
+
|
| 128 |
+
## Expert Biological Validation
|
| 129 |
+
|
| 130 |
+
The files `expert_validation_R1.csv` and `expert_validation_R2.csv` contain independent biological assessments of all 104 annotated point clouds, conducted by two field biologists with expertise in sociable weaver ecology. Each sample was evaluated on the following criteria:
|
| 131 |
+
|
| 132 |
+
| Column | Description | Options |
|
| 133 |
+
|--------|-------------|---------|
|
| 134 |
+
| `sample_id` | Sample identifier | sample001–sample104 |
|
| 135 |
+
| `Q1_nest_completeness` | Does the nest label capture the full visible nest structure? | Yes - fully captured / Partial / No / Cannot assess |
|
| 136 |
+
| `Q2_nest_precision` | Does the nest label include false positives from the tree canopy? | None / Minor / Significant / Cannot assess |
|
| 137 |
+
| `Q3_boundary_quality` | Is the nest–tree boundary ecologically reasonable? | Yes / Acceptable / No / Cannot assess |
|
| 138 |
+
| `Q4_grass_ground_plane` | Does the grass label correctly represent ground-level vegetation? | Yes / Acceptable / No / Cannot assess |
|
| 139 |
+
| `Q5_overall_quality` | Overall annotation quality | 1 (very poor) – 5 (excellent) |
|
| 140 |
+
| `Q6_tree_species` | Identified host tree species | Vachellia erioloba / Boscia albitrunca / Other / Uncertain |
|
| 141 |
+
| `Q6b_species_confidence` | Confidence in species identification | Confident / Somewhat confident / Uncertain |
|
| 142 |
+
| `Q7_nest_activity` | Estimated nest activity status | Active / Likely active / Likely abandoned / Abandoned / Cannot assess |
|
| 143 |
+
| `Q8_occlusion_severity` | Degree of nest occlusion by canopy | Low / Medium / High |
|
| 144 |
+
| `Q9_annotation_difficulty` | Estimated annotation difficulty | Easy / Moderate / Hard / Very hard |
|
| 145 |
+
| `Q10_free_observations` | Free-text ecological observations | — |
|
| 146 |
|
| 147 |
## Data Splits
|
| 148 |
|
| 149 |
+
Sample IDs for a stratified 72/16/16 train/validation/test split are provided as `train.txt`, `val.txt`, and `test.txt` (one sample ID per line) in the repository root. The split was stratified by nest-point percentage to ensure balanced representation of the minority (nest) class across subsets. These files are the authoritative split definition used in our reported benchmarks; users are of course free to define alternative splits from the provided scenes.
|
| 150 |
|
| 151 |
+
## Processing Scripts
|
|
|
|
| 152 |
|
| 153 |
+
The `scripts/` folder contains the preprocessing pipeline used to prepare the raw data for model training:
|
| 154 |
+
|
| 155 |
+
- **`preprocess_step1_correct_ply.py`**: Cleans the raw point clouds — removes spatial outlier grass points, levels the ground plane where needed, grounds the Z-axis, and applies a point budget/downsampling step for very large scenes. Produces a corrected point cloud (not released; regenerate locally by running this script on the raw `.ply` files).
|
| 156 |
+
- **`preprocess_step2_qc_plots.py`**: Generates quality-control visualizations (top/side/front views, labeled and RGB-colored, with per-class point counts) for visual inspection of raw or corrected point clouds.
|
| 157 |
+
- **`preprocess_step3_ptv3.py`**: Converts corrected point clouds into the Pointcept training format (`coord.npy`, `color.npy`, `segment.npy`), split into train/val/test folders per `train.txt`/`val.txt`/`test.txt`.
|
| 158 |
+
- **`preprocess_step4_o3dml.py`**: Converts the Pointcept-format data into the Open3D-ML format used for RandLA-Net and KPConv training/evaluation.
|
| 159 |
+
- **`extract_metadata.py`**: *(documentation coming soon)*
|
| 160 |
|
| 161 |
## Usage
|
| 162 |
|
| 163 |
### Loading 3D Point Clouds
|
| 164 |
|
| 165 |
```python
|
| 166 |
+
from plyfile import PlyData
|
| 167 |
import numpy as np
|
| 168 |
|
| 169 |
# Load point cloud with semantic labels
|
| 170 |
+
ply = PlyData.read('reconstructions/sample001/sample001.ply')
|
| 171 |
+
vertex = ply['vertex']
|
|
|
|
|
|
|
| 172 |
|
| 173 |
+
xyz = np.stack([vertex['x'], vertex['y'], vertex['z']], axis=-1)
|
| 174 |
+
rgb = np.stack([vertex['red'], vertex['green'], vertex['blue']], axis=-1)
|
| 175 |
+
labels = np.asarray(vertex['scalar_Classification']) # 0=grass, 1=tree, 2=nest, 255=ignore
|
|
|
|
|
|
|
| 176 |
```
|
| 177 |
|
| 178 |
### Loading Multispectral Imagery
|
| 179 |
|
| 180 |
```python
|
| 181 |
+
import tarfile
|
| 182 |
from PIL import Image
|
| 183 |
import numpy as np
|
| 184 |
+
import io
|
| 185 |
|
| 186 |
+
with tarfile.open('images/sample001.tar.gz') as tar:
|
| 187 |
+
def load_band(path):
|
| 188 |
+
f = tar.extractfile(path)
|
| 189 |
+
return np.array(Image.open(io.BytesIO(f.read())))
|
| 190 |
|
| 191 |
+
green = load_band('MS/Green/sample001_G_001.TIF')
|
| 192 |
+
red = load_band('MS/Red/sample001_R_001.TIF')
|
| 193 |
+
red_edge = load_band('MS/Red_Edge/sample001_RE_001.TIF')
|
| 194 |
+
nir = load_band('MS/NIR/sample001_NIR_001.TIF')
|
|
|
|
| 195 |
|
| 196 |
+
multispectral = np.stack([green, red, red_edge, nir], axis=-1)
|
|
|
|
| 197 |
```
|
| 198 |
|
| 199 |
### Using with Hugging Face Datasets Library
|
|
|
|
| 216 |
|
| 217 |
## Dataset Information
|
| 218 |
|
| 219 |
+
- **Number of Scenes**: 104
|
| 220 |
+
- **Total Points**: 951.66M (mean 9.15M ± 8.63M per scene; range 0.69M–68.39M)
|
| 221 |
+
- **Total RGB Images**: 25,172 (mean 242 per scene; range 19–562)
|
| 222 |
+
- **Class Distribution**: Grass 45.39%, Tree 48.30%, Nest 5.28%
|
| 223 |
- **Modalities**: RGB, Multispectral (4 bands), 3D Point Clouds
|
| 224 |
- **Image Format**: JPEG (RGB), GeoTIFF (Multispectral)
|
| 225 |
+
- **Point Cloud Format**: Binary PLY
|
| 226 |
+
- **Annotation Type**: Per-point semantic labels, plus expert biological validation (see above)
|
|
|
|
| 227 |
|
| 228 |
## Citation
|
| 229 |
|
|
|
|
| 258 |
For questions, issues, or contributions, please visit the [dataset discussion forum](https://huggingface.co/datasets/NEST3D/dataset/discussions).
|
| 259 |
|
| 260 |
|
| 261 |
+
**Last Updated**: July 2026
|
| 262 |
+
**Dataset Version**: 1.1
|