R-CNN خفيف الوزن والأسرع للكشف عن الأجسام في صور الاستشعار عن بعد البصرية
Lightweight faster R-CNN for object detection in optical remote sensing images

شارك:
المجلة: Scientific Reports، المجلد: 15، العدد: 1
DOI: https://doi.org/10.1038/s41598-025-99242-y
PMID: https://pubmed.ncbi.nlm.nih.gov/40346125
تاريخ النشر: 2025-05-09
المؤلف: Andrew Magdy وآخرون
الموضوع الرئيسي: تطبيقات الشبكات العصبية المتقدمة

نظرة عامة

تقدم ورقة البحث نهج ضغط ثنائي المراحل جديد يهدف إلى تحسين نموذج Faster R-CNN لاكتشاف الكائنات في تطبيقات الاستشعار عن بعد، مثل اكتشاف المناطق الحضرية، والزراعة الدقيقة، وتوقع الكوارث. إدراكًا للمتطلبات الكبيرة من حيث الحوسبة والتخزين لنموذج Faster R-CNN، يقترح المؤلفون استراتيجية هجينة تتكون من التدريب الواعي وضغط ما بعد التدريب. تستخدم مرحلة التدريب الواعي حسابات FP16 ذات الدقة المختلطة، مما يسرع التدريب بمعدل يتراوح بين 1.5 إلى 5.5 مع الحفاظ على دقة النموذج وتحسين كفاءة الذاكرة. تتضمن مرحلة ما بعد التدريب غير المنظمة تقليم الوزن لإزالة المعلمات الزائدة، تليها الكمية الديناميكية لتقليل حجم النموذج والحمل الحوسبي بشكل أكبر.

تظهر التقييمات التي أجريت على مجموعات بيانات NWPU VHR-10 وShip أن الطريقة المقترحة تحقق متوسط تقليل قدره 25.6% في حجم النموذج و56.6% في المعلمات، مع الحفاظ على متوسط الدقة (mAP). يظهر هذا النهج ثنائي المراحل في الضغط إمكانيات كبيرة لنشر نماذج اكتشاف الكائنات عالية الأداء في البيئات ذات الموارد المحدودة. ستركز الأعمال المستقبلية على تعزيز الاستقرار العددي من خلال ضبط الخسارة، وإدارة التدرجات المتقدمة، وأنظمة الدقة الهجينة لتحسين التوازن بين السرعة والدقة في التدريب بدقة مختلطة.

الطرق

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

تضمن الإعداد التجريبي تدريب النموذج لمدة 30، 50، 70، و100 دورة باستخدام مُحسِّن الانحدار العشوائي (SGD)، مع معدل تعلم (LR) قدره 0.01، وزخم قدره 0.9، وحجم دفعة قدره 16، وتدهور الوزن قدره 0.0005. تم إجراء جميع عمليات التدريب والاستدلال على وحدة معالجة الرسوميات Tesla T4 عبر Google Colab، التي وفرت 16 جيجابايت من ذاكرة الوصول العشوائي GPU، و13 جيجابايت من ذاكرة الوصول العشوائي للنظام، و80 جيجابايت من مساحة القرص. لتحسين كفاءة التدريب، استخدم المؤلفون التدريب بدقة مختلطة باستخدام وظيفة الدقة المختلطة التلقائية (AMP)، التي تسهلها إضافة Apex من NVIDIA لـ PyTorch. تم تطبيق معلمات تدريب مماثلة على نماذج Yolo8n وYolo8m، مما يضمن التناسق عبر التجارب.

النتائج

في هذا القسم، نقدم نتائج مجموعات تجريبية متعددة تهدف إلى تقييم أداء النهج المقترح. تضمنت المقاييس الرئيسية للتقييم الدقة، والاسترجاع، ودرجة F1، ومتوسط الدقة (AP)، وعدد معلمات النموذج، وحجم النموذج، ووقت التدريب. توفر هذه المقاييس نظرة شاملة على فعالية وكفاءة النموذج، مما يسمح بإجراء مقارنة شاملة مع المنهجيات الحالية.

