BEFANA: A Tool for Biodiversity-Ecosystem Functioning Assessment by Network Analysis

BEFANA is a free, open-source Python tool structured as interactive notebooks that enables ecologists to analyze, visualize, and model biodiversity-ecosystem functioning networks using machine learning, as demonstrated through a case study of agricultural soil food webs.

Martin Marzidovšek, Vid Podpečan, Erminia Conti, Marko Debeljak, Christian Mulder

Published 2026-03-12
📖 5 min read🧠 Deep dive

Imagine you are trying to understand a massive, bustling city. You have maps showing who lives where, who buys what from whom, and who relies on whom for survival. Now, imagine that instead of a city, it's a soil ecosystem under a grassy field, and instead of people, it's worms, fungi, bacteria, and mites.

This is exactly what the paper "BEFANA" is about. It introduces a new digital tool designed to help scientists map, understand, and predict how these tiny underground cities function.

Here is a simple breakdown of the paper using everyday analogies:

1. What is BEFANA?

Think of BEFANA as a "Swiss Army Knife for Ecologists."

Just as a Swiss Army Knife has a blade, a screwdriver, and a bottle opener all in one, BEFANA is a single software package that does many things:

  • It draws maps of who eats whom (network visualization).
  • It counts connections to see how complex the system is (network analysis).
  • It runs simulations to see what happens if a species disappears (predictive modeling).
  • It uses AI to find hidden patterns (machine learning).

The best part? It's free, open-source (anyone can look at the code), and designed to be easy to use, even if you aren't a computer expert.

2. How Does It Work? (The "Notebook" Concept)

Traditionally, scientific software can be like a black box: you put data in, and a result pops out, but you don't see the steps in between.

BEFANA is different. It works like a digital recipe book (called "computational notebooks").

  • The Recipe: You see the code (the instructions).
  • The Ingredients: You see the data (the soil organisms).
  • The Cooking: You can tweak the ingredients and immediately see how the dish changes.
  • The Taste Test: You get a visual graph showing the result.

This allows scientists to tell a story with their data, showing exactly how they got from "raw numbers" to "scientific discovery."

3. The Case Study: The Underground City

To show off the tool, the authors used it to analyze a soil food web. Imagine the soil as a multi-story building:

  • The Basement (Level 1): Fungi and bacteria (the food sources).
  • The Ground Floor (Level 2): Nematodes and mites that eat the fungi.
  • The Upper Floors (Level 3+): Predators that eat the ground-floor creatures.

Using BEFANA, the scientists did three main things:

A. Mapping the Connections (The "Who's Who")

They built a giant, interactive map. In this map, you can drag and zoom in.

  • Analogy: Imagine a subway map where the lines are colored by who eats whom. If you click on a station (a species), you can see exactly which other stations it connects to.
  • The Discovery: They found that some creatures are "super-connectors" (like a busy subway hub), while others are isolated. They also found "loops" where creatures eat each other in circles, which makes the system very stable.

B. Stress Testing (The "What If" Game)

Scientists often ask: "What happens if we lose a species?"

  • Analogy: Imagine playing a game of Jenga. BEFANA lets you pull out a block (a species) and instantly see if the tower (the ecosystem) wobbles or collapses.
  • The Discovery: They found that the soil ecosystem is surprisingly resilient. Even if you remove some creatures, the "strongly connected" groups (like a tight-knit family of predators) keep the system running. However, losing the "basement" (the fungi/bacteria) would be catastrophic.

C. Predicting the Future with AI (The "Crystal Ball")

This is where the tool gets fancy. It uses Machine Learning (AI) to look at the shape of the network and predict things we can't easily see.

  • Analogy: Imagine you have a photo of a crowd. You can't see everyone's face, but by looking at how they are standing and who is huddled together, an AI can guess who is friends with whom.
  • The Discovery: The AI learned to group similar creatures together based on their role in the food web. It realized that fungi are very different from plants, even though they are both "producers," because of how they fit into the underground network.

4. Why Does This Matter?

We are losing biodiversity (species) at an alarming rate. We need to know which species are the "keystones" that hold the whole system together.

BEFANA gives ecologists a way to:

  1. See the invisible: Visualize complex relationships that are impossible to track with just a notebook.
  2. Predict disasters: Simulate what happens if we overuse pesticides or change the climate.
  3. Make better decisions: Help farmers and policymakers protect the specific species that keep our soil healthy and our food growing.

Summary

BEFANA is a free, user-friendly tool that turns complex ecological data into interactive maps and predictions. It's like giving ecologists a super-powered microscope and a time machine combined, allowing them to see how the tiny world under our feet works and how to keep it from falling apart.