Deep Neural Networks for Face Detection Explained on Apple's Machine Learning Journal - MacRumors
Skip to Content

Deep Neural Networks for Face Detection Explained on Apple's Machine Learning Journal

by

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

69Mustang Avatar
117 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)
H3LL5P4WN Avatar
117 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)
spacemnspiff Avatar
117 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)
117 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)

Popular Stories

iPhone Duo Display Cracking

Apple Alerts Stores to iPhone Duo's Display Cracking Issue

Friday October 30, 2026 3:20 pm PDT by
In a memo shared with Apple Stores and Apple Authorized Service Providers this week, and later obtained by MacRumors, Apple provided technicians with guidance on how to diagnose and address the iPhone Duo's inner display cracking issue. If a customer reports the issue, Apple advised technicians to inspect the iPhone Duo and repair or replace it in accordance with their standard procedures....
Everything New Your iPhone Can Do on iOS 27

14 New Things Your iPhone Can Do in iOS 27.2

Friday October 30, 2026 12:42 pm PDT by
Apple released iOS 27.2 on October 26, bringing enhancements to Siri AI, adding Suggestions in Messages, and sneaking in a string of smaller additions across Photos, Podcasts, Games, Apple TV, and FaceTime. iOS 27.2 is available to download to your device now via Settings ➝ General ➝ Software Update. Note that some features may not be available in all regions or on all iPhone models....
Pinched iPad Mini

Apple Avoids Showing Pinched Fingers on iPad Mini Page in South Korea

Thursday October 29, 2026 11:52 am PDT by
In the U.S. and most other countries, Apple's website shows the new iPad mini being held by pinched fingers, but this is not the case in South Korea. The new iPad mini shown with pinched fingers on Apple's website in the U.S. On its South Korean website, Apple simply shows an image of the iPad mini on its own. The new iPad mini shown without pinched fingers on Apple's website in South Korea ...
Latest Stories
Nearly Every M5 MacBook Air Now $200 Off on Amazon
Nearly Every M5 MacBook Air Now $200 Off on Amazon
14 hours ago
Apple's HomeView Ships With Six-Month-Old Software
Apple's HomeView Ships With Six-Month-Old Software
16 hours ago
Three New iPads Rumored to Launch in First Half of 2027
Three New iPads Rumored to Launch in First Half of 2027
16 hours ago
Apple Offers Steps to Fix Daylight Saving Time Bug on Apple Watch
Apple Offers Steps to Fix Daylight Saving Time Bug on Apple Watch
20 hours ago
Apple Watch Ultra 4 Hits All-Time Low Price With Amazon's $99 Discount
Apple Watch Ultra 4 Hits All-Time Low Price With Amazon's $99 Discount
2 days ago
Reminder: Apple's Big Discount on Beats 360 Ear Cushions Ends Today
Reminder: Apple's Big Discount on Beats 360 Ear Cushions Ends Today
2 days ago
Here's a New Tour of Apple's HomeView Software
Here's a New Tour of Apple's HomeView Software
2 days ago
Apple Reveals New iPad Mini's Battery Capacity
Apple Reveals New iPad Mini's Battery Capacity
2 days ago
Top Stories: Apple's Big MacBook Pro, iPad mini and iMac Updates
Top Stories: Apple's Big MacBook Pro, iPad mini and iMac Updates
2 days ago
'Pluribus' Season 2 Reportedly Starts Production Today
'Pluribus' Season 2 Reportedly Starts Production Today
2 days ago
iPhone 18 Pro Sales Surge in China, Offsetting Decline in U.S. and Japan
iPhone 18 Pro Sales Surge in China, Offsetting Decline in U.S. and Japan
2 days ago
HomeView Software 27.2: Wallpapers, Control Center, and More
HomeView Software 27.2: Wallpapers, Control Center, and More
2 days ago
Apple Alerts Stores to iPhone Duo's Display Cracking Issue
Apple Alerts Stores to iPhone Duo's Display Cracking Issue
2 days ago
iOS 27.3 Will Enable These Apple Intelligence Features in China
iOS 27.3 Will Enable These Apple Intelligence Features in China
2 days ago
Apple Says iOS 27.3 Beta Coming Next Week
Apple Says iOS 27.3 Beta Coming Next Week
2 days ago
Apple's Flash Storage Suppliers Are Finally 'Getting Their Revenge'
Apple's Flash Storage Suppliers Are Finally 'Getting Their Revenge'
2 days ago
14 New Things Your iPhone Can Do in iOS 27.2
14 New Things Your iPhone Can Do in iOS 27.2
2 days ago
iPhone Duo Review: One Week Later
iPhone Duo Review: One Week Later
3 days ago
Samsung Mocks iPhone Duo Display Cracks in New Ad Campaign
Samsung Mocks iPhone Duo Display Cracks in New Ad Campaign
3 days ago
The MacRumors Show: OLED MacBook Pro, iPad Mini 8, and More
The MacRumors Show: OLED MacBook Pro, iPad Mini 8, and More
3 days ago
MacBook Pro With Touch Display: 15 More Details Revealed
MacBook Pro With Touch Display: 15 More Details Revealed
3 days ago
Russia Places Apple on State Surveillance Registry
Russia Places Apple on State Surveillance Registry
3 days ago
Halloween Weekend Brings Discounts on Apple Accessories and Pre-Orders
Halloween Weekend Brings Discounts on Apple Accessories and Pre-Orders
3 days ago
Apple Has Released More Than 25 New Products in the Past Two Months
Apple Has Released More Than 25 New Products in the Past Two Months
3 days ago
Local Code Launches as Free, Private AI Assistant Tool for Mac
Local Code Launches as Free, Private AI Assistant Tool for Mac
3 days ago
Apple Acquires Ascend.io
Apple Acquires Ascend.io
3 days ago
HomePod Mini 2 Launches Today: All the New Features
HomePod Mini 2 Launches Today: All the New Features
3 days ago
AirTag 2 4-Pack Drops to New Low Price of $69.99
AirTag 2 4-Pack Drops to New Low Price of $69.99
3 days ago
Rian Johnson's iPhone Camera App Goes Viral
Rian Johnson's iPhone Camera App Goes Viral
3 days ago
Where Did All the iPhone Duos Go? Mostly to Apple's Stores
Where Did All the iPhone Duos Go? Mostly to Apple's Stores
3 days ago