Designing a Secure and Resilient Distributed Smartphone Participant Data Collection System

Foad Namjoo, Neng Wan, Devan Mallory, Yuyi Chang, Nithin Sugavanam, Long Yin Lee, Ning Xiong, Emre Ertin, Jeff M. PhillipsarXiv 2025 · OpenReview

TL;DR

This paper introduces MotionPI, a novel smartphone-based system designed for secure and resilient collection of behavioral and health data in real-world studies. It addresses the challenges of intermittent connectivity, limited battery life, and participant privacy by integrating passive sensor data with on-demand surveys, all while ensuring encrypted local and cloud storage.

What Problem Does This Paper Address?

Conducting real-world health studies using mobile and wearable devices presents a significant set of challenges. Researchers need to collect fine-grained data about individuals' movements, activities, and health status. However, existing systems often struggle with:

  • Intermittent Connectivity: Participants may not always have a stable internet connection, leading to data loss or delays.
  • Battery Life: Continuous data collection can quickly drain smartphone and wearable batteries, impacting usability and adherence.
  • Participant Burden: Complex systems can be difficult for participants to use, leading to low engagement and incomplete data.
  • Data Security and Privacy: Health data is highly sensitive, requiring robust encryption and secure storage to protect participant privacy and comply with regulations like HIPAA.
  • Scalability: Studies often involve a large number of participants, requiring a system that can handle significant data volume and complexity.

This paper aims to bridge this gap by proposing a system that is inexpensive, automated, easy to use, reliable, and prioritizes private patient data.

Methods

MotionPI is a comprehensive ecosystem built around a smartphone application. Its key methodological contributions include:

  • Integrated Data Collection: It combines passive data collection from smartphone sensors (like GPS) and BLE-connected wristbands (for motion and heart rate) with active data collection via Ecological Momentary Assessment (EMA) surveys.
  • Event-Triggered EMA: Surveys can be triggered not only randomly but also based on specific events, such as detected physical activity (using the ENMO metric from wristbands) or time of day. This reduces participant burden by prompting them only when relevant.
  • Dual Storage Architecture: Data is stored both locally on the smartphone (encrypted) and on a secure cloud server (also encrypted). This provides redundancy and ensures data availability even with intermittent connectivity.
  • Secure and Resilient Cloud Backend: The backend is implemented using Express.js and a MongoDB container, ensuring persistent, highly available storage. It employs JWT-based token authentication for device-level access control, enabling secure offline sign-in.
  • Efficient Resource Management: The system is designed for low-power environments, minimizing battery drain through predominantly screen-off operation and efficient Bluetooth communication.
  • Custom File System for Wristbands: The wristbands utilize a FAT16 file system with a custom Flash Translation Layer (FTL) that separates the file allocation table from data storage. This design enhances durability by reducing wear leveling on NAND flash and simplifies data extraction.

Datasets

The paper does not explicitly mention training or evaluation on specific public datasets. Instead, MotionPI is designed for deployment in real-world health studies. The system is currently being actively deployed in a large NIH-funded study, which serves as its primary evaluation context.

Key Insights and Ideas

  • The Power of Contextual EMA: Triggering surveys based on physical activity or time of day significantly reduces participant burden and increases the relevance of the collected data, making adherence more likely.
  • Robustness Through Redundancy: The dual local and cloud storage strategy is crucial for handling the realities of mobile device usage, where network connectivity is often unreliable.
  • Security by Design: Integrating encryption at multiple levels (transmission, local storage, cloud storage) and employing token-based authentication are essential for protecting sensitive health information.
  • Optimizing for Low Power: The system's design prioritizes minimal battery drain, a critical factor for long-term participant engagement in mobile health studies.
  • Custom FTL for Wearables: The specialized file system implementation on the wristbands is a clever approach to enhance data durability and simplify data retrieval, especially in resource-constrained environments.

Key Results

The paper highlights the successful deployment and operation of MotionPI in a large NIH-funded study. Key qualitative and quantitative findings include:

  • Low Battery Drain: The system sustains approximately 3% battery drain per hour over 14-hour daily windows, which is lower than manufacturer estimates for continuous phone usage.
  • High Data Throughput: The system streams approximately 7.7 million data records per day to the cloud, sufficient for real-time monitoring and batch analysis.
  • Seamless Data Gathering: The system has been successful in seamlessly and securely gathering all requisite data and storing it for easy monitoring and access.
  • Practical Solution: MotionPI demonstrates a practical and scalable solution for secure mobile data collection in cyber-physical health studies, accommodating Bluetooth peripherals, triggered events, EMA surveys, and secure distributed data storage.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the wristband file system is slower during initial file creation due to NOR flash speed.
  • While the system is designed for intermittent connectivity, extreme or prolonged network outages could still pose challenges for real-time monitoring.
  • Future Work:
    • The paper suggests that the system design supports longitudinal studies with hundreds of participants and facilitates online and complex analysis, implying ongoing work in data analysis and interpretation.
  • The system's adaptability to various participatory data collection studies is highlighted, suggesting potential for broader application.

Summary updated

Abstract

Real-world health studies require continuous and secure data collection from mobile and wearable devices. We introduce MotionPI, a smartphone-based system designed to collect behavioral and health data through sensors and surveys with minimal interaction from participants. The system integrates passive data collection (such as GPS and wristband motion data) with Ecological Momentary Assessment (EMA) surveys, which can be triggered randomly or based on physical activity. MotionPI is designed to work under real-life constraints, including limited battery life, weak or intermittent cellular connection, and minimal user supervision. It stores data both locally and on a secure cloud server, with encrypted transmission and storage. It integrates through Bluetooth Low Energy (BLE) into wristband devices that store raw data and communicate motion summaries and trigger events. MotionPI demonstrates a practical solution for secure and scalable mobile data collection in cyber-physical health studies.
BibTeX
@misc{namjoo2025designing,
  author = {Foad Namjoo and Neng Wan and Devan Mallory and Yuyi Chang and Nithin Sugavanam and Long Yin Lee and Ning Xiong and Emre Ertin and Jeff M. Phillips},
  title = {{Designing a Secure and Resilient Distributed Smartphone Participant Data Collection System}},
  year = {2025},
  eprint = {2510.19938},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.19938},
}
Figure