AdiSTAN.ro

1997 Thesis - Neural Networks

Draw two eyes and a mouth, then press Analyze.

Each shape can sit anywhere inside its zone. Use the examples below.

Left eye · 4×4Right eye · 4×4
Mouth · 4×8
Waiting for a drawing

Click for one pixel; hold and drag to draw or erase.

Scores by component

ComponentHappyNeutralSadWeight
Left eye—————
Right eye—————
Mouth—————
Combined result———100%

The scores describe how the drawing is classified; they are not the probability of a real emotion.

Example drawings

Press an example to load it. "Move shapes" changes the positions without changing the expression.

Examples and interpretation

Left and right are those of the drawing. A diagonal descending to the right means happy for the left eye and sad for the right eye; the opposite diagonal reads the other way round.

Eyes use 3×2 shapes and diagonals of two, three or four pixels; a neutral eye is a line of two to four pixels. Curved mouths are six or five pixels wide and two rows high; a mouth whose ends point in opposite directions takes three rows and carries mixed cues. In curved mouths the base line may lack one or both ends. A single horizontal line of three to eight pixels is neutral, whatever its row.

Training includes one-pixel variations and examples with contradictory cues. Every drawn zone keeps the scores computed by the network; matching against the examples does not block the result. Mouths with one end up and one end down have mixed training examples. New shapes keep their neural scores and are marked as estimates; empty zones ask for the drawing to be completed.

The eyes have equal weights. The weight of the mouth varies continuously: 34% when neutral, up to 37% for happy and down to 31% for sad. The rest is split equally between the eyes.

wM = 0.34 + 0.03 × (M_happy − M_sad)
wL = wR = (1 − wM) / 2

Two eyes that agree outweigh a mouth with a different expression. If the eyes contradict each other between happy and sad, the mouth tilts the result towards its own expression; a neutral mouth tilts it towards neutral. Other combinations may stay mixed. Scores less than 2.5 percentage points apart are treated as close.

The weights are a rule of this demonstration. The choice of direction is inspired by research on how the eyes and the mouth contribute to recognizing expressions; the percentages are parameters chosen for the project.