Fig. 2 | Scientific Reports

Fig. 2

From: Habitat selection ecology of the aquatic beetle community using explainable machine learning

Fig. 2

Importance for ecological element, F–score of the XGBoost model, and mean Shapley values of habitat features and general ecological traits, body size (Size_Class) and trophic type (Troph_Class) for the differentiation of the ecological element of aquatic beetles community: (a) tyrphophiles, (b) lake and river species incl. rheobionts, (c) argilophiles, (d) eurytopes. The Shapley values indicate the predictions of the mean positive ( +) or negative (-) influence of the respective trait on the categories (a)(d) of the ecological element of the beetles. Positive values (red print) strengthen a particular category compared to the other three. Negative values (blue print) weaken this category at the expense of strengthening the other categories. Red dots in the SHAP model diagram indicate higher values of the feature, while blue dots indicate lower values of the feature. For general trait body size (Size_Class) nominal values of categories: 1. 1 1.99 mm, 2. 2 4.99 mm, 3. 5 9.99 mm, 4. > 10 mm. For trophic type (Troph_Class) nominal values of categories: 1. shredders, 2. grazers and scrapers, 3. polyphages, 4. Predators. F-scores and mean Shapley values are averages of 5 random repetitions of XGBoost and SHAP models. Accuracy of the train and test subsets of the model, see Appendix S1: Table S2.

Back to article page