Leveraging Bayesian Networks for Automated Mobile Context Sharing
A Mobile Context Sharing System Using Activity and Emotion Recognition with Bayesian Networks
This paper presents a mobile context sharing system that automatically infers high-level user contexts, such as activities and emotions, using Bayesian Networks (BNs). By integrating a client-server architecture and a custom "ContextViewer" application, the system achieves an activity recognition accuracy of 80-95% for structured tasks like studying and sleeping.
TL;DR
This research tackles the friction in social networking caused by manual status updates. By proposing a client-server system that uses Bayesian Networks (BNs) to analyze raw sensor data (GPS, Bluetooth, Call Logs), the authors automate the recognition of high-level activities and emotions. The resulting ContextViewer app allows users to see their friends' real-time situations—like whether they are "studying" or "upset"—with high accuracy and minimal manual effort.
Problem & Motivation: The "Manual Annotation" Barrier
In the era of early social mobile apps, sharing "where you are" was easy via GPS, but sharing "what you are doing" or "how you feel" required manual input. This creates two problems:
- Usage Friction: Users often forget or are too busy to update their status.
- Uncertainty: Mobile sensor data is often noisy or missing (e.g., GPS signal loss indoors). The authors recognized that for context sharing to be truly "smart," the system must bridge the gap between low-level sensor logs and high-level human semantic meaning without draining the device's battery.
Methodology: Probability Over Heuristics
Instead of simple if-then rules, the system employs Bayesian Networks (BNs). This choice is critical because BNs are mathematically robust against the "dirty" data typical of mobile environments.
The System Architecture
The system follows a client-server split:
- The Client: Collects logs (Call, SMS, GPS, Bluetooth) and handles the UI.
- The Server: Performs the heavy lifting—preprocessing raw logs and running the BN inference engine.

Inference Logic
To recognize an activity like "Sport," the BN looks at five factors:
- Temporal: Is it the weekend?
- Spatial: Is the user at a park or a gym?
- Environmental: Is the weather clear? (People rarely play outdoor sports in heavy rain).
- Social/Device: Is the phone being used, or is it in a pocket?
The emotion inference is even more sophisticated, utilizing the Arousal-Valence model, where the inferred activity serves as a direct input to the emotion BN.

Experiments & Results
The authors validated the system with a two-week study involving university students.
SOTA Performance on Structured Activities
The BN models performed exceptionally well for structured routines:
- Study, Meal, Sleep: Precision and Recall reached 80% to 95%.
- Play, Rest: These performed worse because they are "irregular" and lack distinct environmental or temporal signatures.
User Experience and Privacy
The ContextViewer UI uses intuitive icons to represent states. A key feature is the "Privacy Protector," which uses a Boolean 'AND' logic: you can only see a friend's details if both you and the friend have explicitly granted each other permission.

The SUS (System Usability Scale) test resulted in high scores, particularly for "Ease of Use" and "Integrative Functions," suggesting that the automation of context provided a significant value-add over traditional manual apps.
Critical Analysis & Conclusion
Takeaway
The core achievement here is the successful transition from raw data to semantic context using a probabilistic model that respects the hardware limitations of mobile devices.
Limitations
- Irregular Activity Gap: The system still struggles with "free-form" activities like 'Resting' or 'Playing,' which don't have a rigid spatial or temporal pattern.
- Privacy Management: Setting rules for every individual friend can become a burden as the network grows.
Future Outlook
The next step for this tech lies in Contextual Recommendation. Imagine the system not only sharing that you are "hungry" but automatically suggesting a restaurant nearby to your group of friends who are also currently "free." By automating the "Who, What, and Where," the system sets the stage for the next generation of proactive social assistants.
