Interpretable Neural Networks for Panel Data Analysis in Economics

Yucheng Yang, Zhong Zheng, Weinan EarXiv 2020

Introduction

Economists often face a trade-off between the interpretability of traditional models and the predictive power of modern machine learning. While linear or logistic regressions are transparent, they often fail to capture the complex, non-linear patterns inherent in large-scale panel data. Conversely, standard neural networks act as "black boxes," providing high accuracy but offering little insight into the underlying mechanisms—a critical requirement for policy analysis. This paper introduces the Interpretable Neural Network (IntNN), an architecture designed to bridge this gap by encoding domain-specific logic directly into the model's layers.

Methodology: Interpretability by Design

The IntNN architecture replaces arbitrary hidden units with specific, differentiable functional forms. This "interpretable stack" allows the model to be trained via standard gradient descent while remaining human-readable.

Comparison between Conventional Neural Networks (a) and the proposed Interpretable Neural Network (b).

The model pipeline consists of four key stages:

  1. Differentiable Splitting: Sigmoid-based functions act as soft decision trees to binarize continuous inputs.
  2. Dimension Reduction: A linear combination layer identifies and weights the most relevant variables.
  3. Persistent Change Filtering: A recursive layer tracks the duration of behavioral states over time. It utilizes a trainable smoothing parameter ($k$) to distinguish between temporary data gaps and actual status changes.
  4. Regularized Output: A final logistic layer uses Lasso regularization to ensure the model relies on a sparse, interpretable set of features.

Data and Evaluation

The authors evaluated the IntNN using a massive administrative dataset from a Chinese city of four million residents. The study focused on predicting monthly employment status based on payment records for seven types of social insurance and the Housing Provident Fund (HPF). The model was trained and tested on a balanced sample of 40,000 observations.

Key Results

The IntNN achieved a test accuracy of 94.5%, demonstrating that structural constraints can improve performance by acting as a beneficial regularizer.

Performance comparison of IntNN against traditional logistic regression and black-box models.

As shown in the table, IntNN outperformed traditional Logistic Regression (92.8%) and slightly exceeded the accuracy of uninterpretable benchmarks like Random Forests and standard Neural Networks (92.9%). Beyond raw performance, the model revealed that employment status is most strongly linked to Housing Provident Fund (HPF) contributions and urban working medical insurance, while shifts to "non-working" insurance types served as leading indicators of unemployment.

Conclusion

The IntNN framework demonstrates that high-stakes economic forecasting does not require a choice between accuracy and transparency. By building interpretability into the architecture, researchers can leverage the power of deep learning while maintaining the descriptive clarity necessary for social science and policy-making. Future research will focus on extending this framework to causal inference and broader categories of panel data.

Summary updated

Abstract

The lack of interpretability and transparency are preventing economists from using advanced tools like neural networks in their empirical research. In this paper, we propose a class of interpretable neural network models that can achieve both high prediction accuracy and interpretability. The model can be written as a simple function of a regularized number of interpretable features, which are outcomes of interpretable functions encoded in the neural network. Researchers can design different forms of interpretable functions based on the nature of their tasks. In particular, we encode a class of interpretable functions named persistent change filters in the neural network to study time series cross-sectional data. We apply the model to predicting individual's monthly employment status using high-dimensional administrative data. We achieve an accuracy of 94.5% in the test set, which is comparable to the best performed conventional machine learning methods. Furthermore, the interpretability of the model allows us to understand the mechanism that underlies the prediction: an individual's employment status is closely related to whether she pays different types of insurances. Our work is a useful step towards overcoming the black-box problem of neural networks, and provide a new tool for economists to study administrative and proprietary big data.
BibTeX
@misc{yang2020interpretable,
  author = {Yucheng Yang and Zhong Zheng and Weinan E},
  title = {{Interpretable Neural Networks for Panel Data Analysis in Economics}},
  year = {2020},
  eprint = {2010.05311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.05311},
}
Figure