ORIGINAL RESEARCH article

Front. Genet., 03 February 2021

Sec. Computational Genomics

Volume 12 - 2021 | https://doi.org/10.3389/fgene.2021.632761

A Novel XGBoost Method to Infer the Primary Lesion of 20 Solid Tumor Types From Gene Expression Data

  • 1. Department of Mathematics, Ocean University of China, Qingdao, China

  • 2. Department of Oncology, Hiser Medical Center of Qingdao, Qingdao, China

  • 3. Qingdao Geneis Institute of Big Data Mining and Precision Medicine, Qingdao, China

  • 4. Geneis Beijing Co., Ltd., Beijing, China

  • 5. Department of Breast Surgical Oncology, Fujian Cancer Hospital & Fujian Medical University Cancer Hospital, Fuzhou, China

Abstract

Purpose:

Establish a suitable machine learning model to identify its primary lesions for primary metastatic tumors in an integrated learning approach, making it more accurate to improve primary lesions’ diagnostic efficiency.

Methods:

After deleting the features whose expression level is lower than the threshold, we use two methods to perform feature selection and use XGBoost for classification. After the optimal model is selected through 10-fold cross-validation, it is verified on an independent test set.

Results:

Selecting features with around 800 genes for training, the R2-score of a 10-fold CV of training data can reach 96.38%, and the R2-score of test data can reach 83.3%.

Conclusion:

These findings suggest that by combining tumor data with machine learning methods, each cancer has its corresponding classification accuracy, which can be used to predict primary metastatic tumors’ location. The machine-learning-based method can be used as an orthogonal diagnostic method to judge the machine learning model processing and clinical actual pathological conditions.

Introduction

Metastatic cancer is a metastatic malignant tumor that has been confirmed by biopsy, but the primary site cannot be found. The cancer cells from the primary site are brought into other organs by invading the lymph, blood, or other means (). The cause of the tumor is that the focus is small, the position is hidden, or the site of the disease is in the lower part of the mucous membrane and the like, the focus is not easy to find, and the biological behavior of the tumor is worse, leading to the early metastasis of the tumor ().

It is particularly important to find the primary focus in the clinical stage of cancer treatment. Only by finding the primary focus can the clinical cure rate of the patient be improved. Because the biological features often vary with the type of tumor tissue, we can make a pathological diagnosis based on the existing biological knowledge and established pathological methods. Due to the limited tissue and diagnostic staining of tumors and the influence of doctors’ professional level, there are still some loopholes and shortcomings in the thorough search at this stage (; ; ).

The transfer of cancer means that the tumor cells are taken to it from the primary site into the lymphatic vessel, the blood vessel, or other means to continue to grow to form the same type of tumor as the primary site. Common methods of transfer include lymphatic metastasis, vascular metastasis, and the like. About 50% of the lung cancer will have multiple bone metastasis sites, 28–33% of the liver metastasis, and 17–20% of the transfer of the kidney and the epinephrine. The auxiliary imaging examination is usually diagnosed by a biochemical indicator. In the liver metastases, the biochemical biopsy of the liver micro metastases may cause confusion due to the stability of the biochemical indicators; and in the imaging ultrasound examination, the lesions of 1–2 cm could be detected in random tests. The error of uncertain factors in a practical application will accumulate and magnify, resulting in diagnostic confusion.

We aim to establish an automatic processing method to solve this problem. We selected data from gene expression profiles. By analyzing and processing the existing data, a relatively suitable machine learning model is obtained (), and the efficiency of diagnosis of primary lesions can be improved to be more accurate. Different tumorous types have distinct expression profiles on specific genes, and the difference could be captured by the machine learning models and used to classify the primary lesions.

In essence, machine learning trains computers to simulate or realize human learning behavior to acquire new knowledge and skills and reorganize the existing knowledge structure to improve its own performance continuously. The application of medical treatment is also a process of comprehensive doctor diagnosis experience to treat patients. Many machine learning algorithms have been developed for classification problems. It can judge the unknown information by learning from the known information. By studying the existing tumor samples’ features, the computer has a certain decision-making ability to judge and evaluate the unknown cancer pathology directly.

