Self Designing Pattern Recognition System Employing Multistage Classification