Interpreting Random Forest Classification Models Using a Feature Contribution Method
Model interpretation is one of the key aspects of the model evaluation process. The explanation of the relationship between model variables and outputs is relatively easy for statistical models, such as linear regressions, thanks to the availability of model parameters and their statistical significance . For “black box” models, such as random forest, this information is hidden inside the model structure. This work presents an approach for computing feature contributions for random forest classification models. It allows for the determination of the influence of each variable on the model prediction for an individual instance. By analysing feature contributions for a training dataset, the most significant variables can be determined and their typical contribution towards predictions made for individual classes, i.e., class-specific feature contribution “patterns”, are discovered. These patterns represent a standard behaviour of the model and allow for an additional assessment of the model reliability for new data. Interpretation of feature contributions for two UCI benchmark datasets shows the potential of the proposed methodology. The robustness of results is demonstrated through an extensive analysis of feature contributions calculated for a large number of generated random forest models.
KeywordsRandom forest Classification Variable importance Feature contribution Cluster analysis
This work is partially supported by BBSRC and Syngenta Ltd through the Industrial CASE Studentship Grant (No. BB/H530854/1).
- 1.Tropsha, A.: Best practices for QSAR model development, validation, and exploitation. Mol. Inform. 29(6–7), 476–488 (2010)Google Scholar
- 3.Carlsson, L., Helgee, E.A., Boyer, S.: Interpretation of nonlinear QSAR models applied to ames mutagenicity data. J. Chem. Inf. Model. 49(11), 2551–2558 (2009)Google Scholar
- 6.Kuz’min, V.E., Polishchuk, P.G., Artemenko, A.G., Andronati, S.A.: Interpretation of QSAR models based on random forest methods. Mol. Inform. 30(6–7), 593–603 (2011)Google Scholar
- 8.Breiman, L., Cutler, A.: Random forests. http://www.stat.berkeley.edu/~breiman/RandomForests (2008)
- 9.Strobl, C., Boulesteix, A.-L., Zeileis, A., Hothorn, T.: Bias in random forest variable importance measures: Illustrations, sources and a solution. BMC Bioinf. 8(1), 25 (2007)Google Scholar
- 11.Liaw, A., Wiener, M.: Classification and regression by randomforest. R News 2(3), 18–22 (2002)Google Scholar
- 12.Iris dataset. http://archive.ics.uci.edu/ml/datasets/Iris
- 13.Cormen, T.H., Stein, C., Rivest, R.L., Leiserson, C.E.: Introduction to Algorithms. 2nd edn. McGraw-Hill Higher Education, New York (2001)Google Scholar
- 14.Hand, D.J., Smyth, P., Mannila, H.: Principles of Data Mining. MIT Press, Cambridge (2001)Google Scholar
- 15.Rajaraman, A., Ullman, J.D.: Mining of Massive Datasets. Cambridge University Press, Cambridge (2012)Google Scholar
- 16.Breast Cancer Wisconsin Diagnostic dataset. http://archive.ics.uci.edu/ml/datasets/Breast+Cancer+Wisconsin+%28Diagnostic%29
- 17.CRAN—The Comprehensive R Archive Network. http://cran.r-project.org/