Development of an ImageJ-Based Machine-Vision Framework for Automated Detection of Insect Damage in Sunflower Achenes

Reliable identification of insect-damaged sunflower achenes remains challenging because internal kernel deterioration often produces subtle external visual symptoms. Infestation by the red sunflower seed weevil (RSSW, Smicronyx fulvus) alters achene morphology, optical reflectance, and surface texture, reducing seed quality and processing efficiency. This study developed an open-source optical phenotyping framework for RSSW infestation detection using ImageJ-based machine vision and machine-learning classification. High-resolution achene images acquired at 600, 900, and 1200 dpi were processed using integrated mask-and-hole segmentation, profile-based grayscale analysis, and gray-level co-occurrence matrix (GLCM) texture analysis. The mask-and-hole approach extracted geometric descriptors related to seed size and shape, while grayscale and GLCM analyses quantified optical reflectance variation and texture features. Four machine-learning classifiers, linear discriminant analysis (LDA), generalized linear model (GLM), random forest (RF), and support vector machine (SVM), were evaluated to assess the discriminatory and classification performance of the extracted descriptors. Results showed that projected area and all grayscale descriptors differentiated healthy and infested achenes, while GLCM contrast and entropy provided the strongest texture-based separation (p ≤ 0.001). Among the evaluated classifiers, GLM achieved the highest cross-validation accuracy (89.8%; kappa = 0.796), while SVM produced the highest internal-test accuracy (87.5%; balanced accuracy = 0.875). However, performance declined substantially under heterogeneous mixed-seed conditions, with LDA producing the highest classification accuracy (50.3%). Confusion matrices further showed high false-negative rates for infested seeds, with RF and SVM incorrectly classifying 66.0% and 64.9% of infested achenes. The developed ImageJ-based framework provides a reproducible and accessible approach for low-cost optical phenotyping and laboratory-scale seed-quality assessment using standard imaging hardware and open-source software.

Authors

Institutions

Publication Details

Journal
AgriEngineering
Published
2026-12-02
DOI
https://doi.org/10.3390/agriengineering8120522
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00

Funders

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

Development of an ImageJ-Based Machine-Vision Framework for Automated Detection of Insect Damage in Sunflower Achenes

Humeera Tazeen, Pa Tamba Jammeh, Ewumbua Monono, Cannayen Igathinathane et al.
3 links
AgriEngineering
Smart Agriculture and AI
article

Development of an ImageJ-Based Machine-Vision Framework for Automated Detection of Insect Damage in Sunflower Achenes

Humeera Tazeen, Pa Tamba Jammeh, Ewumbua Monono, Cannayen Igathinathane, Brent S. Hulke, Anne Joice, Jarrad R. Prasifka, Xin Sun
article en

Abstract

Reliable identification of insect-damaged sunflower achenes remains challenging because internal kernel deterioration often produces subtle external visual symptoms. Infestation by the red sunflower seed weevil (RSSW, Smicronyx fulvus) alters achene morphology, optical reflectance, and surface texture, reducing seed quality and processing efficiency. This study developed an open-source optical phenotyping framework for RSSW infestation detection using ImageJ-based machine vision and machine-learning classification. High-resolution achene images acquired at 600, 900, and 1200 dpi were processed using integrated mask-and-hole segmentation, profile-based grayscale analysis, and gray-level co-occurrence matrix (GLCM) texture analysis. The mask-and-hole approach extracted geometric descriptors related to seed size and shape, while grayscale and GLCM analyses quantified optical reflectance variation and texture features. Four machine-learning classifiers, linear discriminant analysis (LDA), generalized linear model (GLM), random forest (RF), and support vector machine (SVM), were evaluated to assess the discriminatory and classification performance of the extracted descriptors. Results showed that projected area and all grayscale descriptors differentiated healthy and infested achenes, while GLCM contrast and entropy provided the strongest texture-based separation (p ≤ 0.001). Among the evaluated classifiers, GLM achieved the highest cross-validation accuracy (89.8%; kappa = 0.796), while SVM produced the highest internal-test accuracy (87.5%; balanced accuracy = 0.875). However, performance declined substantially under heterogeneous mixed-seed conditions, with LDA producing the highest classification accuracy (50.3%). Confusion matrices further showed high false-negative rates for infested seeds, with RF and SVM incorrectly classifying 66.0% and 64.9% of infested achenes. The developed ImageJ-based framework provides a reproducible and accessible approach for low-cost optical phenotyping and laboratory-scale seed-quality assessment using standard imaging hardware and open-source software.

AgriEngineeringVol. 8(12)
Agricultural Research Service (US), United States Department of Agriculture (US), Edward T. Schafer Agricultural Research Center (US), North Dakota State University (US)
North Dakota Agricultural Experiment Station, National Institute of Food and Agriculture, Agricultural Research Service
Zero hunger
Smart Agriculture and AI
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.

Laika access coming soon