Fast Switch Scanning Keyboards: Minimal Expected Query Decision Trees

Matt Higger, Mohammad Moghadamfalahi, Fernando Quivira, Deniz ErdogmusarXiv 2016

Introduction

For individuals with severe motor disabilities, communication often relies on Augmentative and Alternative Communication (AAC) systems. A common method is "switch scanning," where a system highlights sets of characters and the user activates a switch when their desired letter is contained in that set. While functional, these systems can be agonizingly slow due to the sequential nature of the selection process.

The switch scanning process: queries are grouped into trials, which form a decision sequence to select a character.

A recent study from Northeastern University, titled "Fast Switch Scanning Keyboards: Minimal Expected Query Decision Trees," proposes a mathematical framework to optimize these layouts. By treating keyboard design as a decision tree optimization problem, the researchers aimed to minimize the Expected Queries Per Decision (EQPD), effectively finding the mathematical speed limit for switch-based typing.

Methodology: Karp Codes and Optimization

Traditional scanning keyboards often use rigid "row-item" or "block-row-item" structures. These are not mathematically optimized for the varying frequencies of letters in a language. For instance, high-frequency letters like 'E' or 'Space' should ideally require the fewest queries to select.

Karp Codes for Unequal Costs

The researchers framed the layout design as a Huffman coding problem with unequal letter costs. In "timed" scanning, waiting for the next query takes time, meaning the $i$-th query in a sequence effectively costs more than the $(i-1)$-th. To solve this, they applied Karp codes—a variation of Huffman coding designed for unequal costs—and utilized an extension of Golin’s dynamic programming algorithm to search for the optimal decision tree.

An optimized 'Karp' decision tree. Unlike standard grids, this structure is mathematically leaner, grouping letters to minimize the average number of queries.

This optimized "Karp" layout breaks away from traditional grid constraints. While less visually intuitive, it is mathematically superior, often querying non-contiguous sets of letters to reach a decision faster.

Results and Discussion

The researchers compared the Karp layout against industry standards like Intel ACAT and Hex-o-spell using English letter frequency data and user trials with neurotypical volunteers.

Performance in Timed Scanning

In timed (single-switch) scanning, the Karp layout was the fastest, achieving a selection time of 2.98 seconds, compared to 4.97 seconds for Intel ACAT. This improvement was partly due to the layout's higher frequency of "positive intent" queries—where a user hits the switch rather than waiting—which is inherently faster in timed modes.

The Cognitive Load Trade-off

Despite its speed, the Karp layout faced challenges in binary (two-switch) mode, where it was actually slower than simpler layouts. The researchers attribute this to the high cognitive load of the non-intuitive tree structure. Users found it difficult to predict the next query set, which slowed their reaction times. This highlights a critical trade-off: mathematical optimality versus human intuition.

Conclusion

The Karp layout serves as a valuable "lower bound" for AAC designers. While its complexity may be a barrier for some, it demonstrates the potential for significant speed gains through mathematical optimization. Future work may explore asymmetric costs to further refine these trees for specific hardware and user needs, balancing the need for speed with the necessity of an intuitive user interface.

Summary updated

BibTeX
@misc{higger2016fast,
  author = {Matt Higger and Mohammad Moghadamfalahi and Fernando Quivira and Deniz Erdogmus},
  title = {{Fast Switch Scanning Keyboards: Minimal Expected Query Decision Trees}},
  year = {2016},
  eprint = {1606.02552},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.02552},
}
Figure