Proposing a semi-supervised method with loss regularization for accurate terrain classification in legged robots.