SlideShare a Scribd company logo
1 of 20
Download to read offline
Algorytm do automatycznej
 klasyfikacji wyrazu twarzy



        Łukasz Wojciech Pełszyński


    Promotor: dr hab. inż. Khalid Saeed, prof. AGH
Cel pracy




Celem pracy było zbadanie problemów napotykanych przy
projektowaniu i implementacji systemu, który może dokony-
wać automatycznej klasyfikacji wyrazów twarzy.
Emocje

➲   Procesy psychiczne,
    nadające wrażeniom
    subiektywne właściwości.
Emocje c.d.

➲   Procesy psychiczne,
    nadające wrażeniom
    subiektywne właściwości.
➲   38% treści komunikatu
    stanowi ton głosu, 55%
    mimika twarzy, gesty
    oraz postawa a jedynie
    7% słowa.
Automatyczna analiza
             wyrazów twarzy

➲   Zastosowania:
    ●    Nowoczesne interfejsy
            użytkownika
    ●    Robotyka
    ●    Badania behawioralne:
        ● Psychologia
        ● Marketing
Założenia

➲   Analiza twarzy widzianej
    z przodu.
➲   Twarz osoby o dowolnym
    pochodzeniu etnicznym.
➲   Dopuszczalne lekkie
    obroty i przesunięcia
    głowy.
Działanie aplikacji



           Znalezienie
Wykrycie
           położenia     Klasyfikacja
twarzy
           cech twarzy
Wykrycie twarzy

         ➲   Konwersja do skali
             szarości.
         ➲   Znalezienie twarzy w
             obrazie:
             ●   Viola-Jones Face Detector
         ➲   Wycięcie twarzy i
             przeskalowanie do
             rozmiaru 240x240 pikseli.
Znalezienie cech twarzy

             ➲   Algorytm bazujący na
                 rezprezentacjach obrazu
                 w przestrzeni Gabora.
             ➲   Reprezentacja piksela 49
                 wymiarowa:
                 ●   48 reprezentacji Gabora,
                 ●   1 w skali szarości.
Filtr Gabora




90 stopni      45 stopni   0 stopni
Znalezienie cech twarzy c.d.

➲   Skanowanie obrazu
    klasyfikatorem 17x17
    pikseli w obszarach zain-
    teresowania.
➲   Szukana cecha znajduje
    się w miejscu o najwięk-
    szej wartości odpowiedzi
    klasyfikatora.
Znalezienie cech twarzy c.d.
Budowanie klasyfikatora

➲   Utworzenie mocnego
    klasyfikatora z prostych
    funkcji decyzyjnych.
➲   Algorytm GentleBoost:
    ●   mniejsza czułość na ob-
           serwacje odstające i
           szum niż AdaBoost,
    ●   większa niż w AdaBoost
           zdolność uogólniania.
Uczenie klasyfikatorów
Klasyfikacja

            ➲   Algorytm k-NN.
            ➲   Przestrzeń wzorców zbu-
                dowana na podstawie
                bazy JAFFE.
            ➲   Klasyfikacja do jednej z 6
  k-NN          podstawowych emocji:
                ●   Strach
                ●   Smutek
                ●   Zaskoczenie
                ●   Radość
                ●   Gniew
                ●   Obrzydzenie
happiness
Użyte technologie

➲   Języki programowania:
    ●   C++
    ●   Ruby
➲   Biblioteki:
    ●   OpenCV
    ●   RMagick
Wyniki




Etykieta       Gniew     Radość   Zaskoczenie

Wynik          Smutek    Radość   Smutek
klasyfikacji
Wyniki




Etykieta       Smutek    Strach   Obrzydzenie

Wynik          Smutek    Smutek   Smutek
klasyfikacji
Dziękuję za uwagę
Literatura

