Lesion Segmentation Based Mathematical Model Empowering By Deep Learning
| dc.contributor.author | ميسه، اروى | |
| dc.contributor.author | يمبعي، إكرام | |
| dc.date.accessioned | 2026-10-15T07:51:20Z | |
| dc.date.issued | 2026 | |
| dc.description | مذكرة ماستر كيمياء | |
| dc.description.abstract | Accurate identification of the Inferior Alveolar Canal (IAC) and impacted third molars in dental imaging is critical for the safe surgical removal of wisdom teeth. This task remains particularly challenging due to severe class imbalance the IAC accounts for less than 0.2% of total image pixels as well as the inherently low contrast characteristic of dental radiographic scans. This study presents a comparative evaluation of six deep learning architectures for multi-class segmentation on the ToothFairy3 dataset, ranging from a baseline U-Net to a SegFormer(MiT-B2) encoder pretrained on ImageNet. The methodology incorporates a label remapping scheme ({0, 3, 4, 38, 48} → {0, 1, 2, 3, 4}), a volume-grouped train/validation split derived from a structured manifest (62,445 training slices and 7,468 validation slices), a composite loss function combining cross-entropy with class-weighted foreground soft Dice loss, mixed-precision training, and an auxiliary Watershed-derived boundary channel. The best-performing configuration a SegFormer (MiT-B2) encoder with ImageNet pre-training, trained in two sequential stages with a linear learning-rate warm-up achieved a validation mean foreground Dice score of 0.8170, representing a substantial improvement over the baseline U-Net (Dice = 0.6638). Class-wise improvements for the IAC were +0.095 (left IAC) and +0.106 (right IAC), corresponding to relative gains of +13.8% and +15.7%, respectively. A U-Net with a ResNet-34 encoder achieved a Dice score of 0.7979, while its hybrid counterpart incorporating the Watershed boundary channel reached 0.7884. Notably, two initial SegFormer variants trained using the standard U-Net learning-rate schedule (peak learning rate = 510−4, no warm-up) failed to converge, yielding a foreground Dice loss of −0.2256. In contrast, configurations trained with a 5-epoch linear warm-up and a reduced learning rate (110−4) converged stably, achieving foreground Dice scores of 0.8170 and 0.8091, underscoring the importance of careful hyperparameter tuning for transformer-based encoders. A 2*2 ablation study was conducted to isolate the contribution of each design choice.ImageNet pretraining emerged as the dominant factor, contributing +0.134 Dice in the absence of the Watershed channel and +0.111 Dice when combined with it. The Watershed boundary channel alone provided a modest gain of +0.013 Dice in the from-scratch setting, but yielded a slight negative effect (−0.010 Dice) when combined with pretraining, with an interaction term of −0.023, indicating that pretraining accounts for the majority of the observed performancegain. A deterministic reproducibility check confirmed that repeated training of the same configuration yielded identical per-class Dice scores to four decimal places. Overall, the results demonstrate that transformer-based encoders outperform strong con-volutional baselines only when trained with appropriately reduced learning rates (1 ∗ 10−4 instead of 5 ∗ 10−4) and a short warm-up phase (five epochs). All code, trained model checkpoints, and evaluation results are made publicly available through reproducible Kaggle notebooks.عدّ التحديد الدقيق لـ القناة السنخية السفلية (Inferior Alveolar Canal - IAC) وأضراس العقل المنطمرة في الصور السنية أمرًا بالغ الأهمية لضمان الإزالة الجراحية الآمنة لأضراس العقل. وتُعد هذه المهمة من التحديات الكبيرة بسبب عدم توازن الفئات بشكل حاد، حيث تمثل القناة السنخية السفلية أقل من 0.2٪ من إجمالي بكسلات الصورة، بالإضافة إلى انخفاض التباين الطبيعي في صور الأشعة السنية. تقدم هذه الدراسة تقييمًا مقارنًا لستة نماذج من التعلم العميق مخصصة للتجزئة متعددة الفئات باستخدام مجموعة بيانات ToothFairy3، بدءًا من نموذج U-Net الأساسي وصولًا إلى نموذج SegFormer MiT-B2 المزود بمُشفِّر مدرَّب مسبقًا على بيانات ImageNet.تضمنت المنهجية إعادة ترميز الفئات)({0,3,4,38,48}→{0,1,2,3,4})، وتقسيمًا لمجموعات التدريب والتحقق اعتمادًا على المجلدات الأصلية للبيانات (62,445 شريحة للتدريب و7,468 شريحة للتحقق)، بالإضافة إلى دالة خسارة مركبة تجمع بين Cross-Entropy Loss وSoft Dice Loss الموزون للفئات الأمامية، مع استخدام التدريب بالدقة المختلطة (Mixed Precision Training) وإضافة قناة حدودية مشتقة من خوارزمية .Watershed حقق أفضل نموذج، وهو SegFormer (MiT-B2) المدرب مسبقًا على ImageNet والمُدرَّب على مرحلتين متتاليتين مع إحماء خطي لمعدل التعلم (Linear Learning Rate Warm-up)، متوسط معامل Dice للفئات الأمامية بلغ 0.8170 على مجموعة التحقق، وهو ما يمثل تحسنًا ملحوظًا مقارنة بنموذج U-Net الأساسي الذي حقق 0.6638. وعلى مستوى الفئات الفردية، تحسنت نتائج القناة السنخية السفلية بمقدار +0.095 للقناة اليسرى و**+0.106** للقناة اليمنى، بما يعادل زيادات نسبية قدرها 13.8٪ و15.7٪ على التوالي. كما حقق نموذج U-Net المزود بمُشفِّر ResNet-34 قيمة Dice بلغت 0.7979، بينما حققت النسخة الهجينة التي أُضيفت إليها قناة الحدود المستخرجة بواسطة Watershed قيمة 0.7884 ومن الجدير بالذكر أن نسختين أوليتين من نموذج SegFormer تم تدريبهما باستخدام جدول معدل التعلم القياسي الخاص بـ U-Net (بمعدل تعلم أقصى قدره 5×10−4 ومن دون مرحلة إحماء) فشلتا في الوصول إلى التقارب، حيث سجلتا خسارة Dice للفئات الأمامية مقدارها -0.2256. في المقابل، فإن النماذج التي استُخدم معها إحماء خطي لمدة خمس حقب تدريبية (Epochs) ومعدل تعلم أقل قدره - 1×10−4 تقاربت بصورة مستقرة وحققت درجات Dice بلغت 0.8170 و0.8091، مما يؤكد أهمية الضبط الدقيق للمعاملات الفائقة عند استخدام المشفِّرات المعتمدة على المحولات (Transformers). كما أُجريت دراسة استبعادية (Ablation Study) بتصميم 2×2 لعزل تأثير كل عنصر من عناصر التصميم. وأظهرت النتائج أن التدريب المسبق على ImageNet كان العامل الأكثر تأثيرًا، حيث ساهم بزيادة قدرها +0.134 في Dice عند عدم استخدام قناة Watershed، و+0.111 عند استخدامها. أما قناة الحدود المستخرجة بواسطة Watershed فقد قدمت تحسنًا محدودًا بلغ +0.013 في حالة التدريب من الصفر، لكنها أظهرت تأثيرًا سلبيًا طفيفًا (-0.010 Dice) عند دمجها مع التدريب المسبق، مع قيمة تفاعل بلغت -0.023، مما يشير إلى أن معظم التحسن المحقق يعود إلى التدريب المسبق أكثر من مساهمة قناة الحدود. وللتحقق من إمكانية إعادة إنتاج النتائج، أُجري اختبار حتمي للتكرار (Deterministic Reproducibility Check)، حيث أظهرت عمليات التدريب المتكررة للنموذج نفسه تطابقًا في قيم Dice الخاصة بكل فئة حتى أربع منازل عشرية. بشكل عام، تُظهر النتائج أن المشفِّرات المعتمدة على المحولات (Transformer-based Encoders) تتفوق على النماذج الالتفافية التقليدية القوية، ولكن فقط عند تدريبها باستخدام معدلات تعلم منخفضة بشكل مناسب1×10−4 بدلًا من 5×10−4 مع مرحلة إحماء قصيرة مدتها خمس حقب تدريبية. كما تم إتاحة جميع الأكواد البرمجية، والنماذج المدربة، ونتائج التقييم للعامة من خلال دفاتر عمل قابلة لإعادة الإنتاج على منصة Kaggle. | |
| dc.identifier.citation | يمبعي، إكرام.ميسه، اروى.Molecular Spectroscopy. Pedagogical publication.Department of computre.Faculty of Exact Sciences.University of El Oued, 2025 | |
| dc.identifier.uri | https://archives.univ-eloued.dz/handle/123456789/42916 | |
| dc.language.iso | fr | |
| dc.publisher | University of El Oued جامعة الوادي | |
| dc.subject | مجموعة بيانات طب الأسنان،ToothFairy3، العصب السنخي السفلي، ضرس العقل، الدلالات التجزئة، U-Net، SegFormer، التعلم الانتقالي، مستجمعات المياه، اختلال التوازن الطبقي، التعلم العميق | |
| dc.subject | dental dataset | |
| dc.subject | ToothFairy3 | |
| dc.subject | Inferior Alveolar Nerve | |
| dc.subject | Wisdom Tooth | |
| dc.subject | Semantic Segmentation | |
| dc.subject | U-Net | |
| dc.subject | SegFormer | |
| dc.subject | Transfer Learning | |
| dc.subject | Watershed | |
| dc.subject | Class Imbalance | |
| dc.subject | Deep Learning | |
| dc.title | Lesion Segmentation Based Mathematical Model Empowering By Deep Learning | |
| dc.type | master |