<!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>Automated Classification of Lung Tuberculosis Using 3D Deep Convolutional Neural Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sushaanth. Srinivasan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sharvesh. Shankar</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nitheesh Kumar. N</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sabarivasan. Velayutham</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thejas. N</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vikash Anand. N</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lekshmi. Kalinathan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Prabavathy. Balasundaram</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of CSE, SSN College of Engineering</institution>
          ,
          <addr-line>Rajiv Gandhi Salai, Chennai, Tamil Nadu</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Automated TB and disease classification is a dire need in these times, as traditional diagnostic procedures are ineficient. Existing literature is focused on TB identification and classification using 2D images. As 3D images contain extra depth information which helps in more accurate modelling of the disease cavern, an approach using the 3D-CNN model has been proposed to classify the type of caverns present in lung CT scans in order to ensure prompt treatment.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Tuberculosis</kwd>
        <kwd>Deep Learning</kwd>
        <kwd>3D CNN Classification</kwd>
        <kwd>Cavern</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>can be made that a model using a 3D dataset is more reliable. Therefore it is crucial to come up
with new deep learning solutions that can detect TB based on 3D images and provide higher
accuracy.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Task and Dataset Description</title>
      <p>
        The dataset used for this task is from ImageCLEF 2022[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The goal of the Caverns Report task
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is to predict 3 binary features of caverns namely, Has Thick Walls, Has Foci Around and Has
Calcification .
      </p>
      <p>A single 3D image is provided for each of the 60 patients. Each 3D image contains around
100 slices of 2D images of 512x512 pixels. All the CT images are stored in NIFTI file format
with .nii.gz file extension (g-zipped .nii files). This file format stores raw voxel intensities in
Hounsfield units (HU) as well the corresponding image metadata such as image dimensions,
voxel size in physical units and slice thickness.</p>
      <p>Two versions of automatically extracted masks of the lungs were provided for each CT image.
This data is available along with the CT images of the patients. The first version of segmentation
is able to provide masks in an accurate manner,but tends to miss features in severe TB cases
where large abnormal regions of lungs are present. On the contrary, the second segmentation
provides rough bounds, but includes lesion areas.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Techniques Used</title>
      <p>The 3D-CNN architecture is frequently used for a stack of 2D images, particularly for medical
images, as it can assess the positions of defects in the time domain. During the convolution step,
the 3D-CNN generates a 3D activation map. This is required for time and volumetric context.
To calculate the representation of elements at a low level, a three-dimensional filter is employed
for the 3D convolution of the dataset.</p>
      <p>Convolution and pooling layers connect only to local regions around each input in the CNN,
which is a version of the classic neural network. CNNs are sparsely connected to hierarchical
representation of the input, allowing them to process images from general forms to edge details.
The 3D-CNN is a development of 2D-CNNs that captures discriminating features in both the
spatial and temporal dimensions by dividing hierarchical 3D visual information into small cubes
rather than 2D patches.</p>
      <p>Figure 1 illustrates the notion of a 3D convolution. The input 3D image is split into 2D slices.
The process of 3D convolution begins with the 2D slices, with xij denoting the jth receptive
ifeld on the i th slice. Local receptive fields are constructed on 2D slices to generate 2D features
yij, which are convolved along the temporal direction i to generate feature vector yj at the
convolution layer. A 3D pooling layer follows the same steps as a 2D pooling layer. However,
it takes the maximum or average values at each step. The CNN is ready for hierarchical
learning from motifs to edges after repeated convolution and pooling operations until the
picture information is adequately compressed.</p>
      <p>The sequences of signals will be fed into the final hidden layer, where a fully connected
neural network will learn the image’s attributes and generate the output as data sequences.
Figure 2: Proposed 3D-CNN Architecture</p>
    </sec>
    <sec id="sec-4">
      <title>4. Implementation</title>
      <p>The model was trained on an Intel i7 core CPU, Samsung 1TB SSD and an Nvidia GeForce
GTX 2060 Super GPU System. Google Colaboratory was also used which uses a 12GB Nvidia
Tesla K80 GPU. The Deep Learning framework Tensorflow was used along with tools such as
Anaconda, Jupyter Notebook Environment, CUDA, Numpy, Pandas and Sci-Kit Learn.</p>
      <p>A TB classification system was built which has been implemented as multiple binary classifiers
for each of the three classes; namely Has thick walls, Has foci around, and Has calcification . The
procedure for the implementation of the system is given as follows:
• The labels were separated by class in order to implement multiple binary classifiers for
the three classes. The separated labels were stored in a Numpy array.
• The given dataset for the TB Task consists of 3D images. Each 3D image was split into a
set of 2D image slices. Each slice was resized to 128x128 pixels using Spline Interpolated
Zoom and Inter Cubic Interpolation.
• The training images were loaded into Numpy arrays in order to train the model.
• The training data was normalized as it calibrates the diferent pixel intensities into a
normal distribution which makes computation eficient and helps the model converge
faster.
• The normalized data was split into training and testing sets.
• During the learning process, the learning rate is automatically reduced if the loss remains
the same for a predefined number of epochs. This callback monitors the validation loss
and helps prevent stagnation.
• If the model shows no improvement in the reduction of validation loss after a predefined
number of epochs even after reduction of the learning rate, the training is automatically
stopped.
• The architecture of the model in as shown in Figure 2.
• K-fold cross validation was performed to estimate the prediction of the model on unseen
data and is a preventive measure for overfitting. This ensures that the proportion of the
feature of interest is the same across the original data, training and the test set, which
gives a more accurate estimate of the performance of the model.</p>
      <p>• After training, the model was made to predict values for the test data.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Result and Analysis</title>
      <p>The model was trained on a small scale dataset of five patients and then upscaled to sixty patient
records. The model has attained an accuracy of 75% on training data and 60% on validation data.
The area under the ROC curve for the validation data is 0.78 for the class Has Calcification , 0.74
for the class Has Foci Around, and 0.65 for the class Has Thick Walls.</p>
      <p>For the classes Has Foci Around and Has Calcification , the most of the ROC curve is present
towards the left of the line denoting the random classifier but it intersects the line. The validation
accuracy is very less compared to the training accuracy and the validation loss is much greater
than the training loss. Therefore it can be inferred from the figures 3, 4 and 5 that the model might
be overfitting the data. This is due to the imbalance between the positive and negative binary
classes present in the separated datasets for the classes Has Foci Around and Has Calcification .
However, for the class Has Thick Walls, the ROC curve is present towards the left side of the
line denoting the random classifier as well as does not intersect it. The training and validation
accuracy plot lines are close to each other and the same is true for loss values as well. This
shows that the model has correctly fitted the data. Thus, it can be inferred from this graph that
the model performs well on this class as the positive and negative samples in the dataset for
this class are balanced.</p>
      <p>The following table describes the probability of the three classes predicted by the model.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusions</title>
      <p>In summary, a Deep 3D Convolutional Neural Network model structure has been proposed
to accurately predict the classification of the cavern present in CT Scans of Tuberculosis in
the Lung region. In order to increase the predictions of the model, the parameters and the
hyperparameters of the 3D-CNN model were tuned. The optimal model resulted in a training
accuracy of 75%. The model was tested for the test data of 16 patients and achieved a mean
AUC of 0.536.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgments References</title>
      <p>We thank the CSE department of SSN College of Engineering for letting us utilize the GPU
machine extensively to implement this task.
H. Schindler, J. Chamberlain, A. Campello, A. Clark, Overview of the ImageCLEF 2022:
Multimedia retrieval in medical, social media and nature applications, in: Experimental IR
Meets Multi- linguality, Multimodality, and Interaction, Proceedings of the 13th International
Conference of the CLEF Association (CLEF 2022), LNCS Lecture Notes in Computer Science,
Springer, Bologna, Italy, 2022.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>B.</given-names>
            <surname>Ionescu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Müller</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Peteri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Rückert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. Ben</given-names>
            <surname>Abacha</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. G. S. de Herrera</surname>
            ,
            <given-names>C. M.</given-names>
          </string-name>
          <string-name>
            <surname>Friedrich</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Bloch</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Brüngel</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Idrissi-Yaghir</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Schäfer</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Kozlovski</surname>
            ,
            <given-names>Y. D.</given-names>
          </string-name>
          <string-name>
            <surname>Cid</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Kovalev</surname>
          </string-name>
          , L.
          <string-name>
            <surname>-D. Ştefan</surname>
            ,
            <given-names>M. G.</given-names>
          </string-name>
          <string-name>
            <surname>Constantin</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Dogariu</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Popescu</surname>
          </string-name>
          , J. Deshayes-Chossart,
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Kozlovski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Dicente Cid</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Kovalev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Müller</surname>
          </string-name>
          , Overview of ImageCLEF Tuberculosis 2022 -
          <article-title>CT-based caverns detection and report</article-title>
          , in: CLEF2022 Working Notes, CEUR Workshop Proceedings, CEUR-WS.org &lt;http://ceur-ws.
          <source>org&gt;</source>
          , Bologna, Italy,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>H.</given-names>
            <surname>Rahul</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mittal</surname>
          </string-name>
          , S. Sofat,
          <string-name>
            <surname>Automated</surname>
            <given-names>TB</given-names>
          </string-name>
          <article-title>classification using ensemble of deep architectures</article-title>
          ,
          <source>in: Multimedia Tools and Applications Journal</source>
          .
          <year>2019</year>
          ,
          <volume>78</volume>
          (
          <issue>22</issue>
          ):
          <fpage>31515</fpage>
          -
          <lpage>31532</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Anand</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.R.</given-names>
            <surname>Anandan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Jayaraman</surname>
          </string-name>
          , M.T. Thai,
          <source>Simple Neural Network based TB Classification</source>
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>R.</given-names>
            <surname>Dinesh Jackson Samuel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. Rajesh</given-names>
            <surname>Kanna</surname>
          </string-name>
          ,
          <article-title>Tuberculosis (TB) detection system using deep neural networks</article-title>
          ,
          <source>in: Neural Computing and Applications Journal</source>
          .
          <year>2019</year>
          ,
          <volume>31</volume>
          (
          <issue>5</issue>
          ):
          <fpage>1533</fpage>
          -
          <lpage>1545</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ahsan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gomes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Denton</surname>
          </string-name>
          ,
          <article-title>Application of a convolutional neural network using transfer learning for tuberculosis detection</article-title>
          ,
          <source>in: IEEE International Conference on Electro Information Technology (EIT)</source>
          .
          <year>2019</year>
          , pp.
          <fpage>427</fpage>
          -
          <lpage>433</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.Z.Y.</given-names>
            <surname>Zaidi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.U.</given-names>
            <surname>Akram</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Jameel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.S.</given-names>
            <surname>Alghamdi</surname>
          </string-name>
          ,
          <article-title>A deep learning approach for the classification of TB from NIH CXR dataset</article-title>
          ,
          <source>in: IET Image Processing</source>
          .
          <year>2022</year>
          ,
          <volume>16</volume>
          (
          <issue>3</issue>
          ):
          <fpage>787</fpage>
          -
          <lpage>796</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>R.A.</given-names>
            <surname>Rizal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.O.</given-names>
            <surname>Purba</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.A.</given-names>
            <surname>Siregar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Sinaga</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Azizah</surname>
          </string-name>
          ,
          <article-title>Analysis of Tuberculosis (TB) on X-ray Image Using SURF Feature Extraction and the K-Nearest Neighbor (KNN) Classification Method</article-title>
          , in
          <source>: Journal of Applied Information and Communication Technologies (JAICT)</source>
          .
          <year>2020</year>
          ,
          <volume>5</volume>
          (
          <issue>2</issue>
          ):
          <fpage>9</fpage>
          -
          <lpage>12</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Oloko-Oba</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Viriri</surname>
          </string-name>
          ,
          <article-title>Diagnosing tuberculosis using deep convolutional neural network</article-title>
          ,
          <source>in: Proceedings of International Conference on Image and Signal Processing</source>
          .
          <year>2020</year>
          , pp.
          <fpage>151</fpage>
          -
          <lpage>161</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>