Tuberculosis (TB) remains the deadliest infectious disease worldwide, with 10.4 million infections and a death toll of 1.7 million people in 2016, according to the World Health Organization (WHO) statistics  . Tuberculosis is an infectious disease caused by a bacterium called Mycobacterium Tuberculosis that remains a global health problem. It primarily infects the lungs, bones, lymph, and digestive organs. People with diabetes, lower immunity, who use immunosuppressive drugs, old age, and people with HIV/AIDS infection, are more likely to develop TB  . In the Philippines, TB is still a major public health concern. Globally, the Philippines ranked ninth (9th) among 22 TB high burdened countries (HBCs). One major problem in TB treatment is guaranteeing the patients to follow their treatment, together with medical checkups and medication till completion. TB patients need retreatment if they relapse or fail in the initial treatment. “Outcomes among patients getting a standard World Health Organization Category II retreatment routine are deficient, resulting in an increased risk of disease, transmission, and drug resistance”  .
Infection with tuberculosis can lead to life-threatening complications. Unfortunately, there is little information about how patients are considered relapse in treatment. Data mining is the exploration of large datasets to extract hidden and previously unknown patterns and relationships  . Data mining techniques in healthcare have been widely applied in different applications, including predicting patient outcomes and modeling health outcomes, evaluation of treatment effectiveness, infection control, and hospital ranking  . The term “data mining” (often called as knowledge discovery) “refers to the process of analyzing data from different perspectives and summarizing it into useful information utilizing several analytical tools and techniques, which in turn may be valuable to increase the performance of a system”  .
Technically, the term “data mining” is the process of finding patterns or relationships among lots of attributes in large relational databases.
Several studies in data mining have been widely used for the prognosis and diagnoses of many diseases. Ferreira et al.  used data mining to improve the diagnosis of neonatal jaundice in newborns. In their research, the dataset contained 70 attributes collected for 227 healthy newborns. Sanchez et al.  applied data mining technique to categorize TB related to identifying patients’ sickness. The study was analyzing the TB diagnostic categories based on given variables. The dataset containing 1655 instances with 56 attributes was used as a raw dataset. The 56 qualities are trimmed into five attributes which are backgrounds, age category, bacteriology results, extrapulmonary, and pulmonary tuberculosis. Several techniques in data mining were useful, including J48, Naive Bayes classifier, CART, multilayer perceptron, simple logistic, and SMO. Vikas and Pal  conducted research to recognize the most common data mining algorithms applied in modern Medical Diagnosis and assessed their performance on several medical datasets. Five (5) algorithms were selected: Simple Logistic, RBF Network, Naıve Bayes, J48, and Decision Tree. Some studies have discovered the decision tree method to analyze medical data. Sharma et al.  , and Zolbanin et al.  have used the decision tree algorithm in their research work, to examine the data, and make the tree and its rules to make a prediction. The two authors have used the decision tree to the dataset to increase the correctness of predictive performance.
However, none of the authors mentioned above ventured on the utilization of J48 decision tree algorithm which engaged to predict the TB patient category treatment relapse which this paper addressed. J48 is very instrumental in this kind of study since it handles both categorical and continuous attributes to build a decision tree. To handle continuous attributes, J48 splits the attribute values into two partitions based on the selected threshold such that all the values above the threshold as one child and the remaining as another child. It also handles missing attribute values. J48 uses the gain ratio as an attribute selection measure to build a decision tree. It removes the biases of information gain when there are many outcome values of an attribute. J48 uses pessimistic pruning to remove unnecessary branches in the decision tree to improve the accuracy of classification  .
This article aims to make a predictive data mining model for treatment relapse to classify which factors influence the category treatment relapse of TB. The model was built by applying data mining technique to the data provided by the Integrated Tuberculosis Information System (ITIS) website of the Department of Health (DOH).
This research is a quantitative research design that uses the computational, mathematical, and statistical tools to analyze and examine the data to simplify outcomes from the datasets. The dataset of TB patients came from Cabanatuan City, which was mined last 2017 from the Integrated Tuberculosis Information System database of City Health Office. This approves the comparability and accuracy of data, which are essential features in the J48 model. The collected data were scrutinized and coded using the WEKA (Waikato Environment for Knowledge Analysis). WEKA is a collection of machine learning algorithms for data mining tasks. The study procedure of interview and data collection was permitted by the Office of the City Mayor and the City Health Director of Cabanatuan City.
The researchers used data mining as a tool with the J48 decision tree as a method to design the prediction model treatment relapse of TB patients. Data mining sort enormous datasets to classify patterns and established relationship to unravel complications with the use of data analysis. Data mining tools were utilized by enterprises to forecast coming trends  . Classification trees are mostly used in several fields, such as medicine, botany, psychology, and computer science  . “These classification trees promptly give themselves to being presented graphically, assisting in making them easier to analyze than they would be if only a strict numerical interpretation were possible”. J48 Decision Tree Algorithm is an implementation by the WEKA project team of the famous tree training algorithm C4.5  . The decision tree classification model advantages are easy to understand and identified to have comparable accuracy to other classification models.
3. Results and Discussions
The WEKA platform  was used in this research. WEKA is a state-of-the-art tool for developing Machine Learning (ML) techniques and their application to real-world data mining problems. It is a popular data mining software with a user-friendly graphical user interface that supports a wide range of data mining algorithms. The J48 model was built using 10-fold cross-validation. Decision Tree J48 is the implementation of algorithm ID3 (Iterative Dichotomiser 3) developed by the WEKA project team.
3.1. J48 Analysis Application
Table 1 shows the description of the user attributes to form a J48 decision tree algorithm was completed as follows: The Patient Category attribute is distinct as a dependent variable. The attribute type of Patient Category is nominal with two values (relapse, non-relapse). As identified in Table 1, as to age, 166 patients were less than 10 years old; 32 patients were in the age group of 10 to 19 years; 56 patients were age in the age group of 20 to 28 years; 56 patients were age in the age group of 29 to 38 years; 59 patients were age in the age group of 39 to 47 years; 92 patients were age in the group of 48 to 57 years; 37 patients were in the
Table 1. Structure of Attributes used in J48 Analysis.
Figure 1. Attributes of TB patient’s dataset using WEKA.
age group of 58 to 66 group; 8 patients were in the age group of 67 to 76 years; and 4 patients were more than 76 years old. In attribute sex, the data showed that there were more males than females. In their bacteriologically status, 51% of the TB patients were under bacteriologically-confirmed TB, while 49% belonged to clinically-diagnosed TB. In DSSM result, “ODT” and “O” had the highest percentage (60%) of TB patients. Almost 100% of the tuberculosis cases on the classification were in pulmonary value; while in the patient category, the majority was under non-relapse.
In Figure 1, the attribute simulation describes different factors for tuberculosis patient category using WEKA. The dataset contains 510 instances and 6 attributes.
3.2. Modeling Results Analysis
The graphical representation in Figure 2 is the J48 Decision Tree Relapse Model.
Figure 2. J48 decision tree relapse model.
The main objective of data visualization is to link information efficiently and clearly. It makes composite data more usable, accessible, and understandable.
J48 Model Rule Sets
If (DSSMResult = “1+”) or (DSSMResult = “2+”) or (DSSMResult = “3+”) or
(DSSMResult = “ODT”) then Prediction = “Non-Relapse”
If (DSSMResult = “0”) and (Age <= 41) then
Prediction = “Non-Relapse”
If (DSSMResult = “0”) and (Age > 41) and (Sex = “F”) then
Prediction = “Non-Relapse”
If (DSSMResult = “0”) and (Age > 41) and (Sex = “M”) then
Prediction = “Relapse”
This J48 model shows that the three important factors for predicting relapse are DSSMresult, age, and sex. The attribute DSSMResult appears as the first splitting attribute. This specifies the significance of this information. The model can be interpreted as follows: if the TB patient’s DSSMResult is equal to “1+”, or “2+”, or “3+”, or “ODT”, the model predicts non-relapse. However, if the patient’s DSSMResult is equal to “O”, then the model examines the age of the patient. If the age of the patient is less than or equal to 41, the model predicts non-relapse.
On the other hand, if the age is higher than 41 years, the model examines the sex of the patient. If the sex of the patient is female (F), the model predicts non-relapse. Otherwise, relapse is predicted. According to this model, when the DSSMResult is “O” and age is greater than 41 years, and sex is equal to “M”, the patient is at high risk to repeat the TB treatment, or the TB patient becomes a relapse.
3.3. Classification Model Accuracy Assessment
In this research, the researchers used the Waikato Environment for Knowledge Analysis tool in Figure 3 for calculating accuracy based on incorrect and correct classes produced by the confusion matrix.
Table 2 shows the tabular display using WEKA that assesses the forecasting accuracy of a predictive model from the dataset of TB patient in the year 2017 with 510 instances and 6 attributes.
Figure 3. Accuracy rate of J48 decision tree.
Table 2. Confusion matrix.
Accuracy (ACC) signifies the amount of the total number of TB patient predictions that are correct. True Positive (TP) means the amount of actual outcome of TB patient relapse that is accurately classified as predicted relapse category, and True Negative (TN) refers to the number of TB patient non-relapse that are rightly classified as predicted TB patient non-relapse category. The accurately classified instance is equal to 90.39%.
4. Conclusions and Recommendations
This paper deals with efficient data mining procedure for predicting the TB relapse from medical records of patients. The J48 classifier was developed by the researchers using WEKA and trained it on a preprocessed TB dataset. The J48 classifier is used to increase the accuracy rate of the data mining procedure. From the results, algorithm J48 predicted the patient category of TB data with the accuracy of 90.39%, which is reasonable enough for the system to be depended on for prediction of category relapse. In order to measure the unbiased prediction accuracy of the method, the 10-fold cross-validation procedure was used. The J48 prediction model was handy and advantageous to assess the consistency among attributes that are used to predict the TB treatment category relapse. A J48 model was established based on the input variables gathered from the ITIS database of the City Health Office of Cabanatuan. The attributes DSSM Result, Age, and Sex are the most critical factors for the prediction of patient category relapse.
It is recommended other IT and computer science experts to venture on studies that are medically related using J48 predication model and continue to investigate and evaluate the technique  they are using so as to increase the overall performance of their healthcare delivery system  .
The researchers are grateful for the support offered to them by the City Health Office of Cabanatuan and the Nueva Ecija Provincial Health Office.
 Dooley, K.E., et al. (2011) Risk Factors for Tuberculosis Treatment Failure, Default, or Relapse and Outcomes of Retreatment in Morocco. BMC Public Health, 11, 140.
 Ferreira, D., Oliveira, A. and Freitas, A. (2012) Applying Data Mining Techniques to Improve Diagnosis in Neonatal Jaundice. BMC Medical Informatics and Decision Making, 12, 143.
 Sánchez, M.A., Uremovich, S. and Acrogliano, P. (2009) Mining Tuberculosis Data. In: Berka, P., Rauch, J. and Zighed, D.A., Eds., Data Mining and Medical Knowledge Management: Cases and Applications, Medical Information Science Reference, New York.
 Vikas, C. and Pal, S. (2014) Performance Analysis of Data Mining Algorithms for Diagnosis and Prediction of Heart and Breast Cancer Disease. International Journal of Innovative Computing, Information & Control: IJICIC, 3, 1-13.
 Sharma, N. and Om, H. (2013) Data Mining Models for Predicting Oral Cancer Survivability. Network Modeling Analysis in Health Informatics and Bioinformatics, 2, 285-295.
 Zolbanin, H.M., Delen, D. and Hassan Zadeh, A. (2015) Predicting Overall Survivability in Comorbidity of Cancers: A Data Mining Approach. Decision Support Systems, 74, 150-161.
 Camdeviren, H.A., Yazici, A.C., Akkus, Z., Bugday, R. and Sungur, M.A. (2007) Comparison of Logistic Regression Model and Classification Tree: An Application to Postpartum Depression Data. Expert Systems with Applications, 32, 987-994.
 Hall, M., Frank, E., Holmes, G., Pfahringer, B., Reutemann, P. and Witten, I.H. (2009) The WEKA Data Mining Software: An Update. ACM SIGKDD Explorations Newsletter, 11, 10-18.
 Cruz, A. and Tumibay, G. (2019) An Efficiency Assessment of Tuberculosis Treatment on Health Centers: A Data Envelopment Analysis Approach. Journal of Computer and Communications, 7, 11-20.