1. Introduction
The agricultural sector plays a crucial role in ensuring global food security. However, losses caused by harmful insects and diseases affect 20% to 40% of global agricultural production [
1]. This situation threatens food supply and leads to significant economic losses. Pest management is a fundamental component of agricultural production protection; however, it is a high-cost process that often results in millions of dollars in economic damage. Effective pest control requires proper pesticide application; however, accurate identification of pest species demands a high level of expertise. Traditional methods rely on detailed morphological analyses conducted by expert entomologists, which are time-consuming and expensive. Consequently, there is an increasing need for faster and automated insect detection systems. Additionally, excessive use of chemical pesticides can cause environmental harm by disrupting the ecological balance [
2]. Therefore, early and accurate identification of agricultural pests is crucial for pest control and ensuring food security. However, distinguishing morphologically similar species and tracking structural changes across developmental stages requires taxonomic expertise, which automated systems have historically struggled to replicate. Accurate identification of pest species requires expertise in taxonomy and morphological terminology, and small structural differences among species further complicate manual pest classification, leading to incorrect or excessive pesticide use with both economic and environmental consequences.
To address these challenges, computer vision techniques have been increasingly adopted for automated insect classification, reducing the need for expert intervention and accelerating the identification process [
3]. In particular, Convolutional Neural Networks (CNNs) and their variants have revolutionized insect detection and classification, delivering faster, more accurate results than traditional morphological analysis methods [
4]. Building on these foundations, subsequent studies have explored approaches ranging from handcrafted feature extractors to end-to-end detection frameworks, as comprehensively documented by [
5]. Attention-enhanced real-time detection systems incorporating sophisticated attention modules have further extended this trajectory, demonstrating strong performance on challenging agricultural benchmarks [
6]. Despite the considerable progress achieved, these approaches predominantly focus on architectural design. As Popescu et al. [
7] noted, the optimization strategy underlying these networks has received comparatively little attention across the field. Peng & Wang [
8] similarly observe that even hybrid CNN-transformer architectures continue to rely on standard gradient descent without modification. This pattern persists in state-of-the-art detection frameworks, as noted by Chithambarathanu & Jeyakumar [
9]. Therefore, the optimization strategy used to train these networks represents a significant but underexplored dimension of model development.
Two structural reasons help explain why optimization strategies have received comparatively little attention in this body of work. Architectural advances yield immediately measurable gains in accuracy with a fixed optimizer. They are easier to present as discrete contributions, whereas optimization improvements typically produce smaller per-paper gains and require controlled cross-architecture validation to be credible. The present study is situated along this underexplored axis of optimization.
Standard gradient descent and its first-order variants are the dominant optimization methods in deep learning. Although effective in many settings, these methods share a fundamental limitation: each parameter update relies exclusively on the current gradient, with no mechanism to retain or exploit information from past gradients [
10]. In the context of agricultural pest classification, where datasets such as IP102 exhibit a highly imbalanced long-tailed distribution across 102 species, this stateless update behavior can impair convergence on underrepresented classes and reduce generalization under variable real-world imaging conditions [
11]. Addressing this limitation at the optimization level, without relying on architectural modifications or data augmentation, is an underexplored direction that could complement any existing CNN-based pipeline.
Fractional calculus offers a principled framework for incorporating gradient memory into neural network training. Unlike standard integer-order derivatives, fractional-order derivatives incorporate weighted contributions from past function evaluations, thereby enabling the gradient update to balance recent and historical information adaptively [
12,
13]. Aggarwal et al. established convergence guarantees for an AT-CFGD variant of fractional gradient descent under L-smoothness and bounded-gradient assumptions, proving linear rates for smooth and strongly convex functions and O(1/T) rates for Hölder-smooth non-convex functions; the theoretical rates match those of standard gradient descent, while empirical evidence suggests that fractional methods can outperform gradient descent in practice under well-chosen hyperparameters [
14]. Motivated by this empirical evidence and to address the limited theoretical and experimental scope of existing fractional methods, the present study extends the Grünwald–Letnikov (GL) fractional derivative to the continuous range of −1 < α < 1 and integrates it into the backpropagation process of three CNN architectures evaluated on the IP102 benchmark dataset. Critically, unlike prior fractional gradient descent studies that employ a fixed positive fractional order, the proposed method dynamically tunes α via Bayesian optimization throughout training, enabling each architecture to adaptively balance the exploitation of gradient memory against the exploration of new gradients. This investigation is organized around three testable hypotheses. H1 (Memory contribution): Incorporating gradient memory through the Grünwald–Letnikov fractional operator yields a statistically significant test-accuracy improvement over standard SGD on the long-tailed IP102 benchmark. H2 (Adaptive superiority): A Bayesian-tuned α outperforms a fixed-α baseline. H3 (Architectural generality): The improvement is consistent across CNN backbones of distinct design families, namely DenseNet, ResNet, and EfficientNet. Each hypothesis is paired with a dedicated test in
Section 4: H1 with sample-paired McNemar tests and bootstrap accuracy intervals, H2 with the fixed-α ablation contrast and H3 with per-backbone McNemar tests and a Wilcoxon signed-rank test on per-class F1 scores. The main contributions of this study are as follows:
The GL fractional derivative formulation was extended to the continuous range −1 < α < 1, enabling the model to capture both derivative-like and integral-like gradient dynamics within a single unified framework.
A Bayesian optimization loop is embedded within the training process to dynamically select the optimal fractional order α at regular training intervals, eliminating the need for manual order selection and enabling architecture-specific adaptations.
Fractional gradient backpropagation was implemented across all trainable layer types, namely the fully connected, batch normalization, and convolutional layers, providing comprehensive coverage of the network parameter space.
Grad-CAM visualizations were employed to provide qualitative evidence that the performance gains reflect genuine improvements in discriminative feature learning rather than dataset-specific fitting.
Comprehensive experiments on the IP102 benchmark demonstrate consistent accuracy improvements over standard gradient descent across three backbone architectures and two initialization strategies.
The remainder of this paper is organized as follows:
Section 2 reviews related work on deep learning for pest classification, gradient-based optimization, and fractional calculus in machine learning;
Section 3 describes the preliminary concepts, the IP102 dataset, the proposed fractional gradient method, and the experimental setup;
Section 4 presents the experimental results;
Section 5 provides discussion and analysis; and
Section 6 concludes the paper.
4. Results
The proposed method was evaluated in both untrained and ImageNet-pretrained settings.
Figure 7 illustrates the training and validation accuracies for different fractional orders (α = −0.98, −0.5, −0.1, 0.1, 0.5, 0.98) and the Bayesian-optimized α using DenseNet121 with ImageNet pretraining.
Table 1 reports the top-1 classification accuracy of untrained ResNet101, DenseNet121, and EfficientNetB0 models on the IP102 dataset, using standard gradient descent and the proposed GL-based fractional gradient backpropagation.
Table 2 presents the top-1 classification accuracy of ImageNet pre-trained models evaluated under the same conditions.
Figure 8 demonstrates the performance of all three ImageNet pre-trained models across varying fractional derivative orders without
normalization or Bayesian optimization. Different alpha values consistently achieved improved classification performance compared to standard gradient descent, supporting the hypothesis that gradient flow control through fractional-order derivatives represents a more consistent optimization strategy.
On the IP102 dataset, untrained networks using fractional gradient backpropagation showed measurable improvements over their standard gradient counterparts. Absolute test accuracy increased from 35.75% to 56.48% for DenseNet121 (an absolute gain of 20.73 percentage points), from 33.03% to 44.54% for ResNet101 (11.51-pp absolute gain), and from 35.32% to 46.33% for EfficientNetB0 (11.01-pp absolute gain). We note that while these absolute gains are substantial, the absolute accuracy levels in the untrained configuration remain modest and not deployment-ready; the untrained results are reported only to isolate the contribution of the fractional gradient mechanism in the absence of pre-trained feature transfer.
For the ImageNet pre-trained models, the fractional gradient DenseNet121 reached 70.81% test accuracy (an absolute improvement of 6.69 percentage points over the 64.12% standard gradient baseline, 10.43% relative), ResNet101 reached 69.89% (a 7.39-pp absolute gain, 11.82% relative), and EfficientNetB0 reached 70.16% (a 3.76-pp absolute gain, 5.66% relative). These absolute gains are moderate; we emphasize that they are achieved with no architectural modification, no additional data augmentation, and no learning-rate scheduling, isolating the contribution of the optimization mechanism alone. The final performance gains were obtained with the alpha values that yielded the lowest validation loss in the Bayesian optimizer: α = −0.87 for DenseNet121, α = −0.90 for ResNet101, and α = 0.98 for EfficientNetB0.
Figure 9 shows training and validation loss for different alpha values and for the Bayesian-optimized alpha, using DenseNet121 with ImageNet pre-training.
Table 3 presents a detailed performance comparison of standard gradient models trained for 100 epochs and fractional gradient models trained for 50 epochs, covering DenseNet121, EfficientNetB0, and ResNet101 with ImageNet pre-training and reporting accuracy, F1, precision, recall, and training time on the IP102 dataset.
As shown in
Table 3, the fractional-gradient variant consistently outperforms its standard-gradient counterpart across all three architectures. DenseNet121 achieves a 10.43% relative improvement in accuracy (70.81% vs. 64.12%), with superior F1 (0.6376 vs. 0.5282), precision (0.6522 vs. 0.5808), and recall (0.6293 vs. 0.5301). ResNet101 yields the highest relative gain of 11.82% (69.89% vs. 62.50%), accompanied by improvements in F1 (0.6243 vs. 0.5278), precision (0.6364 vs. 0.5973), and recall (0.6166 vs. 0.5121). EfficientNetB0 demonstrates a more modest improvement of 5.66% (70.16% vs. 66.40%), with gains in F1 (0.6120 vs. 0.5992) and recall (0.6044 vs. 0.5859) across all 102 pest classes. These performance gains are accompanied by increased training times, with fractional optimization requiring approximately 1.2, 1.05, and 1.16 times as much training time for DenseNet121, EfficientNetB0, and ResNet101, respectively, due to Bayesian optimization overhead and gradient history maintenance. To further assess the stability of the proposed method,
Table 4 reports the top-1 classification accuracy across three independent training runs for all fractional-gradient configurations. Standard deviations of ±0.10%, ±0.33%, and ±0.11% for DenseNet121, ResNet101, and EfficientNetB0 confirm that the observed gains are consistent across runs. The corresponding 95% confidence intervals, computed via t-distribution (df = 2), are [70.47, 70.97], [68.76, 70.40], and [69.78, 70.32] for DenseNet121, ResNet101, and EfficientNetB0, respectively. Notably, the lower bound of each interval exceeds the corresponding standard gradient baseline reported in
Table 2, confirming that the performance gains are statistically robust and not attributable to a single favorable run.
To address the reviewers’ requests from three orthogonal angles, 10 additional experiments were conducted on DenseNet121 with ImageNet pre-training under a unified 50-epoch budget. The results are organized into three tables, each answering a single research question.
Table 5 addresses fairness across optimizer families by comparing the proposed method against standard SGD with momentum, Adam, and AdamW under an identical training budget.
Table 6 isolates the contribution of each internal mechanism through component-wise ablations of
normalization and Bayesian-α tuning.
Table 7 characterizes hyperparameter sensitivity and the computational footprint as a function of the gradient-memory length, α initialization, and α search range. The configuration that serves as the reference point across all three tables is the M = 10 baseline; its values correspond to Run 3 of the three-run reproducibility analysis already reported in
Table 4.
The first question is whether the observed advantage of the proposed method is attributable to the fractional mechanism itself rather than to differences in epoch budget or to the choice of base-optimizer family.
Table 5 compares four runs trained under the same 50-epoch budget, each using the canonical default hyperparameters of the corresponding optimizer.
Under an identical 50-epoch budget on the same DenseNet121 backbone, the proposed method exceeds the standard SGD-momentum baseline by 10.08 percentage points (70.81% vs. 60.73%); Adam and AdamW at their canonical learning rate of 0.001 reach 57.62% and 56.47% respectively, falling 13.19 and 14.34 percentage points behind. To rule out that this gap is an artifact of differing learning-rate choices, Adam and AdamW were additionally run at the matched learning rate of 0.004 used by the fractional baseline. Both degraded substantially to 45.07% and 45.94%, respectively, because the effective step size of adaptive-moment optimizers is approximately LR · sign(gradient), placing LR = 0.004 well above the stable range characteristic of Adam-family optimizers; the same learning rate supports the fractional baseline at its highest accuracy. The proposed method, therefore, does not benefit from a favorable learning-rate choice: at the canonical Adam/AdamW LR, the fractional method is ahead by 13–14 percentage points, and at the matched LR, it is ahead by 25–26 percentage points. The training-time column further confirms that the proposed method is more expensive than its non-fractional counterparts; this overhead is analyzed in
Table 7.
The second question concerns the method’s internal anatomy: how much of the advantage is attributable to the dynamic Bayesian-α loop and how much to the
normalization?
Table 6 reports two single-component ablations, each disabling exactly one mechanism while holding all other settings at the baseline.
Disabling Bayesian-α and holding α fixed at −0.5 throughout training drops test accuracy by 5.20 percentage points, identifying the dynamic α-tuning loop as the dominant mechanism: a static fractional order, even one chosen from the negative-α memory regime, captures only a fraction of the available gain.
Disabling normalization produces a more nuanced result. With normalization active, the baseline configuration settles in the negative-α memory regime, with the Bayesian optimizer selecting α = −0.8769, that is, a regime where the gradient memory contribution is substantial and the attenuation is essential for stability. The initial expectation was therefore that removing would destabilize training through gradient inflation in this regime, since gradient magnitudes during memory-exploitation phases should inflate and convergence should degrade. The observed test accuracy of 70.85% (+0.04 percentage points relative to the baseline) instead reveals a self-correcting behavior. Rather than tolerating the gradient inflation, the Bayesian optimizer responds to the absent normalization by jumping across the search space, from α = −0.8769 to α = +0.9900, that is, from the deep negative-α memory regime to the deep positive-α regime where Γ(α + 1) ≈ 1 and is effectively neutral. The system relocates entirely to the opposite end of the range, avoiding the regime in which the absent normalization would matter rather than tolerating it. This regime escape is direct evidence that the Bayesian-α component is not merely performing hyperparameter search but is implicitly acting as a stability controller: it locates safe operating regions of the loss landscape and is willing to forfeit the negative-α memory dynamics when the corresponding stabilization mechanism is unavailable.
The third question is whether the method is robust to its own hyperparameters and what computational footprint it incurs as a function of the principal cost driver, the gradient-memory length
M.
Table 7 reports a sensitivity sweep along three dimensions, the memory length (
M ∈ {5, 10, 20}), the α initialization, and the α search range, together with the GPU-side complexity metrics.
Three observations follow from
Table 7. First, test accuracy is essentially flat across
M ∈ {5, 10, 20} (range 0.16 percentage points), while the gradient-buffer memory and the fractional FLOPs scale linearly with
M (134.6 → 269.3 → 538.5 MB and 0.212 → 0.424 → 0.847 GFLOPs/step).
M = 10 is therefore on the accuracy plateau and is the most economical operating point that still satisfies
M ≤ 12, the Bayesian-invocation interval. Second, the method is robust to α_init: shifting the initialization from −0.1 to +0.5 costs only 0.21 percentage points, since the Bayesian optimizer recovers a comparable operating point from either starting value. Third, the method is moderately sensitive to range restriction: narrowing the range to [−0.5, 0.5] drops accuracy by 0.71 percentage points, because the restriction cuts off the high-magnitude α values (|α| > 0.78) that the Bayesian optimizer prefers in the asymptotic phase. The trainable-parameter count is identical for all variants (7,058,406), confirming that the proposed method introduces no learnable parameters into the backbone; the entire cost is paid at runtime in the gradient-history buffer and the inner-loop Bayesian evaluations.
A consistent pattern emerges when the final α values across
Table 6 and
Table 7 are read jointly. The Bayesian optimizer maintains the warm-up direction in three configurations (the
M = 10 baseline,
M = 20, and α
0 = +0.5), but escapes to the opposite sign in two: when the memory budget is reduced to
M = 5 (warm-up at −0.1, final α = +0.9879) and when
normalization is removed (warm-up at −0.1, final α = +0.9900). Both escape events land at α ≈ +0.99, where Γ(α + 1) ≈ 1 and the fractional update reduces to a near-derivative-like step. The pattern is consistent with the Bayesian-α loop relocating the operating point away from configurations where the warm-up direction is not supported, either by an insufficient memory budget or by the absence of the
stabilization. Full characterization across multiple seeds and architectures is left to future work.
Table 8 presents a comparative analysis of the proposed method against existing studies on the IP102 dataset.
The accuracy of 70.81% reported for the proposed method corresponds to the best single run from the
M = 10 baseline configuration. The mean over three independent runs is 70.72 ± 0.10% with 95% confidence interval [70.47, 70.97]; the full reproducibility analysis is provided in
Table 4. The lower bound of the 95% confidence interval (70.47%) exceeds Yang et al.’s reported 70.42%, confirming that the comparative position is statistically robust rather than the result of a single favorable run.
To formally evaluate the three hypotheses stated in
Section 1, three complementary statistical analyses were conducted on the held-out IP102 test set of 22,619 images: a sample-paired McNemar test, a bootstrap accuracy confidence interval with 10,000 resamples, and a Wilcoxon signed-rank test on the 102 per-class F1 scores. All tests were computed directly on the per-sample predictions of the three backbones, so that significance is assessed at the level of individual test instances rather than aggregate accuracy. Nine statistical tests are reported in total: three McNemar tests for H1, three for H2 across the backbones, and three Wilcoxon per-class tests for H3. A Bonferroni correction is therefore applied throughout, with corrected significance threshold α = 0.05/9 ≈ 0.0056. Every comparison reported below remains significant after this correction. The per-sample predictions used for these tests were taken from a single representative training run of each backbone (test accuracy 70.45%, 70.10%, and 69.92% for DenseNet121, ResNet101, and EfficientNetB0, respectively), and lie within or marginally below the three-run 95% confidence intervals reported in
Table 4. The McNemar and Wilcoxon outcomes reported below are insensitive to such small run-to-run variation.
Hypotheses H1 (memory contribution) and H3 (architectural generality) are evaluated through sample-paired McNemar tests comparing the proposed fractional method (model A) against the fair-budget standard SGD baseline (model B, 50 epochs) on each backbone. The McNemar statistic is computed on the 2 × 2 contingency table of paired correct/incorrect decisions, with continuity correction. For DenseNet121, the fractional method correctly classifies 3025 test samples that the SGD baseline misclassifies, while the reverse occurs for only 1140 samples, yielding χ
2 = 852.2 (
p = 2.4 × 10
−187). The corresponding contrasts for ResNet101 (χ
2 = 1075.2,
p = 7.9 × 10
−236) and EfficientNetB0 (χ
2 = 153.2,
p = 3.4 × 10
−35) are likewise overwhelmingly significant. Because the same pattern holds across all three architecturally distinct backbones, H1 and H3 are jointly supported: the advantage of the fractional method is statistically significant and not confined to a single architecture.
Figure 10 shows the full paired contingency matrices for the H1 (fractional vs. SGD-fair) and H2 (Bayesian-α vs. fixed-α) comparisons across the three backbones.
To characterize the uncertainty of each operating point at the level of individual test samples, 95% confidence intervals were obtained by bootstrap resampling of the test set (10,000 resamples) for both accuracy and macro F1. For the DenseNet121 fractional baseline the accuracy interval is [69.87, 71.06] % and the macro-F1 interval is [0.6177, 0.6351]; the intervals for ResNet101 ([69.50, 70.70] %) and EfficientNetB0 ([69.33, 70.52] %) are similarly narrow. Crucially, the bootstrap intervals of the fractional configurations do not overlap with those of the corresponding fixed-α and standard-SGD baselines on any backbone, providing per-sample-level statistical separation that complements the run-level reproducibility analysis in
Table 4.
Figure 11 presents these intervals as a forest plot.
Architectural generality (H3) is further examined at the class level through a Wilcoxon signed-rank test on the 102 paired per-class F1 scores of the fractional method versus standard SGD. For DenseNet121 the fractional method achieves a higher F1 on 99 of 102 classes (median F1 0.6211 vs. 0.5374; W = 18.0,
p = 3.1 × 10
−18); for ResNet101 it wins on 100 of 102 classes (W = 2.0,
p = 2.8 × 10
−18); and for EfficientNetB0 it wins on 89 of 102 classes (W = 329.0,
p = 1.7 × 10
−14). The improvement is therefore distributed across the overwhelming majority of pest categories rather than concentrated in a few well-represented classes, which is the behavior expected of an optimization-level intervention that benefits long-tailed classes.
Figure 12 shows the per-class F1 scatter, and
Figure 13 the row-normalized confusion matrices of the three fractional baselines.
Beyond discrimination performance, the reliability of the predicted confidences was assessed through top-1 calibration analysis. Reliability diagrams were constructed by partitioning the test predictions into fifteen equal-width confidence bins and comparing the mean predicted confidence against the observed accuracy within each bin; the expected calibration error (ECE) was computed as the sample-weighted mean absolute gap between confidence and accuracy across bins. As shown in
Figure 14, the AFGD baselines are moderately well calibrated, with ECE values of 0.0972, 0.1515, and 0.0783 for DenseNet121, ResNet101, and EfficientNetB0, respectively. All three models exhibit the mild overconfidence that is typical of modern CNN classifiers, with the observed-accuracy bars lying below the diagonal at high confidence; DenseNet121 and EfficientNetB0 are the best calibrated, whereas ResNet101 shows the largest deviation. These ECE values are reported as a complementary reliability measure and indicate that the accuracy gains documented above are not obtained at the expense of severely miscalibrated confidence estimates.
Table 9 summarizes the three families of tests. Across all backbones, both H1 (fractional vs. standard SGD) and H2 (Bayesian-α vs. fixed-α) contrasts are significant well beyond the Bonferroni-corrected threshold, and the per-class Wilcoxon test confirms that the gains generalize across the class distribution. Taken together, these results provide formal statistical support for the conclusion that the reported improvements reflect a stable effect of the proposed optimization mechanism rather than the product of a single favorable run.
The interpretability of both the standard and fractional DenseNet121 models was assessed through Gradient-weighted Class Activation Mapping (Grad-CAM) visualisations. Activation maps were generated for 14 representative samples drawn from the IP102 test set (
N = 22,619) using ImageNet pre-trained weights, with a fixed random seed (seed = 123) to ensure reproducibility of sample selection, enabling a qualitative comparison of the spatial attention patterns learned under each optimisation strategy.
Figure 15 presents the resulting visualisations alongside the corresponding input images.
As illustrated in
Figure 15, the fractional gradient model consistently produces more spatially concentrated activation maps on pest body regions compared to the standard model. In sample 3, where the standard model produces a misclassification, the fractional model correctly identifies the specimen by focusing on the slender body axis and leg attachment points, which represent morphologically diagnostic features for this species group. In sample 5, the fractional model captures the linear arrangement of egg masses along the dorsal body axis, a taxonomically significant characteristic that the standard model fails to isolate. In samples 5 and 6, standard model activations extend broadly across background vegetation, whereas the fractional model selectively highlights the target organism. Sample 11 further demonstrates this pattern, where the fractional model attends to the anatomical structure of the specimen while the standard model produces diffuse activations across the entire image. These findings confirm that memory-based gradient updates encourage the network to attend to genuinely discriminative morphological features rather than spurious background correlations.
5. Discussion
The experimental results presented in
Table 1 and
Table 2 demonstrate consistent absolute accuracy improvements of the proposed fractional gradient method over standard gradient descent across all backbone architectures and initialization strategies. In the untrained setting, AFGD improved DenseNet121 from 35.75% to 56.48% (a 20.73-pp absolute gain), ResNet101 from 33.03% to 44.54% (11.51-pp), and EfficientNetB0 from 35.32% to 46.33% (11.01-pp); we note that the absolute accuracy levels in this configuration remain modest and are reported only to isolate the optimization contribution. For ImageNet pre-trained models, the corresponding absolute gains were 6.69, 7.39, and 3.76 percentage points (10.43%, 11.82%, and 5.66% relative). These findings confirm that the proposed method is effective across both randomly initialized and pre-trained configurations, demonstrating broad applicability independent of initialization strategy.
The fairness analysis newly reported in
Section 4 (
Table 5) confirms that the absolute improvement of the fractional method is not an artifact of an unequal epoch budget. Under an identical 50-epoch budget on DenseNet121, SGD with momentum, Adam, and AdamW reach 60.73%, 57.62%, and 56.47% respectively, all substantially below the 70.81% achieved by the fractional method using the same backbone and the same learning rate as the SGD baseline. The gap of 10.08 to 14.34 percentage points across optimizer families establishes the result on equal terms.
The accuracy gains come at a modest computational cost: the Bayesian-α loop and gradient-history buffer add a sub-linear overhead in training time relative to standard SGD (
Table 3). This overhead scales with the backbone depth rather than with the dataset size, which makes the method attractive for medium-scale problems where image throughput is not the dominant bottleneck. The corresponding accuracy improvements of 10.43%, 5.66%, and 11.82%, along with consistently superior F1, precision, and recall scores across all 102 pest classes, demonstrate that this trade-off is justified by meaningful gains in classification quality.
The training and validation accuracy curves in
Figure 7 provide complementary insights into the convergence dynamics underlying these results. Although models using standard gradient descent showed rapid initial convergence, they consistently plateaued at suboptimal classification performance. In contrast, the fractional gradient models, particularly the Bayesian-optimized configuration, continued to improve beyond the point where standard gradient training stagnated. The loss curves in
Figure 9 confirm this pattern, with the Bayesian-optimized alpha achieving a lower and more stable validation loss than fixed-alpha configurations, indicating a more favourable optimization trajectory.
The alpha values selected by the Bayesian optimizer across architectures provide meaningful insight into the nature of these improvements. For DenseNet121 and ResNet101, optimal alpha values converged to negative ranges (α = −0.87 and α = −0.90, respectively), indicating that these architectures benefit from leveraging gradient memory during training. For EfficientNetB0, the optimal alpha of 0.98 suggests a preference for new gradient exploration, which may reflect the inherent efficiency of the architecture in extracting discriminative features through its depthwise separable convolutions and squeeze-and-excitation modules, without requiring the smoothing effect provided by memory-based gradient accumulation. This architecture-specific behaviour, clearly visible in
Figure 8, underscores the importance of the dynamic alpha tuning mechanism and demonstrates that a fixed fractional order would be suboptimal across different backbone designs.
A critical practical finding relates to the interaction between the Bayesian optimization frequency and the gradient memory buffer. When the Bayesian optimizer was invoked after the model had been trained for at least mem_size epochs with a given alpha value, allowing the gradient history to be fully populated, the proposed alpha values consistently converged to magnitudes beyond 0.78 in absolute value. This reflects a strong commitment to either memory exploitation (α < −0.78) or new gradient exploration (α > 0.78). However, when the main model was run for fewer epochs before Bayesian optimization, for example only five epochs, the optimal alpha parameter showed considerably greater variability between invocations. Although this high-frequency update strategy could occasionally yield better instantaneous classification results, it reduced model stability and prevented the fractional memory from being populated in a representative manner. Therefore, a deliberate design choice was made to run more epochs between Bayesian optimization calls rather than updating alpha more frequently, trading short-term alpha flexibility for long-term training stability. Training was allowed to continue until the fractional memory was fully populated under a single alpha value, enabling uncontaminated observation of each fractional derivative’s effect before the next optimization call.
The normalization mechanism played a central role in translating the fractional order selection into effective gradient behavior. When alpha was negative and the model relied on gradient memory, the factor attenuated gradient magnitudes proportionally, creating a fine-tuning effect that constrained parameter updates to smaller and more conservative steps. This attenuation arises directly from the formulation: as α decreases below zero, Γ(α + 1) approaches values below unity, causing to grow and implicitly reducing the effective learning rate without external scheduler intervention. Conversely, when alpha was positive and the model explored new gradients, the factor was closer to unity, permitting larger gradient steps and more aggressive parameter updates. This attenuation was not applied symmetrically: while gradients were not trimmed for alpha >0 following Bayesian optimization, when alpha <0 and the model began utilizing its gradient memory, gradient magnitudes were reduced proportionally to the degree of memory reliance. This asymmetric modulation created an internal learning rate effect by directly intervening in gradient update magnitudes, partially compensating for the deliberate absence of adaptive learning rate scheduling in the experimental design. The internal gradient regulation mechanism therefore serves a dual function by stabilizing training during memory exploitation and permitting more aggressive optimization during gradient exploration. This capability to regulate learning dynamics without relying on external scheduling represents a meaningful advantage, particularly in deployment scenarios where hyperparameter tuning resources are limited.
An informative finding emerges from the
ablation in
Table 6. Removing
was expected to destabilize training through gradient inflation in the negative-α regime, yet the realized accuracy (70.85%) is statistically indistinguishable from the baseline. The reason is structural: with
active the baseline settles at α = −0.8769 (deep in the negative-α memory regime), but when
is removed the Bayesian-α loop jumps to α = +0.9900 (deep in the positive-α regime), where Γ(α + 1) is approximately one and
is effectively neutral. The system relocates to the opposite end of the search space rather than tolerating the dangerous regime. This is consistent with viewing the Bayesian-α component not merely as a hyperparameter optimizer but as an emergent stability controller: it locates safe operating regions of the loss landscape and is willing to forfeit the negative-α memory dynamics when the corresponding stabilization mechanism is unavailable.
The proposed method introduces no additional learnable parameters to the backbone architecture; the gradient history buffer constitutes a runtime memory structure and the fractional order α serves as a dynamically tuned hyperparameter rather than a trainable model weight. The network capacity of DenseNet121, ResNet101, and EfficientNetB0 therefore remains entirely unchanged, distinguishing the proposed approach from methods that pursue performance gains through structural interventions such as additional layers, attention modules, or ensemble strategies. The improvements observed in
Table 1,
Table 2 and
Table 3 were achieved exclusively through the optimization mechanism, demonstrating that memory-based fractional gradient updates constitute a complementary and architecturally transparent strategy that is readily integrable into any existing CNN framework without modifying the network topology.
As shown in
Table 8, Nguyen et al. [
27] and Nanni et al. [
26] reported higher classification accuracies on the IP102 benchmark, with the highest published result (Nguyen et al., 76.44%) exceeding AFGD (70.81%) by 5.63 percentage points. This gap reflects three concrete differences along orthogonal axes: Nguyen et al. employ a multi-backbone ensemble rather than a single DenseNet121, apply additional data-augmentation strategies, and use adaptive learning-rate scheduling, while Nanni et al. similarly rely on a voting-based ensemble of multiple CNN models combined with adaptive learning-rate policies. All three design choices, namely ensemble strategy, data augmentation, and adaptive learning-rate scheduling, were deliberately excluded from the present study to isolate the contribution of the fractional gradient mechanism. The accuracy of 70.81% is therefore not directly comparable to these ensemble and multi-scale pipelines; because the proposed method operates at the optimization level without imposing any architectural constraints, it is directly composable with the design choices employed by Nguyen et al. and Nanni et al., and integrating it with their ensemble and augmentation strategies is expected to close or exceed this gap.
The Grad-CAM visualizations presented in
Figure 15 provide qualitative evidence that the performance gains reported in
Table 1,
Table 2 and
Table 3 reflect genuine improvements in discriminative feature learning rather than dataset-specific overfitting. The fractional gradient model’s consistent tendency to localize activations on morphologically relevant pest body regions, as opposed to the standard model’s diffuse background attention, suggests that memory-based gradient updates promote the development of more robust internal feature representations. This finding directly addresses interpretability concerns relevant to the deployment of agricultural pest classification in the real world.
The generalization capacity of AFGD is further supported by four complementary lines of quantitative evidence obtained from existing experimental results. First, the training and validation accuracy curves in
Figure 7 show that the fractional gradient models maintain a consistently narrower train–validation gap compared to their standard gradient counterparts, indicating that memory-based updates reduce overfitting rather than accelerating memorization. Second, the macro-averaged F1 scores in
Table 3 (63.76% versus 52.82% for DenseNet121) demonstrate that performance improvements are distributed across all 102 pest classes, including underrepresented tail classes where standard gradient methods are most susceptible to overfitting. Third, all reported metrics were computed on a held-out test set of 22,619 images that were never seen during training or Bayesian optimization, confirming that the observed gains reflect genuine generalization to unseen data rather than training set fitting. Fourth, the 95% confidence intervals reported in
Table 4, computed via t-distribution across three independent runs, are strictly non-overlapping with the standard gradient baselines, providing formal statistical evidence that the performance improvements are reproducible and not attributable to a single favorable run.
Direct comparison with existing Fractional Adam variants was not included because that line of work combines the fractional-derivative operator with the adaptive moment estimation of Adam, whereas the present method applies the fractional formulation to plain SGD precisely to isolate the contribution of the fractional component without adaptive moments or weight decay. Integrating the proposed Bayesian-α framework with adaptive moment estimation is identified as a natural extension and is left for future work.
Three behaviors documented in the ablation distinguish the proposed framework from the standard first-order baselines compared in
Table 5. The first is the essentiality of dynamic α tuning: replacing the Bayesian-α loop with a static α = −0.5 drops accuracy by 5.20 percentage points, and the standard baselines SGD-momentum, Adam, and AdamW, which by construction have no analogous dynamic mechanism, cannot recover this gain at the same training budget. The second is self-stabilization through regime relocation: when the
normalization is removed, the optimizer relocates from α = −0.8769 to α = +0.9900, a regime where the absent normalization is no longer required, instead of destabilizing. SGD, Adam, and AdamW have no analogous relocation mechanism; their update rules are fixed regardless of how the training dynamics evolve, so removing a stabilization component in those algorithms degrades performance rather than triggering a regime switch. The third is regime adaptation to the operating conditions: the warm-up direction is maintained in three configurations but escaped in two (the
M = 5 configuration and the
-removed configuration), with both escape events landing at α ≈ +0.99. This regime-selection behavior, observed twice in independent ablation lines, has no counterpart in the baseline optimizers, which apply the same update rule unchanged across all configurations.
These conclusions should be read with one qualification: the ablation was conducted on a single backbone (DenseNet121 with ImageNet pre-training) with a single run per configuration. While the magnitude of the Bayesian-α contribution and the consistency of the escape pattern across two independent ablation lines lend qualitative confidence to the findings, replicating the ablation grid on ResNet101 and EfficientNetB0, already evaluated for the baseline configuration in
Table 3, would confirm that the reported component contributions and regime-relocation behavior generalize across architectures.
The present study has several limitations. The proposed method incurs approximately 1.2, 1.05, and 1.16 times greater training time for DenseNet121, EfficientNetB0, and ResNet101, respectively, relative to standard gradient descent, as detailed in
Table 3, primarily because of the Bayesian optimization overhead and the maintenance of the gradient history buffer. The effects of varying memory size and initial alpha values on performance could not be thoroughly investigated owing to computational resource constraints, and extended per-class metric evaluation across all backbones is reserved for future work. Furthermore, the present implementation operates as a closed-set classifier, and the identification of specimens outside the 102 IP102 categories is not supported, representing a meaningful direction for future research.
6. Conclusions
This study proposed and evaluated an adaptive fractional gradient descent framework based on the Grünwald–Letnikov (GL) formulation for optimising deep convolutional neural networks in agricultural pest classification. By extending the fractional order to the continuous range of −1 < α < 1 and embedding dynamic α selection within a Bayesian optimization loop, the method enables each backbone architecture to adaptively balance gradient memory exploitation against new gradient exploration throughout training. This adaptive balancing capability is not available in standard gradient descent or in prior fixed-order fractional approaches, and constitutes the primary methodological distinction of the proposed framework.
On the IP102 benchmark, AFGD delivered consistent accuracy improvements across DenseNet121, ResNet101, and EfficientNetB0 under both random and ImageNet-pretrained initialization. For randomly initialized models, absolute test accuracy improved by 20.73, 11.51, and 11.01 percentage points for DenseNet121, ResNet101, and EfficientNetB0; under ImageNet pre-training the corresponding gains were 6.69, 7.39, and 3.76 percentage points. The best-performing configuration, fractional DenseNet121 with ImageNet pre-training, reached a top-1 accuracy of 70.81% and a macro F1 of 0.6376. Grad-CAM analysis further confirmed that these gains reflect genuine improvements in discriminative feature learning, with the fractional model producing spatially more localized activations on morphologically relevant pest body regions than the standard baseline.
A defining characteristic of the proposed framework is that it achieves these improvements entirely at the optimization level, without modifying network architecture, adding learnable parameters, or requiring data augmentation or adaptive learning rate scheduling. This architectural transparency makes the method directly integrable with any existing CNN-based pipeline, and its complementarity with more complex architectural and ensemble strategies suggests that the performance gains reported here represent a lower bound rather than a ceiling.
The principal limitation is a modest training-time overhead (detailed in
Table 3) due to the Bayesian-α loop and the maintenance of the gradient history buffer. Future work will investigate sensitivity to memory size and initial α, extend the detailed metric evaluation to additional backbones, and explore integration with ensemble strategies, adaptive learning rate policies, and open-set recognition mechanisms to advance the framework’s practical applicability in precision agriculture.
Beyond the original headline results, the revised manuscript reports ten controlled ablation experiments organized into three research-question-driven tables (
Table 5,
Table 6 and
Table 7) under a unified 50-epoch training budget.
Table 5 isolates the fractional mechanism from epoch and optimizer-family effects;
Table 6 attributes contribution between the Bayesian-α loop and the
; and
Table 7 quantifies hyperparameter sensitivity together with the GPU-memory and FLOPs footprint as a function of
M. Under the unified budget, the fractional method exceeds SGD with momentum, Adam, and AdamW by 10.08, 13.19, and 14.34 percentage points, confirming that the observed advantage cannot be attributed to differences in epoch count or optimizer family. The
ablation further revealed that the Bayesian-α component behaves as an emergent stability controller: when the
normalization is removed, the optimizer jumps from the baseline operating point at α = −0.8769 to α = +0.9900, relocating to a regime where the absent stabilization mechanism is no longer required.