Datasets:
File size: 3,914 Bytes
f992c6a 6b4015f f992c6a 6b4015f f992c6a 6b4015f f992c6a 6b4015f f992c6a 6b4015f f992c6a 6b4015f 5dc0ad0 f992c6a 6b4015f f992c6a 5dc0ad0 f992c6a 5dc0ad0 f992c6a 50b5ef9 f992c6a 50b5ef9 f992c6a 5dc0ad0 94ab475 eaa7171 f59b5c9 94ab475 f59b5c9 94ab475 f59b5c9 6b4015f |
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 |
---
configs:
- config_name: labeled_all
data_files: labeled_all/all.csv
default: true
description: Labeled spectra data with trait measurements for supervised learning.
- config_name: unlabeled
data_files: unlabeled/*.csv
description: Unlabeled spectra data for semi-supervised or self-supervised learning.
- config_name: labeled_splits
data_files:
- split: train
path: labeled_splits/train.csv
- split: test
path: labeled_splits/test.csv
description: A stratified splitting of the labeled data.
task_categories:
- image-feature-extraction
license: cc-by-nc-4.0
language:
- en
tags:
- hyperspectral
- vegetation
- plant-traits
- remote-sensing
- climate-change
---
# 🌱 GreenHyperSpectra: A multi-source hyperspectral dataset for global vegetation trait prediction 🌱
[Paper](https://huggingface.co/papers/2507.06806)
GreenHySpectra is a collection of hyperspectral reflectance data of vegetation from different sources. It is intended for Regression machine learning task for plant trait prediction with self and semi-supervised learning.
## 📁 Configurations
### 1. `GreenHyperSpectra: Unlabeled set`
- Files: all CSVs under `unlabeled/`
- Contains:
- Sample ID
- Spectral bands (400-2450 nm) >> 1721 bands
| Column | Description |
|----------------|-----------------------------------------|
| 400 | Reflectance at 400nm |
| ... | More spectral bands |
| 2450 | Reflectance at 2450nm |
---
### 2. `Labeled set`
- File: `labeled/all.csv`
- Contains:
- Sample ID
- Dataset ID
- Spectral bands (400-2450 nm) >> 1721 bands
- Trait measurements (e.g., leaf chlorophyll, nitrogen content etc.)
| Column | Description |
|----------------|-----------------------------------------|
| dataset | Reference to the source of the dataset |
| 400 | Reflectance at 400nm |
| ... | More spectral bands |
| 2450 | Reflectance at 2450nm |
| Cp | Nitrogen content (g/cm²) |
| Cm | Leaf mass per area (g/cm²) |
| Cw | Leaf water content (cm) |
| LAI | Leaf area index (m²/m²) |
| Cab | Leaf chrolophyll content (µg/m²) |
| Car | Leaf carotenoids content (µg/m²) |
| Anth | Leaf anthocynins content (µg/m²) |
| Cbc | Carbon-based constituents (g/cm²) |
---
### 3. `Split labeled set`
- Files: all CSVs under `labeled_splits/`
These files follow the same format as the previous set but are pre-split for machine learning purposes. The split is stratified based on the dataset ID, with 20% of the data reserved for testing.
> ⚠️ **Note:** Due to the high dimensionality of spectral datasets—often containing hundreds or thousands of columns—**Hugging Face Data Studio may not render these files properly**. This is a known limitation, as the Studio interface is not optimized for wide tabular data.
>
> To work effectively with this dataset, we recommend using the **Hugging Face `datasets` library** or the **MLCroissant Python library** for programmatic access and exploration.
```
### Check the data with Hugging Face datasets library ###
from datasets import load_dataset
### labeled_all ###
# Login using e.g. `huggingface-cli login` to access this dataset
ds = load_dataset("Avatarr05/GreenHyperSpectra", "labeled_all")
df = ds['train'].to_pandas().drop(['Unnamed: 0'], axis=1)
display(df.head())
### labeled_splits: train ###
train_dataset = load_dataset("Avatarr05/GreenHyperSpectra", 'labeled_splits', split="train")
train_dataset = train_dataset.to_pandas().drop(['Unnamed: 0'], axis=1)
display(df.head())
``` |