|
Download data/README.md from dormant78612/nextgenyeild-api: direct link, hf CLI and curl.
- Browser
- Download file 5.21 kB
-
https://huggingface.co/spaces/dormant78612/nextgenyeild-api/resolve/main/data/README.md
- Command line
-
hf download hf://spaces/dormant78612/nextgenyeild-api/data/README.md
-
curl -L -o README.md https://huggingface.co/spaces/dormant78612/nextgenyeild-api/resolve/main/data/README.md
5.21 kB
| # NextGenYeild Dataset Structure: Wheat Growth Stage Prediction (WGSP) | |
| This directory houses the dataset partitions for training, validating, and testing downstream growth-stage classification models on top of the FoMo4Wheat foundation representations. | |
| --- | |
| ## 1. Directory Structure | |
| ``` | |
| data/ | |
| βββ README.md # Dataset documentation & guidelines | |
| βββ .gitignore # Ensures image binaries are excluded from Git | |
| βββ raw/ # Original uncurated archives & raw image collections | |
| βββ processed/ # Cleaned, deduplicated, and resized images | |
| βββ train/ # Training set (split into 6 class folders) | |
| β βββ 0_tillering/ | |
| β βββ 1_jointing/ | |
| β βββ 2_booting/ | |
| β βββ 3_anthesis/ | |
| β βββ 4_grain_filling/ | |
| β βββ 5_maturity/ | |
| βββ validation/ # Validation set for hyperparameter tuning & early stopping | |
| β βββ 0_tillering/ | |
| β βββ 1_jointing/ | |
| β βββ 2_booting/ | |
| β βββ 3_anthesis/ | |
| β βββ 4_grain_filling/ | |
| β βββ 5_maturity/ | |
| βββ test/ # Held-out benchmark test set for final evaluation | |
| β βββ 0_tillering/ | |
| β βββ 1_jointing/ | |
| β βββ 2_booting/ | |
| β βββ 3_anthesis/ | |
| β βββ 4_grain_filling/ | |
| β βββ 5_maturity/ | |
| βββ external/ # Local/field images (smartphones, Pakistani farm trials) | |
| ``` | |
| --- | |
| ## 2. Label Taxonomy (The 6 WGSP Stages) | |
| Per project requirements, the taxonomy is strictly confined to the six biologically critical growth stages of wheat. (No disease, pest, nutrient deficiency, or stress categories are mixed into this classifier): | |
| | Class Index | Class Folder | Growth Stage Name | Description / Visual Phenotype | | |
| | :---: | :--- | :--- | :--- | | |
| | **0** | `0_tillering` | **Tillering** | Emergence of side shoots from the base; leafy, ground-covering canopy. | | |
| | **1** | `1_jointing` | **Jointing** | Rapid stem elongation; nodes become palpable/visible above ground. | | |
| | **2** | `2_booting` | **Booting** | Swollen flag leaf sheath concealing the developing wheat head/spike. | | |
| | **3** | `3_anthesis` | **Anthesis (Flowering)** | Emergence of the ear/spike; visible yellow/cream anthers. | | |
| | **4** | `4_grain_filling` | **Grain filling** | Milky to dough stage; spikes remain green/yellowish green, grains develop. | | |
| | **5** | `5_maturity` | **Maturity** | Ripening/senescence; golden-brown dry heads, ready for harvest. | | |
| --- | |
| ## 3. Image Sources & Provenance | |
| 1. **Benchmark Set (WGSP Dataset)**: | |
| - Reference: *Shen, L. et al. GSP-AI: An AI-Powered Platform for Identifying Key Growth Stages... Plant Phenomics 6, 0255 (2024)*. | |
| - 3,353 canopy images across 263 varieties collected in field trials across China, the UK, and the USA. | |
| 2. **Local / Farmer Field Set (`data/external/`)**: | |
| - **WGSP Smartphone Dataset**: *The-Zhou-Lab/GSP-AI* β `WGSP-Smartphone-Data` (2.51 GB). Contains real handheld smartphone wheat canopy photos spanning all 6 growth stages. To be used in **Phase 6** to evaluate on-device and handheld mobile photography variability. | |
| - **Kaggle Peshawar Wheat Dataset**: *Sarfaraz Khan et al. (The Journal of Engineering 2025)* β `sarfarazkhanmphil/wheat-weed-field-image-dataset`. Contains 2,074 field images from Peshawar, Pakistan. To be used in **Phase 6** for testing realism, Pakistani soil backgrounds, and weed/early-stage conditions. | |
| - Handheld smartphone images taken under varying farm conditions. | |
| --- | |
| ## 4. Image Requirements & Ingestion Standards | |
| - **Formats**: `.jpg`, `.jpeg`, `.png` | |
| - **Color Space**: 3-channel RGB (grayscale or 4-channel RGBA will be converted during preprocessing). | |
| - **Minimum Resolution**: $224 \times 224$ pixels. Recommended capture resolution: $\ge 518 \times 518$ pixels. | |
| - **Aspect Ratio**: Handled automatically via bicubic center-cropping / resizing in the pipeline. | |
| - **Lighting & Collection Conditions**: | |
| - Natural outdoor ambient lighting (avoid extreme lens flare or complete darkness). | |
| - Top-down or oblique angle ($45^\circ - 90^\circ$ relative to horizontal) capturing the upper canopy. | |
| - Clear view of key organs relevant to the stage (e.g., flag leaf, emerging head, spike). | |
| --- | |
| ## 5. Partition Guidelines (Train / Val / Test Split) | |
| When populating images from any dataset into `train/`, `validation/`, and `test/`: | |
| - **Training Set (`data/train/`)**: $\approx 70\%$ of images. | |
| - **Validation Set (`data/validation/`)**: $\approx 15\%$ of images. | |
| - **Held-Out Test Set (`data/test/`)**: $\approx 15\%$ of images. | |
| - **No Data Leakage**: Images of the same plot/trial taken within seconds or minutes must remain in the same split. | |
| --- | |
| ## 6. Naming Conventions & Metadata | |
| Files placed in stage subfolders should follow the standard naming scheme: | |
| ```text | |
| <dataset_prefix>_<variety>_<stage_code>_<unique_id>.<ext> | |
| ``` | |
| *Example*: `wgsp_varietyA_booting_00124.jpg` or `local_pak_faisalabad_jointing_0001.jpg` | |
| Metadata records can optionally be accompanied by a CSV in `processed/metadata.csv` containing: | |
| - `image_path` | |
| - `stage` | |
| - `variety` | |
| - `date_collected` | |
| - `location` | |
| - `source_device` | |