Gmail uses multiple AI-based spam filters to remove email messages considered spam to the users' spam folders. The filters consider many factors to determine whether the email is spam.