Topological Signatures vs. Gradient Histograms: A Comparative Study for Medical Image Classification
Faisal Ahmed, Mohammad Alfrad Nobel Bhuiyan · 2025
Read Topological Signatures vs. Gradient Histograms: A Comparative Study for Medical Image Classification by Faisal Ahmed, Mohammad Alfrad Nobel Bhuiyan (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-03006.txt.
Introduction
Faisal Ahmed and a co-author compare two ways to pull useful traits from medical scans, in a 2025 study of eye images. One way tracks the slope of brightness at each point and sums those slopes by direction. The other way reads the global shape of an image, such as how its parts link and where holes form.
The team tested both ways on a public set of retina photos. Their tasks were to split healthy eyes from eyes with diabetic eye disease, and to grade that disease in five classes. They trained seven standard learning models and checked them with repeated splits of the data. One boosting model scored best with both trait types, near 94 percent on the two-class task.
Catalog record
| CREATOR | Faisal Ahmed, Mohammad Alfrad Nobel Bhuiyan |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 53 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2507-03006
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Topological Signatures vs. Gradient Histograms: A Comparative Study for Medical Image Classification Faisal Ahmed, Mohammad Alfrad Nobel Bhuiyan Abstract This study presents the first comparative evaluation of two fundamentally different feature extraction methods— Histogram of Oriented Gradients (HOG) and Topological Data Analysis (TDA) —for classifying medical images, with a focus on retinal fundus imagery. HOG captures local shape information by computing the distribution of gradient orientations within small spatial regions, effectively encoding texture and edge features. In contrast, TDA, specifically through cubical persistent homology , extracts high-level topological descriptors that quantify the global shape and connectivity of pixel intensities across the image. We apply these techniques to the large-scale, publicly available APTOS dataset to address two classification tasks: a binary classification (normal vs. diabetic retinopathy (DR)) and a five-class DR severity grading. From each fundus image, we extract 26 244 26\,244 HOG features and 800 800 TDA features, which are then used independently to train seven classical machine learning models (logistic regression, random forest, XGBoost, SVM, decision tree, k k -NN, and Extra Trees) using 10-fold cross-validation. XGBoost consistently outperformed other models, achieving an accuracy of 94.29 ± \pm 1.18% with HOG features and 94.18 ± \pm 0.92% with TDA features for the binary task. In the multi-class setting, it obtained 74.41 ± \pm 1.02% (HOG) and 74.69 ± \pm 1.52% (TDA). These results demonstrate that while both methods provide competitive performance, they encode fundamentally different aspects of image structure. This work is the first to systematically compare gradient-based and topological feature extraction for fundus image classification. Beyond their standalone utility, both feature sets can be integrated into deep learning pipelines to enhance diagnostic accuracy while maintaining interpretability. Our findings lay the groundwork for hybrid approaches that combine geometric and topological insights in medical image analysis. While our experiments were conducted on retinal images, the proposed methodology is generalizable to a wide range of medical imaging modalities. † † highlights: We conduct the first systematic comparison of two handcrafted feature extraction techniques— persistent homology from topological data analysis (TDA) and Histogram of Oriented Gradients (HOG)—for medical image classification. We identify and address a gap in the current literature: while both HOG and TDA have been applied independently in medical imaging tasks, no prior study has directly compared their performance on the same dataset or disease classification problem. Our work provides the first such comparison. The evaluation is performed on the large-scale APTOS dataset under two classification tasks: (i) binary classification (normal vs. diabetic retinopathy), and (ii) multi-class DR severity grading across five levels. Each fundus image is represented by 800 topological features and 26{,}244 HOG features, which are independently assessed using seven classical machine learning models, including XGBoost, SVM, and random forest. Results highlight the complementary strengths of topological and gradient-based features, offering insights into their respective advantages for medical image analysis tasks. Both TDA and HOG are lightweight, interpretable, and readily integrable into deep learning pipelines, enabling future hybrid approaches that combine geometric and topological representations for improved diagnostic performance. 1 Introduction Medical imaging plays a crucial role in modern healthcare, enabling early detection, diagnosis, and monitoring of a wide range of diseases. Modalities such as magnetic resonance imaging (MRI), computed tomography (CT), ultrasound, and retinal fundus photography provide rich visual data that can be leveraged for clinical decision support. With the increasing volume of medical images being generated, there is a growing need for automated, accurate, and interpretable image analysis tools [ 1 , 2 ] . While significant progress has been made using deep learning methods for medical image classification and segmentation, many approaches remain limited in terms of interpretability and generalizability across imaging modalities [ 3 ] . To address these challenges, recent research has explored the integration of handcrafted features with data-driven models. In particular, gradient-based descriptors and topological data analysis (TDA) have shown promise for capturing both local and global structural information within medical images [ 4 , 5 ] . In this work, we present a novel and generalizable framework that systematically compares gradient-based and topological feature extraction methods for medical image classification. While our experimental validation focuses on retinal fundus images due to their accessibility and clinical relevance, the proposed methodology is broadly applicable across imaging modalities and disease contexts. We conduct the first comparative analysis of handcrafted feature extraction techniques for retinal disease classification, specifically examining Histogram of Oriented Gradients (HOG) and persistent homology (PH). Inspired by the foundational work of Dalal and Triggs [ 6 ] , we adapt HOG descriptors—originally developed for human detection—to the medical imaging domain, extracting 26{,}244 -dimensional gradient-based features from each fundus image. In parallel, we apply PH, a core method in topological data analysis (TDA), to compute 800 topological features using cubical persistence , which captures the evolution of structural patterns within medical images. Our findings demonstrate that both feature sets not only perform competitively but also offer complementary insights, laying the groundwork for hybrid image analysis strategies that combine geometric and topological representations to enhance diagnostic accuracy while maintaining interpretability. We evaluate their performance independently using seven standard machine learning classifiers: logistic regression, random forest, XGBoost, support vector machine, decision tree, k -nearest neighbors, and Extra Trees. The experiments are conducted on the publicly available APTOS dataset under two settings: a binary classification task (normal vs. diabetic retinopathy) and a five-class task reflecting DR severity levels. This first comparative study underscores the strengths and limitations of each feature type, offering insights into how handcrafted features may complement or enhance deep learning architectures in future work. Our contributions. • We identify and address a gap in the current literature: while both HOG and TDA have been applied independently in medical imaging tasks, no prior study has directly compared their performance on the same dataset or disease classification problem. Our work provides the first such comparison. • We review and contextualize two prominent handcrafted feature extraction methods in medical image analysis: Histogram of Oriented Gradients (HOG), which captures local texture and edge information, and persistent homology (PH) from topological data analysis (TDA), which encodes global shape and structural connectivity in images. • We apply HOG and TDA to color fundus photographs from the large-scale, publicly available APTOS dataset, targeting two classification tasks: (i) binary classification (normal vs. diabetic retinopathy), and (ii) multi-class classification (five DR severity grades). • For each image, we extract 26{,}244 HOG features and 800 TDA features. These feature sets are independently evaluated using seven classical machine learning models: logistic regression, random forest, XGBoost, support vector machine, decision tree, k -nearest neighbors, and Extra Trees, with 10-fold cross-validation. • XGBoost achieved the best performance across both settings: for binary classification, it reached an accuracy of 94.29 \pm 1.18% (HOG) and 94.18 \pm 0.92% (TDA); for the five-class task, it attained 74.41 \pm 1.02% (HOG) and 74.69 \pm 1.52% (TDA). • Our results highlight that both HOG and TDA are computationally efficient , require no data augmentation or pretraining, and produce interpretable features that reflect distinct geometric and structural aspects of the images. • We demonstrate that these lightweight, interpretable features are suitable for integration into modern deep learning pipelines, encouraging future hybrid approaches that combine handcrafted features with learned representations to improve