Skip to content

About

RHIZO-NET: Root Health & Integrated Zonal Optimization Network via Edaphic Topology. Deep learning, topology graph phenotyping, and climate-adaptive precision agriculture.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

RhizoWhisperer: RHIZO-NET Root Health & Edaphic Topology Optimization Network

License: Apache 2.0 Python: 3.10+ PyTorch: 2.0+ ONNX Runtime Organization: Runtime Slayers Model Architectures

RhizoWhisperer (RHIZO-NET) is an end-to-end deep learning framework, topological graph phenotyping engine, and edaphic climate-resilience platform for precision agriculture. It integrates custom computer vision models, soft skeletonization topology extraction, multi-modal PyG GNN fusion, ISRIC SoilGrids chemical profiling, and TNAU agronomic recommendation engines.


πŸ“‘ Table of Contents


🌟 Key Features & Scientific Innovations

1. Custom Neural Architecture Suite

  • RhizoAttentionNet: Features Oriented Topological Attention Modules (OTAM) + Multi-Scale Receptive Field Pyramids (MSRFP). Achieves 97.9% IoU and 0.0412 Loss.
  • DualStreamRootNet: Dual-encoder fusing spatial RGB features with tubular vesselness features extracted via multi-scale Frangi Hessian filtering.
  • RhizoHybridTransformer: Ultra-lightweight Swin Shifted-Window Transformer with Root Query Tokens (RQT), achieving 95.8% IoU with only 79.7K parameters (1.8 ms inference latency).
  • RhizoGraphFormer: Graph Transformer utilizing Laplacian Positional Encoding (LPE) to capture global topological connectivity across root junction nodes.

2. Novel Physics-Informed & Topology-Preserving Loss Suite

  • clDiceLoss: Centerline Dice loss enforcing topological connectivity across fine root structures.
  • PIET-Loss (Physics-Informed Edaphic Transport): Enforces physical mass-conservation of water/nutrient flux along root centerlines ($\nabla \cdot \mathbf{J} = 0$).
  • TopologyAwareLoss: Multi-term composite loss integrating BCE, Dice, Focal, clDice, and PIET-Loss penalties.

3. Real-World Climate & Agronomic Modules

  • Generative Root Skeleton Reconstruction (GRSR): Morphological gap repair algorithm connecting disconnected segments caused by soil particle occlusion.
  • CARRS (Climate-Adaptive Root Resiliency Simulator): Models root hydraulic conductivity ($K_{rh}$) and drought vulnerability under RCP 4.5 and RCP 8.5 warming scenarios.
  • RCS-Flux (Rhizosphere Carbon Sequestration Predictor): Estimates annual root carbon input ($C_{root}$) and carbon credit financial yield ($35.20/ha/year).
  • TNAU Agronomic Engine: Rule-based prescription system providing custom fertilizer schedules and lockout remediation for Sorghum, Tomato, Turmeric, Groundnut, and African Marigold.

πŸ—οΈ System Architecture

flowchart TD
    subgraph DataIngestion ["Stage 1: Multi-Dataset Ingestion (106.9K Images)"]
        D1[RootNav 2.0] & D2[PRMI Collection] & D3[DeepRootLab] & D4[SeminalRootAngle] & D5[Chicory] & D6[Grassland]
    end

    subgraph CoreSegmentation ["Stage 2-3: Deep Neural Segmentation"]
        D1 & D2 & D3 & D4 & D5 & D6 --> M[RhizoAttentionNet / RhizoUNet]
        M -->|Low Confidence < 0.50| SAM[MobileSAM Fallback Adapter]
        M -->|Predicted Mask| GRSR[GRSR Gap Reconstruction Module]
        SAM --> GRSR
    end

    subgraph TopologyExtract ["Stage 4-5: skan Phenotyping & Graph Transformer"]
        GRSR --> SKEL[skan Skeletonization]
        SKEL --> FEAT[Morphometric Extraction: Length, Tortuosity, Sholl, Angle]
        SKEL --> RGF[RhizoGraphFormer Laplacian Positional Encoding]
    end

    subgraph MultiModalFusion ["Stage 6-8: PyG GNN & SoilGrids Fusion"]
        SG[ISRIC SoilGrids 0-200cm Depth Chemistry] --> FUSION[PyG 2.0 GNN + RhizoFusionNet]
        FEAT & RGF --> FUSION
        FUSION --> DIAG[Nutrient Deficiency Diagnosis]
    end

    subgraph AgronomicClimate ["Stage 9-15: Prescriptions & Climate Simulation"]
        DIAG --> TNAU[TNAU Agronomic Engine]
        TNAU --> PRES[Multi-Crop NPK Prescriptions & Lockout Protocols]
        FEAT --> CARRS[CARRS Climate Drought Simulator]
        FEAT --> RCS[RCS Carbon Sequestration & ROI Calculator]
    end
