DOI: https://doi.org/10.1038/s41598-026-47399-5
PMID: https://pubmed.ncbi.nlm.nih.gov/41965391
تاريخ النشر: 2026-04-11
المؤلف: Salah A. Almahaqeri وآخرون
الموضوع الرئيسي: أمن الشبكات وكشف التسلل
نظرة عامة
يتناول قسم ورقة البحث تطوير نظام كشف التسلل المعزز بالتحسين (IDS) المصمم خصيصًا لإنترنت الأشياء (IoT)، والذي يواجه تحديات بسبب حجم حركة المرور الشبكية الكبير والمتنوع وغير المتوازن. تم تقييم الإطار المقترح بدقة باستخدام معيار CICIoT2023 ويشمل تقنيات مثل تقليل العينة الطبقية لمعالجة عدم التوازن في الفئات واختيار الميزات المعتمد على المكاسب للتخلص من سمات التدفق الزائدة. تم اختبار الإطار على ثلاث مهام تصنيف: الكشف الثنائي، وتصنيف عائلة الهجوم المكونة من 8 فئات، وتصنيف دقيق مكون من 34 فئة.
تظهر النتائج أن النماذج حققت أداءً مثيرًا للإعجاب في الكشف مع زمن استدلال ضئيل. ومن الجدير بالذكر أن نموذج XGBoost حقق دقة تبلغ 99.61% ودرجة F1 ماكرو تبلغ 0.995 للكشف الثنائي، مع زمن استدلال قدره 0.355 ميكروثانية لكل عينة. أدى اختيار الميزات بفعالية إلى تقليل أبعاد المدخلات من 46 إلى 23، مما أدى إلى انخفاض كبير في زمن الاستدلال (30-51%) ووقت التدريب (33-40%)، مع الحفاظ على الدقة ضمن ±0.014 نقطة مئوية. تسلط هذه النتائج الضوء على توازن إيجابي بين الدقة والكفاءة، مما يجعل الإطار مناسبًا للنشر في الوقت الحقيقي في البيئات ذات الموارد المحدودة. جميع مجموعات البيانات، والرموز، والنتائج متاحة للجمهور لدعم إمكانية التكرار.
مقدمة
تسلط المقدمة الضوء على الدور الحاسم لتقنيات إنترنت الأشياء (IoT) في البنى التحتية الرقمية الحديثة، مما يسهل الأتمتة الواسعة والخدمات السيبرانية الفيزيائية عبر مختلف القطاعات، بما في ذلك التحكم الصناعي والرعاية الصحية. ومع ذلك، فإن النمو السريع وتنوع أجهزة إنترنت الأشياء قد زاد بشكل كبير من سطح الهجوم، مما أدى إلى زيادة التهديدات الشبكية. تعتبر أنظمة كشف التسلل (IDS) ضرورية لحماية شبكات إنترنت الأشياء من خلال تحديد أنماط حركة المرور الحميدة والضارة. ومع ذلك، فإن نشر IDS فعالة عند حافة الشبكة يواجه تحديات بسبب الحجم الكبير وتعقيد حركة مرور إنترنت الأشياء، فضلاً عن عدم التوازن الشديد في مجموعات بيانات الأمان، مما قد يعيق اكتشاف الهجمات النادرة ولكن المؤثرة.
تحدد الورقة فجوتين حرجتين في أبحاث IDS الحالية المتعلقة بإنترنت الأشياء: نقص التحليل الشامل بشأن توازن الكفاءة والزمن في النشر في الوقت الحقيقي، والتقييم غير الكافي لاستراتيجيات تقليل التكرار والتخفيف من عدم التوازن عبر مهام التصنيف المختلفة. لمعالجة هذه القضايا، يقترح المؤلفون خط أنابيب تقييم موحد وقابل للتكرار باستخدام معيار CICIoT2023، والذي يسهل التقييم المتسق عبر مستويات تصنيف متعددة، بما في ذلك الكشف الثنائي، وتصنيف عائلة الهجوم، وتصنيف الهجمات الدقيقة. تهدف هذه المقاربة إلى سد الفجوة بين النتائج المخبرية والمتطلبات التشغيلية العملية في بيئات إنترنت الأشياء.
الطرق
يستعرض قسم الطرق البروتوكول التجريبي المستخدم لتطوير وتقييم إطار كشف التسلل المقترح باستخدام مجموعة بيانات CICIoT2023. يتم تمثيل سير العمل بصريًا في الشكل 1، موضحًا خط أنابيب شامل وقابل للتكرار مصمم لتسهيل ثلاث مهام تصنيف متميزة: التصنيف الثنائي (فئتان)، وتصنيف عائلة الهجوم المكونة من 8 فئات، والتصنيف الدقيق (34 فئة). يقوم هذا الإطار بتقييم خوارزميات التعلم المختلفة تحت ظروف معالجة مسبقة وضبط واختبار متسقة لضمان قابلية المقارنة.
للحفاظ على تقديرات تعميم غير متحيزة، التزمت المنهجية بدقة ببروتوكول حيث تم تنفيذ جميع الخطوات المعتمدة على البيانات – مثل اختيار الميزات، وإحصائيات القياس، وضبط المعلمات الفائقة – فقط على قسم التدريب. تم الاحتفاظ بمجموعة الاختبار المحجوزة للتقييم النهائي، مما يضمن أن المقاييس الأداء المبلغ عنها تعكس قدرة النموذج على التعميم على البيانات غير المرئية. تم إجراء الإعداد التجريبي على محطة عمل محددة، وتفاصيلها موضحة في الأقسام التالية.
النتائج
يقدم قسم النتائج مقاييس الأداء لمهام التصنيف الثنائي ومتعدد الفئات على مجموعة بيانات CICIoT2023. بالنسبة لمهمة التصنيف الثنائي (حميد مقابل هجوم)، تم تقييم النماذج باستخدام التحقق المتقاطع الطبقي ذو 5 طيات، حيث حقق XGBoost درجة F1 ماكرو تبلغ 0.8883 ± 0.0013، متفوقًا على CatBoost وLightGBM. في سيناريو التصنيف متعدد الفئات الذي يتضمن 34 فئة، قاد XGBoost مرة أخرى بدقة تبلغ 0.9948 ودرجة F1 مرجحة تبلغ 0.9947، على الرغم من أن الأداء اختلف بشكل كبير عبر فئات الهجوم المختلفة. ومن الجدير بالذكر أنه بينما حافظت الهجمات الحجمية على درجات F1 عالية قريبة من 1.0، أظهرت الهجمات ذات الحجم المنخفض مثل Uploading_Attack وSqlInjection معدلات كشف أقل، مع درجات F1 تتراوح بين 0.62 و0.72، كما هو موضح في مصفوفة الالتباس.
كشفت التحليلات الإضافية لأهمية الميزات أن الميزات الأكثر تأثيرًا تختلف حسب دقة التصنيف ونوع النموذج. في مهمة التصنيف الثنائي، كانت الميزات مثل `rst_count` و`variance` و`IAT` و`flow_duration` مرتفعة التصنيف. بالنسبة للتصنيف المكون من 8 فئات، ظهرت ميزات مثل `IAT` و`Min` و`Magnitude` و`Weight` و`Tot size` كأهمية. في مهمة الـ 34 فئة، أبرز LightGBM ميزات مختلفة، مما يبرز الحاجة إلى اختيار ميزات مصممة خصيصًا بناءً على سياق التصنيف. تؤكد هذه التقييم الشامل على نقاط القوة والضعف في النماذج، لا سيما في اكتشاف الفئات الأقل، وتوفر رؤى حول مساهمات الميزات عبر مهام التصنيف المختلفة.
المناقشة
يقدم قسم المناقشة في الورقة تقييمًا شاملاً لاستراتيجية اختيار الميزات الموجهة نحو الكفاءة وآثارها على أنظمة كشف التسلل (IDS) في بيئات إنترنت الأشياء. يقدم المؤلفون طريقة اختيار ميزات تعتمد على المكاسب تقلل بشكل كبير من أبعاد مساحة الميزات، مما يؤدي إلى تحسينات ملحوظة في كفاءة الاستدلال ووقت التدريب دون المساس بدقة الكشف. على وجه التحديد، تكشف دراسة الإزالة أن تقليل مجموعة الميزات من 46 إلى 23 ميزة يؤدي إلى انخفاض بنسبة 30-51% في زمن الاستدلال وانخفاض بنسبة 33-40% في وقت التدريب، مع الحفاظ على الدقة ضمن ±0.014 نقطة مئوية عبر مهام التصنيف المختلفة.
علاوة على ذلك، تقوم الورقة بتقييم منهجي للأطر الرائدة في تعزيز التدرج (XGBoost وLightGBM وCatBoost) من حيث أدائها في كشف التسللات في إنترنت الأشياء، مما يبرز أهمية المقاييس التشغيلية مثل زمن الاستدلال جنبًا إلى جنب مع مقاييس الدقة التقليدية. تشير النتائج إلى أن XGBoost يحقق أعلى دقة (99.61%) مع زمن استدلال على مستوى الميكروثانية (0.355 ميكروثانية/عينة)، مما يبرز جدواه العملية للنشر عند الحافة. كما يبرز المؤلفون الحاجة إلى تركيز متوازن على كل من الدقة والكفاءة في أبحاث IDS المستقبلية، لا سيما في البيئات ذات الموارد المحدودة، ويناقشون آثار نتائجهم على تعزيز قوة ووضوح نماذج IDS.
القيود
تعترف البحث بعدة قيود في الإطار المقترح، خاصة فيما يتعلق بنشره في الشبكات الإنتاجية. تعتبر مرحلة المعايرة الأولية ضرورية لضبط معلمات توحيد الميزات، لضمان توافقها مع “الضوضاء” الإحصائية الفريدة الموجودة في البيئة الفيزيائية المستهدفة. هذه التكيفات ضرورية لتحسين أداء الإطار وموثوقيته في التطبيقات الواقعية.
قد تتضمن الاتجاهات المستقبلية استكشاف تقنيات المعايرة الآلية لتبسيط هذه العملية، مما يعزز من قدرة الإطار على التكيف وكفاءته في سياقات تشغيلية متنوعة.
DOI: https://doi.org/10.1038/s41598-026-47399-5
PMID: https://pubmed.ncbi.nlm.nih.gov/41965391
Publication Date: 2026-04-11
Author(s): Salah A. Almahaqeri et al.
Primary Topic: Network Security and Intrusion Detection
Overview
The research paper section discusses the development of an optimized gradient-boosting intrusion detection system (IDS) tailored for the Internet of Things (IoT), which faces challenges due to high-volume, heterogeneous, and imbalanced network traffic. The proposed framework was rigorously evaluated using the CICIoT2023 benchmark and incorporates techniques such as stratified undersampling to address class imbalance and gain-based feature selection to eliminate redundant flow attributes. The framework was tested on three classification tasks: binary detection, 8-class attack-family classification, and 34-class fine-grained classification.
The results demonstrate that the models achieved impressive detection performance with minimal inference latency. Notably, the XGBoost model reached an accuracy of 99.61% and a macro-F1 score of 0.995 for binary detection, with an inference time of only 0.355 µs per sample. Feature selection effectively reduced the input dimensions from 46 to 23, leading to a significant decrease in inference latency (30-51%) and training time (33-40%), while maintaining accuracy within ±0.014 percentage points. These findings highlight a favorable accuracy-efficiency trade-off, making the framework suitable for real-time deployment in resource-constrained environments. All datasets, code, and results are made publicly available to support reproducibility.
Introduction
The introduction highlights the critical role of Internet of Things (IoT) technologies in modern digital infrastructures, facilitating extensive automation and cyber-physical services across various sectors, including industrial control and healthcare. However, the rapid growth and diversity of IoT devices have significantly increased the attack surface, leading to a rise in network threats. Intrusion Detection Systems (IDSs) are essential for safeguarding IoT networks by identifying benign and malicious traffic patterns. Nonetheless, deploying effective IDSs at the network edge poses challenges due to the high volume and complexity of IoT traffic, as well as the severe class imbalance in security datasets, which can hinder the detection of rare but impactful attacks.
The paper identifies two critical gaps in current IoT IDS research: the lack of comprehensive analysis regarding the efficiency-latency trade-off in real-time deployments and the insufficient evaluation of redundancy reduction and imbalance mitigation strategies across various classification tasks. To address these issues, the authors propose a unified and reproducible evaluation pipeline using the CICIoT2023 benchmark, which facilitates consistent assessment across multiple classification levels, including binary detection, attack-family classification, and fine-grained attack typing. This approach aims to bridge the gap between laboratory findings and practical operational requirements in IoT environments.
Methods
The Methods section outlines the experimental protocol employed to develop and assess the proposed intrusion detection framework utilizing the CICIoT2023 dataset. The workflow is visually represented in Figure 1, illustrating a comprehensive, reproducible pipeline designed to facilitate three distinct classification tasks: binary classification (2 classes), 8-class attack-family classification, and fine-grained classification (34 classes). This framework benchmarks various learning algorithms under consistent preprocessing, tuning, and testing conditions to ensure comparability.
To maintain unbiased generalization estimates, the methodology strictly adhered to a protocol where all data-dependent steps—such as feature selection, scaling statistics, and hyperparameter tuning—were executed solely on the training partition. The held-out test set was reserved for final evaluation, ensuring that the performance metrics reported reflect the model’s ability to generalize to unseen data. The experimental setup was conducted on a specified workstation, details of which are provided in the subsequent sections.
Results
The results section presents the performance metrics for binary and multi-class classification tasks on the CICIoT2023 dataset. For the binary classification task (benign vs. attack), the models were evaluated using 5-fold stratified cross-validation, with XGBoost achieving a macro-F1 score of 0.8883 ± 0.0013, outperforming CatBoost and LightGBM. In the multi-class classification scenario involving 34 classes, XGBoost again led with an accuracy of 0.9948 and a weighted-F1 score of 0.9947, although performance varied significantly across different attack categories. Notably, while volumetric attacks maintained high F1-scores close to 1.0, low-volume attacks such as Uploading_Attack and SqlInjection showed lower detection rates, with F1-scores between 0.62 and 0.72, as indicated by the confusion matrix.
Further analysis of feature importance revealed that the most influential features varied by classification granularity and model type. In the binary classification task, features such as `rst_count`, `variance`, `IAT`, and `flow_duration` were highly ranked. For the 8-class classification, features like `IAT`, `Min`, `Magnitude`, `Weight`, and `Tot size` emerged as significant. In the 34-class task, LightGBM highlighted different features, emphasizing the need for tailored feature selection based on the classification context. This comprehensive evaluation underscores the models’ strengths and weaknesses, particularly in detecting minority classes, and provides insights into feature contributions across different classification tasks.
Discussion
The discussion section of the paper presents a comprehensive evaluation of an efficiency-oriented feature selection strategy and its implications for intrusion detection systems (IDS) in IoT environments. The authors introduce a gain-based feature selection method that significantly reduces the dimensionality of the feature space, leading to notable improvements in inference efficiency and training time without compromising detection accuracy. Specifically, the ablation study reveals that reducing the feature set from 46 to 23 features results in a 30-51% decrease in inference latency and a 33-40% reduction in training time, while maintaining accuracy within ±0.014 percentage points across various classification tasks.
Furthermore, the paper systematically benchmarks leading gradient-boosting frameworks (XGBoost, LightGBM, and CatBoost) for their performance in detecting IoT intrusions, emphasizing the importance of operational metrics such as inference latency alongside traditional accuracy measures. The findings indicate that XGBoost achieves the highest accuracy (99.61%) with a microsecond-level inference latency (0.355 µs/sample), underscoring its practical viability for edge deployment. The authors also highlight the need for a balanced focus on both accuracy and efficiency in future IDS research, particularly in resource-constrained environments, and discuss the implications of their findings for enhancing the robustness and interpretability of IDS models.
Limitations
The research acknowledges several limitations in the proposed framework, particularly concerning its deployment in production networks. An initial calibration phase is deemed necessary to adjust the feature standardization parameters, ensuring they align with the unique statistical ‘noise’ present in the target physical environment. This adaptation is critical for optimizing the framework’s performance and reliability in real-world applications.
Future directions may involve exploring automated calibration techniques to streamline this process, thereby enhancing the framework’s adaptability and efficiency in diverse operational contexts.
