Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jun 1;64(6):3667-3675.
doi: 10.1093/rheumatology/keaf073.

CAPI-Detect: machine learning in capillaroscopy reveals new variables influencing diagnosis

Affiliations

CAPI-Detect: machine learning in capillaroscopy reveals new variables influencing diagnosis

Gema M Lledó-Ibáñez et al. Rheumatology (Oxford). .

Abstract

Objectives: Nailfold videocapillaroscopy (NVC) is the gold standard for diagnosing SSc and differentiating primary from secondary RP. The CAPI-Score algorithm, designed for simplicity, classifies capillaroscopy scleroderma patterns (CSPs) using a limited number of capillary variables. This study aims to develop a more advanced machine learning (ML) model to improve CSP identification by integrating a broader range of statistical variables while minimizing examiner-related bias.

Methods: A total of 1780 capillaroscopies were randomly and blindly analysed by three to four trained observers. Consensus was defined as agreement among all but one observer (partial consensus) or unanimous agreement (full consensus). Capillaroscopies with at least partial consensus were used to train ML-based classification models using CatBoost software, incorporating 24 capillary architecture-related variables extracted via automated NVC analysis. Validation sets were employed to assess model performance.

Results: Of the 1490 capillaroscopies classified with consensus, 515 achieved full consensus. The model, evaluated on partial and full consensus datasets, achieved 0.912, 0.812 and 0.746 accuracy for distinguishing SSc from non-SSc, among SSc patterns, and between normal and non-specific patterns, respectively. When evaluated on full consensus only, accuracy improved to 0.910, 0.925 and 0.933. CAPI-Detect outperformed CAPI-Score, revealing novel capillary variables critical to ML-based classification.

Conclusions: CAPI-Detect, an ML-based model, provides an unbiased, quantitative analysis of capillary structure, shape, size and density, significantly improving capillaroscopic pattern identification.

Keywords: CatBoost algorithm; disease pattern; examiner consensus; machine learning-based model; nailfold capillaroscopy; quantitative analysis; software-based analysis; systemic sclerosis.

PubMed Disclaimer

Figures

Figure 1.
Figure 1.
Flowchart diagram of the study. Capillaroscopies with partial and full examiner consensus (considered the gold standard) to be software-analysed and, subsequently, used to train the machine learning–based models. Approximately 20% of capillaroscopies were reserved as a validation set, not used for training. For additional evaluation, the validation set was restricted to cases with full examiner consensus only, allowing for an assessment of matches and discrepancies between manual analysis and the machine learning–based algorithm. This restriction ensured a focus on higher-quality cases with clearer classification among examiners. The percentage of each disease pattern in the training and validation sets is indicated in parentheses. Nor: normal; NS: non-specific; SSc-a: active scleroderma pattern; SSc-e: early scleroderma pattern; SSc-l: late scleroderma pattern
Figure 2.
Figure 2.
Weight of the software-assessed variables on the machine learning–based models. The weights of each variable for the three models that form the algorithm are shown for the steps to discriminate between non-SSc and SSc pattern (A), between early, active and late within SSc patterns (B), and between normal and non-specific within non-SSc patterns (C). Variables are arranged in decreasing order of weight. MAD: mean apical diameter; MLW: mean limb width
Figure 3.
Figure 3.
Precision-recall curves for the trained models. Precision-recall curves evaluated the accuracy of trained models using the validation set, and the validation set limited to full consensus cases, which consisted of 298 and 100 randomly selected capillaroscopies, respectively. AUPRC values corresponding to each disease pattern are shown. AUPRC: area under the precision-recall curve
Figure 4.
Figure 4.
Confusion matrix comparing CAPI-Detect and CAPI-Score algorithm performance on the validation set for five-way pattern classification task. Two validation sets were assembled by randomly selecting 298 and 100 capillaroscopies with partial and full consensus, and full consensus only among examiners, respectively. Performance of machine learning-based CAPI-Detect and hand-crafted CAPI-Score algorithms for the five-way classification task [normal, non-specific (NS), early, active and late patterns] was evaluated with the validation sets. Confusion matrices display the performance of both algorithms. Accuracy for each pattern is indicated in percentages on the right-hand side of each matrix row

References

    1. van den Hoogen F, Khanna D, Fransen J et al. 2013 classification criteria for systemic sclerosis: an American college of rheumatology/European league against rheumatism collaborative initiative. Ann Rheum Dis 2013;72:1747–55. - PubMed
    1. Smith V, Vanhaecke A, Herrick AL et al. EULAR Study Group on Microcirculation in Rheumatic Diseases. Fast track algorithm: how to differentiate a “scleroderma pattern” from a “non-scleroderma pattern.”. Autoimmun Rev 2019;18:102394. - PubMed
    1. Cutolo M, Smith V. Detection of microvascular changes in systemic sclerosis and other rheumatic diseases. Nat Rev Rheumatol 2021;17:665–77. - PubMed
    1. Nitkunanantharajah S, Haedicke K, Moore TB et al. Three-dimensional optoacoustic imaging of nailfold capillaries in systemic sclerosis and its potential for disease differentiation using deep learning. Sci Rep 2020;10:16444. - PMC - PubMed
    1. Cutolo M, Trombetta AC, Melsens K et al. Automated assessment of absolute nailfold capillary number on videocapillaroscopic images: proof of principle and validation in systemic sclerosis. Microcirculation 2018;25:e12447. - PubMed