التعلم الجماعي القابل للتفسير باستخدام SHAP لاكتشاف الشذوذ في ERP
Explainable ensemble learning using SHAP for ERP anomaly detection

شارك:
المجلة: Scientific Reports
DOI: https://doi.org/10.1038/s41598-026-57913-4
PMID: https://pubmed.ncbi.nlm.nih.gov/42289525
تاريخ النشر: 2026-06-14
المؤلف: Adiah Qazi وآخرون
الموضوع الرئيسي: الذكاء الاصطناعي القابل للتفسير (XAI)

نظرة عامة

تقدم البحث إطار عمل للتعلم الجماعي القابل للتفسير مصمم لاكتشاف الشذوذ في أنظمة تخطيط موارد المؤسسات (ERP) داخل بيئات التصنيع. على الرغم من الأداء العالي لنماذج الشبكات العصبية الفردية، التي تحقق درجات F تفوق 0.90 على مجموعات بيانات صناعية، إلا أنها تفتقر إلى القابلية للتفسير اللازمة للامتثال التنظيمي. يدمج الإطار المقترح ستة نماذج متنوعة لاكتشاف الشذوذ—غابة العزل، عامل الشذوذ المحلي، SVM من فئة واحدة، غلاف بيضاوي، تعزيز التدرج، ومشفّر تلقائي قوي—تهدف إلى تحليل بيانات معاملات ERP متعددة الأبعاد.

تم تقييم النموذج الجماعي على مجموعة بيانات كبيرة تضم 209,666 معاملة شراء حقيقية، حيث حقق نموذج المجموعة درجة F تبلغ 0.8437 (95% CI على مجموعة اختبار محجوزة من 41,933 معاملة: [0.8305, 0.8569]). بينما هذه الدرجة أقل من تلك الخاصة بأفضل النماذج الفردية (تعزيز التدرج: 0.9321؛ مشفّر تلقائي قوي: 0.9254)، يقدم النموذج الجماعي استقرارًا معززًا في التحقق المتقاطع (معامل التباين: 0.49% مقارنة بـ 1.4-2.1% للنماذج الفردية) وانخفاضًا كبيرًا بنسبة 19.4% في معدل الإيجابيات الكاذبة مقارنةً بمعدل الإيجابيات الكاذبة المتوسط للنماذج المكونة (14.1%). بالإضافة إلى ذلك، يوفر الإطار مجموعة تفسيرية من ثلاث طبقات، بما في ذلك تصنيفات أهمية الميزات، وقواعد القرار القابلة للتفسير مع تغطية منطقية بنسبة 87.3%، ونسب مستوى الحالة المعتمدة على SHAP، مما يعالج الحاجة إلى القابلية للتفسير في بيئات الإنتاج.

مقدمة

في مقدمة ورقة البحث، يبرز المؤلفون الدور الحاسم لأنظمة تخطيط موارد المؤسسات (ERP) في التصنيع الحديث، والتي تدمج وظائف متنوعة مثل المحاسبة المالية، والمشتريات، وإدارة المخزون في منصة متكاملة. على الرغم من تنفيذ ضوابط الوصول ووسائل حماية سير العمل، لا يزال انتشار الشذوذ—الذي يتراوح من أخطاء بسيطة في إدخال البيانات إلى أنشطة احتيالية معقدة—يمثل تحديًا كبيرًا. تشير تقرير جمعية المدققين المعتمدين لمكافحة الاحتيال (ACFE) لعام 2023 إلى أن احتيال عمليات الأعمال يكلف متوسط 145,000 دولار لكل حادث، مع تأخير متوسط في الكشف يتجاوز 18 شهرًا. تدعم هذه المخاوف أيضًا دراسة KPMG العالمية حول الاحتيال، التي تكشف عن انتشار الاحتيال في المؤسسات عبر مختلف القطاعات.

أجرى المؤلفون تدقيقًا جنائيًا لـ 209,666 معاملة ERP، وكشفوا عن 12,682 معاملة شاذة، مما يترجم إلى انتشار شذوذ بنسبة 6.05%. ومن الجدير بالذكر أن برنامج التدقيق اليدوي الحالي للمنظمة، المحدود بسعة الموظفين ونهج قائم على العينة، فشل في تحديد هذه الشذوذات قبل التحقيق الجنائي. يقدر المؤلفون أن نظام التدقيق قبل الأتمتة كان لديه معدل تهرب يبلغ حوالي 85-93%، مما يشير إلى فجوة كبيرة في الكشف عن الأنشطة الاحتيالية. وهذا يبرز الحاجة إلى تعزيز آليات الكشف الآلي داخل أنظمة ERP للتخفيف من المخاطر المرتبطة بالاحتيال المؤسسي.

الطرق

