Computer-aided Detection of Tuberculosis from Microbiological and Radiographic Images

ABSTRACT Tuberculosis caused by Mycobacterium tuberculosis have been a major challenge for medical and healthcare sectors in many underdeveloped countries with limited diagnosis tools. Tuberculosis can be detected from microscopic slides and chest X-ray but as a result of the high cases of tuberculosis, this method can be tedious for both Microbiologists and Radiologists and can lead to miss-diagnosis. These challenges can be solved by employing Computer-Aided Detection (CAD)via AI-driven models which learn features based on convolution and result in an output with high accuracy. In this paper, we described automated discrimination of X-ray and microscope slide images into tuberculosis and non-tuberculosis cases using pretrained AlexNet Models. The study employed Chest X-ray dataset made available on Kaggle repository and microscopic slide images from both Near East University Hospital and Kaggle repository. For classification of tuberculosis using microscopic slide images, the model achieved 90.56% accuracy, 97.78% sensitivity and 83.33% specificity for 70: 30 splits. For classification of tuberculosis using X-ray images, the model achieved 93.89% accuracy, 96.67% sensitivity and 91.11% specificity for 70:30 splits. Our result is in line with the notion that CNN models can be used for classifying medical images with higher accuracy and precision.


INtrODUctION
According to WHO as of 2020, there were over 10 million people estimated to be infected with Tuberculosis (TB) globally.However, it is reported that more than 1.4 million people died from the infection which include more than 200 thousand people suffering with HIV.Globally, TB is among the top 20 causes of death with HIV, cancer, pneumonia, cardiovascular disease etc. TB is rate higher than HIV/AIDS in terms of leading cause of deaths from a single pathogen [1,2].
The major challenges regarding TB are that children and adolescent are mostly overlooked by healthcare providers which makes it difficult of diagnose and treat.Secondly, there have been thousand cases of multidrug resistance TB which is difficult to treat using the current drugs and thus, pose serious health burden and concern.The number is estimated to have increase by 10% as of 2018 with total number of 187 thousand people infected with the resistant TB.However, in 2019, it was estimated that over 200 thousand people are infected with multi-drug resistance TB or rifampicin resistant TB [2].
Early screening and detection of the bacteria is critical for preventing widespread and increasing survival rate of patients.Medical laboratory technicians, pathologists, radiologists and microbiologists utilize several diagnostic assays or techniques for accurate detection of the bacteria.Some of the approaches include tissue biopsy assay, true NAT assay, tuberculin test, smear sputum culture, Xpert ultra and Xpert mycobacterium TB assay (which is highly recommended by WHO) chest X-ray (CXR) images and compute tomography (CT) scans [3].
The advent of Artificial intelligence (AI) has transformed computer science and other technological fields, medicine, agriculture, natural science etc.The technology has been utilized for data analysis, image classification, prediction etc.In medicine, AI has been utilized for prediction of disease, identification of drugs, image classification of disease such as cancer, pneumonia, COVID-19, skin lesions, diabetes retinotopy etc. [4].
Due to low sensitivity of existing assays and interpretation of result obtained from this laboratory procedures which is very tedious for medical experts, scientists developed the use of AI-driven models for image-based screening of TB from microscopic slide and radiographic images [5].Thus, the integration of this technique for automated detection offer promise of lessening the human burden due to the lack of adequate testing materials especially in developed countries and remote areas.

Computer Aided Diagnosis
Computed Aided Diagnosis (CAD) also referred to Computer Aided Detection (CAD) is a computer-based application that assists medical experts in decision-making [6].In healthcare system, a medical practitioner uses medical images to evaluate information such as abnormality from images for proper diagnosis.Interpretation of medical images is very critical in the medical field due to the fact that any miss-diagnosis can be detrimental [7].Different fields of medicine deal with specific types of images such as microscopic slide images by microbiologists, pathological and histological stain slide by pathologists and oncologists, CT scans or Chest Xray (CXR) by radiologists as well as ultrasound and endoscopy [8].

Computer-aided Detection of Tuberculosis from Microbiological and Radiographic Images
CAD technology revolves around the use of multiple concepts such as medical image processing, computer vision and AI.The primary function of CAD system is detection of abnormality in medical images such as providing quantified image metrics to compute probabilities of different diagnoses and identification of potential Regions of Interests (ROIs) [9].These techniques have been applied for detection of different grades of tumors (such as colon, prostate, breast and lung cancer) from pathological stain images, detection of Mycobacterium tuberculosis from both microscopic slide images and radiographic images, detection of pneumonia from CT scans and diabetic retinopathy.Other application of CAD systems includes diagnosis of Alzheimer's disease, pathological brain detection, coronary artery disease, bone metastases etc. [7].

