CoLIME with 2D Copulas for Reliable Local Explanations on Imbalanced Network Data
Open Access
- 22 December 2025
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 16 (1) , 119
Abstract
Local Interpretable Model-agnostic Explanations (LIME) is a widely used technique for interpreting individual predictions of complex “black-box” models by fitting a simple surrogate model to synthetic perturbations of the input. However, its standard perturbation strategy of sampling features independently from a Gaussian distribution often generates unrealistic samples and neglects inter-feature dependencies. This can lead to low local fidelity (poor approximation of the model’s behavior) and unstable explanations across different runs. This paper presents CoLIME, which is a copula-based perturbation generation framework for LIME, designed to capture the underlying data distribution and inter-feature dependencies more accurately. The framework employs bivariate (2D) copula models to jointly sample correlated features while fitting suitable marginal distributions for individual features. Furthermore, perturbation localization strategies were implemented, restricting perturbations to a defined local radius and maintaining specific property values to ensure that the synthesized samples remain representative of the actual local environment. The proposed approach was evaluated on a network intrusion detection dataset, comparing the fidelity and stability of LIME under Gaussian versus copula-based perturbations, using Ridge regression as the surrogate explainer. Empirically, for the most dependent feature pairs, CoLIME increases mean surrogate fidelity by 21.84–50.31% on the merged CIC-IDS2017/2018 dataset and by 29.28–60.24% on the UNSW-NB15 dataset. Stability is similarly improved, with mean Jaccard similarity gains of 3.78–5.45% and 1.95–2.12%, respectively. These improvements demonstrate that dependency-preserving perturbations provide a significantly more reliable foundation for explaining complex network intrusion detection models.Keywords
This publication has 27 references indexed in Scilit:
- A comprehensive study on fidelity metrics for XAIInformation Processing & Management, 2024
- US-LIME: Increasing fidelity in LIME using uncertainty sampling on tabular dataNeurocomputing, 2024
- Learning From Few Cyber-Attacks: Addressing the Class Imbalance Problem in Machine Learning-Based Intrusion Detection in Software-Defined NetworkingIEEE Access, 2023
- A review of ensemble learning and data augmentation models for class imbalanced problems: Combination, implementation and evaluationExpert Systems with Applications, 2023
- Computational Science – ICCS 20202020
- ALIME: Autoencoder Based Approach for Local Interpretability2019
- Random forest in remote sensing: A review of applications and future directionsISPRS Journal of Photogrammetry and Remote Sensing, 2016
- Pair-copula constructions of multiple dependenceInsurance: Mathematics and Economics, 2009
- Random ForestsMachine Learning, 2001
- Probability Density Decomposition for Conditionally Dependent Random Variables Modeled by VinesAnnals of Mathematics and Artificial Intelligence, 2001