BackgroundObstructive sleep apnea (OSA) is a condition in which a person’s airway is obstructed during sleep, thus disturbing their sleep. People with OSA are at a higher risk of developing heart problems. OSA is commonly treated with a positive airway pressure (PAP) therapy device, which is used during sleep. The PAP therapy setup provides a good opportunity to monitor the heart health of people with OSA, but no simple, low-cost method is available for the PAP therapy device to monitor heart rate (HR). ObjectiveThis study aims to develop a simple, low-cost device to monitor the HR of people with OSA during PAP therapy. This device was then tested on a small group of participants to investigate the feasibility of the device. MethodsA low-cost and simple device to monitor HR was created by attaching a gyroscope to a PAP mask, thus integrating HR monitoring into PAP therapy. The gyroscope signals were then analyzed to detect heartbeats, and a Kalman filter was used to produce a more accurate and consistent HR signal. In this study, 19 participants wore the modified PAP mask while the mask was connected to a PAP device. Participants lay in 3 common sleeping positions and then underwent 2 different PAP therapy modes to determine if these affected the accuracy of the HR estimation. ResultsBefore the PAP device was turned on, the median HR error was