DOI: https://doi.org/10.1038/s41598-026-41851-2
PMID: https://pubmed.ncbi.nlm.nih.gov/41748725
تاريخ النشر: 2026-02-26
المؤلف: Zhiqing Guo وآخرون
الموضوع الرئيسي: أبحاث خوارزميات التجميع المتقدمة
نظرة عامة
تقدم ورقة البحث خوارزمية محسنة لجيران الأقرب (GWKNN) مصممة لمعالجة قيود KNN التقليدي في فضاءات الميزات عالية الأبعاد وتوزيعات الفئات غير المتوازنة. يعاني KNN التقليدي من تدهور قياسات المسافة والتحيز في القرار بسبب آلية التصويت ذات الوزن المتساوي، مما يمكن أن يؤدي إلى نتائج تصنيف غير عادلة. للتغلب على هذه التحديات، تتضمن GWKNN إعادة بناء مقياس G باستخدام مُحسِّن الذئب الرمادي (GWO) لتحسين مصفوفة المسافة بشكل تكيفي، مما يحسن تمثيل التشابه وقابلية فصل الجيران في بيئات البيانات المعقدة. بالإضافة إلى ذلك، تستخدم استراتيجية وزن تكرار الفئة العكسية للتخفيف من تأثير الفئات الغالبة في عملية التصويت، مما يعزز تمثيل عينات الفئة الأقل.
تظهر النتائج التجريبية أن GWKNN تتفوق على نماذج التصنيف الكلاسيكية المختلفة من حيث الدقة والاستقرار عبر مجموعات بيانات متنوعة، لا سيما في السيناريوهات التي تتميز بحدود فئات واضحة وتوزيعات غير متوازنة. ومع ذلك، فإن إدخال خوارزمية GWO يزيد من تعقيد الحسابات ومتطلبات الموارد، لا سيما في أحجام العينات الكبيرة أو السياقات عالية الأبعاد. ستركز الأبحاث المستقبلية على دمج خوارزميات تحسين أكثر كفاءة لتخفيف الأعباء الحسابية واستكشاف آليات استخراج الميزات متعددة المقاييس وتخصيص الوزن الديناميكي لتعزيز قدرة GWKNN على التكيف والتمييز في بيئات البيانات المعقدة، مما يزيد من قابليتها للتطبيق العملي في مهام تصنيف البيانات الكبيرة.
مقدمة
تسلط مقدمة الورقة الضوء على التحديات الكبيرة التي تطرحها الزيادة السريعة في أحجام البيانات في مجالات مختلفة، مما يعقد استخراج المعلومات واكتشاف المعرفة بسبب الأبعاد العالية، والتنوع، والهيكلية الجزئية غير المنظمة. تظهر تنقيب البيانات كمنهجية حيوية لكشف الأنماط والعلاقات داخل هذه المجموعات المعقدة من البيانات، حيث يعد التصنيف مهمة رئيسية من مهام التعلم تحت الإشراف. تُلاحظ خوارزمية الجيران الأقرب (KNN) بشكل خاص لبساطتها وفعاليتها؛ ومع ذلك، تواجه قيودًا مثل الحساسية لاختيار $k$، ومقاييس التشابه الثابتة التي تكافح مع البيانات عالية الأبعاد، والتحيز في التصويت في توزيعات الفئات غير المتوازنة.
لمعالجة هذه التحديات، تقدم الورقة خوارزمية KNN محسنة، تُسمى GWKNN، والتي تتضمن آلية إعادة بناء خاصية مقياس G محسّنة بواسطة مُحسِّن الذئب الرمادي (GWO) واستراتيجية تصويت موزونة بتكرار الفئة العكسية. تهدف هذه المقاربة إلى تحسين نمذجة التشابه في فضاءات الميزات المعقدة والتخفيف من تحيز التصويت، مما يعزز دقة التصنيف والاستقرار والتعميم. يقدم المؤلفون ثلاث مساهمات رئيسية: تطوير آلية مقياس G لتحسين ديناميكي لمسافات العينات، وتصميم استراتيجية تصويت لتحسين التعرف على الفئة الأقل، والتحقق التجريبي الشامل عبر 12 مجموعة بيانات متنوعة، مما يوضح أن GWKNN تتفوق على متغيرات KNN التقليدية والمصنفات الكلاسيكية في مقاييس الأداء الرئيسية.
طرق
في هذا القسم، يقيم المؤلفون أداء خوارزمية GWKNN باستخدام 12 مجموعة بيانات من مستودع UCI لتعلم الآلة، تشمل كل من مهام التصنيف الثنائي ومتعدد الفئات. مجموعات البيانات متنوعة من حيث أنواع البيانات والمقاييس، مما يسهل تقييم شامل لقدرة GWKNN على التكيف وفعاليتها. يتم مقارنة أداء GWKNN مع سبعة مصنفات كلاسيكية (KNN، SVM، CART، NBM، LR، BPNN، وRF) من خلال عشرة تجارب متكررة، مما يضمن اتساق مقاييس التقييم. يتم تقديم النتائج في الجدول 4، الذي يوضح متوسط الدقة والانحراف المعياري، ورسم الشكل 3 يوضح توزيع الدقة عبر مجموعات البيانات.
تشير النتائج إلى أن GWKNN تتفوق على معظم المصنفات، حيث تحقق أعلى دقة متوسطة على عدة مجموعات بيانات، بما في ذلك سرطان الثدي، GLIOMA، والأيونوسفير، وتحقق دقة 100% على مجموعة بيانات Banknote. وهذا يشير إلى أن GWKNN تستخدم بفعالية استراتيجيات تحسينها المزدوجة لتعزيز تمييز الجيران الأقرب. ومع ذلك، لا تتفوق باستمرار على نماذج التمييز الخطية أو طرق التجميع على بعض مجموعات البيانات، مثل Carcinom والأرقام، مما يشير إلى أن أدائها يعتمد على هيكل الجوار وتعقيد البيانات. بشكل عام، تظهر GWKNN أداءً تصنيفياً متفوقاً واستقراراً عبر مجموعات بيانات متنوعة، كما يتضح من دقتها المتوسطة التنافسية وتقلبات الخطأ القابلة للإدارة، لا سيما في مجموعات البيانات الصعبة مثل GLIOMA.
نتائج
في هذا القسم، يقدم المؤلفون نتائج التجارب العددية التي أجريت لتقييم فعالية وموثوقية خوارزمية GWKNN المقترحة في مهام التصنيف عبر 12 مجموعة بيانات مرجعية من UCI. تشمل الدراسة تجارب الإزالة لتقييم مساهمات آلية إعادة بناء خاصية مقياس G وآليات وزن تكرار الفئة العكسية. بالإضافة إلى ذلك، يتم مقارنة GWKNN مع عدة خوارزميات تصنيف كلاسيكية تحت إعداد تجريبي موحد لتحديد أدائها النسبي. يتم استخدام اختبارات الدلالة الإحصائية، وبشكل خاص اختبار فريدمان غير المعلمي، لتقييم موثوقية الفروق في الأداء بين الخوارزميات، مع فرضية العدم التي تشير إلى عدم وجود اختلافات منهجية عبر مجموعات البيانات.
تكشف نتائج اختبار فريدمان عن اختلافات ذات دلالة إحصائية في تصنيفات الأداء العامة للخوارزميات (χ² = 39.8191، $p = 1.3632 \times 10^{-6} < \alpha$)، مما يؤدي إلى رفض فرضية العدم. توضح اختبار نمنيي اللاحق ورسم بياني الفرق الحرج (CD) أن GWKNN تحقق أدنى متوسط ترتيب (1.7917)، متفوقة على خوارزميات أخرى مثل الغابة العشوائية (RF) وآلة الدعم الناقل (SVM). من الجدير بالذكر أنه بينما لا يختلف أداء GWKNN بشكل كبير عن RF وSVM، فإنه يظهر تحسينات ذات دلالة إحصائية على الطرق التقليدية للجيران الأقرب وبعض المصنفات الكلاسيكية، مما يؤكد ميزته التنافسية وموثوقيته عبر مجموعات البيانات. تتماشى هذه النتائج مع المقارنات السابقة للدقة، مما يوفر أدلة إحصائية قوية على مزايا GWKNN.
مناقشة
في قسم المناقشة، تقيم الورقة التقدمات في خوارزمية الجيران الأقرب (KNN)، مع التركيز على ثلاثة مجالات رئيسية: الاختيار التكيفي لحجم الجار الأقرب \( k \)، وتعزيز مقاييس التشابه، وتحسين قواعد القرار لتعيين التسمية. تم اقتراح استراتيجيات متنوعة لاختيار \( k \) التكيفي، مثل تعيين \( k \) بناءً على عدد الفئات أو استخدام تقنيات التحقق المتبادل. تسلط الورقة الضوء على أهمية قياس التشابه، مشيرة إلى أن اختيار مقياس المسافة يؤثر بشكل كبير على أداء KNN. استكشفت الدراسات الحديثة تعلم المقاييس المثلى، بما في ذلك استخدام مسافة ماهالانوبس ووزن الانتروبيا الضبابية، لتحسين المتانة ضد الضوضاء.
تقدم الورقة خوارزمية GWKNN المقترحة، التي تدمج استراتيجية إعادة بناء مقياس عام محسّنة عبر مُحسِّن الذئب الرمادي (GWO) وآلية وزن تكرار الفئة العكسية لمعالجة عدم توازن الفئات. تظهر النتائج التجريبية أن GWKNN تحقق باستمرار دقة تصنيف متفوقة واستقرارًا عبر مجموعات بيانات متنوعة مقارنةً بـ KNN التقليدية واستراتيجيات محسنة أخرى. تشير النتائج إلى أن الاستراتيجية المزدوجة لتعلم المقياس والتصويت الموزون تحسن بشكل متكامل كل من جودة مجموعة الجيران الأقرب وعملية اتخاذ القرار، مما يؤدي إلى تحسين الأداء في مجموعات البيانات المعقدة والمتنوعة. تؤكد التحليلات الإحصائية أيضًا موثوقية وفعالية GWKNN، مما يجعلها تقدمًا كبيرًا في منهجيات KNN.
DOI: https://doi.org/10.1038/s41598-026-41851-2
PMID: https://pubmed.ncbi.nlm.nih.gov/41748725
Publication Date: 2026-02-26
Author(s): Zhiqing Guo et al.
Primary Topic: Advanced Clustering Algorithms Research
Overview
The research paper presents an enhanced k-Nearest Neighbors algorithm (GWKNN) designed to address the limitations of traditional KNN in high-dimensional feature spaces and imbalanced class distributions. Traditional KNN suffers from degraded distance measurements and decision bias due to its equal-weight voting mechanism, which can lead to unfair classification outcomes. To overcome these challenges, GWKNN incorporates G metric reconstruction using a grey wolf optimizer (GWO) to adaptively optimize the distance matrix, thereby improving the representation of similarity and neighbor separability in complex data environments. Additionally, it employs an inverse class frequency weighting strategy to mitigate the influence of majority classes in the voting process, enhancing the representation of minority-class samples.
Experimental results demonstrate that GWKNN outperforms various classic classification models in terms of accuracy and stability across diverse datasets, particularly in scenarios characterized by clear class boundaries and imbalanced distributions. However, the introduction of the GWO algorithm increases computational complexity and resource demands, particularly in large sample sizes or high-dimensional contexts. Future research will focus on integrating more efficient optimization algorithms to alleviate computational burdens and exploring multi-scale feature extraction and dynamic weight allocation mechanisms to further enhance GWKNN’s adaptability and discrimination capabilities in complex data environments, thereby increasing its practical applicability in big data classification tasks.
Introduction
The introduction of the paper highlights the significant challenges posed by the rapid growth of data volumes in various domains, which complicates information extraction and knowledge discovery due to high dimensionality, heterogeneity, and partial unstructuredness. Data mining emerges as a vital methodology for uncovering patterns and relationships within these complex datasets, with classification being a key supervised learning task. The k-nearest neighbors (KNN) algorithm is particularly noted for its simplicity and effectiveness; however, it faces limitations such as sensitivity to the choice of $k$, fixed similarity metrics that struggle with high-dimensional data, and voting bias in imbalanced class distributions.
To address these challenges, the paper introduces an enhanced KNN algorithm, termed GWKNN, which incorporates a G-metric attribute reconstruction mechanism optimized by the grey wolf optimizer (GWO) and an inverse class frequency weighted voting strategy. This approach aims to improve similarity modeling in complex feature spaces and mitigate voting bias, thereby enhancing classification accuracy, stability, and generalization. The authors present three main contributions: the development of the G-metric mechanism for dynamic optimization of inter-sample distances, the design of a voting strategy to improve minority-class recognition, and comprehensive experimental validation across 12 diverse datasets, demonstrating that GWKNN outperforms traditional KNN variants and classical classifiers in key performance metrics.
Methods
In this section, the authors evaluate the performance of the GWKNN algorithm using 12 datasets from the UCI Machine Learning Repository, encompassing both binary and multi-class classification tasks. The datasets are diverse in terms of data types and scales, facilitating a comprehensive assessment of GWKNN’s adaptability and effectiveness. The performance of GWKNN is compared against seven classic classifiers (KNN, SVM, CART, NBM, LR, BPNN, and RF) through ten repeated experiments, ensuring consistency in evaluation metrics. Results are presented in Table 4, which details the mean accuracy and standard deviation, and Figure 3 visualizes the accuracy distribution across datasets.
The findings indicate that GWKNN outperforms most classifiers, achieving the highest average accuracy on several datasets, including Breast cancer, GLIOMA, and Ionosphere, and achieving 100% accuracy on the Banknote dataset. This suggests that GWKNN effectively utilizes its dual improvement strategies to enhance nearest neighbor discrimination. However, it does not consistently outperform linear discriminant models or ensemble methods on certain datasets, such as Carcinom and digits, indicating that its performance is contingent on the data’s neighborhood structure and complexity. Overall, GWKNN demonstrates superior classification performance and stability across various datasets, as evidenced by its competitive average accuracy and manageable error fluctuations, particularly in challenging datasets like GLIOMA.
Results
In this section, the authors present the results of numerical experiments conducted to evaluate the effectiveness and robustness of the proposed GWKNN algorithm in classification tasks across 12 UCI benchmark datasets. The study includes ablation experiments to assess the contributions of the G metric attribute reconstruction and class frequency inverse weighting mechanisms. Additionally, GWKNN is compared with several classic classification algorithms under a unified experimental setting to determine its relative performance. Statistical significance tests, specifically the Friedman nonparametric test, are employed to assess the reliability of performance differences among the algorithms, with the null hypothesis indicating no systematic differences across datasets.
The Friedman test results reveal statistically significant differences in the overall performance rankings of the algorithms (χ² = 39.8191, $p = 1.3632 \times 10^{-6} < \alpha$), leading to the rejection of the null hypothesis. The subsequent Nemenyi post-hoc test and the Critical Difference (CD) diagram illustrate that GWKNN achieves the lowest average rank (1.7917), outperforming other algorithms such as Random Forest (RF) and Support Vector Machine (SVM). Notably, while GWKNN's performance is not significantly different from RF and SVM, it shows statistically significant improvements over traditional nearest neighbor methods and some classic classifiers, confirming its competitive edge and robustness across datasets. These findings align with earlier accuracy comparisons, providing strong statistical evidence for the advantages of GWKNN.
Discussion
In the discussion section, the paper evaluates the advancements in the k-nearest neighbors (KNN) algorithm, focusing on three primary areas: adaptive selection of the nearest neighbor size \( k \), enhancement of similarity metrics, and optimization of decision rules for label assignment. Various strategies have been proposed for adaptive \( k \) selection, such as setting \( k \) based on the number of classes or employing cross-validation techniques. The paper highlights the importance of similarity measurement, noting that the choice of distance metric significantly impacts KNN’s performance. Recent studies have explored learning optimal metrics, including the use of Mahalanobis distance and fuzzy entropy weighting, to improve robustness against noise.
The paper introduces the proposed GWKNN algorithm, which integrates a generalized metric reconstruction strategy optimized via the Grey Wolf Optimizer (GWO) and an inverse class frequency weighting mechanism to address class imbalance. Experimental results demonstrate that GWKNN consistently achieves superior classification accuracy and stability across various datasets compared to traditional KNN and other enhanced strategies. The findings indicate that the dual strategy of metric learning and weighted voting synergistically improves both the quality of the nearest neighbor set and the decision-making process, leading to enhanced performance in complex, heterogeneous datasets. Statistical analyses further validate the robustness and effectiveness of GWKNN, establishing it as a significant advancement in KNN methodologies.
