SlideShare a Scribd company logo
Derin Öğrenme ile Evrişimli Sinir
Ağı Kullanılarak (CNN) Yüz
Maskesi Tespiti
Öğrenci: MSc Dilshod Kholdorov
Öğretmen: Prof.Dr Murat Ceylan
Konya 2023
CNN nedir?
Evrişimli Sinir Ağı (CNN), biyolojik bir terim gibi gözükse de bu
mekanizma, nesne tanımada kullanılan çok etkili bir yöntemdir. Buradaki
ana fikir bir görüntüdeki nesneleri tespit etmektir. İnsanoğlu nasıl bir kedi
ile köpeği ayrı ayrı tespit edebiliyorsa, CNN yöntemi de nesneleri tespit
etmek için geliştirilmiştir. Bu çalışmada maske tanımada kullanılmak
üzere geliştirilen uygulama, maskeyi ve yüzü birer obje olarak öğrenecek,
ardından maskeli veya maskesiz olduğunu tespit edebilecektir.
2
CNN Çalışma
Prensibi
• 1.Konvolüsyonel
Katman( Convolutional
Layer)+ReLU
• 2.Havuzlama
Katman(Pooling Layer)
• 3. Düzleştirme
Katmanı(Flattening Layer)
• 4.Tam Bağlantı Katman
(Fully Conected Layer)
3
Açıklamaları
• 1.Konvolüsyonel Katman( Convolutional Layer)+ReLU
Nitelikleri belirlemek için kullanılan katman
• 2.Havuzlama Katman(Pooling Layer)​
Havuz oluşturarak fazlalığı azaltır ve uygunluğu denetler
• 3. Düzleştirme Katmanı(Flattening Layer)​
Verilerin yapay sinir ağı girişi için hazırlandığı katman
• 4.Tam Bağlantı Katman (Fully Conected Layer)​
Tam bağlı sinir ağıdır, son aşamadır
4
5
Problem Türü
Sınıflandırma Regresyon
İkili Çoklusınıf Linear
aktivasyonu
Sigmoid
aktivasyonu
Softmax
aktivasyonu
Çokluetiket
Sigmoid
aktivasyonu
Bu derste bunu kullanacağız
Doğru yada Yanlış
Uygulamamızdaki Adımlar
6
Kütüphaneler
tanımlandı
Veriyi saydırdık.0
ve 1 tanımladık
Tek bir liste ve
içerikleriyazıldı
Resim okundu(0 ,1)
ve ekrana
görüntülendi
0 ve 1 önişleyerek RGB
tutarlı formata
dönüştürüldü tek veri
listesine saklandı
Veriyi model geliştirme
ve değerlendirme için
ayrı eğitim ve test
setlerine bölündü.
CNN mimarisi
tanımlandı
Optimizasyon
(hata azaltma) ve
Metrikler belirlendi
10 epok boyunca
eğitildi 0,1 fark
etmeyi öğrendi
Model ve metrikler
değerlendirilip
eğitim sürecine
anlayış sağlandı
Yen veri girilerek
test edildi
Veriyi Okumak ve Bu Resim Üzerinden
Eğitmek
7
Epochlar egitilmesi
8
Kayıblar
9
Maskeli veyamaskesiz tespit için eğittiğimiz EvrişimliSinir
Ağı'nda (CNN), eğitim kaybının azalması ve doğrulama
kaybının artması, modelinöğrenme sürecini gösteren
grafiklerdir.Eğitimkaybınınazalması,modelineğitim
verilerini etkili bir şekilde öğrendiğini işaretederken,
doğrulama kaybının artması,modelingenelleme
yeteneğini sürdürdüğünü gösterir.Bu eğilimler,modelin
maskeli ve maskesiz durumları başarıylaayırt etme
yeteneğini yansıtmaktadır
Dogruluk
10
Maskeli veyamaskesiz tespit için eğittiğimiz CNN'in
eğitim ve doğrulama doğruluk grafiği,modelinbaşarısını
yansıtmaktadır.Eğitim doğruluğu zamanla bir şekile
yakın artmaktadır, bu da modelinverileri başarılı bir
şekilde öğrendiğini gösterir.Doğrulamadoğruluğu da
benzer bir trendi takip eder, bu da modelingörünmeyen
verilere de iyi genellemeyaptığını gösterir.Eğitim ve
doğrulama doğrulukları arasındaki uyum, modelin
maskenin varlığı veyayokluğuylailgilidesenleri etkili bir
şekilde yakaladığını ve aşırı uyum olmadığını gösterir.
Metrik Sonuçları
11
Sonuç
12
Sonuç
13
Kullanılan Kaynaklar
14
1. https://www.kaggle.com
2. https://developersbreach.com/convolution-neural-network-deep-learning/
3. https://dergipark.org.tr/
4. https://tez.yok.gov.tr/
5. Yüz analizine dayalı derin öğrenme tabanlı bir ilgi tespit sisteminin
gerçekleştirilmesi (Gözde Yolcu Öztel, 2019)
6. Koronavirüse karşı yüz maskesi tespitinin derin öğrenme yöntemleri
kullanılarakincelenmesi (Dr. Öğr. Üyesi İsmail Akgül, 2020)
7. Face Mask Detection Using Deep Convolutional Neural Network and
MobileNetV2-BasedTransfer Learning (Dostdar Hussain, 2022)
Teşekkürler

More Related Content

