Studies have convincingly documented that social media addiction is common among university and college students and that this addiction is harmful to their mental health (Berryman et al., 2018; Cain, 2018; Kircaburun et al., 2018). Given the increasingly prominent role of social media in university students’ lives during the COVID-19 pandemic, understanding the effect of social media on their mental health is critical. The dominance of online learning during lockdown is forcing many university students to live via the internet and social media. With limited physical and social activities outside the home and more time spent with mobile phones and the Internet, social media addiction among students may worsen during the coronavirus pandemic. Hence, the risks to their mental health come not only from the pandemic situation itself, but also from their increased Internet and social media use. Recent evidence suggests that too much time spent on social media has been taking a toll on the mental health of users during the COVID-19 pandemic in Wuhan (Gao et al., 2020).

Studies suggest that strong family relationships and personal religiosity may mitigate students’ mental health challenges during the pandemic. Studies have documented that good family relationships reduce the likelihood of depression among students (Chen et al., 2020; ul Haq et al., 2018; Wu et al., 2020; Zhai et al., 2016). During this pandemic, maintaining good family relationships is necessary for students’ mental health, since many must spend more time at home with their families in order to comply with social isolation and distancing measures (Chen et al., 2020; Wu et al., 2020). Being thus confined during this uncertain and stressful time may strain family relationships if students are unable to build good relationships with those in their households. On the other hand, students who are able to cultivate good connections with their parents, siblings, and other family members may be better able to cope with the stressful situation and therefore to maintain their mental health in social isolation (Wu et al., 2020).

Previous studies have also generally found religiosity to benefit students’ mental health (Hackney & Sanders, 2003; Pajević et al., 2005). Religiosity improves students’ mental health by promoting psychic development, healthy states of mind, and emotional stability (Pajević et al., 2005). On the other hand, it also reduces the tendency to high-risk behaviour, impulsive reactions, and aggression (Kirchner & Patino, 2010). Other scholars suggest that religiosity benefits mental health via the mechanism of religious social support, defined as the emotional and tangible support that an individual receives, provides, and expects from their religious community. Krause et al. (2001) explain that religious social support can be quantified by the size of an individual’s social network as a result of participation in religious and spiritual activities (Debnam et al., 2012). Hence, religiosity may sustain the mental health of students during the outbreak by offering both social support and spiritual fulfilment.

Accordingly, this study aims to examine the association between social media addiction and mental health among university students in Indonesia, as well as examine whether family relationships and religiosity may mitigate the harmful effects of social media on the mental health of these students during the COVID-19 pandemic. Existing studies suggest that social media addiction harms students’ mental health (Cain, 2018; Macaskill, 2013; ul Haq et al., 2018; Zhai et al., 2016), and that family relationships and religiosity benefit students’ mental health (Hackney & Sanders, 2003; Pajević et al., 2005). Family relationships and religiosity may therefore reduce the harmful effects of social media addiction on students’ mental health during the pandemic through social and spiritual means (Debnam et al., 2012). Hence, this study proposes two hypotheses. H1 = social media addiction is associated with lower students’ mental health. H2 = students who have higher social media addiction but have a good relationship with their families or perceive themselves as religious individuals are likely to have better mental health than students who have higher social media addiction but have a poor relationship with their families or perceive themselves as non-religious individuals. Our goal in this paper is to test whether these hypotheses can be confirmed for Indonesian university students in the early stages of the pandemic. To our knowledge, this is the first study to examine university students’ mental health in Indonesia in the context of the COVID-19 outbreak. Thus, the findings of this study may provide new information for researchers and policy makers seeking to understand the mental health of students during the pandemic.

Materials and Methods

Contexts

This study was conducted in the setting of Indonesian universities, where, like schools around the world, face-to-face classroom teaching has been replaced by online learning since March 18, 2020. Students are not allowed to be at their universities. For their safety, many universities have encouraged students to return to their families, a move that may be seen unfavourably by some students as a loss of their everyday freedom. Meanwhile, physical distancing and lockdown policies force citizens to limit social activities outside home. Unlike in normal times, most are currently unable to engage in collective physical exercise, go with friends to malls or supermarkets, meet in coffee shops, or even go to the cinema, given that most of those facilities have been closed.

