إطار تعلم عميق مدمج للكشف عن العنف في الوقت الحقيقي وتوليد التنبيهات An embedded deep learning framework for real-time violence detection and alert generation

شارك:
المجلة: Scientific Reports، المجلد: 16، العدد: 1
DOI: https://doi.org/10.1038/s41598-026-44939-x
PMID: https://pubmed.ncbi.nlm.nih.gov/41896588
تاريخ النشر: 2026-03-28
المؤلف: Muhammad Salman وآخرون
الموضوع الرئيسي: التعرف على وضع الجسم والحركة

نظرة عامة

تقدم هذه الدراسة إطار عمل محسن لاكتشاف العنف في الوقت الحقيقي في البيئات العامة وشبه العامة، مستفيدة من شبكة عصبية تلافيفية خفيفة الوزن (CNN) لاستخراج الميزات المكانية ووحدات متكررة مغلقة (GRU) لنمذجة الزمن. تم تصميم النظام للأجهزة الطرفية ذات الموارد المحدودة، مثل Raspberry Pi 5، ويستخدم استراتيجيات تحسين متنوعة – بما في ذلك التكميم، والتقليم الهيكلي، وتسريع TensorRT – لتحقيق سرعة استدلال عالية (26 إطارًا في الثانية) واستهلاك طاقة منخفض (6.2 واط) مع الحفاظ على دقة متوسطة مثيرة للإعجاب تبلغ 96.9%، ودرجة F1 تبلغ 96.3%، وROC-AUC تبلغ 0.972 عبر مجموعات بيانات مرجعية متعددة.

تؤكد الدراسة على أهمية كل مكون معماري من خلال تحليلات شاملة للإزالة والتحليلات الإحصائية، مؤكدة أن التحسينات ذات دلالة إحصائية (p < 0.05). بالإضافة إلى ذلك، توضح تصورات Grad-CAM قابلية تفسير النموذج من خلال تحديد مواقع الأفعال العنيفة بدقة داخل إطارات الفيديو. بينما يظهر الإطار أداءً قويًا، فإنه يواجه تحديات في الظروف السلبية، مثل الإضاءة السيئة والاعتراضات، مما قد يؤدي إلى إيجابيات زائفة. تهدف الأعمال المستقبلية إلى معالجة هذه القيود من خلال المعالجة المسبقة التكيفية ودمج المستشعرات متعددة الأنماط، بالإضافة إلى استكشاف الهياكل المعتمدة على المحولات والتعلم الفيدرالي لتحسين قابلية التوسع والخصوصية في تطبيقات المراقبة. بشكل عام، يؤسس هذا الإطار CNN-GRU حلاً قابلاً للتوسع، وموفرًا للطاقة، وقابلًا للتفسير لأنظمة المراقبة الذكية.

طرق

في الدراسة التي أجراها سونغ وآخرون (2019)، تم تصنيف طرق اكتشاف العنف إلى تقليدية، وتعلم عميق شامل، وهياكل هجينة، مع تحديد الفجوات البحثية الرئيسية مثل عدم توازن مجموعة البيانات ومشكلات زمن الاستجابة في الوقت الحقيقي. بينما اقترح تشانغ وآخرون (2025) هياكل كشف خفيفة الوزن تستفيد من دمج الميزات متعددة المقاييس لتحقيق دقة عالية في البيئات المعقدة، فإن هذه الطرق لا تتناول بشكل خاص اكتشاف الأجسام الصغيرة في مشاهد الغابات الكثيفة. تستند الأبحاث الحالية إلى هذه النتائج من خلال اقتراح نموذج تعلم عميق محسن لاكتشاف العنف في الوقت الحقيقي على الأنظمة المدمجة، مع التركيز على تحقيق توازن بين الدقة والكفاءة وقابلية النشر.

تدمج المنهجية المقترحة معالجة البيانات، وتصميم النموذج، وتحسين الأداء على الجهاز لضمان استدلال فعال تحت الموارد المحدودة. تم تطوير مجموعة بيانات مخصصة من ست فئات جنبًا إلى جنب مع مجموعات بيانات مرجعية لتعزيز التنوع. يستخدم الإطار هيكلًا تلافيفيًا خفيف الوزن لاستخراج الميزات، وتحليل زمني للتعرف على الحركة، ونشر في الوقت الحقيقي على منصة Raspberry Pi 5. تظهر النتائج التجريبية أن النموذج يحقق دقة تنافسية تبلغ 96.9% مع الحفاظ على استجابة في الوقت الحقيقي (26.1 إطارًا في الثانية) واستهلاك طاقة منخفض (6.2 واط)، متفوقًا على النماذج الحالية الرائدة من حيث الكفاءة الحاسوبية وملاءمتها للأنظمة المدمجة. تؤكد هذه التقييم الشامل فعالية إطار CNN-GRU المقترح لتطبيقات اكتشاف العنف في الوقت الحقيقي.

