The software, called Facet, uses a simple digital camera to determine whether a person is feeling joy, sadness, surprise, anger, fear, disgust, contempt or any combination of the seven emotions.
"There's often a disconnect between what people say and what people do and what people think," said Marian Bartlett, co-founder and lead scientist at Emotient, a California-based company.
The software can reconnect those dots by accurately reading the emotions registering on a person's face in a single photograph or video frame, 'LiveScience' reported.
"Even when somebody wants to keep a neutral face, you get microexpressions," Bartlett said.
Also Read
That is because the human body has two different motor systems for controlling facial muscles, and the spontaneous one is slightly faster than the primary motor system, which controls deliberate motion.
That means microexpressions will slip out - and as long as they appear on a single frame of video footage, Facet can recognise them, the company claims.
In the case of "smiling, but not with your eyes," Bartlett said that when people smile sincerely, a muscle called the orbicularis oculi, also known as the "crow's feet muscle," contracts, creating the wrinkles at the eyes' edge that are sometimes called "crow's feet."
Bartlett said Emotient is now working on, among other things, the software's potential for identifying and treating depression.