Food consumption patterns have undergone changes that in recent years have resulted in serious health problems. Studies based on the evaluation of the nutritional status have determined that the adoption of a food pattern-based primarily on a Mediterranean diet has a preventive role, as well as the ability to mitigate the negative effects of certain pathologies. A group of more than 500 adults, aged over 40 years from our cohort in Northwestern Spain was surveyed. Under our experimental design, ten experiments were run with four different machine-learning algorithms and the predictive factors most relevant to the adherence of a Mediterranean diet were identified. A feature selection approach was explored and under a null hypothesis test, it was concluded that only 16 measures were of relevance, suggesting the strength of this observational study. Our findings indicate that the following factors have the highest predictive value in terms of the degree of adherence to the Mediterranean diet: basal metabolic rate, mini nutritional assessment questionnaire total score, weight, height, bone density, waist-hip ratio, smoking habits, age, EDI-OD, circumference of the arm, activity metabolism, subscapular skinfold, subscapular circumference in cm, circumference of the waist, circumference of the calf and brachial area.