Researchers have developed a smartphone app that can tell if a person is in pain. Alexandra Ristway reports..