Background

Depression affects mood, quality of life, and physical health [1], and is an independent risk factor for increased mortality [2, 3]. The prevalence of depression among Chinese adults was 20% from 2011 to 2019 [4]. Depression is one of the most common mental health problems among the middle-aged and elderly and has become an important public health problem in China [5]. It not only poses a significant threat to physical and mental health and ability to live, but also brings a heavy burden to families and society. With the aging and the popularity of healthy aging, the prevention and treatment of depression in the middle-aged and elderly is becoming increasingly important.

With the high popularity of the Internet, social media has become a factor that affects mental health. The use of social media could reduce anxiety and loneliness and promote physical health [6], as well as reduce depression levels and increase life satisfaction [7]. Social media can provide many convenient services such as information retrieval and online communication for the middle-aged and elderly with mobility problems, so it is gradually winning their affection. Online socialization could overcome geographical barriers [8], and keep older adults in close contact with family and friends [9], therefore enhancing their social support [10, 11]. WeChat is a popular social media in China and has become an inseparable part of the work and life [12]. According to a report by the Chinese Academy of Social Sciences, WeChat has become the most commonly used online social tool among the elderly [13]. WeChat usage has some positive effects on both physical and mental health of middle-aged and older adults. WeChat usage could reduce the risk of depression in the elderly [14] and had a significant positive impact on subjective health status [15]. A study suggested that WeChat usage may also boost memory in older adults by reducing risk of depression [16]. However, some studies have noted that excessive use of social media, such as WeChat addiction, can have negative effects on the physical, psychological, and social health of users [17,18,19]. We attempted to clarify the correlation between WeChat usage and depression among Chinese middle-aged and older adults, and to explore whether there were mediating variables in the correlation.

Social participation is an important factor, among influences on depression. The definition of social participation is not entirely uniform. In general, social participation refers to activities in which individuals engage in interactions with others in society or the community [20]. In China, whatever way the elderly keep in touch with society is considered to be a form of social participation [21].

Studies showed that social participation was an important part of healthy aging [22], and great for reducing loneliness, relieving depressive symptoms [23, 24], increasing life satisfaction [25], and improving mental health [26]. The higher the frequency and levels of social participation, the lower the risk of depression in older adults [27]. Social participation had a positive effect on health by increasing their social capital and contact between friends and family [28]. Older adults who engaged in social participation tend to have better cognitive behaviors [29]. Many types of socially participating activities had effects on mental health, such as volunteering and healthy exercise [30], paid work [31], religious activity [32]. Different types of social participation could positively affect physical and mental health as well as life satisfaction of older adults through different mechanisms [33].

In the digital era, it has been suggested that social media usage could contribute to social participation among the middle-aged and elderly [34]. Does social participation play a mediating role between WeChat usage and depression in middle-aged and older populations? Do different types of social participation have different mediating effects? In this study, we aimed to 1) clarify the relationship between WeChat usage, social participation, and depression in the middle-aged and elderly in China; and 2) explore the mediating role of different types of social participation activities in the relationship.

Methods

Study design and study sample

We used data from the China Health and Retirement Longitudinal Study (CHARLS) in wave 4 of 2018 for cross-sectional analysis. CHARLS aims to collect high-quality data on households and individuals aged 45 and older in China to analyze aging and promote research on healthy aging. CHARLS surveyed participants for basic information, health status, health insurance and health care, and retirement. CHARLS was approved by the Ethics Review Committee of Peking University, and all participants signed an informed consent form before the investigation and voluntarily participated in the survey [35].

The target population selected was people aged 45 and above. The missing rate of the dependent variable values was 18.18%, and 15,636 participants were included in the study after excluding those with missing key variable values. The total missing rate for the remaining values of all variables was 1.33%, so we directly excluded participants with missing variable values, and the final number of samples included in the study was 15,428. Data inclusion process are shown in Fig. 1.

Fig. 1
figure 1

Data inclusion process

Depression

