Pattern Theory of Emotion