نتائج

يقدم قسم النتائج تحليلًا نوعيًا لأداء إطار CNN-GRU في اكتشاف الإشارات المتعلقة بالعنف في السيناريوهات الواقعية. باستخدام تقنيات مثل رسم خرائط تنشيط الفئة المعتمد على التدرج (Grad-CAM)، توضح الدراسة أنماط تنشيط الفئة ومناطق قرار النموذج، مؤكدة أن النموذج يحدد بفعالية المؤشرات الحرجة للأفعال العنيفة، مثل الإيماءات العدوانية وديناميات وضع الجسم. تشير التصورات إلى أن النموذج يتعلم ميزات حركية ذات مغزى بدلاً من الاعتماد فقط على السياق الثابت.

فيما يتعلق بالموثوقية التشغيلية، نجح النظام في توليد تنبيهات بصرية وسمعية أثناء النشر المباشر، مع الحفاظ على معدل إيجابيات زائفة أقل من 3% على الرغم من التحديات التي تطرحها الحركات الغامضة، مثل تلك الموجودة في المشاهد المزدحمة أو الرياضية. تعزز قدرة الإطار على تقديم ملاحظات في الوقت الحقيقي، بما في ذلك صناديق الحدود وتسميات الفئات (مثل “ركل”)، الوعي بالوضع. بينما كان التركيز في هذا التحليل على قابلية التفسير النوعية، يعترف المؤلفون بالحاجة إلى أبحاث مستقبلية لتضمين مقاييس التفسير الكمي. بشكل عام، تظهر النتائج أن الإطار المقترح يحقق دقة وموثوقية عالية لتطبيقات المراقبة المدمجة.

نقاش

يسلط قسم النقاش في الورقة الضوء على التقدم في اكتشاف العنف الآلي من خلال التعلم العميق ورؤية الكمبيوتر، مع التأكيد على استكشاف هياكل نماذج متنوعة مثل CNNs وRNNs والمحولات. على الرغم من تحقيق دقة عالية في الإعدادات المسيطر عليها، فإن نشر هذه النماذج على الأنظمة المدمجة يعيقه التعقيد الحاسوبي وقيود المعالجة في الوقت الحقيقي. تشمل المساهمات الملحوظة دوندَر وآخرون (2024) مع موصوف حركة زمانية مكانية تحقق دقة 90%، وتروونغ وآخرون (2025) مع موصوف تدفق عنيف يصل إلى 91%. ومع ذلك، تتطلب العديد من النماذج، بما في ذلك 3D-CNNs وشبكات ConvLSTM، على الرغم من إظهار دقة محسنة (تصل إلى 94.2%)، موارد حاسوبية كبيرة، مما يجعلها غير عملية للنشر على الأطراف.

يناقش القسم أيضًا مجموعة من الأساليب التي تهدف إلى تعزيز كفاءة النموذج وقابليته للتكيف. على سبيل المثال، استخدم كاور وآخرون (2025) التعلم الانتقالي مع ResNet-50، محققين دقة 96.1% ولكن مع زيادة حجم النموذج ووقت الاستدلال. قدم محامكالي وآخرون (2025) شبكة هجينة تعتمد على الانتباه الزمني، محققين درجات F1 تزيد عن 92%، لكنهم واجهوا تحديات في الحمل الحاسوبي. في المقابل، اقترح تشانغ وآخرون (2024) نموذج MobileNetV2 خفيف الوزن حقق دقة 89% على Raspberry Pi 4، مما يظهر إمكانات للأنظمة المدمجة على الرغم من دقة أقل مقارنة بالهياكل الأثقل. بشكل عام، يبرز النقاش الحاجة إلى هياكل خفيفة الوزن وفعالة تحقق توازنًا بين الدقة والمتطلبات الحاسوبية لاكتشاف العنف في الوقت الحقيقي في البيئات المدمجة.

Journal: Scientific Reports, Volume: 16, Issue: 1
DOI: https://doi.org/10.1038/s41598-026-44939-x
PMID: https://pubmed.ncbi.nlm.nih.gov/41896588
Publication Date: 2026-03-28
Author(s): Muhammad Salman et al.
Primary Topic: Human Pose and Action Recognition

Overview

