<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Investigating Poor Performance Regions of Black Boxes: LIME-based Exploration in Sepsis Detection</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Mozhgan Salimiparsa</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Surajsinh Parmar</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>San Lee</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Choongmin Kim</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yonghwan Kim</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jang Yong Kim</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Spass Inc.</institution>
          ,
          <addr-line>Seoul</addr-line>
          ,
          <country country="KR">Korea</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>SpassMed Inc.</institution>
          ,
          <addr-line>Toronto</addr-line>
          ,
          <country country="CA">Canada</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>St. Mary's Hospital</institution>
          ,
          <addr-line>Seoul</addr-line>
          ,
          <country country="KR">Korea</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Interpreting machine learning models remains a challenge, hindering their adoption in clinical settings. This paper proposes leveraging Local Interpretable Model-Agnostic Explanations (LIME) to provide interpretable descriptions of black box classification models in high-stakes sepsis detection. By analyzing misclassified instances, significant features contributing to suboptimal performance are identified. The analysis reveals regions where the classifier performs poorly, allowing the calculation of error rates within these regions. This knowledge is crucial for cautious decision-making in sepsis detection and other critical applications. The proposed approach is demonstrated using the eICU dataset, efectively identifying and visualizing regions where the classifier underperforms. By enhancing interpretability, our method promotes the adoption of machine learning models in clinical practice, empowering informed decision-making and mitigating risks in critical scenarios.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Performance Analysis</kwd>
        <kwd>LIME</kwd>
        <kwd>Model Explanation</kwd>
        <kwd>Sepsis Prediction</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Machine learning has exhibited impressive achievements in diverse fields, including healthcare
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The complexity of these models, however, creates challenges for their adoption in healthcare
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. To address this issue, eXplainable AI (XAI) has been introduced, enabling machine learning
models to provide explanations for their predictions. Model explainability is essential for gaining
a deeper understanding of a model’s decision-making process [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. In critical domains such as
sepsis detection [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] in the ICU, where incorrect predictions can result in fatal consequences, the
reliability of these models is of utmost significance. This paper aims to tackle a specific aspect
of the interpretability challenge associated with these models, specifically the identification
and explanation of scenarios in which black box predictive models fail or exhibit unexpected
performance.
      </p>
      <p>
        Examining instances in which machine learning models exhibit deviations from their usual
performance holds significant importance. These insights empower decision-makers to exercise
caution in deploying models in situations where their predictions are prone to errors, thereby
mitigating potential adverse consequences. Previous research endeavors have primarily centered
on assessing the overall performance of these models through the adoption of evaluation metrics
and methodologies aimed at gauging their reliability [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ]. W. Duivesteijn et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] present an
evaluation method that assesses the performance of a classifier, highlighting subspaces where
the classifier excels or struggles in classification tasks, however, the method’s applicability is
limited to binary datasets and lacks model agnosticism. L. Torgo et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] propose approaches
that aim to ofer interpretable descriptions of expected performance; however, the proposed
visualization may not be well-suited when dealing with a high number of features. This
paper provides an analysis by focusing on the identification of specific regions where the
models exhibit significant deviations from their usual performance. The identification of these
regions empowers healthcare practitioners to make informed decisions by exercising caution
when relying on the model. Additionally, these findings ofer valuable insights that can guide
the development of potential strategies aimed at improving and refining the model’s overall
performance [
        <xref ref-type="bibr" rid="ref8 ref9">9, 8</xref>
        ].
      </p>
      <p>To achieve this, we propose an analytical approach that combines visual techniques to identify
regions in the input space where the models’ performance significantly diverges from their
average performance. This visualization empowers users to grasp how various values of a
particular predictor impact the models’ performance.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Methodology</title>
      <p>
        In this study, we adopted a modified visualization approach inspired by L. Torgo et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]
