AI tool could help thousands avoid fatal heart attacks