Model of hierarchical self-organizing neural networks for detecting and classifying diabetic retinopathy