GLF-ResFormer: Fractional Derivative-Guided Deep Learning for Computer Vision Edge Detection
Abstract
1. Introduction
- Mathematical foundations: We show that the discretization error of the discrete GL operator is (see Theorem 1). This is a finite difference approximation of the operator in vision problems. In addition, we state a lemma for the sensitivity analysis of edge enhancement and noise reduction based on (see Lemma 1).
- Unified lightweight architecture: Our proposed model incorporates a 2D GL fractional prior within a hybrid architecture that consists of both local convolutional layers and a global attention block. The total number of learnable parameters in our model is 19,217, which is relatively smaller than existing state-of-the-art edge detectors based on ViTs.
- Rigorous statistical validation: Our model is evaluated for seven different values of the fractional order () through various random seed initializations. We provide a full set of tracking measures (loss, F1 score, precision, recall, and Runtimes) on MN.
- Model-agnostic usability: Because the GL operator acts as an explicit input-level preprocessing stage, it introduces zero learnable parameters and can be integrated into any existing deep vision pipeline without modifying the underlying architecture.
2. Related Work
2.1. Classical and Convolutional Edge Detection
2.2. Transformer-Based Edge Awareness
2.3. Fractional Calculus in Vision and Deep Networks
3. Mathematical Foundations
3.1. Fractional Derivative Formulations
3.2. Discrete GL Core and Convergence Profiling
3.3. 2D Spatial Extension for Vision Pipelines
4. The Proposed GLF-ResFormer Architecture
4.1. Structural Pipeline
- GL Fractional Preprocessing: The input matrix is passed through a parameter-free fractional engine to enhance edge structures.
- Localized Convolutional Feature Extraction: Standard CNN layers extract spatial localized descriptors.
- Global Transformer Attention Mappings: Multi-head self-attention mechanisms capture long-range contextual relationships.
- Residual Fusion: Local and global features are fused to generate pixel-wise edge predictions.
4.2. Stage 1: GL Fractional Preprocessing
4.3. Stage 2: Convolutional Feature Extraction
4.4. Stage 3: Transformer Global Attention Mappings
4.5. Stage 4: Residual Fusion and Pixel-Wise Classification
| Algorithm 1 GLF-ResFormer Forward Pass Execution Sequence |
| Require: Discrete image array , selected fractional order , history truncation limit N Ensure: Decoupled pixel-wise binary edge map prediction
|
4.6. Model Complexity Summary
5. Experimental Evaluation
5.1. Datasets and Evaluation Protocol
5.1.1. MNIST Boundary Segmentation Suite
5.1.2. CIFAR-10 Generalization Suite
5.1.3. Optimization and Training Infrastructure
5.2. Ablation Study: Tuning the Fractional Order
5.3. Comparative Analysis and Statistical Verification
5.4. Parameter-Matched CNN Baseline Comparison
Computational Efficiency Analysis
5.5. Qualitative Analysis and Dashboard Visualizations
5.6. Demonstration of Fractional Memory Effects on 1D Signals
5.7. Component Ablation Study
5.8. Cross-Dataset Boundary Mapping on CIFAR-10
5.9. Sensitivity Analysis of Sobel Threshold Selection
5.10. Evaluation on Human-Annotated Natural Images (BSDS500)
5.11. Comparison with a State-of-the-Art Edge Detection Model
6. Discussion
6.1. Interpretation of Findings
6.2. Comparing with Prior Art
6.3. Implications
6.4. Limitations
6.5. Future Research
7. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Elbadri, M.; Al-kuleab, N.; Saadeh, R.; Hafez, M.; Abdoon, M.A. Dynamics and Chaos Analysis of the Fractional-Order Lü System Using a Hybrid Approach. Fractal Fract. 2026, 10, 51. [Google Scholar] [CrossRef]
- Alhawael, G.; Abdoon, M.A.; Khashan, K.H.; Elgezouli, D.E. Chaos Analysis of the Fractional Genesio-Tesi System with Constant and Variable-Order Dynamics. Mathematics 2025, 13, 3992. [Google Scholar] [CrossRef]
- Khashan, K.H.; Elgezouli, D.E.; Abdoon, M.A. Dynamics and Chaos Analysis of a Novel 4D Chaotic System Using Constant- and Variable-Order Fractional Calculus. Mathematics 2026, 14, 2537. [Google Scholar] [CrossRef]
- Petersen, G.H. Ground cover mapping on the winter range of the Beverly barren-ground caribou herd using remote sensing techniques: An aid to management. For. Chron. 1987, 77, 5. [Google Scholar]
- Spontón, H.; Cardelino, J. A review of classic edge detectors. Image Process. Line 2015, 5, 90–123. [Google Scholar] [CrossRef]
- Ziou, D.; Tabbone, S. Edge detection techniques-an overview. Распoзнавание oбразoв и анализ изoбражен. Pattern Recognit. Image Anal. Adv. Math. Theory Appl. 1998, 8, 537–559. [Google Scholar]
- Xie, S.; Tu, Z. Holistically-Nested Edge Detection. In Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV), Santiago, Chile, 7–13 December 2015; pp. 1395–1403. [Google Scholar] [CrossRef]
- Liu, Y.; Cheng, M.M.; Hu, X.; Wang, K.; Bai, X. Richer Convolutional Features for Edge Detection. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 5872–5881. [Google Scholar] [CrossRef]
- Soria, X.; Sappa, A.; Humanante, P.; Akbarinia, A. Dense extreme inception network for edge detection. Pattern Recognit. 2023, 139, 109461. [Google Scholar] [CrossRef]
- Pu, M.; Huang, Y.; Liu, Y.; Guan, Q.; Ling, H. EDTER: Edge Detection with Transformer. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 18–24 June 2022; pp. 1392–1402. [Google Scholar] [CrossRef]
- Luo, X.; Ai, Z.; Liang, Q.; Xie, Y.; Shi, Z.; Fan, J.; Qu, Y. EdgeFormer: Edge-Aware Efficient Transformer for Image Super-Resolution. IEEE Trans. Instrum. Meas. 2024, 73, 1–12. [Google Scholar] [CrossRef]
- Teodoro, G.S.; Machado, J.T.; De Oliveira, E.C. A review of definitions of fractional derivatives and other operators. J. Comput. Phys. 2019, 388, 195–208. [Google Scholar] [CrossRef]
- Atici, F.M.; Chang, S.; Jonnalagadda, J. Grünwald-Letnikov fractional operators: From past to present. Fract. Differ. Calc. 2021, 11, 147–159. [Google Scholar] [CrossRef]
- Elgezouli, D.E.; Alzahrani, A.B. Optimizing edge detection efficiency with a Grünwald–Letnikov fractional network. Electronics 2024, 13, 3298. [Google Scholar] [CrossRef]
- Coelho, C.; Costa, M.F.P.; Ferrás, L.L. Fractional Calculus Meets Neural Networks For Computer Vision: A Survey. AI 2024, 5, 1391–1426. [Google Scholar] [CrossRef]
- Young, S.S.; Lin, C.H.; Leng, Z.C. Unsupervised abundance matrix reconstruction transformer-guided fractional attention mechanism for hyperspectral anomaly detection. IEEE Trans. Neural Netw. Learn. Syst. 2024, 36, 9150–9164. [Google Scholar] [CrossRef] [PubMed]
- Zhou, X.; Chen, J.; Jiang, P.; Zhang, X.; Zeng, Z. Adaptive fractional-order Pulse-Coupled Neural Networks with multi-scale optimization for Skin Image Segmentation. Biomed. Signal Process. Control 2026, 112, 108911. [Google Scholar] [CrossRef]
- Tenekeci, M.E.; Abdulazeez, S.T.; Karadağ, K.; Modanli, M. Edge detection using the Prewitt operator with fractional order telegraph partial differential equations (PreFOTPDE). Multimed. Tools Appl. 2025, 84, 12329–12345. [Google Scholar] [CrossRef]
- Limami, F.e.; Hadri, A.; Laghrib, A.; Afraites, L. Fractional optimal control for deep convolutional neural networks exploring ODE-based solutions for image denoising. Inverse Probl. Imaging 2025, 19, 424–455. [Google Scholar] [CrossRef]
- Hafez, M.; Alshowaikh, F.; Voon, B.W.N.; Alkhazaleh, S.; Al-Faiz, H. Review on recent advances in fractional differentiation and its applications. Progr. Fract. Differ. Appl. 2025, 11, 245–261. [Google Scholar] [CrossRef]
- Zhou, Y.; Wang, Y.; Wang, R.; Zhang, W.; Yang, H. Automatic crack detection and segmentation of masonry structure based on deep learning network and edge detection. Structures 2025, 76, 108850. [Google Scholar] [CrossRef]
- Calgan, H.; Gokyildirim, A.; Ilten, E.; Demirtas, M. Classification of fractional-order chaotic systems using deep learning methods. Eur. Phys. J. Spec. Top. 2025, 234, 4879–4897. [Google Scholar] [CrossRef]
- Abedi, F. Dense residual network for image edge detection. Multimed. Tools Appl. 2024, 83, 90227–90242. [Google Scholar] [CrossRef]
- Zhou, M.; Zhang, Y.; Xu, X.; Wang, J.; Khalvati, F. Edge-Enhanced Dilated Residual Attention Network for Multimodal Medical Image Fusion. In Proceedings of the 2024 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), Lisbon, Portugal, 3–6 December 2024; pp. 4108–4111. [Google Scholar]
- Jie, J.; Wang, Q.; Wu, J.; Guo, Y.; Hua, B. Efficient Transformer-Based Edge Detector. In Proceedings of the 2024 International Joint Conference on Neural Networks (IJCNN), Yokohama, Japan, 30 June–5 July 2024; pp. 1–7. [Google Scholar]
- Xia, L.; Chen, J.; Luo, J.; Zhang, J.; Yang, D.; Shen, Z. Building change detection based on an edge-guided convolutional neural network combined with a transformer. Remote Sens. 2022, 14, 4524. [Google Scholar] [CrossRef]
- Ma, J.; Duan, J.; Tang, X.; Zhang, X.; Jiao, L. Eatder: Edge-assisted adaptive transformer detector for remote sensing change detection. IEEE Trans. Geosci. Remote Sens. 2023, 62, 1–15. [Google Scholar] [CrossRef]
- Arora, S.; Mathur, T.; Agarwal, S.; Tiwari, K.; Gupta, P. Applications of fractional calculus in computer vision: A survey. Neurocomputing 2022, 489, 407–428. [Google Scholar] [CrossRef]
- Afzal, W.; Abbas, M.; Hamali, W.; Mahnashi, A.M.; Sen, M.D.l. Hermite–Hadamard-Type Inequalities via Caputo–Fabrizio Fractional Integral for h-Godunova–Levin and (h1, h2)-Convex Functions. Fractal Fract. 2023, 7, 687. [Google Scholar] [CrossRef]
- Li, T.; Yang, J.; Li, C.; Lv, L.; Liu, K.; Yuan, Z.; Li, Y.; Yu, H. Deep Recognition of Chinese Herbal Medicines Based on a Caputo Fractional Order Convolutional Neural Network. In Proceedings of the International Workshop on Internet of Things of Big Data for Healthcare, Birmingham, UK, 21–25 October 2023; pp. 41–51. [Google Scholar]
- Bai, R.; Meng, Z.; Xu, Q.; Fan, F. Fractional Fourier and time domain recurrence plot fusion combining convolutional neural network for bearing fault diagnosis under variable working conditions. Reliab. Eng. Syst. Saf. 2023, 232, 109076. [Google Scholar] [CrossRef]
- Lubich, C. Discretized Fractional Calculus. SIAM J. Math. Anal. 1986, 17, 704–719. [Google Scholar] [CrossRef]
- Podlubny, I. Chapter 8—Numerical Solution of Fractional Differential Equations. In Fractional Differential Equations—An Introduction to Fractional Derivatives, Fractional Differential Equations, to Methods of their Solution and some of their Applications; Elsevier: Amsterdam, The Netherlands, 1999; pp. 223–242. [Google Scholar] [CrossRef]
- MNIST Dataset. Available online: http://yann.lecun.com/exdb/mnist/ (accessed on 12 August 2024).
- Krizhevsky, A.; Hinton, G. Learning Multiple Layers of Features from Tiny Images; Technical Report; University of Toronto: Toronto, ON, Canada, 2009. [Google Scholar]










