Machine learning using fuzzy logic with applications to medicine