Artificial Intelligence (AI)
The notions of AI have been trending throughout the last 6 decades.The definition of the concept varies among scholars.However, AI is termed as any technique that enables computers to mimic human behaviour.The term AI was coined in the 1950s and subsequently Machine Learning (ML) as a subfield of AI was introduced.ML is coined in the 1980s which is categorized in supervised ML (SML), unsupervised ML and Reinforcement ML [10].

Machine Learning (ML)
ML is coined in 1959 by Arthur Samuel as "a field of AI that gives computers the ability to learn without being explicitly programmed".ML algorithms are grouped into 3 major categories, Supervised ML, Unsupervised ML and Reinforcements ML.Supervised ML algorithms are the most common and widely used ML techniques adopted by medical practitioners in which data are labelled and the network learn features to recognise patterns in data for prediction or classification.The most popular SML techniques include Neural Networks (NNs), Support Vector Machine (SVM), Random Forest (RF), decision Tree (DT), etc. [10,11].
In Unsupervised ML, models learn from unlabelled data.These models learn to forecast result from the data according to the patterns learned.The most widely used unsupervised ML models include Rule Mining (RM) and Clustering algorithms.Meanwhile, Reinforcement ML is termed as "when a computer program learns from Experience (E) with respect to some Task (T) based on the Performance (P) measures, if P at T is measured by P improve with experience [10,11].

Deep learning and Artificial Neural Networks (ANNs)
Deep learning (DL) is a subfield of ML which is inspired by how human brain's function due to connections or synapses of nerve cells or neurons.Model learn as a result of data connection between neurons in the network.A simple neural network is termed as perceptron which take input as data set and produced an output as classification or prediction outcome.DL neural networks are made of multiple perceptron's with an input layer (IL), and many hidden layers (HL) before output layer (OL) [12,13].Since the emergence of DL in 2010, scientists have designed different models using convolutional neural networks that can classify and analyse medical images such as cancer, tuberculosis, radiological images for diagnosis of diseases [14].

Computer-aided Detection of Tuberculosis from Microbiological and Radiographic Images
Convolutional Neural Network (CNN) is a class of ANN with multi-layer perceptron which are fully connected network in which each neuron from one layer is connected to all neurons in the next layer.CNNs are termed as networks that utilize series of mathematical operations knows as "Convolution".There are various neural networks architectures developed.Some of the architectures have performed better than others in terms of regression, classification and denoising images.The current best models include AlexNet with 8 layers, VGGNet with 19 and 16 layers, Inception module also known as GoogleNet with 22 layers and 9 modules and Residual or ResNet with 152 layers.In order to train a NNs, a backpropagation algorithm is used to adjust the weight according to the data pattern and optimize the error between predicted output and actual output [15,16].

AlexNet
AlexNet is the first CNN developed that outperform other models in the ImageNet Large Scale Visual Recognition Challenge (ILSVRC) competition in 2012.AlexNet is developed by Alex Krizhevsky.The model consists of overall 8 layers, in which 5 are convolutional layers and 3 fully connected layers.The first two convolutional layers are made of 3 operations which include convolution, pooling and normalization.AlexNet use Rectified Linear Unit (ReLu) as an activation function unlike Tanh and sigmoid functions that are used in traditional ML.ReLU converts negative numbers to zeros and help models learn non-linear functions [17,18].
Max pooling is the most common pooling methods which main function is to down sample or to reduce image size by pooling most important feature or by pooling out the number with highest pixel value.The next 2 layers are mainly convolution layers without pooling and normalization and the final convolution layer consists of only convolution and pooling without normalization.The first 2 fully connected layers are dropout layers which main function is to reduce overfitting through reduction of number of neurons.The final FCL is basically for classification as shown in figure 1 [19,20].

Transfer Learning (TL)
TL is defined as ML approach where a model trained on a specific task is re-purposed on other related task or a means to extract knowledge from a source setting and apply it to a different target setting.TL can also be described as a process where what models learned from a specific task or setting is harnessed to improve better outcome in another task or setting.Some of the advantages of TL or pretrained models over the ones developed from scratch include low computation, better performance, small learning rates, time saving, etc. [21].

