From sleep-tracking wristbands to sleep-tracking mats, there’s no shortage of smart devices which claim to be able to quantify the quality and quantity of your shut-eye.

Researchers from the University of Massachusetts, Amherst, have a new one to add to the collection, however: Sleep-tracking pajamas.

By tracking various biometrics, the comfy wearables can reportedly monitor wearers’ sleep quality, including duration of rapid eye movement (REM) sleep and any breathing difficulties they might be having at night.

“We created a loose-fitting, comfortable and breathable pajama shirt decorated with five pressure sensors, which together reveal the posture in which the wearer is sleeping throughout the night, in addition to their heart rate and respiration rate,” Trisha Andrew, a professor in the Department of Chemistry at UMass Amherst, told Digital Trends.

Monitoring respiration over time during sleep can be crucial for diagnosing sleep disorders, such as sleep apnea.

The added information about heart rate also allows diagnoses to be more accurate by filtering out spurious signals, motion artifacts or stochastic device malfunctions.

The text above is a summary, you can read full article here.