XGBoost based on tree boosting is a scalable end-to-end tree boosting system, which was first proposed by . This system is an open-source system available at https://github.com/dmlc/xgboost and is widely used in bioinformatics. use XGBoost for analyzing protein translocation between cellular organelles; use XGBoost for predicting gene expression values; use XGBoost for predicting early-stage prostate cancer in veterans. We describe the algorithm mechanism in detail in the methods section.

Materials and Methods

Data Preparation

Training Set and Oversampling

Data of 5,759 samples, each containing 20,501 gene characteristics, were downloaded from TCGA. After extracting effective information, we normalized the gene expression by the sum of all the sample gene expressions. We use oversampling with stable results to solve the problem of data imbalance, then we select and train the optimal model 10-fold cross-validation on TCGA data.

Test Set

We conduct retrospective testing on a GEO test set containing 42 samples covering five cancers. The trained model predicts the test data, and the results were compared with the true labels of the samples. The specific number of samples per cancer is shown in Table 1.

TABLE 1

Training data from TCGA
Cancer typeAmountPercent
BRCA1,0560.13687622
KIRC5260.06817887
UCEC5160.0668827
THCA5000.06480881
LUAD4860.06299417
HNSC4800.06221646
COAD4510.05845755
LGG4390.05690214
STAD4150.05379132
PRAD3790.04912508
BLCA3010.03901491
LIHC2940.03810758
OV2610.0338302
CESC2580.03344135
KIRP2220.02877511
LAML1730.02242385
GBM1530.0198315
READ1530.0198315
PAAD1420.0184057
SKCM800.01036941
Unknown4300.05573558
Testing data from GEO
BRCA130.27659574
COADREAD20.04255319
LIHC50.10638298
LUAD150.31914894
OV120.25531915

Data size and proportion.

Feature Selection Method

In the training set and the independent verification set, a part of the gene expression level was very low. We set the expression level threshold value as 0.00005, 0.00001, and 0.000001, respectively, for screening. After the intersection of the training set’s gene characteristics and the independent verification set, the following feature selection was conducted.

We choose the Chi-Square test and Random Forest in the filtering method for feature selection. The Chi-Square calculates the correlation of qualitative independent variables to qualitative dependent variables. First, we take each gene as an independent hypothesis and then calculate the degree of deviation D between the observed value and the theoretical value. If the deviation is small enough, accept the null hypothesis; otherwise, reject the null hypothesis, and accept the alternative hypothesis. Therefore, the larger the deviation value D, the greater the deviation from the original hypothesis. That is, the more relevant it is, the better the selection process becomes at calculating the deviation value D of each gene and the type of cancer, and to order them from large to small, and to take the first k genes.

The application of random forest in feature selection needs to calculate the feature importance. The specific steps are as follows: First, we calculate each feature’s importance and sort it in descending order. After that, we determine the proportion to be eliminated and get a new feature set by eliminating the corresponding proportion of features according to their importance. Repeat the process with the new feature set until there are m features left, which is the preset value. Finally, we select the feature set with the lowest out-of-bag error rate according to each feature set obtained in the above process and the corresponding out-of-bag error rate of the feature set.

Training Method

XGBoost is based on gradient tree boosting. Unlike traditional trees, which only do the first-order Taylor expansion, XGBoost performs the second-order Taylor expansion, which realizes the parallel computation (). It can use the combination of weak learners to create a single strong learner to reach a fast execution speed and a good model performance. Its main idea is to continuously add a tree and continuously perform feature splitting to grow a tree. Each time a tree is added, it is learning a new function to fit the last prediction residuals. If we get k-trees after training, we need to predict the score of a sample. In fact, according to the characteristics of this sample, each tree will fall to a corresponding leaf node, and each leaf node corresponds to a score. It is necessary to add up the scores corresponding to each tree to be the predicted value of the sample. descript the mathematical formula of gradient tree boost and XGBoost with scientific rigor. And described the parameters of XGBoost.