تشير النتائج إلى أن النهج المقترح يظهر أداءً تنافسيًا عبر جميع المقاييس التي تم تقييمها، مما يبرز إمكانية تطبيقه في المجالات ذات الصلة. سيتم مناقشة المزيد من التحليل حول التبادلات بين تعقيد النموذج ومقاييس الأداء في الأقسام التالية.

المناقشة

في مناقشة التقدمات الأخيرة في اكتشاف الكائنات (OD) وضغط النموذج، تم تسليط الضوء على عدة طرق مبتكرة. استخدم مصطفى وآخرون التعلم بالنقل مع YOLOv5 وYOLOX وFaster R-CNN لاكتشاف الكائنات المحجوبة في مشاهد الطرق، محققين أقصى دقة متوسطة (mAP) قدرها 0.634 مع YOLOX. قدم زهو وآخرون SCL-YOLOv11، الذي حسّن اكتشاف الكائنات في الإضاءة المنخفضة، محققًا 67.6% mAP@0.5 و42.4% mAP@0.5:0.95 على مجموعة بيانات ExDark مع تقليل معلمات النموذج بنسبة 38.5%. حسّن وانغ وآخرون نموذج Faster R-CNN لاكتشاف الكائنات تحت الماء، محققين 71.7% mAP@0.5، بينما وجد مجدي وآخرون أن العمود الفقري ResNeXt50_32x4d حقق 84.7% mAP على مجموعة بيانات NWPU VHR-10. تشمل المساهمات الملحوظة الأخرى R-CNN متعدد المقاييس (MSA R-CNN) وGAN المعزز بالحواف (EESRGAN)، التي حققت mAPs قدرها 74.37% و86.3% على التوالي.

فيما يتعلق بضغط النموذج، تم استكشاف تقنيات متنوعة لتعزيز الكفاءة دون التضحية بالأداء. كشفت دراسة بارانايابا حول الشبكات العصبية التلافيفية (CNNs) لتصنيف البيانات الصوتية أن الجمع بين تقليم الوزن والفلاتر مع الكمية 8 بت أسفر عن نتائج مثالية. حسّن نموذج MP-YOLO الخاص بزهو وآخرون الاكتشاف مع تقليل التكاليف الحوسبية، محققًا تقليلًا كبيرًا في حجم النموذج من 6 ميغابايت إلى 2.2 ميغابايت. بالإضافة إلى ذلك، طور تيواري وآخرون نموذج ACT360، الذي استخدم تحليل الفيديو بزاوية 360 درجة وحقق تقليلًا في الحجم بنسبة 74% مع فقدان دقة ضئيل. يظهر النهج المقترح للضغط ثنائي المراحل لنموذج Faster R-CNN، الذي يدمج التدريب بدقة مختلطة، وتقليص الوزن غير المنظم، والكمية الديناميكية، تحسينات كبيرة في حجم النموذج وكفاءة الحوسبة مع الحفاظ على دقة اكتشاف عالية عبر مجموعات بيانات متنوعة.

Journal: Scientific Reports, Volume: 15, Issue: 1
DOI: https://doi.org/10.1038/s41598-025-99242-y
PMID: https://pubmed.ncbi.nlm.nih.gov/40346125
Publication Date: 2025-05-09
Author(s): Andrew Magdy et al.
Primary Topic: Advanced Neural Network Applications

Overview

The research paper presents a novel bi-stage compression approach aimed at optimizing the Faster R-CNN model for object detection in remote sensing applications, such as urban detection, precision farming, and disaster prediction. Recognizing the significant computational and storage demands of Faster R-CNN, the authors propose a hybrid strategy that consists of aware training and post-training compression. The aware training phase utilizes mixed-precision FP16 computation, which accelerates training by a factor of 1.5 to 5.5 while maintaining model accuracy and improving memory efficiency. The subsequent post-training phase involves unstructured weight pruning to remove redundant parameters, followed by dynamic quantization to further decrease model size and computational load.

