The technology will help doctors warn patients years before a heart attack strikes.