A method and apparatus for affecting the autonomic nervous system of a subject using stimuli based on separate analysis of the sympathetic and/or parasympathetic branches of the subjects autonomic nervous system. The present invention also relates to a method and apparatus for affecting the autonomic nervous system, wherein stimuli is applied in coordination with cyclical activities of the subjects body such as respiration or cardiac cycle.