Factors affecting deep learning model performance in citizen science–based image data collection for agriculture: A case study on coffee crops

• This work analyzed errors in a deep learning model trained with citizen science–based data collection. • Photographer identity and protocol adherence significantly impact model prediction accuracy. • Ignorance of the protocol decrease the model performance R 2 from 0.73 to 0.48. • Mobile phone device features have no significant effect on prediction error. • Effective protocols and volunteer training enhance data quality for deep learning in agriculture. Citizen science is an effective approach for collecting extensive data scalable for deep learning, although data quality is debatable. However, few studies have determined the factors associated with data collection that affect model performance and potential sampling bias. This study aims to identify the factors that significantly influence the performance of a deep learning object detection model in agricultural prediction tasks. To do so, we analyzed errors in a You Only Look Once (YOLO v8) model trained for counting the number of coffee cherries in mobile pictures. The model was trained with 436 images taken in Colombia and Peru collected by local farmers as a citizen science approach. We analyzed the prediction errors of the model using 637 additional pictures. We then applied a linear mixed model (LMM) and a decision tree machine learning model to regress the model’s error against predictor variables related to the following categories: photographer influence, geographic location, mobile phone characteristics, picture characteristics, and coffee varieties. Our results show the strong influence of photographer identity and adherence (whether the image collection protocol was followed or not) on model prediction error. Following the protocol can increase model performance from an R 2 of 0.48 to 0.73. Additionally, model performance varied significantly depending on photographer identity, with R 2 ranging from 0.45 to 0.93. In contrast, factors such as mobile phone characteristics (e.g., frontal camera resolution, flash type, and screen size), using the screen behind the branch to obscure other cherries, coffee varieties, and geographic location did not significantly affect prediction error. These findings demonstrate that data quality in citizen science–based data collection for enhancing model prediction can be achieved through straightforward and comprehensive protocols, customized volunteer training, and regular feedback from experts. Such measures collectively support the robust application of deep learning models in agriculture. Furthermore, this study demonstrated that any mobile device with a camera can contribute to citizen science initiatives, underscoring the potential and scalability of this approach in agricultural research.

Authors

Institutions

Publication Details

Journal
Computers and Electronics in Agriculture
Published
2025-02-13
DOI
https://doi.org/10.1016/j.compag.2025.110096
Citations
8
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
14.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Factors affecting deep learning model performance in citizen science–based image data collection for agriculture: A case study on coffee crops

Christian Bunn, Masahiro Ryo, Juan Camilo Rivera-Palacio
8 citations
Computers and Electronics in Agriculture
Smart Agriculture and AI
14.00
article

Factors affecting deep learning model performance in citizen science–based image data collection for agriculture: A case study on coffee crops

Christian Bunn, Masahiro Ryo, Juan Camilo Rivera-Palacio
article en
8 citations

Abstract

• This work analyzed errors in a deep learning model trained with citizen science–based data collection. • Photographer identity and protocol adherence significantly impact model prediction accuracy. • Ignorance of the protocol decrease the model performance R 2 from 0.73 to 0.48. • Mobile phone device features have no significant effect on prediction error. • Effective protocols and volunteer training enhance data quality for deep learning in agriculture. Citizen science is an effective approach for collecting extensive data scalable for deep learning, although data quality is debatable. However, few studies have determined the factors associated with data collection that affect model performance and potential sampling bias. This study aims to identify the factors that significantly influence the performance of a deep learning object detection model in agricultural prediction tasks. To do so, we analyzed errors in a You Only Look Once (YOLO v8) model trained for counting the number of coffee cherries in mobile pictures. The model was trained with 436 images taken in Colombia and Peru collected by local farmers as a citizen science approach. We analyzed the prediction errors of the model using 637 additional pictures. We then applied a linear mixed model (LMM) and a decision tree machine learning model to regress the model’s error against predictor variables related to the following categories: photographer influence, geographic location, mobile phone characteristics, picture characteristics, and coffee varieties. Our results show the strong influence of photographer identity and adherence (whether the image collection protocol was followed or not) on model prediction error. Following the protocol can increase model performance from an R 2 of 0.48 to 0.73. Additionally, model performance varied significantly depending on photographer identity, with R 2 ranging from 0.45 to 0.93. In contrast, factors such as mobile phone characteristics (e.g., frontal camera resolution, flash type, and screen size), using the screen behind the branch to obscure other cherries, coffee varieties, and geographic location did not significantly affect prediction error. These findings demonstrate that data quality in citizen science–based data collection for enhancing model prediction can be achieved through straightforward and comprehensive protocols, customized volunteer training, and regular feedback from experts. Such measures collectively support the robust application of deep learning models in agriculture. Furthermore, this study demonstrated that any mobile device with a camera can contribute to citizen science initiatives, underscoring the potential and scalability of this approach in agricultural research.

Computers and Electronics in AgricultureVol. 232
Leibniz Centre for Agricultural Landscape Research (DE), Brandenburg University of Technology Cottbus-Senftenberg (DE), International Center for Tropical Agriculture (CO)
Deutsche Gesellschaft für Internationale Zusammenarbeit, Brandenburgische Technische Universität Cottbus-Senftenberg
Zero hunger
Openalex Percentile: Top 1%
Smart Agriculture and AI
14.00
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.