Photos (on iOS, iPadOS, and macOS) is an integral way for people to browse, search, and relive life’s moments with their friends and family. Photos uses a number of machine learning algorithms, running privately on-device, to help curate and organize images, Live Photos, and videos.
https://machinelearning.apple.com/research/recognizing-people-photos