Text this: Autonomous Measurement System for Localization of Loss-Induced Perturbation Based on Transmission-Reflection Analysis