الكشف عن سرطان الرئة متعدد الفئات باستخدام شبكة عصبية عميقة مستوحاة من الكبسولات الهجينة Multiclass lung cancer detection using a hybrid capsule inspired deep neural network

شارك:
المجلة: Scientific Reports، المجلد: 16، العدد: 1
DOI: https://doi.org/10.1038/s41598-026-49378-2
PMID: https://pubmed.ncbi.nlm.nih.gov/42014820
تاريخ النشر: 2026-04-22
المؤلف: Ananya Bhattacharee وآخرون
الموضوع الرئيسي: الذكاء الاصطناعي في اكتشاف السرطان

نظرة عامة

تناقش ورقة البحث تطوير نموذج قائم على الانتباه الخفيف (LWA)، وبالتحديد بنية EfficientNetB0 المدمجة مع وحدة ترميز الميزات المستوحاة من الكبسولات، بهدف تحسين الكشف عن سرطان الرئة. تكافح الشبكات العصبية التلافيفية التقليدية (CNNs) للحفاظ على العلاقات المكانية بين الميزات، مما قد يؤدي إلى عدم الكفاءة في الطبقات الأعمق. يعالج النموذج المقترح هذه المشكلة من خلال استخدام LWA لتصفية وتعزيز الميزات المهمة مع تقليل التكرار، وبالتالي القضاء على الحاجة إلى خوارزمية التوجيه المكثفة حسابيًا المرتبطة عادة بشبكات الكبسولات (CapsNets). يصنف النموذج بنجاح صور الأشعة المقطعية إلى فئات حميدة، طبيعية، وخبيثة، محققًا درجة F1 مثالية، ودقة، وموثوقية، واسترجاع على مجموعة الاختبار، مع حمل حسابي ضئيل قدره 0.01 GFLOPS.

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

مقدمة

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

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

طرق

تحدد قسم “المواد والطرق” مجموعة البيانات والمنهجية المستخدمة في الدراسة. مجموعة البيانات المستخدمة هي مجموعة متعددة الفئات من كاجل، وبالتحديد مجموعة بيانات IQ-OTH/NCCD، التي تشمل 110 حالة CT مصنفة إلى ثلاث فئات: 55 حالة طبيعية، 15 حالة حميدة، و40 حالة خبيثة. تم جمع صور الأشعة المقطعية، التي تم وضع علامات عليها من قبل أطباء الأشعة وأطباء الأورام من مستشفى العراق لتعليم الأورام والمركز الوطني لأمراض السرطان، على مدى ثلاثة أشهر في عام 2019 وتتكون من صور JPEG تصور زوايا مختلفة من صدر الإنسان. تجدر الإشارة إلى أن الحالات الخبيثة تتوافق مع إجمالي 561 صورة CT.

تتميز المنهجية المقترحة بهيكل يدمج EfficientNetB0 كمستخرج ميزات، تليها آلية انتباه خفيفة (LWA) وشبكة كبسولات (CapsNet) بدون توجيه ديناميكي. تتم معالجة صور الأشعة المقطعية للرئة المدخلة من خلال EfficientNetB0، الذي يحتفظ بالأبعاد المكانية بينما ينتج 1280 قناة من آخر طبقة تلافيفية له. تضمنت الإعدادات التجريبية تدريب ثلاثة متغيرات من CapsNet لمدة 50 دورة، باستخدام معايير إيقاف مبكر بناءً على خسارة التحقق واستراتيجية تقليل معدل التعلم لتعزيز كفاءة التدريب. تم تجميع النماذج باستخدام مُحسِّن آدم بمعدل تعلم قدره \(1 \times 10^{-4}\)، وتم استخدام حجم دفعة قدره 12. يجمع المتغير الأول من CapsNet بين هيكل CNN بسيط مع بنية CapsNet، مع دمج عدة طبقات تلافيفية تليها LWA وإسقاط مساحة الكبسولة للتصنيف إلى الفئات الثلاث المحددة.

نتائج

