Sunday, October 17, 2010

Reading #10

Comments:
Ozgur

Summary:

This paper describes the HUNCH system, which is a primitive sketch recognition system. Not fully functional as Paleo, but considering the year 1976 that it has been published, HUNCH has given many important concept of what a well-functioning sketch recognition system should have.

The HUNCH system works the way like: first, find the corners by the speed of drawing, usually the corner is the local minima of the speed function. Then, latch these endpoints there are near to each other -- if they are within a radius of each other. The last two steps are related to inference the intend of the user. However, this inference does not come from a learned classifier like nowadays approach, but from the context that user provided -- a simple discretion of the hierarchical interpretation of the data.

Since more empathies has been put to the interpretation, different "recognition" result will be generated by different user interpretation.


Discussion:

Considering the  year it has been published, undoubtedly this paper has provided the most basic steps that a recognition system should have, like a corner finder, latching/connector.

However, this system does not seem like to be a "recognition" system, if user can give rich context to describe what they would like to draw, why the system bother to guess/recognize what is the intend of user. The context can tell anything if well defined.

So this is more like a augmented drawing or paint stuff -- the user gives a primitive drawing that assigns some basic constrains -- some feature point like line/corners or alike-- that the final shape should follow, and tell the system what they would like to draw by a context, then the system beautify the primitive drawing of the user.

Even though I do not think there is too much in the paper can be applied for nowadays recognition domain. This is a very interesting trace to follow, imagine we can get a very simple drawing tools that a novice can produce a very complicated work. However, we need to design a good context -- simple to the user but rich enough for computer to understand.

Reading #9

Comments:
Yue

Summary:

This paper has introduced the Paleo system, which is a new low-level recognition and beautification system with high accuracy. The recognizer can classify single strokes into primitives. Primitives drawn with multiple strokes can be merged by an upper-level recognition system.

A stroke is defined as the set of points (consisting of an x coordinate, y coordinate, and time value) sampled
between pen down and pen up events. The primitive shapes that can be recognized as one stroke are:

• Line: a stroke with a relatively constant slope between all sample points
• Polyline: a stroke consisting of multiple, connected lines
• Circle: a stroke that has a total direction close to 2π, constant radius between the center point and
each stroke point, and whose major and minor axes are close in size
• Ellipse: a stroke with similar properties of a circle, but whose major and minor axes are not similar.
• Arc: a segment of an incomplete circle
• Curve: a stroke whose points can be fit smoothly up to a fifth degree curve
• Spiral: a stroke that is composed of a series of circles with continuously descending (or ascending) radii but a constant center.
• Helix: a stroke that is composed a series of circles with similar radii but with moving centers. We also assume that helixes are drawn linearly.

So, there are eight classifiers for each of these eight shapes. The user input will go through each of these classifiers, and get a return value whether the stroke belongs to the current classifier.

And it also needs to be mentioned that there are two important features -- the normalize distance between direction extremes (NDDE) and the direction change ratio (DCR), that are introduced by the authors, which has improved the result a lot.


Discussion:

Since we have already used Paleo, it does not need to mention the high accuracy it can achieve(98.56%). And for almost every cases, Paleo can give a decent solution. The only problem I have found with using it, is it can accidentally classify a triangle into a circle. It is hard to tell the difference between triangle and circle if the user draw with one stroke but not careful enough to make every edge a straight line. That can be seen for some degree of "round" the triangle is not a triangle but a circle, some thresholds are set.

In the paper, these thresholds are hard set and are chosen empirically, in other word, they are tuned manually, so it has left quite a lot of space to improve, like whether we can find an automatic way to tune these threshold? Or to choose some thresholds that are more robust. However, I doubt if there are more accurate ways to beat an accuracy of 98.56%.

Thursday, September 16, 2010

Reading #8

Comments:
Sampath

Summary:

This paper proposed the $N recognizer, as the name indicates, this is an extension of 1$ recognizer, but with many improvements, such as recognizing gestures comprising
multiple strokes, automatically generalizing from one multistroke template to all possible multistrokes with alternative stroke orderings and directions, recognizing 1D gestures such as lines, and providing bounded rotation invariance.

As an extension, $N recognizer is built on top of 1$ recognizer, the major difference is it has some more preprocessings to change a multi-stroke in to a unistroke, then compare with the template, for this part, 1$ and N$ are almost the same (well, the rotation part is a little different).

