1. Introduction
Recent studies show that deep learning algorithms can correctly identify plant species about 90% of the time [
1]; thus far, there are proven applications of deep learning to support species identification in practical agricultural and ecological settings, namely, mobile plant identification systems like Pl@ntNet [
2] and smartphone-assisted diagnosis of crop disease [
3]. However, accuracy rates vary significantly between datasets and across application scenarios, highlighting the need to evaluate deep learning performance in specific contexts.
One application where accuracy is particularly critical is the identification of medicinal plants. Accurate identification is essential for protecting medicinal plant species, documenting traditional medicines, and providing data for the development of new pharmaceuticals.
The diversity of medicinal plants in Vietnam offers a unique opportunity to apply deep learning-based species identification. Nguyen Quoc and Truong Hoang [
4] found that deep learning architectures can achieve very good results on the identification of Vietnamese medicinal plants with an accuracy of 88.26% for Xception using the VNPlant-200 dataset [
5] consisting of 20,000 images over 200 species of plants. More recent application of Vision Transformers to VNPlant-200 has achieved over 99% accuracy on this dataset [
6], demonstrating that contemporary deep learning architectures can achieve expert-like accuracy in the classification of botanic specimens from Vietnam. However, it is important to note that these high accuracies were achieved on a comparatively small classification problem (200 species); classification difficulty increases substantially as the number of visually similar species grows, and top-1 accuracy alone becomes a less informative metric at larger scales. In such contexts, ranked candidate lists and top-
k accuracy, where classification is considered correct if the correct species appears among the first
k candidates, better reflect practical identification workflows.
Previous research identified a number of challenges in implementing deep learning models in field deployment settings, including rapidly changing environmental conditions, limited connectivity in rural areas, and restrictions in energy and computational capabilities, necessitating adaptive modelling alternatives rather than static solutions [
7]. Since training data increments continuously via crowdsourced submissions rather than as a complete dataset, trained models must be able to continue gaining knowledge without losing any previously acquired knowledge.
Such smartphone-driven, crowdsourced species identification is increasingly understood as a form of agricultural and ecological IoT sensing rather than a standalone mobile-app problem. GPS-enabled smartphones running on-device classifiers act as edge nodes in distributed sensing networks, capturing image, location, and timestamp metadata and feeding it back to centralised systems for aggregation, model retraining, and over-the-air (OTA) redistribution [
8,
9]. Framing identification systems this way makes explicit the constraints that govern their lifecycle—bandwidth, on-device memory, intermittent connectivity, and energy—and motivates a model-update strategy that respects those constraints. The remainder of this paper accordingly treats Med Herb Lens not as a single mobile app but as the edge tier of an agricultural IoT pipeline whose update cadence is set by the periodic retraining strategy under investigation. We note upfront that the cloud retraining trigger is currently invoked manually rather than by an automated event-driven trigger; the edge and gateway tiers are operationally deployed (
Section 6.3.3), and the empirical parameters identified in this study are intended to inform the operational settings of the automated trigger when it is deployed.
The challenges of deploying deep learning models in field settings require models that can adapt continuously. Continual learning—the ability to learn continuously—has thus emerged as an active research area for addressing these deployment challenges [
10]. However, a major challenge in continual learning is catastrophic forgetting, as identified by McCloskey and Cohen [
11], where a neural network rapidly forgets previously learned information when learning from new data. Thus, this has driven research into the different forms of integrating new knowledge (more plasticity) with previously learned knowledge (more stability; i.e., memory) [
12].
The most recent comprehensive surveys illustrate that there are three primary ways to mitigate catastrophic forgetting: (1) regularisation-based methods (restricting how weight updates occur); (2) replay-based methods (methods to keep examples of previous data); and (3) architecture-based methods (whereby parts of a model are given to different tasks) [
13,
14]. Van de Ven and Tolias [
15] propose a framework for categorising continual learning, identifying three scenarios: task-incremental, domain-incremental and class-incremental. This framework was subsequently established as foundational to continual learning research [
16].
Despite much progress made within the field, continual learning has not yet been fully developed for the application of large-scale fine-grained botanical classification. The majority of continual learning studies have considered learning from benchmark datasets that contain between tens and hundreds of classes [
13], whereas many plant identification application systems must identify thousands of visually similar plant species. Moreover, most contemporary work in continual learning is focused on class-incremental scenarios, where the number of classes changes over time, rather than instance-incremental scenarios, where the number of instances changes—a pattern that more closely resembles crowdsourced plant observation data collection.
Given these three broad categories and the instance-incremental setting of our study, we selected three continual learning strategies that span the spectrum of forgetting mitigation. The first, naïve fine-tuning, applies no explicit forgetting mitigation and serves as a lower-bound baseline—the model is simply updated on each new data increment using standard backpropagation. The second, experience replay, is a replay-based approach that maintains a memory buffer of randomly sampled examples from prior increments and interleaves them with new data during training [
17]. The third, Learning without Forgetting (LwF), is a regularisation-based method that uses knowledge distillation from a frozen copy of the previous model to preserve learned representations without requiring access to stored exemplars [
18]. Architecture-based methods were excluded from this comparison because they are designed primarily for task-incremental settings where new output heads are added over time, and they scale poorly to thousands of classes in an instance-incremental scenario where the class set remains fixed [
19,
20]. This selection thus allows a direct comparison between no mitigation, data-centric mitigation, and model-centric mitigation under identical periodic retraining conditions.
From a practical perspective, designers of agricultural IoT pipelines for plant identification must make key choices about how often models are retrained and redistributed, and how compute, memory, and bandwidth are budgeted across edge, gateway, and cloud tiers. Online learning approaches that update models continuously demand a constant supply of compute and connectivity. A periodic batch retraining approach—updating the model at fixed intervals (e.g., every two weeks)—offers more predictable resource usage and a cleaner mapping onto OTA update cycles, while still allowing new knowledge to enter the model promptly. The appropriate balance is determined by application requirements, the rate at which observations arrive, the connectivity profile of deployed edge devices, and the available cloud compute budget—none of which have been systematically studied for fine-grained plant identification at scale.
Motivated by the gaps above, this paper investigates one main research question:
- RQ:
How can continual learning be deployed efficiently and reliably as the model-update component of an agricultural IoT pipeline for large-scale fine-grained medicinal plant identification?
We address this through three specific sub-questions:
- RQ1:
Among continual learning strategies that span the spectrum of forgetting mitigation—naïve fine-tuning, experience replay, and Learning without Forgetting—which is most effective for instance-incremental learning at the scale of thousands of fine-grained species?
- RQ2:
How does the periodic retraining frequency (parameterised by the retraining period K) affect the trade-off between model quality and the operational costs of an IoT update pipeline (cloud compute, OTA bandwidth, per-device update energy)?
- RQ3:
What end-to-end edge–gateway–cloud architecture connects on-device inference, crowdsourced observation upload, periodic retraining, and OTA model distribution into a coherent model lifecycle under intermittent connectivity, and what practical guidelines—covering strategy selection, retraining frequency, memory budgeting, and connectivity-aware OTA scheduling—follow for adaptive learning systems in agricultural IoT settings?
Table 1 summarises how this work differs from prior studies in medicinal plant classification. While existing studies focus on static, single-round training with small to moderate species counts, our work introduces a periodic retraining framework for continual learning at a scale not previously examined in the medicinal plant literature, coupled with practical deployment as the edge tier of an agricultural IoT pipeline.
Specifically, we make the following contributions:
A periodic retraining strategy for resource-efficient continual learning (Algorithm 1): A scheduled update strategy where models retrain every K increments rather than after each data addition, quantifying the trade-off between computational savings and model performance.
A systematic investigation of catastrophic forgetting in large-scale instance-incremental learning: We evaluate naïve fine-tuning, experience replay, and Learning without Forgetting on 2719 fine-grained species—a scale and learning scenario not previously examined in the medicinal plant classification literature.
To our knowledge, the largest continual learning study of Vietnamese medicinal plants: In total, 2719 species, substantially exceeding the scale of previous studies (typically 100–300 species), with cross-seed consistency checks.
Actionable deployment recommendations for edge-deployed agricultural IoT pipelines: Concrete guidelines on strategy selection, retraining frequency, memory budgeting, and connectivity-aware OTA scheduling, informed by the Med Herb Lens Android application currently deployed on Google Play.
An end-to-end agricultural IoT model-lifecycle architecture: A three-tier edge–gateway–cloud pipeline (
Section 6.3) that connects on-device TensorFlow Lite inference, crowdsourced observation upload, periodic retraining, and OTA model distribution, mapping the periodic retraining frequency
K directly onto operational bandwidth and energy costs.
| Algorithm 1 Periodic Batch Retraining Strategy |
- Require:
Data increments , retraining period K, model
- 1:
Train on base data - 2:
Record base evaluation accuracy - 3:
for to R do - 4:
if then - 5:
Train on increment using selected strategy - 6:
Evaluate on held-out base evaluation set - 7:
Record accuracy and compute forgetting - 8:
else - 9:
Skip increment (no model update; data discarded; ) - 10:
end if - 11:
end for - 12:
return Forgetting curve
|
The remainder of this paper addresses the main RQ above as follows.
Section 2 reviews related work on continual learning, plant classification, and edge AI/IoT for ecological sensing.
Section 3 describes the dataset, the instance-incremental learning setup, the continual learning strategies evaluated, and the evaluation metrics.
Section 4 details the experimental setup and implementation.
Section 5 presents and analyses the empirical findings, addressing RQ1 and RQ2.
Section 6 interprets the results, presents the IoT system architecture and OTA model lifecycle (addressing RQ3), discusses limitations, and outlines future work.
Section 7 concludes. Together, these sections establish both the empirical basis and the practical deployment guidance for resource-efficient continual learning in agricultural IoT settings.
3. Methodology
This section describes our empirical approach to examining periodic retraining methodologies for large-scale classification of Vietnamese medicinal plants. We will discuss our dataset, define the instance-incremental learning environment, explain the continual learning methodologies assessed, and describe our evaluation methods.
3.1. Dataset Description
The dataset we used in this research was the Viet Medi Species 2026 [
38], a large-scale multilingual image dataset tailored for medicinal plants documented in Vietnamese traditional medicine. The dataset comprises 310,647 images from 4799 accepted species spanning four kingdoms (Plantae, Fungi, Chromista, and Bacteria), integrated with the Global Biodiversity Information Facility (GBIF) taxonomic backbone. To the best of our knowledge, this contains one of the largest fine-grained datasets of images of medicinal plants available for research purposes.
Table 2 positions the Viet Medi Species 2026 dataset relative to other prominent plant classification datasets, demonstrating its scale advantage.
The dataset was constructed through a systematic five-stage pipeline described in detail by Tran et al. [
38]: (i)
taxonomic normalisation of species lists from the Vietnamese Medicinal Plant Catalogue (
Danh lục cây thuóc Việt Nam) using the GBIF Species Match API; (ii)
image acquisition from GBIF’s Occurrence API, capped at 130 images per species to limit class imbalance; (iii)
Vietnamese vernacular name curation for 4031 species (84% coverage) through over 320 h of manual research and validation against authoritative sources, with regional naming variations preserved with cultural attribution; (iv)
quality control and filtering, retaining only species with at least 25 images for the experiments in this study, yielding 2719 usable classes (≥25 images each); and (v)
metadata integration following Darwin Core standards. All curation code is openly available on GitHub (release v1.1), and the complete image archive and metadata are deposited on Kaggle, enabling full reproducibility.
Beyond curation, the dataset offers an extensive increase over currently available Vietnamese plant datasets. The VNPlant-200 dataset [
5] contains 20,000 images across 200 species, while our dataset scales to 2719 usable species classes—over 13 times more classes. This scale substantially exceeds prior Vietnamese medicinal plant datasets and is comparable to recent large-scale efforts such as TCMP-300 for Chinese medicinal plants [
23], though it remains well below the diversity of PlantCLEF challenges which have addressed up to 80,000 species [
39]. Beyond benchmarking deep learning architectures, this scale also serves as a stress test for edge-deployable models: 2719 fine-grained classes pose a substantially harder learning problem than the 100–300-class settings typical of prior medicinal plant work, while the deployed model must still fit within the size, memory, and energy budget of a smartphone-class edge device.
The dataset exhibits attributes characteristic of real-world crowdsourced biodiversity collections:
Long-tail distribution: Long-tailed distributions of species frequencies; there are many pictures of common species, while there are almost none of rare species near the minimum threshold level.
High visual similarity: High similarity among visual characteristics of many species of the same genus, requiring very fine disambiguation of characteristics for these species (
Figure 1).
Intra-class variation: A wide range of image characteristics of the plants due to the differences in the growing conditions, times of day, and quality of images taken in the field shows the diversity of plant data collected in the field.
Vietnamese nomenclature: Scientific and Vietnamese common names (vernacular) for each species are displayed to promote cultural appropriateness of ecological and biodiversity applications.
Table 3 summarises the dataset characteristics used in our experiments.
3.2. Instance-Incremental Learning Scenario
We formulate the learning problem as instance-incremental learning (IIL), where the class set of classes remains fixed while new training examples arrive over time. This scenario reflects realistic crowdsourced data collection, where users contribute additional images of known species rather than discovering entirely new species.
Following the incremental learning formalisation of van de Ven et al. [
16], we define the following notation. Let
R denote the total number of increments. Each increment
provides a new batch of training data
. We partition each class’s images into:
Base training set: 20 images per class for initial model training
Increment sets: Up to 10 images per class per increment, arriving sequentially over up to 9 increments, depending on the number of images available for that class beyond the base and evaluation sets
Held-out evaluation set: 5 images per class, fixed throughout for measuring forgetting
This partitioning simulates a deployment scenario where an initial model is trained on available data, then periodically updated as new field observations accumulate. The held-out evaluation set enables consistent measurement of catastrophic forgetting across all experimental conditions. Because the dataset filter retains classes with at least 25 images, a class at the minimum threshold contributes its full 20 base and 5 evaluation images but zero increment images; classes with between 26 and 114 images contribute a proportionally truncated sequence of increments (e.g., a class with 50 images supplies the base set, the evaluation set, and approximately 2–3 increments before its image pool is exhausted). The full 9-increment schedule is therefore exercised only by classes with at least 115 images. Long-tail classes are not excluded by this scheme—they continue to contribute to the held-out evaluation set throughout—but they participate in fewer retraining events than head classes, which mirrors the data-availability profile of real crowdsourced collections.
Instead of retraining the model after each increment of data received, we propose periodic retraining, which updates the model once every K increments. At increment r where , the model trains on that increment’s data for a fixed number of epochs. Increments where are skipped—the model does not update, and the data from these skipped increments is not retained for later use. This strategy reflects practical IoT edge scenarios where devices have limited storage and can only retain the most recent data batch rather than accumulating historical increments. The approach represents a compromise between continuous online learning and infrequent batch retraining. Algorithm 1 presents the procedure.
Using increments and , this periodic retraining model will perform a total of 4–5 updates instead of 9, creating approximately 50% less training work. During skipped increments, the model weights remain frozen, resulting in zero forgetting (no performance change) until the next retraining event.
3.3. Continual Learning Strategies
We evaluate three continual learning strategies designed to address the effects of catastrophic forgetting. All strategies were chosen based upon their frequency of appearance in recent surveys [
13,
14]:
3.3.1. Naïve Fine-Tuning
In this method, the model is trained on new data from each increment using only standard cross-entropy loss functions, without any explicit efforts to mitigate catastrophic forgetting. Let
denote the training set available at increment
r, where
is an input image,
is the corresponding class label, and
is the number of samples. Let
denote the set of trainable parameters of the model
. The cross-entropy loss for a single sample
is defined as
where
is the logit vector output by the model for
C classes, and
is the logit corresponding to the true class
y. The parameters
are updated to minimise the average loss over the training set:
This baseline is critical for establishing whether sophisticated continual learning methods provide benefits over simple fine-tuning in the instance-incremental scenario.
3.3.2. Experience Replay
Experience replay maintains a memory buffer storing representative examples from previous data, following the approach established in foundational work on replay methods [
17]. During training on new increments, samples from the replay buffer are interleaved with current data. We use reservoir sampling to maintain 10 examples per class in the buffer. Let
denote the training samples from the current increment and
denote the samples stored in the replay buffer. The combined training set is
, and the parameters
are updated to minimise
3.3.3. Learning Without Forgetting (LwF)
LwF employs knowledge distillation [
41] to preserve the model’s predictions on new data from before the update, following Li and Hoiem [
18]. A frozen copy of the model with parameters
(the teacher) provides soft targets that regularise the updated model with parameters
(the student). Let
denote the training set at increment
r. The combined loss function is
where
controls the balance between new learning and knowledge retention (set to 0.7 in our experiments). The knowledge distillation loss
is defined using temperature-scaled softmax outputs. Let
and
denote the logit vectors produced by the student and teacher models, respectively. The temperature-scaled softmax function
with temperature
T is
where the subscript
j denotes the
j-th element of the resulting probability vector. The knowledge distillation loss is then the Kullback–Leibler (KL) divergence between the teacher’s and student’s temperature-scaled outputs:
The factor
compensates for the reduced magnitude of gradients when using temperature scaling. Temperature
T controls the smoothness of the predicted probability distributions: higher values produce softer targets that encode more information about inter-class similarities, while
reduces to standard cross-entropy. We set
following the recommendation of Hinton et al. [
41], which has been shown empirically to balance informative soft targets with training stability across diverse classification tasks. The teacher network is refreshed after each retraining step to serve as the reference for the next update.
3.4. Evaluation Metrics
We employ metrics focused on quantifying catastrophic forgetting in our instance-incremental learning setting. Let
denote the top-1 accuracy evaluated on the held-out base evaluation set after training on increment
r. We use top-1 accuracy here (rather than the top-10 metric reported for the full-data baseline in
Section 5.6) because forgetting is most clearly observed when the model’s single highest-confidence prediction changes; top-1 is also the standard metric in the continual learning literature on which our experimental design is based [
16,
32]. Specifically,
represents the base accuracy after initial training on
(the base training set), and
for
represents the accuracy after retraining on increment
. Under periodic retraining with period
K,
is only updated when
; at other increments,
(i.e., the model is not retrained and performance remains unchanged).
Base evaluation accuracy. After each retraining step, we evaluate accuracy on the fixed held-out base evaluation set (5 images per class). This quantifies how well a model retains its ability to perform on the original data distribution after it has been updated.
Forgetting. Forgetting
at increment
r is defined as the decrease in base evaluation accuracy relative to the initial baseline:
where
is the base accuracy (after initial training on
) and
is the accuracy at increment
r. Positive values of
indicate forgetting (i.e., degradation of performance) while negative values indicate improvement. We report both
mean forgetting (averaged across all increments) and
final forgetting (after the last increment
R).
Computational efficiency. We measure wall-clock training time to characterise the computational requirements of each strategy. Combined with the periodic retraining framework (parameterised by K), this enables analysis of efficiency–performance trade-offs.
4. Experimental Setup
MobileNetV2 is chosen for continual learning because its compact architecture is well suited to edge deployment in agricultural IoT settings. The model has ImageNet pre-trained weights with the final fully connected layer replaced with a classifier that defines all 2719 species classes.
The images are resized to be 224 × 224 pixels and normalised based on the ImageNet statistics. We apply light data augmentation during training, consisting of random horizontal flips and minor colour jitter to improve generalisation.
Table 4 summarises the training hyperparameters.
Our experiments evaluate periodic retraining with , where the model is retrained every 2nd increment. With 9 total increments, results in 4–5 retraining operations, representing approximately 50% reduction compared to retraining after every increment. The evaluation of each method (naïve, replay and LwF) was done under the same conditions to ensure fair comparison between methods. To validate the reliability of our results, we performed experiments with three random seeds (42, 123 and 456). Experiments were conducted on NVIDIA P100 GPU hardware through Kaggle’s computing platform, and training times are reported as wall-clock seconds to enable reproducibility assessment.
The base-training and incremental epoch counts (8 and 3, respectively) were selected on the basis of early-stopping convergence patterns: with patience of 2 epochs monitored on validation loss, base training consistently halted at or before 8 epochs, and incremental updates at or before 3 epochs, beyond which validation loss plateaued or representation drift began to degrade retained-class accuracy. These deliberately short schedules also reflect the operational requirement of rapid cloud-retraining turnaround in the target IoT pipeline. To verify that the short base schedule does not itself drive the reported findings, we additionally trained a base model to convergence (up to 40 epochs, early-stopped on training loss) as a control; this experiment is reported in
Section 5.4. All runs in this revision use mixed-precision (FP16) training, which reduced peak GPU memory sufficiently to (i) measure the
baseline directly rather than estimating it (
Section 5.3) and (ii) log peak GPU memory and estimated training FLOPs for every configuration.
5. Results
5.1. Overall Performance Comparison
Table 5 presents the main experimental results comparing the three continual learning strategies under periodic retraining with
. Note that absolute accuracy in the constrained incremental setting is not directly comparable to full-data training; our focus is on relative forgetting between strategies under identical conditions. Negative forgetting values indicate performance
improvement over training, rather than degradation.
Table 6 shows the detailed results for each random seed, demonstrating consistency across experimental runs.
Several notable findings emerge from these results:
All strategies show negative forgetting (improvement): Contrary to conventional expectations of catastrophic forgetting, all three strategies demonstrate performance improvement over incremental training. Naïve fine-tuning and LwF show similar strong improvements (final forgetting of −10.13% and −10.09% respectively), while replay shows smaller gains (−3.96%). This counterintuitive result suggests that in the instance-incremental learning scenario with fixed classes, new training data reinforces rather than contradicts existing knowledge.
Replay shows the smallest improvement: Experience replay, despite explicitly storing and rehearsing previous examples, shows the smallest performance gains (−3.96% vs. ∼−10% for naïve and LwF). This may be attributed to the limited buffer size (10 samples per class), introducing noise rather than useful regularisation when the fundamental learning dynamic is already positive.
All strategies share a common starting point: Because the three strategies branch from an identical base checkpoint within each seed, base accuracy is common per seed (6.08%, 10.24% and 5.63% for seeds 42, 123 and 456). This is a methodological refinement over the previous submission and isolates the effect of each strategy from base-training variance; the differences between strategies are therefore attributable solely to their incremental-update dynamics.
Computational costs vary: Replay is fastest (1023 s) due to not requiring teacher model forward passes. LwF is slowest (1413 s) due to dual forward passes for distillation. Naïve falls in between (1166 s).
Statistical significance across seeds: To quantify variability across the three seeds, we computed Student’s
t 95% confidence intervals (
) for final forgetting from the per-seed values in
Table 6. All three intervals exclude zero—naïve
(SD
), 95% CI
; replay
(SD
), 95% CI
; and LwF
(SD
), 95% CI
—indicating that the negative-forgetting effect is statistically significant despite the small sample. The naïve and replay intervals do not overlap, further supporting the observed ordering of strategies, whereas the wide LwF interval overlaps that of naïve, consistent with the two being comparable. We note that with only three seeds these intervals are necessarily wide and rest on an approximate-normality assumption that cannot be verified at
; we therefore treat them as indicative rather than as precise variance estimates, and regard the consistency of both the direction and the ordering across seeds (and across the
and converged-base control runs) as the stronger evidence.
5.2. Forgetting Curves
Figure 2 shows the evolution of forgetting across incremental updates for each strategy. The staircase pattern visible in the chart reflects the periodic retraining schedule, where model updates occur only at every
K-th increment.
Key observations from the dynamics of forgetting:
Consistent improvement across increments: All of the strategies provided more and more negative values as we moved through the increments of the training process. This shows that through instance-incremental learning (with fixed classes), the model can continually enhance representation.
Naïve and LwF show the strongest improvement trajectories: Both Naïve fine-tuning and LwF have provided the steepest improvements across the increments (−10% by the last increment). Both of these approaches leverage data in a continuous fashion. Naïve does benefit from working with an unconstrained adaptation on samples, while LwF does benefit from the use of regularisation.
Plateau periods between updates: There are flat periods between increments where no retraining takes place. The flat areas between odd and even increments confirm the fact that changes to the performance are due to whether the model was updated.
Forgetting magnitude depends on training amount, not skip duration: An important observation is that different retraining frequencies show similar forgetting magnitudes after their respective first retraining events. For instance, at and at both exhibit approximately −4% forgetting despite skipping training across more increments. This occurs because our periodic retraining strategy trains only on the current increment’s data at each retraining event, not on accumulated data from skipped increments. Thus, both at and at train on a single increment, yielding comparable model updates. The key differentiation lies in computational efficiency: achieves 80% training cost reduction by skipping four increments, while achieves 50% reduction by skipping one increment. This design reflects IoT edge constraints where devices have limited storage and process only the most recent data batch rather than accumulating historical increments.
5.3. Computational Efficiency Analysis
Table 7 compares the computational efficiency of periodic retraining against the directly measured
baseline of retraining after every increment.
The periodic retraining strategy achieves substantial efficiency gains. With , the number of retraining operations is reduced from nine to four (∼50%), and the directly measured naïve wall-clock runtime falls from 3379 s () to 1149 s—a 66% reduction that exceeds the operation-count reduction because per-update cost is broadly similar across increments. At , a single retraining event yields a 77% runtime reduction (774 s). Estimated training FLOPs fall correspondingly (→→ for ). Peak GPU memory does not decrease monotonically with K, as it is governed by the per-event batch and buffer footprint rather than the number of events; the ∼4.8 GB peaks for naïve / remain well within the 16 GB budget under mixed precision. This compute reduction is beneficial for field deployments where the availability of computing resources is restricted and scheduling changes to existing models must accommodate other operational requirements.
5.4. Converged-Base Control
A central question is whether the observed negative forgetting is an intrinsic property of the instance-incremental scenario or an artefact of an undertrained base model that simply has room to improve on any additional data. To disentangle these, we trained the base model to convergence (up to 40 epochs, early-stopped on training loss), raising base accuracy from (8-epoch base, seed 42) to , and then ran the identical increment schedule. If negative forgetting were purely a subconvergence carryover effect, it should vanish once the base is converged.
As shown in
Table 8 and
Figure 3, negative forgetting persists across all three strategies after the base is trained to convergence. The effect attenuates—most notably for LwF, roughly halving—which shows that part of the improvement under the eight-epoch base does reflect continued convergence on a data-starved model. However, the effect does not disappear: final forgetting remains clearly negative (e.g., naïve −7.41%, and −11.84% at
), demonstrating that instance-incremental reinforcement of existing decision boundaries is a genuine contributor and not merely an initialisation artefact. Both mechanisms therefore operate, with the intrinsic instance-incremental effect dominating for naïve and replay. This control directly addresses the concern that the headline finding might be an artefact of the short base schedule.
5.5. Cumulative-Increment Ablation
We further evaluated a cumulative variant in which, at each retraining event (), the model trains on all increments accumulated since the previous event rather than on the current increment alone. Under (seed 42), cumulative retraining deepens the improvement—naïve final forgetting moves from −10.66% to −15.88% and LwF from −11.64% to −16.64%—because each event sees roughly twice the data. However, this comes at a disproportionate cost: naïve runtime rises from 1149 s to 3083 s (∼2.7×) and LwF from 1399 s to 2188 s, and the cumulative buffer increases edge storage and OTA-staging requirements proportionally to K. Replay is largely unaffected (−3.67% to −3.88%), as it already rehearses historical exemplars. Because the single-increment strategy attains most of the benefit at a fraction of the compute, memory, and bandwidth cost, we retain it as the edge-appropriate default while noting the cumulative variant as an option where retained-class accuracy is paramount and resources permit.
5.6. Baseline Model Performance
To contextualise the continual learning results and demonstrate practical deployment viability, we trained a baseline MobileNetV2 model on the full dataset without incremental constraints [
42]. MobileNetV2 is used consistently across all experiments to ensure fair comparison between continual learning strategies and the baseline.
Table 9 presents the test set performance.
The accuracy of the baseline is much greater than that of the continual learning experiments (26.68% versus 7–10% for top-1) due to differences between training on full data versus conducting instance-incremental training. It is important to contextualise these absolute accuracy values against the scale of the classification task. Prior Vietnamese plant studies report 88–99% accuracy on VNPlant-200 [
4,
6], but that dataset contains only 200 species. Our task spans 2719 fine-grained species—over 13 times more classes—where many species within the same genus share highly similar visual features. At this scale, the random-chance baseline is approximately 0.037% (1/2719), meaning the 26.68% top-1 accuracy represents a 720-fold improvement over random guessing.
Moreover, for large-scale species identification, top-
k accuracy is the more operationally relevant metric because practical identification workflows present users with a ranked shortlist of candidate species rather than a single prediction. This ranked candidate paradigm is well established in large-scale plant identification systems such as Pl@ntNet [
2] and the PlantCLEF evaluation campaigns [
39], where mean reciprocal rank and top-
k retrieval metrics are standard. Our model’s 54.07% top-10 accuracy means that the correct species appears in the candidate list more than half the time, providing substantial practical value for field users who can apply their own domain knowledge to select from the shortlist. This baseline has been successfully implemented to provide identification of Vietnamese medicinal plants within the Med Herb Lens Android app.
7. Conclusions
This study addressed how continual learning can be deployed efficiently and reliably as the model-update component of an agricultural IoT pipeline for large-scale fine-grained medicinal plant identification. Through systematic experiments on a dataset of 2719 species, with cross-seed consistency checks and multiple retraining frequencies, we compared naïve fine-tuning, experience replay, and Learning without Forgetting under a periodic retraining strategy designed for computational efficiency, and situated the findings within an end-to-end edge–gateway–cloud architecture for crowdsourced agricultural IoT.
Our key findings indicate that instance-incremental learning exhibits negative forgetting (performance improvement over time) rather than catastrophic forgetting, with naïve fine-tuning and LwF showing the strongest improvement trajectories (final forgetting of approximately −10%). This result suggests that explicit forgetting mitigation techniques may be unnecessary when new data reinforces existing class representations, although the limited initial training data (20 images per class) may also contribute to the observed improvement pattern.
Furthermore, we demonstrated that periodic retraining with
reduces the number of retraining operations by approximately 50% while maintaining competitive performance. In an agricultural IoT model-lifecycle setting, this compute reduction translates directly into proportionally smaller cloud GPU usage, OTA bandwidth, and per-device update energy. A baseline MobileNetV2 model trained on the full dataset achieves 54.07% top-10 accuracy across 2719 species—meaning the correct species appears in the ranked candidate list more than half the time—with a corresponding top-1 accuracy of 26.68% (a 720-fold improvement over random chance at this scale), demonstrating practical viability for edge deployment through ranked candidate identification. This baseline has been successfully deployed via TensorFlow Lite (FP16, ∼11.5 MB) in the Med Herb Lens Android application, which we describe as the edge tier of a three-tier edge–gateway–cloud IoT architecture (
Section 6.3); the cloud tier of this architecture is where the periodic retraining strategy investigated here operates.
By addressing the challenges of scalable continual learning in fine-grained plant classification within a deployable IoT pipeline, this work contributes both methodological understanding and actionable deployment guidance—including concrete recommendations on strategy selection, retraining frequency, memory budgeting, and connectivity-aware OTA scheduling—for adaptive machine learning systems in agricultural and field IoT settings. Future work will extend these approaches to class-incremental scenarios where catastrophic forgetting is expected to be more pronounced, to federated continual learning configurations that better suit privacy- and bandwidth-constrained edge deployments, and to multi-modal plant identification systems.