1. Background
2. Objectives
3. Methods
3.1. Dataset
| No. | Factors | No. | Factors | No. | Factors |
|---|---|---|---|---|---|
| 1 | Sex | 22 | History of helicobacter pylori | 43 | Consumption of spicy foods |
| 2 | Age | 23 | History of acid reflux | 44 | Consumption of refined beans |
| 3 | Height | 24 | Radiation history | 45 | Consumption of fried foods in oil |
| 4 | Weight | 25 | Stomach ache | 46 | Consumption of carbonated beverages |
| 5 | Residence | 26 | High blood pressure | 47 | Consumption of vegetables |
| 6 | Education | 27 | High blood fats | 48 | Fruit consumption |
| 7 | physical activity (daily) | 28 | Feeling discomfort in the abdomen after a meal | 49 | Smoking |
| 8 | Alcohol | 29 | Flatulence | 50 | Job |
| 9 | Breakfast | 30 | Early satiety | 51 | Monthly family income |
| 10 | High-salt diet | 31 | Belching | ||
| 11 | Eating fast | 32 | History of aspirin use | ||
| 12 | Dust exposure | 33 | History of taking stomach pills | ||
| 13 | Facing with cement | 34 | History of metformin use | ||
| 14 | Exposure to metals | 35 | History of use of glipizide, gliclazide and glibenclamide | ||
| 15 | Exposure to volcanic material | 36 | Consume red meat | ||
| 16 | Exposure to air pollution | 37 | Consumption of fish | ||
| 17 | Family history of gastric cancer | 38 | Tea consumption | ||
| 18 | Family history of other cancers | 39 | Consumption of hot drinks | ||
| 19 | History of esophageal cancer | 40 | Consumption of pickles | ||
| 20 | History of gastric ulcer | 41 | Consumption of frozen foods | ||
| 21 | History of gastric surgery | 42 | Consumption of salty foods |
a In this table, 51 factors affecting gastric cancer are shown, which were collected based on the data of gastric cancer patients in the hospitals of SBMU.
| Factors | People with Gastric Cancer (n = 173) | People without Gastric Cancer (n = 157) |
|---|---|---|
| Female | 115 (66.5) | 103 (65.6) |
| Age, y | 51 ± 18.4 | 51 ± 18.3 |
| Height, cm | 170 ± 10.7 | 167 ± 10.7 |
| Weight, kg | 70 ± 17.4 | 71 ± 19.93 |
a Values are expressed as No. (%) or mean ± SD.
3.2. Feature Selection
| Method | Filter Method | Wrapper Method |
|---|---|---|
| Pros | Independent of learning model Fast execution; appropriate for high dimensional data; Generalizability | Better performance attainability; considering the interaction between features; Recognizing feature interactions of higher order. |
| Cons | Ignorance of Interactions between features; unable to handle the redundancy problem; Lack of interaction with the learning algorithm | High cost in terms of execution times; susceptible to overfitting; Creating a learning algorithm from scratch for each subset. |
a A comparison of the advantages and disadvantages of filter and wrapper methods is shown.
3.2.1. Filter Method
| Feature/Response | Continuous | Categorical |
|---|---|---|
| Continuous | Pearson’s correlation | LDA b |
| Categorical | ANOVA | Chi-square |
a Statistical tests are determined based on the type of features and the response of the methods. For example, if the selected features and the response of the method are categorical, the chi-square test is used.
b Linear discriminant analysis
3.2.2. Wrapper Method
3.2.3. Embedded Methods
3.3. Classification Algorithms
3.3.1. Decision Tree
3.3.2. Random Forest
3.3.3. Gradient-Boosted Decision Trees
3.3.4. K-Nearest-Neighbor
4. Results
4.1. Feature Selection
4.1.1. Filter Method
4.1.2. Wrapper Method
4.2. Cross-Validation (CV)
4.3. Implementing Classifier
| Method and Classifier | CV | Precision | Recall | F1 Score | Accuracy | AUC-ROC |
|---|---|---|---|---|---|---|
| Without feature selection methods | ||||||
| GBDT | 0.980 | 0.960 | 0.952 | 0.947 | 0.962 | 0.952 |
| RF | 0.977 | 0.960 | 0.953 | 0.917 | 0.994 | 0.956 |
| kNN | 0.862 | 0.734 | 0.734 | 0.680 | 0.810 | 0.897 |
| DT | 0.936 | 0.939 | 0.915 | 0.899 | 0.939 | 0.915 |
| By filter method | ||||||
| GBDT | 0.982 | 0.960 | 0.949 | 0.942 | 0.958 | 0.948 |
| RF | 0.984 | 0.960 | 0.952 | 0.929 | 0.978 | 0.952 |
| kNN | 0.953 | 0.859 | 0.906 | 0.857 | 0.965 | 0.952 |
| DT | 0.947 | 0.949 | 0.940 | 0.937 | 0.947 | 0.939 |
| By wrapper method | ||||||
| GBDT | 0.971 | 0.939 | 0.954 | 0.940 | 0.971 | 0.955 |
| RF | 0.977 | 0.939 | 0.958 | 0.936 | 0.984 | 0.957 |
| kNN | 0.961 | 0.889 | 0.906 | 0.857 | 0.963 | 0.948 |
| DT | 0.909 | 0.909 | 0.932 | 0.928 | 0.940 | 0.930 |
| By filter-wrapper method | ||||||
| GBDT | 0.976 | 0.939 | 0.958 | 0.947 | 0.973 | 0.958 |
| RF | 0.976 | 0.929 | 0.954 | 0.941 | 0.969 | 0.955 |
| kNN | 0.972 | 0.919 | 0.950 | 0.934 | 0.969 | 0.955 |
| DT | 0.928 | 0.929 | 0.940 | 0.935 | 0.950 | 0.936 |
Abbreviations: GBDT, gradient-boosted decision trees; RF, random forest; Knn, k nearest neighbor; DT, decision tree.

