DOI: https://doi.org/10.1038/s41524-025-01573-x
تاريخ النشر: 2025-04-05
المؤلف: Lane E. Schultz وآخرون
الموضوع الرئيسي: تعلم الآلة في علوم المواد
نظرة عامة
في هذا القسم، يؤكد المؤلفون على أهمية فهم نطاق التطبيق لنماذج التعلم الآلي لضمان دقة وموثوقية توقعاتهم. يقدمون نهجًا جديدًا لتقييم نطاقات النماذج، والذي يستخدم تقدير كثافة النواة لتقييم المسافة بين نقاط البيانات في فضاء الميزات. هذه الطريقة تحدد بفعالية حدود النطاق عبر أنواع النماذج المختلفة ومجموعات بيانات خصائص المواد.
تكشف النتائج أن المجموعات الكيميائية، التي تعتبر تقليديًا غير مرتبطة بناءً على المعرفة الكيميائية الحالية، يمكن أن تظهر اختلافات كبيرة عند تقييمها باستخدام المقياس المقترح. علاوة على ذلك، يثبت المؤلفون وجود علاقة بين مقاييس الاختلاف العالية وأداء النموذج الضعيف، والذي يتميز بوجود بقايا كبيرة وتقديرات عدم يقين غير موثوقة. لتسهيل التطبيق العملي، يقدمون أدوات آلية تسمح للباحثين بتحديد عتبات الاختلاف المناسبة، مما يمكّن من تصنيف التوقعات الجديدة كإما ضمن النطاق أو خارج النطاق.
مقدمة
تستعرض المقدمة تطوير ووظائف نموذج مصنف النطاق، الذي يُشار إليه بـ $M_{\text{dom}}$، والذي يستخدم قيمة قطع $d_t$ لتصنيف المدخلات إلى فئتين: $c_{\text{ID}}$ و $c_{\text{OD}}$. تعتمد توقعات النموذج على قيمة المدخل $d$، حيث تعطي القيم التي تقل عن $d_t$ التسمية $c_{\text{ID}}$ والقيم المتساوية أو الأعلى تعطي $c_{\text{OD}}$. يتم اختيار قيمة القطع $d_t$ من الفترة [0، 1] ويتم تحسينها لتعظيم المتوسط التوافقي للدقة والاسترجاع (درجة F1) عبر بيانات خارج الحقيبة (OOB). تتضمن عملية التدريب توليد تسميات الفئات لبيانات OOB وقياس مقاييس الأداء مثل الإيجابيات الحقيقية (TP) والسلبيات الحقيقية (TN) والإيجابيات الزائفة (FP) والسلبيات الزائفة (FN) لتقييم فعالية النموذج.
يبرر المؤلفون اختيارهم لنموذج أبسط بدلاً من أساليب التعلم الآلي الأكثر تعقيدًا لـ $M_{\text{dom}}$، مشيرين إلى المخاوف بشأن الإفراط في التكيف بسبب البيانات المحدودة والرغبة في قابلية التكرار في البحث. يحددون أربعة سيناريوهات فشل محتملة قد تقوض توقعات النموذج، بما في ذلك مشكلات مع النموذج التنبؤي الأساسي، وعدم الدقة في تقدير عدم اليقين، وعدم كفاية التجميع لتوليد التسميات، والتحديات مع تقدير كثافة النواة (KDE) في الفضاءات عالية الأبعاد. يختتم القسم بالتأكيد على متانة $M_{\text{dom}}$ تحت الظروف العادية، مع الاعتراف أيضًا بالحاجة إلى اعتبار دقيق لاختيار الميزات واستراتيجيات تقييم النموذج لضمان توقعات نطاق موثوقة.
الطرق
في هذا القسم، يحلل المؤلفون تعقيد الوقت لطريقتهم المقترحة بالنسبة لعدد الميزات ونقاط البيانات. يقارنون أداء طريقتهم مع التقنيات المعتمدة، وبشكل خاص تنفيذات scikit-learn لتقدير كثافة النواة (KDE)، والتي تتوسع كـ $O(n \log(n))$ باستخدام خوارزمية Ball-Tree أو $O(\log(n))$ مع خوارزمية KD Tree. ومع ذلك، بسبب تضمين التجميع المسبق، والتحقق المتقاطع، وأنواع النماذج المختلفة، يجد المؤلفون أن طريقتهم تتوسع تقريبًا كـ $O(n^2)$، كما تشير التقييمات التجريبية لأوقات الحساب.
يكشف التحليل الإضافي أن توسع الطريقة بالنسبة لعدد الميزات هو تقريبًا خطي، أو $O(n)$، عند فحص مجموعات بيانات ذات عدد ميزات متنوع (حتى 1000 ميزة). يشير المؤلفون إلى أنه بينما لا يؤثر تضمين ميزات إضافية تتجاوز 25 بشكل كبير على مقياس التقييم $E_{RMSE}/\sigma_y$، فإن اختيار نوع النموذج (بشكل خاص Random Forest) يؤثر على العتبة لـ $M_{dom}$ والمقاييس ذات الصلة مثل الدقة. تم إجراء التجارب على مجموعات حاسوبية منفصلة، مما يضمن وجود أجهزة متسقة ولكن مع الاعتراف بالاختلاف المحتمل في النتائج عبر أنظمة مختلفة.
النتائج
يستعرض قسم النتائج في الورقة نهجًا جديدًا لتحديد نطاقات تطبيق نماذج التعلم الآلي، مؤكدًا على أهمية المصطلحات الأساسية والمفاهيم الرياضية لفهم النتائج اللاحقة. يوضح المؤلفون أن أدواتهم المفاهيمية تميز بفعالية بين المواد خارج النطاق (OD) وداخل النطاق (ID) باستخدام معايير مختلفة، بما في ذلك الخصائص الكيميائية وبقايا التوقعات. ومن الجدير بالذكر أن المقياس \( d \) وُجد أنه يسهل فصل المواد OD عن المواد ID، على الرغم من أن الفصل لم يكن خاليًا من العيوب.
يستكشف التحليل المزيد من الطرق العددية الآلية التي لا تعتمد على المعرفة الكيميائية السابقة، موضحًا أن \( d \) يمكن أن يميز بفعالية بين حالات الخطأ العالية والمنخفضة، كما تشير المقاييس مثل \( E \left| y – \hat{y} \right| / MAD_y \) و \( E RMSE / \sigma_y \). تلخص النتائج في الجدول 2، الذي يبرز التوازن بين الدقة والاسترجاع في التوقعات. يحذر المؤلفون من أن الدقة المنخفضة مع الاسترجاع العالي قد تؤدي إلى تصنيف خاطئ للتوقعات الموثوقة، بينما تشير الدقة المنخفضة مع الاسترجاع العالي إلى عدد كبير من نقاط البيانات التي تم تصنيفها بشكل خاطئ كـ ID. يدعون إلى ضبط العتبة \( d_{tc} \) لتحقيق مستويات الدقة المطلوبة. بالإضافة إلى ذلك، يقدمون مقياس AUC-Baseline، الذي يأخذ في الاعتبار قيم متعددة لـ \( d \) ويقدم تقييمًا أكثر دقة لأداء النموذج، كما هو موضح في التصورات المرفقة (الشكل 1).
المناقشة
في هذا القسم، يناقش المؤلفون مزايا تقدير كثافة النواة (KDE) وتطبيقه في تصنيف نقاط البيانات كإما داخل النطاق (ID) أو خارج النطاق (OD). يوفر KDE وسيلة سريعة وفعالة لتقييم كثافة البيانات، والتي يمكن أن تكون مقياسًا للاختلاف، وهو مفيد بشكل خاص لمجموعات بيانات علوم المواد. يبرز المؤلفون أن بحثهم يبني على أعمال سابقة استخدمت KDE للكشف عن أن العديد من التقييمات التي اعتبرت سابقًا كاستقراء كانت في الواقع حالات من الاستيفاء. يقترحون إطارًا جديدًا لتصنيف ID/OD بناءً على أخطاء التوقع، مستخدمين KDE لتمييز بفعالية بين نقاط البيانات ID وOD.
يحدد المؤلفون أربعة أنواع متميزة من النطاقات لتصنيف ID/OD، بناءً على التشابه الكيميائي، والبقايا، وتقديرات عدم اليقين. يوضحون أن حالات الاختبار ذات احتمالات KDE المنخفضة تميل إلى أن تكون كيميائيًا غير متشابهة وتظهر بقايا كبيرة، مما يتماشى مع السلوك المتوقع لطريقة فعالة لتحديد النطاق. توضح الورقة النماذج المستخدمة في الانحدار الخاص بالخصائص، وتقدير عدم اليقين، ومقاييس الاختلاف، مع التأكيد على الاعتماد المتبادل لهذه النماذج في توليد نموذج تصنيف النطاق (M_dom). يخلص المؤلفون إلى أن نهجهم، الذي يستفيد من KDE، يوفر رؤى قيمة حول نطاقات تطبيق النموذج ويكون قابلًا للتطبيق على نطاق واسع في مهام الانحدار التي تتضمن بيانات جدولة.
DOI: https://doi.org/10.1038/s41524-025-01573-x
Publication Date: 2025-04-05
Author(s): Lane E. Schultz et al.
Primary Topic: Machine Learning in Materials Science
Overview
In this section, the authors emphasize the importance of understanding the domain of applicability for machine learning models to ensure their predictions are accurate and reliable. They introduce a novel approach for assessing model domains, which utilizes kernel density estimation to evaluate the distance between data points in feature space. This method effectively identifies domain boundaries across various model types and material property datasets.
The findings reveal that chemical groups, which are traditionally deemed unrelated based on existing chemical knowledge, can exhibit significant dissimilarities when assessed using the proposed measure. Furthermore, the authors establish a correlation between high dissimilarity measures and poor model performance, characterized by large residuals and unreliable uncertainty estimates. To facilitate practical application, they provide automated tools that allow researchers to set appropriate dissimilarity thresholds, enabling the classification of new predictions as either in-domain or out-of-domain.
Introduction
The introduction outlines the development and functionality of a domain classifier model, denoted as $M_{\text{dom}}$, which utilizes a cutoff value $d_t$ to categorize inputs into two classes: $c_{\text{ID}}$ and $c_{\text{OD}}$. The model’s predictions are based on the input value $d$, where values below $d_t$ yield the label $c_{\text{ID}}$ and values equal to or above yield $c_{\text{OD}}$. The cutoff $d_t$ is selected from the interval [0, 1] and is optimized to maximize the harmonic mean of precision and recall (F1 score) across out-of-bag (OOB) data. The training process involves generating class labels for OOB data and measuring performance metrics such as True Positives (TP), True Negatives (TN), False Positives (FP), and False Negatives (FN) to evaluate the model’s effectiveness.
The authors justify their choice of a simpler model over more complex machine learning approaches for $M_{\text{dom}}$, citing concerns about overfitting due to limited data and the desire for reproducibility in research. They identify four potential failure scenarios that could undermine the model’s predictions, including issues with the underlying predictive model, inaccuracies in uncertainty estimation, inadequate clustering for label generation, and challenges with kernel density estimation (KDE) in high-dimensional spaces. The section concludes by emphasizing the robustness of $M_{\text{dom}}$ under normal conditions, while also acknowledging the need for careful consideration of feature selection and model evaluation strategies to ensure reliable domain predictions.
Methods
In this section, the authors analyze the time complexity of their proposed method in relation to the number of features and data points. They compare their method’s performance with established techniques, specifically the scikit-learn implementations of Kernel Density Estimation (KDE), which scale as $O(n \log(n))$ using the Ball-Tree algorithm or $O(\log(n))$ with the KD Tree algorithm. However, due to the inclusion of pre-clustering, cross-validation, and various model types, the authors find that their method scales approximately as $O(n^2)$, as indicated by empirical assessments of computation times.
Further analysis reveals that the method’s scaling with respect to the number of features is approximately linear, or $O(n)$, when examining datasets with varying feature counts (up to 1000 features). The authors note that while the inclusion of additional features beyond 25 does not significantly impact the evaluation metric $E_{RMSE}/\sigma_y$, the choice of model type (specifically Random Forest) influences the threshold for $M_{dom}$ and related metrics such as precision. The experiments were conducted on separate computer sets, ensuring consistent hardware but acknowledging potential variability in results across different systems.
Results
The results section of the paper outlines a novel approach for determining the applicability domains of machine learning models, emphasizing the importance of foundational terminology and mathematical concepts for understanding subsequent findings. The authors demonstrate that their conceptual tools effectively distinguish between out-of-domain (OD) and in-domain (ID) materials using various criteria, including chemical properties and prediction residuals. Notably, the metric \( d \) was found to facilitate the separation of OD materials from ID materials, although the separation was not flawless.
The analysis further explores automated numerical methods that do not rely on prior chemical knowledge, showing that \( d \) can effectively differentiate between high and low error cases, as indicated by metrics such as \( E \left| y – \hat{y} \right| / MAD_y \) and \( E RMSE / \sigma_y \). The results are summarized in Table 2, which highlights the trade-offs between precision and recall in predictions. The authors caution that low precision with high recall may lead to misclassification of reliable predictions, while low recall with high precision indicates a significant number of data points misclassified as ID. They advocate for adjusting the threshold \( d_{tc} \) to achieve desired precision levels. Additionally, they introduce the AUC-Baseline metric, which accounts for multiple values of \( d \) and provides a more nuanced evaluation of model performance, as illustrated in the accompanying visualizations (Fig. 1).
Discussion
In this section, the authors discuss the advantages of kernel density estimation (KDE) and its application in classifying data points as either in-domain (ID) or out-of-domain (OD). KDE provides a fast and effective means to evaluate data density, which can serve as a measure of dissimilarity, particularly beneficial for materials science datasets. The authors highlight that their research builds upon previous work that utilized KDE to reveal that many assessments previously deemed as extrapolation were actually instances of interpolation. They propose a novel framework for ID/OD classification based on prediction errors, employing KDE to differentiate between ID and OD data points effectively.
The authors define four distinct domain types for ID/OD classification, based on chemical similarity, residuals, and uncertainty estimates. They demonstrate that test cases with low KDE likelihoods tend to be chemically dissimilar and exhibit large residuals, aligning with the expected behavior of an effective domain determination method. The paper outlines the models used for property regression, uncertainty estimation, and dissimilarity measures, emphasizing the interdependence of these models in generating the domain classification model (M_dom). The authors conclude that their approach, leveraging KDE, provides valuable insights into model applicability domains and is broadly applicable to regression tasks involving tabular data.
