<p>A method for controlling an electroporation device configured for supplying an electrical power signal to a plurality of pairs of electrodes (5a, 5b) coupled to a portion of the human body (7), wherein the following steps are performed: detecting, in the course of an electroporation treatment, a condition of malfunctioning or fail for the pairs of electrodes for which at least one electrical parameter of the power signal supplied to the electrodes themselves has an anomalous value; storing an indicator (90) of the pairs of electrodes in the fail condition; and selecting (90) the pairs of electrodes in the fail condition and re-computing new parameters (225) in order to implement a subsequent electroporation process.</p>