How niharxd/pixels-to-water works
Pixels to Water is a research repository with two separate workstreams: sorghum cultivar classification and lettuce LAI estimation with irrigation-demand decision support. The principal user-facing workflow is the lettuce prototype: select an image, provide date and environment, estimate LAI, combine it with reference ET₀ and rainfall, and display a relative demand class. Sorghum has a separate data-to-model experiment workflow. The README documents major capabilities that are not represented by sampled implementation excerpts; those links are cited to the README, not treated as inspected source behavior.
Main entry points: Decision_Engine.ipynb Desktop prototype · irrigation_decision_engine.md Demand fusion · train_resnet.py Sorghum training · lai_rf_model.joblib LAI Random Forest
Components 20
Sorghum data
- Field images
- Balanced subset
src/create_balanced_subset.py - Split manifests
src/create_dataset_split.py - Image dataset
src/dataset.py - Image transforms
src/preprocessing.py
Sorghum modeling
- Sorghum training
src/train_resnet.py - Classifier comparison
notebooks/07_efficientnet_b0_implementation.ipynb - Classification evaluation
notebooks/06_resnet18_evaluation.ipynb
Lettuce estimation
- Lettuce images
- RGB features
workspace/DatasetLAI/Decision_Engine.ipynb - LAI Random Forest
workspace/DatasetLAI/lai_rf_model.joblib - CNN regression
notebooks/18_lai_resnet18_clean_split.ipynb - LAI comparison
notebooks/20_lai_model_comparison.ipynb
Irrigation decision
- Desktop prototype
workspace/DatasetLAI/Decision_Engine.ipynb - LAI demand rules
notebooks/22_engine.ipynb - Reference weather
notebooks/Weather_ET0.ipynb - Demand fusion
docs/irrigation_decision_engine.md - Demand summary
Other components
- Researcher
- Prototype user
Connections 20
- Field images → Balanced subset: samples images
src/create_balanced_subset.py - Balanced subset → Split manifests: splits manifest
README.md - Split manifests → Image dataset: loads samples
- Image dataset → Sorghum training: provides batches
src/train_resnet.py - Image transforms → Sorghum training: transforms images
src/train_resnet.py - Sorghum training → Classifier comparison: trains classifiers
README.md - Classifier comparison → Classification evaluation: compares results
README.md - Lettuce images → RGB features: extracts features
README.md - RGB features → LAI Random Forest: predicts LAI
README.md - Lettuce images → CNN regression: regresses LAI
README.md - LAI Random Forest → LAI comparison: compared with CNNs
README.md - CNN regression → LAI comparison: compared with baseline
README.md - Prototype user → Desktop prototype: enters inputs
README.md - Desktop prototype → LAI Random Forest: estimates LAI
README.md - Desktop prototype → Reference weather: looks up weather
README.md - Reference weather → Demand fusion: supplies ET₀ and rain
README.md - LAI demand rules → Demand fusion: classifies LAI
README.md - Desktop prototype → Demand fusion: combines demand levels
README.md - Demand fusion → Demand summary: reports demand class
README.md - Demand summary → Prototype user: displays summary
README.md