Tuberculosis (TB)
TB is an airborne infection caused by a bacterium known as Mycobacterium tuberculosis (MBTB) which are slender, rod shape microbes with length ranging from 1-10µm and strict aerobes (need oxygen to survive).They possess a waxy cell wall as a result of formation of "Mycolic Acid" making them "Acid

Computer-aided Detection of Tuberculosis from Microbiological and Radiographic Images
fast" which signifies that they can retain on to a dye or stain in spite of being exposed to alcohol, thus, making the bacilli look red in color when Ziehl-Nelson stain is applied.However, due to the nature of their waxy cell wall, they tend to repel weak disinfectants and can survive on a dry surface for a long period of time [22].According to WHO 2019 report, deaths as a result of TB-related disease decreased from 1.6 million in 2017 to 1.5 million in 2018.It was estimated that 10 million people fell ill as a result of TB in 2018, with the majority of patients coming from India, Pakistan and China.The symptoms of tuberculosis include haemolysis (coughing up blood), fever, weight loss, night sweats etc. [1].

Diagnosis
There are many approaches adopted by pathologist for the detection of TB; some of the techniques include Tuberculin Skin Test (TST), microscopy, chest X-ray, Purified Protein Derivative (PPD), GeneXpert, culture test and Interferon c-release assay.However, among these techniques, microscopic sputum smear evaluation using microscope remains the most common approach globally, especially in underdeveloped and developing countries due to its affordability, simplicity, speed and maintenance when compared to other techniques [3].

Challenges
Majority of microbiological diagnostic depends on chemical and analytical assays and interpretation by professionals in the field.Thus, due to the tedious nature of the assays, lack of adequate and reliable testing kit and reagents, or expiration of the existing chemicals especially in underdeveloped countries, this result in miss-diagnosis, irreproducibility, false-positive results and inaccuracy.Despite the fact that the use of microscope for identification of microbial pathogens is very crucial for screening and diagnosis, this method is hindered by several challenges which can lead to miss-diagnosis and false-positive cases [23].Some of the challenges of microscopic examination of Mycobacterium tuberculosis include the overlapping of the bacteria on top of each other, the size of the bacteria which is very small (i.e., 1-10 µm), low background contrast, irregular appearance, heterogenous shape, faint boundaries.Moreover, screening large number of microscopic slides images can be very hectic and tedious for pathologists.In order to resolve these challenges and limitations, there is need to develop more rigorous, robust, accurate, fast, reliable technique that can be utilized for screening and diagnosis of TB [3,23].
The aim of this work is to applied DL-TL for the detection of TB.However, there are several studies that addressed this issue.One of the distinctions of our study with existing literature is that we trained and validated AlexNet model using microscopic slide images and X-ray while existing studies only focus on one type of medical image.Secondly, majority of studies evaluated model based on conventional performance metrics, however, in this study, we conducted 10k cross validation in order to provides average performance of the model rather than using single evaluation.

Contribution
• The use of pretrained AlexNet for classification of TB from microscopic slide and X-ray images.
• The use of pretrained AlexNet for classification of TB from microscopic slide images.
• Performance evaluation based on Accuracy, sensitivity and specificity.
• Evaluation of model using 10k-folds cross validation • Realistic comparison between pretrained AlexNet with the current state-of-the-art.