1. J. M. Rehg, M. Loughlin, K. Waters „Vision for a Smart Kiosk”, Czerwiec 1997,
Computer Vision and Pattern Recognition, 690-696.
2. M. Pantic, L. J. M. Rothkrantz „Automatic Analysis of Facial Expressions: The
State of the Art”, Grudzień 2000, IEEE Transactions on pattern analysis and
machine intelligence, vol. 22, no. 12, 1424-1443.
3. „Emotions” [Online; dostęp 17-01-2010], Dostępny w Internecie:
http://changingminds.org/explanations/emotions/emotions.htm
4. P. Viola, M. Jones „Rapid Object Detection using a Boosted Cascade of Simple
Features ”, 2001, Conference on computer vision and pattern recognition.
5. K. Saeed, P. Charkiewicz „Experimental Criterion for Face Classification” [w:]
Enhancement Methods in Computer Security – Biometric and Artificial
Intelligence Systems, Springer Science + Business Media, New York, USA, 2004,
195-202
6. K. Saeed „Minimal-Eigenvalue-Based Face Feature Descriptor” [w:] Issues in
Intelligent Systems Models and Techniques. Institute of System Research, Polish
Academy of Sciences, Akademicka Oficyna Wydawnicza EXIT, Warsaw, Poland,
2005, 185-196
7. „Tutorial on Gabor filters” [Online; dostęp 17-01-2010], Dostępny w Internecie:
http://mplab.ucsd.edu/tutorials/gabor.pdf
8. D. Vukadanovic, M. Pantic, „Fully Automatic Facial Feature Point Detection Using
Gabor Feature Based Boosted Classifiers”, Październik 2005, IEEE International
Conference on Systems, Man and Cybernetics
9. D. Hand, H. Mannila, P. Smyth “Eksploracja danych”, WNT, Warszawa 2005
10. „JAFFE Database” [Online; dostęp 17-01-2010], Dostępny w Internecie:
http://kasrl.org/jaffe.html

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Emotion recognition, BSc dissertation

  • 1. Algorytm do automatycznej klasyfikacji wyrazu twarzy Łukasz Wojciech Pełszyński Promotor: dr hab. inż. Khalid Saeed, prof. AGH
  • 2. Cel pracy Celem pracy było zbadanie problemów napotykanych przy projektowaniu i implementacji systemu, który może dokony- wać automatycznej klasyfikacji wyrazów twarzy.
  • 3. Emocje ➲ Procesy psychiczne, nadające wrażeniom subiektywne właściwości.
  • 4. Emocje c.d. ➲ Procesy psychiczne, nadające wrażeniom subiektywne właściwości. ➲ 38% treści komunikatu stanowi ton głosu, 55% mimika twarzy, gesty oraz postawa a jedynie 7% słowa.
  • 5. Automatyczna analiza wyrazów twarzy ➲ Zastosowania: ● Nowoczesne interfejsy użytkownika ● Robotyka ● Badania behawioralne: ● Psychologia ● Marketing
  • 6. Założenia ➲ Analiza twarzy widzianej z przodu. ➲ Twarz osoby o dowolnym pochodzeniu etnicznym. ➲ Dopuszczalne lekkie obroty i przesunięcia głowy.
  • 7. Działanie aplikacji Znalezienie Wykrycie położenia Klasyfikacja twarzy cech twarzy
  • 8. Wykrycie twarzy ➲ Konwersja do skali szarości. ➲ Znalezienie twarzy w obrazie: ● Viola-Jones Face Detector ➲ Wycięcie twarzy i przeskalowanie do rozmiaru 240x240 pikseli.
  • 9. Znalezienie cech twarzy ➲ Algorytm bazujący na rezprezentacjach obrazu w przestrzeni Gabora. ➲ Reprezentacja piksela 49 wymiarowa: ● 48 reprezentacji Gabora, ● 1 w skali szarości.
  • 10. Filtr Gabora 90 stopni 45 stopni 0 stopni
  • 11. Znalezienie cech twarzy c.d. ➲ Skanowanie obrazu klasyfikatorem 17x17 pikseli w obszarach zain- teresowania. ➲ Szukana cecha znajduje się w miejscu o najwięk- szej wartości odpowiedzi klasyfikatora.
  • 13. Budowanie klasyfikatora ➲ Utworzenie mocnego klasyfikatora z prostych funkcji decyzyjnych. ➲ Algorytm GentleBoost: ● mniejsza czułość na ob- serwacje odstające i szum niż AdaBoost, ● większa niż w AdaBoost zdolność uogólniania.
  • 15. Klasyfikacja ➲ Algorytm k-NN. ➲ Przestrzeń wzorców zbu- dowana na podstawie bazy JAFFE. ➲ Klasyfikacja do jednej z 6 k-NN podstawowych emocji: ● Strach ● Smutek ● Zaskoczenie ● Radość ● Gniew ● Obrzydzenie happiness
  • 16. Użyte technologie ➲ Języki programowania: ● C++ ● Ruby ➲ Biblioteki: ● OpenCV ● RMagick
  • 17. Wyniki Etykieta Gniew Radość Zaskoczenie Wynik Smutek Radość Smutek klasyfikacji
  • 18. Wyniki Etykieta Smutek Strach Obrzydzenie Wynik Smutek Smutek Smutek klasyfikacji
  • 20. Literatura 1. J. M. Rehg, M. Loughlin, K. Waters „Vision for a Smart Kiosk”, Czerwiec 1997, Computer Vision and Pattern Recognition, 690-696. 2. M. Pantic, L. J. M. Rothkrantz „Automatic Analysis of Facial Expressions: The State of the Art”, Grudzień 2000, IEEE Transactions on pattern analysis and machine intelligence, vol. 22, no. 12, 1424-1443. 3. „Emotions” [Online; dostęp 17-01-2010], Dostępny w Internecie: http://changingminds.org/explanations/emotions/emotions.htm 4. P. Viola, M. Jones „Rapid Object Detection using a Boosted Cascade of Simple Features ”, 2001, Conference on computer vision and pattern recognition. 5. K. Saeed, P. Charkiewicz „Experimental Criterion for Face Classification” [w:] Enhancement Methods in Computer Security – Biometric and Artificial Intelligence Systems, Springer Science + Business Media, New York, USA, 2004, 195-202 6. K. Saeed „Minimal-Eigenvalue-Based Face Feature Descriptor” [w:] Issues in Intelligent Systems Models and Techniques. Institute of System Research, Polish Academy of Sciences, Akademicka Oficyna Wydawnicza EXIT, Warsaw, Poland, 2005, 185-196 7. „Tutorial on Gabor filters” [Online; dostęp 17-01-2010], Dostępny w Internecie: http://mplab.ucsd.edu/tutorials/gabor.pdf 8. D. Vukadanovic, M. Pantic, „Fully Automatic Facial Feature Point Detection Using Gabor Feature Based Boosted Classifiers”, Październik 2005, IEEE International Conference on Systems, Man and Cybernetics 9. D. Hand, H. Mannila, P. Smyth “Eksploracja danych”, WNT, Warszawa 2005 10. „JAFFE Database” [Online; dostęp 17-01-2010], Dostępny w Internecie: http://kasrl.org/jaffe.html