A new deep learning model uses ECGs during sleep to predict heart risks. It could help doctors identify high-risk patients earlier.