Tiny deep learning model for insect segmentation and counting on resource-constrained devices

Automated insect monitoring is essential for early detection of insect pest infestations in orchards. It helps growers make an informed decision to control the insect pest population in their fields to avoid crop losses and improve crop quality. This study proposed a tiny deep-learning model for insect segmentation and counting suitable for battery-powered microcontroller (MCU)-based edge devices. For this aim, the critical layers in terms of peak memory usage in a U-Net-inspired model were recognized and then optimized to meet resources constraints on an MCU with 1 MB of RAM and 2 MB of flash storage. We then introduced an image dataset for the insect of interest, Halyomorpha halys , and the dataset-splitting strategy for the model training. The proposed model was investigated from different aspects to evaluate its performance and the feasibility of its implementation on battery-powered MCU-based edge devices. The proposed deep learning model only needs approximately 900 KB of RAM and 964 KB of storage to perform its computations and store its parameters, respectively, making it useful on edge, resource constrained systems. Moreover, each inference on an MCU-based board requires 2.6 s and consumes 4.9 J. In terms of segmentation, it achieved a Dice Similarity Coefficient (DSC) of 85% and an Intersection over Union (IoU) of 73% with a precision and recall of 83% and 86%, respectively. In terms of counting, it achieved a Mean Square Error (MSE) of 1.32, Mean Absolute Error (MAE) of 0.78 and R 2 of 0.97. • Tiny deep-learning (DL) model for object (e.g., insect) segmentation and counting. • Low-Power DL-based model for resource-constrained microcontrollers (MCUs). • Optimized deep learning model for efficient memory usage and storage. • An image dataset for Halyomorpha halys suitable for segmentation and detection tasks.

Authors

Institutions

Publication Details

Journal
Computers and Electronics in Agriculture
Published
2025-04-17
DOI
https://doi.org/10.1016/j.compag.2025.110378
Citations
5
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
8.75
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Tiny deep learning model for insect segmentation and counting on resource-constrained devices

Michael Gaffney, Dimitrios Zorbas, Salvatore Tedesco, Amin Kargar et al.
5 citations
Computers and Electronics in Agriculture
Smart Agriculture and AI
8.75
article

Tiny deep learning model for insect segmentation and counting on resource-constrained devices

Michael Gaffney, Dimitrios Zorbas, Salvatore Tedesco, Amin Kargar, Brendan O’Flynn
article en
5 citations

Abstract

Automated insect monitoring is essential for early detection of insect pest infestations in orchards. It helps growers make an informed decision to control the insect pest population in their fields to avoid crop losses and improve crop quality. This study proposed a tiny deep-learning model for insect segmentation and counting suitable for battery-powered microcontroller (MCU)-based edge devices. For this aim, the critical layers in terms of peak memory usage in a U-Net-inspired model were recognized and then optimized to meet resources constraints on an MCU with 1 MB of RAM and 2 MB of flash storage. We then introduced an image dataset for the insect of interest, Halyomorpha halys , and the dataset-splitting strategy for the model training. The proposed model was investigated from different aspects to evaluate its performance and the feasibility of its implementation on battery-powered MCU-based edge devices. The proposed deep learning model only needs approximately 900 KB of RAM and 964 KB of storage to perform its computations and store its parameters, respectively, making it useful on edge, resource constrained systems. Moreover, each inference on an MCU-based board requires 2.6 s and consumes 4.9 J. In terms of segmentation, it achieved a Dice Similarity Coefficient (DSC) of 85% and an Intersection over Union (IoU) of 73% with a precision and recall of 83% and 86%, respectively. In terms of counting, it achieved a Mean Square Error (MSE) of 1.32, Mean Absolute Error (MAE) of 0.78 and R 2 of 0.97. • Tiny deep-learning (DL) model for object (e.g., insect) segmentation and counting. • Low-Power DL-based model for resource-constrained microcontrollers (MCUs). • Optimized deep learning model for efficient memory usage and storage. • An image dataset for Halyomorpha halys suitable for segmentation and detection tasks.

Computers and Electronics in AgricultureVol. 236
Teagasc - The Irish Agriculture and Food Development Authority (IE), University College Cork (IE), Nazarbayev University (KZ)
Openalex Percentile: Top 3%
Smart Agriculture and AI
8.75
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.