<!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>Closing the Neural-Symbolic Cycle: Knowledge Extraction, User Intervention and Distillation from Convolutional Neural Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Kwun Ho Ngan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>James Phelan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Esma Mansouri-Benssassi</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Joe Townsend</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Artur d'Avila Garcez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Data Science Institute</institution>
          ,
          <addr-line>City</addr-line>
          ,
          <institution>University of London</institution>
          ,
          <addr-line>London, EC1V 0HB</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Fujitsu Research of Europe Ltd</institution>
          ,
          <addr-line>Slough, SL1 2BE</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper introduces and evaluates a neural-symbolic cycle for Convolutional Neural Networks (CNNs). Knowledge in the form of logic programming rules is extracted from a trained (teacher) CNN model. Domain experts can interact with the rules to assign concepts, intervene and make changes to the model. Distillation is then used to re-train a simplified CNN, closing the neural-symbolic cycle. The approach is evaluated in the classification of medical images (chest x-rays). Experiments indicate that the approach can generate symbolic rules for pleural efusion detection with high accuracy (94.5%) and fidelity (98.2%) in comparison with the original CNN with 96.2% accuracy. Expert intervention produces symbolic rules with clinically relevant concepts while preserving predictive accuracy (94.8%). The approach also enables efective transfer of learning from clinically-relevant rules onto a much simplified (student) CNN that is almost 90% more compact while maintaining accuracy of 93.8%. The goal of this work is to ofer an auditable record of network training, elaboration and deployment in the medical domain.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Neural-Symbolic System</kwd>
        <kwd>Knowledge Extraction</kwd>
        <kwd>Symbolic Reasoning</kwd>
        <kwd>Human-in-the-loop</kwd>
        <kwd>Knowledge Distillation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Deep learning models have shown remarkable success in a range of applications, including
image recognition. However, these models are limited by their lack of interpretability and
transparency, which hinder their deployment in critical domains (e.g. medical care) where
transparency and explainability have become essential.</p>
      <p>
        To address this limitation, explainable AI (XAI) has emerged as a promising research topic
