Stacked Generalization Model for Predicting Happiness: Positive Affect, Gratitude, Social Connectedness, and Psychological Flexibility
Journal of Assessment and Research in Applied Counseling · 2026 · 8 (3) · 1-10
DOI: 10.61838/kman.jarac.207 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Assessment and Research in Applied Counseling, 2026. Verfasst von Merve Okan und 3 weiteren Autor:innen.
Abstract (Originalsprache)
Objective
The present study aimed to develop and evaluate a stacked generalization machine learning model to predict happiness based on positive affect, gratitude, social connectedness, and psychological flexibility. Methods and Materials: This cross-sectional predictive study was conducted on a sample of 742 adults recruited from Canada using stratified online sampling to ensure demographic diversity. Participants completed validated self-report instruments including the Subjective Happiness Scale (SHS), the Positive Affect subscale of the Positive and Negative Affect Schedule (PANAS), the Gratitude Questionnaire-6 (GQ-6), the Social Connectedness Scale-Revised (SCS-R), and the Acceptance and Action Questionnaire-II (AAQ-II). Data preprocessing involved handling missing values via multiple imputation, outlier adjustment using robust scaling, and feature standardization. The dataset was split into training (80%) and testing (20%) sets, and model training utilized 10-fold cross-validation. A stacked generalization model was constructed using base learners including linear regression, support vector regression, random forest, and gradient boosting, with a Ridge regression meta-learner. Model performance was evaluated using mean squared error (MSE), root mean squared error (RMSE), and coefficient of determination (R²), and interpretability was enhanced באמצעות SHapley Additive exPlanations (SHAP) analysis.
Findings
The stacked generalization model demonstrated superior predictive performance compared to all base models, achieving the highest explained variance (R² = 0.74) and the lowest prediction error (RMSE = 0.52). Among the predictors, positive affect exhibited the strongest contribution to happiness, followed by social connectedness, gratitude, and psychological flexibility. SHAP analysis revealed significant nonlinear and interaction effects among predictors, indicating that the combined influence of these variables enhances predictive accuracy beyond additive models.
Conclusion
The findings highlight the effectiveness of stacked generalization in modeling complex psychological constructs and underscore the central role of positive affect, gratitude, social connectedness, and psychological flexibility in predicting happiness, supporting the integration of machine learning approaches in psychological research and intervention design.
Zitieren
APA
Okan, M., Lu, C., Ros-García, L., & Hernandez, W. A. (2026). Stacked Generalization Model for Predicting Happiness: Positive Affect, Gratitude, Social Connectedness, and Psychological Flexibility. Journal of Assessment and Research in Applied Counseling, 8(3), 1-10. https://doi.org/10.61838/kman.jarac.207
Vancouver
Okan M, Lu C, Ros-García L, Hernandez WA. Stacked Generalization Model for Predicting Happiness: Positive Affect, Gratitude, Social Connectedness, and Psychological Flexibility. Journal of Assessment and Research in Applied Counseling. 2026;8(3):1-10. doi:10.61838/kman.jarac.207
BibTeX
@article{Okan2026,
author = {Okan, Merve and Lu, Cheng-Xiong and Ros-García, Laura and Hernandez, Wilmer Antonio},
title = {Stacked Generalization Model for Predicting Happiness: Positive Affect, Gratitude, Social Connectedness, and Psychological Flexibility},
journal = {Journal of Assessment and Research in Applied Counseling},
year = {2026},
volume = {8},
number = {3},
pages = {1--10},
doi = {10.61838/kman.jarac.207}
}
EUVIMED