algorithmic therapy compliance