arXiv:2609.07408cs.LGSep 2026

Manuscript Offprint

arXiv:2609.07408

Impact of canny edge detection preprocessing on performance of machine learning models for Parkinson's disease classification

Sameer Bhat, Piotr Szczuko

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Sameer Bhat & Piotr Szczuko

This study investigates the classification of individuals as healthy or at risk of Parkinson's disease using machine learning (ML) models, focusing on the impact of dataset size and preprocessing techniques on model performance. Four datasets are created from an original dataset: DS0DS_0 (normal dataset), DS1DS_1 (DS0DS_0 subjected to Canny edge detection and Hessian filtering), DS2DS_2 (augmented DS0DS_0), and DS3DS_3 (augmented DS1DS_1). We evaluate a range of ML models-Logistic Regression (LR), Decision Tree (DT), Random Forest (RF), Gradient Boosting (GB), XGBoost (XBG), Naive Bayes (NB), Support Vector Machine (SVM), and AdaBoost (AdB)-on these datasets, analyzing prediction accuracy, model size, and prediction latency. The results show that while larger datasets lead to increased model memory footprints and prediction latencies, the Canny edge detection preprocessing supplemented by Hessian filtering (used in DS1DS_1 and DS3DS_3) degrades the performance of most models. In our experiment, we observe that Random Forest (RF) maintains a stable memory footprint of 61 KB across all datasets, while models like KNN and SVM show significant increases in memory usage, from 5.7-7 KB on DS0DS_0 to 102-220 KB on DS2DS_2, and similar increases in prediction time. Logistic Regression, Decision Tree, and Naive Bayes show stable memory footprints and fast prediction times across all datasets. XGBoost's prediction time increases from 180-200 ms on DS0DS_0 to 700-3000 ms on DS2DS_2. Statistical analysis using the Mann-Whitney U test with 100 prediction accuracy observations per model (98 degrees of freedom) reveals significant differences in performance between models trained on DS0DS_0 and DS2DS_2 (p-values < 1e-34 for most models), while the effect sizes measured by estimating Cliff's delta values (approaching -1) indicate large shifts in performance, especially for SVM and XGBoost. These findings highlight the importance of selecting lightweight models like LR and DT for deployment in resource-constrained healthcare applications, as models like KNN, SVM, and XGBoost show significant increases in resource demands with larger datasets, particularly when Canny preprocessing is applied.

Keywords Archimedes' spiral, Feature extraction, Machine learning, Parkinson's disease

Over one million people in the U.S. have Parkinson's disease (PD), a number that is expected to rise to 1.2 million by 2030. This condition affects more than 10 million people globally, with approximately 60,000 new diagnoses occurring annually in the United States alone¹. PD is a neurodegenerative condition that affects motor function and, in severe cases, can also impact cognitive abilities². Symptoms of PD can vary widely, encompassing both movement difficulties and non-motor signs like cognitive impairment and depression³. Primarily affecting older adults, PD is caused by the death of dopaminergic neurons in the brain's substantia nigra⁴. One of the early signs of PD can be issues with handwriting, which affects millions of people worldwide. While clinical diagnosis relies on examining symptoms and medical history, recent studies are exploring handwriting changes due to its prevalence⁴⁻⁹. Modern healthcare requires effective early detection tools, particularly since initial signs of conditions may appear before retirement, which can reduce patients' work capacities. The Unified Parkinson's Disease Rating Scale (UPDRS) and its revised version by the Movement Disorder Society (MDS-UPDRS) serve as guidelines for clinical assessments of PD¹⁰⁻¹³. However, the accuracy of clinical diagnoses can vary, which has led to the exploration of alternative methods, such as computer-based handwriting analysis⁴,⁶,¹⁴⁻¹⁸. Changes in handwriting, especially micrographia, may serve as a potential biomarker for PD¹⁹⁻²¹.

Faculty of Electronics, Telecommunications and Informatics, Multimedia Systems Department, Gdansk University of Technology, Narutowicza 11/12, 80-233 Gdansk, Poland. email: sameer.bhat@pg.edu.pl

Scientific Reports | (2025) 15:16413

| https://doi.org/10.1038/s41598-025-98356-7

natureportfolio

