Apple today published a new entry in its online Machine Learning Journal, this time covering an on-device deep neural network for face detection, aka the technology that's used to power the facial recognition feature used in Photos and other apps.

Facial detection features were first introduced as part of iOS 10 in the Core Image framework, and it was used on-device to detect faces in photos so people could view their images by person in the Photos app.

apple machine learning journal
Implementing this technology was no small feat, says Apple, as it required "orders of magnitude more memory, much more disk storage, and more computational resources."

Apple's iCloud Photo Library is a cloud-based solution for photo and video storage. However, due to Apple's strong commitment to user privacy, we couldn't use iCloud servers for computer vision computations. Every photo and video sent to iCloud Photo Library is encrypted on the device before it is sent to cloud storage, and can only be decrypted by devices that are registered with the iCloud account. Therefore, to bring deep learning based computer vision solutions to our customers, we had to address directly the challenges of getting deep learning algorithms running on iPhone.

Apple's Machine Learning Journal entry describes how Apple overcame these challenges by leveraging GPU and CPU in iOS devices, developing memory optimizations for network interference, image loading, and caching, and implementing the network in a way that did not interfere with other tasks expected on iPhone.

The new entry is well worth reading if you're interested in the specific details behind how Apple overcame these challenges to successfully implemented the feature. The technical details are dense, but understandable, and it provides some interesting insight into how facial recognition works.

With its Machine Learning Journal, Apple aims to share the complex concepts behind its technology so the users of its products can get a look behind the curtain. It also serves as a way for Apple's engineers to participate in the AI community.

Apple has previously shared several articles on Siri, including how "Hey Siri," works, and a piece on using machine learning and neural networks for refining synthetic images.

Top Rated Comments

H3LL5P4WN Avatar
78 months ago
Do I enjoy paying over $1000 for a phone (as I have for what, 3 straight years now?)? No. Will I continue to do so? Until they make me a 512gb phone south of that mark, yes. Yes I will.

But bahgawd, the technology Apple is pulling off really is falling squarely into the realm of magical.
Score: 1 Votes (Like | Disagree)
44267547 Avatar
78 months ago
Anyone else just wowed by the amount of technology embedded into this new iPhone? Our phones are learning more about us then we ever knew Before.
Score: 1 Votes (Like | Disagree)
spacemnspiff Avatar
78 months ago
Anyone else just wowed by the amount of technology embedded into this new iPhone? Our phones are learning more about us then we ever knew Before.
Yet people keep complaining about price, because all it has is the same hardware as the iPhone 8, make childish comments by attributing extra cost to the OLED screen and claiming that no innovation in the smartphone industry is to be had. These high school minded kids have got to grow up.
Score: 1 Votes (Like | Disagree)
69Mustang Avatar
78 months ago
But bahgawd, the technology Apple is pulling off really is falling squarely into the realm of magical.
The entire AI community is working on some voodoo. If you couple it with advances in robotics... we are about 2 hours and 23 minutes away from the uprising. This mofo is untethered.
Score: 1 Votes (Like | Disagree)

Popular Stories

M3 Chip Apple Event Slide

First Benchmark Results Surface for M3 Chip in New Macs

Wednesday November 1, 2023 7:53 am PDT by
The first benchmark results for the standard M3 chip surfaced in the Geekbench 6 database today, providing a closer look at the chip's CPU performance improvements. Based on the results so far, the M3 chip has single-core and multi-core scores of around 3,000 and 11,700, respectively. The standard M2 chip has single-core and multi-core scores of around 2,600 and 9,700, respectively, so the...
iOS 17

Apple Preparing to Release iOS 17.1.1 Update for iPhone

Thursday November 2, 2023 1:22 pm PDT by
Apple appears to be internally testing an iOS 17.1.1 update for the iPhone, based on evidence of the software in our website's analytics logs this week. iOS 17.1.1 will almost certainly be focused on bug fixes, but it's unclear exactly which issues the update will address. The update could include the same fix for Wi-Fi connectivity issues that Apple rolled out in the first iOS 17.2 beta,...
m3 pro chip

Apple M3 Pro Chip Has 25% Less Memory Bandwidth Than M1/M2 Pro

Tuesday October 31, 2023 3:11 am PDT by
Apple's latest M3 Pro chip in the new 14-inch and 16-inch MacBook Pro has 25% less memory bandwidth than the M1 Pro and M2 Pro chips used in equivalent models from the two previous generations. Based on the latest 3-nanometer technology and featuring all-new GPU architecture, the M3 series of chips is said to represent the fastest and most power-efficient evolution of Apple silicon thus far. ...
AitTag New Firmware

Apple Releases New Firmware for AirTags

Tuesday October 31, 2023 11:26 am PDT by
Apple today released a new firmware update designed for the AirTag item trackers. The firmware features a build number of 2A61, up from the 2A36 firmware that came out last December. It has been nearly a year since Apple updated the firmware on the AirTags, and there is no word yet on what might be included in the update. Today's firmware release will be rolling out on a staggered basis....
M3 Max Chip

M3 Max Chip Around as Fast as M2 Ultra in Early Benchmark Results

Wednesday November 1, 2023 7:27 pm PDT by
The first benchmark results for Apple's M3 Max chip surfaced in the Geekbench 6 database today, providing a look at CPU performance. Based on the "Mac15,9" model identifier shown, the results appear to be for the new 16-inch MacBook Pro. The highest multi-core score for the M3 Max with a 16-core CPU is currently 21,084 as of writing. If this early result is accurate, this means the M3 Max is ...
10 New Features With iOS 17

iOS 17.2 Coming Later This Year With These 10 New Features for iPhone

Friday November 3, 2023 1:23 pm PDT by
Apple made the first beta of iOS 17.2 available to developers and public beta testers last week, and the software update includes many new features and changes for iPhones. Below, we have highlighted 10 of these new features and changes. iOS 17.2 is expected to be released to the public in December. Once available, the update can be installed in the Settings app under General → Software...
Pro Display XDR Red

Macs With M3 Chip Still Officially Support Only a Single External Display

Thursday November 2, 2023 7:41 am PDT by
Macs equipped with the standard M3 chip still support only one external display with up to 6K resolution at 60Hz, according to Apple's tech specs. So far, the chip is available in the entry-level 14-inch MacBook Pro and the 24-inch iMac. This limitation has existed since the first Apple silicon Macs with the M1 chip were released in 2020, but users can connect multiple external displays to...
apple music voice plan feature blue green

Apple Music's Lower-Priced Voice Plan Being Discontinued

Wednesday November 1, 2023 11:51 am PDT by
The lower-cost Apple Music Voice Plan is being discontinued this month in the U.S. and all other countries where it was available, according to an Apple support document. Brazilian website MacMagazine was first to alert us to this news. "Beginning in November, Apple will discontinue the Apple Music Voice plan," said Apple. "We are focused on delivering the best, most robust music experience...