Optimising of pipeline maintenance using deposit profile technology