The dependent variable in this study was depression, which was set as a dichotomous variable based on the CHARLS questionnaire. The 10-item Center for Epidemiologic Studies Depression Scale (CES-D-10), which is a simplified version of The Center for Epidemiologic Studies Depression Scale, is included in the questionnaire of the CHARLS. Each question was scored on a scale of 0–3 (rarely or not at all = 0, not too much = 1, sometimes or half the time = 2, most of the time = 3). The final score was calculated cumulatively, with a total score of 0–30. When the scores were ≥ 10, the respondent was considered to have depressive symptoms, and below 10, the respondent was considered normal. The depression score also reflected the levels of depression in the sample; therefore, the depression was also examined as a continuous variable in this study. The higher the depression score, the higher the levels of depression (Cronbach’s alpha = 0.805).

WeChat usage

The independent variable of this study was WeChat usage status. In the questionnaire, participants were asked “Do you use WeChat?” and the answers included “yes” and “no”. When participants answered “yes”, they were considered to use WeChat, otherwise they were considered not to use WeChat.

Social participation

The mediating variable in this study was social participation. Participants were asked in the questionnaire whether they had engaged in 10 activities in the past month. Participants were considered to be socially engaged if they participated in any of the activities. We also measured the levels of social participation. Participants earn one point for engaging in an activity. Points were accumulated, and the total score ranged from 0 to 10 points. The higher the score, the higher the levels of social participation.

We also tried to explore which type or types of social participation have a mediating role. Based on the experience of previous papers [29], we categorized the 10 activities mentioned in the questionnaire into voluntary activities, recreational activities, cultural activities, and other activities. Voluntary activities included: providing assistance to family, friends or neighbors who do not live with participants; doing volunteer or charitable work; caring for a sick or disabled adult who does not live with participants. Recreational activities included: Interacting with friends; playing Mahjong, chess, cards, or going to community clubs; going to sports, social or other types of clubs. Cultural activities included: participating in a community-related organization; participating in an educational or training course. Other activities contained: stock investment; and other activities. Participants were considered to have taken part in the type if they engaged in any of the activities in that type. Participants earn one point for engaging in an activity. Voluntary activities, recreational activities, cultural activities and other activities were respectively scored cumulatively to measure the participation levels in these four types of activities.

Covariates

We selected a series of control variables that may be associated with depressive symptoms, including demographic characteristics [36,37,38] (age, gender, marital status, residence, education), health status and health behaviors [39,40,41,42] (self-reported health, activities of daily living scale (ADL), smoking, drinking, sleep duration, chronic disease status), and protective factors [31, 43,44,45,46] (health insurance, pension, employment status). For age, we selected people aged 45 and above; for marital status, we reclassified them according to the answers of the questionnaire, and considered married and living with spouse, married but not living with spouse temporarily as married; separated and no longer living with spouse, divorced, widowed, and never married as unmarried. Educational attainment was classified into five categories: no education, elementary school, middle school, high school, and college and above. Since the sleep time showed a skewed distribution, we logarithmically processed the sleep time. For chronic disease prevalence, we divided the population into five categories: no disease, one chronic disease, two chronic diseases, three chronic diseases, and four or more chronic diseases. The detailed coding of the variables is shown in Table 1.

Table 1 Coding of variables

Data analysis

We would use t-tests for continuous variables and chi-square tests for categorical variables to compare the sample characteristics between the WeChat users and non-WeChat users. Given that WeChat usage was not randomly distributed in the study, we used propensity score matching (PSM) to match the subjects. We used Psmatch2 to identify covariates and perform propensity score analysis. A 1:2 matching group was eventually constructed by nearest-neighbor matching, and the whole set of control variables was included in PSM.

Then, we used binary logistic regression and multiple linear regression on the matched groups to analyze the correlation between WeChat usage and depression. Since one of the dependent and mediating variables were both dichotomous, we used stepwise regression to examine the presence of a mediating effect. We also used the KHB method to check the mediating effect again and to analyze whether the mediating effect differed in different populations. The data were processed and analyzed using stata16.0.

Results

After data cleaning, we included 15,428 participants in the study. After PSM, we finally matched 4545 participants for the final analysis, including 1906 participants who used WeChat and 2639 participants who did not use WeChat. The PSM results showed that the t-value of ATT was − 4.72, and the p-values of t-tests for all control variables were greater than 0.1, and the bias was less than 10%, which implied that the balance test was passed. According to the kernel density plot (Fig. 2), we found that the differences between the treated and control groups were large before matching, and the differences decreased significantly after matching, which indicated a better matching effect.

