Human-Computer Interaction
17 Aug 2026
Part VII (b) of Hornbæk et al. (2025)
The first deck asked whether we were building the right thing and building the thing right. This deck takes the built system further: keeping it safe, realizing it in software, and computing good solutions to well-defined interaction problems.
Cook (1998), in How Complex Systems Fail, distilled the human factor in safety
Aside: usability-related risks in e-voting
Bederson et al. (2003) found a range of usability problems in touchscreen electronic voting systems, comparing several including the machine used in the contested 2000 US presidential election. Two lessons: first, the system boundary must include the voter, the intimidating environment, and the integrity process—not just the machine; second, such systems are inherently complex, so usability problems are unsurprising. Given the stakes, voting technology should be systematically risk assessed to minimize the chance a voter cannot vote for their preferred choice.
Rasmussen (1983) gave an influential model with three levels of control in operating complex systems
Skill-, rule-, and knowledge-based control in the operation of complex systems—the model explains how operators succeed and why they fail (Rasmussen 1983).
Reason (1990) classified error to match Rasmussen’s three levels
Aside: safe infusion-pump interfaces
Masci et al. (2013) linked the safety requirements of a patient-controlled analgesia infusion pump to verification using a formal model. They first formalized the US FDA requirements—revealing ambiguities in the requirements themselves—then reverse-engineered a formal model of the pump’s user interface and checked the interface against the formalized safety requirements. Formalizing what “safe” means is itself part of making a device safe.
Methods vary by depth (resources needed) and focus (identifying, communicating, or assessing risk)
A fault tree: the fault is decomposed into events that may lead to it, connected by logical and and or relationships.
A risk matrix: risks are placed by impact and likelihood; progress moves them from the top-right toward the bottom-left.
A series system needs every component to work; a parallel system needs only one—the basis of redundancy.
Aside: the Boeing 737 MAX disaster
Travis (2019) conducts an analysis of the 737 MAX failings that shows the danger of fully automating a function while leaving the user out of the loop—and the value of parallel redundancy in the form of a human working alongside a machine. Larger engines shifted the plane’s centerline and made it prone to pitch up and stall; rather than redesign the engines, Boeing added software (MCAS) so it could be sold as “just another 737.” When MCAS sensed a stall it pushed the nose down and the pilot could not override it. On a faulty sensor reading, the result was catastrophic. Failures are normal in complex systems, so there must be a path to recovery.
The bathtub curve: early failures fall off, late failures rise, and random failures give a constant middle—the observed rate resembles a bathtub.
Aside: why Johnny can’t encrypt
In their classic 1999 study, Whitten and Tygar (1999) asked why end-users could not use PGP 5.0’s interface. Security has five intrinsic properties that breed usability problems: unmotivated users (security is never the real goal), abstraction (policies are abstract rules), lack of feedback (correct configuration is hard to confirm), irreversibility (an exposed secret cannot be un-exposed), and the weakest link (no safe trial and error). In their study of 12 educated, email-experienced users, only a third correctly signed and encrypted an email, and a quarter exposed their secret key. Following basic UI design principles is not enough for usable security.
Event-driven programming: a Listener watches the Go button; on the event it calls Program Logic, which fills the empty label with “Response”.
Aside: Nassi–Shneiderman diagrams
A Nassi–Shneiderman diagram (Nassi and Shneiderman 1973) is a structured graphical representation of a program’s high-level decomposition. A branching block, for instance, shows that unlocking a phone versus denying access depends on a precondition—the user’s fingerprint being detected. The notation covers multi-way branches, loops, and parallel processes. Though rarely used in visual programming languages themselves, such diagrams still serve to visualize algorithms and processes for teaching.
Three state diagrams modeling input: (a) a mouse, (b) a touchscreen, and (c) a stylus and tablet—the stylus alone supports all three states (Buxton 1990).
Aside: designing safe number entry
Number entry is pervasive in healthcare, aviation, and finance—and Thimbleby (2014) ran an analysis that found number-entry interfaces riddled with defects. A bare keypad doesn’t even settle basic questions: does C correct or cancel? He identified 16 common design defects, from unclear requirements and record-keeping to negative numbers and timeouts. His argument: user testing is insufficient—it can’t guarantee all defects are found—so critical interfaces need formal rules (he used Hoare logic). Years of user-centered research had missed easily fixed defects.
For a toy task—predicting search time from a site’s complexity (number of links)
Three simple models of search time against a site’s complexity: a decision tree, a linear model, and a nonlinear model.
A touchscreen speech interface: the user corrects recognized utterances via the word confusion network or a keyboard with word prediction and morphological variants (Vertanen and Kristensson 2009).
Envelope analysis of the speech interface: oracle word error rate against cluster size (left) and word predictions offered (right), for several interaction methods (Vertanen and Kristensson 2009).
Aside: why word prediction may not help
Large-scale studies suggest word predictions on touchscreen keyboards may not be that useful—but why? Envelope analysis models the word-prediction function with parameters like \(T_\text{key}\) (time to hit a key) and \(T_\text{react}\) (time to react to a suggestion), governed by strategy parameters such as \(L_\text{min}\) (only predict words above a minimum length) and \(k_\text{look}\) (type \(k\) keys, then look). Simulated over strategies, net entry rate ranges from \(-8.8\) to \(+2.9\) words per minute—purely from strategy. Any strategy that checks predictions before typing a letter slows the user down; gains need at least the first two letters. For the average user, prediction is unlikely to help and may hurt.
Three elements
The new AZERTY standard, designed with multi-objective optimization over performance, intuitiveness, learnability, and ergonomics (Feit et al. 2021).
Aside: placing mixed-reality displays by optimization
In mixed reality, information displays must be reachable and visible without obscuring objects of interest—how, without a handcrafted rule set? Evangelista Belo et al. (2022) defined an optimization task whose objective function is a weighted sum of terms for reachability, visibility, and occlusion, with weights set by end-users and developers. The task instance is the current positions of the display and user; simulated annealing solved it in real time to adapt display placement on the fly.
A support vector machine separates positive and negative examples with a decision boundary (solid) and a maximum margin (dashed).
Aside: interactive machine learning
Interactive machine learning lets a designer rapidly supply training data to correct a learner’s mistakes—keeping a human in the loop. Fails and Olsen Jr. (2003) gives an example that lets designers build a pixel-based image classifier by importing images and classifying them by hand; the system trains on those labels and shows its accuracy. The designer refines by adding more manual classifications, and the system’s ability to detect the target—say, a hand in an image—visibly improves with each round.
Task: In groups of 3 to 4, take one destructive or irreversible action in a real product (delete an account, send money to a typed address, submit a form that cannot be amended, share to the wrong audience). Separate the hazard from the exposure. Then enumerate the ways a user reaches it wrongly, classifying each with Reason’s taxonomy — skill-based slips and lapses, versus rule- and knowledge-based mistakes — and build a fault tree with the incident as the top event, joining contributing events with logical and and or.
Produce: The fault tree, plus each leaf placed on a risk matrix by likelihood and impact. Then propose one design change and state which of three things it does: removes the hazard, removes the exposure, or merely warns. Cook’s point applies — if your tree has a single and-free path to the top, you have probably not looked hard enough.
Time: 25 min group work · 10 min share-out
Debrief: How many groups’ fixes were warnings? A warning leaves both the hazard and the exposure in place and moves the risk onto the user.
Task: In pairs or groups of 3, take three applications and work out which undo model each actually implements: flip, backtrack, or stack-based with redo. Test the strong-cu property empirically — does a command followed by undo really return you to the previous state? Find at least two places where it does not, and one action that cannot be undone at all.
Produce: A table of command, undo behavior, and whether strong-cu held. Then write a short specification for undo in an agentic AI context, where a single instruction produced a multi-step change across several files or records: state what one press of undo reverts, what it cannot revert, and what the interface shows the user before they press it.
Time: 25 min work · 10 min share-out
Debrief: Undo is provably not an ordinary command. In your AI case, is undo even the right affordance, or does an irreversible multi-step action need a different mechanism — a preview, a staging area, a confirmation — instead?
Task: In groups of 3 to 4, take a menu or toolbar of roughly eight commands. Define the task instance by estimating each command’s frequency of use. Define an objective function — expected selection time is a reasonable one, built from Hick–Hyman for the decision and Fitts’s law for the pointing. Compute it for the current layout and for two alternatives, including a frequency-ordered one.
Produce: The three scores and the winner. Then answer the three questions that make “optimal” mean anything: best out of which options, best for what, and best with what guarantees. Finish by naming one epistemic uncertainty your model ignores — something real that your objective function has no term for.
Time: 28 min group work · 12 min share-out
Debrief: Would you ship your winner? In the speech-correction work, the designers chose the understandable option over the one the analysis scored highest. Does that make the analysis a failure, or is guidance all it was ever going to give you?
This slideshow was produced using quarto
Fonts are Fira Sans, Fira Sans Light, and Victor Mono Nerd Font
Math is set in Fira Math via MathJax 4