يقدم قسم النتائج تحليلًا مقارنًا لمتغيرات CapsNet المختلفة، بما في ذلك “Simple CNN + CapsNet”، و”CapsNet مع توجيه ديناميكي”، والنموذج المقترح. تشير نتائج الاختبار، الملخصة في الجدول 3، إلى أن نموذج “Simple CNN + CapsNet” حقق دقة اختبار تبلغ 62.81%، مع موثوقية، واسترجاع، ودرجات F1 تبلغ 50%، و67%، و55%، على التوالي. أظهر هذا النموذج تشخيصًا خاطئًا كبيرًا، حيث تم تصنيف 108 من أصل 242 حالة اختبار بشكل غير صحيح، كما هو موضح في الشكل 4(a). كانت قيم المنطقة تحت المنحنى (AUC) لمنحنيات خصائص التشغيل المستقبلي (ROC) 73%، و68%، و99% لصور CT الحميدة، والخبيثة، والطبيعية، على التوالي، مما يشير إلى تحديات في تصنيف الفئات بشكل متميز.

في المقابل، أظهر “CapsNet مع توجيه ديناميكي” تحسينًا في مقاييس الأداء، محققًا دقة اختبار تبلغ 62.81%، مع 90 تشخيصًا خاطئًا وقيم AUC تبلغ 64%، و78%، و100% للفئات المعنية (الشكل 5(b)). تفوق النموذج المقترح بشكل كبير على كلا المتغيرين السابقين، محققًا 100% في دقة الاختبار، والموثوقية، والاسترجاع، ودرجة F1، كما هو مفصل في الجدول 3. تؤكد مصفوفة الالتباس في الشكل 4(c) قدرة النموذج على التمييز بشكل مثالي بين الفئات الثلاث، بينما يظهر الشكل 5(c) قيم AUC تبلغ 100% عبر جميع الفئات. علاوة على ذلك، تسلط مقارنة في الجدول 4 الضوء على أن النموذج المقترح حقق دقة تدريب تبلغ 99.48%، ودقة اختبار تبلغ 100%، ووقت استدلال مخفض بشكل كبير قدره 0.124 ثانية، متفوقًا على نموذج CapsNet الأصلي مع التوجيه الديناميكي، الذي كان لديه دقة اختبار تبلغ 62.81% ووقت استدلال قدره 3 ثوانٍ.

مناقشة

في قسم المناقشة، يوضح المؤلفون فعالية النموذج المقترح، الذي يدمج آلية انتباه خفيفة مع EfficientNetB0 ووحدة ترميز ميزات مستوحاة من الكبسولات لتصنيف سرطان الرئة. يعالج النموذج عدم توازن الفئات من خلال تقنيات زيادة البيانات، مما يضمن مجموعة بيانات متوازنة عبر الفئات الثلاث: الحميدة، والخبيثة، والطبيعية. تستخدم آلية الانتباه الخفيف (LWA) طبقة تلافيفية 1 × 1 لحساب أوزان الانتباه، مما يعزز قدرة النموذج على التركيز على الميزات ذات الصلة مع كبح غير الضرورية. يؤدي ذلك إلى تقليل كبير في وقت الاستدلال مقارنةً بقاعدة EfficientNetB0، ويعزى ذلك إلى الإسقاط المبسط للكبسولة الذي يقلل الأبعاد ويقضي على الحاجة إلى التوجيه الديناميكي التكراري.

تظهر البنية المقترحة مقاييس أداء متفوقة، محققة 100% دقة، وموثوقية، واسترجاع، ودرجات F1 عبر مجموعات بيانات مختلفة، بينما تظهر أيضًا انخفاضًا ملحوظًا في التعقيد الحسابي (FLOPs) من 0.11 GFLOPs إلى 0.01 GFLOPs. يؤكد المؤلفون أن نموذجهم يحتفظ بالخصائص الأساسية لشبكات الكبسولات، مثل تمثيل الوعي بالوضع، دون العبء الحسابي المرتبط بالتوجيه الديناميكي التقليدي. بالإضافة إلى ذلك، تؤكد تحليلات تسرب البيانات الدقيقة على قوة أداء النموذج، مما يشير إلى قدرات تعميم حقيقية. بشكل عام، لا يعزز النموذج المقترح دقة التصنيف فحسب، بل يحسن أيضًا الكفاءة، مما يجعله أداة واعدة للكشف الآلي عن سرطان الرئة.

القيود

