TL;DR
Anima is a personalized software keyboard that ditches generic dictionaries in favor of learning a user's unique vocabulary and temporal typing habits. By combining a weighted Trie-based prediction engine with a dynamic UI that shrinks unlikely keys, it achieves higher precision than standard commercial dictionaries while maintaining a low memory footprint.
What Problem Does This Paper Address?
Despite the massive adoption of smartphones, software keyboards (SKs) remain a bottleneck for user experience. Most commercial SKs rely on massive, generic dictionaries that fail to capture personal slang, professional jargon, or the unique dialects used by non-English speakers typing with Latin characters. Furthermore, small screen sizes lead to frequent mistypes.
Existing "auto-complete" solutions often frustrate users by suggesting words they never use or failing to adapt to the context of when a user is typing. The authors aim to solve these issues by creating a keyboard that is entirely user-centric, adaptive, and computationally efficient enough for mobile hardware.
Methods
The core of Anima is the decoupling of the Prediction Engine (PE) from the User Interface (UI).
- Prediction Engine (Weighted Tries): The PE uses a Trie data structure where each node represents a character and stores a weight based on how often the user has traversed that path. This allows for $O(1)$ time complexity for lookups, as the number of possible next characters (the keyboard keys) is fixed and small.
- Time-Awareness (TA): Recognizing that we type differently at 9:00 AM than at 9:00 PM, Anima partitions the day into $T$ segments. Each segment maintains its own weighted Trie, allowing the engine to prioritize words common to specific times of day.
- Dynamic UI Resizing: Instead of just suggesting words in a top bar, Anima’s UI shrinks the buttons for characters that the PE deems unlikely. This visually guides the user and increases the "empty space" between likely keys, reducing the physical probability of a mistype.
- Learning Accelerators: To avoid the "cold start" problem, Anima can crawl a user's past communications (like Twitter) to pre-train the dictionary.
- Pruning: To prevent the dictionary from growing indefinitely, the system uses a Least Recently Used (LRU) algorithm to forget words the user no longer uses, keeping the memory footprint lean.
Datasets
The authors evaluated Anima using a dataset of 27 million geo-located tweets collected from the UK over a two-month period. They focused on the top 100 most active authors to simulate long-term user behavior.
- Training sets: Varied from 0 to 1,500 tweets to measure learning speed.
- Test sets: Consisted of the subsequent 500 messages for each user.
- Baseline: Compared against the standard Google Android UK English dictionary (160,722 words).
Key Insights and Ideas
- Personalization Trumps Scale: A small, personalized dictionary learned from scratch outperformed a massive, static generic dictionary. This suggests that "knowing the user" is more valuable than "knowing the language."
- Temporal Context Matters: Incorporating time-awareness significantly improved prediction accuracy. The more granular the time partitions (up to a point), the better the precision.
- UI as a Filter: By shrinking keys, the keyboard acts as a real-time filter. This HCI approach acknowledges that human error is often physical (fat fingers) and provides a visual affordance to mitigate it.
- Architecture for Research: By defining a strict contract between the PE and UI (Figure 3), the authors created a modular system where researchers can test new UI concepts without rebuilding the underlying logic.
Key Results
- Precision: Anima, starting with no initial dictionary, achieved higher precision than the Google UK English dictionary approach, even with small training sets.
- Time-Awareness Gains: As shown in Table 1, increasing the number of time partitions ($T$) steadily improved mean precision. For example, moving from no time-awareness (Prec: .2387) to 24 partitions (Prec: .2465) showed a clear upward trend.
- Memory Efficiency: While the Google dictionary remains static and large, Anima's pruning mechanism successfully managed the dictionary size. Interestingly, even with the Google dictionary, the system continued to learn new words as the training set increased, highlighting the inadequacy of static dictionaries.
Limitations and Future Work
- Multilingual Complexity: While the engine is language-agnostic, supporting multiple languages simultaneously currently requires running separate instances of the PE, which could impact resources.
- Contextual Expansion: The authors plan to incorporate location-based features (e.g., typing differently at work vs. home) and "knowledge exchanging" between users with similar profiles (like co-workers).
- Data Sources: Future versions aim to use a wider variety of "Accelerators," such as emails and chat logs, to build a more comprehensive personal profile faster.
Summary updated