Research shows that eating more carbohydrates and calcium is associated with lower risk of developing both diabetes and cancer together, according to a Gram Research analysis of over 20,000 Americans. A computer program trained on dietary data achieved 89.8% accuracy in predicting who had both diseases, identifying vitamins D, K, A, and C, along with minerals like calcium and iron, as the most protective nutrients.
Researchers used artificial intelligence to study how diet affects the risk of developing both diabetes and cancer at the same time. They analyzed information from over 20,000 people and found that certain foods and nutrients, especially those high in carbohydrates, calcium, and vitamins, may help lower the chances of getting both diseases together. According to Gram Research analysis, the study identified which specific dietary components matter most for preventing this dangerous combination of health problems.
Key Statistics
A 2026 study of 20,307 Americans found that an AdaBoost computer program predicted diabetes-cancer comorbidity with 89.8% accuracy using 41 dietary factors from national health surveys.
Research reviewed by Gram identified 13 key dietary components most protective against diabetes-cancer comorbidity, with carbohydrates and calcium showing the strongest negative association with disease risk.
Among 20,307 participants in the 2009-2018 national health surveys, 682 people had both diabetes and cancer, and higher calcium intake was associated with lower predicted probability of this comorbidity.
The Quick Take
- What they studied: Can we use computer programs to predict which people are most likely to develop both diabetes and cancer at the same time by looking at what they eat?
- Who participated: Over 20,000 American adults from national health surveys between 2009 and 2018. About 682 of these people had both diabetes and cancer.
- Key finding: A computer program called AdaBoost could predict diabetes-cancer comorbidity with 89.8% accuracy. Eating more carbohydrates and calcium was linked to lower risk of having both diseases together.
- What it means for you: Eating a diet rich in whole grains, vegetables, and calcium-rich foods may help protect against developing both diabetes and cancer. However, this is early research, and you should talk to your doctor about your personal diet and health risks.
The Research Details
Researchers used data from national health surveys that tracked what Americans ate and their health conditions. They took information about 41 different dietary components, like vitamins, minerals, and carbohydrates, from over 20,000 people. They then used seven different computer programs, or algorithms, to see which one could best predict who had both diabetes and cancer based on their diet. Think of it like teaching a computer to recognize patterns in food choices that connect to disease risk. The best-performing program, called AdaBoost, was then analyzed using a special technique called SHAP to understand exactly which foods and nutrients were most important for making these predictions.
Using computer programs to predict disease risk is important because it can help doctors identify people who need extra attention and prevention strategies. By understanding which specific nutrients matter most, researchers can develop targeted dietary recommendations for people at high risk. This approach is more powerful than just looking at one nutrient at a time because it considers how all the foods and nutrients work together.
This study used a large, representative sample of real Americans from government health surveys, which makes the findings more trustworthy. The researchers tested seven different computer programs to make sure they found the best one. However, this is observational research, meaning it shows associations between diet and disease risk, not proof that changing your diet will prevent disease. The study cannot prove cause and effect, only that certain dietary patterns appear together with lower disease risk.
What the Results Show
The AdaBoost computer program was the most accurate at predicting diabetes-cancer comorbidity, correctly identifying cases 89.8% of the time. The program identified 13 key dietary components that were most important for prediction. Vitamins were crucial, including vitamin D, vitamin K, vitamin A, vitamin C, thiamin, folate, niacin, and beta-carotene. Minerals also mattered, particularly calcium, iron, sodium, and copper. Carbohydrates and dietary fiber were also identified as important factors. The most interesting finding was that higher intake of carbohydrates and calcium were associated with lower predicted risk of having both diabetes and cancer together. This suggests that these nutrients may have a protective effect against developing both diseases at the same time.
The study found that the combination of multiple nutrients working together was more predictive than any single nutrient alone. This means that eating a balanced diet with many different vitamins and minerals is more protective than focusing on just one nutrient. The research also showed that sodium had a different pattern than other minerals, suggesting that limiting salt intake might be important for disease prevention.
Previous research has shown that diabetes and cancer are connected and that diet affects both diseases. This study builds on that knowledge by using advanced computer technology to identify exactly which dietary components matter most for preventing both diseases together. It confirms that vitamins and minerals are protective while also highlighting the importance of carbohydrates and calcium specifically.
The study only looked at data from one point in time, so it cannot prove that changing your diet will prevent disease. The research was conducted in the United States, so results may not apply to people in other countries with different diets. The study identified people who already had both diseases, so it cannot tell us if dietary changes earlier in life would have prevented the diseases. Additionally, the computer program was trained on this same data, so it may not work as well on new groups of people.
The Bottom Line
Eat a diet rich in whole grains, vegetables, and calcium-rich foods like dairy or leafy greens. Include a variety of colorful fruits and vegetables to get different vitamins. Limit processed foods and excess salt. These recommendations are based on moderate evidence from this study combined with existing nutrition science. Talk to your doctor or a dietitian before making major dietary changes, especially if you have diabetes or a family history of cancer.
This research is most relevant for people with diabetes, people with a family history of cancer, and anyone interested in disease prevention through diet. It may be especially important for people over 50, since both diabetes and cancer become more common with age. People without any health conditions can also benefit from eating the recommended foods for general health.
Dietary changes typically take several months to show health benefits. You might notice improved energy and blood sugar levels within 4 to 8 weeks. Reducing disease risk is a long-term benefit that develops over years of healthy eating habits.
Frequently Asked Questions
Can diet prevent you from getting both diabetes and cancer at the same time?
Research suggests that eating foods rich in calcium, carbohydrates, vitamins D, K, A, and C may lower your risk. A study of 20,307 people found these nutrients were most protective, but diet alone cannot guarantee prevention. Talk to your doctor about your personal risk factors.
What specific foods should I eat to reduce diabetes and cancer risk?
Focus on whole grains for carbohydrates, dairy or leafy greens for calcium, and colorful fruits and vegetables for vitamins. Include sources of vitamin D like fatty fish or fortified milk. Limit processed foods and salt. This balanced approach addresses the protective nutrients identified in the research.
Is calcium really that important for preventing these diseases?
According to this research, calcium was one of the top protective nutrients identified by computer analysis of 20,307 people’s diets. Higher calcium intake was associated with lower disease risk, though more research is needed to confirm cause and effect.
How long does it take for dietary changes to reduce disease risk?
You may feel better within weeks, but reducing long-term disease risk takes months to years of consistent healthy eating. Blood sugar improvements can appear in 4 to 8 weeks. Work with your doctor to monitor progress through regular check-ups.
Does this research apply to people outside the United States?
This study used data from American health surveys, so results may vary in other countries with different diets and genetics. The protective nutrients identified, like calcium and vitamins, are universal, but individual recommendations should consider your local food availability and cultural diet.
Want to Apply This Research?
- Log your daily intake of calcium, carbohydrates, and key vitamins (D, K, A, C). Track whether you meet recommended amounts for each nutrient daily. Compare your nutrient intake to the protective levels identified in this research.
- Add one calcium-rich food to each meal (yogurt at breakfast, cheese at lunch, leafy greens at dinner). Increase whole grain carbohydrates by swapping refined grains for brown rice, oats, or whole wheat bread. Include at least three different colored vegetables daily to get a variety of vitamins.
- Weekly review of nutrient intake patterns. Monthly check-ins on energy levels and how you feel. Quarterly blood work with your doctor to monitor blood sugar and other health markers if you have diabetes or are at risk.
This research identifies associations between diet and disease risk but does not prove that dietary changes will prevent diabetes or cancer. This article is for educational purposes only and should not replace professional medical advice. If you have diabetes, a history of cancer, or concerns about your health, consult with your doctor or a registered dietitian before making significant dietary changes. Individual nutritional needs vary based on age, health status, medications, and other factors that only a healthcare provider can assess.
This research translation is published by Gram Research, the science division of Gram, an AI-powered nutrition tracking app.