What Can an AI Model Learn From a Soil Microbiome?

Compare microbial community profiles with measured soil indicators, then check whether a prediction travels to a different farm.

A transparent soil core exposes roots and distinct layers beside a closed sample jar.
Two samples from the same field can describe different conditions if they came from different depths.

A soil sample comes back with a prediction for organic matter. Was that number measured on the sample, or estimated from the microbial community found there? An AI model can learn associations between a community profile and an independently measured soil property. For a grower, the difference matters most when the estimate and the field’s test history disagree.

What supplies the reference value?

Wilhelm and colleagues paired bacterial community profiles with a panel of soil measurements. They trained random forests and support vector machines to predict measures of soil health, texture and tillage status. In a random forest, many decision trees each learn from examples, then their outputs are combined. The reference for an organic-matter estimate is the measured organic matter for that soil. Microbial composition supplies the predictors. Wilhelm and colleagues, predicting soil measurements (PDF)

A person is monitoring plant growth using a tablet with a graph displaying soil health data in an outdoor garden or greenhouse.
Keep the measured organic matter beside its estimate and retain the units.

A laboratory panel includes different kinds of targets. Predicting a numerical value, assigning a rating category and identifying tillage status require different comparisons. The authors generally found better predictions for biological ratings than for physical or chemical ratings. The strongest reported fits cannot be carried over to every property on the panel. Wilhelm and colleagues, predicting soil measurements (PDF)

Which samples belong in the test set?

Nearby samples can share soil texture and management history. Randomly splitting them can put examples from the same field in training and testing. A new-farm claim asks a harder question. Keep records from that farm together, retain the independent laboratory measurements and report the error in the original units for the property of interest. The study also evaluated predictions using independent datasets. Wilhelm and colleagues, predicting soil measurements (PDF)

A dynamic composition of abstract shapes with bold colors and a subtle background gradient.
A repeat visit to the same field and a visit to an unfamiliar field test different claims.

Consider a prediction of 3.4% organic matter against a laboratory result of 2.8%. That difference is 0.6 percentage points. The discrepancy could involve sampling depth, timing, differences between fields or prediction error. A high ranking for a microbial group in the AI analysis establishes an association with the measured target. It does not establish what caused organic matter to change.

Write down the decision that the evidence supports

Keep sample identity, depth, date, measured property and prediction side by side. Compare prediction errors with the differences that would matter to a farm decision. When an estimate sits close to a management threshold, a repeat or independent measurement may resolve more than a second software score.

The image presents a divided landscape, showcasing both a serene and natural environment.
A single soil-health rating combines choices about which measurements matter.

For another example of a proxy and a harvest measurement giving different answers, compare the crop rotation exercise. What Last Year’s Crop Can Tell an AI About This Year’s Yield

Try it with the evidence

Audit the organic-matter estimate

Source notes. Illustrative samples from a farm withheld from training. Predicted organic matter percentages are 3.4, 2.6 and 4.0. Independent measurements are 2.8, 2.8 and 3.6. Pair them in the order shown.

Prompt. Calculate each signed error and mean absolute error in percentage points. Explain what an additional farm would test and why these errors cannot identify the cause of a soil change.

Check your reading

The errors are +0.6, −0.2 and +0.4 percentage points. Mean absolute error is (0.6 + 0.2 + 0.4)/3 = 0.4 percentage points. Another farm tests transfer to unfamiliar conditions. These paired readings compare estimates with measurements and supply no experimental change from which to infer a cause.

Illustrated field notes

What a sample records
A young girl intently gazes at a vibrant digital display in an educational setting.
A pattern in a microbial profile needs an independently measured soil property for comparison.
A 3D rendering of an automated classification and clustering of microbial taxa in a laboratory setting.
Two samples can cluster together without sharing every soil characteristic.
A double helix DNA strand composed of blue and yellow dots, with various symbols and lines scattered throughout.
A predicted biological function needs independent evidence before it becomes a field finding.
The image shows a DNA double helix structure with each strand consisting of two complementary polynucleotide chains twisted together in a spiral fashion.
Combining measurements requires matched sample identities, depths and collection dates.
A dynamic and futuristic image depicting a network of objects and lines, with a cityscape in the background.
An indicator should behave consistently on sites excluded from training.
A person planting small lights in the ground, likely for decorative purposes or to mark a path.
Keep direct sensor observations distinct from estimates updated by software.
Interpreting a biological association
A peaceful landscape with a dirt road, trees, and a sunset.
An unusual community profile can justify further review while its cause remains open.
A tree with its roots extending into the ground is surrounded by various objects and symbols related to data analysis and scientific research.
Changes in nutrient availability must be measured on a comparable basis.
A serene landscape with a plant and mountains in the background.
A carbon-stock estimate needs depth and bulk density as well as carbon concentration.
A woman studies soil microbes in a laboratory using an optical microscope.
A previously overlooked signal can motivate research without establishing what it does.
An abstract image representing a microbial network with interconnected nodes and lines.
Co-occurrence alone cannot establish an interaction between organisms.
A serene underwater scene with a focus on water as its central element.
A stress prediction should be checked against field conditions and an independent assay.
A 3D rendering of a double helix DNA strand with various symbols and lines superimposed upon it.
An inferred trait belongs to a different evidence record from a measured soil property.
From a result to field management
A farmer stands in a field, intently examining a tablet with a green screen.
Show the prediction uncertainty alongside the threshold relevant to the grower.
A serene outdoor setting with a winding dirt path and lush greenery.
Compare actual outcomes after an intervention with a defensible baseline.
A computer monitor displaying a complex data visualization in an office setting.
A regional assessment needs checks on the soil types and land uses it covers.
A serene landscape painting featuring a small house and trees in various shades of green, brown, and blue.
A field decision can be revisited when a new soil measurement becomes available.