Self-taught artificial intelligence beats doctors at predicting heart attacks