Evaluations conducted on the NWPU VHR-10 and Ship datasets reveal that the proposed method achieves an average reduction of 25.6% in model size and 56.6% in parameters, all while preserving the mean Average Precision (mAP). This bi-stage compression approach demonstrates significant potential for deploying high-performance object detection models in resource-constrained environments. Future work will focus on enhancing numerical stability through loss scaling, advanced gradient management, and hybrid precision schemes to optimize the balance between speed and accuracy in mixed-precision training.

Methods

In this section, the authors detail their experimental methodology for evaluating the Bi-Stage Compression technique, which integrates pruning and quantization to enhance the performance of the Faster R-CNN model in satellite object detection tasks. The process begins with pruning to eliminate redundant parameters, followed by quantization to reduce the precision of weights and activations. The effectiveness of the compressed model was assessed using various metrics on a diverse dataset of satellite imagery.

The experimental setup involved training the model for 30, 50, 70, and 100 epochs using a stochastic gradient descent (SGD) optimizer, with a learning rate (LR) of 0.01, momentum of 0.9, a batch size of 16, and weight decay of 0.0005. All training and inference were conducted on a Tesla T4 GPU via Google Colab, which provided 16 GB of GPU RAM, 13 GB of system RAM, and 80 GB of disk space. To improve training efficiency, the authors employed mixed-precision training using the automatic mixed precision (AMP) functionality, facilitated by NVIDIA’s Apex extension for PyTorch. Similar training parameters were applied for the Yolo8n and Yolo8m models, ensuring consistency across the experiments.

Results

In this section, we present the results of multiple experimental sets aimed at assessing the performance of the proposed approach. Key evaluation metrics included precision, recall, F1-score, average precision (AP), the number of model parameters, model size, and training time. These metrics provide a comprehensive overview of the model’s effectiveness and efficiency, allowing for a thorough comparison with existing methodologies.

The findings indicate that the proposed approach demonstrates competitive performance across all evaluated metrics, highlighting its potential applicability in relevant domains. Further analysis of the trade-offs between model complexity and performance metrics will be discussed in subsequent sections.

Discussion

In the discussion of recent advancements in object detection (OD) and model compression, several innovative approaches have been highlighted. Mostafa et al. utilized transfer learning with YOLOv5, YOLOX, and Faster R-CNN for detecting occluded objects in road scenes, achieving a maximum average precision (mAP) of 0.634 with YOLOX. Zhuo et al. introduced SCL-YOLOv11, which improved low-light object detection, achieving 67.6% mAP@0.5 and 42.4% mAP@0.5:0.95 on the ExDark dataset while reducing model parameters by 38.5%. Wang et al. enhanced Faster R-CNN for underwater object detection, achieving a 71.7% mAP@0.5, while Magdy et al. found that the ResNeXt50_32x4d backbone yielded an impressive 84.7% mAP on the NWPU VHR-10 dataset. Other notable contributions include the multiscale-attention R-CNN (MSA R-CNN) and the edge-enhanced super-resolution GAN (EESRGAN), which achieved mAPs of 74.37% and 86.3%, respectively.

In terms of model compression, various techniques have been explored to enhance efficiency without sacrificing performance. Paranayapa’s study on CNNs for acoustic data classification revealed that combining weight and filter pruning with 8-bit quantization yielded optimal results. Zhou et al.’s MP-YOLO model improved detection while reducing computational costs, achieving a significant model size reduction from 6 MB to 2.2 MB. Additionally, Tiwari et al. developed the ACT360 model, which utilized 360-degree video analysis and achieved a 74% size reduction with minimal accuracy loss. The proposed bi-stage compression approach for Faster R-CNN, which integrates mixed-precision training, unstructured weight pruning, and dynamic quantization, demonstrates substantial improvements in model size and computational efficiency while maintaining high detection accuracy across various datasets.