Most try to meet their social needs via social media, which both connects them with friends and provides entertainment during the tedious hours at home. A 2019 survey by the Indonesian National Bureau of Statistics reported that 72 million young Indonesians used the Internet regularly and that more than a half of those used social media such as Facebook, WhatsApp, Instagram, and YouTube (BPS, 2020). Recent statistics also show that during the pandemic, social media platforms such as WhatsApp, Line, Telegram, and Facebook have experienced a 40% increase in total users in Indonesia, while users of online game apps have increased by 24% (Kata Data Indonesia, 2020). On average, WhatsApp and Facebook users open their account 100–200 times a day and 10–15 times a day, respectively. The average amount of time Indonesians spend accessing the Internet and social media during the outbreak has also increased markedly, from about 5.5 to almost 8 h a day. Most Internet and social media users are young adults (16–24 years old) (Kata Data Indonesia, 2020). With the increasing time and intensity of Internet use by young adults, especially university students, during the pandemic, the risk of addiction to social media and the Internet among this group is higher than in typical situations. These risks may result in harm to their mental health.

Strong family relationships and religiosity are two social and cultural characteristics of Indonesian university students, which are also reflected in Indonesian society at large (French et al., 2020; Purwono et al., 2019). Indonesians are very family-oriented, meaning that family relationships are very close, and characterised by mutual love and an obligation to take care of each other. We believe that this important social feature can benefit the mental health of university students who must adapt to a stressful situation during the pandemic. Good family relationships help students to feel safe and to enjoy their time with family members during quarantine; most importantly, good relationships reduce the risk of experiencing depression during the pandemic.

Indonesia’s social and cultural life is also characterised by strong religiosity. The 2012 Gallup Survey reported that Indonesia was one of the five most religious countries in the world (Gallup, 2012). According to the survey, almost all Indonesians (99%) said that religion played an important role in their daily lives. Religious activities are also part of Indonesia’s university education: religion and religiosity are compulsory aspects of the national curriculum. Religious activities, such as praying at university mosques, churches, and Buddhist temples, or attending religious talks, are important cultural activities that are part of students’ everyday lives. Likewise, most Indonesian families are very religious. Throughout the country, regular religious activities form part of families’ and communities’ everyday lives. Thus, we expect that religiosity may benefit the mental health of university students during the pandemic.

Ethical Clearance

This study received ethical approval from the Ministry of Education and Culture, University of Brawijaya (Number 330/EC/KEPK/2020).

Online Survey

We used an online survey platform as the most feasible method of data collection due to the nationwide university lockdown policy. Before data collection, pre-testing of the online survey platform was conducted, asking 10 eligible participants whether they could easily access the link to the online questionnaire, and whether they experienced any trouble opening and using the survey link. We also asked them to identify any vague or overly complicated questions or response options. All participants reported that they easily accessed and used the link and that all the questions and responses in the questionnaire were clear and easy to understand. The average time to complete the survey was 10–15 min. Validity and reliability tests were applied to the questionnaire. The validity coefficient (correlation coefficients) for CES-D items and BSMAS items was 0.791 and 0.751 respectively, while the coefficient alpha (Cronbach’s alpha) for CES-D was 0.901 and for BSMAS was 0.819. All measures of validity and reliability tests indicate both instruments are statistically acceptable (Tavakol & Dennick, 2011). In addition, to estimate the reliability of the entire survey, the Spearman-Brown correction was applied. Kappa values ≥ 0.70 indicate the instrument was statistically reliable.

The online survey was available from June 3 to June 20, 2020, about 3 months after university students in Indonesia were required to begin studying from home due to the pandemic. The survey was created using a template from Google Forms for business to enhance its functionality and security. The survey link was distributed to university stakeholders representing seven Indonesian regions (Sumatra, Jawa and Bali, Kalimantan, Sulawesi, Nusa Tenggara, Maluku, and Papua), who distributed the online questionnaire to their students. These university stakeholders asked lecturers to share the survey link to their students via email or student WhatsApp groups. We asked the lecturers to explain to students the purpose of the survey. Written informed consent was obtained from all respondents.

We used stratified random sampling technique to determine respondents in this study. First, we stratified respondents into 6 major university regions in Indonesia: Sumatra, Jawa and Bali, Kalimantan, Sulawesi, Nusa Tenggara, Maluku, and Papua. Second, we allocated ~116 respondents per region to be randomly selected for the study. With a confidence level 1.96, margin of error 0.05, design effect 1.5, and expected response rate 0.8, we found estimate sample 125 respondents per region (Verma & Verma, 2020). In total, we collected data from 709 participants, representing students in each of the above-mentioned regions. The dataset for this study can be accessed in open platform database OSF in the following links: https://osf.io/d2mjv/.

