Self-learning model for pattern recognition in vision system based on adaptive kernel