An electrogastrogram (EGG) is a graphic representation of electrical signals in the stomach that control muscle contractions, similar to an electrocardiogram. It helps diagnose motility disorders by measuring the frequency of contractions in different parts of the gastrointestinal tract, aiding in the evaluation of conditions like gastroparesis and functional dyspepsia. Key metrics include bradygastria and tachygastria, which indicate abnormal rates of stomach electrical activity.