A Data-Driven Framework for Ultrasonic Structural Health Monitoring of Pipes