How can science be used to help discourage seagulls from attacking students during lunch?

Unless the students are near a nesting area, I doubt if they are "attacking." They are probably looking for food leftovers. Allow them to take tidbits that have an aversive digestive reaction.