Boundary detection method based on supervising for small sample size problem