We fine-tuned three hyperparameters within the 10-fold cross-validation. The parameter “n estimators” is the number of trees to be used in the forest. The parameter “max depth” is the deepest depth of all trees. The parameter “min child weight parameter” in XGBoost is the minimum sum of instance weight (hessian) needed in a child. If the tree partition step results in a leaf node with the sum of instances weighing less than the min child weight, the building process will give up further partitioning. This parameter is used to avoid overfitting. When its value is large, the model can be prevented from learning from outliers. But if this value is too high, it will cause under-fitting. The max depth is also used to avoid overfitting. The greater the max depth, the more outliers the model will learn.

Parameters of Model Evaluation and Parameters in the Results

Use the R2 score as an indicator of the evaluation model. At the same time, the test results are output, which included the R2 score, precision, recall rate, and the F1 score of each cancer calculation result shown in Table 2.

TABLE 2

R2 score1-MSE(ŷ,y)/Var(y)
PrecisionTP / (TP+FP)
Recall rateTP / (TP+FN)
F1score⋅(Precision⋅ Recall)/(Precision+Recall)

RelevantNo relevant

RetrievedTrue positives (TP)False positives (FP)
Not retrievedFalse negatives (FN)True negatives (TN)
Precision TP / (TP + FP)
Recall rate
TP / (TP + FN) F-Score=(1+β2)⋅ (Precision⋅ Recall)/(β2⋅ Precision+Recall)

Parameters of model evaluation and parameters in the results.

The predicted value is and the true value is y. R2 score the problem that MSE (Mean Absolute Error), RMSE (Root Mean Squared Error), and MAE (Mean Absolute Error) cannot solve when dimensions are different, and it is difficult to measure the effectiveness of the model. R2 score = 1, reaches the maximum value, and then MSE as the molecule is 0, which means that the predicted value and the true value in the sample are the same, without any error. In other words, the model that has been established perfectly fits all the real data, which is the model with the best effect and where the R2 score value reaches the maximum. The model is usually not so perfect; there are always errors; when the error is small, the numerator is less than the denominator; when the model tends to 1, it is still a good model. Precision is defined as (true-positives)/(true positives + false- positives). Recall rate is defined as (true-positives)/(true-positives + false-negatives), which intuitively represents the classifier’s ability to identify all positive cases correctly. F1 score is the harmonic mean of precision and recall. Precision and Recall do not have much of a relationship with the formula, but they are mutually restricted in practice. We all hope that the model is accurate, and the recall rate is high, but when the precision rate is high, the recall rate is often low. When β = 1, it becomes the F1-score, in which case both recall, and accuracy are important and have the same weight. In some cases, if we think accuracy is more important, we adjust the β value to be less than 1, and if we think the recall is more important, we adjust the β value to be greater than 1, such as the F2-score.

We determined the data list as the first 800 genes from the feature selection list. We used software: Cytoscape and metascape for GO (Gene Ontology) and KEGG (Kyoto Encyclopedia of Gene and Genomes) Enrichment Analysis.

Results

Genes Selected by Random Forest Were More Informative Than Chi-Square

We used 10-fold cross-validation in the training set to evaluate the performance of the feature selection methods. With leave-one-out cross-validation, the algorithm is repeatedly retrained, which included oversampling, feature selection, and classification model, leaving out one sample in each round and testing each sample on a classifier that was trained without this sample. The framework of the 10-fold CV is shown in Figure 1.

FIGURE 1

The results are shown in Table 3. The average R2-score of 10-fold cross-validation of the two feature selection methods is very high. The average R2-score was 96.23 and 96.38% (95% confidence interval) for the chi-square test as feature selection and random forest as feature selection. Although these two results are very close, the R2-score of Random Forest is slightly higher than the Chi-Square within the same feature number range, and the Rise of R2-score of random forest is more stable, as shown in Figure 2. Considering all the results of the average R2-score, the Random Forest is used for feature selection in the next flow.

