Automatic calibration of a fiber-optic strain sensor using a self-learning system