Abstract
This study uses 1018 survey data points from the 2024 National Ecological Civilization Pilot Zone (Jiangxi) and employs explainable machine learning approach to explore key predictors, nonlinear predictive contributions, and interaction effects of rural residents’ household waste sorting habits (WSH). The findings reveal the following: (1) Gradient-Boosted Decision Tree (GBDT) achieves optimal predictive performance (10 repetitions of 5-fold cross-validation RMSE_mean = 0.6027, R2_mean = 0.5766), although no significant differences are observed compared with random forest, LightGBM, CatBoost, or the linear OLS benchmark. The subsequent nonlinear and interaction patterns are exploratory interpretations. (2) The key predictors of rural residents’ WSH are, in order, subjective norms (SUN), social modeling frequency (SMF), personal environmental responsibility (PER), policy satisfaction (PS), environmental goal commitment (EGC), and environmental self-identity (ESI). (3) SUN ranks first in feature importance in both the pilot-county and non-pilot-county subsamples, indicating that this finding exhibits a certain degree of robustness within the sample of this study. (4) Exploratory analysis reveals that the predictive contributions of all six key predictors exhibit nonlinear patterns. (5) Interactions among core factors are identified, although their small effect size and comparable performance between linear and nonlinear models position these patterns as hypothesis-generating evidence for future research. The research adds to understanding the behavioral patterns of residents and offers actionable knowledge for governments to assist rural inhabitants in developing waste sorting practices.
1. Introduction
As living standards improve, the worldwide production of domestic waste keeps rising [1]. Improper disposal of household waste damages ecological environments and threatens human health [2]. Cultivating household waste sorting practices of residents is crucial for reducing environmental pollution, enhancing resource utilization efficiency, and minimizing final waste disposal volumes. Consequently, some countries, particularly developing nations such as China, actively guide and promote the development of WSH of residents. However, in reality, standardized waste sorting practices remain uncommon, and recycling rates remain low [3]. Compared with urban residents, rural residents face challenges such as scattered settlements, high waste collection costs, and inadequate infrastructure [4], which further complicate the adoption of WSH. What are the key predictors of rural residents’ WSH? What nonlinear relationships and interaction patterns exist between these critical factors and rural residents’ WSH? Addressing these questions is critical for mitigating China’s rural waste management challenges and offers valuable insights for waste management strategies in developing countries.
Various academics have concentrated on how internal elements influence the behavioral habits of residents, including SUN [5], cognition [6,7], self-regulation ability [8], satisfaction [9], and positive emotions [10]. Other studies have demonstrated that external factors, including infrastructure [11], SON [12], behavioral frequency [13,14], and situational cues [15,16], play important roles in residents’ behavioral habits. However, these studies have mainly focused on physical exercise habits [17], healthy eating habits [18], and consumption habits [19], while overlooking WSH. Studies specifically analyzing rural residents’ WSH are even rarer. Furthermore, in terms of research methods, existing studies on residents’ behavioral habits have primarily employed traditional econometric models to investigate influencing factors [10,20]. Although these methods can effectively identify average linear effects between variables, they typically presuppose functional forms and struggle to automatically capture nonlinear relationships, threshold effects, and complex interaction patterns among variables.
In light of this, the paper integrates the GBDT, SHAP and ALE to explore key predictors of rural residents’ WSH while revealing nonlinear relationships and interaction effects of these factors. The primary contributions presented in this paper are outlined below: (1) It identifies critical predictors of rural residents’ WSH, providing a scientific basis for grassroots governments to implement targeted interventions and precision governance. (2) This study contributes to the understanding of the nonlinear associations among the predictive factors for rural residents’ WSH. By applying ALE without presetting functional forms, this study explores nonlinear prediction patterns of key factors, offering new analytical tools and approaches for research on behavioral habits. However, given the comparable predictive performance of linear baseline and nonlinear models, these patterns should be treated as hypothesis-generating evidence, with their specific shapes and inflection points requiring validation through independent samples and hypothesis-testing research. (3) It examines potential interaction patterns between relevant factors and rural residents’ WSH. Unlike prior studies that subjectively predefined interaction variable combinations, this paper adopts a data-driven approach to identify interaction structures among variables and further characterize their phased features across variable value ranges. Since the interactions did not yield measurable predictive gains, these patterns are presented as exploratory results. They offer morphological insights into combinatorial conditions for habit formation and provide directional references for subsequent hypothesis-testing research.
2. Research Hypotheses
Gardner [21] argued that habits are processes rooted in acquired “stimulus–response” associations, whereby situational cues trigger impulsive actions. Wood and Neal [22] similarly noted that, before habits are fully formed, goals can guide habit development by motivating behavioral repetition. Consistent with this view, Lally et al. [23] demonstrated that repeatedly performing a behavior in consistent contexts gradually enhances and stabilizes its automaticity. As a specific type of behavior, the formation of WSH among rural residents follows these same principles. Accordingly, this paper conceptualizes the formation of rural residents’ waste sorting habits (WSH) as a gradual process triggered by contextual cues and consolidated through behavioral repetition. The influencing factors are categorized into four levels according to their respective roles: (1) behavior initiation factors, which operate at the habit initiation stage, including subjective norms (SUN), social norms (SON), environmental cognition (EC), and personal environmental responsibility (PER); (2) cue-triggered factors, which provide stable triggers for waste sorting behavior, such as waste sorting facilities (WSF) and social modeling frequency (SMF); (3) repetition maintenance factors, which sustain behavioral repetition prior to automation, namely environmental goal commitment (EGC); and (4) reinforcement internalization factors, which promote the continuity and consolidation of sorting behavior, including policy satisfaction (PS) and environmental self-identity (ESI). In this classification, although SON and the SMF are both normative factors, they function at different stages. The former embodies the injunctive expectation of “should sort,” which must be internalized as motivation to initiate behavior and hence categorized under behavioral initiation factors. The latter provides descriptive information that “others are sorting,” which is directly embedded in the disposal context to trigger behavior and is thus classified as a cue-triggered factor [24]. In addition, to account for individual endowment differences that may influence all stages, age, sex, income, and education level are included as control variables in the analytical framework.
2.1. Behavioral Initiation Factors
Behavioral initiation factors include SUN, SON, EC, and PER. With respect to SUN, according to the theory of planned behavior, residents’ behavior is influenced by their SUN [25] and that the repeated implementation of behavior affects the formation of corresponding habits [26]. Numerous studies have also confirmed that SUNs significantly influence residents’ behavioral habits [5,27,28]. Therefore, SUN of rural residents may predict the formation of their WSH.
With respect to SON, SON refer to the collective expectations and pressures perceived by individuals concerning whether specific behaviors “should or should not” be performed and are categorized as injunctive norms [24]. Existing studies have confirmed that SON are significant factors influencing residents’ waste sorting behavior [29,30]. Specifically, for rural residents’ waste sorting, injunctive pressures from village cadres, neighbors, and others can motivate them to internalize external norms into self-expectations that “sorting is part of their responsibilities,” forming sorting intentions and subsequently initiating waste sorting behaviors. Over time, under the continuous constraints of normative expectations, sorting behaviors are repeatedly executed in daily disposal contexts, gradually becoming automated and eventually solidifying into habits. Thus, SON may predict the formation of WSH among rural residents.
Regarding EC, current research has verified the significance of cognition in habit formation [6,7]. Specifically, with respect to rural residents’ WSH, those with greater EC often exhibit stronger environmental awareness and consequences of pollution consciousness, which may stimulate their intrinsic motivation [31] to persistently engage in waste sorting, thereby facilitating the formation of such behavior. Therefore, EC may be closely associated with the development of WSH of rural residents.
With respect to PER, norm activation theory posits that when individuals become aware of the consequences of their actions and attribute responsibility to themselves, they develop a sense of moral obligation to perform the corresponding behaviors [32]. In the context of rural waste sorting, if residents attribute the environmental consequences of mixed waste disposal to themselves, they will develop a sense of responsibility to “sort as they should.” This sense of responsibility may drive them to proactively and repeatedly perform sorting behaviors in daily life, and the repeated performance of a behavior in consistent contexts forms the foundation of habit formation [23]. Accordingly, PER may be closely related to rural residents’ WSH and may thus serve as a predictive factor.
2.2. Cue-Triggered Factors
The cue-triggered factors include WSF and SMF. With respect to WSF, habit theory posits that stable contextual cues can automatically activate associated behavioral responses [21,22]. As stable and visible physical cues in the sorting context, waste sorting facilities may gradually establish a “context–response” linkage with sorting behavior. Existing studies indicate that infrastructure significantly influences residents’ behavioral habits [33,34]. It is thus expected that WSF are associated with rural residents’ WSH.
With regard to SMF, SMF essentially constitutes situational information about “others are doing this,” which is a type of descriptive norm [24], whose effects typically require activation within specific behavioral contexts. When rural residents frequently observe people around them practicing waste sorting, such demonstrations provide actionable behavioral scripts for those already willing to sort waste, reducing uncertainty during implementation. This consequently prompts onsite compliance with sorting practices and increases the sorting frequency. Behavior frequency positively influences habit formation [13]. Therefore, SMF may hold predictive value for rural residents’ waste-sorting habits.
2.3. Repetition Maintenance Factors
The repetition maintenance factor is EGC. American psychologist Locke [35] proposed goal-setting theory, which posits that goals motivate individuals to adjust their behavior to achieve desired outcomes. Individuals with high levels of EGC typically exhibit stronger motivation to achieve goals and greater willingness to autonomously drive the goal achievement process [36]. Existing studies have confirmed that goal commitment influences students’ physical exercise habits [17]. Specifically, for rural residents’ waste sorting, when they make explicit commitments to the environmental goal of “practicing waste sorting,” this commitment activates their capacity to act toward achieving the goal, guiding them to overcome inconveniences and inertia during the sorting process. Over time, this fosters sustained engagement in waste sorting, forming a habitual practice. Thus, EGC may serve as a potential predictor of rural residents’ WSH.
2.4. Reinforcement Internalization Factors
Reinforcement internalization factors include PS and ESI. In terms of PS, expectation confirmation theory posits that an individual’s satisfaction with product usage influences subsequent continued use [37]. In the context of rural residents’ waste sorting, their positive evaluations of waste sorting policies create constructive psychological feedback, strengthening the intrinsic motivation to consistently devote time and effort to participation. This gradually solidifies into automatic waste sorting through repeated and stable behavioral patterns. Previous research has shown that satisfaction is the primary factor influencing mobile short video users’ habit formation [9]. Thus, PS may be closely linked to the development of WSH of rural residents.
With respect to ESI, the theory of self-verification suggests that people generally exhibit behaviors that align with their personal self-perception [38]. According to this theory, rural residents with high levels of ESI view themselves as environmentally friendly individuals, which constitutes a critical component of their self-concept. Consequently, to align their actions with this self-perception, they may persistently engage in environmentally friendly waste sorting, gradually rendering the behavior automatic. This implies that ESI could serve as an effective predictor of rural residents’ WSH.
Taken together, the factors at the four levels—behavior initiation, cue-triggered, repetition maintenance, and reinforcement internalization—jointly constitute a predictive framework for rural residents’ WSH. However, existing research has been limited in two respects: it has neither identified the key predictors of WSH nor adequately characterized the complex functional forms linking these factors to habits, or the interdependencies among the factors themselves. To address these limitations, this study poses the following research questions:
RQ1.
What are the key predictors of rural residents’ WSH?
RQ2.
Do nonlinear relationships and threshold effects exist between the key predictors and rural residents’ WSH?
RQ3.
Do interaction effects exist among the predictors, and which combinations of factors jointly contribute to the prediction of rural residents’ WSH?
3. Methodology
3.1. Research Methods
3.1.1. GBDT
In this study, GBDT is employed to construct a prediction model for rural residents’ WSH. GBDT is a Boosting ensemble algorithm that uses CART regression trees as base learners [39]. Its core principle involves serially training multiple regression trees: Each new tree fits the negative gradient (pseudoresidual) of the current model’s loss function as its target and then is weighted by the learning rate and added to the existing model. This iterative process gradually optimizes the model by reducing the loss function, with final predictions being the weighted sum of all the trees.
3.1.2. SHAP
Despite exhibiting remarkable predictive performance, machine learning models often suffer from limited explainability. To more intuitively quantify various influencing factors’ contributions on WSH of rural residents, this paper introduces the SHAP [40]. SHAP is an additive approach to interpret machine learning models by calculating features’ marginal contributions to model outputs. The calculation process for the SHAP value of feature in sample X is as follows:
where represents the complete set of features, is any subset that does not include feature , is the prediction generated using only feature subset , is the model output when feature i is added to subset , corresponds to the count of features within subset , and represents the overall quantity of features.
3.1.3. ALE
To capture the nonlinear predictive patterns of key factors on WSH, this study employs the ALE [41]. ALE eliminates the influence of variable correlations by calculating local effects, effectively avoiding confounding effects from interrelated features. Specifically, the value range of feature is divided into intervals on the basis of quantiles. Based on the trained GBDT model, for samples falling into the -th interval , each is replaced once with the lower and once with the upper boundary of the interval, while the other features remain unchanged. The difference between the two model predictions is computed, averaged across samples within the interval, and then cumulatively summed starting from the lowest interval to obtain the uncentered ALE:
The uncentered ALE is then centered to ensure a zero mean across the entire sample, yielding centered marginal effect curves that are comparable across features:
Here, represents the interval index into which the value falls; and are the upper and lower boundaries of the k-th interval of feature , respectively; is the set of sample indices falling into the k-th interval; is the corresponding sample size; represents the remaining feature values other than in the -th sample; is the prediction function of the GBDT model; and is the total sample size.
3.2. Variable Selection
3.2.1. Response Variable
The response variable in this study is rural residents’ WSH, which was measured with four items adapted from the Self-Report Habit Index (SRHI) of Verplanken and Orbell [42].
3.2.2. Characteristic Variables
SUN and EC were measured based on the scales developed by Yin and Ma [43]. SON were measured using three items adapted from Fornara et al. [44]. The measurement of SMF followed the approach of Lowry et al. [45]. WSF was measured with the following question: “Are there household waste sorting facilities (e.g., sorted trash bins) in your village?” EGC was assessed using three items adapted from Hollenbeck et al. [46]. ESI was operationalized through two items drawn from van der Werff et al. [47]. PS was captured by the following question: “How satisfied are you with the household waste sorting policy?” PER was measured with two items based on the method of De Groot [48]. All scales were adapted from well-established instruments in the existing literature. Directly adopted scales underwent a standard translation–back-translation procedure, while adapted scales followed a unified procedure in which item wordings were revised to suit the household waste sorting context without altering the original construct connotations, semantic equivalence and content validity were confirmed via bilingual back-translation, and item readability and comprehensibility were pretested with 160 rural residents. Unless otherwise specified, all scales employed a 5-point Likert scale, where “1” represents “strongly disagree,” “2” represents “disagree,” “3” represents “uncertain,” “4” represents “agree,” and “5” represents “strongly agree.” Notably, the measurement items for SMF were adapted from cyberbullying research. We adjusted the wording to fit the context of household waste sorting while preserving the original scale’s conceptual framework. The adapted items were verified for semantic equivalence and content validity through back-translation by bilingual experts and were pretested for readability and comprehensibility with a pilot sample of 160 rural residents. The variable definitions and descriptive statistics are summarized in Table 1. The descriptive statistics reveal that the means of EC, PER, EGC, and ESI are close to the upper limit of the scale, indicating a potential ceiling effect. This may occur because self-oriented psychological constructs in self-reported measurements are susceptible to socially desirable responses, with respondents tending to provide high scores aligned with social expectations [49].
Table 1.
Variable definitions and measurement.
3.3. Data Sources
This study draws its data from field questionnaire surveys administered to rural residents in Jiangxi Province, China, from June to September 2024. Jiangxi Province was chosen as the study site mainly owing to two considerations: First, Jiangxi Province has a strong policy foundation and practical achievements in rural household waste sorting management. Jiangxi was selected as one of the first National Ecological Civilization Pilot Zones in 2016. By the end of 2024, the province had established 14 provincial-level or higher pilot counties (cities, districts) for rural waste sorting, reduction, and resource utilization. Additionally, surveys revealed that some rural residents in Jiangxi have already developed habits of household waste sorting, providing a research foundation for this paper. Second, Jiangxi has a large rural population. Statistics released by the Jiangxi Provincial Bureau of Statistics show that the permanent rural population of this province hit 16.3108 million by the end of 2024, constituting 36.23% of the province’s total residents. This demographic profile ensures an adequate and effective sample size for examining the determinants of rural residents’ waste sorting behaviors. Therefore, selecting Jiangxi Province as the study site to explore the determinants of rural residents’ WSH offers a certain degree of representativeness.
In policy practice, rural waste sorting in Jiangxi Province operates within a clear policy framework and has a solid implementation foundation. In August 2019, the Jiangxi Provincial Department of Housing and Urban–Rural Development launched a provincial pilot program for rural waste reduction, sorting, and resource utilization, initially covering 14 counties (cities/districts). In practice, pilot areas have widely deployed categorized waste disposal facilities and implemented measures such as point-based reward systems, incentive subsidies, and composting for agricultural reuse. Notable examples include Chaisang District, which allocates special incentive funds to achieve full township coverage; Guangfeng District, whose point-exchange system has delivered significant waste reduction outcomes; and Jing’an County, which has established waste-exchange stores and sorting awareness campaigns. By contrast, non-pilot areas exhibit relatively limited coverage of sorting infrastructure and supporting incentive mechanisms. These institutional arrangements and practical disparities constitute the real-world baseline underpinning the policy recommendations of this study.
Based on existing research findings, this study first designed a preliminary questionnaire and conducted a pilot survey. To fully capture the rollout of waste sorting pilot programs across diverse areas, 160 rural residents were selected from both pilot counties for rural waste sorting, reduction, and resource utilization and non-pilot counties for the pilot survey. Subsequently, based on the pilot survey results, the questionnaire content was optimized and refined. Finally, samples were selected using an integration of stratified proportional and random sampling techniques, and one-on-one face-to-face formal questionnaire surveys were conducted with the selected sample rural residents. The specific sampling process is as follows: Considering that rural residents in pilot counties were relatively more likely to have developed WSH and that the total number of pilot counties was small, this study adopted a relatively high sampling ratio to ensure adequate representation in the sample. First, based on the list of the 14 rural waste sorting pilot counties and the directory of the 86 non-pilot counties, all counties were numbered, and 8 pilot counties and 29 non-pilot counties were randomly selected. Second, within each sample county, townships (towns) were numbered according to the administrative division directories and stratified by economic development level, and 2–3 townships (towns) were randomly selected, with 85 ultimately chosen. Third, within each sample township (town), villages were numbered according to the administrative village directory, and 1–4 sample villages were randomly selected, with 117 ultimately chosen. Finally, within each sample village, rural residents were numbered according to the village committee’s household registration roster, and 8–20 residents were randomly selected for in-home questionnaire surveys. If a selected respondent was unavailable or refused to participate, a replacement was drawn sequentially according to the roster order. In total, 1100 questionnaires were distributed, and 1018 valid responses were collected, yielding an effective response rate of 92.5%. Of these, 437 responses were from pilot counties and 581 from non-pilot counties. In terms of the sample distribution across sampling stages, each county included an average of 27.5 respondents, each township (town) 12 respondents, and each village 8.7 respondents.
3.4. Data Quality Assessment
3.4.1. Sample Demographic Characteristics
The demographic characteristics of the study sample are presented in Table 2. Overall, the respondents were predominantly male and aged 41–60 years, with junior high school education being the most common educational level and the highest proportion of annual income falling within the 30,000–50,000 yuan range. However, 30.4% of the sample includes respondents with a college degree or higher, significantly exceeding the 5.3% proportion of rural household laborers with a college education or higher recorded in the Jiangxi Statistical Yearbook 2024. This discrepancy may be attributed to challenges in surveying low-education elderly respondents during daytime door-to-door visits, as some farming respondents were unavailable or unable to independently complete questionnaires. Additionally, the survey was conducted during summer vacation, when rural college students returning home were more accessible, potentially inflating the proportion of highly educated respondents. This suggests that the sample may be relatively skewed toward more educated groups, a characteristic that requires caution when conclusions are generalized.
Table 2.
Demographic characteristics of respondents.
The chi-square test further revealed that there were no significant differences in sex distribution (χ2 = 0.01, df = 1, p = 0.926) or age distribution (χ2 = 2.10, df = 2, p = 0.350) between the pilot and non–pilot county subsamples. However, significant differences were observed in education level (χ2 = 15.72, df = 3, p = 0.001) and income level (χ2 = 22.24, df = 4, p < 0.001), indicating that the two subsamples were not fully homogeneous in terms of educational attainment and income composition. Both education level and income level were included as model input variables, and the two subsamples differed in their composition with respect to these two types of variables, which may cause the feature associations and relative importance identified by the models to vary. Therefore, differences in the rankings between subsamples may be influenced jointly by sample composition and model estimation, and should not be directly attributed to pilot status; the relevant results are interpreted descriptively only within each subsample.
3.4.2. Common Method Bias
This study employed Harman’s single-factor test to assess common method bias. The results revealed that the variance explained by the first factor without rotation was 39.56%, which was below the commonly used critical threshold of 50% [50]. However, the detection power of this test for common method bias is limited, and the results should be considered preliminary; thus, common method bias cannot be entirely ruled out.
3.4.3. Reliability and Validity Tests
To ensure the consistency and reliability of the scales used, this study employed Stata 18.0 and conducted confirmatory factor analysis (CFA) using maximum likelihood estimation on the measurement model containing latent variables and their corresponding items. The model fit results were as follows: χ2 (149) = 790.64, p < 0.001, χ2/df = 5.31; comparative fit index (CFI) = 0.961, Tucker–Lewis index (TLI) = 0.950, root mean square error of approximation (RMSEA) = 0.065 (90% CI [0.061, 0.070]), standardized root mean square residual (SRMR) = 0.058. All indices (CFI, TLI, RMSEA, and SRMR) met commonly accepted thresholds. Although χ2/df slightly exceeded the lenient reference value of 5.0, the overall model fit was deemed acceptable considering the large sample size of this study, as χ2 statistics are highly sensitive to sample size and less meaningful under large-sample conditions [51].
The reliability and validity results of the latent variables are shown in Table 3. For scale reliability, all latent variables had Cronbach’s α coefficients no lower than 0.786 and composite reliability (CR) values above 0.807, indicating strong internal consistency. With respect to convergent validity, all standardized CFA loadings exceeded 0.5, and the average variance extracted (AVE) values were no lower than 0.595, demonstrating adequate convergent validity.
Table 3.
Reliability and validity tests of the latent variables.
With respect to discriminant validity, the Fornell–Larcker criterion was employed for verification, with the results shown in Table 4. The diagonal displays the square roots of the AVE for each construct obtained from the confirmatory factor analysis, whereas the off-diagonal presents the Pearson correlation coefficients between the composite scores of the constructs. The results demonstrate that the square roots of the AVE for all the constructs are greater than their correlation coefficients with the other constructs, essentially satisfying the discriminant validity requirements.
Table 4.
Discriminant validity test.
Furthermore, the heterotrait–monotrait ratio (HTMT) was employed to test discriminant validity, and the results are shown in Table 5. HTMT values less than 0.85 indicate good discriminant validity [52]. In accordance with stricter criteria, the upper limit of the 95% confidence interval for the HTMT should be less than 0.90 [53]. The results show that most construct pairs had HTMT values less than 0.85. However, three construct pairs—SUN and WSH (0.850), PER and EGC (0.862), and EGC and ESI (0.895)—exhibit relatively higher HTMT values. Furthermore, the upper limit of the 95% confidence interval for PER and EGC reached 0.927, exceeding the strict threshold of 0.90 and indicating that the discriminant validity of these two constructs was at a critical level. The elevated HTMT values for these three construct pairs may be attributed to the following reasons: behaviors shaped by SUN can gradually transform into automated habits through repeated practice in stable contexts [54], leading to their strong association. Moreover, PER, EGC, and ESI are self-oriented pro-environmental psychological constructs. Although they are conceptually similar, they differ in their underlying dimensions and belong to distinct stages of WSH formation; thus, they were retained as independent constructs in the model.
Table 5.
HTMT test.
3.4.4. Multicollinearity Test
This study first conducted multicollinearity diagnostics on each feature variable using the variance inflation factor (VIF), with the results shown in Table 6. The VIF values of each variable ranged from 1.08 to 3.78, all of which were less than 5, indicating that there were no multicollinearity issues among the variables.
Table 6.
Variance Inflation Factor Results.
4. Results
4.1. Model Parameter Settings
To comprehensively and objectively compare the predictive performance of machine learning models with that of the linear benchmark model in predicting rural residents’ WSH, this study employed six algorithms—Random Forest, GBDT, Extreme Gradient Boosting (XGBoost), Light Gradient Boosting Machine (LightGBM), Categorical Boosting (CatBoost), and Decision Tree—for model training. An ordinary least squares (OLS) regression with identical predictors served as the linear benchmark and was evaluated under the same partitioning scheme. Because the samples were clustered by county, randomly splitting individuals into training and test sets would allow observations from the same county to appear in both sets, leading to leakage of county-level information across the partitions and thus overestimation of predictive performance owing to intra-cluster correlations. Therefore, the counties were randomly split into a training set and an independent test set at an 8:2 ratio. For all six machine learning models, hyperparameters were tuned via grid search combined with 5-fold cross-validation (grouped by county) within the training set, with cross-validation RMSE as the evaluation metric. The parameter combination yielding the smallest validation RMSE was selected as the optimal hyperparameter set. The hyperparameter search ranges are detailed in Appendix A, Table A1, and the optimized hyperparameters are listed in Table 7.
Table 7.
Optimal parameter settings of the algorithms.
4.2. Model Predictive Performance Evaluation
On the training set, 10 repetitions of 5-fold cross-validation were performed for each tuned model and the linear benchmark model, and the mean and standard deviation of the RMSE, MAE, and R2 were used to comprehensively assess model performance and stability. The results are shown in Table 8. Given this study’s county-grouped evaluation approach, in which each validation fold consists of entire counties, R2 exhibits large fluctuations depending on the county composition of the folds and fails to reflect the absolute magnitude of prediction errors. MAE treats all errors equally, thereby diminishing the impact of large errors associated with individual counties. In contrast, the squaring property of RMSE amplifies subtle differences between models, enabling stricter identification of prediction inaccuracies in specific counties [55]. Therefore, the mean RMSE was selected as the key metric for model comparison and selection in this study.
Table 8.
Predictive Performance Evaluation of Machine Learning Models.
The results show that GBDT achieved the lowest mean cross-validated RMSE. Under the same county-level grouped cross-validation splits, pairwise t-tests were conducted on the fold-level mean RMSEs (averaged over 10 replicates per fold), with p-values Bonferroni-adjusted across the six comparisons (adjusted p = raw p × 6). GBDT performed significantly better than the single decision tree (adjusted p < 0.0001). Its advantage over XGBoost was statistically detectable (adjusted p = 0.0048) but small in magnitude (ΔRMSE = 0.0056) and of limited practical significance. Differences from random forests, LightGBM, CatBoost, and the linear benchmark OLS were not significant (complete results in Appendix A, Table A2). Notably, the predictive performance of OLS was largely comparable to that of nonlinear models, suggesting that the relationships between feature variables and WSH may primarily follow an approximately linear structure. Given this, the subsequent nonlinear and interaction patterns in this paper are interpreted as exploratory. Among the candidate models, GBDT was selected as the base model for subsequent interpretation because it achieved the lowest mean cross-validated RMSE; given the small performance differences among the tree-based models, this choice is unlikely to affect the substantive conclusions. The model achieved an RMSE of 0.4612 and an R2 of 0.7908 on the training set (29 counties, 821 observations) and an RMSE of 0.5766 with an R2 of 0.5611 on the independent test set (8 counties, 197 observations). The test set metrics decrease compared with those of the training set, indicating that the model’s out-of-sample predictive ability is moderate.
The results in this paper are based on a Python 3.13.2 implementation, with the following core dependency packages and versions: scikit-learn (1.5.2), pandas (2.2.3), NumPy (2.1.3), XGBoost (3.0.0), LightGBM (4.6.0), CatBoost (1.2.8), and SHAP (0.47.1). All random processes were fixed with a random seed of 42. SHAP values were calculated using the interventional variant of TreeSHAP, with the training set as background data and computed for independent test set samples.
4.3. Predictors Importance Ranking
To accurately identify the key predictors of rural residents’ WSH, this study employed the SHAP method to determine the relative importance of the feature variables. The importance ranking of each feature is shown in Figure 1. As shown in Figure 1, the top six key predictors contributing most to the prediction of rural residents’ WSH are SUN, SMF, PER, PS, EGC, and ESI. On the basis of the total SHAP contributions of all 13 feature variables (1.1012), the combined contribution of the top six factors accounts for 83.2%. Among these, SUN contribute 37.2%, making it the most critical factor in predicting the adoption of WSH among rural residents.
Figure 1.
Importance ranking of predictors for WSH.
To verify the robustness of feature importance rankings in predicting rural residents’ WSH, this study introduces a permutation importance methodology. By randomly shuffling individual feature values on the test set and repeating this process 30 times, we measure feature importance using the average decline in R2. This approach evaluates a model’s reliance on a specific feature by randomly shuffling its values and observing the resulting loss in prediction performance [56], thereby directly reflecting each feature’s marginal contribution to model predictions. The permutation importance results are shown in Figure 2. Figure 2 reveals that the top six factors in terms of permutation importance are SUN, SMF, EGC, PER, PS, and ESI. These align with SHAP-identified key predictors, differing only slightly in relative rankings, with SUN remaining the strongest predictor. In contrast, EC, WSF, and INCOME have near-zero importance, whereas SON, SEX, EDUCATION, and AGE have negative values close to zero, indicating negligible contributions to the predictions. The high consistency between the permutation importance and SHAP results confirms the robustness of our conclusions regarding critical predictors of rural residents’ waste sorting behaviors.
Figure 2.
Permutation importance ranking of predictors for WSH.
Considering that WSH4, one of the WSH items, presupposes respondents’ access to classified trash bins, this item cannot reflect habitual sorting behavior for villagers without waste sorting facilities (WSF = 0), potentially creating mechanical associations between WSF and outcome variables. To test the sensitivity of conclusions to WSH measurement methods, WSH4 was excluded, and WSH was recalculated using only WSH1–WSH3; then, the entire modeling process was re-estimated. The results are shown in Figure 3. Sensitivity analysis revealed that the composition and ranking of the top five predictors (SUN, SMF, PER, PS, and EGC) remained consistent with those of the main analysis, with SUN retaining its position as the most critical predictor (average |SHAP| contribution: 35.2%), indicating that core predictor identification does not depend on WSH4 inclusion. After WSH4 was excluded, the WSF average |SHAP| increased from 0.0135 to 0.0214 but remained low in both models. Given that the outcome variables differed between the models, direct comparison of the absolute values of the SHAP is inappropriate; WSF’s minor ranking shift does not substantiate meaningful improvement in predictive importance. Therefore, this study refrains from concluding the enhanced practical significance of sorting facilities and retains the complete four-item WSH in the main analysis to preserve content validity.
Figure 3.
Feature importance in the WSH sensitivity analysis.
A parallel sensitivity analysis was conducted for the strongest predictor, SUN. As item SUN1 emphasizes perceived social standing rather than the expectations of important others, and shows the lowest loading on SUN (0.655), we recomputed SUN as the mean of SUN2 and SUN3, re-tuned the GBDT model, and re-estimated the importance rankings under the same cross-validation protocol. As shown in Figure A1, SUN remain the most important predictor (mean |SHAP| = 0.3571, ranking first). The top six predictors are identical in composition to those of the main analysis, indicating that the identification of SUN as the dominant predictor does not depend on item SUN1.
To examine the robustness of feature importance rankings across different policy scenarios, this study divides sample into two subsamples—pilot counties (437 observations) and non-pilot counties (581 observations)—based on the list of pilot counties published by the Jiangxi Provincial Department of Housing and Urban–Rural Development. Each subsample is further split into training and test sets at an 8:2 ratio by county. The pilot county training set includes 6 counties with 322 respondents, and the test set includes 2 counties with 115 respondents. The non-pilot county training set includes 23 counties with 474 respondents, and the test set includes 6 counties with 107 respondents. Given the significant differences in education levels and income composition between the pilot and non-pilot subsamples, which may lead to distinct feature-target variable association structures, independent modeling and parameter tuning can optimize the predictive performance under each subsample’s data conditions [57]. Consequently, identical candidate models and tuning criteria (5-fold × 10-repeat cross-validation grouped by county, with the RMSE as the selection metric) are applied to determine the optimal models and parameters for pilot and non-pilot counties. The hyperparameter search grids for both subsamples are provided in Appendix A, Table A3 and Table A4. XGBoost emerged as the best model for both groups. For the pilot counties, the test set’s RMSE and R2 were 0.6078 and 0.4904, respectively, whereas those of the non-pilot counties were 0.5367 and 0.7292, respectively.
The results of feature importance rankings for pilot counties and non-pilot counties are shown in Figure 4. In the pilot county subsample, SUN have an average |SHAP| value of 0.2620, ranking first, followed by SMF, EGC, and PER. In the non-pilot county subsample, SUN maintain an average |SHAP| value of 0.2511, which also ranks first, followed by PS, PER, and ESI. WSF, EC, and SEX occupy lower positions in both groups, contributing weakly to predicting sorting habits. SUN ranked first in the models for both subsamples, indicating that this finding is replicated across both types of samples in this study and exhibits a certain degree of within-sample stability. It should be noted that the two subsamples differ in their educational attainment and income composition, and the models were trained independently on their respective samples; therefore, the consistency in rankings cannot rule out the influence of sample composition and model specification. Meanwhile, the magnitude of SHAP importance depends on the specific model and sample composition, and is not directly comparable across models. We do not conduct quantitative comparisons or significance tests of the SHAP values between the two subsamples, and the relevant rankings are interpreted descriptively only within each subsample.
Figure 4.
Importance ranking of predictors in pilot and non-pilot counties.
4.4. Analysis of the Direction of Predictors
The importance ranking chart of factors influencing rural residents’ WSH can identify the relative significance of predictive factors, but cannot reveal the direction of their effects. Therefore, to further characterize how these predictors relate to WSH, this study employs SHAP to generate beeswarm plots for each predictive factor, as shown in Figure 5. Here, each point represents the SHAP value of a single sample’s feature variable, indicating the feature’s independent contribution to the prediction outcome. The color gradient from blue to red indicates an upward trend in feature values.
Figure 5.
Beeswarm plot of influencing factors. The gray vertical line indicates a SHAP value of zero.
Among the behavioral initiation factors, SUN, SON, and PER help predict rural residents’ WSH (Figure 5). The SHAP values for EC are densely clustered near zero, indicating unclear directional predictive effects. Among the cue-triggered factors, WSF and SMF are positively associated with habit formation. Among the repetition maintenance factors, EGC has positive predictive effects. Among the reinforcement internalization factors, both PS and ESI contribute to predicting WSH. With respect to the control variables, education level has some positive predictive effects, whereas age and income have negative predictive effects. Sex SHAP values are densely distributed around zero, suggesting limited predictive utility and ambiguous directionality.
4.5. Nonlinear Prediction Contributions Analysis
Although the SHAP beeswarm plot of the factors influencing rural residents’ WSH illustrates the directional effects of the predictors, it struggles to disentangle the confounding contributions of correlated features or to capture specific prediction patterns and threshold effects. To clarify the specific prediction patterns and threshold effects of the key predictors on the formation of rural residents’ WSH, this study further plots ALE, as shown in Figure 6. The horizontal axis represents the values of the feature variables, whereas the vertical axis indicates the deviation of a feature’s effect from its sample-average main effect: when the ALE estimate at a given value exceeds 0, it indicates a positive net effect at that feature level, raising the predicted WSH value above the sample average; values below 0 indicate a negative net effect. The gray histogram shows the sample distribution along the horizontal axis, with sample counts shown below each value. The vertical dashed lines mark slope change points identified via segmented regression under residual sum-of-squares minimization. The detailed analysis is as follows:
Figure 6.
ALE plots of the six key predictors. Note: Intervals with a sample size of zero are supported by model extrapolation and are for reference only.
- ①
- SUN. The ALE curve for SUN show an overall upward pattern, with an approximate slope change at SUN = 3.67. Below this point, the curve rises gradually, and the centered ALE values are negative, indicating below-average contributions to model predictions. Above 3.67, the curve becomes steeper. The centered ALE values cross zero at approximately SUN = 4.1 and continue to increase over the remainder of the observed range.
- ②
- SMF. The ALE curve for SMF shows a nonlinear pattern, with an approximate slope change at SMF = 3. For SMF values between 2 and 3, the curve is relatively flat, and the centered ALE values remain negative. Above SMF = 3, the curve rises more steeply, and the centered ALE values subsequently become positive.
- ③
- PER. The ALE curve for PER shows an overall upward pattern, with an approximate slope change at PER = 4. Below this point, the curve rises gradually, and the centered ALE values remain negative. Above PER = 4, the curve becomes steeper, and the centered ALE values cross zero at approximately PER = 4.5.
- ④
- PS. The ALE curve for PS shows a slight initial decline followed by an increase, with an approximate slope change at PS = 3. Below this point, the curve remains nearly flat, and the centered ALE values are negative. Above PS = 3, the curve rises more steeply. The centered ALE values cross zero at approximately PS = 4.1 and reach their highest observed value at PS = 5.
- ⑤
- EGC. The ALE curve for EGC is relatively flat over the low-to-middle range, with negative centered ALE values, and shows an approximate slope change at EGC = 4. Above this point, the curve rises more steeply, and the centered ALE values cross zero at approximately EGC = 4.5.
- ⑥
- ESI. The ALE curve describing the predictive contribution of ESI to rural residents’ WSH initially increases as ESI increases and then flattens when ESI reaches 4. The centered ALE values cross zero at approximately ESI = 3.9, after which the curve increases slightly before stabilizing.
It should be noted that the sample distributions in the low-value ranges of some predictors are sparse (as shown in the histograms), resulting in greater uncertainty in the ALE estimates within these ranges. The curve patterns in these ranges should therefore be interpreted with caution.
4.6. Analysis of Interaction Effects Among Predictors
Although ALE plots reveal the marginal main effects of the various factors on rural residents’ WSH under given conditions of the other variables, they cannot systematically characterize multifactor interactions. However, waste sorting behavior among rural residents typically results from the combined effects of multiple factors. To address this limitation, this study employed the SHAP interaction value method proposed by Lundberg et al. [58]. On the basis of the final GBDT model, the SHAP interaction values were calculated for each sample in the test set, and the absolute values were then averaged across all samples to obtain a global SHAP interaction matrix among the 13 features, as shown in Figure 7. This matrix uses diagonal elements (permanently 0) to represent self-interactions of features, while nondiagonal elements measure the average absolute interaction strength between feature pairs. The six strongest interaction combinations are as follows: SUN and SMF, SUN and EGC, SON and PS, SUN and PER, PER and SMF, and SUN and SON (Figure 7).
Figure 7.
Global SHAP interaction matrix of predictors.
As shown in Figure 7, the maximum SHAP interaction value is 0.0517. In terms of mean absolute values, the interaction contributions of all feature pairs are generally small relative to the main effects of the constituent variables. To prevent the interaction contributions from being confounded by the magnitude of the variables’ main effects, we further normalized them using the main effects of the constituent variables as the baseline and computed the relative interaction strength of each pair (see Appendix A, Table A5). The results show that the rankings of the pairs change after normalization: the relative positions of some SUN-related pairs decline, while those of some pairs involving variables with smaller main effects, such as age, rise. Because relative interaction strength may be affected by the size of the denominator, an increase in its value cannot be interpreted in isolation as an enhancement of the interaction contribution. The absolute interaction values reflect the absolute contribution magnitude of each pair to the model output. To examine pairs with larger absolute contribution magnitudes, we selected all six pairs with absolute interaction values of no less than 0.010 for further analysis, and report the relative interaction strength as Supplementary Information. Given that the overall magnitude of the interactions is limited, the related patterns are presented only as exploratory evidence, providing directional clues for future research.
Figure 8 presents SHAP interaction dependence plots for feature pairs with absolute interaction values greater than 0.01, where the horizontal axis and the color scale correspond to the two features in each interacting pair, and the vertical axis represents the SHAP interaction value. The core interaction pairs are analyzed one by one as follows:
Figure 8.
Interactive effect dependence plot of predictors. The dashed horizontal lines indicate a SHAP interaction value of zero.
- (1)
- SUN and SMF. When SUN are in the lower range (approximately 2–3), samples with higher SMF (darker color) exhibit positive interaction values, whereas samples with lower SMF (lighter color) exhibit negative values, showing a divergent trend between the two groups. As SUN rise above approximately 3.5, the pattern reverses: samples with higher SMF tend to have negative interaction values, while those with lower SMF approach zero or become slightly positive. The overall pattern takes the form of a crossover, suggesting that the association between the two features varies with the level of SUN: at lower levels of SUN, SMF and SUN exhibit positive synergy, whereas at higher levels of SUN, their contributions tend toward substitution or redundancy.
- (2)
- SUN and EGC. When SUN are relatively low (below approximately 3.5), samples with higher EGC (darker color) tend to exhibit negative interaction values, while samples with lower EGC (lighter color) show slightly positive values. As SUN rise into the higher range (4.0–5.0), samples with higher EGC turn positive, and those with lower EGC turn negative.
- (3)
- SON and PS. When SON are relatively low (below approximately 3), samples with higher PS (darker color) tend to exhibit positive interaction values, while samples with lower PS (lighter color) remain close to zero or slightly negative. After SON enter the higher range (approximately 4–5), the pattern reverses: samples with higher PS turn negative, while those with lower PS remain close to zero or slightly positive. At moderate levels of SON (3–4), the interaction values across all PS levels are scattered around zero. This crossover pattern suggests that the direction of synergy between SON and PS varies with the level of SON: PS plays a positive moderating role at low levels of SON, whereas at higher levels of SON, additional improvements in PS tend toward substitution or redundancy with SON.
- (4)
- SUN and PER. When SUN are relatively low (2–2.5), samples with higher PER (darker color) tend to exhibit positive interaction values. As SUN rise, the difference in interaction values between the two groups gradually narrows, approaching zero after SUN reach approximately 3.5, and some samples with higher PER show slight negative deviations in the higher SUN range. The overall trend shows positive synergy in the low-SUN range, with the synergy weakening or turning slightly negative in the high-SUN range.
- (5)
- PER and SMF. When PER ranges from 3 to 4, the interaction values across all SMF levels are close to zero or fluctuate within a small range. When PER rises to 4.5, the interaction values of samples with higher SMF (darker color) increase; however, when SMF reaches 5, the interaction values of this group turn negative.
- (6)
- SUN and SON. When SUN are relatively low (2–2.5), samples with high SON (darker color) tend to exhibit positive interaction values. At moderate levels of SUN (3–3.5), the interaction values approach zero. When SUN are high (4–5), samples with higher SON turn negative, while samples with lower SON (lighter color) remain near zero or slightly positive. This suggests that the association between SUN and SON varies with the level of SUN: the two exhibit positive synergy at low levels of SUN, whereas at high levels of SUN, additional increases in SON tend toward substitution or redundancy with SUN.
5. Discussion
This study reveals that the key predictors of rural residents’ WSH are, in descending order of importance, SUN, SMF, PER, PS, EGC, and ESI, among which SUN emerges as the most critical predictor. These findings align with those of Zhang [34] and Setiawan et al. [59], who identified SUN as pivotal factors influencing waste sorting behaviors. Furthermore, although explainable machine learning methods have been applied to research on waste sorting behavior [60,61], their extension to the mechanisms of waste sorting habit formation remains underdeveloped. This study not only confirms the central role of SUN in shaping individual behavioral habits and waste sorting practices but also expands the application boundaries of explainable machine learning methods to the domain of WSH, offering new theoretical perspectives and methodological pathways for predicting rural residents’ WSH.
Exploratory analysis show that the estimated ALE curves for the six key predictors (SUN, SMF, PS, EGC, PER, and ESI) all exhibit nonlinear patterns with slope-change points. Unlike existing studies, which typically pre-specify functional forms to examine the effects of these factors on waste-sorting intentions or behaviors [62,63,64], this study does not constrain the shape of the relationships; instead, the curves are estimated entirely from the data. In terms of magnitude, the curves for most variables (SMF, PER, PS, and EGC) show limited variation within the observed support intervals: even when a variable’s value moves from one end of its range to the other, the average change in the predicted values does not exceed the typical individual-level prediction error (test-set RMSE = 0.5766). By contrast, the overall variation in the SUN curve exceeds the test-set RMSE, whereas that of the ESI curve is roughly comparable to this benchmark, suggesting, in a descriptive sense, that changes in the values of these two variables correspond to larger shifts in predicted values. It should be noted that these curves are computed on an independent test set (8 counties, 197 observations) and that, apart from the highest category, most intervals include fewer than 30 respondents. The shapes and magnitudes in low-support intervals should therefore be interpreted with caution, and these magnitude characteristics should be treated as descriptive references rather than as evidence of effect sizes or a basis for intervention design. Moreover, given that the predictive performance of the linear benchmark model (OLS) is comparable to that of the nonlinear models, these nonlinear findings should, overall, be regarded as hypothesis-generating evidence, and the specific shapes and inflection-point locations of the curves await verification in confirmatory studies using independent samples.
Further analysis reveals that the predictive contributions of core interaction combinations exhibit nonlinear and phased characteristics. Taking the subjective norm–SMF combination with the highest average SHAP interaction value as an example, their effects are not simply additive but show a crossover pattern: When SUN are in lower ranges, samples with higher SMF have positive interaction values, while lower-frequency samples have negative values, indicating positive synergy. After SUN enter higher ranges, this pattern reverses: higher-frequency samples show negative interaction values, whereas lower-frequency samples approach zero, suggesting substitution or redundancy in contributions. A potential explanation is that when SUN are weak, the binding force of others’ expectations remains ambiguous, making the sorting behaviors of surrounding individuals valuable as direct behavioral models and informational cues [24]. When SUN strengthens, rural residents develop clear perceptions about “whether sorting should occur,” diminishing the referential value of others’ sorting behaviors and leading to substitution effects. Notably, the overall magnitude of SHAP interaction values remains limited: On the 1–5 point scale, the maximum interaction values are approximately 0.05, with most top combinations showing values of only 0.01–0.02 (accounting for 0.25–0.5% of the full scales range), which is significantly smaller than the corresponding main effects. This finding indicates that rural residents’ WSH are driven primarily by the direct effects of individual factors, with mutual moderation playing a secondary role. Therefore, this paper presents an interaction effect analysis as exploratory findings, with the proposed mechanisms serving as post-hoc inferences that provide testable hypotheses for future research.
6. Limitations and Future Prospects
However, this study has several limitations. First, the formation of WSH among rural residents is a complex process influenced by multiple factors. This study examined only a subset of the potentially relevant factors; future research could incorporate additional elements to construct a more comprehensive analytical framework. Second, this study is based on cross-sectional data and revealed the nonlinear mechanisms through which key factors are associated with rural residents’ WSH using data-driven methods. The conclusions therefore represent correlational evidence rather than causal inferences, and the underlying causal mechanisms require further investigation through longitudinal tracking. Third, the survey data were collected from rural areas within the National Ecological Civilization Pilot Zone (Jiangxi), whose policy environment differs from that of other regions, and the sampling design prioritized counties with waste sorting pilot programs. Thus, the generalizability of the findings requires further verification. Accordingly, the policy recommendations proposed in this study serve only as decision-making references based on correlational evidence, and their practical effectiveness requires real-world validation. Fourth, some attitude scales exhibited ceiling effects that may have compressed the predictive contributions of high-score variables. Follow-up studies should adopt measurement tools with broader ranges or incorporate more heterogeneous samples. Fifth, while Harman’s single-factor test revealed that the first factor explained 39.56% of the variance (below the 50% critical threshold), this low-sensitivity test cannot fully exclude common method bias. Future research will implement stricter controls using marker variable or latent method factor approaches. Sixth, pilot counties were intentionally oversampled, and pilot status likely correlated with WSH, indicating that unweighted full-sample estimates might partially reflect this overrepresentation. Although the top predictive variables remained largely consistent between the pilot and non-pilot areas, potential bias in point estimates cannot be ruled out. Future studies could employ design weights or post-stratification weighting. Seventh, the HTMT of the EGC–ESI was 0.895, with the upper limit of the 95% confidence interval reaching 0.927, indicating that discriminant validity is at a critical level and that there may be a certain degree of conceptual overlap between the two. Future research could further clarify the boundaries between the two constructs by optimizing item wording, supplementing measurement indicators, or adopting experimental methods.
7. Conclusions and Implications
This research relies on questionnaire data obtained from Jiangxi and applies explainable machine learning models to investigate the key predictors of WSH among rural residents, and further explores the nonlinear predictive contributions and interaction effects of these key factors on such habits. The main conclusions are summarized as follows: (1) The key predictors of rural residents’ WSH are, in order, SUN, SMF, PER, PS, EGC, and ESI. (2) SUN ranked first in feature importance in both the pilot-county and non-pilot-county subsamples, indicating that this finding exhibits a certain degree of within-sample stability. Differences in the rankings of the remaining features are presented descriptively only and should not be directly attributed to pilot status. (3) Exploratory analysis reveals that the predictive contributions of six key factors to WSH exhibit nonlinear patterns. Given the comparable predictive performance of linear baseline and nonlinear models, these patterns should be treated as hypothesis-generating evidence requiring further hypothesis-testing studies for validation. (4) Further analysis revealed interactions among core factor combinations. Considering the comparable performance of linear and nonlinear models and the limited magnitude of interactions, these findings serve as exploratory evidence to guide subsequent confirmatory research.
Based on these conclusions, the following policy recommendations are proposed:
First, SUNs are the most important predictor of WSH among rural residents in our model, suggesting that the government may consider cultivating SUN as a focus of rural waste sorting governance. Specifically, drawing on the acquaintance-society characteristics of rural communities, village officials, Party members, and model sorting households can play a leading role. Through village rules and covenants, neighborhood mutual encouragement, and the promotion of exemplary models, behavioral requirements for waste sorting can be made explicit, a village atmosphere in which “sorting is the right thing to do” can be fostered, and residents can be guided to participate in sorting and develop the habit. It should be noted that feature importance reflects the model’s predictive reliance on a variable and does not equate to the actual intervention effect of the corresponding measures; the effectiveness of these measures still needs to be tested through small-scale pilots and follow-up evaluations.
Second, the ALE analysis shows that the modeled associations between some key predictors and WSH are not simply linear: some variables exhibit a slowing of gains or an approximate plateau in the middle range of values, while others show a slowdown in the growth of contributions in the higher range of values. This suggests that, in governance practice, relevant measures can first be piloted on a small scale, with continuous tracking of indicators such as sorting participation rates and placement accuracy, and combined with residents’ feedback to evaluate actual effects before deciding whether to maintain, adjust, or scale up the measures; simply copying them wholesale or implementing them comprehensively in one step is not advisable. The above nonlinear features reflect model based associations in cross-sectional data rather than the actual effects of specific interventions; their policy applicability still requires further testing through intervention studies.
Supplementary Materials
The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/su182312115/s1: File S1: manuscript-supplementary.py.
Author Contributions
Conceptualization, C.L. and Y.T.; data curation, C.L., L.F. and M.H.; formal analysis, M.H. and Y.C.; funding acquisition, C.L., Y.T. and Y.C.; methodology, C.L., L.F. and M.H.; software, L.F. and M.H.; supervision, Y.C. and Y.T.; writing—original draft, C.L., L.F. and M.H.; writing—review and editing, Y.T. and Y.C. All authors have read and agreed to the published version of the manuscript.
Funding
This work was funded by the National Natural Science Foundation of China (Grant Nos. 72664038 and 72264015), Humanities and Social Science Planning Fund Project of Ministry of Education of China (No. 24YJAZH012), and the Jiangxi Provincial Department of Education Graduate Student Innovation Fund Project (Grant No. YC2025-S391).
Institutional Review Board Statement
This study was conducted in accordance with the Declaration of Helsinki and approved by the Ethics Committee of School of Economics and Management, Jiangxi Normal University (Approval No. IRB-JXNU-B-20240301, approved on 1 March 2024).
Informed Consent Statement
Verbal informed consent was obtained from all participants; for respondents aged 16–17, consent was also obtained from their parents or legal guardians. All research procedures were approved by the ethics committee.
Data Availability Statement
All data generated or analyzed in this research can be requested from the corresponding author upon reasonable request. The analysis code is provided in the Supplementary Materials.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| WSH | Household waste sorting habits |
| SUN | Subjective norms |
| EC | Environmental cognition |
| PER | Personal environmental responsibility |
| EGC | Environmental goal commitment |
| ESI | Environmental self-identity |
| SON | Social norms |
| PS | Policy satisfaction |
| SMF | Social modeling frequency |
| WSF | Waste sorting facilities |
| CatBoost | Categorical Boosting |
| SHAP | Shapley Additive exPlanations |
| ALE | Accumulated Local Effects |
| XGBoost | Extreme Gradient Boosting |
| LightGBM | Light Gradient Boosting Machine |
| GBDT | Gradient-Boosted Decision Tree |
| OLS | Ordinary Least Squares |
| CR | Composite reliability |
| AVE | Average variance extracted |
Appendix A
Table A1.
Hyperparameter search space settings for each model.
Table A2.
Paired t-tests (GBDT vs. alternatives).
Table A3.
Hyperparameter search space settings for each model (pilot counties).
Table A4.
Hyperparameter search space settings for each model (non-pilot counties).
Figure A1.
Feature importance ranking in the SUN sensitivity analysis.
Table A5.
Matrix of relative interaction strengths between variables.
References
- Ao, Y.B.; Zhu, H.; Wang, Y.; Zhang, J.X.; Chang, Y. Identifying the driving factors of rural residents’ household waste classification behavior: Evidence from Sichuan, China. Resour. Conserv. Recycl. 2022, 180, 106159. [Google Scholar] [CrossRef] [Scilit]
- Siddiqua, A.; Hahladakis, J.N.; Al-Attiya, W.A.K.A. An overview of the environmental pollution and health effects associated with waste landfilling and open dumping. Environ. Sci. Pollut. Res. 2022, 29, 58514–58536. [Google Scholar] [CrossRef] [Scilit]
- Heikkinen, S.; Isomäki, K.; Salakka-Kontunen, T. Why do recycling interventions fail? A systematic literature review. Sustain. Environ. 2026, 12, 2679811. [Google Scholar] [CrossRef] [Scilit]
- Wang, F.; Cheng, Z.; Reisner, A.; Liu, Y. Compliance with household solid waste management in rural villages in developing countries. J. Clean. Prod. 2018, 202, 293–298. [Google Scholar] [CrossRef] [Scilit]
- Shao, J.; Ünal, E. What do consumers value more in green purchasing? Assessing the sustainability practices from demand side of business. J. Clean. Prod. 2019, 209, 1473–1483. [Google Scholar] [CrossRef] [Scilit]
- Proietti, R.; Parr, T.; Tessari, A.; Friston, K.; Pezzulo, G. Active inference and cognitive control: Balancing deliberation and habits through precision optimization. Phys. Life Rev. 2025, 54, 27–51. [Google Scholar] [CrossRef] [Scilit]
- Zareie, B.; Jafari Navimipour, N. The impact of electronic environmental knowledge on the environmental behaviors of people. Comput. Hum. Behav. 2016, 59, 1–8. [Google Scholar] [CrossRef] [Scilit]
- Hagger, M.S. Habit and physical activity: Theoretical advances, practical implications, and agenda for future research. Psychol. Sport Exerc. 2019, 42, 118–129. [Google Scholar] [CrossRef] [Scilit]
- Choi, Y.; Wen, H.; Chen, M.; Yang, F. Sustainable determinants influencing habit formation among mobile short-video platform users. Sustainability 2021, 13, 3216. [Google Scholar] [CrossRef] [Scilit]
- Fessler, A.; Klöckner, C.A.; Haustein, S. Formation of crowdshipping habits in public transport: Leveraging anticipated positive emotions through feedback framing. Transp. Res. F-Traf. 2023, 94, 212–226. [Google Scholar] [CrossRef] [Scilit]
- Tappe, K.; Tarves, E.; Oltarzewski, J.; Frum, D. Habit formation among regular exercisers at fitness centers: An exploratory study. J. Phys. Act. Health 2013, 10, 607–613. [Google Scholar] [CrossRef] [Scilit]
- Willis, D.P.; Manaugh, K.; El-Geneidy, A. Cycling under influence: Summarizing the influence of perceptions, attitudes, habits, and social environments on cycling for transportation. Int. J. Sustain. Transp. 2015, 9, 565–579. [Google Scholar] [CrossRef] [Scilit]
- McCloskey, K.; Johnson, B.T. Habits, quick and easy: Perceived complexity moderates the associations of contextual stability and rewards with behavioral automaticity. Front. Psychol. 2019, 10, 1556. [Google Scholar] [CrossRef] [Scilit]
- Wohn, D.Y.; Ahmadi, M. Motivations and habits of micro-news consumption on mobile social media. Telemat. Inform. 2019, 44, 101262. [Google Scholar] [CrossRef] [Scilit]
- Stojanovic, M.; Grund, A.; Fries, S. Context stability in habit building increases automaticity and goal attainment. Front. Psychol. 2022, 13, 883795. [Google Scholar] [CrossRef] [Scilit]
- Brooks, T.L.; Leventhal, H.; Wolf, M.S.; O’Conor, R.; Morillo, J.; Martynenko, M.; Wisnivesky, J.P.; Federman, A.D. Strategies used by older adults with asthma for adherence to inhaled corticosteroids. J. Gen. Intern. Med. 2014, 29, 1506–1512. [Google Scholar] [CrossRef] [Scilit]
- Mo, Y.H. The impact of goal commitment on exercise behavior and physical health of college students: Based on goal-setting theory. Zhejiang Sport Sci. 2024, 46, 106–111. (In Chinese) [Google Scholar]
- Du, Y.; Zhao, Z.; Zhang, F.; Du, Z. Optimizing dietary habits for climate benefits in China: Greenhouse gas emissions and sustainable substitution strategies. Sustain. Prod. Consum. 2024, 51, 292–302. [Google Scholar] [CrossRef] [Scilit]
- Corbier, D.; Pettifor, H.; Agnew, M.; Nagashima, M. Shaping sustainable consumption practices: Changing consumers’ habits through lifestyle changes and Extended Producer Responsibility schemes. Resour. Conserv. Recycl. 2025, 217, 108214. [Google Scholar] [CrossRef] [Scilit]
- Pizano, D.R.; Schneider-Worthington, C.; Salvy, S.J.; Stansberry, A.; Davis, A.L.; Dutton, G.R. Habits at home: How the home food environment shapes caregivers’ eating habits. Appetite 2026, 219, 108432. [Google Scholar] [CrossRef] [Scilit]
- Gardner, B. A review and analysis of the use of ‘habit’ in understanding, predicting and influencing health-related behaviour. Health Psychol. Rev. 2015, 9, 277–295. [Google Scholar] [CrossRef] [Scilit]
- Wood, W.; Neal, D.T. A new look at habits and the habit-goal interface. Psychol. Rev. 2007, 114, 843–863. [Google Scholar] [CrossRef] [Scilit]
- Lally, P.; van Jaarsveld, C.H.M.; Potts, H.W.W.; Wardle, J. How are habits formed: Modelling habit formation in the real world. Eur. J. Soc. Psychol. 2010, 40, 998–1009. [Google Scholar] [CrossRef] [Scilit]
- Cialdini, R.B.; Reno, R.R.; Kallgren, C.A. A focus theory of normative conduct: Recycling the concept of norms to reduce littering in public places. J. Pers. Soc. Psychol. 1990, 58, 1015–1026. [Google Scholar] [CrossRef] [Scilit]
- Ajzen, I. The theory of planned behavior. Organ. Behav. Hum. Decis. Process. 1991, 50, 179–211. [Google Scholar] [CrossRef] [Scilit]
- Fleig, L.; Pomp, S.; Parschau, L.; Barz, M.; Lange, D.; Schwarzer, R.; Lippke, S. From intentions via planning and behavior to physical exercise habits. Psychol. Sport Exerc. 2013, 14, 632–639. [Google Scholar] [CrossRef] [Scilit]
- Chen, C.-H.V.; Chen, Y.-C. Assessment of enhancing employee engagement in energy-saving behavior at workplace: An empirical study. Sustainability 2021, 13, 2457. [Google Scholar] [CrossRef] [Scilit]
- Taylor-Collins, E.; Harrison, T.; Thoma, S.J.; Moller, F. A habit of social action: Understanding the factors associated with adolescents who have made a habit of helping others. Voluntas 2019, 30, 98–114. [Google Scholar] [CrossRef] [Scilit]
- Zeng, J.H.; Mao, Y.L.; Xu, M.Y.; Jian, B.; Qu, M. Exploring the effect of individual and group level factors on the level of rural residents’ domestic waste sorting: Evidence from Shaanxi, China. Int. J. Environ. Res. Public Health 2022, 19, 12022. [Google Scholar] [CrossRef] [Scilit]
- Sorkun, M.F. How do social norms influence recycling behavior in a collectivistic society? A case study from Turkey. Waste Manag. 2018, 80, 359–370. [Google Scholar] [CrossRef] [Scilit]
- Huang, Y.; Zhong, Z. How does policy support affect the behavior and effectiveness of domestic waste classification? The mediating role of environmental protection perception. Int. J. Environ. Res. Public Health 2023, 20, 2427. [Google Scholar] [CrossRef] [Scilit]
- Schwartz, S.H. Normative influences on altruism. In Advances in Experimental Social Psychology; Berkowitz, L., Ed.; Academic Press: New York, NY, USA, 1977; Volume 10, pp. 221–279. [Google Scholar]
- Chan, E.T.; Li, T.; De Vos, J. The determinants of walking habit strength in urban China: A mixed-method study. Transp. Res. A-Pol. 2025, 200, 104639. [Google Scholar] [CrossRef] [Scilit]
- Zhang, B. What drives waste sorting? A capability, opportunity, motivation, and behavior model analysis with hybrid modeling. Front. Psychol. 2025, 16, 1625538. [Google Scholar] [CrossRef] [Scilit]
- Locke, E.A. Toward a theory of task motivation and incentives. Organ. Behav. Hum. Perform. 1968, 3, 157–189. [Google Scholar] [CrossRef] [Scilit]
- Guo, W.; Unsworth, K.; Bretter, C.; Davis, M. When and how does in-role pro-environmental behavior spill over to extra-role behavior: Two experimental studies in the retail and education industries. Bus. Strat. Environ. 2024, 33, 5855–5872. [Google Scholar] [CrossRef] [Scilit]
- Anderson, E.W.; Sullivan, M.W. The antecedents and consequences of customer satisfaction for firms. Mark. Sci. 1993, 12, 125–143. [Google Scholar] [CrossRef] [Scilit]
- Swann, W.B. The trouble with change: Self-verification and allegiance to the self. Psychol. Sci. 1997, 8, 177–180. [Google Scholar] [CrossRef] [Scilit]
- Friedman, J.H. Greedy function approximation: A gradient boosting machine. Ann. Statist. 2001, 29, 1189–1232. [Google Scholar] [CrossRef] [Scilit]
- Lundberg, S.M.; Lee, S.-I. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems 30, Proceedings of the 31st Annual Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017; Guyon, I., Luxburg, U.V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2017; pp. 4765–4774. [Google Scholar]
- Apley, D.W.; Zhu, J. Visualizing the effects of predictor variables in black box supervised learning models. J. R. Stat. Soc. B 2020, 82, 1059–1086. [Google Scholar] [CrossRef] [Scilit]
- Verplanken, B.; Orbell, S. Reflections on past behavior: A self-report index of habit strength. J. Appl. Soc. Psychol. 2003, 33, 1313–1330. [Google Scholar] [CrossRef] [Scilit]
- Yin, Z.Y.; Ma, J. Beyond dualism: An integrated framework of environmental policy compliance in China. J. Clean. Prod. 2025, 519, 146005. [Google Scholar] [CrossRef] [Scilit]
- Fornara, F.; Carrus, G.; Passafaro, P.; Bonnes, M. Distinguishing the sources of normative influence on proenvironmental behaviors: The role of local norms in household waste recycling. Group Process. Intergroup Rel. 2011, 14, 623–635. [Google Scholar]
- Lowry, P.B.; Zhang, J.; Wang, C.; Siponen, M. Why do adults engage in cyberbullying on social media? An integration of online disinhibition and deindividuation effects with the social structure and social learning model. Inform. Syst. Res. 2016, 27, 962–986. [Google Scholar] [CrossRef] [Scilit]
- Hollenbeck, J.R.; Klein, H.J.; O’Leary, A.M.; Wright, P.M. Investigation of the construct validity of a self-report measure of goal commitment. J. Appl. Psychol. 1989, 74, 951–956. [Google Scholar] [CrossRef] [Scilit]
- Van der Werff, E.; Steg, L.; Keizer, K. It is a moral issue: The relationship between environmental self-identity, obligation-based intrinsic motivation and pro-environmental behaviour. Glob. Environ. Change 2013, 23, 1258–1265. [Google Scholar] [CrossRef] [Scilit]
- De Groot, J.I.M.; Steg, L. Morality and prosocial behavior: The role of awareness, responsibility, and norms in the norm activation model. J. Soc. Psychol. 2009, 149, 425–449. [Google Scholar] [CrossRef] [Scilit]
- Vesely, S.; Klöckner, C.A. Social desirability in environmental psychology research: A systematic review of the literature and recommendations for future studies. J. Environ. Psychol. 2020, 71, 101505. [Google Scholar]
- Podsakoff, P.M.; MacKenzie, S.B.; Lee, J.-Y.; Podsakoff, N.P. Common method biases in behavioral research: A critical review of the literature and recommended remedies. J. Appl. Psychol. 2003, 88, 879–903. [Google Scholar] [CrossRef] [Scilit]
- Kline, R.B. Principles and Practice of Structural Equation Modeling, 4th ed.; Guilford Press: New York, NY, USA, 2016. [Google Scholar]
- Henseler, J.; Ringle, C.M.; Sarstedt, M. A new criterion for assessing discriminant validity in variance-based structural equation modeling. J. Acad. Mark. Sci. 2015, 43, 115–135. [Google Scholar] [CrossRef] [Scilit]
- Franke, G.; Sarstedt, M. Heuristics versus statistics in discriminant validity testing: A comparison of four procedures. Internet Res. 2019, 29, 430–447. [Google Scholar] [CrossRef] [Scilit]
- Verplanken, B.; Aarts, H.A.G. Habit, attitude, and planned behaviour: Is habit an empty construct or an interesting case of goal-directed automaticity? Eur. Rev. Soc. Psychol. 1999, 10, 101–134. [Google Scholar] [CrossRef] [Scilit]
- Chai, T.; Draxler, R.R. Root mean square error (RMSE) or mean absolute error (MAE)?–Arguments against avoiding RMSE in the literature. Geosci. Model Dev. 2014, 7, 1247–1250. [Google Scholar] [CrossRef] [Scilit]
- Fisher, A.; Rudin, C.; Dominici, F. All models are wrong, but many are useful: Learning a variable’s importance by studying an entire class of prediction models simultaneously. J. Mach. Learn. Res. 2019, 20, 1–81. [Google Scholar]
- Hastie, T.; Tibshirani, R.; Friedman, J.H. The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed.; Springer: New York, NY, USA, 2009. [Google Scholar]
- Lundberg, S.M.; Erion, G.; Chen, H.; DeGrave, A.; Prutkin, J.M.; Nair, B.; Katz, R.; Himmelfarb, J.; Bansal, N.; Lee, S.-I. From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell. 2020, 2, 56–67. [Google Scholar] [CrossRef] [Scilit]
- Setiawan, B.; Afiff, A.Z.; Heruwasto, I. The role of norms in predicting waste sorting behavior. J. Soc. Mark. 2021, 11, 224–239. [Google Scholar] [CrossRef] [Scilit]
- Cheng, X.; Zhang, L.; Li, W.; Long, R. Intentions and actions in household waste separation: A machine learning approach on the gap and determinants. Environ. Impact Assess. Rev. 2024, 107, 107566. [Google Scholar] [CrossRef] [Scilit]
- Teng, Y.; Hu, M.; Liu, C. Identification of key predictors and configurational pathways of rural residents’ compliance with household waste classification policies: Based on explainable machine learning and fsQCA. Sustainability 2026, 18, 7495. [Google Scholar] [CrossRef] [Scilit]
- Hu, J.R.; Hui, T.Y.; Chan, J.K.Y. The governance mechanism of household waste sorting in China: Insights from residential communities in Yuelu, Changsha. Environ. Dev. Sustain. 2025. advance online publication. [Google Scholar] [CrossRef] [Scilit]
- Wang, D.; Chen, W.; Zheng, X.; Li, Y. Mechanism of undergraduate students’ waste separation behavior in the environmentally friendly higher education mega center of Guangzhou. J. Environ. Public Health 2022, 2022, 4475245. [Google Scholar] [CrossRef] [Scilit]
- Passafaro, P.; Livi, S.; Kosic, A. Local norms and the theory of planned behavior: Understanding the effects of spatial proximity on recycling intentions and self-reported behavior. Front. Psychol. 2019, 10, 744. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.








