πŸ„ Overview

FUNGI-MYCEL is an open-source, multi-parameter framework for the quantitative characterization of mycelial network intelligence β€” the Mycelial Network Intelligence Score (MNIS). The system integrates eight orthogonal bio-physical indicators validated across 2,648 mycelial network units from 39 protected forest sites spanning 5 biomes over a 19-year observational period (2007–2026).

βœ… Production Ready

FUNGI-MYCEL achieves 91.8% MNIS classification accuracy with 94.3% stress detection rate. The framework provides 42-day early warning for network stress events and quantifies mycelial carbon weathering at 0.8–1.4 t CΒ·ha⁻¹·year⁻¹.

Key Capabilities

  • High Accuracy: 91.8% MNIS classification across 39-site cross-validation
  • Stress Detection: 94.3% detection rate with 4.2% false alert rate
  • Early Warning: 42-day mean lead time before above-ground symptom expression
  • Bioelectrical Analysis: ρ_e parameter captures electrical spike train patterns at 0.5–10 mm/s propagation
  • Network Topology: K_topo fractal dimension (1.35–1.95) with r=+0.917 correlation to electrical activity
  • Carbon Accounting: 0.8–1.4 t CΒ·ha⁻¹·year⁻¹ mycelial weathering, missing from current carbon frameworks

System Statistics

MNIS Accuracy

91.8%

39-site cross-validation

Dataset

2,648

Mycelial Network Units

Sites/Biomes

39/5

Protected forests Β· 5 biomes

Early Warning

42d

Before above-ground symptoms

Quick Navigation

πŸ’» Installation

System Requirements

  • Python: 3.8 or higher (3.10+ recommended)
  • PyTorch: 1.10+ optional (for AI ensemble)
  • RAM: 8 GB minimum (16 GB recommended for full dataset)
  • Storage: ~2 GB for reference database and biome thresholds; 48 GB for full validation dataset
  • CUDA: 11.0+ optional (GPU acceleration for CNN/LSTM models)
  • Microelectrode hardware: For field ρ_e recordings (optional)

Install from PyPI

pip install fungi-mycel # With specific extras pip install "fungi-mycel[ml]" # Machine learning features pip install "fungi-mycel[viz]" # Visualization pip install "fungi-mycel[field]" # Field data processing

Install from GitLab

# Clone the repository git clone https://gitlab.com/gitdeeper07/fungi-mycel.git cd fungi-mycel # Create virtual environment (recommended) python -m venv .venv source .venv/bin/activate # Install Python package in editable mode with all extras pip install -e ".[all]" # Pull reference data (via DVC) dvc remote add -d zenodo https://zenodo.org/record/fungi-mycel-2026 dvc pull data/reference/ # Run tests to verify installation pytest tests/unit/ -v

Docker

docker pull registry.gitlab.com/gitdeeper07/fungi-mycel:latest docker run --rm \ -v $(pwd)/data:/workspace/data \ fungi-mycel:latest python scripts/compute_mnis.py --help
⚠️ Note

The full validation dataset (48 GB) requires additional storage for metagenomics and genomics archives. The 2 GB reference package is sufficient for most applications.

πŸš€ Quick Start

1

Compute a Single Parameter

2

Assemble the MNIS Index

3

Classify and Generate Report

1 · Compute ρ_e from Electrode Data

import numpy as np from fungi_mycel.parameters import compute_rho_e # Load or simulate electrode data (1000 Hz, 16 electrodes, 1 hour) data = np.random.randn(3600000, 16) * 10 # Compute ρ_e rho_e = compute_rho_e(data, sampling_rate=1000) print(f"ρ_e = {rho_e:.3f}") # β†’ ρ_e = 0.68

2 Β· Compute the MNIS Composite Index