Microscopic Slide
Automated detection of Mycobacterium tuberculosis has aided in accurate diagnosis of the disease.The integration of computer-based technology into healthcare has transformed the sector and contribute to increase in efficiency.Several studies in the literature have demonstrated the benefit of integrating CAD systems.Smith et al. [24] utilized a high-quality microscope designed to collect high resolution stain slide images.In order to make the bacilli visible, the researchers amplified the number of colonies and stained using dye to acquired 25000 images.The study conducted different types of image augmentation which are used to train the CNN model in order to discriminate between various types of bacteria (rod, chain

Computer-aided Detection of Tuberculosis from Microbiological and Radiographic Images
and round-shapes).The model achieved an overall accuracy of 95%.The classification of Mycobacterium tuberculosis and normal cases using ANN is provided by Khan et al. [25].The study utilized over 12 thousand images which are partitioned into 70% for training of the model and 30% for validation.The image training was carried out using feedforward backpropagation model and the model achieved 94% testing accuracy.A CNN Model built from scratch by Xiong et al. [5] name TB-AI was used for detection of Mycobacterium tuberculosis bacillus.The model was trained using 45 total samples with 15 as negative cases and 30 as positive cases which are tissue samples that were treated using acid-fast stain.The result has shown TB-AI achieved 83.65% specificity and 97.94% sensitivity.
Panicker et al. [26] utilized CNN approach to detect Mycobacterium tuberculosis bacillus from microscopic sputum spear images.The dataset was obtained from a public domain with 120 images which were cropped to 900 patches for both positive and negative samples for segmentation method.The model accomplished sensitivity of 97.13% and specificity of 78.4%.A study based on the use of SVM for the detection of Mycobacterium tuberculosis is provided by Costa Filho et al. [27].The study employed 120 smear microscopic slide image from 12 cases.Prior to training, the images undergo conventional smear microscopy and segmentation.The study reported an error rate of 3.38% and sensitivity of 96.8%.The use of microscopic slide images for the classification of TB and non-Tb cases is proposed by Ibrahim et al. [23].The study acquired microscopic slide images from Near East University (NEU) Hospital which contain 530 images.Data augmentation based on rotation and cropping were also conducted to increase the training set to 2444 images.The images were trained and tested using pretrained AlexNet model which resulted into 98.73% accuracy, 98.59% sensitivity and 98.84% specificity.Machine vs Human experiments were conducted where DL model outperformed human pathologists.
A deeper model was employed by El-Melegy et al. [28] for detection of Ziehl Nelson-stained sputum smear of TB and healthy images.The research utilized 500 images which are divided into 80% and 20% for training and validation respectively and train using Faster Region-based convolutional neural network plus CNN (F-R-CNN+CNN) and Region-based convolutional neural network F-R-CNN.F-R-CNN+CNN achieved 85.1% sensitivity and 98.4% accuracy while F-R-CNN achieved 82.6% sensitivity and 98.3% accuracy.Due to the prevalence of TB in Uganda, Muyama et al. [29] utilized 3 TL models based on ResNet (inception V3), GoogleNet and VGGNet for computer assisted-detection of TB from Ziehl-Nelson sputum smear slide images.The study made used of dataset obtained from an online database and the ones captured using cell phone's camera in the university microbiology laboratory.The 2 datasets are combined together and partitioned into 80% for training and 20% for validation.The models were trained according to (I) find-tunning (II) with augmentation and (III) without augmentation.However, among all the pre-trained models, ResNet achieved the highest accuracy score of 86.7%.The summary for detection of tuberculosis from microscopic slide using AI-driven tools is presented in Table 1.

Chest X-ray
Klassen et al. [30] employed CNN to discriminate between normal and pulmonary TB using radiographs.The study utilized 1007 posterior chest radiographs which were partition into training, validation and testing respectively.The images were trained using 2 models which include GoogleNet and AlexNet.The two models ensembled together to achieved AUC of 0.99 with a sensitivity of 97.3% and specificity of 94.7%.The same approach was adopted by Yahiaoui et al. [31] to classify TB from healthy samples using SVM.The model was trained using 15 total CXR images (acquired from 50 patients suffering from TB and 100 healthy samples).However, the model achieved 96.7% accuracy.
The use of TL based on VGGNet and SVM as the model classifier is reported by Ahsan et al. [32].The study utilized dataset obtained from Shenzhen hospital, China and from Montgomery County Tuberculosis Control Program (MCTCP) in the form of CXR images.The images were trained based on (I) with augmentation and (II) without augmentation.The model achieved 81.25% validation accuracy with augmentation and 80% validation accuracy without augmentation.Chang et al. [33] proposed a 2-stage classification of TB based on TL on CNN.The study made used of 1727 cases of TB culture acquired from Tao-Yuan general hospital, Taiwan.The dataset was trained using VGGNet, YOLO and CNN designed from scratch.By targeting the result of the model on non-negative class, the proposed system achieved 98% recall and 99% precision.
To classify normal and abnormal X-ray images of individuals suffering from TB, Abbas and Abdelsamea [34] utilized a pretrained AlexNet model.The model was trained based on 138 total CXR images (58 normal and 80 abnormal X-ray images).To increase number of training set, the X-ray images undergo data augmentation.The model hyperparameters were turned according to deep-tuning, shallow-tuning and fine-tuning

