Download Intelligent Interfaces in CS 338: Graphical User Interfaces - Lecture 10 - Prof. David E. and more Exams Computer Science in PDF only on Docsity!
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 1
Lecture 10:
Intelligent Interfaces
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 2
Intelligent interfaces
What is not an intelligent interface?
- any “intelligent system”
- something that strives to pass the Turing Test
- e.g., expert system
- e.g., neural network doesn’t necessarily include an interface
- any “good interface”
- that is, a well-designed interface doesn’t necessarily include intelligence Thanks to Annika Wærn for material from her document “What is an intelligent interface?” CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 3
Intelligent interfaces
Today’s intelligent interfaces utilize...
- user adaptivity to change behavior for different users and situations
- user modeling to maintain dynamic knowledge about user knowledge, preferences, etc.
- natural language technology to interpret and/or generate text and/or speech
- dialog modeling to maintain a dynamic multimodal interaction with the user
- explanation generation to ensure that the user understands what is happening CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 4
Intelligent interfaces
Creating good,
interactive
intelligence
is challenging.
Let’s say we
have a menu
of options…
How might this
adapt in an
intelligent way?
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 5
Example: Intelligent help
Help doesn’t have to be intelligent — e.g., searchable index / table of contents Intelligent help can consider context or provide human-like dialog for searching CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 6
Example: MS Powerpoint help…
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 7
Example: MS Word help…
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 8
Example: MS Word help
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 13
Computer tutor components
But specifically, a computer tutor can be
boiled down to 2 main components:
- (1) User model
- computational representation for what the student knows and doesn’t know
- (2) Model tracing
- update the student model by associating observed student actions with model predictions CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 14
(1) User model
How can we represent student intelligence?
Lots of programs do “intelligent” things
- add really big numbers really quickly
- diagnose patient symptoms
- predict earthquakes, volcanic eruptions
- etc., etc., etc. …
Typically, they don’t do things like humans
- sometimes, methods inspired by humans
- but usually, the goal is to solve a problem, not represent human knowledge CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 15
Computers search lots and lots of possible
moves and their implications
This can beat the best human players.
But how do humans play chess?
Example: Playing chess
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 16
Example: Sorting numbers
Please write down these numbers:
Now sort them in increasing order…
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 17
How did you do it?
Computers: many efficient algorithms
Humans (often): find smallest, write it,
find 2nd smallest, write it, …
- not nearly as efficient as Quicksort!
- so why don’t we use Quicksort? too many things to track, especially in your head
Example: Sorting numbers
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 18
Creating a human-like user model
Humans have many limitations
- cognition (e.g., recall 7±2 digits)
- perception (e.g., the eye’s fovea)
- attention (e.g., conversing while typing)
- behavior (e.g., typing speed)
For machines to think & act like people,
they need to incorporate these limitations.
- are you telling me we should build machines that make mistakes?!?
- well, they don’t need to make mistakes, just explain and predict them CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 19
Cognitive architectures
Frameworks for building computer models
of how people (e.g., students) think and act
Serve two purposes
- explain cognition with a psychological theory
- simulate cognition with computer models
Incorporate human abilities & limitations!
- abilities: learning & speedup, pattern matching, …
- limitations: memory decay, physical constraints, … CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 20
Categories of cognitive architectures
Symbolic
- representation based on symbols & relations
- e.g., Harrisburg, capital, Pennsylvania
Connectionist
- representation based on connected nodes
Hybrid
- some mix of symbolic and connectionist
- what most architectures strive for today Note: These categories are very broad and there’s lots of gray area!
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 25
Production system example
GOAL isa add-numbers TWO+THREE isa plus-fact addend1 TWO addend2 THREE sum FIVE FIVE+SIX isa plus-fact addend1 FIVE addend2 ONE sum ELEVEN … ADD-COLUMN< IF goal is to add numbers & right-most column is n1 & n & retrieve sum for n1+n2, & carry & sum < 10 THEN write sum in column & set carry to 0 ADD-COLUMN>= IF goal is to add numbers & right-most column is n1 & n & retrieve sum for n1+n2, & carry & sum >= 10 THEN write sum-10 in column & set carry to 1 DONE-ADDITION-CARRY=0 … DONE-ADDITION-CARRY=1 … Declarative Knowledge Procedural Knowledge CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 26
Production system example
25
ADD-COLUMN< IF goal is to add numbers & right-most column is n1 & n & retrieve sum for n1, n2, & carry & sum < 10 THEN write sum in column & set carry to 0 ADD-COLUMN>= IF goal is to add numbers & right-most column is n1 & n & retrieve sum for n1, n2, & carry & sum >= 10 THEN write sum-10 in column & set carry to 1 DONE-ADDITION-CARRY=0 … DONE-ADDITION-CARRY=1 … Problem Procedural Knowledge ADD-COLUMN>= --> retrieves 5+6= --> writes 1, sets carry to 1 ADD-COLUMN< --> retrieves 2+3=5, adds 1 --> writes 6, sets carry to 0 DONE-ADDITION-CARRY= --> done problem! Trace CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 27
The most basic limitation is when the model
doesn’t know something
- declarative: absence of factual chunks
- procedural: absence of skills
Overcoming the limitation
- acquiring new knowledge through…
- direct perception
- indirect inference / reasoning (analogy, metaphor, discovery, etc.)
- compilation of declarative procedural
- e.g., driving with a stick-shift
Limitations: Symbolic knowledge
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 28
Typically, we have “subsymbolic”
parameters (i.e., numeric values)
associated with symbols
Example: Declarative chunk “activation”
- represents how easily chunk can be remembered
- changes over time with learning -1.5 0 50 100 150 200 -1. -0. 0. 0. 1. 1. Seconds Activation Level
Limitations: “Subsymbolic” parameters
TWO+THREE isa plus-fact addend1 TWO addend2 THREE sum FIVE Activation = 3.
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 29
Example: Production rule “strength”
- represents how quickly production fires
- increases over time with practice
- very much analogous to chunk activation! -1.5 0 50 100 150 200 -1. -0. 0. 0. 1. 1. Seconds Activation Level
Limitations: “Subsymbolic” parameters
Shift-to-Second-Gear IF goal is to drive & we’re in first gear THEN press the clutch & shift to second & release the clutch Strength = 1. CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 30
Limitations: Perceptual-motor abilities
Modules allow
model to interact
with a (real or
simulated) external
environment
Modules include
performance
parameters & very
limited parallelism
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 31
(2) Model tracing
Model tracing = relating observed actions
with hidden cognitive states
In essence, “think” along with student and
keep track of the cognitive state
From a given point in time...
- simulate all possible “thought” sequences (i.e., all possible firings for productions)
- determine which sequence best matches the actions observed from the student
- make the best matching sequence the current “estimated” cognitive state
What is “cognitive state” in this case?
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 32
Model tracing
production firing conflict resolution Cognitive Model Observed Actions
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 37
Field tests: LISP tutor
Step-by-step tutor with “structured editor”
- top-down approach to coding (defun create-list (num) <>) (defun create-list (num) (let (<>) <>)) (defun create-list (num) (let ((count 1)) <>)) ... etc. CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 38
Field tests: LISP tutor
Results
- mini-course at CMU with LISP tutor
- two groups in course, with & without tutor
- group with tutor took 30% less time to complete a sequence of prescribed lessons
- AND group with tutor scored 43% = 1 std dev higher on the post-test! - learned faster, and the knowledge stayed with them! CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 39
More tutors in the field
Geometry tutor
- 14 extra points (out of 100) for tutored students
- actually, only 1-on-1 tutoring; 2-on-1, only 4 pts
Algebra tutor
- no differences for tutoring
- problems: interface differences, truancy
Carnegie Learning
- company spun-off from this and other research
- tutors in several (mostly mathematical) areas with integrated curriculum (textbooks, etc.)
- now serving >400 schools nationwide! CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 40
Current limitations
Not a human! Can’t (yet) sense emotion, etc.
- is this always bad though?
When/how to guide student from passively
absorbing knowledge to actively using it
When/how to correct errors
CS 338: Graphical User Interfaces. Dario Salvucci, Drexel University. 41
Take-home message
Intelligent interfaces use understanding of
the current situation to act intelligently
- this may include user knowledge & skills, current context, adaptation & learning, ...
Intelligent computer tutors are one good
example of an intelligent interface...
- they utilize a user model of student knowledge
- they relate user actions to this model to infer current knowledge and goals