Loading

πŸ“‚ Repository Layout

RhizoWhisperer/
β”œβ”€β”€ README.md                           # Master Project Documentation
β”œβ”€β”€ CONTRIBUTING.md                     # Contribution Guidelines
β”œβ”€β”€ LICENSE                             # Apache License 2.0
β”œβ”€β”€ requirements.txt                    # Project Dependencies
β”œβ”€β”€ kaggle_version_execution_flowcharts.md # Mermaid Flowcharts (v1 to v15)
β”‚
β”œβ”€β”€ src/                                # Core Source Code
β”‚   β”œβ”€β”€ unet/                           # Neural Architectures & Loss Suite
β”‚   β”‚   β”œβ”€β”€ model.py                    # RhizoUNet
β”‚   β”‚   β”œβ”€β”€ rhizo_attention_net.py      # RhizoAttentionNet (OTAM + MSRFP)
β”‚   β”‚   β”œβ”€β”€ dual_stream_root_net.py     # DualStreamRootNet (Hessian Dual)
β”‚   β”‚   β”œβ”€β”€ rhizo_hybrid_transformer.py # RhizoHybridTransformer (Swin + RQT)
β”‚   β”‚   └── losses.py                   # TopologyAwareLoss & PIET-Loss
β”‚   β”œβ”€β”€ topology/                       # skan Graph Extraction & GRSR
β”‚   β”‚   β”œβ”€β”€ skeletonize.py              # Medial Axis Skeletonization
β”‚   β”‚   β”œβ”€β”€ graph_extract.py            # NetworkX Graph Construction
β”‚   β”‚   β”œβ”€β”€ phenotype_features.py       # Tortuosity & Sholl Analysis
β”‚   β”‚   β”œβ”€β”€ seminal_angle.py            # Seminal Opening Angle
β”‚   β”‚   └── reconstruct.py              # GRSR Gap Repair Module
β”‚   β”œβ”€β”€ fusion/                         # Multi-Modal GNN & Graph Transformer
β”‚   β”‚   β”œβ”€β”€ graph_transformer.py        # RhizoGraphFormer (LPE)
β”‚   β”‚   β”œβ”€β”€ gnn_encoder.py              # PyG GNN Encoder
β”‚   β”‚   β”œβ”€β”€ tensor_frame_model.py       # RhizoFusionNet
β”‚   β”‚   └── soil_features.py            # Soil Vector Normalizer
β”‚   β”œβ”€β”€ agronomic/                      # TNAU Engine & ROI Calculator
β”‚   β”‚   β”œβ”€β”€ recommendation_engine.py    # Multi-Crop Prescriptions
β”‚   β”‚   β”œβ”€β”€ soil_rating.py              # Soil Fertility Index
β”‚   β”‚   β”œβ”€β”€ crop_profiles.py            # Crop Blanket NPK Standards
β”‚   β”‚   └── roi_calculator.py           # Financial ROI Calculator
β”‚   └── climate/                        # Real-World Climate Simulators
β”‚       β”œβ”€β”€ resiliency_simulator.py     # CARRS Drought Simulator
β”‚       └── carbon_sequestration.py     # RCS Carbon Credit Flux
β”‚
β”œβ”€β”€ architecture/                       # Exported ONNX Binaries & Scripts
β”‚   β”œβ”€β”€ rhizo_unet.onnx                 # (6.69 MB)
β”‚   β”œβ”€β”€ rhizo_attention_net.onnx        # (22.55 MB)
β”‚   β”œβ”€β”€ dual_stream_root_net.onnx       # (18.73 MB)
β”‚   β”œβ”€β”€ rhizo_hybrid_transformer.onnx   # (1.17 MB)
β”‚   └── export_all_onnx.py              # ONNX Export Script
β”‚
β”œβ”€β”€ notebooks/                          # Interactive Jupyter Notebooks
β”‚   β”œβ”€β”€ 01_data_preparation.ipynb
β”‚   β”œβ”€β”€ 02_unet_root_segmentation.ipynb
β”‚   β”œβ”€β”€ 03_mobilesam_segmentation.ipynb
β”‚   β”œβ”€β”€ 04_topology_extraction.ipynb
β”‚   β”œβ”€β”€ 05_multimodal_fusion.ipynb
β”‚   β”œβ”€β”€ 06_agronomic_engine.ipynb
β”‚   β”œβ”€β”€ 07_full_pipeline_demo.ipynb
β”‚   └── kaggle_push/
β”‚       └── rhizo_net_all_stages_run.py # 15-Stage Automated Kaggle Runner
β”‚
└── kaggle_outputs/                     # Extracted Logs & 25 PNG Plots
    β”œβ”€β”€ version_10/                     # 7-Stage Execution Log
    β”œβ”€β”€ version_12/                     # 12-Stage Execution Log
    β”œβ”€β”€ version_14/                     # 18 PNG Plot Files
    └── version_15/                     # 25 PNG Plot Files & Full Log

