Skip to main content

AI-Soil Net (v1.1.0)

PyPI version License: MIT Python 3.8+ DOI

AI-Soil Net is a cloud-native, open-source Python library built on the Google Earth Engine (GEE) Python API for automated Digital Soil Mapping (DSM) using multi-sensor Optical–SAR fusion (Landsat 8 + Sentinel-1), automated NDVI/NDWI Dual-Masking, Spatial Transfer Learning, and publication-grade (600 DPI) cartography.

Key Features

  • 5 Modular Components: SoilDataFetcher, SoilIndicesCalculator, EcoHydroFusion, SoilPredictor, and SoilVisualizer.
  • Multi-Sensor Fusion: Harmonizes Landsat 8 C2 L2 (30 m), Sentinel-1 C-band SAR GRD (10 m), JRC Global Surface Water (30 m), TerraClimate (~4.6 km), and ISRIC SoilGrids 2.0 (250 m).
  • Automated Dual-Masking: Filters dense active canopies (NDVI) and open surface water (NDWI) prior to modeling.
  • Flexible Modeling: Supports standalone covariate extraction, local field-calibrated Random Forest DSM, and zero-shot cross-regional Spatial Transfer Learning.
  • GIS-Ready Cloud Exports: Exports 30 m GeoTIFF stacks and predicted soil quality maps directly to Google Drive for ArcGIS/QGIS workflows.
  • Publication-Grade Cartography (600 DPI): Built-in automated map rendering (PNG & vector PDF) with geographic coordinates, north arrows, auto-scaled scale bars, JRC surface water masking, area-percentage legends, and global/regional context insets.

Installation

Standard Installation (PyPI)

pip install ai-soil-net==1.1.0

Full Installation (Including 600-DPI Cartography Tools)

To include rasterio and cartopy for automated 600-DPI journal-ready mapping (plot_single_index, plot_multi_sensor_panels, and plot_soil_quality_map):

pip install "ai-soil-net[cartography]==1.1.0"

Publication-Grade Cartography (600 DPI)

SoilVisualizer enables researchers to generate journal-ready figures directly from exported GeoTIFF outputs for any region of interest worldwide:

from ai_soil_net.soil_visualizer import SoilVisualizer

# 1. Standalone Single-Index Map (e.g., RVI, NDVI, NDWI, Clay)
SoilVisualizer.plot_single_index(
    tif_path="Fayoum_All_Indices_Master_2026.tif",
    band_idx=7,
    index_name="RVI",
    unit="RVI (Dimensionless)",
    region_name="Al-Fayoum Oasis, Egypt",
    year="2026"
)

# 2. Multi-Sensor Panel Map (defaults to 6 key predictors, or pass a custom 'panels' list)
SoilVisualizer.plot_multi_sensor_panels(
    tif_path="Fayoum_All_Indices_Master_2026.tif",
    region_name="Al-Fayoum Oasis, Egypt",
    year="2026"
)

# 3. Predicted Soil Quality Map with Automatic Global & Regional Context Insets
SoilVisualizer.plot_soil_quality_map(
    quality_tif_path="Fayoum_Predicted_Quality_Map_2026.tif",
    region_name="Al-Fayoum Oasis",
    country_name="Egypt",
    year="2026",
    water_tif_path="Fayoum_All_Indices_Master_2026.tif"
)

Reproducibility Sample Dataset

To support full workflow reproducibility, this repository includes Imperial_EcoHydro_Master.csv (n = 134 georeferenced samples with GEE-compatible .geo geometry). Researchers can upload this file directly as a Google Earth Engine Table Asset to replicate the Spatial Transfer Learning workflow.

Documentation & User Guides

Complete step-by-step manuals with reproducible code snippets and the system architecture diagram are available inside the docs/ folder.

Citation

If you use AI-Soil Net in your research, please cite:

Al-Hashimi, H. (2026). AI-Soil Net (v1.1.0): A Cloud-Native Open-Source Python Framework for Automated Digital Soil Mapping Using Multi-Sensor Optical–SAR Fusion, Dual-Masking, and Spatial Transfer Learning. Zenodo: https://doi.org/10.5281/zenodo.24525683 | PyPI: https://pypi.org/project/ai-soil-net/ | GitHub: https://github.com/heba-alhashimi/ai-soil-net

Metadata

Release files for ai-soil-net 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-soil-net 1.1.0
File Size Uploaded Provenance Actions
ai_soil_net-1.1.0.tar.gz 1.5 MB Without provenance Details for ai_soil_net-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-soil-net 1.1.0
File Interpreter ABI Platform Actions
ai_soil_net-1.1.0-py3-none-any.whl Python 3 none any Details for ai_soil_net-1.1.0-py3-none-any.whl

Total release size: 1.5 MB

Release files / ai_soil_net-1.1.0.tar.gz

Download URL ai_soil_net-1.1.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
0e33bdd52e566177ffe82c5c9929b9d4f7f97a63d2e1e976526eff0b5a1aa2a8
BLAKE2b-256 checksum
How to use checksums
b9bb9190cf4c44a67527481fd2dd56d07fa0be444d3cc678b828d5ae27261869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / ai_soil_net-1.1.0-py3-none-any.whl

Download URL ai_soil_net-1.1.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2dca08fb69e3c47bd455e736eacc419cf26f47b1f22aaad13716ae4b7afdc51
BLAKE2b-256 checksum
How to use checksums
850dae8ddcea2d3cdd587222249e70416e6ab485e4d473ef8a233130daa39482
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for ai-soil-net 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page