Featured

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
Neil 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 2024
Albert 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 Insights
Kurio // 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 2024
Search 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 summary
SpeakerHub
 
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 Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit 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 management
MindGenius
 
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
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
 

Featured (20)

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...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Derin öğrenme ile CNN kullanarak yüz maske tespiti

  • 1. Derin Öğrenme ile Evrişimli Sinir Ağı Kullanılarak (CNN) Yüz Maskesi Tespiti Öğrenci: MSc Dilshod Kholdorov Öğretmen: Prof.Dr Murat Ceylan Konya 2023
  • 2. CNN nedir? Evrişimli Sinir Ağı (CNN), biyolojik bir terim gibi gözükse de bu mekanizma, nesne tanımada kullanılan çok etkili bir yöntemdir. Buradaki ana fikir bir görüntüdeki nesneleri tespit etmektir. İnsanoğlu nasıl bir kedi ile köpeği ayrı ayrı tespit edebiliyorsa, CNN yöntemi de nesneleri tespit etmek için geliştirilmiştir. Bu çalışmada maske tanımada kullanılmak üzere geliştirilen uygulama, maskeyi ve yüzü birer obje olarak öğrenecek, ardından maskeli veya maskesiz olduğunu tespit edebilecektir. 2
  • 3. CNN Çalışma Prensibi • 1.Konvolüsyonel Katman( Convolutional Layer)+ReLU • 2.Havuzlama Katman(Pooling Layer) • 3. Düzleştirme Katmanı(Flattening Layer) • 4.Tam Bağlantı Katman (Fully Conected Layer) 3
  • 4. Açıklamaları • 1.Konvolüsyonel Katman( Convolutional Layer)+ReLU Nitelikleri belirlemek için kullanılan katman • 2.Havuzlama Katman(Pooling Layer)​ Havuz oluşturarak fazlalığı azaltır ve uygunluğu denetler • 3. Düzleştirme Katmanı(Flattening Layer)​ Verilerin yapay sinir ağı girişi için hazırlandığı katman • 4.Tam Bağlantı Katman (Fully Conected Layer)​ Tam bağlı sinir ağıdır, son aşamadır 4
  • 5. 5 Problem Türü Sınıflandırma Regresyon İkili Çoklusınıf Linear aktivasyonu Sigmoid aktivasyonu Softmax aktivasyonu Çokluetiket Sigmoid aktivasyonu Bu derste bunu kullanacağız Doğru yada Yanlış
  • 6. Uygulamamızdaki Adımlar 6 Kütüphaneler tanımlandı Veriyi saydırdık.0 ve 1 tanımladık Tek bir liste ve içerikleriyazıldı Resim okundu(0 ,1) ve ekrana görüntülendi 0 ve 1 önişleyerek RGB tutarlı formata dönüştürüldü tek veri listesine saklandı Veriyi model geliştirme ve değerlendirme için ayrı eğitim ve test setlerine bölündü. CNN mimarisi tanımlandı Optimizasyon (hata azaltma) ve Metrikler belirlendi 10 epok boyunca eğitildi 0,1 fark etmeyi öğrendi Model ve metrikler değerlendirilip eğitim sürecine anlayış sağlandı Yen veri girilerek test edildi
  • 7. Veriyi Okumak ve Bu Resim Üzerinden Eğitmek 7
  • 9. Kayıblar 9 Maskeli veyamaskesiz tespit için eğittiğimiz EvrişimliSinir Ağı'nda (CNN), eğitim kaybının azalması ve doğrulama kaybının artması, modelinöğrenme sürecini gösteren grafiklerdir.Eğitimkaybınınazalması,modelineğitim verilerini etkili bir şekilde öğrendiğini işaretederken, doğrulama kaybının artması,modelingenelleme yeteneğini sürdürdüğünü gösterir.Bu eğilimler,modelin maskeli ve maskesiz durumları başarıylaayırt etme yeteneğini yansıtmaktadır
  • 10. Dogruluk 10 Maskeli veyamaskesiz tespit için eğittiğimiz CNN'in eğitim ve doğrulama doğruluk grafiği,modelinbaşarısını yansıtmaktadır.Eğitim doğruluğu zamanla bir şekile yakın artmaktadır, bu da modelinverileri başarılı bir şekilde öğrendiğini gösterir.Doğrulamadoğruluğu da benzer bir trendi takip eder, bu da modelingörünmeyen verilere de iyi genellemeyaptığını gösterir.Eğitim ve doğrulama doğrulukları arasındaki uyum, modelin maskenin varlığı veyayokluğuylailgilidesenleri etkili bir şekilde yakaladığını ve aşırı uyum olmadığını gösterir.
  • 14. Kullanılan Kaynaklar 14 1. https://www.kaggle.com 2. https://developersbreach.com/convolution-neural-network-deep-learning/ 3. https://dergipark.org.tr/ 4. https://tez.yok.gov.tr/ 5. Yüz analizine dayalı derin öğrenme tabanlı bir ilgi tespit sisteminin gerçekleştirilmesi (Gözde Yolcu Öztel, 2019) 6. Koronavirüse karşı yüz maskesi tespitinin derin öğrenme yöntemleri kullanılarakincelenmesi (Dr. Öğr. Üyesi İsmail Akgül, 2020) 7. Face Mask Detection Using Deep Convolutional Neural Network and MobileNetV2-BasedTransfer Learning (Dostdar Hussain, 2022)