Sarah’s is the first documented case of personalizing a technique called deep brain stimulation to successfully treat depression. Much more research is needed before it’s clear how effective the approach could be and for how many patients. But several teams of scientists are now working on ways to essentially match the electrical stimulation to what happens in an individual patient’s brain.

Deep brain stimulation is used to treat Parkinson’s disease and several other disorders, but isn’t approved by federal regulators for depression because results have been inconsistent. While some previous studies suggested benefits, two trials sponsored by U.S. device companies were stopped in the last decade because stimulation seemed no better than the placebo effect of a “sham” implant that provided no stimulation.

But those studies didn’t target individualized locations or patterns of electrical activity in people’s brains. It was “one size fits all,” said Dr. Darin Dougherty, director of neurotherapeutics at Massachusetts General Hospital, who worked on one of the halted trials. He called the personalized approach with Sarah, which he wasn’t involved in, “very exciting.”

“One person’s depression might look very different from another person’s depression,” said Dr. Katherine Scangos, an assistant professor of psychiatry at U.C.S.F. and an author of a report about Sarah’s case, published Monday in the journal Nature Medicine. The senior authors were Dr. Andrew Krystal, an expert in neuro-modulation and mood disorders, and Dr. Edward Chang, whose work includes brain implants for paralyzed patients who cannot speak.

To identify the specific brain activity pattern linked to Sarah’s depression, researchers conducted an intensive 10-day exploration of Sarah’s brain, placing multiple electrodes in it and asking about her feelings when they applied stimulation to different locations in varying doses.