Evaluating Contextual Bias in CNN Image Classification: Evidence from Agricultural Benchmark Datasets
Not on the map. Why?
Abstract (arXiv)
Convolutional neural networks (CNNs) are typically evaluated using held-out classification accuracy, an approach that presupposes predictions are based primarily on the intended object of interest rather than incidental surrounding context. We test this assumption in CNN-based agricultural image classification by comparing model performance on original images with performance on background-dominated patches extracted from the same images across eight publicly available agricultural benchmark datasets and four widely used CNN architectures. Background-dominated patches were classified above dataset-specific random chance for six of the eight datasets, and substantially above chance for four of them, indicating that contextual information contributes to model predictions for the majority of datasets evaluated. For these four datasets, we further evaluated whether this behavior reflected genuine class-discriminative information or was primarily attributable to class imbalance using macro-averaged precision, recall, and F1 together with class-balanced test subsets. The results show that contextual reliance does not admit a single explanation: class imbalance accounts for a substantial portion of the observed signal for some datasets and architectures, whereas above-chance contextual classification persists after balancing for others. Together with previous evidence from curated object recognition and cancer pathology imaging, these findings support the growing view that contextual bias is a recurring characteristic of CNN-based image classification rather than a phenomenon confined to a single application domain. More broadly, this work provides a systematic framework for quantifying contextual bias across heterogeneous image datasets by combining dataset-specific random-chance baselines, contextual bias categorization, macro-averaged evaluation, and class-balanced robustness analysis.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 42 references that are in the map. First posted on arXiv 13 Sep 2026.
Builds on
19 of 42 references.
References · 19
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2016Identity Mappings in Deep Residual Networkscited by 1,965
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,432
- 2018Recognition in Terra Incognitacited by 658
- 2018Confounding variables can degrade generalization performance of radiological deep learning modelscited by 379
- 2016Using Deep Learning for Image-Based Plant Disease Detectioncited by 219
- 2018DeepWeeds: A Multiclass Weed Species Image Dataset for Deep Learningcited by 69
- 2019PlantDoc: A Dataset for Visual Plant Disease Detectioncited by 68
7 more
- 2018Not Using the Car to See the Sidewalk: Quantifying and Controlling the Effects of Context in Classification and Segmentationcited by 49
- 2021A Survey of Deep Learning Techniques for Weed Detection from Imagescited by 23
- 2021A Survey on Understanding, Visualizations, and Explanation of Deep Neural Networkscited by 14
- 2017Using Transfer Learning for Image-Based Cassava Disease Detectioncited by 12
- 2022Systematic biases when using deep neural networks for annotating large catalogs of astronomical imagescited by 5
- 2022Analyzing the Impact of Shape & Context on the Face Recognition Performance of Deep Networkscited by 1
- 2026Unmasking Biases and Reliability Concerns in Convolutional Neural Networks Analysis of Cancer Pathology Imagescited by 1
Built on by
Not cited yet.