Prior to each treatment session for an individual patient, a machine controller in a dialysis machine obtains from a logic device a set of current control settings of the machine-related parameters to be applied in the treatment session. In generating the control settings, the logic device obtains a set of therapeutic targets comprising a target value that represents part of a desired status of the patient after the treatment session, in terms of one or more physiological parameters for the patient. The logic device also obtains status data that represents the current status of the patient prior to the treatment session, and computes the set of current control settings of the machine-related parameters, as a function of the set of therapeutic targets and the status data and at least partly based on a predictive model, which estimates the physiological response of the patient to the machine-related parameters during the treatment session.