Systems and methods are provided for modulating the autonomic nervous system by the electrical stimulation of the neuro-muscular system of a patient, and include an implantable electrical system for gastrointestinal stimulation which incorporates a heart rate sensor to indicate the neurovegetative patient condition, to initiate and terminate stimulation at specific locations, and an algorithm to automatically control electrical stimulation frequency, interval, amplitude, or a combination of such parameters for adaptive treatment of obesity, anorexia, other eating disorders, diseases related with the so called “metabolic syndrome” (e.g., impaired glucose tolerance and diabetes type 2, GERD, systemic hypertension, early arterovascular degeneration, early senility, and the like), and disorders related to a pathologic imbalance of the autonomic nervous system.