Fig. 2
figure 2

Kernel density map

After PSM, the significance of differences in gender, marital status, sleep duration, ADL, smoking, employment, pension insurance, health insurance and chronic disease prevalence status no longer existed in the matched group, but the significance of differences between age, residence, education, self-reported health and drinking persisted. The mean age of all participants was 56.0 ± 7.3, the average age of WeChat users was 55.7 ± 7.4, and the average age of non-users was 56.2 ± 7.3. After matching, there were 2093 females (46.1%), 4229 were married (93.0%), 51.8% lived in rural areas, 70.7% had jobs, and only 26.4% did not suffer from chronic diseases. Among WeChat users, 451 (23.7%) had depression and their education levels were mostly concentrated in middle school (38.6%) and high school (27.1%), while 825 (31.3%) among non-WeChat users had depression and their education levels were mostly concentrated in elementary school (32.1%) and middle school (37.8%). The detailed characteristics of the other variables are shown in Table 2.

Table 2 Sample characteristics before and after PSM for WeChat users and non-WeChat users

Regression results for WeChat usage, social participation and depression are presented in Tables 3 and 4. Table 3 used the occurrence of depression as the dependent variable. Model 1 measured WeChat usage and demographic characteristics, Model 2 included all control variables. Models 3 and 4 incorporated the presence and levels of social participation respectively. We could find that in models 1–4, WeChat usage was consistently and significantly associated with a lower risk of depression, as well as the presence and levels of social participation were significantly associated with the lower risk of depression. At the same time, we found that the effect of WeChat on depression was correspondingly reduced after including the variables related to social participation, which suggested social participation might have a partial mediating effect. We could also find that older age, being male, living in a city, having health insurance, better self-reported health and longer sleep duration were significantly associated with not having depression. In contrast, impaired ADL and having more chronic diseases were risk factors for depression.

Table 3 Binary logistic regression results of WeChat usage, social participation and depression
Table 4 Regression results of WeChat usage, social participation and depression levels

In Table 4, we replaced the dependent variable with the levels of depression, and WeChat usage was consistently and significantly associated with lower levels of depression. In Models 7 and 8, the presence and levels of social participation were significantly associated with lower levels of depression. The effect of WeChat on the levels of depression was also reduced with the inclusion of variables related to social participation, suggesting that social participation may also have a partially mediating role. Compared to Table 3, the significance of the association between education levels and depression levels increased, and the association of being married and employed with lower depression levels also showed significance.

After matching, the most popular activity was recreational activities (55.01%), followed by voluntary activities (23.83%). While cultural activities (5.94%) and other activities (3.41%) had lower participation rates (Fig. 3). Table 5 reports the results of the binary logistic regression of the four types of social activities and depression after the inclusion of all control variables. The results showed that participating in recreational activities (aOR:0.812,95%CI:0.701–0.940) and participating in two recreational activities (aOR:0.860,95%CI:0.783–0.945) were significantly associated with non-depression. Also, in Table 5, WeChat usage continued to be significantly associated with non-having depression, and the effect of WeChat usage on depression decreased in all models compared to model 3. In Table 6, we replaced the dependent variable with the levels of depression. We found that participating in recreational activities (p < 0.05) and levels of recreational activities (p < 0.01) were significantly associated with lower levels of depression. Compared to Model 6, the effect of WeChat usage on depression levels decreased both in Model 18 and Model 22. Thus, there might be a partial mediating effect of recreational activities.

Fig. 3
figure 3

Participation rate of various activities in WeChat usage group

Table 5 Binary logistic regression results of different types of social participation and depression
Table 6 Regression results of different types of social participation and the levels of depression