from fungi_mycel.core import MNIS # Parameter values (raw measurements) params = { "eta_nw": 0.72, # Natural Weathering Efficiency "rho_e": 0.68, # Bioelectrical Pulse Density "grad_c": 0.71, # Chemotropic Navigation "ser": 1.05, # Symbiotic Exchange Ratio "k_topo": 1.72, # Topological Expansion "e_a": 0.65, # Adaptive Resilience "abi": 1.84, # Biodiversity Amplification "bfs": 0.58 # Field Stability } # Initialize MNIS calculator for specific biome calculator = MNIS(biome="temperate_broadleaf") result = calculator.compute(params) print(f"MNIS = {result.mnis_score:.3f}") # β†’ 0.47 print(f"Class = {result.class_name}") # β†’ MODERATE print("Warnings:", result.warning_flags)

3 Β· Stress Early Warning

from fungi_mycel.alerts import StressEarlyWarning import pandas as pd # Load time series of MNIS scores mnis_ts = pd.read_csv("data/processed/mnis_timeseries/sudbury-01.csv") engine = StressEarlyWarning( model="models/ensemble_v1/", site_config="configs/sudbury.yaml" ) alert = engine.evaluate(mnis_ts) if alert.triggered: print(f"⚠️ STRESS PRE-ALERT") print(f" Lead time: {alert.lead_days:.1f} days") print(f" Predicted MNIS: {alert.predicted_mnis:.2f}") print(f" Confidence: {alert.confidence:.1%}")

πŸ”¬ The Eight MNIS Parameters

Each parameter captures a physically orthogonal dimension of mycelial network intelligence. Weights were determined through a three-stage Bayesian analysis and Delphi consensus with 22 mycologists across 14 institutions.

#SymbolParameterWeightDomainKey Instrument
1Ξ·_NWNatural Weathering Efficiency18%GeochemistryICP-MS
2ρ_eBioelectrical Pulse Density18%BioelectricityMicroelectrode arrays
3βˆ‡CChemotropic Navigation14%BiophysicsConfocal microscopy
4SERSymbiotic Exchange Ratio12%Mycorrhizal EcologyΒΉΒ³C/Β³ΒΉP isotope tracing
5K_topoTopological Expansion10%Fractal GeometryConfocal + box-counting
6E_aAdaptive Resilience16%Stress PhysiologyGrowth under stress
7ABIBiodiversity Amplification7%Microbial Ecology16S eDNA metabarcoding
8BFSBiological Field Stability5%Systems DynamicsMNIS time series CV

Composite Formula

// Mycelial Network Intelligence Score β€” Composite Formula MNIS = 0.18 Β· Ξ·_NW // Natural Weathering Efficiency + 0.16 Β· E_a // Adaptive Resilience Index + 0.18 Β· ρ_e // Bioelectrical Pulse Density + 0.14 Β· βˆ‡C // Chemotropic Navigation Accuracy + 0.12 Β· SER // Symbiotic Exchange Ratio + 0.10 Β· K_topo // Topological Expansion Rate + 0.07 Β· ABI // Biodiversity Amplification Index + 0.05 Β· BFS // Biological Field Stability // Each Pα΅’* normalized to [0,1] using biome-specific reference distributions // AI ensemble (CNN-1D + XGBoost + LSTM) adds final correction
πŸ“˜ Normalization

All parameters are normalized to [0,1] relative to biome-specific reference thresholds, not global minima/maxima. This ensures that a boreal conifer network and a tropical montane network are evaluated against their own reference states.

πŸ“Š MNIS Classification Levels

The MNIS score is mapped to five operational classification levels that guide intervention priority, conservation assessment, and mycelial network health tracking.

🟒 EXCELLENT
< 0.25
πŸ”΅ GOOD
0.25 – 0.44
🟑 MODERATE
0.44 – 0.62
🟠 CRITICAL
0.62 – 0.80
πŸ”΄ COLLAPSE
> 0.80
ClassMNIS RangeNetwork StateRecommended Action
EXCELLENT< 0.25Intact primeval network, maximum bioelectrical activityPassive protection, reference monitoring
GOOD0.25 – 0.44Near-reference, functional, self-regulating resilience intactStandard monitoring, adaptive management
MODERATE0.44 – 0.62Measurable stress, reduced electrical activityEnhanced monitoring, possible intervention
CRITICAL0.62 – 0.80Significant functional loss, high tipping point riskImmediate intensive intervention required
COLLAPSE> 0.80Network collapse, alternative stable stateEmergency response, full characterization