aiming to transform black-box models into surrogate models such that humans can understand
and interact with the the AI system’s predictions [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. One such approach to XAI is to use a
neural-symbolic system to extract knowledge from a neural network and represent it as a set of
symbolic rules.
      </p>
      <p>In this paper, we present our development and evaluation of a neural-symbolic cycle that
extracts knowledge from Convolutional Neural Networks (CNNs), associates such knowledge
with human-understandable concepts, constructs a set of symbolic rules allowing domain experts
to interact and intervene in the system to fine-tune the model for specialised applications with
known symbolic constraints. Relevant knowledge is then used to re-train a student network
such that its response can mimic that knowledge.</p>
      <p>
        The main contribution of this paper is the implementation and evaluation of the proposed
neural-symbolic cycle, which includes the process of knowledge extraction, concept association,
expert interaction and intervention in the case of a medical diagnosis task, and transfer to a
compact student network, closing the cycle. We analyse the efectiveness of this process in a
use case for determining the presence of pleural efusion in X-ray images. Pleural efusion can
be defined as the abnormal accumulation of fluid in the pleural space, typically observed in the
lower lung zones of an X-ray. It can be caused by various underlying diseases, such as pneumonia,
congestive heart failure, and malignancy [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Our approach is developed modularly such that
each of the sub-processes can be reviewed and evaluated or audited to ensure transparency of a
model suitable for deployment. Furthermore, we demonstrated the potential of using clinically
relevant knowledge to achieve high performance in the student model via a teacher-student
network.
      </p>
      <p>The rest of this paper is structured as follows. Section 2 presents an overview of related work
in explainable AI, neural-symbolic systems, and knowledge distillation in deep learning. Section
3 describes the proposed neural-symbolic process. Section 4 discusses the experimental results.
The paper concludes with a discussion and recommendations for future work in Section 5.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        The Bag-of-Visual-Words (BoVW) method [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ] has traditionally been used to classify images
based on the frequency distribution of pre-defined visual vocabulary (i.e. image features).
Typically, these features are extracted manually at specific regions of interest using various
feature descriptors (e.g. Histogram of Oriented Gradients (HOG) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] or Scale Invariant Feature
Transform (SIFT) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]). In the medical domain, radiomics has also emerged as an important
topic of study for the extraction of image features from medical images [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ]. However, this
extraction process can be laborious, prone to human bias, and limited reproducibility of results
due to a lack of standardised feature extraction method [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Open-source algorithms such as
PyRadiomics [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and Radiomics [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] aimed to address the reproducibility issue by introducing a
broad set of commonly used engineered features for medical imaging.
      </p>
      <p>
        The development of Convolutional Neural Networks (CNNs) has enabled visual features to
be extracted automatically from a large amount of images using a data-driven gradient-based
parameter search [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], which can then be used to make efective predictions even in specialised
medical domains [
        <xref ref-type="bibr" rid="ref12 ref13">12, 13</xref>
        ]. Understanding the underlying prediction mechanisms of these
complex models, however, has remained challenging as the relationships between the extracted
features are embedded in the model’s large number of parameters. Model interpretation has
helped in the visualisation of the relevant pixels that contribute to the predictions [
        <xref ref-type="bibr" rid="ref14 ref15 ref16 ref17">14, 15, 16, 17</xref>
        ],
but it is well-known that such interpretation may not constitute a model explanation that is
understood by a user or deemed as acceptable by a domain expert [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        Previous research discovered that semantic meaning can be embedded in the convolutional
kernels [
        <xref ref-type="bibr" rid="ref18 ref19 ref20">18, 19, 20</xref>
        ]. Each kernel (hidden unit) in the convolutional layers outputs activated
maps (i.e. extracted feature) from the learnt parameters of preceding layers of a CNN on
the corresponding images. In these previous works, such semantic meaning was confined
to concepts within the limited lexicon of the Broden dataset rendering any concepts beyond
the lexicon as uninterpretable . In specialised fields such as radiology, the relevant concepts
for a prediction may be unknown a-priori. Understanding these concepts in isolation is also
insuficient to explain how they are related to the predictions. Among the approaches seeking
to extract knowledge capable of relating such concepts to produce global explanations from
neural networks, layer-wise decompositional methods have been the most efective in the case
of CNNs, because of their structure and large number of parameters [21]. In [22], a method
for global layer-wise extraction of rules was introduced for CNNs. Outputs from kernels with
the highest information gain were translated into literals for the extraction of M-of-N rules,
where a rule is interpreted as being true if any combination of  literals out of a set of 
literals is true. A heuristic search was used to extract rules that prioritised literals based on the
weights of the neurons leading to the target output. This approach worked well for kernels
near the output, but became inefective for larger networks when applied over multiple layers
due to information loss. In [23, 24], a post-hoc approach was proposed to decompose a CNN
for interpretation. The approach converted a CNN into a decision tree with semantic meaning
related to the input image. The method has demonstrated that the decision trees can provide
insight into how CNNs make predictions.
      </p>
      <p>The ERIC framework [25], used in this paper, has been shown to derive compact rules
expressing global explanations for a CNN’s convolutional layer. In ERIC, a quantization is used
to binarize kernels into literals and symbolic rules are generated in the form of a decision tree.
The rules seek to approximate the behaviour of the convolutional layer with respect to the
CNN’s output. ERIC achieved good classification accuracy and fidelity, that is, accuracy w.r.t.
the CNN’s outputs, producing a compact rule set which should in principle be more human
comprehensible. We regard the ability to measure fidelity and to apply the extraction method
to any CNN, irrespective of the training protocol, as two requirements of XAI. For this reason,
this paper is built upon ERIC, a general and eficient global XAI approach for CNNs.</p>
      <p>Knowledge distillation has been introduced to transfer knowledge from a complex model
called the teacher to a typically simpler model called the student model [26]. The goal is to
train a student model that can mimic the teacher’s prediction performance. Although the term
knowledge is used in the original paper, a knowledge representation is not formalised in the
teacher-student approach, diferently from the logic programming knowledge rules obtained by
ERIC for example. Distillation is adopted in this paper to close the cycle such that a student
CNN is trained against the more interpretable logic rules and to evaluate the value of creating
an auditable neural-symbolic cycle for the student model prediction performance.</p>
    </sec>
    <sec id="sec-3">
      <title>3. A Neural-Symbolic Cycle for Medical Diagnosis</title>
      <p>The proposed neural-symbolic cycle is illustrated in Fig 1. A trained CNN is used for pleural
efusion classification. Symbolic rules are extracted in the form of a decision tree using ERIC.
The rules are investigated by a clinician who can associate concepts from CNN kernels and use
only clinically-relevant concepts in the construction of decision tree. Relevant knowledge is
then distilled into a student CNN model. In what follows, we discuss each of these steps in turn
with a focus on the novel part of closing the neural-symbolic cycle with student training and its
performance evaluation.</p>
      <sec id="sec-3-1">
        <title>3.1. Datasets</title>
        <p>Two datasets were employed in this work. The first dataset, CheXpert [ 27], was used to train a
CNN for pleural efusion detection. Only frontal X-rays with labels pleural efusion or no finding
were used. After images with artefacts or supporting aid obstruction were removed, 400 images
were randomly selected for training and 80 images for validation, with both classes equally
represented.</p>
        <p>The second dataset, NIH dataset [28] with reference to the study metadata in [29], was used
to train a supplementary CNN model to locate nine anatomical regions within frontal chest
X-rays, namely (a) Trachea (T), (b) Upper Mediastinum (UM), (c) Cardiac Silhouette (CS), (d)
Left Clavicle (LC), (e) Right Clavicle (RC), (f) Left Hilar (LH), (g) Right Hilar (RH), (h) Left
Costophrenic Angle (LCA), and (i) Right Costophrenic Angle (RCA). This model was then
applied to the CheXpert X-rays to assign the associated anatomical concepts to image regions.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. CNN Classification: Model Training</title>
        <p>A CNN classifier (  ) was trained using the VGG-16 architecture and the Adam optimiser with
a learning rate of 10− 6. The model was trained from scratch with no pre-trained weights in
batches of 32 images using the CheXpert dataset. Elite backpropagation (EBP) was used to
improve class-wise activation sparsity [30]. This was achieved by associating each class with a
small number of kernels that are activated rarely but strongly for related images. The kernels
were ranked according to a penalty function based on the activation probabilities of the kernels
during training. EBP was previously shown to produce a more distinct separation of kernel
concepts and, arguably, more interpretable representations. When seeking to assign semantic
meaning to kernels, the above separation will become useful.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Symbolic Rule Extraction and Human Intervention</title>
        <p>The ERIC framework [25, 31] was used to extract rules from the last convolutional layer of the
trained VGG-16. Kernels were binarized and the CNN from the last convolutional layer replaced
by the derived rules  * evaluated for its fidelity as a metric of how well  * approximates  .
Earlier work found that rules with a maximum of three literals in the body were suficient to
approximate the trained CNN model for pleural efusion well [ 32]. Literals associated with CNN
kernels were assigned semantic meaning based on the anatomical region localisation as part of a
radiomics concept association process. The details of the rule extraction and concept association
processes are described in Appendix A and Appendix B, respectively. An experienced medical
professional reviewed the generated set of symbolic rules to analyse the clinical relevance of
the kernels used, and made modifications to use only anatomically-relevant kernels for the
construction of decision tree.</p>
      </sec>
      <sec id="sec-3-4">
        <title>3.4. Model Re-Training via Teacher-Student Network</title>
        <p>Model re-training was based on a teacher-student network [26] (see Fig.10 in Appendix E for
training schematics). A VGG-16 architecture was chosen for the student CNN model as it has
the same feature extraction layers as the teacher model. The training loss, , was governed
by a loss function which typically consists of a student loss, , and a distillation loss,
 calculated using the categorical cross-entropy and Kullback-Leibler (KL) divergence
respectively as shown in Eq. 1 [26, 33]. In this work, the  term in the loss function was set
to zero to mimic only the behaviour from the teacher model. The re-training was aimed to
investigate how well the CNN model can respond based on the captured clinically-relevant
knowledge as measured by the student model’s accuracy and losses.</p>
        <p>=  *  + (1 −  ) * 
(1)</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Experimental Results</title>
      <p>As described in Section 3.2, a CNN model was trained to detect pleural efusion from frontal
chest X-rays using the CheXpert dataset and achieved an accuracy of 96.2%. Symbolic rules
were extracted from the trained CNN using the ERIC framework (see Fig 2 (a)) with an accuracy
of 94.5% and a fidelity of 98.2%. Five kernels were used (labelled here with associated anatomical
regions): ET (Upper Mediastinum), QN (Cardiac Silhouette), PA (Uninterpretable), EV and OT
(both relating to the Right Clavicle).</p>
      <p>Expert intervention discarded several uninterpretable and other kernels deemed as irrelevant,
namely PA, EV and OT. Kernels QT and AE, relating to the left and right hilar, were added
instead to reconstruct the decision tree according to the corresponding L1-Norm values. These
were deemed as more relevant rules by the expert as being plausibly linked to pleural efusion.
This new set of kernels forming a clinically relevant rule set is shown in Fig 2 (b) in the form of
a decision tree, where ¬ET ∧ QT ∧ ¬AE → Efusion is an example of a rule.</p>
      <p>The selected kernels were evaluated using the kernel norm values (L1 norms calculated from
the activation maps using Eq. 4 in Appendix A) and associated with a human understandable
concept through the localisation of anatomical regions and the correlation with radiomics
features. For example in Fig 3, kernel QN was related to the region of Cardiac Silhouette and
the change in L1-norms were highly correlated with the Joint Entropy in the Gray Level Cluster
Matrix (GLCM). With joint entropy viewed as a quantifiable measure of randomness/variability
of pixel intensity in relation to its spatial neighbourhood, low entropy values were taken to
indicate a more homogeneous texture and vice-versa (see Fig 3 (c)). This resembles the visual
change that a medical doctor will observe in the presence of pleural efusion which will obscure
the lung space and the border of the left ventricle of the heart, commonly understood as the
“silhouette sign". Additional results on the radiomics analysis for the left and right hilars are
presented in Appendix C.</p>
      <p>(a) Initial Rule Set
(b) Clinically Relevant Rule Set
(b) Kernel Radiomics Correlation
(c) Joint Entropy (GLCM) for Cardiac Silhouette</p>
      <p>Knowledge distillation to a student network was evaluated using the teacher-student network
architecture as described in Section 3.4. Fig 4 presents an investigation of results by removing
specific kernels from the last convolutional layer, , and evaluating the impact on the student
model’s accuracy. Four runs were conducted including a base case where none of the 512 kernels
were removed, a case using 99 interpretable and anatomically-relevant kernels, a case with
only the kernels associated with the anatomic regions present in the relevant decision tree (i.e.
CS_LH_RH_UM), and a case including the kernels regarded as less anatomically relevant (i.e.
LC_LCA_RC_RCA). In all cases, the student model was trained completely from the teacher
model (i.e. alpha = 0). For the first three cases (no kernel muting, interpretable, CS_LH_RH_UM),
all the student networks approached similar accuracy as the teacher model. For the case with
less relevant kernels (LC_LCA_RC_RCA), the student model performed poorly (accuracy: 53.8%)
given that the teacher model also had an accuracy of only 54.8%. When evaluating the change
in student loss, it can be seen that the control case with no kernel muting has the highest drop
in loss as it has utilised all the kernels to generate contrasting values in the softmax output for
the calculation of categorical cross-entropy. The student loss for the case of LC_LCA_RC_RCA
remained nearly unchanged, indicating no relevant learning gained against the ground-truth.
For both the interpretable and the CS_LH_RH_UM cases, the drop in student loss has fallen in
between the other two cases.</p>
      <p>Fig 5 evaluates the use of the extracted and intervened-upon rule sets as the teacher model
against the baseline of the originally trained CNN as teacher. Since decision trees are
deterministic, a one-hot step was introduced when training. This can be attributed to the initial
high distillation loss compared to the trained CNN as teacher, as the discrepancy in value
would be significant. The results show that both rule sets performed comparably well on model
accuracy and training loss. This tells us that the symbolic rules could be a more interpretable
form of knowledge representation replacing complex CNN models as the teacher in knowledge
distillation. Based on these results, the intervened-upon and clinically-relevant decision tree
should be the preferred choice to train a simpler student model for deployment or further
training and analysis because the cycle of knowledge extraction and distillation can make an
otherwise obscure system highly transparent and auditable, which is key in the medical field.</p>
      <p>Additional experimental results are presented in Appendix E. As shown in Figs 13 and 14,
student model training requires relevant knowledge from our proposed concept association
approach resulting in reducing the student loss and high model accuracy for classifying the
ground truth. Fig 15 also shows that a smaller student CNN model (even with 4 kernels or
almost 90% more compact) can store the relevant knowledge with a transparent knowledge
transfer trail.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion and Future Work</title>
      <p>The neural-symbolic cycle was applied successfully to extract, intervene and transfer relevant
knowledge back into a CNN model. A simpler student CNN model was trained on extracted
knowledge from a more complex teacher CNN model. Extracted knowledge in symbolic form was
validated by a domain expert resulting in an interpretable model with a transparent knowledge
representation and transfer back into a CNN model while maintaining predictive accuracy. This
approach can serve as a blueprint for CNN model audits to validate the flow of knowledge
transfer prior to operational deployment particularly in critical fields such as in medicine.</p>
      <p>Future work will seek to incorporate kernel feature similarity as an additional training loss
component to facilitate better feature learning from the teacher models as well as rule
construction methods for human-defined knowledge, thereby strengthening the whole knowledge
distillation process. In addition, it is intended that the proposed teacher-student network will
expand to include learning from multiple teachers so that a single streamlined student model is
needed for training to capture only the relevant knowledge from each of the teachers. Repetition
of the neural-symbolic cycle can also be applied to investigate the efect of new knowledge
introduction and data drift over time. Kernels will be modified over the cycles as more
appropriate knowledge will be discovered. Alternative teacher/student network architectures, diferent
chest X-ray datasets on various respiratory disease types may be investigated to enhance the
generalisability of the proposed neural-symbolic cycle. The goal of these future work is to
enhance the prediction performance and interpretability of the student models for a variety of
respiratory diseases, as well as to facilitate the customisation of these models to meet specific
hospital requirements, such as diferent demographic compositions. Overall, the revised
neuralsymbolic cycle is expected to result in a student model that captures relevant knowledge with
enhanced model explanation and transparency that are essential in critical fields.
[21] J. Mu, J. Andreas, Compositional explanations of neurons, Adv. Neural Inf. Process. Syst.</p>
      <p>33 (2020) 17153–17163.
[22] S. Odense, A. D. Garcez, Layerwise knowledge extraction from deep convolutional
networks, arXiv (2020).
[23] Q. Zhang, R. Cao, F. Shi, Y. N. Wu, S.-C. Zhu, Interpreting CNN knowledge via an
explanatory graph, AAAI 32 (2018).
[24] Q. Zhang, Y. Yang, H. Ma, Y. N. Wu, Interpreting cnns via decision trees, in: IEEE/CVF
conference on computer vision and pattern recognition, 2019, pp. 6261–6270.
[25] J. Townsend, T. Kasioumis, H. Inakoshi, ERIC: Extracting relations inferred from
convolutions, ACCV Lecture notes in computer science, Springer, 2021, pp. 206–222.
[26] G. Hinton, O. Vinyals, J. Dean, Distilling the knowledge in a neural network, arXiv (2015).
[27] J. Irvin et al., CheXpert: A large chest radiograph dataset with uncertainty labels and
expert comparison, arXiv (2019).
[28] X. Wang et al., ChestX-Ray8: Hospital-scale chest x-ray database and benchmarks on
weakly-supervised classification and localization of common thorax diseases, in: 2017
IEEE Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2017, pp.
2097–2106.
[29] A. Karargyris et al., Creation and validation of a chest x-ray dataset with eye-tracking and
report dictation for AI development, Sci Data 8 (2021) 92.
[30] T. Kasioumis, J. Townsend, H. Inakoshi, Elite BackProp: Training sparse interpretable
neurons, in: NeSy, 2021, pp. 82–93.
[31] J. Townsend, M. Kudla, A. Raszkowska, T. Kasiousmis, On the explainability of
convolutional layers for Multi-Class problems, 1st International Workshop on Combining Learning
and Reasoning, 2022.
[32] K. H. Ngan, A. D. Garcez, J. Townsend, Extracting meaningful High-Fidelity
knowledge from convolutional neural networks, in: International Joint Conference on Neural
Networks (IJCNN), 2022, pp. 1–17.
[33] J. Gou, B. Yu, S. J. Maybank, D. Tao, Knowledge distillation: A survey, arXiv (2020).
[34] J. Ross Quinlan, C4.5: Programs for Machine Learning, Elsevier, 2014.
[35] G. Jocher et al., YOLOv5 SOTA realtime instance segmentation, 2022.</p>
    </sec>
    <sec id="sec-6">
      <title>Supporting information</title>
    </sec>
    <sec id="sec-7">
      <title>A. Symbolic Rule Extraction using the ERIC framework</title>
      <p>Let x denote a set of input images and t denote a set of target outputs, each indexed by the
subscript , where 1 ≤  ≤ . A convolutional neural network,  , is trained on examples
{, } and consists of two parts: (· ) mapping  to the output of a feature extraction layer,
call it (), and ℎ(· ) mapping () to the CNN’s output, ℎ(()). Let 
, denote a matrix
of activation values () at the feature extraction layer , where 1 ≤  ≤  denotes a kernel
of the CNN, represented by a square matrix of vectorized real numbers. Let 
, denote a set
of truth-values (true or false) assigned to each kernel (see Eq.1) by a function  (see Eq.2)
mapping the activation matrix to {− 1, 1}, where − 1 denotes false and 1 denotes true. 
, can
be expressed symbolically as either a positive literal  , = 1, or a negative literal
, when 
¬, when  , is the result of calculating the L1-norm of the kernels
, = − 1. In Eq.2, 
(kernel norms) in</p>
      <p>, (see Eq.3), and   is an user-defined threshold value calculated for each
kernel. In this work, the mean L1-norm value for the entire training set was used (see Eq.4).
, = (,,  )

(,,  ) =
{︃1, if</p>
      <p>, &gt;  
− 1, otherwise
, = ‖,‖</p>
      <p>= ∑︁ (,)/
=1
(2)
(3)
(4)
(5)</p>
      <p>In ERIC, a set of symbolic rules  is generated as an approximation  * of  using a decision
tree-based rule extraction algorithm similar to the C4.5 algorithm [34] trained on instances
{,, ℎ(())}. Each rule  takes the form of a conjunction of literals 1 ∧ 2 ∧ ... ∧  ,
obtained from the feature extraction layer, which implies a CNN classification target output ,
that is, 1 ∧ 2 ∧ ... ∧  → . A rule defines a path from the root node to a leaf node in the
extracted decision tree. Tree pruning is applied to prevent overfitting. The Gini index is used to
determine the branching of tree nodes. If a leaf node has multiple outcomes following pruning,
the majority class is selected as the prediction. The accuracy of the CNN is measured in the
usual way as the percentage of input images that are classified correctly w.r.t. . The accuracy
of the extracted rules is determined by the percentage of input images classified correctly by
the rules also w.r.t. , i.e. the number of times that ( * , ) =  divided by the number of
examples, where  denotes the extracted set of rules. The fidelity of the rules to the network is
defined as the percentage of rule-based classifications that match the CNN’s classification as
measured by ( * , ) = ℎ(()). Qualitative evaluations of the rules are also performed by
up-sampling and inspecting of literals in the rules against the input images.</p>
    </sec>
    <sec id="sec-8">
      <title>B. Anatomical Region Localisation</title>
      <p>A segmentation model based on the YOLOv5x architecture [35] was trained independently using
X-ray images from the NIH dataset [28] to locate nine specific anatomical regions from individual
frontal chest X-rays applied in the original trained CNN classification model. Anatomical regions
were annotated with reference to [29]. The identified anatomical regions were superimposed on
the activated image regions for each CNN kernel (i.e. 512 kernels at the last convolutional layer
of a VGG16 model) to evaluate the region of interception. A hit was empirically considered
if the interception over union (IoU) score was above 0.7 for each image. The region with the
highest aggregated hit rate across the entire training dataset (and hits in at least more than 70%
of the dataset) was regarded as the most frequently activated and representative anatomical
region for the respective kernel. Additional criteria were implemented, including the restriction
of anatomical regions highly hit by kernel activation to no more than two regions, to ensure
the kernels were targeted to specific anatomical regions. This anatomical association ofered a
more comprehensible representation of clinical concepts than the kernel fingerprints used in
previous work [32].</p>
      <p>With the new representative anatomical regions serving as guiding points in the kernel
norm plots, the concept expressed by the kernels could be interpreted with greater clarity. This
process also allowed the filtering of uninterpretable kernels (i.e. those not associated with
a specific anatomical region) for future research when more knowledge from medical image
analysis is made known. To ensure the explainability of the extracted rules, only interpretable
kernels (99 in total) were applied to generate the final clinically relevant rule set.</p>
      <p>As only frontal X-ray images were used in this work, the relative positioning of the anatomical
regions was consistent. This helped with the inspection and manual correction of any
missing/incorrectly localised regions needed in this work. The hilar regions and the costophrenic
angles were among the more challenging regions, as the left and right regions were very similar.
It should also be highlighted that the segmentation model was also capable of labelling the
identified regions, albeit with weaker performance on the hilar and costophrenic regions as
discussed earlier. Fig 6 displays sample X-ray images with annotated bounding boxes of the
anatomical regions in healthy and pleural efusion cases of varying severity. This trained model
was separately used to infer on the CheXpert dataset. The annotation were reviewed and
manually corrected prior to further evaluation analysis by correlating with radiomics features.
(a) Healthy
(b) Healthy
(c) Pleural Efusion
(d) Pleural Efusion</p>
    </sec>
    <sec id="sec-9">
      <title>C. Concept Association through Radiomics feature on anatomical regions</title>
      <p>In this section, further representative examples on concept association with radiomics feature
on specific anatomical regions are presented. For example in the left hilar region, the correlation
between L1-Norm values for kernel QT with Run Length Gray Level Non-Uniformity (GLRLM)
was positive. As seen in Fig 7 (a), the L1-norm values were high in the healthy cases (i.e. the
ifrst 200) and low for the pleural efusion cases (i.e. remaining 200). As a result, it explained
the positive correlation observed when compared to the Gray Level Non-Uniformity feature
(i.e high for the healthy cases and low for pleural efusion cases). This corresponded to the
visual observation that the left hilar region becomes opaque as the presence of pleural efusion
increases (denoted by the change in L1-norm values).</p>
      <p>For the right hilar, kernel AE had a positive correlation with the radiomics features to which
it was most closely fitted, namely Gray Level Non-Uniformity (GLRLM) (i.e. high L1 norm
values and high Gray Level Non-Uniformity for healthy cases and vice versa). By observing
Fig 8 (c), the change in L1-norm values (see Fig 8 (a)) could again be translated to the visual
observation of the right hilar, which became more opaque in the presence of pleural efusion.</p>
      <p>These examples had illustrated that the L1-norm values displayed in the kernel norm plot
could be used to approximate the change in visual texture in a particular region, simulating
how a clinician would examine an X-ray image.
(c) Gray Level Non-Uniformity for Left Hilar
(c) Gray Level Non-Uniformity</p>
    </sec>
    <sec id="sec-10">
      <title>D. Interactive User Interface</title>
      <p>A graphical user interface was built to present the decision tree generated from the extracted
symbolic rules, with each kernel’s corresponding anatomical region displayed. In addition, the
kernel norm plot (positioned at the bottom right) can be used to facilitate the assignment of
concept descriptions to the respective kernels as demonstrated in [32]. A clinical user can access
additional patient information by hovering over the data points, and display the corresponding
X-ray image superimposed with the representing anatomical region of the kernel. The interface
enables the user to evaluate and modify the decision tree by selecting diferent kernels, allowing
the user to interact with the system by posing questions such as "what happens if a kernel is
replaced by another representing the same or another anatomical region?".</p>
    </sec>
    <sec id="sec-11">
      <title>E. Supplementary Material on Model Re-Training</title>
      <p>This section provides further materials regarding training student models from selected teacher
models as described in Section 3.4. Fig 10 presents a schematic of the teacher-student network
where a selected teacher model can be used to train a student model based on the minimisation
of distillation loss.</p>
      <p>Fig 12 compares the training loss by learning from ground truth (alpha = 1) and learning
from the teacher CNN model (alpha = 0) described in Section 3.2. For the case of learning from
teacher, it can be observed that the distillation loss plateaued beyond epoch 6 indicating that
training has completed. It is also found that the corresponding student loss has dropped to a
level similar to that learned from the ground truth. This indicates that the student model has
learned relevant information from the teacher that can be used to detect pleural efusion.</p>
      <p>Table 1 and Fig 13 provide an representative sample comparison analysis of the student model
trained using the clinical relevant tree as the teacher and a selected choice of single kernels. It
can be shown that the distillation loss for learning from the clinical relevant tree, or relevant
kernels alone (ET and QN respectively) decreases close to zero beyond epoch 6. For the case of
irrelevant and anatomically unspecific kernel (ie. DB), it has dificulty in mimicking the response
of the teacher leading to a slow decline in distillation loss. In addition while the student loss
declines significantly for the clinical relevant tree and for the cases of relevant kernels, the
student loss for the case of DB (anatomically unspecific) remains high and fluctuating. This
indicates that the information learned from the teacher (DB) is not relevant to improving pleural
efusion detection in contrast with information learned from the other teacher models. This is
correspondingly reflected in the diference in student model accuracy.</p>
      <p>Table 2 and Fig 14 provide an alternative comparison between learning from the presented
clinical relevant tree and selected cases when a single kernel in the tree is replaced with an
alternative kernel of the same anatomical region (e.g. QN to OD (Cardiac Silhouette), QT to DM
(left hilar) and AE to MH (right hilar)). This further exemplifies that the training losses (student
loss and distillation loss) will decline comparatively similar when relevant teacher models are
used to train the student for the detection of pleural efusion.</p>
      <p>Lastly, Table 3 and Fig 15 compare learning from the presented clinical relevant tree to a
modified student network with varying number of kernels (ranging from 4 to 512 kernels (base
case)) at the modified last convolutional layer (see Fig 11). The experimental results show
that there is no noticeable performance drop when the modified last convolutional layer is
compressed to only four kernels (i.e. almost 90% reduction in trainable parameters). This is
consistent with prior work [32] that a rule set consisting of very limited number of kernels is
suficient for the binary classification of pleural efusion.</p>
      <sec id="sec-11-1">
        <title>Clinical Relevant Tree</title>
      </sec>
      <sec id="sec-11-2">
        <title>ET (Upper Mediastinum)</title>
      </sec>
      <sec id="sec-11-3">
        <title>QN (Cardiac Silhouette)</title>
      </sec>
      <sec id="sec-11-4">
        <title>DB (Anatomically Unspecific)</title>
      </sec>
      <sec id="sec-11-5">
        <title>Teacher Model</title>
      </sec>
      <sec id="sec-11-6">
        <title>Train Acc. (%)</title>
        <p>94.8
91.8
89.5
55.8</p>
      </sec>
      <sec id="sec-11-7">
        <title>Teacher Model</title>
      </sec>
      <sec id="sec-11-8">
        <title>Train Acc. (%)</title>
        <p>94.8
93.0
94.3
94.5</p>
      </sec>
      <sec id="sec-11-9">
        <title>Student Model</title>
        <p>Val. Acc. (%)
93.8
93.8
92.5
92.5
VGG16_4
VGG16_12
VGG16_50
VGG16_99</p>
      </sec>
      <sec id="sec-11-10">
        <title>VGG16_512 (control)</title>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F.</given-names>
            <surname>Doshi-Velez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <article-title>Towards a rigorous science of interpretable machine learning</article-title>
          ,
          <source>arXiv (</source>
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>V. S.</given-names>
            <surname>Karkhanis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Joshi</surname>
          </string-name>
          ,
          <article-title>Pleural efusion: diagnosis, treatment, and management</article-title>
          ,
          <source>Open Access Emerg. Med</source>
          .
          <volume>4</volume>
          (
          <year>2012</year>
          )
          <fpage>31</fpage>
          -
          <lpage>52</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>G.</given-names>
            <surname>Csurka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Dance</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Fan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Willamowski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Bray</surname>
          </string-name>
          ,
          <article-title>Visual categorization with bags of keypoints</article-title>
          , in: ECCV Workshop on statistical learning in
          <source>computer vision</source>
          , vol.
          <volume>1</volume>
          ,
          <issue>2004</issue>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>2</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Sivic</surname>
          </string-name>
          , Zisserman,
          <article-title>Video google: a text retrieval approach to object matching in videos</article-title>
          ,
          <source>in: 9th IEEE International Conference on Computer Vision</source>
          , vol.
          <volume>2</volume>
          ,
          <issue>2003</issue>
          , pp.
          <fpage>1470</fpage>
          -
          <lpage>1477</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>N.</given-names>
            <surname>Dalal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Triggs</surname>
          </string-name>
          ,
          <article-title>Histograms of oriented gradients for human detection</article-title>
          ,
          <source>in: IEEE Computer Society Conference on Computer Vision and Pattern Recognition</source>
          , vol.
          <volume>1</volume>
          ,
          <issue>2005</issue>
          , pp.
          <fpage>886</fpage>
          -
          <lpage>893</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D. G.</given-names>
            <surname>Lowe,</surname>
          </string-name>
          <article-title>Object recognition from local scale-invariant features</article-title>
          ,
          <source>in: 7th IEEE International Conference on Computer Vision</source>
          , vol.
          <volume>2</volume>
          ,
          <issue>1999</issue>
          , pp.
          <fpage>1150</fpage>
          -
          <lpage>1157</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.-N.</given-names>
            <surname>Frix</surname>
          </string-name>
          et al.,
          <article-title>Radiomics in lung diseases imaging: State-of-the-Art for clinicians</article-title>
          ,
          <source>J Pers Med</source>
          <volume>11</volume>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>P.</given-names>
            <surname>Lambin</surname>
          </string-name>
          et al.,
          <article-title>Radiomics: extracting more information from medical images using advanced feature analysis</article-title>
          ,
          <source>Eur. J. Cancer</source>
          <volume>48</volume>
          (
          <year>2012</year>
          )
          <fpage>441</fpage>
          -
          <lpage>446</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>J. J. M. van Griethuysen</surname>
          </string-name>
          et al.,
          <article-title>Computational radiomics system to decode the radiographic phenotype</article-title>
          ,
          <source>Cancer Res</source>
          .
          <volume>77</volume>
          (
          <year>2017</year>
          )
          <fpage>e104</fpage>
          -
          <lpage>e107</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Vallières</surname>
          </string-name>
          ,
          <article-title>radiomics: MATLAB programming tools for radiomics analysis</article-title>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>R.</given-names>
            <surname>Geirhos</surname>
          </string-name>
          et al.,
          <article-title>ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness</article-title>
          , arXiv (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>P.</given-names>
            <surname>Rajpurkar</surname>
          </string-name>
          et al.,
          <article-title>Deep learning for chest radiograph diagnosis: A retrospective comparison of the CheXNeXt algorithm to practicing radiologists</article-title>
          ,
          <source>PLoS Med</source>
          .
          <volume>15</volume>
          (
          <year>2018</year>
          )
          <article-title>e1002686</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>J. T.</surname>
          </string-name>
          Wu et al.,
          <article-title>Comparison of chest radiograph interpretations by artificial intelligence algorithm vs radiology residents</article-title>
          ,
          <source>JAMA Netw Open</source>
          <volume>3</volume>
          (
          <year>2020</year>
          )
          <article-title>e2022779</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Khosla</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Lapedriza</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Oliva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Torralba</surname>
          </string-name>
          ,
          <article-title>Learning deep features for discriminative localization</article-title>
          ,
          <source>in: 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR)</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>2921</fpage>
          -
          <lpage>2929</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>R. R.</given-names>
            <surname>Selvaraju</surname>
          </string-name>
          et al.,
          <string-name>
            <surname>Grad-CAM</surname>
          </string-name>
          :
          <article-title>Visual explanations from deep networks via GradientBased localization</article-title>
          ,
          <source>Int. J. Comput. Vis</source>
          .
          <volume>128</volume>
          (
          <year>2020</year>
          )
          <fpage>336</fpage>
          -
          <lpage>359</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>J. T.</given-names>
            <surname>Springenberg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Dosovitskiy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Brox</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Riedmiller</surname>
          </string-name>
          ,
          <article-title>Striving for simplicity: The all convolutional net</article-title>
          ,
          <source>arXiv</source>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>M. D. Zeiler</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Fergus</surname>
          </string-name>
          ,
          <article-title>Visualizing and understanding convolutional networks</article-title>
          ,
          <source>arXiv</source>
          (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Bau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Oliva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Torralba</surname>
          </string-name>
          ,
          <article-title>Interpreting deep visual representations via network dissection</article-title>
          ,
          <source>IEEE Trans. Pattern Anal. Mach. Intell</source>
          .
          <volume>41</volume>
          (
          <year>2019</year>
          )
          <fpage>2131</fpage>
          -
          <lpage>2145</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Bau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Oliva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Torralba</surname>
          </string-name>
          ,
          <article-title>Comparing the interpretability of deep networks via network dissection</article-title>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>D.</given-names>
            <surname>Bau</surname>
          </string-name>
          et al.,
          <article-title>Understanding the role of individual units in a deep neural network</article-title>
          ,
          <source>Proc. Natl. Acad. Sci</source>
          . U. S. A.
          <volume>117</volume>
          (
          <year>2020</year>
          )
          <fpage>30071</fpage>
          -
          <lpage>30078</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          <string-name>
            <surname>ET</surname>
          </string-name>
          ,
          <string-name>
            <given-names>AE</given-names>
            , QN,
            <surname>QT</surname>
          </string-name>
          <string-name>
            <surname>ET</surname>
          </string-name>
          , AE,
          <string-name>
            <given-names>QN</given-names>
            ,
            <surname>DM</surname>
          </string-name>
          <string-name>
            <surname>ET</surname>
          </string-name>
          , MH,
          <string-name>
            <given-names>QN</given-names>
            ,
            <surname>QT</surname>
          </string-name>
          <string-name>
            <surname>ET</surname>
          </string-name>
          , AE, OD,
          <source>QT Student Model Train Acc. (%) 93.5 92.5 93.0 93</source>
          .5 Teacher Model Train Acc.
          <source>(%) 94.8 94.8 94.8 94.8 94</source>
          .8 Student Model Train Acc.
          <source>(%) 93.8 94.0 93.3 93.3 93</source>
          .5 Student
          <string-name>
            <given-names>Model</given-names>
            <surname>Val</surname>
          </string-name>
          .
          <source>Acc. (%) 92.5 92.5 93.8 93.8 92</source>
          .5
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>