Addressing Gap between Training Data and Deployed Environment by On-Device Learning