Introduction

Breast cancer is the most commonly diagnosed cancer and the leading cause of cancer death among females1. Early detection can improve treatment and decrease mortality2. The molecular subtype is an independent prognostic factor of breast cancer3,4. Detecting the expression of estrogen receptor (ER) and progesterone receptor (PR), and overexpression of human epidermal growth factor receptor 2 (HER2) has been used to guide the therapy decisions5,6. Based on the expression of receptors, breast cancer can be further classified into distinct molecular subtypes, which include luminal A, luminal B, HER2, and triple-negative7. Metabolic alterations are observed in different molecular subtypes and histological types of breast cancer8. Fan et al. analyzed the metabolites in plasma of breast cancer and identified eight metabolites for the classification of breast cancer subtypes9. An in vitro study showed that breast cancer cells of different statuses could generate specific volatile metabolites10.

Breathomics is an emerging science to diagnose diseases by analyzing volatile metabolites produced by changes in metabolic processes caused by disease11. The volatile metabolites produced during the physiological and pathological processes of the lung diseases are released into the alveolar air12. The volatile metabolites produced by tumors have the potential to serve as noninvasive biomarkers11. The gas chromatography-mass spectrometry (GC–MS) and electronic nose (E-nose) are two methods to analyze these volatile metabolites. The electronic nose uses a fingerprinting approach to explore the exhaled breath by sensor arrays. When the volatile metabolites from a breath sample are presented to the E-nose sensor array, the chemicals interact with the sensors and change their electric resistance. The data are processed by machine learning techniques to predict the probability of the diagnosis of a disease13. Due to non-invasiveness and rapid diagnosis, there is increasing interest in the analysis of volatile metabolites in exhaled breath to diagnose diseases14. The objective of this study was to develop a breath test to detect breast cancer and its molecular subtype. We analyzed the patient’s alveolar air through an electronic nose and applied machine learning statistics to build a predictive model for the diagnosis of breast cancer (Fig. 1).

Figure 1
figure 1

Graphical abstract showing the principle of breath biopsy. Legends: Volatile metabolites produced by breast cancer cells circulate to the lungs and are released into the breath. Using the sensor array to detect the pattern of exhaled volatile biomarkers, we can detect the molecular type of breast cancer early by collecting alveolar air during surgery.

Results

Between July 2016 and June 2018, a total of 899 subjects were screened and assessed. Based on the defined inclusion and exclusion criteria, we eliminated six study subjects who did not have sensor data for technical reasons, 122 male subjects, 222 benign breast tumors, 40 subjects who had received chemotherapy, 57 current smokers, 19 former smokers, 23 second-hand smokers, 63 subjects with diabetes mellitus, and ten subjects with asthma, a total of 439 study subjects were used in the final analyses that included 351 cases of malignant breast tumor and 88 controls. The mean age of study subjects was 55.03 (SD 12.08) years. There were no statistically significant differences in age, renal and liver functions, and inflammatory status between the case group and the control group (Table 1). Using a random forest model, the prediction accuracy of breast cancer in the test set was 91%, sensitivity was 86%, specificity was 97%, positive predictive value (PPV) was 97%, negative predictive value (NPV) was 97%, and the area under the receiver operator characteristic curve (AUC) was 0.99 (95% CI: 0.97–1.00). The reliability of prediction as measured by the kappa value was 0.83 (Table 2). The 95% confidence interval of receiver operating characteristic (ROC) using bootstrap resampling for 2000 replicates was shown in Fig. 2. The partial area under the receiver operating curve (pAUC) between 90 and 100% for specificity was 98.1%, and the pAUC between 90 and 100% for sensitivity was 96.8%. In the identification of molecular subtypes of breast cancer, the random forest model had the highest accuracy. The mean value of leave-one-out cross-validation accuracy was 88.5 ± 12.1%, and the kappa reliability was 0.77 ± 0.23 (Table 3).

Table 1 Demographic characteristics of the study subjects.
Table 2 Prediction accuracy of the electronic nose in the test set of machine learning algorithms.
Figure 2
figure 2