Computer-aided Detection of Tuberculosis from Microbiological and Radiographic Images
techniques.The study revealed that hyperparametric fine-tuning of pretrained AlexNet outperform other tuning techniques with 0.998 AUC score, 99.7% sensitivity and 99.9% specificity.The application of hybrid model for automated detection of TB is proposed by Sahool et al. [35].The hybrid model comprises of MobileNet with 88 layers and feature selector in the form of Artificial Ecosystem-based optimization (AEO) algorithm.The model was trained on X-ray dataset acquired from Shenzhen hospital, China with 662 totals frontal CXR images (of which 336 are positive and 336 negative).The model achieved 90.2% best classification accuracy, 93.85% sensitivity and 86.76% specificity.
The study conducted by Ibrahim et al. [36] applied 2 classifiers for the classification of TB and non-TB images. 2 Pretrained AlexNet models (AlexNet+Softmax and AlexNet+SVM) are trained and tested using 3871 TB images and 3500 non-TB images.The evaluation of the model performance yielded 98.19% accuracy using AlexNet+Softmax and 98.38% using AlexNet+SVM.The study conducted by Nafisah and Muhammad [37] applied DL models for the classification of CXR images into TB and non-TB cases.Several DL models which include (EfficientNetB3, MobileNet, ResNeXt-50, Inception-ResNet-V2 and Xception) were trained and tested using 692 TB and 406 non-TB segmented images.The evaluation of the model performance has shown that EfficientNetB3 achieved the highest result with 99.1% accuracy, 98.7% average accuracy and 99.9% ROC.The summary for detection of tuberculosis from Chest X-ray using AI-driven tools is presented in table 2.

Computer-aided Detection of Tuberculosis from Microbiological and Radiographic Images
melanoma, colorectal, prostate etc.), TB, pneumonia (COVID-19 and non-COVID-19).Screening of TB is crucial for early diagnosis and timely treatment especially in underdeveloped countries with prevalence of the disease.Majority of the studies in the literature either focus solely on the application of AI-driven models on microscopic slide images or X-ray images.However, this study includes both medical images and provide comparative analysis of the result obtained and their distinctions.Consequently, majority of exiting studies evaluated models based on conventional metrics (which include accuracy, sensitivity, specificity, AUC, ROC etc.) of training and testing sets.While in this study we include the use of cross validation in order to provides average performance of the model rather than using single evaluation.

MethODOlOgy
This chapter discuss about the overall methodology which include data collection, image pre-processing, data labelling, data split, cross validation pretrained model adjustment, data training and mode of evaluation.

Overview
The summary of the overall methodology is illustrated in Figure 2. Dataset were obtained from 2 different sources (1) X-ray images from Kaggle repository and (2) microscopic slide from Near East University Hospital and Kaggle repository.In order to fit the images into AlexNet model, data processing step was conducted by reducing the image the required pixel size and fed into the pretrained AlexNet model.The model was subsequently evaluated on the basis of sensitivity, specificity and Accuracy.

Microscopic Slide Images
Microscopic slide images have been used extensively in clinical diagnosis of pathogenic disease such as TB, Pneumonia, Anthrax, Cholera, Meningitis, Gonorrhoea etc. Microscopic slides imaging is the most popular conventional approach for the detection of TB.The slides use in this study were prepared through smearing of sputum collected from suspected patients.The basic protocol includes smearing the sputum on clean slides follow by flaming using low flame in order to fix the air-dried smear.Nexus is the spray of Auramine O stain for 10-15 minutes.The slide is then wash using alcohol and subsequently rinsing using deionized water.The final step is based on addition of potassium permanganate to counter stain the slide which result into a clear contrast background which can be view using electronic microscope.The images obtained from the microscope can be save in a computer for further analysis.2 sample of microscopic slides employed in this study are shown in Figure 3.The overall microscopic slide images are 600 (300 positive and 300 negative).

Chest X-ray
The use of radiographic images provides medical expert with a clear view of patient's organs which aid in diagnosis and clinical decision.Chest X-ray images are used to diagnose disease associated with the lungs such as pneumonia (bacterial, viral which include COVID-19) effusion and TB as shown in Figure 4.The X-ray images used in this study are acquired from publicly available website known as Kaggle.The total X-ray images used in this study is 600 (300 positive and 300 negative or normal images).