🧠 AI Ensemble Architecture

The AI ensemble combines three models into a unified predictor achieving 91.8% MNIS accuracy.

Architecture Overview

ModelInputArchitectureWeight
CNN-1DRaw electrode data (time Γ— electrodes)3-layer 1D CNN0.38
XGBoost8 tabular parametersGradient boosting0.32
LSTMTime series history (50 steps)2-layer LSTM0.30
// Loss function L_total = Ξ±Β·L_data + Ξ²Β·L_physics // Physics-informed constraints // 1. Bioelectrical signal propagation velocity: 0.5–10 mm/s // 2. Fractal dimension bounds: 1.0 ≀ D_f ≀ 2.0 // 3. SER optimal range: 0.9–1.1 // Training: 48 hours on 4Γ— NVIDIA T4 // Inference: < 100 ms per MNU

Performance

Training Time

48h

4Γ— NVIDIA T4

Inference

<100ms

Per MNU

Accuracy Gain

+12.2%

vs. single-parameter

βœ… Validated Performance

The ensemble achieves 91.8% accuracy on held-out test data, 12.2% improvement over single-parameter ρ_e prediction (79.6%). SHAP analysis confirms ρ_e and K_topo as the most influential parameters.

πŸ“‘ API Reference

fungi_mycel.parameters β€” Individual Parameter Modules

All eight parameter classes share a common interface:

from fungi_mycel.parameters import ( compute_eta_nw, compute_rho_e, compute_grad_c, compute_ser, compute_k_topo, compute_e_a, compute_abi, compute_bfs ) # Each compute function returns float [0,1] eta_nw = compute_eta_nw(dissolution_rate=50.0, acid_production=2.0, contact_area=10.0) # Class-based interface with detailed results from fungi_mycel.parameters.rho_e import RhoECalculator calc = RhoECalculator(sampling_rate=1000) result = calc.compute(electrode_data) result.value # β†’ ρ_e score result.pattern_type # β†’ 'normal', 'burst', 'stress', 'dormant'

fungi_mycel.core β€” MNIS Composite Engine

from fungi_mycel.core import MNIS, compute_mnis, MNISResult # MNIS class with full control calculator = MNIS(biome="temperate_broadleaf") result = calculator.compute(parameter_dict) # Result object attributes result.mnis_score # float result.class_name # str result.parameters # dict result.normalized_params # dict result.warning_flags # list result.to_dict() # serializable dict

fungi_mycel.models β€” AI Ensemble

from fungi_mycel.models import AIEnsemble # Load pre-trained ensemble ensemble = AIEnsemble() ensemble.load_models() # Predict from multiple data sources result = ensemble.predict( spike_data=electrode_data, # for CNN parameters=param_array, # for XGBoost history=time_series_data # for LSTM ) result.mnis_prediction # ensemble MNIS estimate result.confidence # model agreement (0-1)

fungi_mycel.alerts β€” Stress Early Warning

from fungi_mycel.alerts import StressEarlyWarning engine = StressEarlyWarning( ensemble_model="models/ensemble_v1/", site_config="configs/sudbury.yaml" ) # Real-time evaluation alert = engine.evaluate(mnis_timeseries_df) if alert: print(f"Lead time: {alert.lead_days} days") print(f"Predicted MNIS: {alert.predicted_mnis}") engine.dispatch(alert, recipients=["field_team", "pi"])

fungi_mycel.cli β€” Command Line Interface