Statistical model performance of the random forest algorithm to diagnose breast cancer. Legends: (A) The discriminatory accuracy is expressed as AUC with the 95% confidence interval. The grey area is the 95% confidence intervals using bootstrap resampling for 2000 replicates. (B) The partial area under the receiver operating curve (pAUC). The blue area corresponds to the pAUC region between 90 and 100% for specificity (SP), and the green area corresponds to the pAUC region between 90 and 100% for sensitivity (SE). The corrected pAUCs are printed in the middle of the plot.

Table 3 Leave-one-out cross-validated discrimination accuracy and reliability of molecular phenotyping of breast cancer using machine learning algorithms.

To evaluate the influence of comorbidities and confounding factors on diagnostic accuracy, we have used all the population and conducted additional analyses to compare the effects of comorbidities and confounding factors on diagnostic accuracy. The results showed that the inclusion of study subjects with a history of asthma did not significantly affect diagnostic accuracy. The inclusion of subjects with a history of smoking, chemotherapy, or diabetes had a moderate impact on accuracy. The inclusion of male gender and benign breast tumor significantly influenced the accuracy (Fig. 3). When we included study subjects with a history of asthma (n = 10), the diagnostic odds ratio (DOR) was 10.62. When we included study subjects with a history of smoking (n = 99), the DOR was 9.12. When we included study subjects with a history of chemotherapy (n = 40), the DOR was 8.62. When we included study subjects with diabetes (n = 63), the DOR was 8.51. When we included the male gender (n = 122), the DOR was 3.48. When we included benign breast tumors (n = 222), the DOR was 1.39. When we included all study population without excluding any comorbidity or confounding factor, the AUC was 0.72 (95% CI: 0.71–0.76). We provided the summary receiver operating characteristic (SROC) curve to show the joint estimate of the false positive rate and sensitivity for the electronic nose (Fig. 4).

Figure 3
figure 3

Summary receiver operating characteristic (SROC) cures for diagnostic accuracy that includes confounding factors or comorbidities. Legends: This figure shows a joint estimate of false positive rate and sensitivity for the electronic nose data with 95% confidence and prediction regions. Scatter points are the accuracy obtained from different machine learning models, and the solid closed curve is the 95% confidence region.

Figure 4
figure 4

The joint estimate of false positive rate and sensitivity for the electronic nose data with 95% confidence and prediction regions. Legends: This figure shows the data that includes all study population without excluding any confounding factor or comorbidity. Scatter points are the data. A solid closed curve is the 95% confidence region. The dotted closed curve is the 95% prediction region. Three summary ROC curves are seen. The short solid line is the curve proposed by Rutter and Gatsonis15. The dashed line is the curve proposed by Moses et al.16; the dotted line is the curve proposed by Rücker and Schumacher17.

Discussion

To the best of our knowledge, this is the first study to provide evidence that the breath test can predict breast cancer and its molecular subtype with good accuracy and reliability. The breath test uses the latest breathomics and artificial intelligence (AI) technologies to assist physicians in making treatment decisions during surgery.

The strength of this study is that we sampled alveolar air directly from the tracheal tube to prevent contamination from the respiratory dead space, upper airway, and gastroenteric tract. The inclusion of dead space air in a breath sample may lead to variable dilution of breath sample and contamination from exogenous volatile organic compounds18. All subjects refrained from eating for at least eight hours before sampling and then underwent endotracheal intubation for surgery. This design can largely prevent contamination from the food odors in the gastroenteric tract and the oral cavity. We used a mainstream carbon dioxide monitor to guide the sampling of alveolar air. The anesthesiologist collected air only when the concentration of CO2 reached the highest level to ensure that the air came from the alveolar space. Compared with other studies, our sampling procedure can obtain the purest alveolar air with the highest concentration of volatile metabolites. Because humidity and temperature may have an influence on the electrical conductivity of the sensors and affect the measurement19, we connected a heat-moisture exchanger to keep a constant humidity and temperature (Fig. 5)20. Cigarette smoking affects volatile organic compounds in exhaled breath21. The study excluded subjects with a history of smoking or second-hand smoke. The purpose of strict exclusion criteria was to prevent the influence of smoking and other diseases and to provide the most reliable assessment of the breath test for breast cancer.

