Mathematical algorithm for the automatic recognition of intestinal parasites