Introduction
The proliferation of wearable technology has provided researchers with unprecedented access to high-frequency physiological data. However, the lack of standardization across hardware vendors has created a fragmented ecosystem. devicely is an open-source Python package designed to bridge this gap by providing a unified interface for reading, de-identifying, and writing wearable sensor data. By automating the "data janitor" work, it allows researchers to focus on analysis while ensuring participant privacy and research reproducibility.
The Fragmentation Problem
The wearable market is currently a "Wild West" of data formats. Vendors like Empatica, Shimmer, and Spacelabs each employ proprietary file structures and metadata standards. This fragmentation presents two primary challenges:
- Interoperability: Researchers must often write bespoke scripts to parse data for every new device, a process that is both time-consuming and prone to error.
- Privacy and Reproducibility: While sharing raw data is a cornerstone of reproducible science, timestamps can inadvertently reveal sensitive information about a participant's identity or location. Existing tools often lack specialized features for de-identifying time-series datasets without compromising their scientific utility.
Methods and Architecture
The devicely package acts as a standardized plumbing layer for biosignal analysis. It is built upon a consistent API that leverages the power of Pandas DataFrames for data manipulation. The core functionality is centered around three primary methods:
read(): Encapsulates the complex preprocessing required for different wearables, parsing proprietary files into familiar Python structures.timeshift(): The primary de-identification tool. It shifts all time-related data points by a specific or random interval. This preserves the temporal relationships (e.g., inter-beat intervals) essential for signal analysis while obscuring the actual date and time of the experiment.write(): Enables a "round-trip" workflow by allowing users to write processed, de-identified data back into a format compatible with the original reader class.
As illustrated in the package structure, devicely is designed for extensibility. Developers can integrate new devices by following a specific class structure, ensuring that the library can grow alongside the evolving wearable market.
Supported Devices and Applications
devicely provides built-in support for several prominent research-grade wearables and formats, including:
- Empatica E4 (physiological monitoring)
- Spacelabs (blood pressure monitoring)
- Everion (multi-sensor armbands)
- Faros (ECG)
- Shimmer (IMU and biophysical sensors)
The utility of the package has been validated in real-world research, notably the HYPE study, which utilized devicely to manage data for predicting blood pressure from photoplethysmogram (PPG) signals.
Key Insights: Privacy via Relative Time
A central insight of this work is that for the majority of biosignal research, absolute time (e.g., a specific calendar date) is irrelevant. What matters is the relative time—the precise intervals between physiological events. Timeshifting provides an elegant solution that satisfies privacy requirements without sacrificing scientific integrity. By focusing on the "pre-analysis" phase of the data pipeline, devicely fills a critical gap left by other libraries that focus primarily on feature extraction.
Conclusion and Future Work
devicely successfully reduces the technical barriers to multi-modal wearable research. By providing an open-source, MIT-licensed tool available via PyPI and Conda-forge, the authors have created a foundational resource for the biosignal community. Future development will depend on community contributions to expand device coverage and address the challenges posed by highly encrypted or closed proprietary formats. Ultimately, devicely serves as a model for privacy-by-design in the management of sensitive time-series data.
Summary updated