تقييم معايرة نماذج تشخيص الأعطال العميقة تحت تحول التوزيع Evaluating calibration of deep fault diagnostic models under distribution shift

شارك:
المجلة: Computers in Industry، المجلد: 171
DOI: https://doi.org/10.1016/j.compind.2025.104334
تاريخ النشر: 2025-07-04
المؤلف: Yiming Xiao وآخرون
الموضوع الرئيسي: تقنيات تشخيص أعطال الآلات

نظرة عامة

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

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

مقدمة

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

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

طرق

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

تختار الورقة سبع طرق للمعايرة، بما في ذلك طريقة مرجعية (Vanilla) وتقنيات معايرة مختلفة، للتحليل المقارن بناءً على انتشارها وقابليتها للتطبيق. يستخدم الإعداد التجريبي بنية Reset18، مع معلمات مثل حجم دفعة 64، و30 دورة، وتعديلات محددة على معدل التعلم. تستكشف الدراسة التجريبية أيضًا السيناريوهات التي قد تتبع فيها مجموعات التدريب والاختبار توزيعات مختلفة، خاصة في سياقات تشخيص الأعطال. تؤكد على الحاجة إلى نماذج معايرة لإنتاج توزيعات متوقعة أكثر تسطيحًا لعينات خارج التوزيع (OOD) مقارنة بعينات داخل التوزيع (ID)، ولإظهار ثقة منخفضة في التوقعات مع حدوث التحولات التوزيعية، مما يحافظ على خطأ معايرة منخفض.

نقاش

في هذا القسم، يناقش المؤلفون أهمية معايرة النموذج في التعلم العميق، خاصة في سياق تشخيص الأعطال الميكانيكية. يعرفون المعايرة على أنها التوافق بين الاحتمالات المتوقعة والنتائج الفعلية، مشددين على أن النموذج المعاير بشكل جيد يجب أن ينتج توقعات حيث يتوافق مستوى الثقة بدقة مع احتمال الصحة. يقدم المؤلفون مقاييس مختلفة لتقييم جودة المعايرة، بما في ذلك مخططات الموثوقية وخطأ المعايرة المتوقع (ECE)، التي تقيم كميًا الفرق بين الدقة والثقة عبر صناديق الثقة. يبرزون قيود المقاييس التقليدية ويقترحون طرقًا بديلة، مثل تنعيم التسميات وسقوط مونت كارلو، لتعزيز المعايرة.

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

Journal: Computers in Industry, Volume: 171
DOI: https://doi.org/10.1016/j.compind.2025.104334
Publication Date: 2025-07-04
Author(s): Yiming Xiao et al.
Primary Topic: Machine Fault Diagnosis Techniques

Overview

The research paper emphasizes the critical need for model calibration in intelligent fault diagnosis, highlighting that while accuracy is essential, it can mislead users regarding the reliability of model predictions. The authors argue that softmax probabilities often fail to represent true prediction confidence, which is particularly problematic in scenarios involving out-of-distribution (OOD) and distribution-shifted inputs. A well-calibrated model not only aids in risk assessment during low-confidence predictions but also enhances user trust in black-box models. The paper evaluates various calibration methods, revealing that deep ensemble (DE) techniques show promise as the most effective calibration approach, particularly in maintaining robustness against distributional shifts.

In the conclusion, the authors advocate for a broader focus on calibration alongside accuracy in mechanical fault diagnosis research. They recommend evaluating calibration methods using both in-distribution (ID) and OOD samples, as the performance of these methods can vary significantly based on the type of input data. Key findings include the degradation of calibration quality with increasing distributional shifts, the independence of calibration performance between ID and shifted samples, and the importance of low-confidence ID samples for OOD detection. The paper outlines future research directions, including the development of versatile DE methods, the integration of conformal prediction for uncertainty estimation, and the exploration of additional factors influencing calibration performance.

Introduction