# Run diagnostics fungi-mycel doctor # Analyze site fungi-mycel analyze --site bialowieza-01 --output results.json # Monitor bioelectrical activity fungi-mycel monitor --duration 24 --input electrode_data.npy # Launch dashboard fungi-mycel dashboard --port 8501

βš™οΈ Snakemake Workflows

All analyses are reproducible via Snakemake. The master pipeline automatically determines which rules to run based on available inputs.

Run Full Validation Pipeline

# Full pipeline β€” requires complete dataset (~72h on 32-core HPC) snakemake --cores 32 --use-conda all # Reproduce publication figures only snakemake --cores 8 figures # Single case study snakemake --cores 4 results/case_studies/bialowieza/ # Dry run β€” preview without executing snakemake --cores 32 --use-conda --dry-run all

Available Rules

Rule FileDescriptionInputsOutputs
preprocessing.smkElectrode, confocal, metagenomic preprocessingdata/raw/data/processed/
parameter_computation.smkCompute all 8 parameter scores per MNUdata/processed/data/processed/parameters/
mnis_aggregation.smkNormalize and aggregate MNIS indexdata/processed/parameters/data/processed/mnis_scores/
ensemble_training.smkTrain AI ensemble modelsdata/processed/models/ + results/
validation.smkCross-validation, sensitivity, uncertaintydata/processed/mnis_scores/results/validation/

πŸ—„οΈ Data & Formats

Supported Input Formats

ParameterFormatSourceTypical Size
Ξ·_NWICP-MS CSV / JSONLab measurements<1 MB per sample
ρ_eNPY / HDF5 / CSVMicroelectrode arrays10–500 MB per recording
βˆ‡CCSV trajectory + TIFFConfocal microscopy50–200 MB per stack
SERCSV isotope ratiosIRMS + Β³ΒΉP tracer<1 MB per sample
K_topoTIFF / PNGConfocal / SEM5–100 MB per image
E_aCSV growth ratesTime-lapse microscopy<1 MB per experiment
ABIFASTA / FASTQ16S eDNA sequencing10–500 MB per sample
BFSCSV time seriesMNIS history<1 MB per site/year

Output Formats

# MNIS result output (JSON) { "mnis_score": 0.47, "class": "MODERATE", "biome": "temperate_broadleaf", "parameters": { ... }, "normalized_params": { ... }, "warning_flags": [] } # GeoJSON output (for spatial analysis) { "type": "Feature", "properties": { "site_id": "bialowieza-01", "MNIS": 0.19, "classification": "EXCELLENT" } }

🏭 Applications

Forest Conservation & Management

MNIS provides 42-day early warning of network stress, enabling preventive intervention before above-ground symptoms appear. Pre-harvest assessment predicts post-harvest recovery trajectories with 40–60% improved accuracy.

Mycorrhizal Inoculation Optimization

Ξ·_NW and βˆ‡C parameters provide pre-inoculation site characterization predicting inoculation success with 78% accuracy, enabling species selection informed by soil chemistry and existing microbial community composition.

Carbon Credit Quantification

Ξ·_NW-based estimate of mycelial COβ‚‚ sequestration through mineral weathering: 0.8–1.4 t CΒ·ha⁻¹·year⁻¹ at intact temperate broadleaf sites. This provides the scientific foundation for a novel mycorrhizal carbon credit methodology.

# Assess carbon weathering potential python scripts/carbon_assessment.py \ --site bialowieza-01 \ --eta-nw 0.88 \ --area 100 \ --output results/carbon_credits.json

βœ… Validation & Reproducibility

Cross-Validation Protocol

FUNGI-MYCEL uses leave-one-site-out cross-validation across all 39 sites. This eliminates temporal autocorrelation within sites and tests generalization across entirely unseen locations.

MNIS Accuracy

91.8%

39-site cross-validation

Stress Detection

94.3%

True positive rate

False Alert Rate

4.2%

False positive rate

Early Warning

42d

Mean lead time

Reproducing All Results