to identify the regions where a black-box model exhibits poor performance. L. Torgo et al.
utilized the confusion matrix and cross-validation, and employed error distribution plots for
each individual feature to demonstrate areas of inadequate model performance. However, we
recognized the challenge of visual clutter arising from a large number of features. To address
this limitation, we focused our analysis on identifying recurrent conditions associated with
misclassifications, rather than visualizing misclassifications for each individual feature. To
achieve this, we employed a rule extraction method, specifically LIME (Local Interpretable
Model-agnostic Explanations) [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. LIME is a model-agnostic explainability technique that
assigns importance weights to features, indicating their contribution to individual predictions.
We applied LIME to misclassified data samples, allowing us to pinpoint the specific features
responsible for incorrect predictions made by the classifier. This process was performed for each
misclassified sample, enabling us to accumulate the features with high importance. We then
intersected these features, focusing on those that consistently appeared as contributing factors
to misclassifications. This allowed us to discern regions or intervals in which the classifier
demonstrated poor performance and was prone to misclassification. We calculated the error
rates within these regions by examining how often instances with these specific features were
correctly classified versus misclassified.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Result</title>
      <p>
        In this study, we employed the publicly available eICU dataset [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] to develop a predictive
model for sepsis. The dataset comprises the vital signs of thousands of patients sampled at
various rates. The vital signs considered in our experiments included systolic blood pressure,
diastolic blood pressure, heart rate, respiration rate, oxygen saturation (SpO2), and gender of the
patients. To standardize the sampling rates, all vital signs were resampled at a frequency of 5
minutes. To build a classifier for this time-series data, we employed LightGBM. The time-series
data was transformed into a format compatible with the LightGBM classifier [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] by calculating
rolling statistical properties such as mean, standard deviation, and lag values from previous
timestamps. The model’s parameters were optimized using Python library Optuna [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. The
model achieved a recall score of 0.9308 and 0.8125 on in-sample and out-of-sample splits.
      </p>
      <p>To gain a deeper understanding of the model’s performance and identify areas where it
exhibits suboptimal results, we applied the proposed method. To visualize and communicate the
regions of poor model performance, we present Fig. 1 a) demonstrates the error distribution over
specific regions where the classifier exhibited suboptimal performance. Additionally, Fig. 1 b)
provides a magnified view of the error distribution, ofering a clearer resolution and facilitating
a more detailed examination of the error rates within these identified regions. These figures
serve as visual aids, aiding in the comprehension and interpretation of the model’s performance
shortcomings.</p>
      <p>In order to gain insights into the causes of misclassifications, we conducted a detailed
analysis to determine which feature regions were most influential in contributing to these errors.
Employing the LIME technique, we extracted the most significant features that consistently
played a role in misclassification instances.</p>
      <p>By identifying and examining these recurring features, we revealed specific regions where
the classifier exhibited poor performance. Figure 1 visually illustrates the feature regions that
meet this criterion, highlighting the factors associated with the model’s suboptimal predictions.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Discussion</title>
      <p>In this study, we utilized LIME to identify regions where a black-box model exhibits poor
performance. This approach allows us to investigate the error distribution across misclassification
regions in both training and test data. The proposed method is model agnostic and can be
utilized for any classifier. By analyzing the model’s fit to the training data, we gain insights into
its performance and identify areas where it inadequately represents the underlying patterns in
the feature space. This assessment helps us understand the model’s limitations in capturing the
complexities of the training dataset.</p>
      <p>When evaluating the model’s generalization error on test data, we pinpoint specific regions
