A Machine learning approach for intestinal motility assessment with capsule endoscopy