Inference-based therapy