TL;DR
This paper introduces a privacy-preserving framework to build personal knowledge bases by automatically extracting structured data from smartphone push notifications. By leveraging the insight that most notifications are generated from fixed templates, the authors combine on-device pattern mining with server-side deep learning to turn messy notification text into actionable user insights with high accuracy and minimal overhead.
What Problem Does This Paper Address?
Personalized services—like virtual assistants (Siri, Google Assistant) and recommender systems—rely on a "personal knowledge base" to understand a user's habits, relationships, and interests. Traditionally, this data is scraped from emails, calendars, or SMS. However, these sources are often siloed within specific apps or require invasive, broad permissions that compromise user privacy.
Push notifications represent a "gold mine" of personal data because they act as a proxy for almost every app on a phone, summarizing everything from flight cancellations to social media interactions. The challenge is twofold:
- Scale: There are millions of apps, each using unique, evolving notification formats. Manually writing extraction rules is impossible.
- Privacy: Notifications contain highly sensitive information. Uploading raw notification logs to a central server for analysis is a non-starter for privacy-conscious systems.
Methods
The authors propose a three-phase approach that balances automated extraction with strict privacy guarantees.
1. On-Device Template Discovery
Instead of treating notifications as raw natural language, the system treats them as filled-in templates (e.g., "Hi $name, your order $item has shipped").
- Filtering & Clustering: The device filters out duplicates and uses the DBSCAN algorithm with a relative edit distance metric to group similar notifications.
- Pattern Mining: It uses Longest Common Subsequence (LCS) to find the "skeleton" of the notification. To distinguish between template text (like "shipped") and user parameters (like "Alice"), the system uses global word frequency. Words that appear frequently across many users are likely part of the template, while rare words are likely personal data.
2. Template Understanding (Semantic Analysis)
Once a template is identified, the system needs to know what it means.
- Bi-LSTM Model: The authors trained a Bidirectional Long Short-Term Memory (Bi-LSTM) network on the server. This model takes a template and predicts Knowledge Triple Templates (KTTs)—structured mappings like
<user, purchases, $param>. - Privacy Feature: Only the user-agnostic templates are sent to the server for this analysis; the actual personal values (the "fillers" for
$param) never leave the device.
3. Knowledge Extraction
Finally, the device matches incoming notifications against the learned templates and their semantic rules to generate "knowledge triples" (e.g., <user, name, Alice>), which are stored in a local personal knowledge base.
Datasets
The study evaluated the system using a massive real-world dataset:
- 119,289,901 notifications from 100,000 smartphone users in China.
- The data spanned 2,658 different apps over a 30-day period.
- For evaluation, the authors manually labeled a subset of 2,788 discovered templates to serve as ground truth for accuracy testing.
Key Insights and Ideas
- Notifications as Structured Data: The core "aha moment" is that notifications aren't just free-form text; they are programmatically generated. This makes them much easier to parse than general conversation if you can recover the underlying template.
- Global vs. Local Rarity: A clever trick for privacy is using global word frequencies to identify parameters. If "iPhone X" is rare globally but "Your order" is common, the system can safely assume "iPhone X" is the data to be extracted without a human ever seeing the user's specific notification.
- The "Proxy" Effect: Notifications provide a uniform way to access data that is otherwise "siloed" inside apps, effectively bypassing the need for specific API integrations for every single service.
Key Results
- High Accuracy: The template discovery process achieved a precision of 86.8%. The semantic analysis (understanding what the templates mean) achieved an F1-score of 83% for entirely new apps and 91% for new templates from known apps.
- Rich Data Source: Approximately 5.7% of all notifications were found to contain personal knowledge. On average, each user had at least 68 notifications containing extractable personal facts.
- Low Overhead: The system is highly efficient. Extracting knowledge from 10,000 notifications took only 5.8 seconds on a Nexus 5, making it practical for background operation on mobile devices.
Limitations and Future Work
- Privacy Leaks: The authors admit that if a template is discovered incorrectly, it might accidentally include personal information in the "template" sent to the server. They suggest using Named Entity Recognition (NER) to scrub templates before uploading.
- Ontology Scope: The current implementation focuses on 11 specific relations (e.g.,
livesNear,purchases,isFriendOf). Expanding this to a more comprehensive ontology, like Schema.org, is a goal for future versions. - Cold Start: The system requires a small pool of users to discover and share templates initially before the rest of the user base can benefit from them.
- Local Notifications: The dataset used only included remote push notifications; local notifications (generated by the phone itself) were not explored but could provide even more context.
Summary updated