Dealing with Multistroke: The user needs to define all the permutation of a multi-stroke, that is the user needs to define one multistroke, and ensure that different stroke orders and/or directions will be properly recognized. At runtime, the multistroke will first be converted to a unistroke, and then follow 1$'s algorithm.

Dealing with Rotation: Here is a little bit similar to Protractor -- if the full rotation failed to capture some information, then perform a bounded rotation (within a range), as the author indicated, 45 degree is a good range.

Dealing with 1D gesture: A MINSIDE-to-MAXSIDE threshold is set to decide if the stroke is too "thin", if it is too "thin", then it's 1D, otherwise, it's 2D.

Discussion:

The main contribution of this paper is the part of how to deal with multi-stroke, the method of doing it here is pretty simple (take two direction for each stroke, and connect all the end points), however, I am wondering if it is really accurate. And, the speed is also questionable, defining each component stroke as a dichotomous [0,1] variable, which indicates a exponential complexity, 2^N for N strokes. But the author indicated the speed is fast and also said " most multistroke gestures have only a few strokes because more elaborate gestures are harder for users to remember and use". Well, this is also another quotation from some other paper. But if it comes with very few strokes, I won't be too surprised to see a high accuracy.

Tell me if I am wrong.......

Reading #7

Comments:
Sampath Jayarathna


Summary:

This paper discuss a sketch user interface, by which user can draw naturally as using a pen and paper. And the system is able to recognize the geometric model of the object that user intended to draw. And also this drawing is unrestricted -- it can be in any order or any number of strokes etc.


The algorithm can be described generally in three steps.

Approximation: This process mainly deals with how to detect vertices. For the stroke with a lot of straight line segments, vertices are selected according to the speed of drawing and the curvature at corners. For curves, a Bezier curve is used to approximate/interpolate the shape.

Beautification: Make the drawing more like user’s intention. Make line straight, or paralleled, this may or may not need to move the vertices.

Recognition: Actually, it is just some simple geometric models; a simple template matching is applied.


Finally, the author asked several candidates to try the system, and they all give positive replay.



Discussion:

The most important part of the system is the approximation part, in other word, to extract vertices from the input stroke, if this part can be solved perfectly, the following beautification and recognition part will be much easier to do.

However, how to extract the vertices remains a problem for years, even in this paper. Even in this paper, although the author claimed the accuracy to be 96%, it is based on only 10 figures. The vertices, should also be considered as some kind of features, however, the ways of finding these vertices does not seem convincing to me. (It does not deal with rotation scaling like conventional method does) I am wondering how it will work if comes with some complex examples.

Monday, September 13, 2010

Reading #6

Comments:
Yue Li

Summary:


In this paper the author introduced a gesture recognizer - Protractor, which is an extension of 1$ recognizer, so they share a lot in common. So, I would like to use the similar four steps in 1$ recognizer to explain the Protector.

1. Points Resampling: N points with equal distance will be sampled.

2. Rotation: User can choose orientation-invariant or -sensitive. If -invariant is chosen, a similar rotation as in 1$ is done. If -sensitive is chosen, Protractor aligns the indicative orientation of a gesture with the one of eight base orientations that requires the least rotation. And this eight orientations are considered the major gesture orientations

3. Scaling and Translation: all the points will be translated to make the cancroids (0,0); not scaling is done, however, based on the way of doing Angular Distances, Protractor is inherently scale-invariant.

4. Calculating Optimal Angular Distances: Based on the vector representation obtained from previous steps, Protractor uses inverse cosine distances between their vectors as the similarity score. The template with the maximum similarity score will be the best match.

At last, the author gives many example, indicating the Protractor is superior to 1$ in terms of both accuracy and speed.



Discussion:

Protractor, as a template-based recognizer should share the similar property as 1$ recognizer. No training step is involved, and training samples are stored as templates. However, before classification, a preprocessing is needed, and the unknown gesture is compared against all the templates. This is time consuming, and will finally turns out to be slower than feature-based algorithm. For in this paper, the author did not make a comparison with feature-based, however, these properties should be similar.


As a comparison with 1$ recognizer:

Similar parts:

1. Points Resampling: They are doing the same way.

2. Translation: Still the same.

