Intelligent-catheter design