I, for one, can't function without a large cup of coffee in the morning.
Lead researcher Dr Kyla Lara, from Mount Sinai Hospital in NY, said: "Eating a diet mostly of dark green leafy plants, fruits, beans, whole grains and fish, while limiting processed meats, saturated fats, trans fats, refined carbohydrates and foods high in added sugars is a heart-healthy lifestyle and may specifically help prevent heart failure if you don't already have it".
The prior research was first introduced at American Heart Association (AHA) Scientific Sessions held in Anaheim, California.
Could more coffee make a difference?Nearly all of the coffee drinkers in the study (97%) consumed between one and six cups of coffee a day, says Stevens, so the researchers can't know for sure if the benefits continue at even higher consumption levels.
While many risk factors for heart failure and stroke are well known, the researchers believe there are still unidentified risk factors. For coffee drinkers, every 8-ounce cup per day reduced these risks by 7%, 8% and 5%, respectively, compared to people who didn't drink coffee.
Researchers re-analysed data from the Framingham Heart Study, a long-running United States investigation of heart disease risk factors involving thousands of participants.
It is unclear why coffee would cut the risk of heart failure, says Stevens.
Nine things we learned about Donald Trump during his Asia tour
He can not solicit Chinese cooperation on one vital issue and threaten China on another. China claims almost all of the South China Sea, one of the world's busiest waterways.
Although the findings were consistent, the researchers emphasize that the association is not necessarily causal, so we shouldn't jump to any conclusions just yet.
The coffee study involved a re-analysis of data from the Framingham Heart Study, a long-running USA investigation of heart disease risk factors involving many thousands of participants.
Currently, the AHA recommend consuming less red meat - including beef, pork, and lamb - due to its higher cholesterol and saturated fat content.
Your heart will thank you if you stick to a mostly plant-based diet, a new preliminary study suggests.
Senior author Professor David Kao added: "By including coffee in the model, the prediction accuracy increased by four percent".
Researchers used a machine to analyse data from the long-running Framlingham Heart study.
The scientists will go on to explore risk factors for those two events and aim to better understand how our diets influence our cardiovascular health.
Machine learning works by finding associations within data, 'much in the same way that online shopping sites predict products you may like based on your shopping history, and is one type of big data analysis, ' Stevens said. "The risk assessment tools we now use for predicting whether someone might develop heart disease, particularly heart failure or stroke, are very good but they are not 100 percent accurate".