في قسم الطرق، يقدم المؤلفون مقارنة مرجعية لطريقتهم الجماعية المقترحة مقابل تقنيات حديثة متنوعة في الأدبيات، كما هو ملخص في الجدول 7. الطرق الخارجية المشار إليها مستمدة من دراسات قام بها جوان وآخرون وزينغ وآخرون، تركز على مجموعات بيانات سجلات أحداث عمليات الأعمال ومعايير الاحتيال المالي الخاضعة للإشراف، على التوالي. يعتمد أداء النموذج الجماعي المقترح على تحليل 209,666 معاملة ERP حقيقية. يحذر المؤلفون من أنه على الرغم من أن المقارنة توفر رؤى، إلا أنها ليست حاسمة بسبب الاختلافات الجوهرية في الدقة، والأبعاد، وتوازن الفئات، ونوع الشذوذ بين مجموعات البيانات. ومن الجدير بالذكر أن الطرق الحديثة في اكتشاف الاحتيال، بما في ذلك الشبكات العصبية الرسومية وتقنيات التجميع متعددة المصادر، تسجل درجات F تتراوح بين 0.91 إلى 0.95 على مجموعات بيانات خاضعة للإشراف بالكامل، بينما الطبيعة غير الخاضعة للإشراف لنهج المؤلفين—التي تقتضيها نقص مجموعات بيانات تدريب ERP الكبيرة المعلّمة—تحد من المقارنات المباشرة.

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

النتائج

يقدم قسم “نتائج القابلية للتفسير” نتائج تتعلق بقابلية تفسير النموذج المقترح. يقيم المؤلفون فعالية تقنيات القابلية للتفسير المختلفة المطبقة على توقعات النموذج. يتم استخدام مقاييس رئيسية، مثل الدقة والاستقرار، لتقييم مدى توافق التفسيرات مع عملية اتخاذ القرار للنموذج.

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

المناقشة

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

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

القيود

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

ثانيًا، هناك إمكانية لتحسين درجات F إلى نطاق 0.92-0.94 من خلال نهج شبه خاضع للإشراف يتضمن عينات معلمة من قبل الخبراء، يسهلها آلية تغذية راجعة من إنسان في الحلقة. ثالثًا، لا يلبي زمن تأخير التنبؤ التسلسلي للنموذج البالغ حوالي 150 مللي ثانية لكل معاملة متطلبات الوقت الحقيقي، مما يتطلب تحسينات هندسية مثل توازي النموذج وتحسين ONNX. أخيرًا، يواجه الإطار تحديات تتعلق بانجراف المفاهيم والتكيف العدائي، حيث يتم تدريبه على تسعة أشهر من البيانات التاريخية، والتي قد لا تعكس أنماط المشتريات المتطورة. لمعالجة ذلك، يتم إعادة تدريب النموذج ربع سنوي ويستخدم مراقبة تحول التوزيع لتحفيز إعادة التدريب عند الضرورة. يتم تسليط الضوء على المراقبة المستمرة ودمج طرق الكشف عن الانجراف عبر الإنترنت كمجالات حاسمة للبحث المستقبلي للحفاظ على الأداء ضد أنواع الاحتيال الناشئة.

Journal: Scientific Reports
DOI: https://doi.org/10.1038/s41598-026-57913-4
PMID: https://pubmed.ncbi.nlm.nih.gov/42289525
Publication Date: 2026-06-14
Author(s): Adiah Qazi et al.
Primary Topic: Explainable Artificial Intelligence (XAI)

Overview

The research presents an explainable ensemble learning framework designed for anomaly detection in Enterprise Resource Planning (ERP) systems within manufacturing environments. Despite the high performance of individual neural network models, which achieve F-scores above 0.90 on synthetic datasets, they lack the necessary explainability for regulatory compliance. The proposed framework integrates six diverse anomaly detection models—Isolation Forest, Local Outlier Factor, One-Class SVM, Elliptic Envelope, Gradient Boosting, and a Robust Autoencoder—aimed at analyzing multidimensional ERP transaction data.

Evaluated on a substantial dataset of 209,666 real-world procurement transactions, the ensemble model achieves an F-score of 0.8437 (95% CI on a held-out test set of 41,933 transactions: [0.8305, 0.8569]). While this score is lower than those of the top-performing individual models (Gradient Boosting: 0.9321; Robust Autoencoder: 0.9254), the ensemble offers enhanced cross-validation stability (coefficient of variation: 0.49% compared to 1.4-2.1% for individual models) and a significant 19.4% reduction in the false-positive rate relative to the average false-positive rate of the constituent models (14.1%). Additionally, the framework provides a three-layer interpretability stack, including feature importance rankings, interpretable decision rules with 87.3% logic coverage, and SHAP-based instance-level attribution, thereby addressing the need for explainability in production environments.

Introduction

In the introduction of the research paper, the authors highlight the critical role of Enterprise Resource Planning (ERP) systems in modern manufacturing, which integrate various functions such as financial accounting, procurement, and inventory management into a cohesive platform. Despite the implementation of access controls and workflow safeguards, the prevalence of anomalies—ranging from simple data-entry mistakes to complex fraudulent activities—remains a significant challenge. The 2023 Association of Certified Fraud Examiners (ACFE) report indicates that business-process fraud incurs an average cost of $145,000 per incident, with a median detection lag of over 18 months. This concern is further supported by KPMG’s global fraud survey, which reveals widespread enterprise fraud across various sectors.

