A geometric framework for outlier detection in high-dimensional data