Samsung wants to know how you're feeling, or at least help you know how your loved one is feeling. According to its recently filed patent it is working on what it calls as Action Unit Detector. Action Unit (AU) is nothing but a coding system that classifies your mood into Angry, Fear, Sad, Happy, Surprise, or Disgust based on the contractions of your facial muscles. The device will have a total of 30 such units with a group together forming a string. Each string is then mapped to human emotion.
There is a database of a pattern of strings, which is compared to the input string and the AU string that matches it most closely, is selected. It is a sub-sequence of Action Units that are compared to match the string with the longest common sub-sequence, indicative of a matching string.
There is hardly any mention of the requisite hardware for this with the mention of just memory to store instructions and a processor to compare and match the Action Units. While automotive companies have been looking to develop such technologies to ascertain if you're drunk and advice you not to drive, it seems that companies like Samsung that deal with gadgets are too going to join the bandwagon.