Pattern recognition as a statistical method for analyzing the confidence level in the identification of objects