يظهر الأسلوب المقترح أداءً واعدًا؛ ومع ذلك، فإنه يواجه قيودًا كبيرة خلال التحقق عبر مجموعات البيانات، خاصة بين مجموعتي بيانات IQ-OTHNCCD وLIDC-IDRI، حيث ينخفض الأداء إلى حوالي 33%. يُعزى هذا الانخفاض إلى اختلافات في بروتوكولات التصوير، وتوزيعات التباين، ومعايير التوصيف، مما يشير إلى وجود تحولات في المجال. تؤكد تحليل توزيع الميزات باستخدام t-SNE هذا، كاشفة عن فصل واضح بين مجموعتي البيانات دون تداخل في مساحة الميزات، مما يشير إلى أن النموذج يتعلم تمثيلات محددة لمجموعة البيانات بدلاً من ميزات غير متغيرة عبر المجالات.

علاوة على ذلك، يتناقض التجمع المضغوط لعينات IQ مع التوزيع المتناثر لعينات LIDC، مما يبرز تأثير تباين البيانات وظروف الاكتساب على أداء النموذج. تؤكد هذه النتائج على ضرورة دمج تقنيات التكيف مع المجال في الأعمال المستقبلية للتخفيف من القيود المحددة وتعزيز قوة النموذج عبر مجموعات بيانات متنوعة.

Journal: Scientific Reports, Volume: 16, Issue: 1
DOI: https://doi.org/10.1038/s41598-026-49378-2
PMID: https://pubmed.ncbi.nlm.nih.gov/42014820
Publication Date: 2026-04-22
Author(s): Ananya Bhattacharee et al.
Primary Topic: AI in cancer detection

Overview

The research paper discusses the development of a lightweight attention (LWA)-based model, specifically an EfficientNetB0 architecture combined with a Capsule-inspired feature encoding module, aimed at improving lung cancer detection. Traditional Convolutional Neural Networks (CNNs) struggle with maintaining spatial relationships among features, which can lead to inefficiencies in deeper layers. The proposed model addresses this issue by utilizing LWA to filter and enhance important features while minimizing redundancy, thus eliminating the need for the computationally intensive routing algorithm typically associated with Capsule Networks (CapsNets). The model successfully classifies computed tomography images into benign, normal, and malignant categories, achieving a perfect F1 score, accuracy, precision, and recall on the test set, with a minimal computational load of 0.01 GFLOPS.

The conclusion emphasizes the pressing need for automated AI systems in lung cancer screening, given the labor-intensive nature of manual assessments. The proposed model demonstrates high efficacy in classifying lung cancer types, with a training time of just 2 minutes and an inference time of 0.1241 seconds. However, the authors acknowledge potential limitations, such as domain adaptation challenges due to varying imaging protocols and the necessity for clinical trust in AI outputs. Future work will focus on expanding the model’s applicability to larger and more diverse datasets, incorporating multi-modal fusion techniques, and employing methods like Adversarial Domain Adaptation to enhance cross-dataset validation.

Introduction

Lung cancer remains a leading cause of mortality in the United States, with a death rate of 20% in males and 21% in females. The disease progresses through four stages, with survival rates diminishing significantly as tumors grow larger. Current diagnostic methods, particularly computed tomography (CT) imaging, are essential for identifying lung nodules, which can be classified as benign or malignant based on various characteristics. However, manual detection by radiologists is labor-intensive and prone to errors, particularly for small benign nodules. This highlights the need for an automated multiclass classifier capable of distinguishing between malignant, normal, and benign nodules.

The research introduces a novel hybrid architecture that integrates EfficientNetB0, a lightweight attention mechanism, and a capsule-inspired feature encoding module, which addresses the limitations of traditional Capsule Networks (CapsNets). While CapsNets have shown promise in lung cancer detection due to their ability to recognize nodules regardless of spatial orientation, they are hindered by complex dynamic routing processes that increase computational costs. The proposed model simplifies this by eliminating dynamic routing and secondary capsules, resulting in reduced computational complexity and faster inference times. The contributions of this work include improved accuracy in multiclass lung cancer classification, outperforming existing state-of-the-art deep learning techniques while maintaining lower computational demands.

Methods

The “Materials and Methods” section outlines the dataset and methodology employed in the study. The dataset utilized is a multiclass collection from Kaggle, specifically the IQ-OTH/NCCD dataset, which includes 110 CT cases categorized into three classes: 55 normal, 15 benign, and 40 malignant cases. The CT images, annotated by radiologists and oncologists from the Iraq-Oncology Teaching Hospital and the National Center for Cancer Diseases, were collected over three months in 2019 and consist of JPEG images depicting various angles of the human chest. Notably, the malignant cases correspond to a total of 561 CT images.

