Machine Learning Projects for Mobile Applications
上QQ阅读APP看书,第一时间看更新

CNN Based Age and Gender Identification Using Core ML

In this chapter, we are going to build an iOS application to detect the age, gender, and emotion of a person from the camera feed or from the user's photo gallery. We will use existing data models that were built for the same purpose using the Caffe machine learning (ML) library, and convert those models into Core ML models for the ease of use in our application. We will discuss more how Convolutional Neural Networks (CNNs) work in terms of predicting age, gender, and emotion with the sample application. 

This application can be useful with multiple use cases. A few cases are as follows:

  • Finding what kind of photos you capture by parsing all the photos from your gallery
  • Understanding the customer entering a location (hospital, restaurant, and so on)
  • Figuring out the right marketing data by actually capturing emotions
  • Making cars safer by understanding the driver's emotions

There are a lot of other use cases as well. Once you improve accuracy of the data model, you can figure out more and more use cases. 

The following topics will be covered in this chapter:

  • Age, gender, and emotion prediction
  • CNNs
  • The implementation of iOS application using Core ML