SlideShare a Scribd company logo
1 of 18
CV-based Customer
Profiling Model
CONTENTS
1. Abstract
2. Introduction
3. Technologies used
4. Flowchart
5. Procedure
6. Applications
7. Output
8. Future scope
9. Conclusion
1
TECHNOLOGY STACK
 PYTHON
 JUPYTER NOTEBOOK (ANACONDA)
 PYCHARM
 Libraries included:
> OpenCV (Image Detection)
> Pandas & NumPy (Data Cleaning)
> Matplotlib and Seaborn(Data Visualization)
 Computer neural network(CNN)
3
INTRODUCTION
▸ Facial analysis from images has gained a lot of interest because it helps in several
different problems like better ad targeting for customers, better content
recommendation system, security surveillance, and other fields as well.
▸ Age and gender are a very important part of facial attributes and identifying them are
the very basic of facial analysis and a required step for such tasks.
▸ Many companies are using these kinds of tools for different purposes making it easier
for them to work with customers, cater to their needs better and create a great
experience for them.
4
INTRODUCTION
5
“
6
STEPS INVOLVED
Detect faces: When given a frame/video, the CNN algorithm first detects for
faces in each frame. Classify into Male/Female : Once it finds faces in the
frame, the features of the faces are extracted, and the gender is determined
using second layer of CNN.
•Classify into one of the 8 age ranges: In the third layer of CNN, the age of
the faces is determined and falls under either of the 8 age ranges [ (0-2), (4-
6), (8-12), (15-20), (25 – 32), (38-43), (48-53), (60-100)]
•Put the results on the frame and display it: the result is displayed on the
frame containing the age range and gender using OpenCV. The resulting
frame consists of a square box around the faces with the estimated gender
and age.
7
PROCEDURE
→The Dataset
• For this python project, we'll use the Adience dataset; the dataset is available in the public
domain and you can find it. For this python project, we'll use the Adience dataset; the
dataset is available in the public domain and you can find it here. This dataset serves as a
benchmark for face photos and is inclusive of various real-world imaging conditions like
noise, lighting, pose, and appearance.
The images have been collected from Flickr albums and distributed under the Creative
Commons (CC) license. It has a total of 26,580 photos of 2,284 subjects in eight age ranges
(as mentioned above) and is about IGB in size.The models we will use have been trained on
this dataset This dataset serves as a benchmark for face photos and is inclusive of various
real-world imaging conditions like noise, lighting, pose, and appearance.
The images have been collected from Flickr albums and distributed under the Creative
Commons (CC) license. It has a total of 26,580 photos of 2,284 subjects in eight age ranges
(as mentioned above) and is about 1GB in size.
8
PROCEDURE
The models we will use have been trained on this dataset.→ We use the argparse library to
create an argument parser so we can get the frame argument from the command prompt.
We make it parse the argument holding the path to the frame to classify gender and age for.
→ For face, age, and gender, initialize protocol buffer and model.→ Initialize the mean
values for the model and the lists of age ranges and genders to classify from. Now, use the
readNet0 method to load the networks. The first parameter holds trained weights and the
second carries network configuration.→ We make a call to the highlightFace0 function with
the faceNet and frame parameters, and what this returns, we will store in the names
resultImg and faceBoxes. And if we got 0 face Boxes, it means there was no face to detect.
9
PROCEDURE
10
APPLICATIONS
QUIVIDI- A.I. SOFTWARE APPLICATION
IN INTELLIGENT VIDEO ANALYSIS
FORENSIC FIELD
11
OUTPUT
12
OUTPUT
13
OUTPUT
14
OUTPUT
15
FUTUTRE SCOPE
16
 In cameras, this project is effective for detecting faces and age gaps and
program can also be used to recognize faces using a CCTV camera.
 In Real Time Incident Monitoring System can only detect the face, gender
and age according to the defined rules but it still requires more training.
 Some future improvements can be made to this project. To improve the
accuracy, a dataset with more number of images can be given.
 The algorithm can be improved to an extent where it can be able to
process and give the desired result on images with disturbances like lack
of clarity, a different angle, or any kind of accessories on the face. For
example, if the person is wearing sunglasses, or has makeup on the face,
the algorithm will be able to give the desired result.
CONCLUSION
17
We have implemented a CNN to detect gender and age from a single
picture of a face.
The performance of this system can be improved marginally by using
more training data images. There is less availability of labeled images
for age and gender, but CNN can still improve its performance.
As it is difficult to accurately guess an exact age from a single image
because of factors like makeup, lighting, obstructions, and facial
expressions.
18
THANKS!
Any questions?
You can find me at:
▸ @username
▸ user@mail.me

More Related Content

Similar to Machine Learning Model for Gender Detection

Similar to Machine Learning Model for Gender Detection (20)

HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNINGHANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
 
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNINGHANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
 
