Observed since 20 Oct, 17:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A package to extract meaningful health information from large accelerometer datasets e.g. how much time individuals spend in sleep, sedentary behaviour, walking and moderate intensity physical activity

A tool to extract meaningful health information from large accelerometer datasets. The software generates time-series and summary metrics useful for answering key questions such as how much time is spent in sleep, sedentary behaviour, or doing physical activity.
Minimum requirements: Python 3.7 to 3.10, Java 8 (1.8)
The following instructions make use of Anaconda to meet the minimum requirements:
$ conda create -n accelerometer python=3.9 openjdk pip
This creates a virtual environment called accelerometer with Python version 3.9, OpenJDK, and Pip.$ conda activate accelerometer
You should now see (accelerometer) written in front of your prompt.accelerometer:
$ pip install accelerometer
You are all set! The next time that you want to use accelerometer, open the Anaconda Prompt and activate the environment (step 4). If you see (accelerometer) in front of your prompt, you are ready to go!
To extract summary movement statistics from an Axivity file (.cwa):
$ accProcess data/sample.cwa.gz
<output written to outputs/sample/sample-summary.json>
<time series output written to outputs/sample/sample-timeSeries.csv.gz>
Movement statistics will be stored in a JSON file:
{
"file-name": "sample.cwa.gz",
"file-startTime": "2014-05-07 13:29:50",
"file-endTime": "2014-05-13 09:49:50",
"acc-overall-avg(mg)": 32.78149,
"wearTime-overall(days)": 5.8,
"nonWearTime-overall(days)": 0.04,
"quality-goodWearTime": 1
}
See Data Dictionary for the list of output variables.
Actigraph and GENEActiv files are also supported, as well as custom CSV files. See Usage for more details.
To process multiple files in a folder, you must specify which file extensions to process:
$ accProcess data/folder_with_cwa_files/ --fileExtensions cwa
<outputs written to outputs/file1/, outputs/file2/, etc.>
You can specify multiple extensions (comma-separated):
$ accProcess data/my_data/ --fileExtensions cwa,bin,csv
The tool automatically includes compressed versions (.gz, .zip, .bz2, .xz), so --fileExtensions cwa will match both .cwa and .cwa.gz files.
To search subdirectories recursively:
$ accProcess data/my_data/ --fileExtensions cwa --recursive True
The batch processor will:
To plot the activity profile:
$ accPlot data/sample-timeSeries.csv.gz
<output plot written to data/sample-timeSeries-plot.png>

Some systems may face issues with Java when running the script. If this is your case, try fixing OpenJDK to version 8:
$ conda install -n accelerometer openjdk=8
Interpreted levels of physical activity can vary, as many approaches can be taken to extract summary physical activity information from raw accelerometer data. To minimise error and bias, our tool uses published methods to calibrate, resample, and summarise the accelerometer data.

See Methods for more details.
When using this tool, please consider the works listed in CITATION.md.
See LICENSE.md.
We would like to thank all our code contributors and manuscript co-authors.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 7.5.0 | 9 Nov 2025 | 20 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 17:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:df64d6e2b5ef623c478662c08a9c60940c7258298c7e22644ee42b6b3ab3f8fc