Understanding Contextual Bias in Agricultural CNNs Through Hidden-Neuron Concept Induction

Abhilekha Dalal, Avishek Das, Samatha Ereshi AkkamahadeviarXiv 2026 · arXiv

TL;DR

This paper introduces a neuro-symbolic framework to "peek inside" the hidden layers of agricultural CNNs and explain why they rely on background context rather than target objects. By combining deep learning activations with Description Logic Concept Induction, the researchers identified that intermediate network layers frequently represent interpretable visual properties like edge density and texture when processing biased background patches.

What Problem Does This Paper Address?

Deep learning models, particularly Convolutional Neural Networks (CNNs), are notorious for "shortcut learning"—achieving high accuracy by exploiting spurious correlations in the background rather than learning the actual features of the target object. For example, a model might identify a plant disease not by looking at the leaf, but by recognizing the specific soil or lighting conditions of a particular farm in the training set.

While previous research has used "patch-based" testing (evaluating models on small, object-free background squares) to prove this bias exists, it hasn't explained what the model is actually seeing in those patches. This paper bridges that gap by moving from behavioral observation (the model is biased) to semantic characterization (the model's internal neurons are specifically responding to these types of textures or edges in the background).

Methods

The authors developed a neuro-symbolic analysis pipeline that translates raw neural activations into human-readable logical expressions.

  1. Activation Extraction: They analyzed four common CNN architectures (ResNet50V2, InceptionV3, DenseNet121, and VGG16) at three different depths: mid, mid-deep, and deep.
  2. Quantitative Descriptors: For each image patch, they extracted 338 handcrafted visual features using the Universal Data Analysis Tool (UDAT), covering properties like color histograms, edge statistics, and textures.
  3. Knowledge Graph Construction: These continuous numerical features were discretized into "bins" and encoded into an OWL (Web Ontology Language) knowledge graph.
  4. Concept Induction: Using a tool called DL-Learner, the system performed "Concept Induction." It looked for logical combinations of visual features (e.g., HighEdgeDensity ⊓ LowEntropy) that consistently appeared when a specific hidden neuron was highly active.
  5. Statistical Validation: To ensure these weren't just random correlations, the induced "concepts" were tested on a held-out dataset using the Mann-Whitney U test and Cliff’s delta to measure effect size.

Datasets

The study utilized five agricultural datasets previously identified as having varying levels of contextual bias:

  • High Bias: DeepWeeds (weed species), Cassava (leaf disease), and OpenSprayer (weed identification).
  • Moderate Bias: Sugarcane (disease detection).
  • Low Bias: Oxford-102 (flower species).

The characteristics of these datasets and their baseline bias levels are summarized in the table below:

Table 2: Summary of dataset characteristics and patch-based context-bias results reported in the pre- vious study. “Chance Acc.” denotes random-chance accuracy, and “Patch Acc.” denotes the reported patch accuracy range.

Key Insights and Ideas

  • The "Mid-Layer" Sweet Spot: Interpretability peaks at intermediate layers. The researchers found that 40.2% of neuron-feature pairs were validated at the "mid" depth, compared to only 12.0% at the "deep" depth. This suggests that as information moves deeper into a network, it becomes more abstract and task-specific, making it harder to describe using general visual primitives.
  • Texture is King: CNNs are heavily biased toward texture. Edge statistics, Gabor filters, and Tamura texture features had the highest validation rates. This aligns with the "texture bias" hypothesis in computer vision, suggesting models often see the background as a collection of repeating patterns rather than distinct objects.
  • The Bias-Interpretability Paradox: Surprisingly, a higher degree of behavioral bias (how well the model classifies background patches) does not mean the neurons are more semantically interpretable. For instance, the highly biased Cassava dataset had the lowest validation rate (19.2%), while the moderately biased Sugarcane had the highest (40.5%). This implies that some models might be exploiting complex, non-linear background cues that our current vocabulary of handcrafted features simply cannot describe.

Key Results

Out of 48,013 neuron-feature pairs tested, 13,164 (27.4%) were statistically validated.

The researchers categorized the visual properties used for induction into several families, as shown in the following table:

Table 1: UDAT feature families considered in this study, the number of numerical descriptors associated with each family, and the visual properties they quantify.

Quantitatively, Edge features achieved the highest validation rate at 64.5%, followed closely by Gabor filters at 60.9%. In contrast, more complex descriptors like Multiscale histograms (4.5%) and Object statistics (8.5%) rarely correlated with neuron activations, suggesting that hidden neurons in these layers are tuned to simpler, low-level visual signals.

Limitations and Future Work

  • Feature Vocabulary: The study is limited by the 338 UDAT features. If a neuron is responding to a visual property not captured by UDAT, the system cannot "explain" it.
  • Correlation vs. Causation: While the study shows that certain features correlate with neuron activation, it doesn't strictly prove that those features are causing the final classification decision.
  • LLM-Guided Selection: The authors used an LLM (Claude) to decide which feature families to test at which layers. While efficient, this introduces a potential meta-bias into the experimental design.

Future work aims to use these insights for bias mitigation—specifically, by intervening on the identified visual properties (e.g., masking specific textures) to see if it forces the model to focus on the actual agricultural objects of interest.

Summary updated

Abstract

Convolutional Neural Networks (CNNs) can classify images using background-dominated patches that contain little or none of the target object, showing that they exploit contextual information. Previous studies detected this behavior through classification accuracy but say little about what CNN hidden layers represent. We investigate whether Concept Induction can reveal interpretable visual properties associated with hidden-neuron activations on contextual image patches. Using five agricultural datasets with high, moderate, and low contextual bias, we analyze four CNN architectures at three network depths and five patch locations. Quantitative image descriptors of each patch are encoded in a knowledge graph and used as background knowledge for Concept Induction, which derives logical expressions characterizing neuron activation. These expressions are tested on held-out images using the Mann-Whitney U test and Cliff's delta. Of 48,013 tested neuron-feature pairs, 13,164 (27.4%) were validated. Validation was most frequent at intermediate depths (mean 40.2% at mid layers versus 12.0% at deep layers), and no patch location dominated across datasets. Among the tested descriptors, edge, Gabor, and Tamura texture features had the highest validation rates. Stronger contextual bias did not correspond to higher neuron-feature validation rates: moderately biased Sugarcane had the highest rate (40.5%) and highly biased Cassava the lowest (19.2%). These results suggest that behavioral context dependence and the semantic interpretability of hidden neurons capture different aspects of CNN behavior, and that Concept Induction can complement patch-based bias detection.
BibTeX
@misc{dalal2026understanding,
  author = {Abhilekha Dalal and Avishek Das and Samatha Ereshi Akkamahadevi},
  title = {{Understanding Contextual Bias in Agricultural CNNs Through Hidden-Neuron Concept Induction}},
  year = {2026},
  eprint = {2611.18530},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.18530},
}
Figure