A Scalable Distillation and Metric-Learning Pipeline for Adaptive Weed Classification on Edge Devices

Smart agriculture increasingly relies on automated weed detection to reduce inputs and labor. Deploying deep learning on edge devices is difficult due to limited compute and evolving weed classes. We propose a pipeline that combines partial fine-tuning of an EfficientNet-B7 teacher, embedding level distillation into lightweight students (MobileNetV3, ShuffleNetV2, EfficientNet-B0), and semi-hard triplet metric learning. The system learns 2048D embeddings and is evaluated with N-way/K-shot episodes to mimic a few-label condition. Dynamic INT8 quantization enables CPU-only inference with minimal accuracy loss. The approach adapts rapidly to novel species with few labels while meeting real-time edge constraints, supporting sustainable herbicide management in practice.

Authors

Publication Details

Journal
ScholarSpace (University of Hawaii at Manoa)
Published
2025-12-23
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Scalable Distillation and Metric-Learning Pipeline for Adaptive Weed Classification on Edge Devices

Abderrezak Allalen, Omar El-Gayar
ScholarSpace (University of Hawaii at Manoa)
Smart Agriculture and AI
article

A Scalable Distillation and Metric-Learning Pipeline for Adaptive Weed Classification on Edge Devices

Abderrezak Allalen, Omar El-Gayar
article en

Abstract

Smart agriculture increasingly relies on automated weed detection to reduce inputs and labor. Deploying deep learning on edge devices is difficult due to limited compute and evolving weed classes. We propose a pipeline that combines partial fine-tuning of an EfficientNet-B7 teacher, embedding level distillation into lightweight students (MobileNetV3, ShuffleNetV2, EfficientNet-B0), and semi-hard triplet metric learning. The system learns 2048D embeddings and is evaluated with N-way/K-shot episodes to mimic a few-label condition. Dynamic INT8 quantization enables CPU-only inference with minimal accuracy loss. The approach adapts rapidly to novel species with few labels while meeting real-time edge constraints, supporting sustainable herbicide management in practice.

ScholarSpace (University of Hawaii at Manoa)
Zero hunger
Openalex Percentile: Top 24%
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.