Rite Aid agreed not to use artificial intelligence-based facial recognition technology for five years under a settlement reached with the Federal Trade Commission, the agency announced Tuesday.