Then we used binary logistic regression, ordered logistic regression and linear regression to test the significance of the correlation between the independent variables and the mediating variables. The results in Table 7 showed that the use of WeChat was significantly correlated with all four mediating variables. We therefore suggested that social participation and recreational activities might have a partially mediating role. Combining the results in Tables 3, 4, 5, 6, 7, we could calculate the percentage of mediating effects. When using being depressed as the ending variable, the mediating effect of performing social participation accounted for 49.86% of the total effect (a1b1 = − 0.177), the mediating effect of the levels of social participation accounted for 12.68% (a2b2 = − 0.045), the mediating effect of participating in recreational activities accounted for 42.82% (a3b3 = − 0.152). When the levels of depression were used as the ending variable, the mediating effect of performing social participation accounted for 40.28% of the total effect (a4b4 = − 0.317), the mediating effect of the levels of social participation accounted for 12.07% (a5b5 = − 0.095), the mediating effect of participating in recreational activities accounted for 28.97% (a6b6 = − 0.228). Since the level of recreational activities was an ordered categorical variable, we could not directly calculate the percentages.

Table 7 Regression results for WeChat usage and mediating variables

To verify the accuracy of the mediating effect of social participation, we verified the mediating effect of social participation again using the KHB method, which extended the decomposability of linear models to nonlinear probability models for a variety of situations [47]. The results in Table 8 showed that the mediating effects of social participation and recreational activities were significant for the dependent variable whether it was occurrence of depression or levels of depression. We could assume that all four variables had mediating effects.

Table 8 KHB test for social participation

Finally, we divided the population into two groups respectively according to age and gender: the middle-aged (45–59), the elderly (60–84), the female and the male. We tried to analyze whether the correlation between WeChat usage and depression (see Supplementary Material S1–S2) as well as the mediating role of social engagement (see Supplementary Material S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13) were heterogeneous because of age and gender. WeChat usage could reduce the levels and risk of depression in all groups and reduced the risk of depression better in the elderly than in the middle-aged. Apart from among women, social participation played the mediating role in almost all groups. However, the mediating effect of recreational activities was only present in the middle-aged.

Discussion

This study concluded that WeChat usage was significantly associated with lower risk of depression and lower levels of depression in middle-aged and older adults, while social participation had mediating effects. Moreover, there was heterogeneity in the mediating effect across groups.

After we used PSM and adjusted for a range of control variables, the study found that WeChat usage was significantly associated with lower rates of depression and lower levels of depression. Social media usage was generally significantly associated with fewer depressive symptoms [48, 49], which is generally consistent with previous studies. There is an explanation that increasing age decreases physical functioning and impedes mobility in older adults, which increases the vulnerability to social isolation and loneliness dilemmas, causing mental health problems [50]. According to a survey, almost half of the elderly in China lived alone or only with their spouses [51]. Due to physical and distance reasons, it is difficult for them to meet with their relatives or friends frequently. Besides the convenience and speed of social media, its real-time updates and interactivity can facilitate the middle-aged and elderly to communicate with others and share their emotions, which may alleviate the problem of social isolation. For example, the use of social media such as WeChat and Facebook could expand the social network of the middle-aged and elderly, enhance their interaction with others, and promote communication and emotional cohesion with family members [52, 53]. So, we think that WeChat, as a comprehensive social media, offers online communication technology that may benefit people who cannot or rarely interact with others face-to-face, and its mental health benefits for middle-aged and older adults should be considered.

Social participation has a great impact on the occurrence of depression. We found that middle-aged and older adults who do not engage in social participation have a higher risk of depression than those who do, and among the four types of social participation activities proposed in this study, recreation could significantly reduce the probability and levels of depression. In line with the results of previous studies, active social participation could significantly reduce the risk of depression [22,23,24]. Because positive social participation may increase communication and interaction between middle-aged and older adults and help them understand the aging process as well as mitigate the negative effects of aging on mental health [54]. Recreational activities chosen according to their interests can also help them to relieve negative emotions effectively [21]. In this study, we found that recreation (socializing, playing Mahjong, playing chess, dancing, practicing qigong, etc.) was the main social activity of Chinese middle-aged and older adults. Competitive activities, such as playing chess and mahjong, can fully exercise their thinking skills and bring joy as well as a sense of accomplishment when they achieve victory. Leisure activities, such as dancing and qigong, can effectively relax their bodies. These activities are usually participated by many people and they can have sufficient conversations while engaging in recreational activities, which can allow them to relax and release the negative emotions caused by stressful events. Therefore, we hold the opinion that it may be effective to reduce the risk of depression by organizing more forms of recreational activities to meet the needs of the middle-aged and elderly, and encouraging them to try more forms of social participation.

