Trend prediction as a basis optimal therapy door