Figure 5
figure 5

An alveolar air sampling by applying mainstream carbon dioxide monitoring and heat-moisture exchanger to remove dead space air and humidity of exhaled breath.

AI has gradually been used in the treatment decision support for breast cancer among oncologists with varying expertise22. Ha et al. developed a convolutional neural network algorithm to predict the molecular subtype of a breast cancer based on MRI features, and the test set accuracy was 70%, and the ROC was 0.85323. Park et al. conducted a radio-genomics study that investigated the accuracy of combing low-dose perfusion computed tomography and five machine learning models to predict molecular subtypes of invasive breast cancer, and results showed that the use of the random forest model had the best accuracy (66%) and AUC (0.82) to predict molecular subtype24. In the application of machine learning techniques in human studies, imbalance in class distribution may influence the performance of a classifier, and the random forest algorithm is suitable for class imbalance problems. Guo et al. compared the performance of four commonly used machine learning algorithms in high-dimensional omics data. They showed that the random forest was the best method when class distributions were unbalanced25. For sensor array data with imbalanced class distribution, Tan et al. reported that the random forest combined with the oversampling is an effective solution to improve the performance of the prediction model26. In this study, we also observed that the application of the random forest model had the highest accuracy to predict the molecular subtype of breast cancer.

To develop a new diagnostic test, it is important to assess not only the accuracy but also the reproducibility of results. Phillips et al. analyzed volatile organic compounds (VOCs) in the breath to diagnose breast cancer by GC–MS. At that study, five breath biomarkers (2-propanol, 2,3-dihydro-1-phenyl-4(1H)-quinazolinone, 1-phenyl-ethanone, heptanal, and isopropyl myristate) were identified and used to establish a prediction model that showed high accuracy27. Peng et al. conducted a similar study to explore the breath biomarkers (3,3-dimethyl pentane, 2-amino-5-isopropyl-8-methyl-1-azulenecarbonitrile, 5-(2-methylpropyl)nonane, 2,3,4-trimethyl, 6-ethyl-3-octyl ester 2-trifluoromethyl benzoic acid) of breast cancer by GC–MS28; however, the identified biomarkers were inconsistent with Phillips’s results27. Possible explanations for the discrepancy may include the effectiveness of VOC filters in preventing environmental contamination, subjective selection of candidate biomarkers, and the time interval between sampling and analysis that might change the composition or concentration of VOCs27,28. In this study, we applied alveolar air sampling and collected air from the lower respiratory tract to prevent any contamination from dead space or gastrointestinal tract, and all samples were analyzed immediately within 30 min. We have established standardized methods for the breath test, and all the procedures followed the STARD guideline to report a diagnostic accuracy study29. We have conducted a systemic review. We selected related studies published before November 20th, 2020, by searching PubMed and Web of Science. All relevant articles were retrieved without language or geographic limitations. The search terms breast cancer, breast tumor, sensor, and electronic nose were used in combination with the Boolean operators AND and OR. Studies were included if they met the following criteria: (1) observational studies: cross-sectional, case–control, or prospective designs; (2) population: breast cancer patients diagnosed according to the pathological report and established diagnostic systems; (3) studies that provided sufficient information of sensitivity, specificity, and accuracy; (4) studies that use an electronic nose to analyze endogenous VOC in feces, blood, exhaled breath, or urine to screen or assess breast cancer. The exclusion criteria were (1) duplicate publications; (2) letters or review articles; (3) cell or animal studies; (4) non-gas sensor. Our databases retrieved 699 articles. We excluded 652 articles by screening through the titles and abstracts. After a full-text review, we excluded a further 650, leaving two studies for inclusion16,30. Full details of the search results are provided in Supplementary Table S1. Because some confounding factors and comorbidities will affect diagnostic accuracy, and different studies used different exclusion criteria. We suggest that future studies could conduct a sensitivity analysis to show the impact of exclusion criteria and provide readers with an overall estimate of diagnostic accuracy.