3. Scaling: Even though Protractor does not have rescaling step, according to the way of calculating the Angular Distance, we can assume a scale-invariant here.

4. Rotation-invariant: If this option is chosen, these two are both rotation-invariant.


Different parts;

1. Rotation-sensitive: Even though it is called rotation sensitive, we still need to eliminate the effect of rotation noise, instead of doing a full rotation, Protractor does a rotation to align to the eight orientations, for me this is kind of way, Rather than to totally align the rotation or to ignore the rotation noise, to align to eight orientations is kind like in-between.

2. Calculating Optimal Angular Distances: This part is the main contribution of the paper, the author indicates that the close-form solution for the calculation of vector based similar measurement is the key reasons why Protractor outperforms 1$ recognizer. This close-form solution has saved a lot of computation time rather than the iterative approach of finding rotation as in 1$ recognizer. And the results also indicates a better accuracy.

Reading #5

Comment:
chris aikens


Summary:



In this paper, the author has introduced the 1$ recognizer, as the name indicates, this algorithm is simple, easy to implement and can be docked into other system easily.

Its algorithm can be described in four steps,

1. Resample the Point Path, to make gesture paths directly comparable even at different movement speeds.
2. Rotate once based on the “Indicative Angle”, where “indicative angle” is defined as the angle formed between the centroid of the gesture (x¯,y¯) and the gesture’s first point.
3. Scale and Translate, during which the gesture is scaled and translated to a reference square and point.
4. Find the Optimal Angle for the Best Score, after all the previous steps are done for all templates, a candidate C is compared to each stored template T to find the average distance, which is defined as the lease path-distance. The template Ti with the least path-distance to C is the result of the recognition.

The $1 recognizer is limited to single stroke, and the author states an accuracy more than 99% accuracy, as well as a comparison with Rubines algorithm and Dynamic Time Warping.


Discussion:

Feature based vs Template based: Rubines and many other researchers formed the gesture recognition as a feature-based recognition process, as far as the fractures can be easily computed (which is usually true). Even though the training step could be slow, but as soon as the classifier is trained, the classification is fast. For 1$ recognition, it does not have an explicit training step, instead, an alignment is required for every input, which is even more time-consuming.

Invariant Feature: The translation/scaling/rotation invariant feature is the best feature that people are looking for. 1$ recognizer, as I said, is not a feature-based method. However, the alignment step is applied to eliminate the effects of these transformations. But another problem rises, since for sketch, sometimes, these transformations are also an important feature for a certain meaning, for example, in Rubines’ paper, 4th feature, which is the angle between the bounding box diagonal and the bottom horizontal. This feature actually captured the rotation information, however, this information is lost in 1$ recognizer.

Thursday, September 9, 2010

Reading #4

Comment:
chris aikens

Summary:


In this paper, the author introduces the sketchpad, the first pen-based sketching system in 1960s. First chapter of the paper starts with an examples of how to drawing a hexagon from circle and how this can be used to generate a hexagonal lattice. The following parts analyze the capabilities, design and the usage of the system. The 2nd chapter talked about the data structure of the system, actually, all the lines and points are stored to their properties. All things with the same type will be stored in a ring under a generic heading, which contains all the information to distinguish this type from other types. The rest chapters talks about light pen how to track and locate the position; how to drawn lines, circle, digits, etc. to the screen; how recursion can be used for efficient operations like deleting, merging etc; what kind of constrains that user can apply to the drawing.



Discussion:

Actually, I learned Sutherland firstly from Computer Graphics class, since there is a famous Polygon Clipping algorithm "Sutherland-Hodgman" named after him. I just googled, and I am sure it is the same person here.

For this paper,

From the view of Graphics, I can see quite a lot of similar idea. What Graphics concerns is the description the drawing, same as Sutherland stated in the paper "Each time a drawing is made, a description of that drawing is stored". Although most of the aspects in Sketchpad can be easily realized by nowadays tools, like OpenGL with any object-oriented programming language like C++, this is undoubtedly a great breakthrough in 60 years ago.

From the view of sketch recognition, I was thinking, if we can use some Graphics way like Sutherland did in the paper. Would it be more efficient to build a representation/description for object -- like to use a spline to fit to the shape, then check its parameters -- Well, this is another kind of feature, I agree. Just wondering if these are some redundant correlated features in Rubines or others paper.