Title: FeatureBased Sketch Recognition Using Geometric Features
1Feature-Based Sketch Recognition Using Geometric
Features
- Pedro Davalos
- Brandon Paulson
- Pankaj Rajan
2Outline
- Background
- Goals
- Approach
- Features
- Results/Observations
- Conclusions
3What is sketch recognition?
- Recognizing hand-drawn sketches in real-time,
typically using a Tablet PC, SmartBoard, or other
pen-based input - Motivation sketching is a more intuitive form of
interaction when using traditional CAD tools
4What is sketch recognition?
- Typical domains
- UML diagrams
- Mechanical engineering
- Sheet music
- Finite State machines
- Many more
5What is sketch recognition?
- Typical domains
- UML diagrams
- Mechanical engineering
- Sheet music
- Finite State machines
- Many more
6What is sketch recognition?
- Typical domains
- UML diagrams
- Mechanical engineering
- Sheet music
- Finite State machines
- Many more
7What is sketch recognition?
- Typical domains
- UML diagrams
- Mechanical engineering
- Sheet music
- Finite State machines
- Many more
8What is sketch recognition?
- Typical domains
- UML diagrams
- Mechanical engineering
- Sheet music
- Finite State machines
- Many more
9Typical Approaches
- Gesture/Feature-based classification
- Earliest approach to sketch recognition
- 2-D gesture recognition
- Traditional features are user-dependent
individual training required - Focuses on HOW a sketched stroke was drawn rather
than WHAT it actually looks like
?
10Typical Approaches
- Geometric-based classification
- Most recent paradigm in sketch recognition
- Recognize low-level primitive shapes and
construct higher level shape hierarchically - High level shapes depend on accurate low-level
interpretations
11Problem Statement
- Classify a single-stroke (X,Y,T) into 9
low-level, geometric primitives
Line
Ellipse
Curve
Circle
Polyline
Arc
Spiral
Helix
Complex
12Goal
13Goal
- Provide accurate classification of shapes into
the 9 geometric primitives - Determine which geometric and gestural features
are most significant (remove redundant features) - Show that our approach is user independent
(robust to various user drawing styles)
14Data
- 1800 single stroke sketch samples
- 20 different users (90 samples from each user
10 of each primitive shape) - Each sketch sample contains a series points
(x,y,t) that define the sketch. - x and y are the screen coordinates
- t is the timestamp
- Each sketch sample is labeled with its
corresponding class (based on what the user was
asked to draw)
15Feature Set
- 44 total features (31 geometric, 13 gestural)
- all features can be computed in real-time
- Example geometric features
- feature area (of line, ellipse, arc, etc.)
- least squares error (of each primitive)
- normalized distance between direction extremes
- direction change ratio
- Example gestural features
- stroke length
- sin/cos of the starting/ending angles
- total/absolute rotation
- bounding box length
16Data Analysis
- Classification Data 82 Train, 18 Test
- Quadratic Classifier Regularization
- ?reg ?orig ? I
96.6 correct 94.6 correct
77 correct
17Quadratic Classifier
- 100 experiments with random data selection 82
train, 18 test - With all 44 features
Avg 96.3 Avg 96.7
Avg 79
18Feature Subset Selection
- Sequential forward selection with quadratic
wrapper
Best Rate 98.33 (31 features) Best
Rate 99.33 (20 features) Best Rate
96.67 (10 features)
19Feature Subset Selection
- Gestural features removed (7/13)
- Stroke length
- Cosine of starting angle
- Length of bounding boxs diagonal
- Cosine of ending angle
- Sin of ending angle
- Absolute rotation
- Rotation squared
20Feature Subset Selection
- Geometric features removed (6/31)
- Average curvature
- Line fit least squares error
- Line fit feature area error
- Arc fit radius length
- Spiral fit radius length
- Ellipse fit feature area error
21Cross Validation
- Classification using selected features from each
data space - 82 train, 18 test
Avg 96.2
Avg 95.7 Avg 94.2
Orig 96.3
Orig 96.7
Orig 79 Features 31/44
Features 20/44
Features 10/44
22Ensemble Learning
- Parallel ensemble with voting
23Ensemble Learning Results
24 User/Style Robustness Analysis
- How well does a user perform as a single trainer
of the classifier? - How well does a user perform as a single tester
of the classifier? - How many users/styles do we need to give good
recognition results? - What are some relationships we can derive between
different users and their styles?
25 One user to train, others to test
- How well does a user perform as a single trainer
of the classifier?
26 One user to test, others to train
- How well does a user perform as a single tester
of the classifier?
27 User Robustness
- How many users/styles do we need to give good
recognition results?
28 Relationships between users
- What are some relationships we can derive between
different users and their styles? - One user to train, one user to test
Similar
Train user
Different
Test user
29Conclusion
- Geometric features can be used in feature-based
classifiers to give accurate results - Certain geometric and gestural features are
redundant and less significant - Our approach is user-independent and robust to
various user styles
30Future Work
- Collect and test more complex shapes
- Can we also use these features to classify users
rather than shape class?
31Questions?