Strategic Communications and Marketing News Bureau

Machine-learning model reliably predicts cognitive performance

CHAMPAIGN, Ill. — A new study offers insight into the health and lifestyle indicators — including diet, physical activity and weight — that align most closely with healthy brain function across the lifespan. The study used machine learning to determine which variables best predicted a person’s ability to quickly complete a task without becoming distracted.

Reported in The Journal of Nutrition, the study found that age, blood pressure and body mass index were the strongest predictors of success on a test called the flanker task, which requires participants to focus on a central object without becoming distracted by flanking information.

Photo of Shreya Verma. She is outside on a spring day in front of a campus building.
Kinesiology Ph.D. student Shreya Verma is the first author of the study. Photo by Craig Pessman

Diet and exercise also played a smaller but relevant role in performance on the test, the team found, sometimes appearing to offset the ill effects of a high BMI or other potentially detrimental factors.

“This study used machine learning to evaluate a host of variables at once to help identify those that align most closely with cognitive performance,” said Naiman Khan, a professor of health and kinesiology at the University of Illinois Urbana-Champaign who led the work with kinesiology Ph.D. student Shreya Verma. “Standard statistical approaches cannot embrace this level of complexity all at once.”

To build the model, the team used data collected from 374 adults 19 to 82 years of age. The data included participant demographics, such as age, BMI, blood pressure and physical activity levels, along with dietary patterns and performance on a flanker test that measured their processing speed and accuracy in determining the orientation of a central arrow flanked by other arrows that pointed in the same or opposite direction.

“This is a well-established measure of cognitive function that assesses attention and inhibitory control,” Khan said.

Previous studies have found that several factors are implicated in the preservation of cognitive function across the lifespan, Khan said.

“Adherence to the healthy eating index, a measure of diet quality, has been linked to superior executive function and processing speed in older adults,” he said. “Other studies have found that diets that are rich in antioxidants, omega-3 fatty acids and vitamins are associated with better cognitive function.”

The Dietary Approaches to Stop Hypertension, or DASH diet, the Mediterranean diet, and a diet that combines the two, called the MIND diet, all “have been linked to protective effects against cognitive decline and dementia,” the researchers wrote. Physical factors, such as BMI and blood pressure, along with increased physical activity also are strong predictors of cognitive health, or decline, in aging.

“Clearly, cognitive health is driven by a host of factors, but which ones are most important?” Verma said. “We wanted to evaluate the relative strength of each of these factors in combination with all the others.”

Machine learning “offers a promising avenue for analyzing large datasets with multiple variables and identifying patterns that may not be apparent through conventional statistical approaches,” the researchers wrote.

The team tested various machine learning algorithms to see which one best weighed the various factors to predict the speed of accurate responses in the flanker test. The researchers tested the predictive ability of each algorithm, using a variety of approaches to validate those that appeared to perform the best.

They found that age was the most influential predictor of performance on the test, followed by diastolic blood pressure, BMI and systolic blood pressure. Adherence to the healthy eating index was less predictive of cognitive performance than blood pressure or BMI but also correlated with better performance on the test.

“Physical activity emerged as a moderate predictor of reaction time, with results suggesting it may interact with other lifestyle factors, such as diet and body weight, to influence cognitive performance,” Khan said.

“This study reveals how machine learning can bring precision and nuance to the field of nutritional neuroscience,” he said. “By moving beyond traditional approaches, machine learning could help tailor strategies for aging populations, individuals with metabolic risks or those seeking to enhance cognitive function through lifestyle changes.”

The Personalized Nutrition Initiative and National Center for Supercomputing Applications at the U. of I. supported this research.

Khan is a dietitian and an affiliate faculty member of the Division of Nutritional Sciences, the Neuroscience Program and the Beckman Institute for Advanced Science and Technology at Illinois.


Editor’s note:  

To reach Naiman Khan, email nakhan2@illinois.edu.  
To reach Shreya Verma, email shreyav6@illinois.edu.

The paper “Predicting cognitive outcome through nutrition and health markers using supervised machine learning” is available online or from the U. of I. News Bureau.

DOI: https://doi.org/10.1016/j.tjnut.2025.05.003

Read Next

Health and medicine Dr. Timothy Fan, left, sits in a consulting room with the pet owner. Between them stands the dog, who is looking off toward Fan.

How are veterinarians advancing cancer research in dogs, people?

CHAMPAIGN, Ill. — People are beginning to realize that dogs share a lot more with humans than just their homes and habits. Some spontaneously occurring cancers in dogs are genetically very similar to those in people and respond to treatment in similar ways. This means inventive new treatments in dogs, when effective, may also be […]

Honors From left, individuals awarded the 2025 Campus Awards for Excellence in Public Engagement are Antoinette Burton, director of the Humanities Research Institute; Ariana Mizan, undergraduate student in strategy, innovation and entrepreneurship; Lee Ragsdale, the reentry resource program director for the Education Justice Project; and Ananya Yammanuru, a graduate student in computer science. Photos provided.

Awards recognize excellence in public engagement

CHAMPAIGN, Ill. — Individuals and teams from the University of Illinois Urbana-Champaign who have made a visible impact on society were recently recognized with the 2025 Campus Awards for Excellence in Public Engagement. Faculty, staff members, students and community members who engage the public to address critical civic and community issues at the local, state, […]

Uncategorized Portrait of the researchers standing outside in front of a grove of trees.

Study links influenza A viral infection to microbiome, brain gene expression changes

CHAMPAIGN, Ill. — In a study of newborn piglets, infection with influenza A was associated with disruptions in the piglets’ nasal and gut microbiomes and with potentially detrimental changes in gene activity in the hippocampus, a brain structure that plays a central role in learning and memory. Maternal vaccination against the virus during pregnancy appeared […]

Strategic Communications and Marketing News Bureau

507 E. Green St
MC-426
Champaign, IL 61820

Email: stratcom@illinois.edu

Phone (217) 333-5010