This study shows that a smart bed with sensors and machine learning can accurately monitor heartbeats during sleep, offering a comfortable, non-invasive alternative to wearable devices.