Skip to content
Hassan Farid
§ 01Research · Case study

Topology meets classification.

Investigating whether topological features from persistent homology complement classical morphological features for breast cancer classification on the WDBC dataset.

1.0Abstract

This independent study asks whether the shape of data — captured through persistent homology — adds useful information to the classical morphological features commonly used for breast cancer classification. Using the Wisconsin Diagnostic Breast Cancer dataset (569 observations, 30 features), local point clouds were built in a PCA-reduced space, Vietoris–Rips filtrations were computed, and H0 and H1 persistence diagrams were vectorised as persistence images. Classical (30), topological (50) and combined (80) feature sets were evaluated with Logistic Regression, an RBF Support Vector Machine and a Random Forest under stratified five-fold cross-validation. Classical features performed strongest overall; topological features offered an alternative but weaker representation; and the combined set produced some model-specific improvements without consistently outperforming the classical baseline.

2.0Problem

Breast cancer classification models typically rely on morphological measurements of cell nuclei. These features are highly informative, but they describe each measurement independently. Topological Data Analysis offers a complementary lens: it summarises how observations relate to one another geometrically, at many scales at once. The open question is whether that structural signal adds value on top of the features already in use.

3.0Objectives

  • Construct topological features from the WDBC data using persistent homology.
  • Compare classical, topological and combined feature representations on equal terms.
  • Evaluate three model families with a consistent, stratified cross-validation protocol.
  • Report results transparently, including where topological features did not help.

4.0Dataset

Name
Wisconsin Diagnostic Breast Cancer (WDBC)
Observations
569
Features
30

A public benchmark dataset of morphological features computed from digitised images of breast mass cell nuclei.

5.0Methodology

  1. 5.1

    Principal Component Analysis

    Reduce the 30 morphological features to a lower-dimensional space.

  2. 5.2

    Local point-cloud construction

    Build a local neighbourhood point cloud around each observation.

  3. 5.3

    Vietoris–Rips complexes

    Grow simplicial complexes across a range of distance scales.

  4. 5.4

    Persistent homology

    Track connected components (H0) and loops (H1) across the filtration.

  5. 5.5

    Persistence images

    Vectorise persistence diagrams into 50 fixed-length topological features.

  6. 5.6

    Classification

    Logistic Regression, RBF SVM and Random Forest on each feature set.

Vietoris–Rips complex of a sample point cloud at scale ε = 34, with 5 connected components.
β0 = 5
Fig. 02Schematic of the filtration idea on an illustrative point cloud — not the WDBC data. As the scale grows, components merge (H₀) and loops form and fill (H₁).

6.0Experimental setup

  • Feature sets: Classical (30), Topological (50), Combined (80).
  • Models: Logistic Regression, RBF Support Vector Machine, Random Forest.
  • Validation: stratified five-fold cross-validation.
  • Metrics: ROC AUC and F1, reported as mean ± variation across folds.
  • Classical30

    Morphological features from the WDBC dataset.

  • Topological50

    Persistence-image features from H0 and H1.

  • Combined80

    Classical and topological features together.

7.0Results

  • Classical · 30
  • Topological · 50
  • Combined · 80

Logistic Regression

Classical
0.9953
Topological
0.9482
Combined
0.9951

RBF SVM

Classical
0.9945
Topological
0.9280
Combined
0.9921

Random Forest

Classical
0.9885
Topological
0.9402
Combined
0.9915
AUC
0.900.930.950.971.00
Fig. 03Mean ROC AUC across five stratified folds. Axis begins at 0.90.
  • Classical · 30
  • Topological · 50
  • Combined · 80

Logistic Regression

Classical
0.9633
Topological
0.8638
Combined
0.9641

RBF SVM

Classical
0.9688
Topological
0.8433
Combined
0.9311

Random Forest

Classical
0.9381
Topological
0.8443
Combined
0.9264
F1
0.800.850.900.951.00
Fig. 04Mean F1 across five stratified folds. Axis begins at 0.80.
ROC AUC, mean ± variation, by feature set and model
AUC · Feature setLogistic RegressionRBF SVMRandom Forest
Classical(30)0.9953 ± 0.00530.9945 ± 0.00600.9885 ± 0.0083
Topological(50)0.9482 ± 0.02330.9280 ± 0.02560.9402 ± 0.0170
Combined(80)0.9951 ± 0.00570.9921 ± 0.00680.9915 ± 0.0038

Highlighted: highest mean per model. Differences are not tested for statistical significance.

F1 score, mean ± variation, by feature set and model
F1 · Feature setLogistic RegressionRBF SVMRandom Forest
Classical(30)0.9633 ± 0.02400.9688 ± 0.02220.9381 ± 0.0186
Topological(50)0.8638 ± 0.03130.8433 ± 0.02570.8443 ± 0.0403
Combined(80)0.9641 ± 0.02020.9311 ± 0.03100.9264 ± 0.0243

Highlighted: highest mean per model. Differences are not tested for statistical significance.

8.0Findings

  • Classical features performed strongest overall, with the highest mean AUC (0.9953, Logistic Regression) and the highest mean F1 (0.9688, RBF SVM).
  • Topological features alone provided an alternative representation of the data but performed less strongly in this experiment (AUC 0.928–0.948).
  • Combined features showed some model-specific improvements — for example Random Forest AUC rose from 0.9885 to 0.9915 — but did not consistently outperform classical features, and RBF SVM F1 decreased.

9.0Limitations

  • A single, well-studied public dataset; results have not been externally validated on independent data.
  • No statistical significance testing is claimed for the differences between feature sets.
  • Not clinically validated, and not intended for diagnostic use.
  • Topological features depend on construction choices (PCA dimension, neighbourhood size, filtration and image parameters) that were not exhaustively explored.

10.0Future work

  • Evaluate on independent breast cancer datasets to test generalisation.
  • Apply formal statistical comparison of feature representations.
  • Run sensitivity analyses on topological construction parameters.
  • Compare alternative vectorisations such as persistence landscapes and Betti curves.