Independent neural network modeling of class analogy for classification pattern recognition and optimization