For people whose depression is resistant to psychotherapy and drug therapy, doctors may use electroconvulsive therapy (ECT). Today’s version of ECT is much more specific, with lower side effects.
https://www.webmd.com/depression/features/future-mdd-treatment