Introduction
In the era of data-driven governance, "happiness computing" has emerged as a vital tool for assessing societal well-being. By leveraging social media and survey data, researchers aim to quantify the happiness levels of populations to inform policy. However, a significant hurdle remains: the "black box" nature of deep learning. While models like Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks achieve high accuracy, they often lack interpretability. Crucially, different models may predict the same happiness level based on contradictory internal logic—one prioritizing income while another focuses on leisure. This lack of explanation consistency undermines trust for policymakers who require stable, evidence-based insights.
Methodology and Framework
To address this, we propose a framework that integrates social science domain knowledge into the training of deep learning models. The goal is to ensure that models are "right for the right reasons."
The framework consists of an online data collection phase—utilizing questionnaires, self-reports, and social network analysis—followed by a Deep Neural Network (DNN) for happiness computing and explanation. We introduce two core technical components:
- Additive Factor Attribution: Using Shapley values from cooperative game theory, we quantify the contribution of individual factors (e.g., health, marriage, income) to a prediction.
- Explanation Consistency Loss ($L_{exp}$): We implement a loss function based on Kullback-Leibler (KL) Divergence. This penalizes models when their internal factor importance distribution deviates from a "global importance distribution" derived from ensemble knowledge.
The study utilized two extensive datasets: the Chinese General Social Survey (CGSS) 2015 (8,000+ samples, 124 factors) and the European Social Survey (ESS) 2018 (50,000+ samples, 102 factors).
Theoretical Framework: Primary and Secondary Factors
The cornerstone of our approach is the mathematical encoding of "Primary/Secondary" factor theory. Social science research suggests that certain factors, such as health and family, are "primary"—meaning their influence on happiness is relatively stable across different demographic groups. Other factors, like car ownership or specific hobbies, are "secondary" and vary more widely.
By treating these relationships as domain knowledge, we "nudge" the neural network to align its reasoning with established social science patterns. This prevents the model from latching onto spurious correlations and ensures its logic is socially relevant.
Key Results and Discussion
Our experiments demonstrate that enforcing explanation consistency does not come at the cost of performance; rather, it enhances it.
- Accuracy Improvements: Across various models, the inclusion of domain knowledge constraints led to performance gains. Notably, the WideDeep model achieved a 7.33% increase in Macro_F1 score for the elderly demographic in the CGSS dataset.
- Enhanced Stability: Models trained with these constraints exhibited significantly lower variance across training runs, indicating higher reliability.
- Logic Alignment: Consistency was measured using Kendall’s tau coefficient. Without constraints, inter-model consistency was often below 0.3. With our framework, scores improved to as high as 0.56, showing that different architectures (CNN, LSTM, etc.) began to agree on the most important drivers of happiness.
- Demographic Insights: The models identified distinct priorities: "equity" and "depression" were paramount for younger populations, whereas "status" and "leisure" were more influential for the elderly.
Conclusion
By bridging the gap between social science theory and deep learning, we have developed a more trustworthy approach to happiness computing. While currently focused on structured survey data, future research will extend this methodology to unstructured web data and natural language processing. Ensuring that AI assessments of well-being are both accurate and logically consistent is a critical step toward responsible data-driven governance.
Summary updated