This study found that WeChat usage can promote social participation in middle-aged and older adults, which is consistent with previous findings [34, 43, 55]. We further found that WeChat usage can influence depression through social participation. A possible reason is that online socializing can alleviate the shrinking social circle of older adults [15, 56]. Especially for those who have fewer social activities, online communication technologies allow them to gain more opportunities to communicate with others [57]. We think that the photo sharing, voice messaging and video calling technologies of social media have greatly increased the fun of communication for the middle-aged and elderly. It also fulfills their need for emotional expression and sharing their lives. Social media enhances their resistance to depression by increasing their emotional support and social support. On the other hand, social media can have an impact on different groups of people [58]. We think the online social function of social media is applicable not only to individuals, but also to groups. For example, different family WeChat groups can be established among different family members. The middle-aged and elderly can also form WeChat groups with like-minded people to promote further communication among them and facilitate them to organize more offline activities. Both online interaction and offline communication can alleviate the loneliness of the middle-aged and elderly and have a positive effect on mental health.

Our study found that WeChat usage promotes social participation among middle-aged and older adults, but only the recreational activities among them have a mediating effect. In previous studies, voluntary and cultural activities were also beneficial to physical and mental health [30, 46, 59], but in this study, we did not find that they could have a mediating effect. Probably the reason is that the sample of this study had a high participation rate in recreation and a low participation rate in other types of activities, especially cultural activities, which social activity participation status had an impact on the final results. Another possibility is that WeChat usage does not have an impact through these types of activities, which needs to be further investigated.

We also found some differences in the levels of effect of WeChat usage on depression and in the mediating effect of social participation because of differences in age and gender. The positive effect of WeChat usage on depression was better in the elderly than in the middle-aged. Although social participation had mediating effects in most groups, WeChat usage reduced the prevalence of depression through recreational activities only in middle-aged adults and men. Possible explanations are that communication is the most pressing need for WeChat usage [60]. The use of social media such as WeChat can help older adults communicate more easily with family and friends, share their lives and communicate emotionally [15], which can have a more positive effect on mental health. Compared with the elderly, middle-aged people are less likely to face obstacles in action and communication because of better physical health. On the other hand, older adults still face some difficulties in using WeChat, but the middle-aged group has better learning and receptive abilities, so they are more likely to fully utilize social media such as WeChat for recreational activities and thus gain mental health benefits. We propose that the accessibility of social media for older adults should be taken into account to fully utilize the positive effects of social media on mental health.

This study still has some limitations. First, we were using cross-sectional data as the CHARLS question item on WeChat first appeared in 2018, so we were unable to predict the causal relationship between WeChat usage and social participation and depression. In future studies, we will consider using longitudinal data to study this aspect; Second, the effect of WeChat usage on depression may also arise through other mediating variables, but this study only explored the mediating role of social participation. We will look for the possibility of other mediating variables in future studies. Our classification of activities may not be sufficiently objective because we did not find a unified classification standard for social participation activities. Finally, we have adjusted for covariates as much as possible and used propensity score matching to make the results as robust as possible, but the factors affecting depression are complex and there are still some unobserved or unaccounted for biases.

Despite some limitations, this study also has some practical implications. First, we verified that WeChat usage and social participation were protective factors for depression in Chinese middle-aged and elderly people. Second, we found that WeChat usage could reduce the risk and levels of depression through social participation. This would imply that we can further promote social participation rates through social media usage to reduce the risk of depression among the middle-aged and elderly.

Conclusions

Our findings suggested that WeChat usage was significantly associated with lower risk of depression and lower levels of depression in a Chinese middle-aged and elderly population, with a partial mediating effect of social participation and recreational activities. These findings may have important implications for the prevention and treatment of mental health in middle-aged and older populations. Encouraging middle-aged and older adults to actively use social media and participate in social activities may be considered for the prevention and treatment of depression in the future to enhance mental health.