This paper reviews the diagnosis of PD through handwriting spiral analysis, emphasizing the role of machine learning (ML). Given ML's promise in identifying PD via such analyses, it has the potential for early detection, monitoring, and improving patient outcomes 22,23^{22,23}. Handwriting is a complex skill that involves cognitive, visual, and motor abilities. Although handwriting difficulties are not a diagnostic criterion for PD, they often lead individuals to seek medical attention. Recent studies have investigated the use of ML to assess the severity of PD. These studies propose improved algorithms and utilize MRI scans and deep learning techniques for more accurate classification of the disease 16,24−26^{16,24-26}. Other approaches utilize ML to predict PD with non-motor symptoms, extracting features from digital drawing tests or employing convolutional neural networks (CNNs) for end-to-end processing of handwriting images 7,27,28^{7,27,28}. Research by 29^{29} introduces a Continuous Convolution Network (CC-Net) designed to recognize writing disorders based on hand-drawn images. 30^{30} evaluates the role of ML in assessing neurocognitive features associated with PD, achieving high accuracy in distinguishing between individuals with PD and healthy controls. Additionally, 31^{31} conducts spiral drawing assessment tests using ML on both static and dynamic drawings, demonstrating impressive accuracy in predicting PD. Recent developments have explored innovative methods that surpass existing benchmarks, 32^{32} demonstrates superior performance using deep convolutional neural networks (CNNs) combined with transfer learning. Additionally, 33^{33} utilizes computer vision and machine learning to predict PD from hand-drawn wave and spiral images. Furthermore, ML, particularly CNNs, has been shown to outperform traditional classifiers in the analysis of EEG signals 34^{34}. Diverse CNNs, SVM classifiers, and SqueezeNet CNNs are effective in analyzing spiral drawings 35,36^{35,36}. Tablet-based technologies utilizing random forest classifiers demonstrate high accuracy in Parkinson's disease detection 37^{37}. ML demonstrates considerable potential for detecting Parkinson's disease through handwriting analysis. It plays a crucial role in the accurate diagnosis, classification, and monitoring of the disease by utilizing early signs and various modalities, including handwriting analysis, neurocognitive features, and imaging techniques. These advancements illustrate the evolving landscape of Parkinson's disease diagnosis and highlight ML's contribution to improving diagnostic accuracy, accessibility, and early detection. This promising direction suggests a bright future for research in neurodegenerative diseases 4,14^{4,14}.

As advancements in PD detection continue, this study contributes to the evolving field by addressing an important aspect that is often overlooked: the memory requirements of ML models used for predicting PD. While many studies have developed ML and deep learning models for PD diagnosis, this research fills a critical gap by focusing on the memory footprint and prediction latency of these models. The main motivation for this study arises from the important role that ML models play in predicting and classifying PD. This aligns with the growing demand for applications in healthcare systems that prioritize low computational power and minimal memory usage. By examining the memory requirements of ML models, particularly in resource-constrained devices or edge computing platforms, this study aims to improve the practicality and accessibility of PD diagnosis. Linking this effort to the broader context of PD research highlights a multidimensional approach. Advancements in ML techniques not only enhance diagnostic accuracy but also help address practical challenges in healthcare applications. As the field of PD detection continues to evolve, studies like these pave the way for improved diagnostic capabilities and better patient outcomes.

Research contribution

The main contributions of this study are as follows:

  • Comparative analysis of ML models: The study compares various ML models to classify patients as either healthy or affected by PD. This analysis helps identify the most effective models for accurate diagnosis.

  • Exploration of feature space: The research explores the feature space to detect essential characteristics for training and evaluating the ML models. This investigation sheds light on critical features that contribute to accurate predictions.

  • Explainability of ML models: The study prioritizes explainable ML, providing insights into the feature extraction process and analysis. Understanding the reasoning behind model decisions enhances trust and interpretability in clinical applications.

  • Memory-efficient models: By examining the memory footprint of different ML models trained on two datasets, the study identifies models with low memory requirements. This finding is crucial for implementing ML-based systems on memory-constrained or edge-computing devices.

  • Prediction time analysis: The study discusses prediction times for each ML model. It compares the prediction times of different models, providing valuable information on the computational efficiency of the models, which is essential for real-time clinical applications.

References (70)