In Brazil, a survey of 23,726 people gave researchers enough information for artificial intelligence to spot patterns in who is most likely to have cavities. The strongest signals were not dental symptoms: they were wealth and how crowded people’s homes were.

Cavities are the world’s most common health condition, affecting billions of people. But tooth decay is shaped by more than what happens in a dentist’s chair. Diet, access to care and the water people drink can all matter. The study suggests that data on these wider conditions could help health teams find groups who may benefit most from prevention.

An international research team analyzed responses and clinical exam results from the 2023 Brazilian Oral Health Survey, a national study coordinated by Brazil’s Ministry of Health. The participants included children, teenagers and adults. Researchers used several machine-learning models, a type of artificial intelligence that searches large sets of information for patterns, to estimate cavity risk and severity for different age groups.

Across the analyses, wealth and household density were the strongest predictors. The researchers also found higher cavity risk among non-white populations across age groups. Private dental insurance and a recent dental visit were linked with lower risk. These are patterns in the survey, not proof that any one factor directly causes tooth decay.

Water access showed a striking difference among 12-year-olds. Of those without fluoridated water, 62.5% had cavities, compared with 35.5% of those served by fluoridated water systems. That gap points to how public infrastructure, as well as personal care, can shape oral health across a community.

The team’s AI models could predict cavity risk and severity by age group while weighing the different factors together. Senior author Fernando Neves Hugo, chair of the Department of Epidemiology and Health Promotion at NYU College of Dentistry, said the approach could help public health teams target resources and preventive care to groups likely to benefit. He described machine learning as a way to reveal risk that can be hidden when a community is viewed only through averages.

The researchers say the method could be useful in other middle-income countries, but the strongest predictors may change with local conditions, such as dental-care access and insurance benefits. Their next aim is to adapt the approach using factors specific to other countries. Hugo and his colleagues are preparing a similar analysis using U.S. data, a step toward testing whether this kind of population-level warning system can guide prevention beyond Brazil.