Top-level API for MIMS-unit algorithm

Function to compute MIMS-unit value and estimate sensor orientation.

mims_unit() mims_unit_from_files()

Compute Monitor Independent Motion Summary unit (MIMS-unit)

sensor_orientations()

Estimates sensor orientation

custom_mims_unit()

Compute both MIMS-unit and sensor orientations with custom settings

shiny_app()

Run shiny app to compute MIMSunit values from files

File IO

Functions for importing or exporting data for various data formats.

import_actigraph_count_csv()

Import Actigraph count data stored in Actigraph summary csv format

import_actigraph_csv()

Import raw multi-channel accelerometer data stored in Actigraph raw csv format

import_actigraph_csv_chunked()

Import large raw multi-channel accelerometer data stored in Actigraph raw csv format in chunks

import_actigraph_meta()

Import The meta information stored in Actigraph RAW or summary csv file.

import_activpal3_csv()

Import raw multi-channel accelerometer data stored in ActivPal3 csv format

import_enmo_csv()

Import ENMO data stored in csv csv

import_mhealth_csv()

Import raw multi-channel accelerometer data stored in mHealth Specification

import_mhealth_csv_chunked()

Import large raw multi-channel accelerometer data stored in mHealth Specification in chunks.

export_to_actilife()

Export accelerometer data in Actilife RAW CSV format

Datasets

Processed datasets that store the results in the manuscript and supplementary material.

cv_different_algorithms

Coefficient of variation values for different acceleration data summary algorithms

measurements_different_devices

The mean and standard deviation of accelerometer summary measure for different acceleration data summary algorithms and for different devices.

sample_raw_accel_data

Sample raw accelerometer data

conceptual_diagram_data

The input accelerometer data used to generate the conceptual diagram (Figure 1) in the manuscript.

rest_on_table

A short snippet of raw accelerometer signal from a device resting on a table.

edge_case

A short snippet of raw accelerometer signal from a device that has ending data maxed out.

Signal Filtering

Functions to filter multi-channel accelerometer signal.

iir()

Apply IIR filter to the signal

bandlimited_interp()

Apply a bandlimited interpolation filter to the signal to change the sampling rate

Signal transformation

Functions to transform the multi-channel accelerometer signal.

compute_orientation()

Estimate the accelerometer orientation

sum_up()

Sum of multi-channel signal.

vector_magnitude()

Vector magnitude of multi-channel signal.

Signal extrapolation

Functions to extrapolate multi-channel accelerometer signal.

extrapolate() extrapolate_single_col()

Extrapolate input multi-channel accelerometer data

extrapolate_rate()

Get extrapolation rate.

Signal aggregation

Functions to aggregate over epochs of multi-channel accelerometer signal.

aggregate_for_mims()

Aggregate over epoch to get numerically integrated values.

aggregate_for_orientation()

Aggregate over epoch to get estimated accelerometer orientation.

Util functions

Utility functions.

sampling_rate()

Estimate sampling rate for multi-channel signal

parse_epoch_string()

Parse epoch string to the corresponding number of samples it represents.

cut_off_signal()

Cut off input multi-channel signal according to a new dynamic range

interpolate_signal()

Interpolate missing points and unify sampling rate for multi-channel signal

simulate_new_data()

Simulate new data based on the given multi-channel accelerometer data

clip_data()

Clip dataframe to the given start and stop time

segment_data()

Segment input dataframe into windows as specified by breaks. segment_data segments the input sensor dataframe into epoch windows with length specified in breaks.

Visualization helper functions

Functions to help visualizing signals, intermediate results and MIMS-unit results.

illustrate_signal()

Plot given raw signal in illustration diagram style.

illustrate_extrapolation()

Plot illustrations about extrapolation in illustration style.

generate_interactive_plot()

Plot MIMS unit values or raw signal using dygraphs interactive plotting library.