BIOTICA: Bio-Geochemical Framework for Ecosystem Resilience Assessment
Project description
๐ฟ BIOTICA
Bio-Geochemical Framework for Ecosystem Resilience Assessment
Living Systems as Legible Archives โ A Multi-Dimensional Integrated Approach
Principal Investigator: Samir Baladi
Affiliation: Ronin Institute / Rite of Renaissance
ORCID: 0009-0003-8903-0029
Contact: gitdeeper@gmail.com ยท +1 (614) 264-2074
๐ Table of Contents
- Overview
- Key Results
- The IBR Framework
- Project Structure
- Getting Started
- Data Architecture
- Module Documentation
- Reproducibility
- Case Studies
- Publication
- Contributing
- Citation
- License
๐ฌ Overview
BIOTICA proposes that living ecosystems are not merely biological communities but dynamic information systems โ encoding millions of years of evolutionary pressure, climate history, and geochemical negotiation in the composition of their soils, the architecture of their trophic networks, and the isotopic memory of their organic matter.
The framework integrates nine analytical parameters into a single Integrated Biotic Resilience (IBR) index, validated across 3,412 ecosystem plots from 22 biome types spanning 6 continents.
IBR = 0.20ยทVCA* + 0.15ยทMDI* + 0.12ยทPTS* + 0.11ยทHFI* + 0.10ยทBNC*
+ 0.09ยทSGH* + 0.08ยทAES* + 0.08ยทTMI* + 0.07ยทRRC*
Each parameter Pแตข* normalized to [0,1] relative to biome-type reference thresholds
๐ Key Results
| Metric | Value | Description |
|---|---|---|
| ๐ฏ IBR Classification Accuracy | 92.6% | 22-biome leave-one-biome cross-validation |
| ๐ฐ๏ธ AI Remote Sensing Agreement | 89.4% | vs. expert field surveys (682 held-out plots) |
| ๐ฆ MDIโCarbon Correlation | r = +0.917 | p < 0.001, n = 1,240 plots |
| ๐ฑ Carbon Stock Precision | ยฑ31 Mg Cยทhaโปยน | MDI-based measurement |
| ๐ Phenological Drift Precision | ยฑ6.2 days | 180 flux tower sites |
| โ ๏ธ Tipping Point Lead Time | 8โ14 months | Before observed collapse events |
| ๐ Legacy DB Error Rate | 14.7% | 2,100 REDD+ units flagged |
| ๐ Recovery Prediction | ยฑ18% biomass | At 5-year post-disturbance horizon |
๐ The IBR Framework
Nine Integrated Parameters
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BIOTICA ยท IBR INDEX โ
โโโโโโโโฌโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโค
โ # โ SYM โ PARAMETER โ WEIGHT โ
โโโโโโโโผโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโค
โ 1 โ VCA โ Vegetative Carbon Absorption โ 20% โ
โ 2 โ MDI โ Microbial Diversity Index โ 15% โ
โ 3 โ PTS โ Phenological Time Shift โ 12% โ
โ 4 โ HFI โ Hydrological Flux Index โ 11% โ
โ 5 โ BNC โ Biogeochemical Nutrient Cycle โ 10% โ
โ 6 โ SGH โ Species Genetic Heterogeneity โ 9% โ
โ 7 โ AES โ Anthropogenic Encroachment Score โ 8% โ
โ 8 โ TMI โ Trophic Metadata Integration โ 8% โ
โ 9 โ RRC โ Regenerative Recovery Capacity โ 7% โ
โโโโโโโโดโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโ
IBR Classification Thresholds
| Class | IBR Score | Condition |
|---|---|---|
| ๐ข PRISTINE | > 0.88 | Reference state, full ecological function |
| ๐ก FUNCTIONAL | 0.75 โ 0.88 | Near-reference, minor departures |
| ๐ IMPAIRED | 0.60 โ 0.75 | Measurable degradation, recovery possible |
| ๐ด DEGRADED | 0.45 โ 0.60 | Significant loss, active management required |
| โซ COLLAPSED | < 0.45 | Alternative stable state, tipping point crossed |
๐ Project Structure
biotica/
โ
โโโ README.md # This file
โโโ LICENSE # CC-BY-4.0
โโโ CHANGELOG.md # Version history
โโโ CONTRIBUTING.md # Contribution guidelines
โโโ CODE_OF_CONDUCT.md # Community standards
โโโ CITATION.cff # Machine-readable citation
โโโ pyproject.toml # Python project config & dependencies
โโโ environment.yml # Conda environment specification
โโโ .gitlab-ci.yml # CI/CD pipeline definition
โโโ .gitignore
โ
โโโ biotica/ # Core Python package
โ โโโ __init__.py
โ โโโ __version__.py
โ โ
โ โโโ parameters/ # Individual parameter modules
โ โ โโโ __init__.py
โ โ โโโ vca.py # Vegetative Carbon Absorption
โ โ โโโ mdi.py # Microbial Diversity Index
โ โ โโโ pts.py # Phenological Time Shift
โ โ โโโ hfi.py # Hydrological Flux Index
โ โ โโโ bnc.py # Biogeochemical Nutrient Cycle
โ โ โโโ sgh.py # Species Genetic Heterogeneity
โ โ โโโ aes.py # Anthropogenic Encroachment Score
โ โ โโโ tmi.py # Trophic Metadata Integration
โ โ โโโ rrc.py # Regenerative Recovery Capacity
โ โ
โ โโโ ibr/ # IBR composite index engine
โ โ โโโ __init__.py
โ โ โโโ composite.py # IBR aggregation & sigmoid correction
โ โ โโโ weights.py # Bayesian weight determination
โ โ โโโ normalization.py # Per-biome normalization engine
โ โ โโโ thresholds.py # Classification threshold registry
โ โ
โ โโโ ai/ # AI classification system
โ โ โโโ __init__.py
โ โ โโโ mi_cnn.py # Multi-Input CNN architecture
โ โ โโโ spectral_stream.py # Hyperspectral 1D-CNN stream
โ โ โโโ temporal_stream.py # VI time-series processing
โ โ โโโ climate_stream.py # Bioclimatic variable stream
โ โ โโโ terrain_stream.py # Terrain morphometry stream
โ โ โโโ trainer.py # Training loop & Adam scheduler
โ โ โโโ evaluator.py # Validation & confusion matrix
โ โ โโโ gradcam.py # Grad-CAM interpretability
โ โ โโโ augmentation.py # Spectral data augmentation
โ โ
โ โโโ preprocessing/ # Data ingestion & cleaning
โ โ โโโ __init__.py
โ โ โโโ spectral.py # Hyperspectral preprocessing
โ โ โโโ flux_tower.py # Eddy covariance data parsing
โ โ โโโ metagenomics.py # eDNA / metagenomic pipelines
โ โ โโโ phenocam.py # PhenoCam GCC time series
โ โ โโโ genomics.py # Population genomics (VCF)
โ โ โโโ landscape.py # Fragmentation (FRAGSTATS)
โ โ โโโ trophic.py # Food web metabarcoding
โ โ
โ โโโ statistics/ # Statistical framework
โ โ โโโ __init__.py
โ โ โโโ cross_validation.py # Leave-one-biome CV
โ โ โโโ bayesian_weights.py # 3-stage Bayesian PCA weight
โ โ โโโ uncertainty.py # Uncertainty propagation
โ โ โโโ sensitivity.py # Parameter sensitivity analysis
โ โ โโโ tipping_points.py # Critical slowing-down detection
โ โ
โ โโโ remote_sensing/ # Satellite data interface
โ โ โโโ __init__.py
โ โ โโโ desis.py # DESIS hyperspectral parser
โ โ โโโ prisma.py # PRISMA satellite interface
โ โ โโโ landsat.py # Landsat archive (historical PTS)
โ โ โโโ sentinel.py # Sentinel-2 multispectral
โ โ โโโ indices.py # NDVI, NDRE, SWIR, EVI, LAI
โ โ
โ โโโ biome/ # Biome classification system
โ โ โโโ __init__.py
โ โ โโโ registry.py # 22-biome type registry
โ โ โโโ transition_zones.py # Transition zone resolver
โ โ โโโ iucn_typology.py # IUCN GET v2.0 compatibility
โ โ
โ โโโ tei/ # Traditional Ecological Knowledge
โ โ โโโ __init__.py
โ โ โโโ tek_integration.py # TEK-IBR integration protocol
โ โ โโโ community_protocols.py # Indigenous data sovereignty
โ โ
โ โโโ utils/ # Shared utilities
โ โโโ __init__.py
โ โโโ io.py # File I/O (NetCDF, GeoTIFF, CSV)
โ โโโ geo.py # Geospatial transformations
โ โโโ logging.py # Structured logging
โ โโโ constants.py # Physical & biological constants
โ
โโโ r/ # R statistical analysis package
โ โโโ DESCRIPTION
โ โโโ NAMESPACE
โ โโโ R/
โ โ โโโ ibr_composite.R # IBR index computation
โ โ โโโ bayesian_weights.R # brms / Stan weight estimation
โ โ โโโ tipping_points.R # Early warning signals (earlywarnings)
โ โ โโโ food_web.R # Network analysis (igraph)
โ โ โโโ population_genetics.R # adegenet / poppr genomics
โ โโโ man/ # R documentation (.Rd files)
โ
โโโ models/ # Trained model artifacts
โ โโโ README.md # Model registry & checksums
โ โโโ mi_cnn_v1/ # MI-CNN v1.0 (primary classifier)
โ โ โโโ config.json
โ โ โโโ weights.pt # PyTorch state dict
โ โ โโโ training_log.csv
โ โโโ biome_thresholds/ # Per-biome normalization params
โ โ โโโ thresholds_v1.json
โ โโโ bayesian_weights/ # Stan posterior samples
โ โโโ weight_posterior.rds
โ
โโโ data/ # Data management
โ โโโ README.md # Data access instructions
โ โโโ raw/ # Raw input data (DVC tracked)
โ โ โโโ spectral/ # Hyperspectral ENVI files
โ โ โโโ flux_towers/ # FLUXNET / ICOS NetCDF
โ โ โโโ metagenomes/ # MGnify-formatted FASTQ
โ โ โโโ genomics/ # VCF population files
โ โ โโโ phenocam/ # GCC time series CSV
โ โ โโโ field_plots/ # Ground-truth plot data
โ โโโ processed/ # Cleaned, parameter-ready data
โ โ โโโ parameters/ # Computed VCA, MDI, PTS โฆ per plot
โ โ โโโ ibr_scores/ # Final IBR assessments
โ โ โโโ validation/ # Held-out test set (682 plots)
โ โโโ reference/ # Biome reference distributions
โ โโโ biome_thresholds.csv
โ โโโ redd_plus_units.geojson
โ โโโ iucn_get_v2.shp
โ
โโโ notebooks/ # Jupyter analysis notebooks
โ โโโ 00_data_exploration.ipynb
โ โโโ 01_parameter_computation.ipynb
โ โโโ 02_ibr_validation.ipynb
โ โโโ 03_ai_training_evaluation.ipynb
โ โโโ 04_tipping_point_analysis.ipynb
โ โโโ 05_case_amazon.ipynb
โ โโโ 06_case_australia_fires.ipynb
โ โโโ 07_case_serengeti.ipynb
โ โโโ 08_case_arctic_tundra.ipynb
โ โโโ 09_carbon_accounting_implications.ipynb
โ โโโ 10_figures_publication.ipynb
โ
โโโ scripts/ # Standalone execution scripts
โ โโโ compute_ibr.py # Full pipeline: raw โ IBR score
โ โโโ train_classifier.py # Train MI-CNN from scratch
โ โโโ evaluate_classifier.py # Run held-out validation
โ โโโ flag_redd_units.py # Screen REDD+ DB for errors
โ โโโ generate_figures.py # Reproduce all paper figures
โ โโโ batch_process.sh # HPC batch submission (SLURM)
โ
โโโ workflows/ # Snakemake reproducible pipelines
โ โโโ Snakefile # Master Snakemake workflow
โ โโโ rules/
โ โ โโโ preprocessing.smk
โ โ โโโ parameter_computation.smk
โ โ โโโ ibr_aggregation.smk
โ โ โโโ ai_classification.smk
โ โ โโโ validation.smk
โ โโโ config/
โ โโโ config.yaml # Pipeline configuration
โ โโโ cluster.yaml # HPC cluster settings
โ
โโโ tests/ # Test suite
โ โโโ conftest.py
โ โโโ unit/
โ โ โโโ test_vca.py
โ โ โโโ test_mdi.py
โ โ โโโ test_pts.py
โ โ โโโ test_ibr_composite.py
โ โ โโโ test_normalization.py
โ โ โโโ test_thresholds.py
โ โโโ integration/
โ โ โโโ test_full_pipeline.py
โ โ โโโ test_ai_classifier.py
โ โโโ fixtures/
โ โโโ synthetic_plot_data.csv # Minimal synthetic test data
โ
โโโ docs/ # Documentation (MkDocs)
โ โโโ mkdocs.yml
โ โโโ docs/
โ โโโ index.md
โ โโโ framework.md # IBR conceptual framework
โ โโโ parameters.md # All 9 parameters documented
โ โโโ installation.md
โ โโโ quickstart.md
โ โโโ api_reference.md # Auto-generated from docstrings
โ โโโ data_protocols.md
โ โโโ tek_integration.md
โ โโโ changelog.md
โ
โโโ paper/ # Publication materials
โ โโโ BIOTICA_Research_Paper_Part1.docx
โ โโโ BIOTICA_Research_Paper_Part2.docx
โ โโโ figures/ # High-resolution figure exports
โ โ โโโ fig01_ibr_framework.svg
โ โ โโโ fig02_classification_accuracy.svg
โ โ โโโ fig03_mdi_carbon_correlation.svg
โ โ โโโ fig04_tipping_point_signals.svg
โ โ โโโ fig05_amazon_case_study.svg
โ โ โโโ fig06_australia_fires.svg
โ โ โโโ fig07_serengeti_tmi.svg
โ โ โโโ fig08_arctic_pts.svg
โ โโโ supplementary/
โ โโโ S1_extended_methods.pdf
โ โโโ S2_validation_tables.xlsx
โ โโโ S3_plot_database_subset.csv
โ
โโโ .gitlab/ # GitLab project configuration
โโโ ISSUE_TEMPLATE/
โ โโโ bug_report.md
โ โโโ feature_request.md
โโโ MERGE_REQUEST_TEMPLATE.md
๐ Getting Started
Prerequisites
- Python โฅ 3.11
- R โฅ 4.3
- CUDA โฅ 11.8 (optional, for GPU training)
- GDAL โฅ 3.6
- ~50 GB disk space (full dataset)
Installation
1. Clone the repository
git clone https://gitlab.com/gitdeeper07/biotica.git
cd biotica
2. Create the conda environment
conda env create -f environment.yml
conda activate biotica
3. Install the Python package
pip install -e ".[dev]"
4. Install R dependencies
install.packages(c("brms", "igraph", "adegenet", "poppr", "earlywarnings", "vegan"))
5. Pull reference data via DVC
dvc remote add -d zenodo https://zenodo.org/record/biotica2026
dvc pull data/reference/ # Reference data only (~2 GB)
# dvc pull # Full dataset (~48 GB)
6. Verify installation
python -m pytest tests/unit/ -v
python -c "import biotica; print(biotica.__version__)"
๐พ Data Architecture
Dataset Summary
| Collection | Records | Format | Access |
|---|---|---|---|
| Ecosystem plots | 3,412 plots | CSV + GeoJSON | Zenodo (open) |
| Hyperspectral imagery | 2,891 time series | ENVI / NetCDF | DESIS/PRISMA portal |
| Soil metagenomes | 1,847 samples | FASTQ | MGnify / EBI |
| Population genomes | 480 populations | VCF | NCBI SRA |
| Eddy covariance | 180 sites | NetCDF | FLUXNET 2015 |
| Recovery chronosequences | 340 sites | CSV | Zenodo (open) |
| Collapse/recovery events | 67 events | CSV + metadata | Zenodo (open) |
External Data Sources
| Resource | URL |
|---|---|
| Project GitLab | https://gitlab.com/gitdeeper07/biotica |
| Project GitHub (mirror) | https://github.com/gitdeeper07/biotica |
| Plot Database (Zenodo) | https://doi.org/10.5281/zenodo.biotica.2026 |
| Carbon Flux (FLUXNET) | https://fluxnet.org |
| Satellite (DESIS/PRISMA) | https://www.dlr.de/eoc/desis |
| Metagenomics (MGnify) | https://www.ebi.ac.uk/metagenomics |
| Genomics (NCBI SRA) | https://www.ncbi.nlm.nih.gov/sra |
| Forest Cover (GFW) | https://www.globalforestwatch.org |
๐ฆ Module Documentation
Computing Individual Parameters
from biotica.parameters import VCA, MDI, PTS, HFI, BNC, SGH, AES, TMI, RRC
# Each parameter follows a consistent interface
mdi = MDI(metagenome_path="data/processed/metagenomes/plot_0042.tsv")
score = mdi.compute() # float in [0, 1]
uncertainty = mdi.uncertainty() # ยฑ value
report = mdi.report() # full diagnostic dict
Computing the IBR Composite Index
from biotica.ibr import IBRComposite
ibr = IBRComposite(plot_id="amazon_plot_0042")
ibr.load_parameters({
"VCA": 0.831, "MDI": 0.847, "PTS": 0.911,
"HFI": 0.789, "BNC": 0.802, "SGH": 0.714,
"AES": 0.923, "TMI": 0.823, "RRC": 0.761,
})
result = ibr.compute()
print(result.score) # โ 0.834
print(result.classification) # โ "FUNCTIONAL"
print(result.report()) # โ full diagnostic report
Running the AI Classifier
from biotica.ai import MICNNClassifier
model = MICNNClassifier.from_pretrained("models/mi_cnn_v1/")
prediction = model.predict(
spectral="data/processed/spectral/plot_0042.npy",
climate="data/reference/worldclim_plot_0042.csv",
terrain="data/reference/terrain_plot_0042.csv",
)
print(prediction.biome, prediction.confidence)
Tipping Point Detection
from biotica.statistics import TippingPointDetector
detector = TippingPointDetector(window=24, lag=1)
signals = detector.analyze(ibr_timeseries_df)
if signals.critical_slowing_down:
print(f"โ ๏ธ Warning: collapse risk in ~{signals.estimated_months} months")
๐ Reproducibility
All results can be reproduced via the Snakemake workflow:
# Full validation pipeline (requires complete dataset, ~72h on 32-core HPC)
snakemake --cores 32 --use-conda all
# Reproduce publication figures only (requires processed data)
snakemake --cores 8 figures
# Reproduce a single case study
snakemake --cores 4 results/case_studies/amazon/
Software environment hash:
sha256:b4f2a19...
Tested on: Ubuntu 22.04 LTS ยท macOS 14.2 ยท Rocky Linux 8.9
๐บ๏ธ Case Studies
| Study | Region | Biome | Key Finding |
|---|---|---|---|
| Case A | Brazilian Amazon | Tropical moist forest | MDI collapse precedes canopy loss by 4โ7 years |
| Case B | SE Australia | Temperate broadleaf | SGH < 0.38 โ arrested recovery post-megafire |
| Case C | Serengeti-Mara | Tropical savanna | Predator loss โ TMI drop 0.823 โ 0.621 |
| Case D | Arctic tundra | Tundra | PTS 18.4-day advance โ 18โ34% chick mortality |
๐ฐ Publication
Baladi, S. (2026). BIOTICA: A Multi-Dimensional Bio-Geochemical Framework for the Systematic Assessment, Predictive Modeling, and Cosmological Contextualization of Ecosystem Resilience. Submitted to Nature Sustainability. DOI: 10.14293/BIOTICA.2026.001
Companion framework: METEORICA โ Multi-parameter extraterrestrial materials classification, which directly inspired BIOTICA's integration methodology.
๐ค Contributing
Contributions are welcome. Please read CONTRIBUTING.md before opening a Merge Request.
Priority areas for contribution:
- Aquatic systems extension (BIOTICA-Aquatic, roadmap 2027)
- Additional rare biome plot submissions (cave, sub-Antarctic, tropical alpine)
- Language support for TEK integration protocols
- Optimized GPU training pipeline
git checkout -b feature/your-feature-name
# ... make changes, add tests ...
pytest tests/
git push origin feature/your-feature-name
# Open a Merge Request on GitLab
๐ Citation
@article{baladi2026biotica,
title = {{BIOTICA}: A Multi-Dimensional Bio-Geochemical Framework for
the Systematic Assessment, Predictive Modeling, and Cosmological
Contextualization of Ecosystem Resilience},
author = {Baladi, Samir},
journal = {Nature Sustainability},
year = {2026},
doi = {10.14293/BIOTICA.2026.001},
note = {Submitted March 2026}
}
๐ License
Licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
See LICENSE for full terms.
Data from field partners are subject to individual data-sharing agreements detailed in data/README.md. Traditional Ecological Knowledge components are governed by community-specific protocols compliant with the Nagoya Protocol on Access and Benefit-Sharing.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file biotica_ecosystem-1.0.0.tar.gz.
File metadata
- Download URL: biotica_ecosystem-1.0.0.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: BIOTICA-Uploader/1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51eeea081ba197b742c2efb840c68227c4451a4d1d5b288f5fd401496f128a14
|
|
| MD5 |
83d155015934853c08296647b652807e
|
|
| BLAKE2b-256 |
9b14c43cb19005369c3ebb5d7e0b11fb0a0b33963585eb9001238970bc6ebc7b
|