1. INTRODUCTION
X-rays to aid radiologists in accurate and early diagnosis [2]. This capability allows patient treatment to be determined with high accuracy and in a shorter time compared to traditional tools [2]. Moreover, ML contributes to the development of molecular markers for lung cancer patients. By integrating genotype and phenotype data, personalized algorithms effectively search for the most optimal treatment plans while excluding futile therapies [3]. This approach not only increases the efficacy of the treatment but also decreases dangerous side effects
Artificial Intelligence, or specifically termed as Machine Learning (ML), has taken a frontline position in availing medical practice with efficient and effective tools for improved diagnosis and treatment of diseases such as lung cancer [1]. A key feature of ML algorithms is their capability to solve complex data analyses within relatively short periods and highlight descriptive features important for making timely diagnoses [1]. For instance, algorithms identify cancer kernels and tumors in visual anatomy such as CAT scans and and costs, which traditional healthcare services cannot overcome [4]. Beyond diagnosis and therapy, ML plays an important role in risk assessment and prognosis prediction [5]. EHR-based models can estimate an individual’s lung cancer risk from clinical records and smoking-related information, helping identify high-risk groups for preventive screening [5]. This can concentrate resources on early detection and treatment to prevent malignant tumors [6, 7]. ML also assists in drug identification and development. By analyzing big data, it is possible to predict the nature, efficiency, and dosage of particular drugs using ML models [8]. This reduces the time required for drug development, lowers costs for pharmaceutical companies, and provides exclusive treatments for specific cancer types [9]. However, challenges remain in the implementation of ML in lung cancer care. The quality of training data shapes ML model accuracy and reliability [10]. Bias in datasets leads to biased predictions and amplifies healthcare disparities [11]. Hence, addressing the problem of racially and ethnically imbalanced data is crucial for ensuring fair ML healthcare applications [11]. Furthermore, the explainability of ML model results, especially from deep learning algorithms, is a significant barrier to implementation. Clinicians and patients often struggle to understand the reasoning behind predictions, leading to mistrust [12]. Explainable AI (XAI) techniques are being developed to address this, enhancing confidence among healthcare professionals and patients by providing clear insights into predictions [13]. Emerging wearable health devices powered by ML are providing new options for patient monitoring [14]. These devices track physiological factors, respiratory patterns, and other features, offering relevant alerts for the treatment process [15]. These systems improve patient outcomes and reduce healthcare costs by facilitating early identification of risk factors and disease progression [16]. ML also integrates data from imaging, genetics, proteomics, and clinical records, enhancing the understanding of diseases and the development of treatments. Natural Language Processing (NLP) complements ML by extracting structured information from unstructured clinical notes, enriching clinical practice and research [17]. However, risks like patient data privacy and minority data accuracy must be managed appropriately. Collaboration among researchers, clinicians, and policymakers is necessary to determine best practices for ML implementation in real-world scenarios. Due to advancements in ML technologies, diagnosing and treating lung cancer has become more efficient. The analysis demonstrates the potential to diagnose lung cancer in its earliest stages and provide personalized treatment approaches, improving patients’ quality of life.
2. LITERATURE REVIEW
2.1 Related Work
In this paper, we provide a summary of the most recent and relevant research works focused on predicting lung cancer occurrence using machine learning techniques and models. The primary goal of the study [1] is to establish early detection of lung cancer by evaluating the performance of various classification algorithms. The authors used Support Vector Machine (SVM), Naive Bayes, Decision Tree, and Logistic
Regression. Logistic Regression achieved an accuracy of 96.9% for the UCI lung cancer dataset, while SVM achieved a higher accuracy of 99.2%. The study [2] aimed to enhance performance, measured by RMSE, and predict lung cancer survival time in terms of months (≤6, 7–24, or > 24). The Random Forest classification model was integrated with three regression models (Gradient-Boosted Machines and General Linear Regression). Random Forest was most effective for survival times ≤6 months (RMSE 10.52) and > 24 months (RMSE 20.51), while Gradient-Boosted Machines were significant for survival times between 7–24 months (RMSE 15.65). The research in [3] evaluates the efficacy of machine learning methods for lung cancer diagnosis using a dataset of 56 features and 32 samples. Preprocessing techniques such as normalization, dimensionality reduction, and feature selection were applied before running six classification algorithms: Decision Tree (DT), Random Forest (RF), k-Nearest Neighbors (k-NN), Logistic Regression (LR), Support Vector Machines (SVM), and Naive Bayes (NB). k-NN achieved the highest accuracy with 83%, outperforming Naive Bayes (87%) and Decision Tree (71%). The study [5] developed a three-year lung cancer risk model using electronic health records from more than 4.7 million individuals. The model was externally validated, achieved an area under the curve of 0.76, and identified age, smoking, race, ethnicity, and chronic obstructive pulmonary disease among its leading predictors. In [18], machine learning methods were applied to blood transcriptome data to distinguish current from former smokers. Feature selection and ranking identified smoking-associated transcript isoforms, and decision-tree rules were used to describe the resulting classifications. The study [19] proposed an interpretable lung cancer detection system using Decision Tree, Logistic Regression, Random Forest, and Naive Bayes classifiers. Logistic Regression and Random Forest each achieved 97% accuracy, and SHAP and LIME were used to explain model predictions. The study [6] analyzed symptom e-questionnaire data separately for never, former, and current smokers using stochastic gradient boosting. Its results demonstrate that prediction performance and influential variables can differ across smokingstatus groups. The research in [6] focused on predicting smoking cessation using models such as Logistic Regression (LoR), CART, ANN, NB, RF, k-NN, and SVM. ANN achieved the highest sensitivity (70.4%), specificity (56.7%), and accuracy (64%), providing general practitioners with reliable estimates for individualized therapies. The work in [7] proposed a deep learning model for lung cancer prognosis using data from the Taipei Medical University Clinical Research Database and the Taiwan Cancer Registry. Using nine machine learning algorithms, ANN showed the highest accuracy with an AUC of 0.89. Significant biomarkers included cancer stage, age, smoking habits, and EGFR gene status. Authors in [8] utilized a public dataset for lung cancer prognosis using 10-fold cross-validation. The Rotation Forest model achieved the highest accuracy of 97.1% and AUC of 99.3%. Research in [9] proposed an ensemble classifier based on patient symptoms and risk factors. The ensemble model outperformed individual classifiers, demonstrating improved accuracy in lung cancer pre-diagnosis. The study [10] explored interpretability methods for three models (BACH, PLCOm2012, and LCART) and used Explainable AI (xAI) techniques to highlight significant features. This enhanced model transparency and confidence in predictions. In [11], researchers analyzed data from 1,000 patients with 23 features. Classifiers such as Naive Bayes, k-NN, Decision Tree, and Random Forest achieved 100% accuracy on the full dataset and 98.7% on a reduced feature set. The work in [12] tested classifiers (k-NN, Naive Bayes, RBF, and J48) on the UCI repository dataset. RBF was the most accurate, achieving 81.25% accuracy. Finally, [13] compared Gradient Boosted Trees (GBT), Random Forest, Majority Voting, and Neural Network models.
GBT achieved the highest accuracy of 90%, highlighting its potential for lung cancer diagnosis. Table 1 summarizes the recent research related to lung cancer prediction.
3. MATERIAL AND METHODS
3.1 Data Acquisition
The data employed in this work is sourced from a public dataset on lung cancer, available through the UCI Machine Learning Repository. The dataset contains information about patient characteristics such as age, gender, smoking status, and other relevant variables. A link to the dataset is available on Kaggle [15]. Figure 1 shows the histogram of the variables within the tested dataset. Figure 2 presents the histogram of the age variable in more detail. Figure 3 provides a correlation analysis of the variables with respect to one another.
3.2 Data Preprocessing
Due to the presence of missing values in the dataset, data imputation techniques were applied. Alternatively, instances with significant missing values were filtered out. To ensure uniformity, all features were normalized or standardized to a comparable range. This step prevents large or small absolute values of specific features from influencing the model disproportionately. In cases where the number of features is significantly larger than the number of instances, feature selection techniques were employed. These methods identify a subset of features containing the maximum entropy, likely increasing model accuracy while mitigating interpretability issues.
3.3 Model Selection
This section discusses the machine learning classification models selected for their known performance in medical diagnosis and prediction: • Support Vector Machines (SVMs): SVMs are highly effective at identifying the best separation boundary (hyperplane) by focusing on the data points closest to the boundary (support vectors). This method maximizes the margin, making SVMs particularly strong for high-dimensional datasets. However, they can be computationally expensive for large datasets, especially those with numerous dimensions [16].
- k-Nearest Neighbors (k-NN): k-NN is a lazy learner that does not build a model but instead stores the training data. For each new data point, it identifies the “k” nearest neighbors and determines the majority class. While k-NN is simple and easy to use, its performance is sensitive to the choice of “k” and the distance metric [20].
- Random Forest: Random Forest uses an ensemble of decision trees trained on random subsets of the data and features. By averaging their predictions, Random Forest reduces overfitting and performs well in high-dimensional datasets. It is widely used in applications such as stock price prediction and medical diagnosis due to its precision and robustness [20].
- Naive Bayes: Despite its assumption of feature independence, Naive Bayes is an efficient classifier, particularly for text data. It uses Bayes’ theorem to estimate the probability of a given data point belonging to a particular class. This simplicity makes it efficient for applications like spam filtering and document classification [21].
- Logistic Regression: Logistic Regression predicts the probability of a binary outcome using a logistic function. It is well-suited for applications where the probability of occurrence is critical, such as customer churn prediction and biomedical studies to identify disease-causing factors [22].
- Decision Tree: Decision Trees provide a transparent and interpretable way of making decisions, similar to a flowchart where each vertex represents a feature and each edge represents an outcome. They are commonly used in credit risk assessment and fraud detection. However, they are prone to overfitting, particularly with noisy data [23].
4. EXPERIMENTAL RESULTS
4.1 Dataset Preparation
The dataset was divided into training and testing sets. Selected models were trained on the training set and evaluated on the test data using performance metrics such as recall, accuracy, F1-score, and precision [7]. Two key parameters
considered were the number of iterations and the use of crossvalidation techniques, such as k-fold cross-validation, to improve performance estimates. The results were evaluated by comparing models based on chosen metrics, and the best-performing models were identified. Models were ranked by performance, interpretability, and computational efficiency. The impact of different preprocessing techniques on model accuracy was also explored. If imaging data, such as computed tomography (CT), were present in the dataset, deep learning models like Convolutional Neural Networks (CNNs) were employed for analysis. Model explainability was explored using techniques like LIME and SHAP to understand feature importance and build trust in the models’ predictions.
4.2 Performance Metrics
The performance metrics used in this work are defined as follows: accuracy measures overall correctness but may be misleading with imbalanced data; F1-score balances precision and recall, especially for imbalanced datasets; precision focuses on avoiding false positives; recall (sensitivity) focuses on capturing all true positives; and ROC-AUC (Receiver Operating Characteristic–Area Under Curve) evaluates the model’s ability to discriminate between classes, providing a comprehensive measure of performance.
Their standard mathematical forms are:
Accuracy = TP+TN TP+TN +FP+FN , (1)
Precision = TP TP+FP, (2)
Recall = TP TP+FN , (3)
F1-Score = 2PrecisionRecall
Precision+Recall, (4)
ROC-AUC =
0 TPR(u)du, u = FPR. (5)
Here, TP, TN, FP, and FN denote true positives, true negatives, false positives, and false negatives, respectively; TPR and FPR denote the true-positive and false-positive rates.
4.3 Results and Discussion
The performance results of different models for the tested dataset are shown in Table 2. Based on multiple metrics, the SGD Classifier demonstrated the best overall performance, offering high accuracy, F1-Score, and ROC-AUC, while maintaining strong recall. Logistic Regression was a close second.
Figure 4 shows the accuracy summary of different models for the tested dataset.
5. CONCLUSION AND DISCUSSION
Machine Learning (ML) has revolutionized the diagnosis, treatment, and management of lung cancer, demonstrating its potential as a transformative technology in the healthcare sector. The future of lung cancer research and treatment lies in the promising capabilities of ML, including its ability to analyze big data and derive meaningful insights. The two most common applications of ML in lung cancer are early diagnosis and detection. By applying advanced ML algorithms to medical imagery, such as CT scans and X-rays, radiologists can accurately identify potentially cancerous nodules and tumors, enabling timely intervention and significantly improving patient outcomes. Additionally, ML plays a pivotal role in personalized medicine by leveraging patientspecific data, including genetic predispositions, lifestyle, and treatment history, to define optimal treatment plans and maximize therapeutic efficacy. This personalized approach not only improves treatment outcomes but also minimizes unnecessary side effects and healthcare costs. Beyond diagnosis and treatment, ML extends to risk assessment and prognosis prediction. Algorithms can identify individuals at higher risk of developing lung cancer, enabling targeted screening and reducing risk factors. ML can also predict disease progression, providing valuable insights for treatment regimens and patient counseling. Despite these advancements, challenges remain. The quality and nature of training datasets are critical for developing effective ML models. Biased data can lead to inaccurate predictions and exacerbate health inequalities. Therefore, diverse and unbiased datasets are essential for the equitable deployment of ML in healthcare. Another challenge is the “black box” nature of many ML models, particularly deep learning algorithms. Their lack of transparency complicates adoption by clinicians and patients. Explainable AI (XAI) techniques are being developed to address this issue, offering insights into model operations and enhancing trust in their predictions. Ethical concerns, including data privacy, algorithm fairness, and the impact of automation on healthcare jobs, also need to be addressed. Strong regulatory frameworks are required to ensure the ethical and accountable use of ML technologies. Overall, ML offers immense potential for lung cancer research and patient care. By leveraging its ability to process and analyze big data, ML provides opportunities for early diagnosis, personalized treatment, risk assessment, and prognosis prediction, ultimately improving patient outcomes and quality of life.