The proposed methodology features an architecture that integrates an EfficientNetB0 as a feature extractor, followed by a lightweight attention mechanism (LWA) and a Capsule Network (CapsNet) without dynamic routing. The input lung CT images are processed through the EfficientNetB0, which retains the spatial dimensions while producing 1280 channels from its last convolutional layer. The experimental setup involved training three variants of CapsNet for 50 epochs, employing early stopping criteria based on validation loss and a learning rate reduction strategy to enhance training efficiency. The models were compiled using the Adam optimizer with a learning rate of \(1 \times 10^{-4}\), and a batch size of 12 was utilized. The first CapsNet variant combines a simple CNN backbone with the CapsNet architecture, incorporating multiple convolutional layers followed by LWA and capsule space projection for classification into the three defined classes.

Results

The results section presents a comparative analysis of various CapsNet variants, including “Simple CNN + CapsNet,” “CapsNet with Dynamic Routing,” and the proposed model. The testing outcomes, summarized in Table 3, indicate that the “Simple CNN + CapsNet” model achieved a test accuracy of 62.81%, with precision, recall, and F1 scores of 50%, 67%, and 55%, respectively. This model exhibited significant misdiagnosis, with 108 out of 242 test cases incorrectly classified, as illustrated in Figure 4(a). The area under the curve (AUC) values for the receiver operating characteristic (ROC) curves were 73%, 68%, and 99% for benign, malignant, and normal CT images, respectively, indicating challenges in classifying the classes distinctly.

In contrast, “CapsNet with Dynamic Routing” showed improved performance metrics, achieving a test accuracy of 62.81%, with 90 misdiagnoses and AUC values of 64%, 78%, and 100% for the respective classes (Figure 5(b)). The proposed model significantly outperformed both previous variants, attaining 100% in test accuracy, precision, recall, and F1 score, as detailed in Table 3. The confusion matrix in Figure 4(c) confirms the model’s ability to perfectly distinguish all three classes, while Figure 5(c) shows AUC values of 100% across all classes. Furthermore, a comparison in Table 4 highlights that the proposed model achieved a training accuracy of 99.48%, a test accuracy of 100%, and a drastically reduced inference time of 0.124 seconds, outperforming the original CapsNet model with dynamic routing, which had a test accuracy of 62.81% and an inference time of 3 seconds.

Discussion

In the discussion section, the authors detail the effectiveness of their proposed model, which integrates a lightweight attention mechanism with EfficientNetB0 and a capsule-inspired feature encoding module for lung cancer classification. The model addresses class imbalance through data augmentation techniques, ensuring a balanced dataset across the three classes: benign, malignant, and normal. The lightweight attention (LWA) mechanism employs a 1 × 1 convolutional layer to compute attention weights, enhancing the model’s ability to focus on relevant features while suppressing non-essential ones. This results in a significant reduction in inference time compared to the EfficientNetB0 baseline, attributed to the streamlined capsule projection that reduces dimensionality and eliminates the need for iterative dynamic routing.

The proposed architecture demonstrates superior performance metrics, achieving 100% accuracy, precision, recall, and F1 scores across various datasets, while also exhibiting a marked reduction in computational complexity (FLOPs) from 0.11 GFLOPs to 0.01 GFLOPs. The authors emphasize that their model maintains the essential properties of capsule networks, such as pose-aware representation, without the computational overhead associated with traditional dynamic routing. Additionally, rigorous data leakage analyses confirm the robustness of the model’s performance, indicating genuine generalization capabilities. Overall, the proposed model not only enhances classification accuracy but also improves efficiency, making it a promising tool for automated lung cancer detection.

Limitations

The proposed method demonstrates promising performance; however, it encounters significant limitations during cross-dataset validation, particularly between the IQ-OTHNCCD and LIDC-IDRI datasets, where performance drops to approximately 33%. This decline is attributed to variations in imaging protocols, contrast distributions, and annotation criteria, suggesting the presence of domain shifts. The t-SNE feature distribution analysis confirms this, revealing a distinct separation between the two datasets with no overlap in the feature space, indicating that the model is learning dataset-specific representations rather than domain-invariant features.

Furthermore, the compact clustering of IQ samples contrasts with the dispersed distribution of LIDC samples, highlighting the impact of data variability and acquisition conditions on model performance. These findings underscore the necessity for integrating domain adaptation techniques in future work to mitigate the identified limitations and enhance the model’s robustness across diverse datasets.