Automatic Generation of Fuzzy Rules and its Applications in Medical Diagnosis