TABLE 3

Feature number10-fold CV result of using the Chi-Square in feature selection10-fold CV result of using Random Forest in feature selection
1000.9297505760.936357298
2000.9473775730.951911924
3000.9574877520.956577824
4000.9567098780.961505816
5000.9603390050.960726262
6000.9618940810.960854956
7000.9618940810.962541414
8000.9618908890.963838431
9000.9625387260.963707385
1,0000.9622789860.963448150

10-fold CV results of variety with the number of features in Chi-Square and Random Forest.

The bold values in each column are the optimal results for this method.

FIGURE 2

The XGBoost Algorithm Showed Good Generalization Performance on the GEO Dataset

We selected 800 genes with Random Forest characteristics, using XGBoost as a classifier. Taking the R2-score as the model evaluation index, 10-fold CV was carried out in the training data, and finally, the parameters, n estimators = 250, max depth = 7, min child weight = 1, in the optimal model of XGBoost were obtained. The results of this model in leaving out one data are shown in Figure 2.

For each sample, the type of tumor predicted was compared with the type diagnosed. When the predicted tumor type matches the reference diagnosis, it is a true positive. When the predicted tumor type does not match the diagnosis, the sample is considered a false-positive. For each cancer, sensitivity was defined as the ratio of true positive results to the total positive samples analyzed, and specificity was defined as the ratio of (1- false positive) to (total test results - total positive). To better measure the classification results, we took sensitivity and specificity as the horizontal axis and the vertical axis, respectively, and drew the ROC (Receiver Operating Characteristic) curve to the results as shown in Figure 3.

FIGURE 3

The model was trained according to N estimators = 250, Max depth = 7, and min child weight = 1 in the whole training data for independent testing. The R2-score average of independent testing results is 83.3%, which obtained 42 samples cover five cancers. The trainer had good generalization for COADREAD (Colon Adenocarcinoma and Rectum Adenocarcinoma), LIHC (Liver Hepatocellular Carcinoma), LUAD (Lung Adenocarcinoma), and OV (Ovarian Serous Cystadenocarcinoma), and the R2-score respectively was 1, 1, 0.92 and 0.82, shown in Table 4 and Figure 4A. For BRCA (Breast Invasive Carcinoma), we can see from Figure 4B that it is often incorrectly predicted for CESC (Csquamous Cell Carcinoma and Endocervical Adenocarcinoma) and LUAD.

TABLE 4

AbbreviationPrecisionRecallF1-scoreR2-scoreSupport
BRCA10.750.860.7512
COADREAD11111
LIHC11115
LUAD0.850.920.880.9212
OV10.820.90.8211
Avg/total0.930.830.870.8342

The model test result (precision, recall, F1-score, and R2-score) on 9 cancers on the GEO dataset.

FIGURE 4

Top 16 Genes on Feature Selection

We often use molecular experiments to distinguish the origin of metastatic cancer. Our supporting results combined with the literature review found that the accuracy of cancer classification was low for fixed cancer types, which was similar to other data methods. We selected 16 genes, shown in Table 5, with high expression levels, to analyze the potential relationship between these genes and cancer. The heat maps of the expressions of 16 genes in the training set and the test set are shown in Figure 5.

TABLE 5