A Literature Survey on Image Linguistic Visual Question Answering
A Literature Survey on Image Linguistic Visual Question AnsweringA Literature Survey on Image Linguistic Visual Question Answering
A Literature Survey on Image Linguistic Visual Question Answering
 
IRJET- Drive Assistance an Android Application for Drowsiness Detection
IRJET- Drive Assistance an Android Application for Drowsiness DetectionIRJET- Drive Assistance an Android Application for Drowsiness Detection
IRJET- Drive Assistance an Android Application for Drowsiness Detection
 
Realtime Face mask Detector using YoloV4
Realtime Face mask Detector using YoloV4Realtime Face mask Detector using YoloV4
Realtime Face mask Detector using YoloV4
 
IRJET - Blind Guidance using Smart Cap
IRJET - Blind Guidance using Smart CapIRJET - Blind Guidance using Smart Cap
IRJET - Blind Guidance using Smart Cap
 
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
 
Operationalizing Machine Learning (Rajeev Dutt, CEO, Co-Founder, DimensionalM...
Operationalizing Machine Learning (Rajeev Dutt, CEO, Co-Founder, DimensionalM...Operationalizing Machine Learning (Rajeev Dutt, CEO, Co-Founder, DimensionalM...
Operationalizing Machine Learning (Rajeev Dutt, CEO, Co-Founder, DimensionalM...
 
IRJET- Autonamy of Attendence using Face Recognition
IRJET- Autonamy of Attendence using Face RecognitionIRJET- Autonamy of Attendence using Face Recognition
IRJET- Autonamy of Attendence using Face Recognition
 
Detection of medical instruments project- PART 1
Detection of medical instruments project- PART 1Detection of medical instruments project- PART 1
Detection of medical instruments project- PART 1
 
IMAGE CAPTION GENERATOR USING DEEP LEARNING
IMAGE CAPTION GENERATOR USING DEEP LEARNINGIMAGE CAPTION GENERATOR USING DEEP LEARNING
IMAGE CAPTION GENERATOR USING DEEP LEARNING
 
IRJET- Automated Criminal Identification System using Face Detection and Reco...
IRJET- Automated Criminal Identification System using Face Detection and Reco...IRJET- Automated Criminal Identification System using Face Detection and Reco...
IRJET- Automated Criminal Identification System using Face Detection and Reco...
 
Detection of medical instruments project- PART 2
Detection of medical instruments project- PART 2Detection of medical instruments project- PART 2
Detection of medical instruments project- PART 2
 
IRJET- Computerized Attendance System using Face Recognition
IRJET- Computerized Attendance System using Face RecognitionIRJET- Computerized Attendance System using Face Recognition
IRJET- Computerized Attendance System using Face Recognition
 
IRJET- Computerized Attendance System using Face Recognition
IRJET- Computerized Attendance System using Face RecognitionIRJET- Computerized Attendance System using Face Recognition
IRJET- Computerized Attendance System using Face Recognition
 
Neural network
Neural networkNeural network
Neural network
 
A guide to Face Detection in Python.pdf
A guide to Face Detection in Python.pdfA guide to Face Detection in Python.pdf
A guide to Face Detection in Python.pdf
 
DROWSINESS DETECTION MODEL USING PYTHON
DROWSINESS DETECTION MODEL USING PYTHONDROWSINESS DETECTION MODEL USING PYTHON
DROWSINESS DETECTION MODEL USING PYTHON
 
IRJET- Face Recognition using Landmark Estimation and Convolution Neural Network
IRJET- Face Recognition using Landmark Estimation and Convolution Neural NetworkIRJET- Face Recognition using Landmark Estimation and Convolution Neural Network
IRJET- Face Recognition using Landmark Estimation and Convolution Neural Network
 
Automated Face Detection System
Automated Face Detection SystemAutomated Face Detection System
Automated Face Detection System
 

Recently uploaded

原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 
原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证
pwgnohujw
 
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
zifhagzkk
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
yulianti213969
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
如何办理加州大学伯克利分校毕业证(UCB毕业证)成绩单留信学历认证
如何办理加州大学伯克利分校毕业证(UCB毕业证)成绩单留信学历认证如何办理加州大学伯克利分校毕业证(UCB毕业证)成绩单留信学历认证
如何办理加州大学伯克利分校毕业证(UCB毕业证)成绩单留信学历认证
a8om7o51
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
jk0tkvfv
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Stephen266013
 

Recently uploaded (20)

Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
 
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"
 
Digital Marketing Demystified: Expert Tips from Samantha Rae Coolbeth
Digital Marketing Demystified: Expert Tips from Samantha Rae CoolbethDigital Marketing Demystified: Expert Tips from Samantha Rae Coolbeth
Digital Marketing Demystified: Expert Tips from Samantha Rae Coolbeth
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
 
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancing
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
如何办理加州大学伯克利分校毕业证(UCB毕业证)成绩单留信学历认证
如何办理加州大学伯克利分校毕业证(UCB毕业证)成绩单留信学历认证如何办理加州大学伯克利分校毕业证(UCB毕业证)成绩单留信学历认证
如何办理加州大学伯克利分校毕业证(UCB毕业证)成绩单留信学历认证
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
 
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI  MANAJEMEN OF PENYAKIT TETANUS.pptMATERI  MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting Techniques
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
 

Machine Learning Model for Gender Detection

  • 2. CONTENTS 1. Abstract 2. Introduction 3. Technologies used 4. Flowchart 5. Procedure 6. Applications 7. Output 8. Future scope 9. Conclusion 1
  • 3. TECHNOLOGY STACK  PYTHON  JUPYTER NOTEBOOK (ANACONDA)  PYCHARM  Libraries included: > OpenCV (Image Detection) > Pandas & NumPy (Data Cleaning) > Matplotlib and Seaborn(Data Visualization)  Computer neural network(CNN) 3
  • 4. INTRODUCTION ▸ Facial analysis from images has gained a lot of interest because it helps in several different problems like better ad targeting for customers, better content recommendation system, security surveillance, and other fields as well. ▸ Age and gender are a very important part of facial attributes and identifying them are the very basic of facial analysis and a required step for such tasks. ▸ Many companies are using these kinds of tools for different purposes making it easier for them to work with customers, cater to their needs better and create a great experience for them. 4
  • 7. STEPS INVOLVED Detect faces: When given a frame/video, the CNN algorithm first detects for faces in each frame. Classify into Male/Female : Once it finds faces in the frame, the features of the faces are extracted, and the gender is determined using second layer of CNN. •Classify into one of the 8 age ranges: In the third layer of CNN, the age of the faces is determined and falls under either of the 8 age ranges [ (0-2), (4- 6), (8-12), (15-20), (25 – 32), (38-43), (48-53), (60-100)] •Put the results on the frame and display it: the result is displayed on the frame containing the age range and gender using OpenCV. The resulting frame consists of a square box around the faces with the estimated gender and age. 7
  • 8. PROCEDURE →The Dataset • For this python project, we'll use the Adience dataset; the dataset is available in the public domain and you can find it. For this python project, we'll use the Adience dataset; the dataset is available in the public domain and you can find it here. This dataset serves as a benchmark for face photos and is inclusive of various real-world imaging conditions like noise, lighting, pose, and appearance. The images have been collected from Flickr albums and distributed under the Creative Commons (CC) license. It has a total of 26,580 photos of 2,284 subjects in eight age ranges (as mentioned above) and is about IGB in size.The models we will use have been trained on this dataset This dataset serves as a benchmark for face photos and is inclusive of various real-world imaging conditions like noise, lighting, pose, and appearance. The images have been collected from Flickr albums and distributed under the Creative Commons (CC) license. It has a total of 26,580 photos of 2,284 subjects in eight age ranges (as mentioned above) and is about 1GB in size. 8
  • 9. PROCEDURE The models we will use have been trained on this dataset.→ We use the argparse library to create an argument parser so we can get the frame argument from the command prompt. We make it parse the argument holding the path to the frame to classify gender and age for. → For face, age, and gender, initialize protocol buffer and model.→ Initialize the mean values for the model and the lists of age ranges and genders to classify from. Now, use the readNet0 method to load the networks. The first parameter holds trained weights and the second carries network configuration.→ We make a call to the highlightFace0 function with the faceNet and frame parameters, and what this returns, we will store in the names resultImg and faceBoxes. And if we got 0 face Boxes, it means there was no face to detect. 9
  • 11. APPLICATIONS QUIVIDI- A.I. SOFTWARE APPLICATION IN INTELLIGENT VIDEO ANALYSIS FORENSIC FIELD 11
  • 16. FUTUTRE SCOPE 16  In cameras, this project is effective for detecting faces and age gaps and program can also be used to recognize faces using a CCTV camera.  In Real Time Incident Monitoring System can only detect the face, gender and age according to the defined rules but it still requires more training.  Some future improvements can be made to this project. To improve the accuracy, a dataset with more number of images can be given.  The algorithm can be improved to an extent where it can be able to process and give the desired result on images with disturbances like lack of clarity, a different angle, or any kind of accessories on the face. For example, if the person is wearing sunglasses, or has makeup on the face, the algorithm will be able to give the desired result.
  • 17. CONCLUSION 17 We have implemented a CNN to detect gender and age from a single picture of a face. The performance of this system can be improved marginally by using more training data images. There is less availability of labeled images for age and gender, but CNN can still improve its performance. As it is difficult to accurately guess an exact age from a single image because of factors like makeup, lighting, obstructions, and facial expressions.
  • 18. 18 THANKS! Any questions? You can find me at: ▸ @username ▸ user@mail.me