In the introduction of this research paper, the authors highlight the significant advancements made in mechanical fault diagnosis through deep learning, particularly in areas such as few-shot and cross-domain fault diagnosis, as well as in environments with substantial noise interference. The focus of recent studies has been on developing robust network architectures and comprehensive loss functions to improve diagnostic accuracy. However, the authors argue that an exclusive emphasis on accuracy can lead to an over-reliance on models without a clear understanding of their trustworthiness, which raises ethical and safety concerns. They advocate for the necessity of confidence estimation in diagnostic models, emphasizing that models should not only deliver accurate predictions but also indicate the reliability of those predictions.

The paper discusses the issue of model miscalibration, where the softmax output of deep learning models does not accurately reflect the true likelihood of predictions, often resulting in overconfident predictions. This miscalibration is exacerbated by the tendency of deep models to overfit, particularly when trained with negative log likelihood (NLL) loss. The authors note that existing calibration methods, such as temperature scaling and focal loss, aim to address this issue by flattening predicted distributions to enhance trustworthiness. They also point out the challenges posed by out-of-distribution (OOD) inputs and distribution shifts in fault diagnosis, which necessitate well-calibrated models to assess prediction risks accurately. The paper aims to explore the calibration of deep diagnostic models across various tasks, comparing the effectiveness of different calibration methods, particularly in OOD scenarios, and contributing to the understanding of model reliability in mechanical fault diagnosis.

Methods

The section outlines the evaluation of various calibration methods for enhancing model performance, categorizing them into four distinct groups: post-hoc methods, regularization methods, data augmentation methods, and uncertainty estimation methods. Post-hoc methods, such as temperature scaling (TS), adjust predicted probabilities by scaling model logits based on a validation set. Regularization methods, including focal loss (FL) and confidence penalty (CP), aim to balance the negative log-likelihood (NLL) loss with entropy maximization, with specific hyperparameters chosen based on prior experimental results. Data augmentation methods introduce noise to training samples to reduce model confidence, while uncertainty estimation methods leverage Bayesian variational inference or deep ensembles to mitigate epistemic uncertainty.

The paper selects seven calibration methods, including a benchmark method (Vanilla) and various calibration techniques, for comparative analysis based on their prevalence and applicability. The experimental setup employs a Reset18 architecture, with hyperparameters such as a batch size of 64, 30 epochs, and specific learning rate adjustments. The experimental study further explores scenarios where the training and test sets may follow different distributions, particularly in fault diagnosis contexts. It emphasizes the need for calibrated models to produce flatter predicted distributions for out-of-distribution (OOD) samples compared to in-distribution (ID) samples, and to exhibit reduced confidence in predictions as distribution shifts occur, thereby maintaining low calibration error.

Discussion

In this section, the authors discuss the importance of model calibration in deep learning, particularly in the context of mechanical fault diagnosis. They define calibration as the alignment between predicted probabilities and actual outcomes, emphasizing that a well-calibrated model should yield predictions where the confidence level corresponds accurately to the likelihood of correctness. The authors introduce various metrics for evaluating calibration quality, including reliability diagrams and Expected Calibration Error (ECE), which quantitatively assess the difference between accuracy and confidence across confidence bins. They highlight the limitations of traditional metrics and propose alternative methods, such as label smoothing and Monte Carlo Dropout, to enhance calibration.

The experimental results presented demonstrate the performance of different calibration methods across various scenarios, including in-distribution (ID) and out-of-distribution (OOD) samples. The findings indicate that calibration quality deteriorates with increasing distribution shifts, and that methods yielding better calibration for ID samples do not necessarily perform well under shifted conditions. Notably, Deep Ensemble (DE) emerges as the most effective method, exhibiting superior classification and calibration performance, particularly in the presence of noise and distribution shifts. The authors conclude by outlining future research directions, including the development of more versatile DE methods and the exploration of conformal prediction for uncertainty estimation, aiming to enhance calibration strategies in mechanical fault diagnosis.