⚑ Prerequisites & Installation

Requirements

  • Linux or macOS (Ubuntu 20.04+, macOS 12+)
  • Python 3.10 or higher
  • PyTorch 2.0+ with CUDA or CPU support
# Clone the repository
git clone https://github.com/Runtime-Slayers/RhizoWhisperer.git
cd RhizoWhisperer

# Set up virtual environment
python3 -m venv venv
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

πŸš€ Quickstart & Pipeline Execution

Execute the full 15-stage automated deep learning and phenotyping pipeline:

python3 notebooks/kaggle_push/rhizo_net_all_stages_run.py

All 25 high-resolution PNG plots will be generated and saved to ./output_plots/.


πŸ“Š Benchmark Results

Model Architecture Parameters Loss (Curriculum) Segmentation IoU ONNX Latency (CPU) Primary Target Platform
RhizoUNet 1,746,737 0.0580 94.2% 4.2 ms Edge Servers / Workstations
DualStreamRootNet 4,885,959 0.0482 96.5% 9.6 ms Soil Rhizotron Analysis
RhizoHybridTransformer 79,749 0.0451 95.8% 1.8 ms Mobile & Field Drones
RhizoAttentionNet 5,892,305 0.0412 97.9% 12.8 ms GPU Cloud Clusters

πŸ›οΈ Model Architectures Repository

For dedicated PyTorch source code, layer specifications, receptive field calculations, and ONNX Runtime benchmark scripts, visit our dedicated sub-repository:

πŸ‘‰ Runtime-Slayers/RhizoWhisperer-Model-Architectures


πŸ“œ License & Citation

Distributed under the Apache License 2.0. See LICENSE for details.

Citation

@article{runtime_slayers_rhizowhisperer_2026,
  title={RHIZO-NET: Root Health and Integrated Zonal Optimization Network via Edaphic Topology},
  author={Runtime Slayers Team},
  year={2026},
  publisher={GitHub Repository},
  url={https://github.com/Runtime-Slayers/RhizoWhisperer}
}

About

RHIZO-NET: Root Health & Integrated Zonal Optimization Network via Edaphic Topology. Deep learning, topology graph phenotyping, and climate-adaptive precision agriculture.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages