Imputating snag data to forest inventory for wildlife habitat modeling Kevin Ceder College of Forest Resources University of Washington GMUG – 11 February 2008
Why impute snag data? Snags are an important habitat element and needed for habitat assessments. These data are often not collected in forest inventory The Large-Landscape Wildlife Assessment models will need these data
Why use Nearest-Neighbor? Non-parametric requiring no assumptions of underlying functional form Retains the variance/covariance structure of the input data in the output data
The Questions 1)Can snag data be imputed using kNN techniques with stand and site data? 2)How well do the results fit observed data? 3)Which distance measure performs best? 4)What is the effect of increasing neighborhood size? 5)How do the results compare with random sampling?
The Process The database –FIA integrated database version 2.1 –Data for private forests in western Washington (1510 plots) –Both tree and snag data collected between –Representative of the forest targeted for the LLWA project
The Process The tool - –The yaImpute package for kNN imputation Raw, Euclidean, Mahalanobis, MSN, MSN2, ICA, and randomForest distance measures k = 1, 2, 3, 4, 5, 10 For k>1 imputed data are distance weighted means of neighbors –9999 permutations of the data for comparisons with random sampling k = 1, 2, 3, 4, 5, 10 For k>1 imputed data are distance weighted means of neighbors using Euclidean distance
The Statistics Goodness of fitComparison with random
The Input Data – Tree and site data (xData) N = 1510MinMaxMean Trees per Acre (TOT_TPA) Basal Area per Acre (TOT_BA, sqft/ac) Quadratic Mean Diameter (QMD, in) Mean Height (MEAN_HT, ft) Stand Age (AGE, yr) Site Index (SITE_INDEX_FIA, 50 yr) Slope (SLOPE, %)09924 Aspect (ASPECT_DEG, deg) Elevation (ELEV_FT, ft)
The Input Data – Snag data (yData) N = 1510MinMaxMean Snags per Acre (SNAG_TPA_TOTAL) Basal Area (SNAG_BA, sqft/ac) Quadratic Mean Diameter (SNAG_QMD, in) Mean Height (SNAG_ MEAN_HT, ft) of 1510 plots did not have snags present
Results 1)Can snag data be imputed using kNN techniques with stand and site data? Yes!
Results 1)How well do the results fit observed data? RMSDSPABAQMDMean Ht Min Max Mean
Results 1)How well do the results fit observed data? BIASSPABAQMDMean Ht Min Max Mean
Results 1)How well do the results fit observed data? MADSPABAQMDMean Ht Min Max Mean
Results 1)How well do the results fit observed data? Marginally… High RMSD and MAD relative to mean snag measures in the data Observed vs imputed plots show poor patterning
Results 2)Which distance measure performs best? 3)What is the effect of increasing neighborhood size?
Results 2)Which distance measure performs best? All are generally similar randomForest imputations provide lower RMSD and MAD but under-predict more than others 3)What is the effect of increasing neighborhood size? Increasing k reduces RMSD and MAD Little effect on bias Slightly decreased range in imputed values with k = 10
Results 4)How do the results compare with random sampling? RMSD k SNAG_TPA_TOTAL NN p SNAG_BA_TOTAL NN p SNAG_QMD NN p SNAG_MEAN_HT NN p0.0001
Results 4)How do the results compare with random sampling? Bias k SNAG_TPA_TOTAL NN p SNAG_BA_TOTAL NN p SNAG_QMD NN p SNAG_MEAN_HT NN p0.0001
Results 4)How do the results compare with random sampling? MAD k SNAG_TPA_TOTAL NN p SNAG_BA_TOTAL NN p SNAG_QMD NN p SNAG_MEAN_HT NN p0.0001
Results 4)How do the results compare with random sampling? p-values of suggest that there is some underlying very weak relationship between snags and overstory Imputation is better than just randomly assigning snags to stands
Why didn’t it work better? Very weak correlations between overstory and snags –Snags are from prior stand Many of the snags in the FIA database have advanced decay classes Often snags are larger than QMD –Management history Snags were removed at harvest Thinning captures mortality
Future Direction Assessing the effects of imputed data on habitat model outputs –If there are big differences then what?