Emnı̇yet kemerı̇ tespı̇tı̇ içı̇n dı̇kkat mekanı̇zması desteklı̇ derı̇n öğrenme yaklaşımı
No Thumbnail Available
Files
Date
2026
Authors
Journal Title
Journal ISSN
Volume Title
Publisher
Başkent Üniversitesi Fen Bilimleri Enstitüsü
Abstract
Emniyet kemeri kullanımının trafik kazalarındaki ölümleri azaltmadaki rolü tartışmasız olsa da, denetimin insan gözlemine dayanması bu sürecin ölçeklenmesini güçleştirmektedir. Bu tez, araç içi emniyet kemeri tespitini otomatikleştirmek için iki aşamalı Faster R-CNN mimarisini Öz-Dikkatli Üretken Çekişmeli Ağ (Self-Attention Generative Adversarial Network, SAGAN) tipi bir öz-dikkat modülüyle genişleten bir yaklaşım önermektedir. Dikkat modülü, hafif MobileNetV3-Large omurgası ile Bölge Önerme Ağı arasına ve yalnızca en derin özellik piramidi seviyesine yerleştirilerek, küresel bağlam hesaplama maliyeti sınırlı tutularak modele kazandırılmıştır. Çevrimdışı çoğaltma ile 12.980 örneğe genişletilen bir veri seti üzerinde çok katmanlı düzenlileştirme stratejisiyle eğitim yapılmış; ayrıca doğrulama kaybını yanlış yükselten bir BatchNorm değerlendirme sorunu saptanıp giderilerek metodolojik bir katkı sunulmuştur. Test kümesinde model mAP@0,5 ölçütünde %81,52 başarıma ulaşmış, mAP@0,75'te %20,32 düzeyinde kalmıştır. Aynı koşullarda eğitilen YOLOv8n ile karşılaştırmada iki model düşük IoU eşiğinde başa baş kalmış, yüksek eşikte YOLO öne geçmiştir; buna karşın önerilen model görsel testlerde kemeri tüm örneklerde %90'ın üzerinde, ağırlıklı olarak %98–100 güvenle yakalayarak daha yüksek duyarlılık sergilemiştir. Modülün katkısı, eğitim kurgusu sabit tutulup yalnızca dikkat biriminin devreye alınıp çıkarıldığı kontrollü bir ablasyon deneyiyle sınanmış; iki farklı öğrenme hızında da mAP@0,75 ölçütünde yaklaşık 3,5 puanlık tutarlı bir kazanç ölçülmüştür. Bulgular, dikkat mekanizmasının iki aşamalı mimarilere entegrasyonunun özellikle konum hassasiyeti ekseninde işlevsel bir katkı sağladığını ortaya koymaktadır. Although the role of seatbelt use in reducing traffic-related fatalities is beyond dispute, the reliance of enforcement on human observation makes the process difficult to scale. This thesis proposes an approach that extends the two-stage Faster R-CNN architecture with a Self-Attention Generative Adversarial Network (SAGAN)-style self-attention module to automate in-vehicle seatbelt detection. The attention module is placed between the lightweight MobileNetV3-Large backbone and the Region Proposal Network, acting only on the deepest feature pyramid level, so that global context is introduced to the model while computational cost remains contained. Training was carried out on a dataset expanded to 12,980 samples through offline augmentation, using a multi-layered regularization strategy; in addition, a BatchNorm evaluation issue that falsely inflated the validation loss was identified and resolved, offered here as a methodological contribution. On the test set the model reached 81.52% mAP@0.5 but remained at 20.32% under the stricter mAP@0.75. Compared with a YOLOv8n trained under identical conditions, the two models were on par at the low IoU threshold while YOLO took the lead at the higher one; nonetheless, the proposed model detected seatbelts with above 90% confidence in every visual test case, mostly in the 98–100% band, exhibiting higher sensitivity. The contribution of the module was tested through a controlled ablation in which the training setup was held fixed and only the attention unit was switched on and off; a consistent gain of roughly 3.5 points in mAP@0.75 was measured at two different learning rates. The findings indicate that integrating an attention mechanism into two-stage architectures yields a functional contribution, particularly along the axis of localization accuracy.
Description
Keywords
Faster R-CNN, Self-Attention, Emniyet Kemeri Tespiti, Derin Öğrenme, Nesne Tespiti, YOLO, Seatbelt Detection, Deep Learning, Object Detection