Data Processing
The microscopic slides images employed for this research were first evaluated and labelled by clinical pathologists into positive and negative cases.The X-ray images used are already labelled in the website.Both the microscopic slide images and chest X-ray images are too large ranging from 1MB to 6MB per each single image.In order to fit the images into AlexNet model, the images are reduced using an online free website known as Birme (https://www.birme.net/).The images are resized into 227x227x3.227 denoted the pixel size for both vertical and horizontal while 3 denoted channels which include Red, Green and Blue (RGB).

Data Split
After resizing, the images are split into 70:30 for training and testing respectively.Based on the 600 images obtained, 420 (210 positive and 210 negative are used for training (I.e., 70%) and 180 (90 positive and 90 negative) for testing (I.e., 30%) as shown in Table 3.

Cross Validation (CV)
Evaluation of model performance is crucial for determining overall accuracy and generalization.Evaluation of model performance based on conventional ML approach involve training computer models using training set and evaluating their performance using testing set (i.e., holdout set).However, this method is not reliable and accurate for finalizing model performances.In order to resolve this issue, scientists proposed the use of CV.This technique is use for assessing generalization of independent data using statistical analysis [38,39].Moreover, this technique is useful for evaluating ML models based on training models with subsets of the input dataset (i.e., 90%) and evaluating the performance using complementary subset (i.e., 10%).CV differs with conventional ML performance approach as it allow the use of each subset as part of the training set and testing set (i.e., reshuffling of subset where each data point get an equal chance to be included in both training and testing set.Cross validation is conducted using k folds, where k can be 3, 5 or 10.Some of the advantages of CV is that it can help scientists detect overfitting, provides average performance of the model rather than using single evaluation (i.e., 70:30%) [39].Therefore, CV is crucial for more accurate evaluation of model performances.
CV is regarded as one of the most important approaches adopted in DL for selection of parameters and evaluation of model performance.CV enable the use of the entire dataset as training and testing respectively.Each fold is use as training and testing.In this study, 10k folds are used, 9 folds for training and 1-fold for testing for both microscopic slides and X-ray images.Each dataset contains 600 images (microscopic slides images and Chest X-ray images).Thus, the images are split into 9 folds (270) and 1-fold (30) for both positive and negative cases.

Model Training
For both microscopic slide images and chest X-ray images, 70% split was used for training in Matlab install with DL, image processing toolbox and AlexNet driver.The program is run on a PC with 8GB random access memory, intel R core-i7-3537U, GPU and window 64-bit.The remaining 30% was reserved for testing.The subsequent training of the model for general dataset and cross validation is adjusted to 20 epoch and 0.0001 learning rate.The code use for training and testing is included in the supplementary file.

Evaluation Metrics
To evaluate the performance of the learned models, some certain parameters are utilized; accuracy, Precision also known as sensitivity and specificity or recall.Accuracy is defined as the ratio of properly classified images over total sum of images; it is also described as the sum of precision and recall.For evaluating the accuracy and loss of the learned model the resulting formulas are employed: Where N is the overall number of images during training and testing, n is the number of images and PC is the probability of the correctly classified images.
Confusion matrix is the common approach used for evaluation of model performance based on True Positive (TP), True Negative (TN), False Positive (FP) and False Negative (FN).TPs is the number of samples that are correctly identified by the model as positive cases or number of cases who actually have TB according to each model.TNs is the number of samples that are correctly identified by the model as negative cases or number of cases who are actually healthy (normal) and classified as negative according to each model.FPs are the number of samples that are incorrectly classified as negative by the model or number of cases that are actually negative (normal or healthy) but classified as TB according to each model.FNs are the number of samples that are incorrectly classified as positive by the model or number of cases that are actually positive (TB) but classified as normal or healthy according to each model as shown in Table 4.
True Positive rate (Sensitivity) is the portion of positive cases or samples which are precisely classified as positive sample (i.e., it describes the ration of positive cases that are correctly identified as positives).

Sensitivity
TPs TPs FNs + False positive rate (FPR) also known as Specificity is the portion of positive cases or samples which are wrongly classified as positive samples (i.e., it describes the ratio of negative samples that are incorrectly classified as positives).

resUlt AND DIscUssION
This section focusses on the results obtained as a result of training and testing of the pretrained AlexNet model using both microscopic slide images and chest X-ray images.The chapter also present the result obtained from cross validation of 2 dataset and comparison with state of the art.

Computer-aided Detection of Tuberculosis from Microbiological and Radiographic Images
testing specificity as shown in Table 6.In the case of 90:10 split, training of the model resulted in 740 iterations and 20 epochs.The remaining 10% are used for testing.The model achieved 97.53% training accuracy, 95.06% training sensitivity, 100% training specificity, 96.67% testing accuracy, 93.33% testing sensitivity and 100% testing specificity as shown in Table 5 and Figure 6.The results presented in table 5 has shown that increasing the number of dataset lead to increase in training accuracy.However, our results are in line with the study carried out by Prashanth et al. [40] based on data splits from 50%-90%.Moreover, 80:20 split achieved higher testing accuracy which shows that model is "fit" compare to 70:30 (with less training set) and 90:10 which is relatively "overfit" due to testing on small number of datasets.

Cross Validation for Microscopic Slide Images
CV was conducted in order to evaluate the general performance of the model by employing every K-fold as training and testing respectively.The model achieved average training accuracy of 88.70%, average training sensitivity of 99.50%, average training specificity of 97.78%.In terms of testing, the model achieved average testing accuracy of 94.66%, average testing sensitivity of 98.33% and average testing specificity of 91.00% as shown in Table 6.[25] with 94% accuracy.Despite the fact that the study trained and tested the model using over 12,000 microscopic slide images, our model which is trained and tested using 600 images achieved similar accuracy based on average CV and less based on 70:30 data split.According to literature, using SVM as a classifier increase model performance.Thus, the result achieved by Costa Filho et al. [27] (96.80%) outperform our model (both 70:30 spilt and CV).This can be attributed to the use of SVM instead of SoftMax use by our model.Smith et al. [24] utilized 25 thousand dataset and achieved 95% accuracy compared with our model which utilized 600 dataset and achieved 94.66% average CV and 90.56% accuracy.The study conducted by El-Melegy et al. [28] achieved higher accuracy (I.e., 98.4%) but achieved lower sensitivity ((I.e., 85.1%) compare to our model (97.78% for 70:30 split and 98.33% average sensitivity).The study conducted by Ibrahim et al. [23]  The result obtained for general dataset yielded 93.89% testing accuracy, 96.67% testing sensitivity and 91.11% testing specificity and average cross validation result in 94.00% average testing accuracy, 98.33% average testing sensitivity and 98.33% average testing specificity.By comparing our result with the study conducted by Klassen et al. [30], our model achieved higher sensitivity and specificity as presented compare to the 87.2% sensitivity and 60% specificity achieved by Klassen and colleagues.The study conducted by Yahiaoui et al. [31] with 96.68% accuracy and the study conducted by Chang et al. [33] with 99.7% sensitivity and 99.9% specificity achieved better performance than our model.The most realistic comparison is based on the study conducted by Abbas and Abdelsamea [34] who utilized 662 X-ray images which is closer to our dataset of 600 X-ray images.However, despite the difference of 62 images our model performs better compare to the use of hybrid model proposed the 2 authors which 90.2% accuracy, 93.85% sensitivity and 86.76% specificity The study conducted by Ibrahim et al. [36] using AlexNet+SVM achieved higher result (98.38%, 98.71% 98.04% accuracy, sensitivity and specificity respectively) compare to our study, this can be attributed with the use of large number of datasets (i.e., 7371 images).Moreover, the study conducted by Nafisah and Muhammad [37] achieved higher accuracy and average accuracy (99.1% and 98.7%) compare to our model.This result can be attributed to the use of EfficientNetB3 which contains more layers than AlexNet model as shown in Table 10.

cONclUsION
TB is one of the most common diseases that affect the lungs.The disease is very contagious and can spread from infected patients to healthy ones.Thus, diagnosis of TB is very crucial for early treatment, prevention and control.Medical expert employs different approaches for the detection of the disease, some of which includes tuberculin test, blood test, microscopic slide sputum smear test, genetic testing and radiographic imaging.The 2 common diagnosis of TB include microscopic slide sputum test and chest X-ray imaging.Despite the wide approaches employ by clinicians for the detection TB, it is still limited or hindered by so many challenges which includes lack of point of point care, low sensitivity, low background images, small size of bacilli, the use of toxic chemical reagents, time consuming, tediousness, the need for trained clinicians.
In order to address some of these challenges, we proposed the use of pretrained AlexNet model which is a DL model that recognize pattern integrated with classifier for classification of disease into positive and negative classes.The study employed 2 set of datasets which consist of microscopic slide images and chest X-ray images obtained from Near East University and Kaggle website respectively.The dataset undergoes image processing, labelling, splitting and training using Matlab software.The performance evaluation of the model based on training and testing are assess based on accuracy, sensitivity and sensitivity.
For classification of TB using MS images, t the model achieved 90.56% testing accuracy, 97.78% sensitivity and 83.33% specificity in the case of 70: 30 splits.In the case of 80:20 split, the model achieved 100% testing accuracy, 100% testing sensitivity and 100% testing specificity.In the case of 90:10 split, the model achieved 96.67% testing accuracy, 93.33% testing sensitivity and 100% testing specificity.In the case of CV, the model achieved 94.66% average testing accuracy, 98.33% average testing sensitivity and 91.00% average testing specificity.
For classification of TB using X-ray images, the model achieved 93.89% testing accuracy, 96.67% testing sensitivity and 91.11% testing specificity in the case of 70: 30 splits.In the case of 80:20 split, the model

Figure 3 .
Figure 3. Microscopic Slide Images.Right: Positive (tuberculosis) microscopic slide image.The purple and red thick bacilli depict mycobacterium tuberculosis.Left: Negative.

Table 1 .
Detection of tuberculosis from microscopic slide using AI-driven tools.

Table 2 .
Detection of tuberculosis from chest X-ray using AI-driven tools.The field of CAD is changing the landscape of disease diagnosis through improving diagnostic efficiency, reducing the use of toxic chemicals and workload.Several researches in the existing literature have demonstrated how AI-driven models aid in diagnosis of several diseases ranging from cancer (breast,

Table 3 .
Data split of Microscopic Slides Images and Chest X-ray Images.

Figure 6 .
General Microscopic Slide Images Result.

Table 6 .
Cross Validation for Microscopic Slide Images.Pretrained AlexNet was used to classify positive and negative cases of TB from MS images.The dataset was split into 70:30, 80:20 and 90:10 for training and testing.In the case of 70:30 split, training of the model resulted in 580 iterations and 20 epochs as shown in figure 7. The remaining 30% are used for testing.The model achieved 99.21% training accuracy, 100% training sensitivity, 98.41% training specificity, 93.39% testing accuracy, 96.67% testing sensitivity and 91.11% testing specificity as shown inTable 8 and Figure 6.In the case of 80:20 split, training of the model resulted in 660 iterations and 20 epochs.The remaining 20% are used for testing.The model achieved 96.53% training accuracy, 97.22% training sensitivity, 95.83% training specificity, 94.17% testing accuracy, 98.33% testing sensitivity and 90% testing specificity as shown in Table 8.In the case of 90:10 split, training of the model resulted in 7540 iterations and 20 epochs.The remaining 10% are used for testing.The model achieved 99.38% training accuracy, 100% training sensitivity, 98.77% training specificity, 98.33% testing accuracy, 100% testing sensitivity and 96.67% testing specificity as shown in Table 7 and Figure 8.

aided Detection of Tuberculosis from Microbiological and Radiographic Images 4
.2.2 Cross Validation for Chest X-ray ImagesCV was conducted in order to evaluate the general performance of the model by employing every K-fold as training and testing respectively.The model achieved average training accuracy of 97.22%, average training sensitivity of 99.87%, average training specificity of 95.58%.In terms of testing, the model achieved average testing accuracy of 94.00%, average testing sensitivity of 98.33% and average testing specificity of 98.33% as shown in Table8.

Table 8 .
Cross Validation for Chest Xray Images.

Comparison with State of the Art 4
.3.1 Comparison with State of the Art for Microscopic Slide Images70:30 split is used for comparison as a result of support from many articles in the literature.The result obtained for general dataset yield 90.56% testing accuracy, 97.78% sensitivity and 83.33% specificity and average cross validation resulted in 94.66% average testing accuracy, 98.33% average testing sensitivity and 91.00% average testing specificity.Compare to study conducted byKhan et al.

Computer-aided Detection of Tuberculosis from Microbiological and Radiographic Images images
[29]eved higher result (98.73% accuracy, 98.59% sensitivity and 98.84% specificity).This can be attributed to training pretrained AlexNet with over 2000 images compare to our study with 600 .The result obtained by Xiong et al.[5](97% sensitivity and 83.65% specificity) perform lower than our model in terms of sensitivity and specificity.Our model outperforms the result obtained by Muyama et al.[29]with 86.7% accuracy as shown in table9.

Table 9 .
Comparison of AlexNet Model with state of the art for classification of microscopic slide.
4.3.2Comparison with State of the Art for Chest X-ray Images

Table 10 .
Comparison of AlexNet Model with state of the art for classification of Chest X-ray Images.