Stool samples should be collected when gastrointestinal symptoms such as diarrhea, abdominal pain, bloating, or blood in the stool are present. They are also recommended during outbreaks of gastrointestinal infections or when there is a suspicion of foodborne illness.