The advantage of the electronic nose system is that it can perform rapid breath biopsy during the operation. We collected the alveolar air from the laryngeal mask airway and storage in a Tedlar air sampling bag and analyzed the sampled air offline in a room next to the operation room. We collected the air before surgery within a few minutes, and the analysis can be completed within 30 min during the surgery. Traditionally, it takes a week to get pathological and molecular studies reports.

However, there are some limitations. In this study, all subjects received anesthetics for surgery. Saraoglu et al. used quartz crystal microbalance E-nose sensors to predict the anesthetic dose level, and results showed that the anesthetics could be detected by the electronic nose31. In this study, we administered all study subjects with the anesthetic drug 2% Sevoflurane. We conservatively thought that the exhaled volatile organic compounds that distinguished the case group and the control group are not derived from the anesthetics. We recommend that future studies should also consider the possible effects of drugs during surgery. The intraoperative result obtained in this study cannot be directly applied outside the operating room.

Conclusions

Cancer causes metabolic alteration to sustain fast cell growth and proliferation. The estrogen, progesterone, and human epidermal growth factor receptor 2 hormone receptors have a unique metabolomic expression in breast cancer patients. Analysis of the volatile metabolites in the breath of patients can be used to develop a breath test for breast cancer. This study used sensor array and machine learning algorithms to analyze breath samples from breast cancer patients. The results showed high accuracy and reliability in the discrimination of breast cancer and the molecular subtype. The novel breath test has great potential to develop a rapid breast cancer diagnostic tool during surgery.

Methods

Participants

We designed a case–control study to recruit cases of breast cancer and non-cancer controls. We consecutively recruited breast tumor patients who underwent breast tumor resection at the National Taiwan University Hospital. During the same period, we recruited a control group of subjects who underwent surgery for gall bladder stone, hernia, fractures, urinary incontinence, and uterine prolapse at the same hospital. The exclusion criteria included male gender, the history of asthma14, diabetes mellitus14, cigarette smoking21, receiving chemotherapy that may affect metabolism and influence volatile organic compounds in exhaled breath. We obtained medical history, occupational history, smoking history, medications, and dietary habits through face-to-face interviews and medical records. All subjects received blood tests of white blood cells, fasting sugar, blood urea nitrogen, creatinine, and alanine aminotransferase after eight hours of fasting.

All methods were carried out following relevant guidelines and regulations. The ethics committee of the National Taiwan University Hospital approved the research protocol (No. 201512102RINC). All subjects provided written informed consent before the study.

Molecular subtype

This study used immunohistochemistry (IHC) to determine the status of ER, PR, and HER2. IHC was performed on formalin-fixed, paraffin-embedded tissue sections (thickness 4 μm) in the Central Pathology Laboratory at the hospital. ER and PR were determined using the Ventana Benchmark system (Ventana Medical Systems)32. The percentage of positive-staining nuclei was recorded. In this study, we applied the National Comprehensive Cancer Network (NCCN) criteria to determine breast cancer's molecular phenotype. Both ER and PR status were determined for all invasive breast cancer and ductal carcinoma in situ (DCIS) using a cutoff value of ≥ 1% as a positive result33. HER2 status was reported as strong positive when the IHC score was 3 +34. We defined the molecular subtype of breast cancer as (1) luminal A (ER-positive and/or PR-positive, and HER2-negative), (2) luminal B (ER-positive and/or PR-positive, and HER2-positive), (3) HER2/neu (ER-negative, PR-negative, and HER2-positive), and triple-negative (ER-negative, PR-negative, and HER2-negative).

Collection of the breath sample

To avoid contamination from the dead space, we collected alveolar air sampling by applying mainstream carbon dioxide (CO2) monitoring35. All study subjects received a fixed dose of intravenous drugs for anesthetic induction. Sevoflurane 2% was administered after insertion of the laryngeal mask airway initially. The exhaled gas sampling was then performed. A heat-moisture exchanger was connected to the airway instrument to remove the humidity of exhaled breath. The anesthesiologist collected one-litter of alveolar air under the monitoring of the mainstream end-tidal CO2 analyzer before surgery. When the end-tidal CO2 concentration reached the plateau, the anesthesiologist opened the entrance of the three-way valve to sample the alveolar air into a Tedlar bag (Fig. 5).

Analysis of E-nose