# Reproduce cross-validation results python scripts/run_cross_validation.py --sites all --output results/cv_results.json # Reproduce H1-H8 hypothesis tests pytest tests/hypothesis/ -v # Generate validation figures python scripts/generate_validation_figures.py --output reports/figures/ # Environment hash (reproducibility verification) # sha256:b4f2a8c... verified on Ubuntu 22.04 Β· Python 3.10

πŸ• Changelog

v1.0.0
Mar 2026

Initial Release

Full eight-parameter MNIS framework, AI ensemble, validated across 2,648 MNUs from 39 sites across 5 biomes. Paper submitted to Nature Microbiology.

v0.9.0
Feb 2026

Beta Release

Complete parameter suite, Bayesian weight determination, tipping-point detection module. Validation across 1,847 MNUs from 28 sites.

v0.5.0
Dec 2025

Alpha β€” Core Framework

Three-parameter prototype (ρ_e, K_topo, η_NW) functional on 847 MNUs from 12 sites.

πŸ“„ Publications

πŸ“˜ Primary Reference

If you use FUNGI-MYCEL in your research, please cite the primary paper using the BibTeX entry below.

@article{baladi2026fungiMycel, title = {{FUNGI-MYCEL}: A Quantitative Framework for Decoding Mycelial Network Intelligence, Bioelectrical Communication, and Sub-Surface Ecological Sovereignty}, author = {Baladi, Samir}, journal = {Nature Microbiology}, year = {2026}, doi = {10.14293/FUNGI-MYCEL.2026.001}, note = {Submitted March 2026} }

πŸ™ Acknowledgments

The FUNGI-MYCEL framework builds upon the foundational work of the global mycological and bioelectrophysiology community. Special thanks to:

  • The 39 protected area site managers whose forest monitoring infrastructure made this research possible
  • The SΓ‘mi reindeer herding communities and Satoyama community forest managers of Honshu for integrating traditional ecological knowledge
  • The US Forest Service Malheur NF research station for facilitated access to the Oregon Armillaria site
  • Andrew Adamatzky (University of the West of England) for foundational research on fungal bioelectricity
  • Suzanne Simard (University of British Columbia) for Wood Wide Web network research
  • The UNITE, GBIF, and Global Mycorrhizal Network open-data initiatives
  • The Ronin Institute for supporting independent scholarship

This research is dedicated to all organisms with no brain, no eyes, and no voice β€” who nonetheless know exactly what they are doing.

πŸ‘€ Author & Principal Investigator

πŸ„

Samir Baladi

Interdisciplinary AI Researcher

πŸ“ž +1 (614) 264-2074
🦊 GitLab
πŸ™ GitHub

Samir Baladi is an interdisciplinary ai researcher working at the intersection of artificial intelligence, mycology, and complex systems modeling. Affiliated with the Ronin Institute β€” a global institution that supports rigorous scholarship outside the boundaries of traditional academic departments β€” his work rests on a single conviction: that the most consequential scientific breakthroughs of the 21st century will come not from deeper specialization, but from principled integration across disciplines that have long developed in parallel without sufficient communication.

Research Focus

  • Mycelial Intelligence: Bioelectrical communication and network computation in fungi
  • Fractal Geometry: Topological analysis of mycelial networks
  • AI-Driven Ecology: Machine learning for ecosystem monitoring
  • Multi-Parameter Integration: Bayesian weight determination and composite indices

The Rite of Renaissance

FUNGI-MYCEL is the third framework in the Rite of Renaissance series β€” a planetary monitoring architecture with a common computational language:

β˜„οΈ

METEORICA

Extraterrestrial materials Β· Solar system formation

🌿

BIOTICA

Terrestrial ecosystem resilience Β· IBR index

πŸ„

FUNGI-MYCEL

Mycelial intelligence Β· MNIS index

"Each framework is not merely a tool. It is a language β€” a principled, reproducible, open-source vocabulary for reading a different dimension of the living world. FUNGI-MYCEL is the language of the mycelium."

↑