Measures

Mental health was measured using the CES-D scale, which consists of 10 items asking respondents to rate how often in the past week they have experienced symptoms associated with depression (Eaton et al., 2004). These include whether the student was bothered by things that usually do not bother them; whether the student had trouble concentrating on what they were doing; whether the student felt depressed, fearful, or lonely; whether the student felt everything they did was an effort; whether the student felt hopeful about the future; whether the student had trouble sleeping; and whether the student felt happy. For Indonesia’s context, the 10 items of the CES-D scale were validated and used in a large national survey, the longitudinal Indonesia Family Life Survey 1993–2014 (Strauss et al., 2016). It also has been widely used by researchers and practitioners to study mental health in Indonesia (Fahmi et al., 2019; Tampubolon & Hanandita, 2014; Tran et al., 2019). Responses were recorded using ordinal scale ranges from 0 to 3 (0 = rarely or none of the time, or 0–1 day in a week; 1 = some or little of the time, or 1–2 days in a week; 2 = moderately or much of the time, or 3–4 days in a week; 3 = most or almost all the time, or 5–7 days in a week). CES-D score was calculated as the sum of responses to the 10 items after the positively phrased items were reverse-coded. Scores range from 0 to 30, with high scores indicating higher levels of depressive symptoms (Sujarwoto et al., 2019). A cutoff point of 10 is used to identify depression in an individual (Fahmi et al., 2019; Tran et al., 2019). In this study, we use both continuous scores and binary scales of mental depression.

Social media addiction was measured using the Bergen Social Media Addiction Scale (BSMAS), which consists of six self-reporting items intended to measure an individual’s risk of social media addiction on the Internet (Andreassen et al., 2017). The BSMAS applies the six core addiction elements (salience, mood modification, tolerance, withdrawal, conflict, and relapse) proposed by Griffiths (2014) to assess the experience of using social media (Andreassen et al., 2016). In this survey, responses were recorded using ordinal scale ranges from 1 to 5 (1 = very rarely; 2 = rarely; 3 = sometimes; 4 = often; 5 = very often). BSMAS score was calculated as the total sum of responses to the 6 items asked to respondents. A higher score on the BSMAS indicates stronger addiction to social media, and a BSMAS score over 19 indicates that an individual is at risk of developing problematic social media use (Bányai et al., 2017). The 6 items of BSMAS scale were validated and used in previous studies in the Indonesian context (Herawati, 2019; Ratri, 2018). The detailed CES-D and BSMAS scales used in this study can be seen in the Supplementary file 1.

We used a single measure of religiosity, following Gorsuch and McFarland (1972), who suggested that a single measure is sufficient to indicate an intrinsic pro-religious position. In this study, religiosity was measured by asking participants to rate themselves as either very religious, religious, somewhat religious, or not religious in response to the question, “How religious are you?” Family relationships were measured with two questions asking participants to rate their relationships with parents and siblings: “How is your relationship with your parents?” (1 = not good at all, 2 = not good, 3 = neutral, 4 = good, 5 = very good) and “How is your relationship with your siblings?” (1 = not good at all, 2 = not good, 3 = neutral, 4 = good, 5 = very good) (Moon & Rao, 2010). Data collected on the socio-economic characteristics of students and parents included age and sex of students, parental income, parental job status, and parental marital status.

Statistical Analysis

Statistical analyses were conducted as follows. First, to test the association between social media addiction and mental health, we used Poisson’s regression. The same technique was used to accommodate the skewed and non-negative distribution of CES-D scores (Harris et al., 2012; Hilbe, 2014). Second, we used logistic regression to estimate the probability of a student’s depression. Marginal effects were also presented to examine how CES-D score and depression change when BSMAS, relationship with parents, and religiosity change. Third, to test whether religiosity and relationship with parents mitigate the association between social media and mental health, we created interaction variables of both mediators and BSMAS scores. We used Poisson’s regression to estimate the interaction variables on CES-D score. The maximum likelihood (ML) estimator was used to estimate all models; for the probability model, we also reported the odds ratio (OR) (Drukker, 2010). STATA 16 was used to estimate the models.