Mark rankGene symbolGene nameRefSeq DNA sequenceUniProtKB/Swiss-Prot
1AFAP1L2Actin filament associated protein 1 like 2NC_000010.11Q8N4 × 5-AF1L2_HUMAN
2CREB3L4CAMP responsive element binding protein 3 like 4NC_000001.11Q8TEY5-CR3L4_HUMAN
3HOXB13Homeobox B13NC_000017.11Q92826-HXB13_HUMAN
4KLK3Kallikrein related peptidase 3NC_000019.10P07288-KLK3_HUMAN
5PLCB2Phospholipase C beta 2NC_000015.10Q00722-PLCB2_HUMAN
6RC3H1Ring finger and CCCH-type domains 1NC_000001.11Q5TC82-RC3H1_HUMAN
7TMEM176ATransmembrane protein 176ANC_000007.14Q96HP8-T176A_HUMAN
8TMPRSS2Transmembrane serine protease 2NC_000021.9O15393-TMPS2_HUMAN
9WT1WT1 transcription factorNC_000011.10P19544-WT1_HUMAN
10CCL16C-C motif chemokine ligand 16NC_000017.11 NT_187614.1O15467-CCL16_HUMAN
11CDH17Cadherin 17NC_000008.11Q12864-CAD17_HUMAN
12H3F3CHistone variant H3.5NC_000012.12Q6NXT2-H3C_HUMAN
13HNF1AHNF1 homeobox ANC_000012.12P20823-HNF1A_HUMAN
14KLK2Kallikrein related peptidase 2NC_000019.10P20151-KLK2_HUMAN
15SLC45A3Solute carrier family 45 member 3NC_000001.11Q96JT2-S45A3_HUMAN
16STEAP2STEAP2 metalloreductaseNC_000007.14Q8NFT2-STEA2_HUMAN

The basic information of top 16 genes on feature selection.

FIGURE 5

Genes control protein expression. A gene contains introns and exons, in which the coding region of the protein is encoded. Gene coding of a protein is a DNA-mRNA- protein process. The genes we analyzed are all protein-coding genes.

WT1 is a tumor suppressor gene associated with the development of a Wilms’ Tumor, for which it was named. This gene encodes a transcription factor that contains four zinc-finger motifs at the C-terminus and a proline/glutamine-rich DNA-binding domain at the N-terminus. CCL16 is one of several cytokine genes clustered on the q-arm of chromosome 17. Cytokines are a family of secreted proteins involved in immunoregulatory and inflammatory processes. The CC cytokines are proteins characterized by two adjacent cysteines. The cytokine encoded by this gene displays chemotactic activity for lymphocytes and monocytes but not for neutrophils. This cytokine also shows a potent myelosuppressive activity and suppresses the proliferation of myeloid progenitor cells. The expression of this gene is upregulated by IL-10. The CDH17 gene is a member of the cadherin superfamily, genes encoding calcium-dependent, membrane-associated glycoproteins. Diseases associated with CDH17 include Metanephric Adenoma and Cleft Lip/Palate-Ectodermal Dysplasia Syndrome, which is provided by RefSeq et al. Histones are basic nuclear proteins that are responsible for the nucleosome structure of the chromosomal fiber in eukaryotes. Nucleosomes consist of approximately 146 bp of DNA wrapped around a histone octamer composed of pairs of each of the four core histones (H2A, H2B, H3, and H4). Among its related pathways are Transcriptional misregulation in cancer and Activated PKN1, which stimulates transcription of AR (androgen receptor) regulated genes KLK2 and KLK3. HNF1A encodes a transcription factor required for the expression of several liver-specific genes. Diseases associated with HNF1A include Maturity-Onset Diabetes of the Young, Type 3 and Diabetes Mellitus, and Insulin-Dependent 20.

Enrichment Analysis

To better understand why those genes could tell the origin of the primary lesion, we performed the enrichment analysis using the 800 selected genes. The results of KEGG (Kyoto Encyclopedia of Gene and Genomes) (Figure 6) and GO (Gene Ontology) (Figure 7) are shown in Figures 8, 9.

FIGURE 6

FIGURE 7

FIGURE 8

FIGURE 9

The 800 selected genes were significantly enriched in some cancer-related pathways. Cell adhesion molecules (CAM) () played important roles in invasive and metastasis and cancer progression. Loss of the tumor cells’ intercellular adhesion might result in cells escaping from the primary lesion and metastasizing. CAM is also involved in various functions such as cell growth, differentiation, site-specific gene expression, and morphogenesis, which could explain why the different tissues have different expression profiles among those genes.

