BackgroundWith the continuous advancement of age in China, attention should be paid to the mental well-being of the elderly population. The present study uses a novel machine learning (ML) method on a large representative elderly database in China as a sample to predict the risk factors of depression in the elderly population from both holistic and individual level. MethodsA total of participants met the inclusion criteria from the fourth waves of the China Health and Retirement Longitudinal Study (CHARLS) were analyzed with ML algorithms. The level of depression was assessed by the 10-item Center for Epidemiological Studies Depression Scale (CESD-10). ResultsThe current study found top 5 factors that were important for predicting depression in the elderly population in China, including average sleep time, gender, age, social activities and nap time during the day. The results also provide reliable diagnostic likelihood at the individual level to support clinicians identify the most impactful factors contributing to patient depression. Our findings also suggested that activities such as interacting with friends and play ma-Jong, chess or join community clubs may have a positive collaborative effect for elderly's mental health. ConclusionsHolistic approaches are an effective method of deriving and interpreting sophisticated models of mental health in elderly populations. More detailed information about a patient's demographics, medical history, sleeping patterns and social/leisure activities can help to inform policy and treatment interventions on a population and individual level. Large scale surveys such as CHARLS are effective methods for testing the most accurate models, however, further research using professional clinical input could further advance the field.