TL;DR
SensingKit is a new, open-source, multi-platform framework for mobile sensing that supports both iOS and Android devices. It allows researchers to easily collect rich sensor data (motion, location, proximity) from a large number of users for large-scale experiments, addressing a significant gap in existing tools.
What Problem Does This Paper Address?
The proliferation of smartphones with sophisticated sensors has opened up exciting possibilities for large-scale mobile sensing experiments and applications. However, a major hurdle for researchers has been the lack of a universal, easy-to-use framework that can collect data from both dominant mobile platforms: iOS and Android. Existing tools are often platform-specific (e.g., Android-only) or limited in their sensing capabilities. This fragmentation makes it challenging and time-consuming to design and deploy studies involving a diverse user base, hindering the advancement of research in areas like ubiquitous computing, human-computer interaction, and behavioral science.
Methods
SensingKit is built on a client-server architecture. The client libraries are developed natively for iOS (Objective-C) and Android (Java), ensuring optimal performance and integration. These libraries provide modular "sensing modules" that can capture various data types:
- Motion: Accelerometer, Gyroscope, Magnetometer, and even fused data like Linear Acceleration and Gravity. It also supports activity classification (walking, running, etc.).
- Location: GPS data for outdoor positioning.
- Proximity: Utilizes Bluetooth Smart (4.0) for low-power device-to-device proximity sensing.
- Battery: Monitors the device's battery level.
Data is managed by a ModelManager and transmitted to the server via a CommunicationManager over any internet connection. If data remains unsent for over 24 hours, it will attempt transmission over a cellular network.
The server framework is implemented in Python and comprises:
- Web Services: Handles client registration, time synchronization, and data reception.
- Plug-in System: Allows for pre-processing of incoming data using custom Python plug-ins. A mandatory
data-syncplug-in ensures temporal consistency, and optional plug-ins for interpolation and magnitude vector calculation are available. - Data Extraction Module: Exports collected data in CSV or JSON formats.
A key technical innovation is the use of the device's CPU time base register for timing sensor measurements, mitigating issues caused by manual system time changes. For devices with motion co-processors (like iPhone 5S and Nexus 5), SensingKit leverages this for activity recognition, minimizing battery drain.
Datasets
Not discussed in the paper. The paper focuses on the framework's architecture and evaluation through battery consumption measurements on specific devices.
Key Insights and Ideas
- Bridging the iOS/Android Divide: The most significant contribution is providing a unified sensing solution for both major mobile platforms, dramatically lowering the barrier to entry for large-scale mobile sensing studies.
- Bluetooth Smart for Proximity: Leveraging Bluetooth Smart (4.0) for proximity sensing is a smart move, offering significantly reduced power consumption and higher sampling rates compared to classic Bluetooth, crucial for continuous sensing.
- Robust Timing Mechanisms: The reliance on CPU time base registers for timestamping is a clever way to ensure data integrity, even when users or the system alter the device's clock.
- Leveraging Hardware Accelerators: Utilizing motion co-processors on newer devices for activity recognition is a practical approach to optimize battery life without sacrificing functionality.
- Extensibility is Key: The modular design of the client libraries makes it straightforward to add new sensing modules, ensuring the framework can adapt to future sensor technologies and research needs.
Key Results
The paper presents a use-case demonstration focusing on battery consumption of SensingKit running on an iPhone 5S, Google Nexus 4, and Samsung Galaxy S2.
- Samsung Galaxy S2: Lasted 13.1 hours capturing motion at 100Hz (without proximity).
- iPhone 5S: Lasted 11.5 hours with motion at 100Hz and proximity sensing (1Hz), and 20.3 hours with motion only.
- Google Nexus 4: Lasted 6.1 hours with motion at 200Hz and proximity sensing (1Hz scan only), and 6.4 hours with motion only.
The authors note that proximity sensing has a noticeable impact on battery life, with a 43.3% decrease on the iPhone 5S and a 4.7% decrease on the Nexus 4 (which only supported scan mode). They also highlight that even in "idle" mode (only sensing battery), SensingKit consumes 6-7% of the device's CPU usage.
Limitations and Future Work
Limitations: * The battery consumption figures are specific to the tested devices and configurations and should not be used for direct cross-device comparison. * Due to platform limitations, the Nexus 4 could only scan for Bluetooth devices, not broadcast its presence. * The iPhone's battery level resolution is limited to 5%, while Android offers 1%.
Future Work:
* Continue development and extend sensing capabilities.
* Evaluate the framework further.
* Release the framework as open-source to the public.
* The authors plan to make more information and the complete source code available on www.sensingkit.org.
Summary updated