text
stringlengths 0
112
|
|---|
======================================================================
|
MULTI-YEAR YIELD COMPARISON ANALYSIS
|
Region: SHwanghae_NK
|
Years: [2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022]
|
======================================================================
|
DATASETS INCLUDED:
|
2010: 8,927 points, mean yield: 4.83 t/ha, std: 1.25 t/ha
|
2011: 7,622 points, mean yield: 3.72 t/ha, std: 1.20 t/ha
|
2012: 7,962 points, mean yield: 4.22 t/ha, std: 0.83 t/ha
|
2013: 7,808 points, mean yield: 5.02 t/ha, std: 1.31 t/ha
|
2014: 6,955 points, mean yield: 4.93 t/ha, std: 1.15 t/ha
|
2015: 7,796 points, mean yield: 2.95 t/ha, std: 0.77 t/ha
|
2016: 7,347 points, mean yield: 5.55 t/ha, std: 1.07 t/ha
|
2017: 7,664 points, mean yield: 5.20 t/ha, std: 1.04 t/ha
|
2018: 7,277 points, mean yield: 4.20 t/ha, std: 1.40 t/ha
|
2019: 7,706 points, mean yield: 4.18 t/ha, std: 0.92 t/ha
|
2020: 7,383 points, mean yield: 4.76 t/ha, std: 0.95 t/ha
|
2021: 7,381 points, mean yield: 5.88 t/ha, std: 1.19 t/ha
|
2022: 7,588 points, mean yield: 5.80 t/ha, std: 1.21 t/ha
|
GLOBAL STATISTICS:
|
Color scale: 1.48 - 7.40 t/ha
|
Overall mean: 4.70 t/ha
|
Overall std: 1.38 t/ha
|
VISUALIZATION:
|
Grid layout: 4Γ4
|
Total maps: 13
|
Output file: multi_yield_map_SHwanghae_NK_2010_2011_2012_2013_2014_2015_2016_2017_2018_2019_2020_2021_2022.png
|
DOY Mean_LAI STD_LAI
|
113 1.169 0.283
|
121 1.205 0.310
|
129 1.212 0.323
|
137 1.281 0.320
|
145 1.429 0.304
|
153 1.623 0.342
|
161 2.020 0.354
|
169 2.544 0.503
|
177 2.997 0.489
|
185 3.223 0.446
|
193 3.211 0.465
|
201 3.122 0.472
|
209 3.002 0.513
|
217 2.866 0.513
|
225 2.724 0.534
|
233 2.400 0.505
|
241 2.107 0.516
|
249 1.749 0.404
|
257 1.430 0.345
|
265 1.241 0.256
|
273 1.075 0.186
|
281 1.009 0.160
|
289 0.953 0.154
|
297 0.931 0.156
|
305 0.925 0.153
|
DOY Mean_LAI STD_LAI
|
105 nan nan
|
113 nan nan
|
121 nan nan
|
129 nan nan
|
137 1.545 0.397
|
145 1.894 0.483
|
153 1.983 0.464
|
161 2.194 0.677
|
169 2.595 0.681
|
177 3.086 0.560
|
185 3.394 0.594
|
193 3.725 0.530
|
201 3.991 0.587
|
209 4.320 0.657
|
217 4.855 0.767
|
225 5.564 0.965
|
233 5.500 0.822
|
241 5.123 0.737
|
249 5.013 0.649
|
257 5.400 0.594
|
265 5.260 0.501
|
273 5.401 0.561
|
281 3.345 0.310
|
289 3.183 0.197
|
297 0.735 0.007
|
305 nan nan
|
313 nan nan
|
321 nan nan
|
DOY Mean_LAI STD_LAI
|
105 nan nan
|
113 nan nan
|
121 nan nan
|
129 nan nan
|
137 nan nan
|
145 nan nan
|
153 nan nan
|
161 nan nan
|
169 nan nan
|
177 nan nan
|
185 nan nan
|
193 nan nan
|
201 nan nan
|
209 nan nan
|
VIs_to_LAI: Simulate Leaf Area Index from Vegetation Indices
Authors: Jonghan Ko at Chonnam National University and Chi Tim Ng at Hang Seng University of Hong Kong
Collaborator: Jong-oh Ban at Hallym Polytechnic University
GitHub Repository: https://github.com/RS-iCM/VIs_to_LAI
HuggingFace Dataset: https://huggingface.co/datasets/jonghanko/VIs_to_LAI/tree/main
Overview
VIsToLAI is a Python-based, open-source software framework designed to estimate leaf area index (LAI) from time series of satellite-derived vegetation indices (NDVI, RDVI, OSAVI, and MTVIβ). By integrating empirical regression, Logβlog, and machine learning modules, VIsToLAI offers a flexible, scalable workflow that bypasses destructive sampling and intensive calibration. Pretrained models, an extensible API, and interactive Jupyter notebooks streamline data ingestion, model execution, and visualization. Demonstrated on staple crops under varied conditions, VIsToLAI accurately reconstructs LAI dynamics and integrates seamlessly into remote sensing workflows for precision agriculture, crop monitoring, and ecological modeling.
Features
- Multiple Vegetation Indices: Support for NDVI, RDVI, OSAVI, and MTVIβ
- Three Modeling Approaches:
- Empirical exponential regression
- Logβlog regression
- Machine learning (Extra Trees, Gradient Boosting, DNN)
- Flexible Workflows:
- 1D time-series simulation for point/field data
- 2D geospatial simulation for regional mapping
- Pretrained Models: Ready-to-use models for rice, barley, wheat, and maize
- Interactive Notebooks: Jupyter notebooks for reproducible workflows
- Extensible API: Modular design for custom indices and algorithms
- Built-in Visualization: Time-series plots, scatter diagnostics, and geospatial maps
- Ensemble Methods: Combine multiple models for improved accuracy
Installation
Prerequisites
- Python β₯ 3.8 (recommended: Python 3.10+)
- pip package manager
Quick Install
Install the package with all dependencies:
pip install -r requirements.txt
Or install as an editable package:
pip install -e .
Full Installation (with 2D/spatial features and Jupyter)
For 2D mapping and geospatial analysis:
pip install -e ".[all]"
This includes:
- Core dependencies
- Cartopy (for 2D mapping and shapefile support)
- tqdm (progress bars)
- Jupyter notebooks
Optional Extras
# For 2D/spatial analysis only
pip install -e ".[2d]"
# For Jupyter development only
pip install -e ".[dev]"
Docker Installation
Build and run with Docker:
# Build the image
docker build -t vis-to-lai-crops .
# Run with Docker Compose (recommended)
docker-compose up --build
Access Jupyter Lab at http://localhost:8888 (check container logs for token).
Quick Start
1D Time-Series Simulation
Run a notebook for 1D LAI simulation:
jupyter notebook RUN_Python_Rice.ipynb
Or use Python directly:
from codes.sim_VIs_to_LAI_crops import main
import os
# Set paths
path = os.path.abspath(os.getcwd())
para_FN = path + '/data/empirical_reg_parameters_rice.txt'
wobs_FN2 = path + '/data/Rice_LAI_n_VIs.csv'
data_FN = path + '/data/Rice_FN_NICS_2021.csv'
output_FN = path + '/outputs/SLAI_rice.out'
# Model files
DNN_FN = path + '/models/rice_NN.h5'
pkl_FN = path + '/models/pickle_extra_trees_Rice.pkl'
pkl_seq_FN = path + '/models/pickle_extra_trees_Rice_seq.pkl'
# Run simulation
# reg_opt: 0=DNN, 1=ML, 3=NDVI-based, 4=four VIs-based, 5=log-log, 7=Ensemble
main(DNN_FN, pkl_FN, pkl_seq_FN,
reg_opt=7, # Ensemble method
plot_opt=1, # Show plot
file_opt=1, # Save output
flag=5.5, # Max LAI value
para_FN=para_FN,
wobs_FN2=wobs_FN2,
data_FN=data_FN,
output_FN=output_FN)
2D Geospatial Simulation
For 2D regional mapping:
jupyter notebook RUN_Python_LAI_2D_Rice.ipynb
Available Notebooks
1D Time-Series Notebooks
RUN_Python_Rice.ipynb- Rice LAI simulationRUN_Python_Barley.ipynb- Barley LAI simulationRUN_Python_Wheat.ipynb- Wheat LAI simulationRUN_Python_Maize.ipynb- Maize LAI simulation
2D Geospatial Notebooks
RUN_Python_LAI_2D_Rice.ipynb- Regional rice LAI mappingRUN_Python_LAI_2D_Maize.ipynb- Regional maize LAI mapping
Model Options
The framework supports multiple regression options (reg_opt parameter):
- 0: Deep Neural Network (DNN)
- 1: Machine Learning - Extra Trees Regressor
- 2: Machine Learning - Sequential (with temporal features)
- 3: NDVI-based empirical regression
- 4: Four VIs-based empirical regression (ensemble of all VIs)
- 5: Log-log regression
- 6: Ensemble 1 (DNN + ML + VIs + Log-log)
- 7: Ensemble 2 (ML + VIs + Log-log) - Recommended
Project Structure
VIs_to_LAI_crops/
βββ codes/ # Core Python modules
β βββ sim_VIs_to_LAI_crops.py # Main 1D simulation module
β βββ empirical_VIs_to_LAI_2D_*.py # 2D empirical modules
β βββ each_crop_model/ # Crop-specific models
βββ data/ # Input data (CSV, OBS, TXT)
β βββ *_LAI_n_VIs.csv # Training data
β βββ empirical_reg_parameters_*.txt # Regression parameters
βββ models/ # Pretrained models
β βββ *_NN.h5 # DNN models
β βββ pickle_*.pkl # ML models
βββ outputs/ # Simulation outputs
β βββ SLAI_*.out # Simulated LAI files
βββ class_map_*/ # 2D class maps
βββ vis_*/ # 2D vegetation indices
βββ Shape_*/ # Shapefile boundaries (2D)
βββ RUN_Python_*.ipynb # Jupyter notebooks
βββ setup.py # Package setup
βββ requirements.txt # Python dependencies
βββ Dockerfile # Docker configuration
Requirements
Core Dependencies
- numpy β₯ 1.20.0
- pandas β₯ 1.3.0
- scipy β₯ 1.7.0
- scikit-learn β₯ 1.0.0
- matplotlib β₯ 3.4.0
- tensorflow β₯ 2.8.0
- keras β₯ 2.8.0
- h5py β₯ 3.0.0
- pyyaml β₯ 5.4.0
Optional Dependencies (for 2D features)
- cartopy β₯ 0.20.0 (geospatial mapping)
- tqdm β₯ 4.64.0 (progress bars)
Development Dependencies
- jupyter β₯ 1.0.0
- ipykernel β₯ 6.0.0
- notebook β₯ 6.4.0
See requirements.txt for a complete list.
Usage Examples
Example 1: Rice LAI Simulation with Ensemble Method
from codes.sim_VIs_to_LAI_crops import main
import os
path = os.path.abspath(os.getcwd())
main(
DNN_FN=path + '/models/rice_NN.h5',
pkl_FN=path + '/models/pickle_extra_trees_Rice.pkl',
pkl_seq_FN=path + '/models/pickle_extra_trees_Rice_seq.pkl',
reg_opt=7, # Ensemble method
plot_opt=1,
file_opt=1,
flag=5.5,
para_FN=path + '/data/empirical_reg_parameters_rice.txt',
wobs_FN2=path + '/data/Rice_LAI_n_VIs.csv',
data_FN=path + '/data/Rice_FN_NICS_2021.csv',
output_FN=path + '/outputs/SLAI_rice.out'
)
Citation
If you use this software in your research, please cite:
@software{vistolai2024,
author = {Ko, Jonghan and Ng, Chi Tim},
title = {VIs_to_LAI: Simulate Leaf Area Index from Vegetation Indices},
year = {2024},
url = {https://github.com/RS-iCM/VIs_to_LAI}
}
License
[Specify your license here - e.g., MIT, Apache 2.0, etc.]
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For questions, issues, or contributions, please visit:
- GitHub Issues: https://github.com/RS-iCM/VIs_to_LAI/issues
- HuggingFace: https://huggingface.co/datasets/jonghanko/VIs_to_LAI
Acknowledgments
- Chonnam National University
- Hang Seng University of Hong Kong
- Hallym Polytechnic University
Last Updated: August 2025
- Downloads last month
- 13