Skip to main content
QUICK REVIEW

[Paper Review] The CARP Mobile Sensing Framework -- A Cross-platform, Reactive, Programming Framework and Runtime Environment for Digital Phenotyping

Jakob E. Bardram|arXiv (Cornell University)|Jun 21, 2020
Mobile Health and mHealth ApplicationsHealth Professions11 citations
TL;DR

The CARP Mobile Sensing (CAMS) framework is a cross-platform, reactive, and extensible programming framework built for Flutter that enables unified, real-time data collection from mobile and wearable sensors—such as accelerometers, ECG monitors, and phone logs—while supporting data transformation and privacy-preserving operations. Evaluated through two real-world mHealth applications, CAMS demonstrates stability, scalability, and usability in digital phenotyping research.

ABSTRACT

Mobile sensing - i.e., the ability to unobtrusively collect sensor data from built-in phone sensors - has long been a core research topic in Ubicomp. A number of technological platforms for mobile sensing have been presented over the years and a lot of knowledge on how to facilitate mobile sensing has been accumulated. This paper presents the CARP Mobile Sensing (CAMS) framework, which is a modern cross-platform (Android / iOS) software architecture providing a reactive and unified programming model that emphasizes extensibility, maintainability, and adaptability. Moreover, the CAMS framework supports sensing from wearable devices such as an electrocardiography (ECG) monitor, and configuring data transformers. The latter allows to transform collected data to a standardized data format and to implement privacy-preserving data transformations. The paper presents the design, architecture, implementation, and evaluation of CAMS, and shows how the framework has been used in two real-world mobile sensing and mobile health (mHealth) applications. We conclude that CAMS provides a novel cross-platform application programming framework which has proved mature, stable, scalable, and flexible in the design of digital phenotyping and mHealth applications

Motivation & Objective

  • Address the need for a flexible, extensible framework to integrate mobile and wearable sensing into custom-purpose mHealth applications, rather than relying on generic research platforms.
  • Enable researchers to build participant-centered mHealth apps with real-time, unobtrusive data collection from diverse sensor sources.
  • Provide a unified, reactive programming model that simplifies data sampling, transformation, storage, and upload across platforms (Android/iOS).
  • Support privacy-preserving data transformations and secure data handling for clinical and research use.
  • Facilitate extensibility through modular plugins and integration with the Dart package ecosystem for third-party extensions.

Proposed method

  • Design a reactive, stream-based API using Dart and Flutter to enable non-blocking, asynchronous data sampling and processing.
  • Implement a modular architecture with extensible hooks for adding new sensor types, data transformations, storage backends, and upload protocols.
  • Integrate support for on-board sensors (e.g., accelerometer, GPS), off-board devices (e.g., ECG monitors), phone logs, and web services via standardized sampling packages.
  • Enable data transformation pipelines that include both functional transformations and privacy-preserving operations (e.g., anonymization, differential privacy).
  • Leverage the Flutter framework and Dart’s package manager for cross-platform deployment and reusable component sharing.
  • Use a domain model with clear separation of concerns between data acquisition, transformation, storage, and transmission to enhance maintainability and testability.

Experimental results

Research questions

  • RQ1Can a cross-platform, reactive programming framework effectively unify data collection from diverse mobile and wearable sensors in mHealth applications?
  • RQ2How does the CAMS framework support privacy-preserving data transformations while maintaining real-time performance and scalability?
  • RQ3To what extent can CAMS be extended to support custom sensors and data pipelines without compromising stability or developer usability?
  • RQ4How does CAMS compare to native sensing platforms in terms of performance, reliability, and developer productivity in real-world mHealth app development?
  • RQ5Can CAMS enable the creation of participant-centric mHealth applications that go beyond researcher-driven, configuration-only platforms?

Key findings

  • CAMS successfully enabled the development and deployment of two distinct, non-trivial mHealth applications—one for mental health and one for cardiovascular disease—demonstrating its real-world applicability.
  • The framework achieved performance comparable to native sensing platforms, with no observed issues in robustness during real-world app deployment.
  • Programmers found the framework useful and usable, with feedback from five experienced developers contributing to iterative improvements in the API and documentation.
  • The reactive, stream-based programming model allowed for efficient, non-blocking data processing, minimizing interference with app responsiveness.
  • The framework’s extensibility enabled the addition of new sensor types and data transformation functions, including privacy-preserving operations, through reusable plugins.
  • CAMS has been released with comprehensive documentation and integrates seamlessly with the Dart package ecosystem, supporting community-driven extension and reuse.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.