The 800 genes were also significantly enriched in some organ-specific pathways. The selected genes were representative in thyroid hormone synthesis, pancreatic secretion, and fat digestion—absorption pathways. Since those pathways were organ-specific, we could show that the random forest algorithm found the differentially expressed genes among different organs.

Discussion

Nowadays, CUP cases are characterized by small primary tumors (difficult to be detected by existing technologies) (), primary tumors being eliminated by the body’s autoimmune system, and primary tumors being excised during surgery (without histological examination), which makes it difficult to find the primary tumors, leading to generally poor prognosis of patients treated with chemotherapy. Our study hopes to help doctors clinically identify the primary of CUP and to use more effective targeted therapies for CUP patients according to these identification results.

In this paper, we show that our result is better than in recent studies. Our average R2-score of the classification based on XGBoost can reach 96.38%, while the average accuracy of the support vector machine (SVM) classifier is 82–89% (; ). We train a classifier, selected feature by random forests, classified by XGBoost, on data containing 7,715 samples and 19,854 genes from TCGA, and test it on data including 42 samples and five cancers. Currently, the prediction for CUP cancer is between 80%–95% (; ; ; ), and this data fluctuation is related to the different evaluation indicators and sample types of each model. In the test R2-score of 83.3% in particular, our classifier was relatively accurate in predicting LIHC (liver hepatocellular carcinoma) which is, LUAD (lung adenocarcinoma), OV (ovarian serous cystadenocarcinoma).

Although we have made progress in these studies, there are also limitations. Our test data are collected from 8 series, and there was some detection method between each series. This may be due to the fact that our test results are not as high as the cross-validation results.

Further studies could be done in several main aspects. First, the SNP (single nucleotide polymorphism) or methylation data may be combined with expression profiles to further improve the prediction utilities to infer primary lesions for metastatic tumors. Second, the eQTL (expression Quantitative Trait Loci), which supplies us with new insights between expression profile and mutation profile, might also help determine the primary lesions.

Conclusion

These findings suggest that by combining multiple tumor data with machine learning methods, each cancer has its corresponding classification accuracy, which can be used to predict primary metastatic tumors’ location. At the same time, it can also be used as an orthogonal diagnostic method to utilize the machine learning model processing for auxiliary diagnosis methods.

Statements

Data availability statement

The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author/s.

Author contributions

KL and ZH designed the study. SC, WZ, JT, and BW collected the data, analyzed the data, interpreted the data. SC wrote the manuscript. JL, XM, and GT reviewed the manuscript. All authors contributed to the article and approved the submitted version.

Funding

This study was funded by the Natural Science Foundation of Fujian Province (No. 2020J011112).

Conflict of interest

BW, XM, and GT were employed by the company Geneis Beijing Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

Summary

Keywords

tumor tissue-of-origin, gene expression, XGBoost, feature selection, CUP

Citation

Chen S, Zhou W, Tu J, Li J, Wang B, Mo X, Tian G, Lv K and Huang Z (2021) A Novel XGBoost Method to Infer the Primary Lesion of 20 Solid Tumor Types From Gene Expression Data. Front. Genet. 12:632761. doi: 10.3389/fgene.2021.632761

Received

24 November 2020

Accepted

06 January 2021

Published

03 February 2021

Volume

12 - 2021

Edited by

Min Tang, Jiangsu University, China

Reviewed by

Xue Wang, University of Texas Southwestern Medical Center, United States; Yunpeng Xu, Rutgers, The State University of New Jersey, United States; Liuyi Hao, University of North Carolina at Greensboro, United States

Updates

Copyright

*Correspondence: Kebo Lv, Zhijian Huang,

This article was submitted to Computational Genomics, a section of the journal Frontiers in Genetics

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics