arXiv:2610.20879cs.CVOct 2026

Manuscript Offprint

arXiv:2610.20879

DefoliationCAM: An Edge-AI System for Real-Time Insect Defoliation Severity Assessment in Grapevines

Fuchen Li, Wei-Zhen Liang, Pin-Chu Lai, Xin Qiao, Jingqiu Chen, Haw Yen, Zonglin Yanga, Chi-En Chiang, Rudolph Avalos, Abbigail L. Rath

Abstract

Insect-induced leaf defoliation threatens grapevine health and yield, and its severity is still heavily rely on subjective manual scouting. This study developed a solar-powered edge AI system DefoliationCAM (D-CAM) which estimates the degree of defoliation in grape canopy in vineyard and transmits results through LoRa to a remote web dashboard. The two-stage pipeline first uses YOLOX-Nano to localize the grapevine cordon in a 4K image, and then uses a MobileNet-based classifier enhanced with lightweight channel attention to classify 320×320320 \times 320 patches. The 29,674 field-collected patches were originally annotated as background or one of four damage levels: no to negligible, mild, moderate, and severe. Merging the original moderate and severe classes reduced the class imbalance ratio from approximately 40:1 to 8.8:1, and synthetic augmentation further increased macro-F1 from 0.768 to 0.838. On the same test set, the selected classifier achieved a higher macro-F1 than ResNet-50 despite having substantially fewer parameters (1.08 M versus 23.52 M). Patch predictions were aggregated into a canopy-level Non-linear Global Defoliation Severity (NGDS) score, validated by an entomologist evaluating 86 held-out canopy images and assigning them to three management categories: (1) Negligible damage, (2) Mild damage warranting continued monitoring, and (3) Action-level damage warranting on-site scouting and insecticide treatment consideration. Quadratic discriminant analysis identified NGDS boundaries of 9% and 29% corresponding to category (2) and (3), respectively. The 29% boundary was consistent with the action threshold range of 25%–30% for Japanese beetle management in grapevine. On an NVIDIA Jetson Orin Nano, the deployed pipeline processed each 4K image in approximately 1.5 s using TensorRT FP16, while the complete operating cycle required approximately 57–60 s. A five-week deployment of two field units demonstrated the feasibility of autonomous solar-powered operation, LoRa communication, and remote vineyard monitoring for defoliation. The D-CAM provides a practical platform for frequent, objective, and remote assessment of canopy damage, supporting more targeted vineyard scouting and timely pest-management decisions.

Keywords: Edge AI, Defoliation assessment, Lightweight neural network, TensorRT Inference, Class imbalance, Autonomous crop monitoring

arXiv:2610.08790

1. Introduction

Grapevines (Vitis spp.), including wine and table grape cultivars, represent an economically important specialty crop in the United States. In 2025, U.S. vineyards comprised approximately 883,000 bearing acres and produced 5.23 million tons of utilized grapes valued at $5.83 billion; 882,100 tons were marketed as table grapes, while 4.35 million tons were processed for wine, juice, raisins, and other products [1]. Maintaining a healthy canopy is essential because leaves supply the photosynthates required for vine growth, berry development, and fruit ripening. Excessive leaf loss can slow sugar accumulation, affect fruit composition and vine growth, and cause multi-season yield losses.

Japanese beetle (Popillia japonica Newman) is an important defoliating pest of grapevines in the U.S. Adult beetles feed on tissue between the major leaf veins causing skeletonization and severe defoliation. Although no single defoliation threshold applies to all grape cultivars, mature bunch grapevines can generally tolerate less than 20% leaf-area loss, with tolerance varying by cultivar and vine condition [2]. In ‘Frontenac’, a cold-hardy wine grape cultivar, fruit quality began to decline when leaf-area loss exceeded approximately 30–35%, leading to a proposed action threshold of 25–30% defoliation for Japanese beetle management [3]. Consistent with these findings, the University of Wisconsin–Madison recommends approximately 30% defoliation as a practical threshold for considering insecticide treatment, while vines with less damage should continue to be monitored and scouted [4]. Continuous monitoring of canopy defoliation is therefore essential for precision viticulture and early pest intervention. In current practice, this monitoring is

*Corresponding author

Email address: wei-zhen.liang@unl.edu (Wei-Zhen Liang)

Preprint submitted to Elsevier

October 16, 2026 performed by manual visual scouting, which is labor-intensive, subjective, and difficult to repeat constantly across large or remote vineyards.

Computer vision, particularly convolutional neural networks, is widely used to identify plant diseases and stress from images, and its development has been driven largely by public datasets [5, 6, 7]. PlantVillage provides 54,306 leaf images captured under controlled background and lighting conditions [8]. Models trained and evaluated on these relatively uniform images achieved high classification accuracy, but their performance declined when tested on images captured under field conditions. PlantDoc addressed this limitation by providing 2,598 non-laboratory images covering 13 plant species and 17 diseases [9], while the Plant Pathology 2020 dataset included 3,651 images of apple leaves covering three diseases collected under varying illumination, viewing angles, and surfaces and image noise [10]. PlantDoc, however, is a small, web-scraped collection of mixed image quality, whereas Plant Pathology 2020 is of higher quality and field-collected but limited to apple foliar diseases. Although these datasets better represent field conditions, they are considerably smaller than PlantVillage and were developed primarily for disease recognition from individually collected images rather than long-term, continuous monitoring of crops in the field. Kamilaris and Prenafeta-Boldú [11] similarly noted that many agricultural deep-learning studies relied on relatively small datasets and evaluated models using images from the same dataset, leaving their performance under different field conditions uncertain. Although computer vision has been used in disease recognition, long-term field image datasets that captured change in illumination, canopy, soil backgrounds, viewing angles, and leaf occlusion remain limited. This gap is particularly evident for insect-caused grapevine defoliation, for which few studies [48, 49] have examined automated, canopy-level severity assessment using images collected at regular intervals over field deployments.

