Exploiting domain knowledge to detect outliers