The neural network belongs to the computer systems of computing technology and artificial intelligence in the field of building automated systems for recognizing and classifying images at the border of several classes, which is made with the ability to perform diagnostics and image recognition at the borders of two, three or more classes due to the fact that the layer schemes for selection of one, two or more single signals from the outputs of the layer of output neurons , , ¼, , ¼, . at each moment of time remembers the number of non-zero signals at the output of neurons of the output layer, and the second layer of output neurons , , ¼, , ¼, remembers neurons of the output layer that have non-zero signals at their outputs. The technical result achieved by this neural network is an increase in the number of classes that can be recognized and the ability to recognize images that are at the same Hamming distance from two, three or more reference images stored in the connection weights of the neurons of the memory layer. haunting An experimental evaluation of the method and neural network for solving the problems of matching digital images was carried out. The neural network is implemented as a software utility Il.: 2; Bibliogr.: 15 titles.