Patients with prior heart disease or stroke are at increased risk of having a repeat event, with approximately 1 in 5 patients experiencing or dying from repeat events. However, there is a range of risk for patients, and a clear need exists for identifying those who are at higher risk of events despite taking medication. We propose to apply new artificial intelligence methods to develop a free and publicly available computer program that will calculate each patient’s long-term chance of having or dying from a repeat heart attack or stroke based on his or her individual risk profile.