The authors conducted a forensic audit of 209,666 ERP transactions, uncovering 12,682 anomalous transactions, which translates to an anomaly prevalence of 6.05%. Notably, the organization’s existing manual audit program, limited by staff capacity and a sampling-based approach, failed to identify these anomalies prior to the forensic investigation. The authors estimate that the pre-automation audit regime had an evasion rate of approximately 85-93%, indicating a substantial gap in the detection of fraudulent activities. This underscores the need for enhanced automated detection mechanisms within ERP systems to mitigate the risks associated with enterprise fraud.

Methods

In the Methods section, the authors present a benchmark comparison of their proposed ensemble method against various recent techniques in the literature, as summarized in Table 7. The external methods referenced are derived from studies by Guan et al. and Zheng et al., focusing on business process event log datasets and supervised financial fraud benchmarks, respectively. The proposed ensemble’s performance is based on an analysis of 209,666 real-world ERP transactions. The authors caution that while the comparison provides insights, it is not definitive due to inherent differences in granularity, dimensionality, class balance, and anomaly typology among the datasets. Notably, recent methods in fraud detection, including graph neural networks and multi-source ensemble techniques, report F-scores ranging from 0.91 to 0.95 on fully supervised datasets, whereas the unsupervised nature of the authors’ approach—necessitated by the lack of large labeled ERP training datasets—limits direct comparisons.

Additionally, the manuscript adheres to the Results-before-Methods structure typical of Scientific Reports, indicating that all methodologies were established prior to the collection of results. This editorial choice allows for cross-referencing between the Results and Methods sections, facilitating readers’ access to methodological details in conjunction with specific findings.

Results

The “Explainability Results” section presents findings related to the interpretability of the proposed model. The authors evaluate the effectiveness of various explainability techniques applied to the model’s predictions. Key metrics, such as fidelity and stability, are employed to assess how well the explanations align with the model’s decision-making process.

The results indicate that certain techniques, particularly those based on local approximations, demonstrate higher fidelity, suggesting that they provide more accurate representations of the model’s behavior in specific instances. Additionally, the stability of explanations across different inputs is analyzed, revealing that some methods yield consistent results, which enhances their reliability for users seeking to understand the model’s outputs. Overall, the findings underscore the importance of selecting appropriate explainability methods to ensure transparency and trust in machine learning applications.

Discussion

In this discussion section, the paper highlights the critical advancements in automated anomaly detection for Enterprise Resource Planning (ERP) systems, particularly in the context of cloud-based environments. The authors emphasize the financial implications of undetected anomalies, citing a potential loss of approximately $4.1 million within a single organization, which underscores the necessity for robust, interpretable detection mechanisms. The integration of Zero Trust Architecture (ZTA) and the shift from traditional statistical methods to machine learning approaches are noted as pivotal developments in enhancing security and operational efficiency. The paper also identifies gaps in existing literature, particularly the lack of explainable AI (XAI) frameworks tailored for ERP anomaly detection under regulatory constraints, and proposes a three-layer explainability framework utilizing SHapley Additive exPlanations (SHAP) to provide actionable insights across various stakeholder levels.

The research objectives outlined aim to design a heterogeneous ensemble architecture that balances detection accuracy with interpretability, rigorously validate the framework’s statistical reliability, and quantify the financial return on investment (ROI) from its deployment. The ensemble model, comprising six distinct algorithms, achieves a competitive F-score of 0.8437 while addressing challenges such as high-dimensional sparse feature spaces and severe class imbalances. The paper’s contributions include a detailed analysis of model performance, the establishment of a multi-layer explainability framework, and a documented ROI of 392% from the system’s implementation, demonstrating its alignment with regulatory compliance frameworks. Overall, the findings advocate for a comprehensive approach to ERP anomaly detection that integrates advanced machine learning techniques with robust interpretability, thereby enhancing decision-making processes in high-stakes environments.

Limitations

The section on limitations identifies four key constraints of the research framework. Firstly, the model’s training is based solely on procurement and inventory transactions from a single legal entity with multiple manufacturing plants, which raises concerns about its generalizability. Although sensitivity analysis indicates that the model maintains F-scores between 0.794 and 0.862 across various simulated scenarios, further validation on external datasets from diverse ERP modules, industries, and organizational structures is necessary to confidently assert its applicability. The authors suggest that meta-learning and federated learning could enhance cross-enterprise generalizability.

Secondly, the potential for improvement in F-scores to the range of 0.92-0.94 exists through a semi-supervised approach that incorporates expert-labeled samples, facilitated by a human-in-the-loop feedback mechanism. Thirdly, the model’s sequential prediction latency of approximately 150 ms per transaction does not meet real-time requirements, necessitating engineering optimizations such as model parallelization and ONNX optimization. Lastly, the framework faces challenges related to concept drift and adversarial adaptation, as it is trained on nine months of historical data, which may not reflect evolving procurement patterns. To address this, the model is retrained quarterly and employs distribution-shift monitoring to trigger ad hoc retraining when necessary. Continuous monitoring and the integration of online drift detection methods are highlighted as crucial areas for future research to maintain performance against emerging fraud types.