Skip to main content

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


DOI License Python R Status Submitted

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

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.


๐ŸŒฟ BIOTICA ยท Samir Baladi ยท Ronin Institute ยท 2026

Four billion years of biological negotiation, encoded in soil and gene and trophic web.
BIOTICA makes it legible.

GitLab GitHub Email

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biotica_ecosystem-1.0.0.tar.gz (27.3 kB view details)

Uploaded Source

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

Hashes for biotica_ecosystem-1.0.0.tar.gz
Algorithm Hash digest
SHA256 51eeea081ba197b742c2efb840c68227c4451a4d1d5b288f5fd401496f128a14
MD5 83d155015934853c08296647b652807e
BLAKE2b-256 9b14c43cb19005369c3ebb5d7e0b11fb0a0b33963585eb9001238970bc6ebc7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page