The present disclosure relates to a method for determining stimulation parameters for a neuroprosthetic device performed by a processor of the device. Based on (i) a desired spatial pattern of neural activity, the processor determines stimulation parameters for an array of electrodes of the neuroprosthetic device. The processor determines the stimulation parameters such that a difference between (i) the desired spatial pattern of neural activity and (ii) an estimated spatial pattern of neural activity is optimised. The estimated spatial pattern of neural activity is an estimate of a response of a target neural tissue to being stimulated by the neuroprosthetic device based on the stimulation parameters. This method allows higher resolution stimulation and allows electrode arrays with higher electrode density to be usefully employed.