| Aspect | Prior Works | GLF-ResFormer (Proposed) |
|---|---|---|
| Fractional Integration | Applied only as localized intermediate layers [14,16]; isolated from the global context. | Embedded as a parameter-free input prior, feeding a unified, local-global network. |
| Long-Range Context | CNNs lack global context [23,24]; ViTs require substantial parameter counts and data volumes [11,25]. | Combines compact MHSA with fractional preprocessing to achieve high data efficiency. |
| Edge Sensitivity | Fixed integer operators degrade rapidly under high-frequency noise conditions [23,24]. | Order enables continuous modulation to enhance boundaries while suppressing noise. |
| Convergence Analysis | Omitted in prior fractional deep learning literature. | Establishes a formal truncation error bound (Theorem 1). |
| Computational Demand | Pure fractional networks or large Transformers are computationally heavy [11,25]. | Extremely compact footprint (15,025 parameters) with negligible inference overhead. |
| Statistical Rigor | Predominantly single-seed evaluations across relevant literature. | Reports mean ± standard deviation across multiple seeds with paired t-tests. |
| Layer (Type) | Output Tensor Shape | Trainable Params | Connected Target Layer |
|---|---|---|---|
| Input (InputLayer) | 0 | — | |
| conv1 (Conv2D) | 320 | Input | |
| conv2 (Conv2D) | 9248 | conv1 | |
| flatten_attn (Reshape) | 0 | conv2 | |
| LayerNorm_1 (LN) | 64 | flatten_attn | |
| MHSA (Attention) | 8416 | LayerNorm_1 | |
| Add_1 (Residual) | 0 | flatten_attn, MHSA | |
| LayerNorm_2 (LN) | 64 | Add_1 | |
| Dense_1 (Fully Connected) | 528 | LayerNorm_2 | |
| Dense_2 (Fully Connected) | 544 | Dense_1 | |
| Add_2 (FFN Residual) | 0 | Add_1, Dense_2 | |
| reshape (Reshape) | 0 | Add_2 | |
| residual_fusion (Add) | 0 | conv2, reshape | |
| output (Conv2D) | 33 | residual_fusion | |
| Total Trainable Model Parameters | 19,217 | ||
| Model Layer | Loss Value | Val. Loss | F1 Score | Precision | Recall | Train Time (s) | Infer Time (s) | |
|---|---|---|---|---|---|---|---|---|
| 0.001 | CNN Baseline | |||||||
| GLF-ResFormer | ||||||||
| 0.010 | CNN Baseline | |||||||
| GLF-ResFormer | ||||||||
| 0.100 | CNN Baseline | |||||||
| GLF-ResFormer | ||||||||
| 0.950 | CNN Baseline | |||||||
| GLF-ResFormer | ||||||||
| 0.970 | CNN Baseline | |||||||
| GLF-ResFormer | ||||||||
| 0.990 | CNN Baseline | |||||||
| GLF-ResFormer | ||||||||
| 1.000 | CNN Baseline | |||||||
| GLF-ResFormer |
| CNN F1 (Mean ± SD) | GLF-ResFormer F1 (Mean ± SD) | p-Value | Significant (Bonferroni) | |
|---|---|---|---|---|
| 0.001 | <0.0001 | Yes | ||
| 0.010 | <0.0001 | Yes | ||
| 0.100 | <0.0001 | Yes | ||
| 0.950 | <0.0001 | Yes | ||
| 0.970 | Yes | |||
| 0.990 | Yes | |||
| 1.000 | Yes |
| Layer (Type) | Output Shape | Trainable Parameters |
|---|---|---|
| Input (InputLayer) | 0 | |
| Conv1 (Conv2D) | 360 | |
| Conv2 (Conv2D) | 11,700 | |
| Conv3 (Conv2D) | 5850 | |
| Output (Conv2D) | 19 | |
| Total Trainable Parameters | 17,929 | |
| Non-trainable Parameters | 0 | |
| GLF-ResFormer F1 | CNN F1 | Difference | |
|---|---|---|---|
| 0.001 | 0.9969 | 0.9930 | +0.0039 |
| 0.010 | 0.9964 | 0.9936 | +0.0028 |
| 0.100 | 0.9960 | 0.9920 | +0.0040 |
| 0.950 | 0.9927 | 0.9882 | +0.0045 |
| 0.970 | 0.9930 | 0.9855 | +0.0076 |
| 0.990 | 0.9937 | 0.9868 | +0.0068 |
| 1.000 | 0.9937 | 0.9877 | +0.0059 |
| Model | Parameters | FLOPs | Memory (MB) | Latency (ms) | FPS |
|---|---|---|---|---|---|
| CNN Baseline | 19,929 | 15,003,408 | 0.0760 | 80.34 | 12.4 |
| GLF-ResFormer | 19,217 | 38,454,416 | 0.0733 | 84.55 | 11.8 |
| Variant | Parameters | F1 Score | Train Time (s) |
|---|---|---|---|
| V1: CNN-only baseline | 9601 | 7.13 | |
| V2: GL + CNN (no Transformer) | 9601 | 6.98 | |
| V3: GL + Transformer (no CNN) | 5521 | 26.34 | |
| V4: Full model (no residual fusion) | 15,025 | 32.29 | |
| V5: Full GLF-ResFormer | 15,025 | 32.34 |
| Threshold | CNN F1 | GLF-ResFormer F1 | Improvement |
|---|---|---|---|
| 0.05 | +0.4381 | ||
| 0.10 | +0.4476 | ||
| 0.15 (Reference) | +0.4550 | ||
| 0.20 | +0.4600 | ||
| 0.25 | +0.4619 |
| Threshold | CNN F1 | GLF-ResFormer F1 | Improvement |
|---|---|---|---|
| 0.06 | +0.0009 | ||
| 0.09 | +0.0012 | ||
| 0.12 (Reference) | +0.0315 | ||
| 0.15 | +0.0013 | ||
| 0.18 | +0.0014 |
| Model | ODS F-Mean | OIS F-Mean | Train Time (s) |
|---|---|---|---|
| CNN Baseline | 9.660 | ||
| GLF-ResFormer (Ours) | 0.0498 ± 0.0432 | 0.0560 ± 0.0486 | 16.664 |
| Model Architecture | Evaluation Protocol | Parameter Budget | ODS F-Measure | OIS F-Measure | Mean Time (s) |
|---|---|---|---|---|---|
| GLF-ResFormer (Ours, Trained) | BSDS500 Test (96 × 96) | ∼603,425 | 18.32 | ||
| DexiNed (Official Pretrained, Zero-Shot) | BSDS500 Test (96 × 96) | 35,215,245 | 0.0811 | 0.0903 | – |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Alhawael, G.; Elgezouli, D.E.; A. Abdoon, M. GLF-ResFormer: Fractional Derivative-Guided Deep Learning for Computer Vision Edge Detection. Fractal Fract. 2026, 10, 531. https://doi.org/10.3390/fractalfract10080531
Alhawael G, Elgezouli DE, A. Abdoon M. GLF-ResFormer: Fractional Derivative-Guided Deep Learning for Computer Vision Edge Detection. Fractal and Fractional. 2026; 10(8):531. https://doi.org/10.3390/fractalfract10080531
Chicago/Turabian StyleAlhawael, Ghadah, Diaa Eldin Elgezouli, and Mohamed A. Abdoon. 2026. "GLF-ResFormer: Fractional Derivative-Guided Deep Learning for Computer Vision Edge Detection" Fractal and Fractional 10, no. 8: 531. https://doi.org/10.3390/fractalfract10080531
APA StyleAlhawael, G., Elgezouli, D. E., & A. Abdoon, M. (2026). GLF-ResFormer: Fractional Derivative-Guided Deep Learning for Computer Vision Edge Detection. Fractal and Fractional, 10(8), 531. https://doi.org/10.3390/fractalfract10080531

