Fig. 6: Feature importance analysis showing the impact of environmental elements on safety perception using SHAP values. | npj Urban Sustainability

Fig. 6: Feature importance analysis showing the impact of environmental elements on safety perception using SHAP values.

From: Vision AI reveals waste-safety perception relationships in urban environments

Fig. 6

The violin plots visualize both the distribution patterns and impact magnitude of each urban feature’s contribution to safety perception. The width of each violin represents the density of observations at different contribution levels. Positive values (right side) indicate features that enhance perceived safety, while negative values (left side) represent features that diminish safety perception. The color gradient from blue to red corresponds to the magnitude of feature values, where blue indicates lower feature values and red signifies higher feature values.

Back to article page