Results

Descriptive Characteristics of Participant Samples

Table 1 presents the descriptive characteristics of the participants. The average age of participants was 24 years old; most were female (62%) and lived with their parents (74%). Seventy-two percent of participants had mild depression issues. The average CES-D score was 13.37 (SD 5.15, range 0–28), which was slightly higher than the result for the average non-senior adult in the 2014 Indonesia Family Life Survey. The average social media addiction score was quite high, at 16.79 (SD 4.03, range 6–24). Compared to previous studies of social media addiction in Indonesia (Ratri, 2018), this average score was slightly higher. Most of the participants reported having good relationships with their parents and siblings, and being religious. Most respondents’ parents were working in the formal sector and had incomes between 2 million and 5 million rupiah per month (USD 143–357). Eleven percent of participants’ parents were divorced, and 3% of participants had parents who were both deceased.

Table 1 Descriptive characteristics of sample

Poisson Regression Results

Table 2 presents the results of the Poisson regression. Model A describes correlations between BSMAS and CES-D scores. Higher social media addiction scores are associated with poorer mental health (Coef. = 0.02, CI = 0.02–0.03). Model B includes students’ reports of their relationship to their parents and their perceived religiosity. Controlling for students’ and parents’ socio-economic characteristics, higher social media addiction scores are associated with poorer mental health (Coef. = 0.01, CI = 0.01–0.02). Students who reported having good relationships with their parents (Coef. −0.10, CI: −0.13 to −0.07) and being religious (Coef. −0.08, CI: −0.12 to −0.04) were likely to have a lower risk of mental health issues. Female and older students had higher CES-D scores than male and younger students. The job status, income, and marital status of students’ parents were not significantly associated with their mental health. There was no difference in mental health status between those students who reported living in the same household as their parents and those who did not.

Table 2 Poisson regression results

Logit Regression Results

Further analysis was conducted to estimate the probability of student depression. Table 3 shows the logit regression results. Model A shows that students with higher social media addiction scores are 1.09 times more likely to be experiencing depression than those with lower scores (OR 1.09, CI: 1.05–1.14). Model B includes relationship to parents and perceived religiosity. Social media addiction again appears to harm mental health, whereas religiosity and good relationships with parents benefited student mental health (OR 0.58, CI: 0.42–0.80 and OR 0.58, CI: 0.39–0.84 respectively). Model C demonstrated the same results, while also establishing that no other socio-economic characteristics were significantly associated with depression.

Table 3 Odd ratio results

Figures 1, 2, and 3 present marginal effects that examine how CES-D scores of depression change as BSMAS, religiosity, and relationship with parents change, while other factors are held constant. An increase in BSMAS of 1% corresponds to an average increase in CES-D score of 11 times for males and 12 times for females, and an average increase in depression of 54% for males and 61% for females. On the other hand, an increase of religiosity of 1% corresponds to average decrease in CES-D score of 16 times for males and 18 times for females, as well as an average decrease in depression of 73% for males and 78% for females. Finally, an increase in relationship quality with parents corresponds to an average decrease in CES-D score of 13 times for males and 15 times for females, and thereby an average decrease in depression of 78% for males and 83% times for females.

Fig. 1
figure 1

Marginsplot BSMAS and CES-D based on sex

Fig. 2
figure 2

Marginsplot religiosity and CES-D based on sex

Fig. 3
figure 3

Marginsplot relationship with parents and CES-D based on sex

Moderation Analysis

Moderation analysis was conducted to examine whether religiosity and relationship with parents may mitigate mental health problems experienced by students. Table 4 presents moderation analysis results for CES-D score. The interaction variables (having good relationship with parents × BSMAS and perceived religious person × BSMAS) are negative and have a significant correlation with CES-D score, indicating moderation effect of family relationship and religiosity on the relationship between social media addiction and mental health.

Table 4 Moderation analysis results

Discussion and Conclusion

Since social media has become more and more vital to the social life of university students during the pandemic, students may be at greater risk of social media addiction, which may be harmful to their mental health. In this study, we found that excessive social media use likely harms the mental health of university students in Indonesia, since students with higher social media addiction scores had a greater risk of experiencing mild depression. This finding corroborates Gao et al. (2020), who also suggested that excessive use of social media harmed mental health during the Wuhan outbreak.