Class imbalance is another concern when models are developed from field images, because severe damage may be represented by far fewer samples than healthy or mildly affected conditions. Models trained on imbalanced datasets can favor the larger classes and perform poorly on rare but important cases [13, 14]. Common approaches include minority-class resampling, such as SMOTE [15]; loss functions designed to emphasize rare or difficult samples, such as focal loss [16] and class-balanced loss [17]; and decoupling representation learning from classifier learning for long-tailed recognition [18]. However, their suitability for grapevine defoliation classification requires further evaluation because images of moderate and severe damage are less common than those showing no to negligible or mild damage, and adjacent severity levels can be visually similar.

Processing images at the edge reduces the need to transmit large, high-resolution files from the field. Raspberry Pi microcomputers have seen widespread adoption in agricultural monitoring due to their compact form factor, low cost, and straightforward integration with cameras and sensors [19, 22, 23]. However, without an external AI accelerator, deep-learning inference relies primarily on the CPU, which limits model complexity and processing speed. Raspberry Pi-based systems have therefore used hand-crafted features and conventional classifiers [20], or lightweight neural networks [21], often at the cost of longer processing times [23], or single-digit frame rates [24]. In comparison, NVIDIA Jetson platforms provide GPU acceleration for on-device inference and have been used for grape leaf disease classification [25], real-time weed detection and target spraying [26], robotic vineyard pruning [27], and leaf-disease detection on Ginkgo [28] and peanut [29]. The NVIDIA Jetson Orin Nano therefore provides a more suitable platform for running computer-vision models on high-resolution vineyard images. To maximize inference efficiency on such edge platforms, lightweight backbones such as MobileNet [30], together with channel-attention mechanisms [31], offer efficient building blocks for reducing computation while preserving accuracy under such edge constraints.

Moving inference to the edge does not remove the practical constraints of field deployment. Many vineyards lack grid power and reliable cellular service, requiring monitoring devices to operate on solar power and use low-bandwidth communication. Classical agricultural wireless sensor networks that rely on non-vision sensors such as soil moisture, temperature, and humidity have already struggled with limited battery life, unreliable radio links, environmental exposure, and hardware failure over a single growing season [32, 33, 34]. Image acquisition and deep-learning inference demand orders of magnitude more compute per cycle than these conventional sensors, making power management a critical design consideration for solar-powered vision systems [35, 36]. Albanese et al. [37] demonstrated solar-powered edge inference for insect counting in pheromone traps, but that system operated intermittently within a bounded imaging enclosure containing a handful of target objects per capture. Existing Jetson-based systems have primarily been integrated into drones or robotic platforms powered by rechargeable batteries for short, supervised field operations lasting hours to days [38, 39]. Continuous unattended monitoring, however, requires the coordinated design of solar power management, computationally efficient inference, and low-bandwidth long-range communication such as LoRa.

To address these requirements, this study developed and evaluated DefoliationCAM (D-CAM), a solar-powered edge-AI system for repeated, canopy-level assessment of insect-induced defoliation in grapevines. The main contributions of this study are threefold: (1) D-CAM was developed as a solar-powered edge-AI system that acquires and processes 4K grape-canopy images on an NVIDIA Jetson Orin Nano and transmits severity results through LoRa. The system includes a custom battery-monitoring circuit and software-based time persistence for unattended operation without a battery-backed real-time clock or network time synchronization. (2) A lightweight two-stage pipeline was developed by combining YOLOX-Nano with a 1.08 M-parameter classifier incorporating lightweight channel attention (LCA) and the Non-linear Global Defoliation Severity (NGDS) score. The complete pipeline contains fewer than 2 M parameters, and the final four-class model with synthetic minority-class augmentation achieved 83.6% accuracy and a macro F1 score of 0.838. (3) The NGDS score

Phase 1: Data acquisition

Phase 2: Model development

Phase 3: Edge deployment

Figure

Figure 1: Three-phase framework for the development and deployment of D-CAM. (1) scheduled acquisition of 4K grape-canopy images using a solar-powered field unit; (2) dataset preparation, class consolidation, minority-class augmentation, model training, and TensorRT FP16 conversion; and (3) on-device canopy localization, patch-level severity assessment, and LoRa transmission of results to a web dashboard.

and the complete monitoring system were evaluated through an independent assessment by an entomologist and a five-week field deployment. Quadratic discriminant analysis identified three management-oriented categories: no to negligible damage (NGDS i_{i} 9%), mild damage warranting continued monitoring (NGDS= 9–29%), and action-level damage requiring prompt scouting and consideration of insecticide treatment (NGDS i_{i} 29%). The 29% NGDS boundary was numerically consistent with the range of 25–30% and the practical threshold of approximately 30% for Japanese beetle management in bunch grapes, supporting the agronomic relevance of the NGDS score [3, 4].

References (42)