Skip to main content

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 121))

Abstract

Automatic age and gender classification has been widely used in a large amount of applications, particularly in human–computer interaction, biometrics, visual surveillance, electronic customer and commercial applications. Predicting age and gender of humans is very difficult and complicated. Since the increase in use of social media, autonomous prediction of age and gender has become extremely important. Nevertheless, performance of the existing methods on real-world images is still significantly lacking, especially when compared to the tremendous leaps in performance recently reported for the related task of face recognition. In this research paper, we have observed an increase in the performance on these tasks by using convolutional neural networks (CNN). We collected a dataset from ‘Google’ and ‘IMFDB.’ This dataset consisted of about 100,000 images of male and female of different age-groups (5–60). We created a CNN network adjoining the fully connected network using ‘Keras’ library. Following that, three convoluted layers were inserted; the first layer consisting of 64 neurons and window of 7 × 7, followed by a ReLU activation layer and a max-pooling layer of 2 × 2. Two more CNN layers of 100 and 64 neurons were inserted, followed by windows of 5 × 5 and 3 × 3, respectively, with activation function as ReLU. An output was received in matrix form which was flattened using a flatten layer. The layer was then fed to fully connected layers with 64 and 1 neurons each. The final output layer consisted of a single neuron with sigmoid activation function.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Setty, S., Husain, M., Beham, P., Gudavalli, J., Kandasamy, M., Vaddi, R., Hemadri, V., Karure, J.C., Raju, R., Rajan, B., Kumar, V., Jawahar, C.V.: Indian movie face database: a benchmark for face recognition under wide variations. In: National Conference on Computer Vision, Pattern Recognition, Image Processing and Graphics (NCVPRIPG) (2013)

    Google Scholar 

  2. Medical daily picture. https://www.medicaldaily.com/how-sell-anything-anyone-hair-color-body-type-and-race-decide-consumer-behavior-327050

  3. Emami, S., Suciu, V.: Facial recognition using OpenCV. J. Mob. Embed. Distrib. Syst

    Google Scholar 

  4. Fu, Y., Guo, G., Huang, T.S., Fu, Y., Guo, G., Huang, T.S.: IEEE Conference (2010)

    Google Scholar 

  5. Han, H., Otto, C., Liu, X., Jain, A.K.: Demographic estimation from face images: human vs. machine performance (2015)

    Google Scholar 

  6. Toshev, A., Szegedy, C.: Deeppose: human pose estimation via deep neural networks. In: IEEE Conference (2014)

    Google Scholar 

  7. Luo, P., Wang, X., Tang, X.: Hierarchical face parsing via deep learning. In: IEEE Conference Computer Vision

    Google Scholar 

  8. Sun, Y., Wang, X., Tang, X.: Deep convolutional network cascade for facial point detection. In: The Process Conference Computer Vision Pattern Recognition, pp. 3476–3483 (2015)

    Google Scholar 

  9. Graves, A., Mohammed, A.R., Hinton, G.: Speech recognition with deep recurrent neural networks. In: IEEE Conference on Acoutic, Speech and Signal Processing (ICASSP) (2013)

    Google Scholar 

  10. Karpathy, A., Toderici, G., Shetty, S., Leung, T., Sukthankar, R., Fei-Fei, L.: Large-scale video classification with convolutional neural netwoks. In: IEEE, pp. 1725–1732 (2014)

    Google Scholar 

  11. Golomb, B.A., Lawrence, D.T., Sejnowski, T.J.: Sexnet: a neural network identifies sex from human faces. In: Neural Information Processing Systems (1990)

    Google Scholar 

  12. O’toole, A.J., Vetter, T., Troje, N.F., Bulthoff, H.H. et al.: Sex classification is better with three-dimensional head structure than with image intensity information (1997)

    Google Scholar 

  13. Soo, s.: Object detection using haar-cascade classifier (2014)

    Google Scholar 

  14. Chao, S.E., Lee, Y.J., Lee, S.j., Park, K.R., Kim, J.: Age estimation using a hierarchial classifier based on global and local features, pattern recognition (2011)

    Google Scholar 

  15. Eidinger, E., Enbar, R., Hassner, T.: Age and gender estimation of unfiltered faces (2014)

    Google Scholar 

  16. Sun, Y., Wang, X., Tang, X.: Deep convolutional network cascade for facial point detection. In: The Process Conference Computer Vision Pattern Recognition, pp. 3476–3483 (2013)

    Google Scholar 

  17. Towardsdatascience.com: https://towardsdatascience.com/a-comprehensive-guide-to-convolutional-neural-networks-the-eli5-way-3bd2b1164a53

  18. Thakur, S., Verma, L.: Age identification of facial images using neural network

    Google Scholar 

  19. Researchgate.net: https://www.researchgate.net/figure/Illustration-of-Convolutional-Neural-Network-CNN-Architecture_fig3_322477802

  20. Wikipedia.org: https://upload.wikimedia.org/wikipedia/commons/3/33/Beyoglu_4671_tricolor.png

  21. Medium.com: https://medium.com/@danqing/a-practical-guide-to-relu-b83ca804f1f7

  22. computersciencewiki.org: https://computersciencewiki.org/index.php/File:MaxpoolSample2.png

  23. Towardsdatascience.com: https://towardsdatascience.com/activation-functions-neural-networks-1cbd9f8d91d6

  24. Towardsdatascience.com: https://towardsdatascience.com/adam-latest-trends-in-deep-learning-optimization-6be9a291375c

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kunal Jain .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Jain, K., Chawla, M., Gadhwal, A., Jain, R., Nagrath, P. (2020). Age and Gender Prediction Using Convolutional Neural Network. In: Singh, P., Pawłowski, W., Tanwar, S., Kumar, N., Rodrigues, J., Obaidat, M. (eds) Proceedings of First International Conference on Computing, Communications, and Cyber-Security (IC4S 2019). Lecture Notes in Networks and Systems, vol 121. Springer, Singapore. https://doi.org/10.1007/978-981-15-3369-3_19

Download citation

Publish with us

Policies and ethics