The collected air was analyzed using Cyranose 320 E-nose (Sensigent, California, USA) within 30 min, according to the established method36. The E-nose consists of 32 carbon nanotubes sensors that can measure the volatile organic compounds in the breath by the changes in sensor resistance37 (Supplementary Fig. 1). We analyzed all samples in the same room with a temperature of 19.5–23.9℃ and a humidity of 53–64%. The E-nose analyzed the air sample in each Tedlar bag ten times. According to the manufacturer’s suggestion and previous studies36, we eliminated the first measurement data and obtained the mean of the remaining measurements. The mean intra-class correlation coefficient (ICC) of sensor responses was 0.99 (SD 0.22) (Supplementary Table S2).

Reference standard

This study confirmed the diagnosis of breast cancer based on pathology and immunohistochemistry reports. Using pathology and immunohistochemistry reports as the golden standard, we evaluated the validity and reliability of the breath test.

Statistics

This study used eight machine learning algorithms to build prediction models, including k-nearest neighbors, naive Bayes, decision tree, neural network, support vector machines (SVMs) (including the linear kernel, polynomial kernel, and radial basis kernel), and random forest38. We randomly divided the data into a training set (80% of data) for model derivation and a test set (20% of data) for validation. We used the modelLookup function of the R caret package for automated parameter tuning to improve model performance39. We used a bootstrap method and calculated the accuracy of 100 iterations to decide the parameters of machine learning methods that had the highest prediction accuracy. Then, the optimized models were further tested in the independent test set to evaluate the accuracy. To prevent the influence of an unequal proportion of cases in each group, we adopted an oversampling method that replicates the observations of the minority class to balance the data40. We used the R package “class” to build the k-nearest neighbors model, “klaR” to build the naive Bayes model, “C50” to build the decision tree model, “neuralnet” to build the neural network model, “kernlab” to build the SVMs model, and “randomForest” to build the random forest model. We determined the validity of the breath test by accuracy, sensitivity, specificity, PPV, NPV, and AUC. AUC values of 0.7–0.8, 0.8–0.9, and 0.9–1.0 are regarded as good, very good, and excellent diagnostic accuracy, respectively41. To adjust accuracy by accounting for the possibility of a correct prediction by chance only, we also calculated an AUC with 2000 bootstrap replicates and the pAUC to assess the variability of the measure. The formula of pAUC was:

$$ pROC = \frac{1}{2}\left( {1 + \frac{pAUC - \min }{{\max - \min }}} \right) $$

where min is the pAUC over the same region of the diagonal ROC curve, and max is the pAUC over the same region of the perfect ROC curve42. Because we were interested in a diagnostic test with a high specificity and sensitivity, we also examined the partial AUC between 90 and 100% for specificity and sensitivity. We assessed the reliability by leave-one-out cross-validation and the kappa statistic. Kappa expresses the extent to which the observed agreement exceeds that would be expected by chance alone43. A kappa greater than 0.75 represents excellent agreement beyond chance, a kappa below 0.40 represents a poor agreement, and a kappa of 0.40 to 0.75 represents intermediate to good agreement.

To evaluate the influence of comorbidities and confounding factors on diagnostic accuracy, we conducted additional analyses to compare the effects of comorbidities and confounding factors on diagnostic accuracy. We included each potential confounding factor or comorbidity, used eight machine learning algorithms, and applied meta-analyses of diagnostic accuracy to generate pooled point estimates of the accuracy and SROC44. We used the DOR to quantify the impact of confounding factors on accuracy:

$$ {\text{DOR }} = \, \left( {{\text{True}}\,{\text{ positive}}/{\text{False }}\,{\text{negative}}} \right)/\left( {{\text{False }}\,{\text{positive}}/{\text{True }}\,{\text{negative}}} \right) $$
(1)

A DOR value ranges from 0 to infinity, with higher values indicating better discriminatory test performance. A value of 1 means that a test does not discriminate between patients with the disorder and those without it45. A test with a DOR of 10 is considered to be an excellent test46. Also, we included all subjects and did not exclude any confounding factor or comorbidity for readers to judge the worst-case scenario accuracy. The software used for this analysis was R-package mada.