These are called tapeworms. Fresh tapeworm segments look like grains of rice, but when they dry out they look like sesame seeds. Tapeworms can only be eliminated with a drug called praziquantel which is not an ingredient in most over the counter deworming treatments.