Analysis code for class-weighted wrist accelerometry

Published: 8 October 2026| Version 1 | DOI: 10.17632/tw5jpg3zgr.1
Contributor:
qilu deng

Description

This record contains analysis and training code associated with the manuscript “Class-weighted learning for wrist accelerometry: group-level bias and individual error in moderate-to-vigorous activity time”. The package includes Python scripts for data preparation, model training, statistical analysis and plotting, together with environment configuration files, method documentation and retained licensing terms. Source datasets, prepared data, derived experimental results, generated reports, figure files, trained model weights and sample-level predictions are not included. CAPTURE-24 is available from its original repository at https://doi.org/10.5287/bodleian:NGx0JOMP5. PAMAP2 is available at https://doi.org/10.24432/C5NW2H. Analyses that read stored outputs require the corresponding numerical inputs to be generated or supplied separately. The dependency files contain different version sets and have not been reconciled into a single installation-tested environment. Third-party materials remain subject to their applicable licensing terms.

Files

Steps to reproduce

1. Download and extract Code_Only.zip, then read README.md and README_BSPC.md. 2. Obtain CAPTURE-24 and PAMAP2 from their original repositories and comply with their access and licensing terms. 3. Prepare the required inputs following the supplied scripts, feature definitions and external-validation protocol. 4. Run the relevant training and analysis workflows using the documented configurations. Stored-output analysis scripts require their numerical input files to be generated or supplied separately; these files are not included in this record. The archived environment configuration and requirements file contain different dependency versions. Installation compatibility and a complete end-to-end rerun have not been verified for this code-only package.

Categories

Machine Learning

Licence