Systems and techniques are disclosed to establish programming of an implantable electrical neurostimulation device for treating chronic pain of a human subject, through the use of a dynamic model adapted to determine pain treatment parameters for a human patient and identify a new device operational program to implement the pain treatment parameters to address the chronic pain condition. In an example, the system to establish programming of the neurostimulation device performs operations that: obtain state data indicating a measured value that is correlated to pain experienced by the human subject; determine neurostimulation programming parameters, using a dynamic model, for pain treatment in the human subject, as the dynamic model is used to identify values of the neurostimulation programming parameters that predict an improvement to the measured value; and indicate a neurostimulation program for the neurostimulation device, that includes the neurostimulation programming parameters for the implantable electrical neurostimulation device.