A Dual-Use Framework for Clinical Gait Analysis: Attention-Based Sensor Optimization and Automated Dataset Auditing

Hamidreza Sadeghsalehi · 2025

Read A Dual-Use Framework for Clinical Gait Analysis: Attention-Based Sensor Optimization and Automated Dataset Auditing by Hamidreza Sadeghsalehi (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-2511-02047.txt.

Introduction

Hamidreza Sadeghsalehi builds a deep learning system for analysing how people walk, using wearable sensors, with two jobs in mind. Gait analysis helps clinicians manage nerve and joint conditions, but the models can quietly absorb biases hidden in their training data. The framework uses attention across several sensor streams, applied to a multi-cohort dataset covering Parkinson's disease, osteoarthritis, and stroke screening tasks.

The attention patterns exposed a serious flaw in the public dataset: for two screening tasks the model relied almost entirely on the right foot because the data itself was heavily one-sided. Sadeghsalehi presents the auditing ability as the main contribution, with sensor combinations suggested by the model as leads for future testing.

Catalog record

CREATORHamidreza Sadeghsalehi
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE32 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2511-02047

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

A Dual-Use Framework for Clinical Gait Analysis: Attention-Based Sensor Optimization and Automated Dataset Auditing Hamidreza Sadeghsalehi Abstract Background: Objective gait analysis using wearable sensors is critical for managing neurological and orthopedic conditions. However, optimizing sensor placement for specific clinical tasks and mitigating the impact of hidden dataset biases on artificial intelligence (AI) models remain significant challenges. Methods: A multi-stream, attention-based deep learning model was applied to the Voisard et al. (2025) multi-cohort gait dataset, addressing four binary classification tasks: Parkinson’s Disease (PD) screening, Osteoarthritis (OA) screening, post-stroke asymmetry detection (CVA), and a differential diagnosis (PD vs. CVA). We implemented strategies to mitigate severe class imbalance and evaluated the model using imbalance-robust metrics (e.g., Balanced Accuracy, MCC) and bootstrapped confidence intervals. The model’s primary outputs were classification performance and a quantitative map of learned sensor importance weights for four body locations: Head (HE), Lower Back (LB), Left Foot (LF), and Right Foot (RF). Results: The model’s attention mechanism identified distinct, task-specific sensor synergies, such as a novel Head-Right-Foot (HE-RF) combination for PD screening and a Head-Left-Foot (HE-LF) combination for the complex PD-vs-CVA differential diagnosis. Critically, the model functioned as an automated data auditor by discovering a severe laterality confound in the dataset. For both OA and CVA screening—tasks where bilateral information is clinically essential—the model assigned over 70% of its attention exclusively to the Right Foot sensor, with near-zero (e.g., <0.1%) attention to the Left Foot. This counter-intuitive result, confirmed by statistically significant 95% CIs, was a direct reflection of a severe laterality bias in the patient cohorts (15/0 right-sided OA; 47/2/0 right-dominant CVA) and not a valid clinical finding. Conclusion: The attention-based framework is a powerful dual-use tool. Its primary methodological contribution is its function as an automated data auditor capable of discovering and quantifying hidden dataset biases, a critical step for responsible AI development. Concurrently, when applied to valid data subsets, it provides a data-driven method for identifying minimal, clinically relevant sensor sets (e.g., HE+RF for PD) to optimize future clinical monitoring protocols. K eywords Digital Biomarkers \cdot Gait Analysis \cdot Wearable Sensors \cdot Deep Learning \cdot Attention Mechanism \cdot Model Interpretability \cdot Dataset Bias \cdot Data Auditing 1 Introduction Gait impairment is a cardinal symptom and a major contributor to disability across a wide spectrum of chronic health conditions, particularly in neurology and orthopedics [ 1 , 2 , 3 ] . In Parkinson’s Disease (PD), characteristics such as reduced walking speed, shortened step length, and increased gait variability are not merely symptoms but are core to the disease’s motor pathology and progression [ 1 , 4 ] . Similarly, in conditions like osteoarthritis (OA) or following a cerebrovascular accident (CVA), alterations in gait symmetry and kinematics are primary indicators of disease severity and functional limitation [ 3 , 2 ] . Traditional clinical assessment of gait, however, often relies on observational scoring and qualitative descriptions; while valuable, these methods can lack the sensitivity and objectivity required to track subtle changes over time, evaluate the efficacy of interventions, or develop precise diagnostic and prognostic models [ 5 , 6 ] . This gap has created a clear clinical imperative for quantitative, objective, and scalable methods for gait assessment. The advent of wearable sensors, particularly inertial measurement units (IMUs), has catalyzed a paradigm shift in movement analysis [ 7 , 8 ] . These low-cost, unobtrusive devices can capture high-fidelity kinematic data—including acceleration and angular velocity—in ambulatory, real-world settings, overcoming the spatial and temporal limitations of traditional laboratory-based, optical motion capture systems [ 5 ] . The resulting high-dimensional time-series data streams offer a rich substrate for the development of digital biomarkers capable of objectively quantifying pathological gait patterns [ 9 ] . Large-scale, clinically annotated datasets, such as the comprehensive collection provided by Voisard et al. (2025), are instrumental in bridging the gap between raw sensor data and translational clinical research, providing the necessary scale and diversity to develop robust analytical models [ 10 ] . Despite these advances, a fundamental and often overlooked question persists: for a given clinical question, what is the minimal yet sufficient set of sensors required for an accurate assessment [ 11 , 12 , 13 ] ? Current research and clinical protocols frequently employ either a large array of sensors, which can be burdensome for patients and computationally intensive, or rely on heuristic choices for sensor placement. This one-size-fits-all approach is suboptimal, as different pathologies manifest through distinct kinematic signatures across different body segments. For example, the systemic motor deficits of PD, which affect both axial trunk control and appendicular limb movement, are fundamentally different from the localized joint-level impairments of unilateral knee OA [ 1 , 3 ] . A logical and more efficient paradigm would therefore be task-dependent, tailoring the sensor configuration to the specific clinical question being asked. Deep learning models, including Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs), have emerged as state-of-the-art for analyzing complex time-series data from wearable sensors, demonstrating strong performance in tasks ranging from fall risk classification to gait recognition [ 14 , 15 , 16 ] . Within this domain, the attention mechanism, a technique originally developed for natural language processing, offers a powerful means of enhancing both model performance and interpretability [ 17 ] . By enabling a model to dynamically assign importance weights to different segments of its input, attention can be adapted for multi-sensor fusion, learning the relative contribution of each sensor’s data stream to a final prediction [ 18 ] . While the reliability of attention mechanisms for explaining individual predictions has been a subject of debate—as single-instance attention maps can be inconsistent across model initializations—their utility can be harnessed more robustly [ 19 , 20 , 21 , 22 ] . By aggregating attention weights across an entire cohort, the mechanism can be transformed from a potentially fragile explanator into a stable and powerful tool for discovering aggregate, population-level insights about feature importance for a given task. Parallel to the challenge of optimizing sensor configurations is the pervasive and critical problem of dataset bias in medical AI [ 23 , 24 , 25 , 26 , 27 , 28 ] . AI models are susceptible to learning and amplifying biases present in their training data, which can lead to poor generalization, reinforcement of health inequities, and clinically harmful outcomes [ 23 , 25 ] . Confounding variables—extraneous factors correlated with both input and outcome—can cause a model to learn spurious associations [ 29 ] . For instance, if a disease cohort is significantly older than a control cohort, a model may inadvertently become a highly accurate age detector rather than a true disease detector [ 25 ] . This underscores the urgent need for rigorous data auditing and governance as a foundational step in responsible AI development [ 29 , 28 , 27 , 30 ] . However, such auditing is typically a manual, resource-intensive process, ill-equipped to uncover subtle or unexpected confounders in large, complex datasets [ 29 ] . This contrasts with our work, which explores an emergent auditing capability embedded within the model itself. This paper presents a dual contribution to the fields of digital health and medical AI. First, we introduce a novel,

Read the complete text