within the feature space that contribute to erroneous predictions for unseen data. This
knowledge is crucial for important decision-making situations, such as sepsis, where being aware of
regions requiring caution is essential when relying on the classifier’s predictions. By conducting
this analysis, we obtain a comprehensive understanding of the model’s limitations and areas of
poor performance. This knowledge empowers healthcare professionals and decision-makers
to make informed judgments, taking into account the regions in the feature space where the
classifier’s predictions may be less reliable.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>Our study contributes to the understanding of machine learning models’ performance by
introducing a modified visualization approach that identifies regions of poor performance. By
leveraging LIME for the rule extraction method, we efectively pinpointed specific features
responsible for misclassifications, allowing us to identify recurrent conditions associated with
the classifier’s suboptimal performance. The application of this methodology to the eICU
dataset demonstrated its efectiveness in capturing regions where the classifier exhibits poor
performance. These findings enhance interpretability and provide insights for decision-makers,
enabling them to make informed choices regarding the deployment of machine learning models
in critical domains such as sepsis detection. In light of the study’s insights, our future work aims
to enhance the model’s performance by making specific modifications to the model architecture,
feature engineering, and training strategies.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Rajkomar</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dean</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Kohane</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          <article-title>Machine learning in medicine</article-title>
          .
          <source>New England Journal Of Medicine</source>
          .
          <volume>380</volume>
          ,
          <fpage>1347</fpage>
          -
          <lpage>1358</lpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Antoniadi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Du</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guendouz</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wei</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mazo</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Becker</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Mooney</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <article-title>Current challenges and future opportunities for XAI in machine learning-based clinical decision support systems: a systematic review</article-title>
          .
          <source>Applied Sciences</source>
          .
          <volume>11</volume>
          ,
          <issue>5088</issue>
          (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Adadi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Berrada</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <article-title>Peeking inside the black-box: a survey on explainable artificial intelligence (XAI)</article-title>
          .
          <source>IEEE Access</source>
          . 6 pp.
          <fpage>52138</fpage>
          -
          <lpage>52160</lpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Fleuren</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Klausch</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zwager</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schoonmade</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guo</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Roggeveen</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Swart</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Girbes</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thoral</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ercole</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          &amp;
          <article-title>Others Machine learning for the prediction of sepsis: a systematic review and meta-analysis of diagnostic test accuracy</article-title>
          .
          <source>Intensive Care Medicine</source>
          .
          <volume>46</volume>
          pp.
          <fpage>383</fpage>
          -
          <lpage>400</lpage>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Cerqueira</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Torgo</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Mozetič</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          <article-title>Evaluating time series forecasting models: An empirical study on performance estimation methods</article-title>
          .
          <source>Machine Learning</source>
          .
          <volume>109</volume>
          pp.
          <fpage>1997</fpage>
          -
          <lpage>2028</lpage>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Flach</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <article-title>Performance evaluation in machine learning: the good, the bad, the ugly, and the way forward</article-title>
          .
          <source>Proceedings Of The AAAI Conference On Artificial Intelligence</source>
          .
          <volume>33</volume>
          ,
          <fpage>9808</fpage>
          -
          <lpage>9814</lpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Duivesteijn</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Thaele</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <article-title>Understanding where your classifier does (not) work-the SCaPE model class for EMM</article-title>
          .
          <source>2014 IEEE International Conference On Data Mining</source>
          . pp.
          <fpage>809</fpage>
          -
          <lpage>814</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Torgo</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Azevedo</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Areosa</surname>
            ,
            <given-names>I. Beyond</given-names>
          </string-name>
          <article-title>Average Performance-exploring regions of deviating performance for black box classification models</article-title>
          .
          <source>ArXiv Preprint ArXiv:2109</source>
          .
          <fpage>08216</fpage>
          . (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Roshan</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Zafar</surname>
            ,
            <given-names>A. Utilizing</given-names>
          </string-name>
          <article-title>XAI technique to improve autoencoder based model for computer network anomaly detection with shapley additive explanation (SHAP)</article-title>
          .
          <source>ArXiv Preprint ArXiv:2112</source>
          .
          <fpage>08442</fpage>
          . (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Fryer</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Strümke</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Nguyen</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <article-title>Shapley values for feature selection: The good, the bad, and the axioms</article-title>
          .
          <source>IEEE Access</source>
          . 9 pp.
          <fpage>144352</fpage>
          -
          <lpage>144360</lpage>
          (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Ribeiro</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Singh</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Guestrin</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          "
          <string-name>
            <surname>Why Should I Trust You</surname>
          </string-name>
          <article-title>?": Explaining the Predictions of Any Classifier</article-title>
          .
          <source>Proceedings Of The 22nd ACM SIGKDD International Conference On Knowledge Discovery And Data Mining</source>
          , San Francisco, CA, USA,
          <year>August</year>
          13-
          <issue>17</issue>
          ,
          <year>2016</year>
          . pp.
          <fpage>1135</fpage>
          -
          <lpage>1144</lpage>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Pollard</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Johnson</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rafa</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Celi</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mark</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Badawi</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          <article-title>The eICU Collaborative Research Database, a freely available multi-center database for critical care research</article-title>
          .
          <source>Scientific Data. 5</source>
          ,
          <fpage>1</fpage>
          -
          <lpage>13</lpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Ke</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Meng</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Finley</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          , Ma,
          <string-name>
            <given-names>W.</given-names>
            ,
            <surname>Ye</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            &amp;
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <surname>T.</surname>
          </string-name>
          <article-title>Lightgbm: A highly eficient gradient boosting decision tree</article-title>
          .
          <source>Advances In Neural Information Processing Systems</source>
          .
          <volume>30</volume>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Akiba</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sano</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yanase</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ohta</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Koyama</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <article-title>Optuna: A next-generation hyperparameter optimization framework</article-title>
          .
          <source>Proceedings Of The 25th ACM SIGKDD International Conference On Knowledge Discovery &amp; Data Mining</source>
          . pp.
          <fpage>2623</fpage>
          -
          <lpage>2631</lpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>