A method of treating a sphincter provides a sphincter electropotential mapping device with at least one of a mapping electrode or a treatment electrode. The sphincter electropotential mapping device is introduced into at least a portion of the sphincter, the lower esophageal sphincter, stomach, the cardia or the fundus. Bioelectric activity causing a relaxation of the sphincter is detected and energy is delivered from either the mapping electrode or the treatment electrode to treat the bioelectric activity. A method of treating a sphincter provides a sphincter electropotential mapping device with at least one of a mapping electrode or a treatment electrode. The sphincter electropotential mapping device is introduced into at least a portion of the sphincter, the lower esophageal sphincter, stomach, the cardia or the fundus. Bioelectric activity causing a relaxation of the sphincter is detected and energy is delivered from either the mapping electrode or the treatment electrode to treat the bioelectric activity.