Previous studies provide some explanation of how social media use can harm the mental health of university students in Indonesia during the COVID-19 outbreak. The first of these is the cacophonous input mechanism (Ellison et al., 2007). During the outbreak, online social media has been a key tool used by most university students to connect with their friends and families, to express opinions in their groups, and to obtain and share information. The uncertainty of the situation, uncertainty about their future, and the intensity of negative news related to COVID-19 may lead to frustration, harming students’ mental health. The proliferation of fake news and hoaxes during the outbreak may also take a toll on the mental health of Indonesia’s students. Another is the envy and bitterness mechanism (Jordan et al., 2011). Social envy is a common feature of online social media. Within their WhatsApp groups or on Facebook, students often compare themselves with others who may have higher social and/or economic status. This psychological behaviour may lead to depression as students feel deficient or defeated in the online social community. This psychosocial mechanism is indicated by the social rank theory of depression, which suggests that low self-perception of social rank is linked to depressive symptoms and suicide risk (Sturman, 2011).

Our study identified two factors that may benefit student mental health during the pandemic. Strong family relationships and religiosity are two social and cultural features of Indonesian university students that also reflect those of the wider Indonesian society (French et al., 2020; Purwono et al., 2019). We hypothesised that these two key characteristics might help to mitigate mental health issues among university students during the pandemic. Confirming our hypothesis, we found that students who reported having good relationships with their parents and being religious had a lower risk of mental issues during the pandemic. These findings are consistent with those of other studies and suggest that a good family relationship helps reduce depression among students (ul Haq et al., 2018; Zhai et al., 2016). During this pandemic, maintaining good family relationships is necessary for students’ mental health, since most are obliged to spend more time at home. Building good relationships with family members, especially parents, can help students to feel safe and to enjoy their time in isolation. Students who are able to maintain good connections with their parents may be better able to cope with the stressful situation and therefore to maintain their mental health during social isolation. Likewise, religious students experienced better mental health than non-religious students. The significant relationship of students’ religiosity to their mental health confirms existing studies that have documented the benefits of religiosity for mental health in the contexts of both religious and secular countries. In these studies, religiosity may help sustain the mental health of students during the pandemic via the mechanisms of social support and spiritual fulfilment (Chen et al., 2020; Kirchner & Patino, 2010; Wu et al., 2020).

Several limitations of this study should be acknowledged. First, this study was based on cross-sectional data. Therefore, the estimation results should be seen as associative rather than causative (Robins, 1999; Solem, 2015). Future studies would need to investigate causal effect using a longitudinal or cohort design, or another causal effect research design (Höfler, 2005). Second, this study includes only a limited number of the socio-economic characteristics of students and their parents. For example, we were unable to collect data on parental educational levels. Third, this study used an online survey suitable for rapid assessment, so some respondent bias may arise, which may also lead to bias in the estimation results (Wright, 2005). Fourth, this study used a simple indicator as a proxy to measure religiosity and family relationship. Future studies may use more complex and reliable instruments such as D.H. Olson’s circumflex model for measuring family system functioning (Olson, 1993) as well as the centrality of religiosity scale (CRS) developed by Huber which is often used to measure religiosity in terms of religious beliefs and knowledge, religious feelings, and religious practices (Huber & Huber, 2012). Fifth, the number of questions of CES-D scale and social media addiction scale is limited. Hence, the effectiveness and comprehensiveness of both measures are less likely guaranteed. Last but not least, this study used a non-random or selected sample. Thus, verification on the prevalence of depression as well as the mechanisms by which religiosity and family relationship on CES-D and depression is needed, using a properly selected sample as well as intervening variables.

Despite these limitations, the present study makes several noteworthy contributions to the literature on mental health as well as assisting university stakeholders and policy makers to understand the condition of students’ mental health during the pandemic. First, our findings have established empirical evidence of university students’ mental health status during the COVID-19 outbreak in Indonesia. Moreover, our findings have established evidence of the detrimental effects of excessive use of online social media on university students’ mental health during this period (Gao et al., 2020). The study also suggests the benefits of good family relationships and religiosity during a time when students are largely isolated with their families. Finally, these findings imply that university stakeholders and policy makers need to pay more attention to the issues of student mental health problems and social media addiction as the pandemic continues. Unfortunately, most university stakeholders in Indonesia are not providing mental health support services for their students during this challenging time.