Distance-based outliers: algorithms and applications