Systems and methods are provided for stimulating the brain of a patient to treat a medical condition. In some aspects, a method includes positioning a stimulating device comprising electrical contacts configured to electrically stimulate locations associated with a patient's brain, and initiating a rehabilitation process to include the patient performing a task. The method also includes acquiring feedback from the patient at least while the patient is performing the task, generating, based on the acquired feedback, electrical stimulations to treat the medical condition of the patient. In some aspects, the method further includes generating a report indicative of a patient performance.