Context Aware Similarity Measure Selection: Mining of Wearable Implantable Body Sensor Network Data with Logical Reasoning