This research presents an optimized framework for real-time violence detection in public and semi-public environments, leveraging a lightweight Convolutional Neural Network (CNN) for spatial feature extraction and Gated Recurrent Units (GRU) for temporal modeling. The system is designed for resource-constrained edge devices, such as the Raspberry Pi 5, and employs various optimization strategies—including quantization, structured pruning, and TensorRT acceleration—to achieve high inference speed (26 FPS) and low energy consumption (6.2 W) while maintaining an impressive average accuracy of 96.9%, F1-score of 96.3%, and ROC-AUC of 0.972 across multiple benchmark datasets.

The study emphasizes the significance of each architectural component through comprehensive ablation and statistical analyses, confirming that the enhancements are statistically significant (p < 0.05). Additionally, Grad-CAM visualizations demonstrate the model's interpretability by accurately localizing violent actions within video frames. While the framework shows robust performance, it faces challenges in adverse conditions, such as poor lighting and occlusions, which may lead to false positives. Future work aims to address these limitations through adaptive preprocessing and multimodal sensor fusion, as well as exploring transformer-based architectures and federated learning to improve scalability and privacy in surveillance applications. Overall, this CNN-GRU framework establishes a scalable, energy-efficient, and interpretable solution for intelligent surveillance systems.

Methods

In the study by Song et al. (2019), violence detection methods were categorized into traditional, end-to-end deep learning, and hybrid frameworks, identifying key research gaps such as dataset imbalance and real-time latency issues. While Zhang et al. (2025) proposed lightweight detection frameworks that leverage multi-scale feature fusion for high accuracy in complex environments, these methods do not specifically address small-object detection in dense forest scenes. The current research builds on these findings by proposing an optimized deep learning model for real-time violence detection on embedded systems, focusing on balancing accuracy, efficiency, and deployability.

The proposed methodology integrates data preprocessing, model design, and on-device optimization to ensure effective inference under constrained resources. A custom six-class dataset was developed alongside benchmark datasets to enhance diversity. The framework employs a lightweight convolutional backbone for feature extraction, temporal analysis for motion recognition, and real-time deployment on a Raspberry Pi 5 platform. Experimental results demonstrate that the model achieves a competitive accuracy of 96.9% while maintaining real-time responsiveness (26.1 FPS) and low power consumption (6.2 W), outperforming existing state-of-the-art models in terms of computational efficiency and suitability for embedded systems. This comprehensive evaluation underscores the effectiveness of the proposed CNN-GRU framework for real-time violence detection applications.

Results

The results section presents a qualitative analysis of the CNN-GRU framework’s performance in detecting violence-related cues in real-world scenarios. Utilizing techniques such as Gradient-weighted Class Activation Mapping (Grad-CAM), the study visualizes class activation patterns and model decision regions, confirming that the model effectively identifies critical indicators of violent actions, such as aggressive gestures and body posture dynamics. The visualizations indicate that the model learns meaningful motion-specific features rather than relying solely on static context.

In terms of operational reliability, the system successfully generated visual and auditory alerts during live deployment, maintaining a false positive rate below 3% despite challenges posed by ambiguous motions, such as those found in crowded or sports scenes. The framework’s ability to provide real-time feedback, including bounding boxes and class labels (e.g., “Kicking”), enhances situational awareness. While the focus of this analysis was on qualitative interpretability, the authors acknowledge the need for future research to incorporate quantitative explainability metrics. Overall, the findings demonstrate that the proposed framework achieves high accuracy and reliability for embedded surveillance applications.

Discussion

The discussion section of the paper highlights the advancements in automated violence detection through deep learning and computer vision, emphasizing the exploration of various model architectures such as CNNs, RNNs, and transformers. Despite achieving high accuracy in controlled settings, the deployment of these models on embedded systems is hindered by computational complexity and real-time processing limitations. Notable contributions include Dündar et al. (2024) with a spatiotemporal motion descriptor achieving 90% accuracy, and Truong et al. (2025) with a Violent Flow descriptor reaching 91%. However, many models, including 3D-CNNs and ConvLSTM networks, while demonstrating improved accuracy (up to 94.2%), require substantial computational resources, making them impractical for edge deployment.

The section also discusses various approaches aimed at enhancing model efficiency and adaptability. For instance, Kaur et al. (2025) utilized transfer learning with ResNet-50, achieving 96.1% accuracy but increasing model size and inference time. Mahamkali et al. (2025) introduced a temporal attention-based hybrid network, achieving F1-scores above 92%, yet faced challenges in computational load. In contrast, Zhang et al. (2024) proposed a lightweight MobileNetV2 model that achieved 89% accuracy on a Raspberry Pi 4, demonstrating potential for embedded systems despite lower accuracy compared to heavier architectures. Overall, the discussion underscores the need for lightweight, efficient frameworks that balance accuracy and computational demands for real-time violence detection in embedded environments.