CAMBRIDGE, Mass. (CBS / AP) — What if your computer or smartphone could tell if you’re happy or sad?

A new device developed by researchers at the Massachusetts Institute of Technology aims to detect emotions by sending wireless signals that measure heartbeats as the signals bounce off a person’s body.

READ MORE: Rain Showers Trigger Power Outages Across The Bay Area

Researchers from MIT’s Computer Science and Artificial Intelligence Laboratory say their device is 87 percent accurate in using heartrate and what it’s already learned about a person to recognize joy, pleasure, sadness or anger, after the device first measures how each individual’s body reacts in various emotional states.

READ MORE: Dozens of Dogs, Cats Removed From Danville Home

It works like an electrocardiogram monitor but without needing a sensor on the body to measure heartbeats.

They say it could one day be used by advertising agencies to gauge audience reaction or in health care to diagnose depression or anxiety.

MORE NEWS: Oakland Church Group Hosts Party to Preach Anti-Violence by Practicing Community

© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.