CoolFace
Datasetpublic

Shuoyang111/weedsense

WeedSense Dataset Multi-task temporal dataset of 16 weed species for semantic segmentation, height regression, and growth stage classification from the WeedSense paper: WeedSense: Multi-Task Learning for Weed Segmentation, Height Estimation, and Growth Stage Classification Toqi Tahamid Sarker, Khaled R Ahmed, Taminul Islam, Cristiana Bernardi Rankrape, Karla Gage Southern Illinois University Carbondale, USA ICCV 2025 Paper (arXiv) | Project Page | Code Overview… See the full description on the dataset page: https://huggingface.co/datasets/Shuoyang111/weedsense.

sourceHugging Facecc-by-nc-sa-4.0updated 7mo agoView on Hugging Face
0likes12downloads
Dataset Card

WeedSense Dataset

Multi-task temporal dataset of 16 weed species for semantic segmentation, height regression, and growth stage classification from the WeedSense paper:

WeedSense: Multi-Task Learning for Weed Segmentation, Height Estimation, and Growth Stage Classification Toqi Tahamid Sarker, Khaled R Ahmed, Taminul Islam, Cristiana Bernardi Rankrape, Karla Gage Southern Illinois University Carbondale, USA ICCV 2025 Paper (arXiv) | Project Page | Code

Overview

PropertyValue
Total frames120,341
Weed species16
Growth duration11 weeks
Total videos349
Frame resolution720 x 960 pixels
Annotation typesSegmentation masks, Height (cm), Growth stage (week)
Semantic classes17 (16 species + background)
Height range0.2 - 155 cm

Data Splits

SplitImagesPercentage
Train96,134~80%
Validation12,333~10%
Test11,874~10%

Folder Structure

Large folders are distributed as zip archives (HF enforces a 10,000-file-per-directory limit).

train/
  images.zip              # RGB images (720 x 960) as .jpg
  masks.zip               # Segmentation masks (single-channel, class IDs 0-16) as .png
  mmseg_masks.zip         # Segmentation masks formatted for MMSegmentation as .png
  xml.zip                 # VOC-format bounding box annotations as .xml
  train_data.csv          # Metadata: img, species, height, week
val/
  images.zip
  masks.zip
  mmseg_masks.zip
  xml.zip
  val_data.csv
test/
  images.zip
  masks.zip
  mmseg_masks.zip
  xml.zip
  test_data.csv

After Extracting

Each zip extracts into a flat list of files. For example, train/images.zip contains:

ABUTH_week_10_IMG_1656_frame_0.jpg
ABUTH_week_10_IMG_1656_frame_1.jpg
SETFA_week_8_IMG_1344_frame_13.jpg
...

File Naming Convention

All files follow the pattern: {SPECIES}_week_{WEEK}_IMG_{VIDEO_ID}_frame_{FRAME}.{ext}

Example: SETFA_week_8_IMG_1344_frame_13.jpg

CSV Metadata

Each split CSV contains columns:

ColumnTypeDescription
imgstringImage filename (e.g., ABUTH_week_10_IMG_1656_frame_0.jpg)
speciesstringWeed species EPPO code (e.g., ABUTH, SETFA)
heightfloatPlant height in centimeters (0.2 - 155.0 cm)
weekintGrowth stage week (1 - 11)

Segmentation Mask Values

Pixel ValueClass
0Background
1ABUTH (Velvetleaf)
2AMAPA (Palmer Amaranth)
3AMARE (Redroot Pigweed)
4AMATA / AMATU (Tall Waterhemp)
5AMBEL (Common Ragweed)
6CHEAL (Common Lambsquarters)
7CYPES (Yellow Nutsedge)
8DIGSA (Large Crabgrass)
9ECHCG (Barnyardgrass)
10ERICA (Horseweed)
11PANDI (Fall Panicum)
12SETFA (Giant Foxtail)
13SETPU (Yellow Foxtail)
14SIDSP (Prickly Sida)
15SORHA (Johnsongrass)
16SORVU (Shattercane)

Weed Species Summary

EPPO CodeScientific NameMax Height (cm)Growth Rate (cm/week)Category
AMATUAmaranthus tuberculatus155.013.72Fast
SORHASorghum halepense121.014.06Fast
SETFASetaria faberi124.011.75Fast
SORVUSorghum bicolor100.09.84Medium
PANDIPanicum dichotomiflorum87.08.40Medium
SETPUSetaria pumila99.08.20Medium
DIGSADigitaria sanguinalis77.07.53Medium
ECHCGEchinochloa crus-galli80.07.38Medium
SIDSPSida spinosa69.06.77Medium
AMAREAmaranthus retroflexus75.06.86Medium
ABUTHAbutilon theophrasti72.06.32Medium
AMBELAmbrosia artemisiifolia71.06.19Medium
AMAPAAmaranthus palmeri62.05.66Slow
CYPESCyperus esculentus56.05.42Slow
CHEALChenopodium album30.02.86Slow
ERICAErigeron canadensis17.31.70Slow

Data Collection

  • Location: SIU Horticulture Research Center greenhouse, Southern Illinois University Carbondale, USA
  • Equipment: iPhone 15 Pro Max positioned 1.5 feet above specimens
  • Capture: 360-degree video at 1440 x 1920 resolution, 30 FPS
  • Environment: 1000W HPS grow lights, 30-32 degree C
  • Preprocessing: Temporal downsampling (every 2nd frame), spatial downscaling to 720 x 960
  • Annotation: SAM2-Hiera-L semi-automatic segmentation with manual verification and correction
  • Height: 325 manual weekly measurements (0.2 - 155 cm)

Benchmark Results (WeedSense Model)

TaskMetricValue
SegmentationmIoU89.78%
SegmentationmF194.54%
Height EstimationMAE1.67 cm
Height EstimationRMSE2.32 cm
Height EstimationR squared0.9941
Growth StageAccuracy99.99%
Growth StageF199.99%

Usage

python
from huggingface_hub import snapshot_download, hf_hub_download
import zipfile, os

# Download entire dataset
local_dir = snapshot_download(repo_id="baselab/weedsense", repo_type="dataset")

# Extract a zip file
with zipfile.ZipFile(os.path.join(local_dir, "train", "images.zip"), "r") as z:
    z.extractall(os.path.join(local_dir, "train", "images"))

# Load metadata
import pandas as pd
train_csv = hf_hub_download(
    repo_id="baselab/weedsense",
    repo_type="dataset",
    filename="train/train_data.csv",
)
df = pd.read_csv(train_csv)
print(df.head())
#                                        img species  height  week
# 0  ABUTH_week_10_IMG_1656_frame_0.jpg   ABUTH    50.0    10
# 1  ABUTH_week_10_IMG_1656_frame_1.jpg   ABUTH    50.0    10

Citation

If you use this dataset, please cite:

bibtex
@inproceedings{sarker2025weedsense,
  title={Weedsense: Multi-task learning for weed segmentation, height estimation, and growth stage classification},
  author={Sarker, Toqi Tahamid and Ahmed, Khaled R and Islam, Taminul and Rankrape, Cristiana Bernardi and Gage, Karla},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages={7180--7190},
  year={2025}
}

License

This dataset is released under the CC BY-NC-SA 4.0 license. Commercial use is not permitted. Derivative works must use the same license.