Next Article in Journal
Application of Split Coordinate Channel Attention Embedding U2Net in Salient Object Detection
Previous Article in Journal
Application of the Parabola Method in Nonconvex Optimization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Data Mining Techniques for Endometriosis Detection in a Data-Scarce Medical Dataset

by
Pablo Caballero
1,*,
Luis Gonzalez-Abril
2,
Juan A. Ortega
3,* and
Áurea Simon-Soro
4
1
Computer Engineering Programme, International Doctorate School, University of Seville, 41013 Seville, Spain
2
Department of Applied Economic I, Faculty of Economics and Business Sciences, University of Seville, 41018 Seville, Spain
3
Department of Computer Science, Higher Technical School of Computer Engineering, University of Seville, 41012 Seville, Spain
4
Department of Stomatology, Faculty of Dentistry, University of Seville, 41009 Seville, Spain
*
Authors to whom correspondence should be addressed.
Algorithms 2024, 17(3), 108; https://doi.org/10.3390/a17030108
Submission received: 1 February 2024 / Revised: 22 February 2024 / Accepted: 27 February 2024 / Published: 4 March 2024

Abstract

:
Endometriosis (EM) is a chronic inflammatory estrogen-dependent disorder that affects 10% of women worldwide. It affects the female reproductive tract and its resident microbiota, as well as distal body sites that can serve as surrogate markers of EM. Currently, no single definitive biomarker can diagnose EM. For this pilot study, we analyzed a cohort of 21 patients with endometriosis and infertility-associated conditions. A microbiome dataset was created using five sample types taken from the reproductive and gastrointestinal tracts of each patient. We evaluated several machine learning algorithms for EM detection using these features. The characteristics of the dataset were derived from endometrial biopsy, endometrial fluid, vaginal, oral, and fecal samples. Despite limited data, the algorithms demonstrated high performance with respect to the F1 score. In addition, they suggested that disease diagnosis could potentially be improved by using less medically invasive procedures. Overall, the results indicate that machine learning algorithms can be useful tools for diagnosing endometriosis in low-resource settings where data availability and availability are limited. We recommend that future studies explore the complexities of the EM disorder using artificial intelligence and prediction modeling to further define the characteristics of the endometriosis phenotype.

1. Introduction

Endometriosis (EM) is a chronic inflammatory estrogen-dependent disorder characterized by endometrial-like tissue outside the uterus [1]. It affects 10% of women worldwide, causing pelvic pain and infertility [2]. The uterus is not a sterile organ [3]. The inner lining of the uterus, the endometrium, contains resident microorganisms that are different in type and number from the microorganisms that reside in the vagina [4]. A conclusive clinical diagnosis of EM usually requires a combination of medical history, physical examination, imaging techniques (such as ultrasound or MRI), and sometimes laparoscopic surgery. Currently, no single definitive biomarker can diagnose EM with 100% accuracy. Recent studies show that the microbial composition in EM differs from that in healthy individuals. This implies that it plays a significant role in disease and reproductive outcomes [5].
The composition and diversity of the microbiota [6] can indicate the onset or progression of the disease. Distal microbial changes can serve as biomarkers for EM. Gastrointestinal biomarkers, such as those taken from the intestinal tract or oral cavity, are quantifiable indicators that can offer valuable information on overall health. Using samples from the oral microbiome could have advantages over other internal body sites in the female reproductive tract because the process for collection is noninvasive, and specialized sample collection procedures are not required for the evaluation of EM. Consequently, the early detection of EM can help avoid complications such as reduced fertility. Therefore, the timely diagnosis of this condition is crucial for effective treatment and for the preservation of the patient’s reproductive health.
Machine learning algorithms have proven their effectiveness in solving classification problems [7]. These algorithms can employ methods such as logistic regression, decision trees, SVMs, neural networks, and fuzzy classifiers, among others [8,9]. Machine learning has been applied to various problems in the domain of endometrial disease detection [10,11,12]. For example, some researchers have proposed a novel machine learning algorithm to create precision prognostication systems for endometrial cancer [13,14], while others have used deep learning to classify MRI images of endometrial cancer [15]. These studies demonstrate the potential of machine learning to improve the diagnosis and treatment of endometrial diseases. Another study using noninvasive biomarkers [16], such as blood, urine, or endometrial biopsy, was carried out using the QUADAS-2 tool as an example of a failed attempt, and the conclusion was that they could not replace laparoscopy as a diagnostic procedure. It is important to note that while these biomarkers are promising, none of them are currently used as an independent diagnostic tool for EM [17].
Data scarcity is a common challenge for all algorithms, not only for those used for classification purposes. This problem limits AI applications in the real world, especially in medicine, where data are costly and public funding is needed [18]. Moreover, the availability of public records is limited [19]. In these cases, algorithms fail to achieve an adequate generalization capacity, which results in poor performance. Another major problem facing classification learning algorithms is the imbalance between classes in datasets [20]. That is, one or more classes have most of the examples, while the remaining classes are underrepresented. The problem becomes more severe when the class with the least amount of data is the most relevant [21].
In this study, several machine learning algorithms have been considered in order to provide a classification of EM disease from the microbiome. Our hypothesis asserts that the bacterial taxa present in the oral or fecal microbiome could serve as a surrogate biomarker for the diagnosis of EM in women. If the hypothesis is confirmed, then the resulting impact would have economic and clinical benefits due to the need for less invasive and lower-cost sample collection procedures (see Figure 1).

2. Materials and Methods

2.1. Data Sources

A total of twenty-one patients diagnosed with some pathology associated with infertility were included in the analysis. From the total, seven were diagnosed with EM. We included 5 sample types corresponding to the gastrointestinal tract (GIT) and the female reproductive tract (FRT). The gastrointestinal tract included oral and fecal sample types. In addition, the FRT included endometrial fluid (EF), endometrial biopsy (EB), and vaginal (VA) sample types. When evaluating bacterial communities, we used each sample type using microbiome abundances. The dataset consisted of up to 438 different bacterial taxa (the link to the input data is available in the “Data Availability Statement” Section).
This list is an initial approach based on the available datasets:
  • Address each sample type independently:
    -
    Dataset for oral samples.
    -
    Dataset for fecal samples.
    -
    Dataset for endometrial fluid.
    -
    Dataset for endometrial biopsies.
    -
    Dataset for the vaginal samples.
  • Group some sample types:
    -
    The dataset for the GIT merges the oral–fecal datasets.
    -
    The dataset for the FRT merges the endometrial fluid, endometrial biopsy, and vaginal microbiomes.
    -
    The dataset for FRT2 merges the endometrial biopsy and vaginal microbiomes.
Please note that the data size for all datasets was very small and that the proportion of subjects with EM was low compared to that of the other patients; therefore, it was difficult to obtain reliable results from the classification process. Otherwise, from a medical perspective, even if the data size is small, this process is essential because it will enhance patient care if a satisfactory classifier performance can be obtained with the oral or fecal microbiome since it might be a less invasive procedure.

2.1.1. Data Source for Oral Region

All patients in the dataset suffer from an infertility-related disease, either EM or another condition. These conditions are polyps, erythroplakia, hydrosalpinx, ovarian failure, chronic endometritis, polycystic ovary syndrome, or a unicornuate uterus.
In Table 1 and Table 2, we can see that some of the bacteria are more frequent and some of them are almost negligible. We had to use a logarithmic scale to observe the variations in values in Figure 2. Firmicutes Streptococcus is undoubtedly the most prevalent bacterium in this region.
In Figure 2, the x-axis shows the patients and the y-axis shows the relative abundance. Each point has a color that represents a different type of bacteria. However, we do not provide the legend of the colors because they are only informative and the distribution is the important aspect of the chart. We use the same criterion for Figure 3, Figure 4, Figure 5 and Figure 6.

2.1.2. Data Source for Fecal Region

In Table 3 and Table 4, we can see that Firmicutes Lachnospiraceae is the most prevalent bacterium in this region. However, the second and third ranks vary by the patient’s disease.
As shown in Figure 3, the fecal region has a lower concentration of the dominant bacteria. However, the same bacteria are among those with the highest relative abundance.

2.1.3. Data Source for Endometrial Fluid Region

In Table 5 and Table 6, we can see that Firmicutes Lactobacillus is the most prevalent bacterium in this region, followed by Actinobacteria Gardnerella. In Figure 4, the bacterial distribution in the EF region is shown.

2.1.4. Data Source for Endometrial Biopsy Region

In Table 7 and Table 8, we can see that Firmicutes Lactobacillus is the most prevalent bacterium in this region, similarly to the EF region. In  Figure 5, the bacterial distribution in the EB region is shown.

2.1.5. Data Source for Endometrial Vaginal Region

In Table 9 and Table 10, we can see that Firmicutes Lactobacillus is the most prevalent bacterium in this region, followed by Actinobacteria Gardnerella by a large margin. In  Figure 6, the bacterial distribution in the vaginal region is shown.

2.2. Preprocessing Data

Microbiome analysis was performed using the QIIME2 bioinformatics platform (version 2022.8) to process raw 16S rRNA gene sequences [22]. Sequences were quality-filtered, denoised, and duplicated using the DADA2 algorithm implemented in the denoise-pyro plugin, which was specifically designed for single-end demultiplexed pyrosequencing sequences [23]. To remove low-quality data, the first 15 bases at the 5 ends of the sequences were trimmed, and samples with a mean Phred quality score below 20 were excluded from further analyses. The sequence variants of amplicons (ASVs) obtained were taxonomically classified using the Greengenes 13_8 99% Operational Taxonomic Unit (OTU) reference sequence [24,25] with the VSEARCH tool [26]. The VSEARCH tool was used to validate and process raw data from the microbiome analysis. This ensured the quality and reliability of the data before applying any machine learning techniques. We note that our study has no outliers, but some of the datasets have missing values. In these cases, the default value is zero, indicating that there are no bacteria of this type. Each column in the dataset represents a relative abundance and must satisfy Equation (1). This equation ensures that for each patient and area, the sum of all levels is equal to one since the units are proportions.
i ( rows ) : j = f i r s t _ r e l a t i v e _ a b u n d a n c e _ c o l u m n l a s t _ r e l a t i v e _ a b u n d a n c e _ c o l u m n X i , j = 1

2.2.1. Filtering

All columns with zero values were discarded, as they did not contribute to the models. Thus, the resulting datasets were reduced according to Table 11.

2.2.2. Scaling

Some bacterial taxa were very rare in the microbiome, which can cause rounding errors in the analysis. To avoid this, relative abundances were expressed in units per million (ppm). A further explanation of the rationale behind using the ppm unit of measure is as follows: First, we found the maximum of all abundance values for a given sample type. In the following step, we looked for the smallest maximum abundance that was not zero, as this value must have an integer part. For example, the smallest abundance in the EB sample type was for the bacterium Firmicutes Desulfurispora, which has a value of 5.028848829 ppm. After applying Equation (2), the resulting models should be exactly equivalent if the predictions are also scaled.
i ( rows ) , j ( columns ) : X i , j X i , j × 10 6

2.2.3. Class Imbalance

For this study, we used a diagnosis associated with infertility from the patient’s clinical history. Dealing with unbalanced datasets is a challenging task for machine learning algorithms. Some authors suggest downsampling the majority class, but this would result in a significant loss of information in such a small dataset like the one analyzed in our study [27].
Synthetic data (SD) are often used to augment or replace real data in various domains, such as healthcare, where data privacy and availability are major concerns [28]. Moreover, clinical trial data typically have a relatively small number of participants; however, the suggested sizes are always larger than a thousand entries [29,30,31].
Some authors propose generating synthetic data for the minority class, but this could lead to overfitting the model to artificial samples [32].
SD have some drawbacks that limit their usefulness and reliability for building robust and accurate models [33]. Creating a realistic and representative SD model is challenging and time-consuming. It requires a lot of domain knowledge, expertise, and effort. It is not easy to capture the complexity, variability, and correlations of real data in a synthetic model. SD may contain omissions and inconsistencies and may not reflect all relevant features, patterns, and anomalies of the real data. This is especially true if the model is based on incomplete or outdated information. Moreover, SD may introduce artificial noise or bias that can affect the performance and the validity of models trained on it. The quality of SD is largely dependent on the skill of the expert building the model. Different experts may have different assumptions, preferences, and methods for generating SD, which can lead to inconsistent and incomparable results. Furthermore, the quality of SD can degrade over time, as real data evolve and change. SD may miss some important insights or discoveries that can only be revealed by analyzing real data. This is because SD are oblivious to the ground truth hidden in real field data that is not yet known in theory. For example, SD may not capture some rare cases that are not well understood or documented in the literature. Even so, SD were tested at an early stage of the study and generated worse results. Therefore, we decided not to use SD for our model based on these drawbacks in the healthcare domain.

2.3. Dataset from One Area

Supervised learning algorithms were based on the diagnostic values of EM in each patient, which were obtained by using a clinical detection method. This detection could involve methods such as the histological examination of the lesions or laparoscopic surgery, among others [34,35]. Laparoscopic surgery is a minimally invasive procedure that allows the visualization of the pelvic organs and the confirmation of the presence or absence of endometriosis lesions. The diagnosed values are then used as labels for the training and testing of the machine learning models.
There are two possible states for a binary problem, so a Boolean variable was used to perform the classification. The criterion for selection was defined as follows: If endometriosis is present, then the value is true. If endometriosis is not present, then the value is false. By applying this premise, the binary classification problem was resolved.

2.4. Machine Learning Models

We conducted different experiments with machine learning algorithms using scikit-learn (version 1.3.0) [36], a free software library for Python, with the main support of the free software libraries numpy (version 1.24.3) and pandas (version 2.0.3). The experiments were run in a Conda environment (version 23.7.3) with Python (version 3.11.4). The experiments compared the viability of several classification techniques using real-world datasets.
Cross-validation [37] is the standard technique to estimate the performance of machine learning models on unseen data. Data were divided into k groups or folds, and one fold was used as the test set and the rest as the training set. The choice of k affects the bias–variance trade-off of the model, where a smaller k leads to a higher bias but a lower variance, and a larger k leads to a lower bias but a higher variance. A single execution of k-fold cross-validation may result in noisy values, because the order of the data may affect the performance values, especially if the datasets are small or imbalanced [38]. However, if the computational cost is not a problem, repeated k-fold cross-validation, which repeats the process n times, each time using a different random seed to shuffle the data before splitting it into folds, can provide a more robust and less dependent estimate [39]. To achieve statistical stability, we used a group of 100 random state values for each test conducted in this study. Thus, we repeated the cross-validation process 100 times with different random seeds and averaged the results. Considering that the dataset consists of 21 observations, we set the number of splits in cross-validation to 7. Then, we had a large enough number of data points in the training set to be able to obtain an adequate classifier. Consequently, the number of training data points was 18, compared to 3 validation data points. If the dataset size was less than 21, the number of splits varied as indicated in Section 2.1.
The general algorithm is described in Algorithm 1. The function performs the classification task using the given classifier and the repeated k-fold cross-validation method [40]. The function uses four inputs: the X matrix, the Y matrix, the number of folds for cross-validation, and the specific classifier for the chosen method of classification. In this study, we used 100 repetitions for cross-validation.
The function returns a dictionary with the tuples of the mean ( X ¯ ), the standard deviation ( σ ), and the length of each cross-validation score of each metric. The function also handles cases where there is a zero-division error in calculating precision and recall by filtering out those scores.
The standard deviation ( σ ) was used to monitor and prevent overfitting [41], which is a risk of having models with a large variance ( σ 2 ). Overfitting considers the model’s capture of noise or the specific features of the training set but does not generalize well to new or unseen data. The standard deviation measures how much the model’s predictions deviate from the mean.
We used the following four common metrics to evaluate the performance of machine learning models in classification tasks: accuracy (see Equation (3)), precision (see Equation (4)), recall (see Equation (5)), and F1 (see Equation (6)). Accuracy measures how often the model predicts the correct class. Precision measures how often the model’s positive predictions are correct. Recall measures how often the model detects positive cases. The F1 score is the harmonic mean of precision and recall; it captures the trade-off between precision and recall, which was used to rank the performance of each algorithm due to the imbalance in the classes. Another interesting measure of fit for unbalanced data is the geometric mean [42]. However, during the experiment, we observed that there were many test sets with one class. In such cases, the result provided by this metric was 0, which invalidated this metric.
To make a final decision about the most relevant model, we focused on the F1 score. The F1 score could be more informative due to accuracy, or the receiver operating characteristic curve (ROC). When dealing with a small number of items, both false positives and false negatives must be considered and could have a significant effect on a small sample.
All the variables used by Equations (3)–(6) are defined in Table 12.
A c c u r a c y = T P + T N T P + T N + F P + F N
P r e c i s i o n = T P T P + F P
R e c a l l = T P T P + F N
F 1 = 2 × P r e c i s i o n × R e c a l l P r e c i s i o n + R e c a l l = 2 × T P 2 × T P + F P + F N
In order to avoid overfitting, we used the RepeatedStratifiedKFold validator from the scikit-learn library to evaluate the performance of the model. This validator randomly splits the data into k folds and repeats the process n times while preserving the class distribution of the data in each fold. This is more suitable for classification problems with imbalanced classes, as it ensures that each fold has a representative sample of each class. On the other hand, the RepeatedKFold validator from the same library does not preserve the class distribution. This can result in some folds having very few or no samples of some classes, which in turn can affect the performance of the model. We compared both validators and found that the RepeatedStratifiedKFold validator scores were slightly higher than the RepeatedKFold validator scores.
Algorithm 1: classify(X, Y, k, classifier)
Algorithms 17 00108 i001
When there were no data from the EM class in the test set, we faced a major zero-division problem in calculating precision, recall, and F1. In these cases, we considered the zero-division argument and calculated the classification for the two possible values for the score: 0, which would be penalized, and 1, which would be rewarded. Subsequently, we only took scores with the same value for the same classification that were not affected by this situation, and then we filtered them using Algorithm 2. Although there were no zero-division problems in the accuracy calculation, we calculated this metric only when precision and recall were well defined to ensure the consistency of the results. We applied this method to all the algorithms in this study.
Algorithm 2: filter_non_zero_division(precision_zd0, precision_zd1, recall_zd0, recall_zd1)
Algorithms 17 00108 i002
For the calculation of the F1 score, the method defined in Algorithm 3 based on Equation (6) (previously shown) was used. This method prevented a zero-division error, which occurs when the divisor in the formula is zero, by returning not a number, or NaN. The scikit-learn library expected the default value of 0 or 1. However, we were interested in using NaN as the default value. Using this approach, we could later discard the undefined values in our evaluation.
Algorithm 3: get_f1(precision, recall)
Algorithms 17 00108 i003

2.4.1. Logistic Regression Classification

Algorithm 4 is a binary classification algorithm that uses LogisticRegression [36,43] from the scikit-learn library as the classifier, with the default value of C=1.0 as the inverse of the regularization strength. The regularization strength is a parameter that controls the complexity of the model and prevents overfitting. The solver “liblinear” was chosen because it performed well on small datasets.
Algorithm 4: classify_by_logistic_regression(X, Y, k)
X: Input. X matrix.
Y: Input. Y matrix.
k: Input. The number of folds for cross-validation.
Result: This method returns a dictionary with the tuples of the mean, standard
    deviation, and length of the cross-validation scores for each metric.
    The keys of the dictionary are “accuracy”, “precision”, “recall”,
    and “f1”.
 1
C 1.0 // ( Inverse of regularization strength (
 2
s o l v e r l i b l i n e a r
 3
c l a s s i f i e r new : LogisticRegression C , s o l v e r
  • // ( Evaluate classification (
 4
r e s u l t classify x , y , k , c l a s s i f i e r
 5
return r e s u l t

2.4.2. Decision Tree Classification

Algorithm 5 is a classification algorithm that uses DecisionTreeClassifier [36,44] from the scikit-learn library to predict EM disease based on a set of decision rules. DecisionTreeClassifier is a nonparametric supervised learning method that can handle both numerical and categorical data. We determined that the maximum number of features to be considered when looking for the optimal split to be the square root of the total number of features. In our case, this means 20 features out of 438 features in our original data. We then partitioned and evaluated our data using repeated k-fold cross-validation for our experiment.
Algorithm 5: classify_by_decision_tree(X, Y, k)
X: Input. X matrix.
Y: Input. Y matrix.
k: Input. The number of folds for cross-validation.
Result: This method returns a dictionary with the tuples of the mean, standard
    deviation, and length of the cross-validation scores for each metric.
    The keys of the dictionary are “accuracy”, “precision”, “recall”,
    and “f1”.
 1
m a x _ f e a t u r e s s q r t // ( Square root of the number of columns of X (
 2
c l a s s i f i e r new : DecisionTreeClassifier ( m a x _ f e a t u r e s )
  • // ( Evaluate classification (
 3
r e s u l t classify ( x , y , k , c l a s s i f i e r )
 4
return r e s u l t

2.4.3. Support Vector Classification

Algorithm 6 is a classification algorithm that uses a support vector classifier, svm.SVC [36,45], from the scikit-learn library to predict EM disease based on a subset of training points, which are called support vectors. The support vectors define a decision boundary that maximizes the margin between classes. The support vector classifier uses a kernel function to map the input data to a higher-dimensional feature space, where the decision boundary can be found more easily. Depending on the kernel function, the gamma coefficient is applied or not to control the influence of individual training points on the decision boundary. We then partitioned and evaluated our data using repeated k-fold cross-validation for our experiment.
For the SVC classification model, we experimented with two types of kernels: linear and radial basis function (rbf). The linear kernel used liblinear as the underlying solver, while the rbf kernel was suitable for nonlinear problems.
Algorithm 6:classify_by_svc(X, Y, k, kernel, C)
Algorithms 17 00108 i004

2.5. Dataset from a Single Sample Type

 Table 13 shows the number of patients per sample type. We used repeated k-fold cross-validation to evaluate the performance of our machine learning model on different sample types. We divided the data into k equal parts and tested the model on each part. For the FRT sample type, we used k = 7, so each part contained 3 samples (EB, EF, and vaginal). For the GIT sample type, we used k = 4, so each part also contained 3 samples (oral and fecal).

2.6. Dataset from Multiple Sample Types

In Section 2.1, we present a data analysis focused on the GIT and FRT regions. This section also explains how we implemented the proposed method.
There were regions with missing data for some sample types due to a variety of factors, including the complexity and/or invasiveness of the sample collection process, contamination, or the degradation of sample quality. As a result, we only took into account sample types that had complete datasets for each patient and omitted the others from the study.
 Table 14 shows that the GIT region had a very limited sample size and an unbalanced distribution of patients with EM disease. For the GIT region, we could use k = 3, so each part would contain 3 samples. However, this led to an insufficient number of samples per class for classification purposes, resulting in the lowered reliability of the evaluation metrics, such as accuracy or the F1 score. Therefore, we did not evaluate the classification performance for the GIT region in this study.
The FRT could be partitioned into 7 subsets, each containing 3 samples that could be used to conduct an evaluation. Therefore, a new dataset was required that aggregated features by patient. The merging method presented in Algorithm 7 transformed a dataset with a list of features into a new dataset, where each patient had a single row with all their features. For the initial part of the execution, we created a list of columns for all the types and features of the samples, plus a dictionary of datasets for each “PatientID”. The next step was to check whether there were any missing sample types for each patient. If the patient was missing a sample type, then they were skipped. Separately, the algorithm added the column “IsEndometriosis” and grouped the dataset by “SampleType”. Next, the values of each type of sample were appended to an array; the array was scaled and then added to the list of rows. The final output was a dataset with these rows and columns.
Algorithm 7: merge(dataset, features, sample_types=[ “EF”, “EB”, “Vaginal” ])
Algorithms 17 00108 i005
A total of 438 bacterial taxa were provided as input data before the merge. The merge operation increased the number of features to 1314, as each feature had 3 values for the FRT, 1 for each sample type. Nevertheless, applying the filtering described in Section 2.2.1 reduced the number of features to 716, so 54.49% of the columns were discarded.
The algorithm for FRT classification is based on the previous methods presented in Algorithm 8. It first combines the data and then applies a supervised machine learning method to classify the patients.
Algorithm 8: classify_frt(dataset, features, k, classifier)
dataset : Input. A dataset where the rows are the relative abundances, and each
     column represents a feature. At least the columns “IsEndometriosis”,
    “PatientID”, “SampleType”, and all the features should be present.
features  : Input. A list of column names that represent the features of the input
     data.
k     : Input. The number of folds for cross-validation.
classifier: Input. The specific classifier for the chosen means of classification.
Result: This method returns a dictionary with the tuples of the mean and
    standard deviation of each cross-validation score of each metric. The keys
    of the dictionary are “accuracy”, “precision”, “recall”, and “f1”.
// ( Merge feaures (
 1
s a m p l e _ t y p e s [ E F , E B , V a g i n a l ]
 2
m e r g e d _ d a t a s e t merge d a t a s e t , f e a t u r e s , s a m p l e _ t y p e s
// ( Select the inputs for classification (
 3
X c o l u m n , c o l u m n f e a t u r e s : m e r g e d _ d a t a s e t [ c o l u m n ]
 4
Y m e r g e d _ d a t a s e t [ I s E n d o m e t r i o s i s ]
// ( Evaluate classification (
 5
r e s u l t classify ( X , Y , k , c l a s s i f i e r )
 6
return r e s u l t

2.7. Hyperparameter Optimization

Hyperparameter optimization of the selected classifier may not necessarily improve its performance. Furthermore, the influence of hyperparameter optimization could be affected by the variability induced by the random_state hyperparameter, controlling both the model and the cross-validation process. Therefore, 100 different values of random_state were tested in order to achieve the statistical stability of the results of each classification task.
For the SVC algorithm, the regularization hyperparameter C was adjusted following a manual grid search [46] to find the optimal values. The regularization strength varied inversely with C, which required a strictly positive value. Following the standard approach, we set the initial value of C to a default of 1 and then evaluated powers of 10, namely, 1, 10, and 100, for comparison.
The parameter γ in the rbf kernel was considered by default since preliminary experimentation showed that, in the specified range, the performance did not vary significantly.

3. Results

It is worth noting that if a random classifier [47] from Table 13 was considered, the accuracy and the F1 score were 10 16 (62.5%) and 3 12 (25%) in the oral region, respectively. Equations (7)–(10) prove the previous figures.
I P [ E M ] = 3 12 I P [ S u c c e s s E M ] = 3 12 I P [ N o n E M ] = 9 12 I P [ S u c c e s s N o n E M ] = 9 12
A c c u r a c y = I P [ S u c c e s s ] = I P [ S u c c e s s E M ] × I P [ E M ] + I P [ S u c c e s s N o n E M ] × I P [ N o n E M ]
A c c u r a c y = 3 12 × 3 12 + 9 12 × 9 12 = ( 1 4 ) 2 + ( 3 4 ) 2 = 10 16
A c c u r a c y = 10 16 F 1 = I P [ E M ] = 3 12
In the fecal sample type, the accuracy and the F1 score were 97 169 (57.4%) and 4 13 (30.8%), respectively. Equations (11) and (12) prove the previous figures.
I P [ E M ] = 4 13 I P [ S u c c e s s E M ] = 4 13 I P [ N o n E M ] = 9 13 I P [ S u c c e s s N o n E M ] = 4 13
A c c u r a c y = 4 13 × 4 13 + 9 13 × 9 13 = ( 4 13 ) 2 + ( 9 13 ) 2 = 97 169 F 1 = I P [ E M ] = 4 13
In the other regions, the accuracy and the F1 score were 5 9 (55.6%) and 1 3 (33.3%), respectively. See Equations (13) and (14).
I P [ E M ] = 7 21 I P [ S u c c e s s E M ] = 7 21 I P [ N o n E M ] = 14 21 I P [ S u c c e s s N o n E M ] = 14 21
A c c u r a c y = 7 21 × 7 21 + 14 21 × 14 21 = ( 7 21 ) 2 + ( 14 21 ) 2 = 245 441 = 5 9 F 1 = I P [ E M ] = 7 21 = 1 3
As a result, we can see that the random classifier performed poorly in all regions. Thus, we recommend using models that reach at least these performance thresholds.
Considering the number of folds of cross-validation and the number of repetitions (100), the classifier was trained a total of 300 times in the oral and fecal regions and 700 times in the other regions. Nevertheless, only classifiers not presenting zero division were considered for obtaining the statistics and are reported in the corresponding tables.
As mentioned in Section 2.4, the F1 score was used to compare the performance of the different machine learning classifiers. Next, the best classifiers obtained for each model—logistic regression, decision tree, SVM linear, and SVM rbf—after the grid search are presented and analyzed.

3.1. Logistic Regression Classification

The main parameters for this classification are shown in Table 15Table 16 summarizes the main findings of this experiment using these parameters.
As shown in Table 16, the F1-score of the random classifiers for the EB, EF, and vaginal samples did not exceed the minimum threshold of 33.33% given by Equation (12).
The F1 scores for the oral and fecal samples were 74.77% and 49.72%, respectively. GIT sample types were higher than the minimum thresholds of the random classifier, which were 25% for oral samples and 30.8% for fecal samples. These results validated the initial hypothesis that the classification of the oral and fecal sample types is better than in the reproductive region. In particular, the result obtained in the oral region is very promising.

3.2. Decision Tree Classification

The main parameters for this classification are shown in Table 17Table 18 summarizes the main findings of this experiment using these parameters.
 Table 18 shows that the random classifiers for the EF and vaginal samples had F1 scores below 33.3%, which is the minimum threshold given by Equation (14). This value suggests that they performed more poorly than the random classifier.

3.3. Support Vector Classification with the linear kernel

The main parameters for this classification are shown in Table 19Table 20 summarizes the main findings of this experiment using the listed parameters.
The results of the SVC with the linear kernel shown in Table 20 are very similar to those obtained with logistic regression. Therefore, the results support the initial hypothesis that the classification in the oral and fecal regions is better than in the reproductive region. Furthermore, by taking into account the unbalanced EM class, the results of precision and recall in the oral and fecal regions are very promising.

3.4. Support Vector Classification with the rbf kernel and C = 100

The main parameters for this classification are shown in Table 21Table 22 summarizes the main findings of this experiment using these parameters. It should be noted that in this case, C was much larger.
Table 22 shows the results of the SVC classification with the rbf kernel. The F1 score for FRT2 was high, indicating a good performance. The F1 scores for the other regions were similar to those of the other models, except for EF. We have crossed out the F1 score of the EF sample type in Table 22 because the number of classifiers was very small, and it did not produce meaningful statistics.

4. Conclusions

This paper presents a comparative analysis of three machine learning classification algorithms: logistic regression, decision trees, and support vector machines. We applied these algorithms to seven sample types to detect EM disease. Our results show that logistic regression outperforms the other two algorithms in terms of the F1 score. The logistic regression achieved an accuracy of 80.07%, a precision of 71.97%, a recall of 81.01%, and an F1 score of 74.77%. Our findings confirm our initial hypothesis that the oral sample type contains relevant information to predict EM disease. They also suggest that a machine learning model based on logistic regression could be a reliable and noninvasive tool for early diagnosis.
The findings from our study have several implications for both health and research. They could reduce the costs and risks associated with endometrial analysis and provide insight into surrogate biomarkers associated with EM disease. The machine learning model’s results can assist the specialist in considering EM as a potential diagnosis. However, there are some limitations that we faced that future studies should address.
First, our sample size was relatively small, with only 12 patients in the oral sample type region and 3 of them with EM disease. Having a small sample size allows for some bias or noise in the data, which could affect the scalability and robustness of our model. Although more information was available for the other sample types, the data were still limited.
Second, our study was cross-sectional, which means that we did not follow the patients over time to monitor the progression of the disease or the response to treatment. This could limit our understanding of the causal relationships between bacteria and EM disease and the temporal dynamics of surrogate biomarkers. Therefore, we suggest that future studies include larger cohorts, thus increasing the sample size, and conduct longitudinal studies to track changes in the oral sample type over time.
Finally, we encourage future studies to explore additional machine learning algorithms or methodologies that may improve the performance or comprehension of our model. This could include fuzzy classifiers, neural networks, ensemble techniques, transfer learning, pre-trained models, or more sophisticated models that could be enhanced by synthetic data. Further investigations using machine learning algorithms could reveal the microbial role in the disease and the local (FRT) and distal (GIT) host–microbial homeostasis related to EM.

Author Contributions

Conceptualization, P.C., L.G.-A., J.A.O. and Á.S.-S.; methodology, P.C. and L.G.-A.; software, P.C.; validation, P.C. and L.G.-A.; formal analysis, P.C. and L.G.-A.; investigation, P.C.; resources, P.C. and Á.S.-S.; data curation, P.C., L.G.-A. and J.A.O.; writing—original draft preparation, P.C., L.G.-A. and Á.S.-S.; writing—review and editing, P.C., L.G.-A., J.A.O. and Á.S.-S.; visualization, P.C.; supervision, L.G.-A. and J.A.O.; project administration, J.A.O.; funding acquisition, J.A.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been partially supported by the “Generation of Reliable Synthetic Health Data for Federated Learning in Secure Data Spaces” Research Project (PID2022-141045OB-C42 (AEI/FEDER, UE)) funded by MCIN/AEI/10.13039/501100011033 and by “ERDF A way of making Europe” by the “European Union”.

Institutional Review Board Statement

The present study was approved by the Ethics Committee of Universidad del Atlántico 1532-N-21 and European University on 22 December 2020. The research was carried out following the guidelines of the Declaration of Helsinki on Medical Research in Human Subjects and Good Clinical Practice. Written informed consent was obtained from all participants.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Patient data are confidential, so they have been anonymized. They are openly available in figshare at 10.6084/m9.figshare.24125037. The Jupyter notebooks with all the used code are available at 10.6084/m9.figshare.23905125. The results datasets that support the findings of this study and the figures of the scores are openly available in figshare at the following locations: LogisticRegression scores and figures: 10.6084/m9.figshare.23904903 and 10.6084/m9.figshare.24114696; DecisionTree scores and figures: 10.6084/m9.figshare.23904861 and 10.6084/m9.figshare.24114702; SVC scores and figures (linear kernel and C = 1): 10.6084/m9.figshare.23904933 and 10.6084/m9.figshare.24114687; SVC scores and figures (rbf kernel and C = 1): 10.6084/m9.figshare.24114681 and 10.6084/m9.figshare.24114579; SVC scores and figures (rbf kernel and C = 10): 10.6084/m9.figshare.23904954 and 10.6084/m9.figshare.24114570; SVC scores and figures (rbf kernel and C = 100): 10.6084/m9.figshare.23904972 and 10.6084/m9.figshare.24114561.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ASVsAmplicon Sequence Variants
CSVComma-Separated Values
DADA2Divisive Amplicon Denoising Algorithm 2
EBEndometrial biopsy
EFEndometrial fluid
EMEndometriosis
FRTFemale reproductive tract
GITGastrointestinal tract
MRIMagnetic Resonance Imaging
OTUsOperational Taxonomic Units
RBFRadial basis function
ROCReceiver operating characteristic curve
rRNARibosomal Ribonucleic Acid
SDKSoftware Development Kit
SVCSupport vector classifier
SVMSupport vector machine

References

  1. Bullon, P.; Navarro, J.M. Inflammasome as a Key Pathogenic Mechanism in Endometriosis. Curr. Drug Targets 2017, 18. [Google Scholar] [CrossRef]
  2. Zondervan, K.T.; Becker, C.M.; Missmer, S.A. Endometriosis. N. Engl. J. Med. 2020, 382, 1244–1256. [Google Scholar] [CrossRef]
  3. Moreno, I.; Codoñer, F.M.; Vilella, F.; Valbuena, D.; Martinez-Blanch, J.F.; Jimenez-Almazán, J.; Alonso, R.; Alamá, P.; Remohí, J.; Pellicer, A.; et al. Evidence that the endometrial microbiota has an effect on implantation success or failure. Am. J. Obstet. Gynecol. 2016, 215, 684–703. [Google Scholar] [CrossRef] [PubMed]
  4. Riganelli, L.; Iebba, V.; Piccioni, M.; Illuminati, I.; Bonfiglio, G.; Neroni, B.; Calvo, L.; Gagliardi, A.; Levrero, M.; Merlino, L.; et al. Structural Variations of Vaginal and Endometrial Microbiota: Hints on Female Infertility. Front. Cell. Infect. Microbiol. 2020, 10, 350. [Google Scholar] [CrossRef]
  5. Moreno, I.; Garcia-Grau, I.; Perez-Villaroya, D.; Gonzalez-Monfort, M.; Bahçeci, M.; Barrionuevo, M.J.; Taguchi, S.; Puente, E.; Dimattina, M.; Lim, M.W.; et al. Endometrial microbiota composition is associated with reproductive outcome in infertile patients. Microbiome 2022, 10, 1. [Google Scholar] [CrossRef] [PubMed]
  6. Bhattacharya, K.; Dutta, S.; Sengupta, P.; Bagchi, S. Reproductive tract microbiome and therapeutics of infertility. Middle East Fertil. Soc. J. 2023, 28, 11. [Google Scholar] [CrossRef]
  7. Mitchell, T. Machine Learning; McGraw-Hill Education: New York, NY, USA, 1997. [Google Scholar]
  8. Rabcan, J.; Levashenko, V.; Zaitseva, E.; Kvassay, M. EEG Signal Classification Based on Fuzzy Classifiers. IEEE Trans. Ind. Inform. 2022, 18, 757–766. [Google Scholar] [CrossRef]
  9. Bonissone, P.; Cadenas, J.M.; Carmen Garrido, M.; Andrés Díaz-Valladares, R. A fuzzy random forest. Int. J. Approx. Reason. 2010, 51, 729–747. [Google Scholar] [CrossRef]
  10. Visalaxi, S.; Punnoose, D.; Muthu, T.S. An Analogy of Endometriosis Recognition Using Machine Learning Techniques. In Proceedings of the 2021 Third International Conference on Intelligent Communication Technologies and Virtual Mobile Networks (ICICV), Tirunelveli, India, 4–6 February 2021. [Google Scholar] [CrossRef]
  11. Esfandiari, N.; Babavalian, M.R.; Moghadam, A.M.E.; Tabar, V.K. Knowledge discovery in medicine: Current issue and future trend. Expert Syst. Appl. 2014, 41, 4434–4463. [Google Scholar] [CrossRef]
  12. Wang, L.; Zheng, W.; Ding, X.; Yu, J.; Jiang, W.; Zhang, S. Identification biomarkers of eutopic endometrium in endometriosis using artificial neural networks and protein fingerprinting. Fertil. Steril. 2010, 93, 2460–2462. [Google Scholar] [CrossRef]
  13. Praiss, A.M.; Huang, Y.; St.Clair, C.M.; Tergas, A.I.; Melamed, A.; Khoury-Collado, F.; Hou, J.Y.; Hu, J.; Hur, C.; Hershman, D.L.; et al. Using machine learning to create prognostic systems for endometrial cancer. Gynecol. Oncol. 2020, 159, 744–750. [Google Scholar] [CrossRef]
  14. Bhardwaj, V.; Sharma, A.; Parambath, S.V.; Gul, I.; Zhang, X.; Lobie, P.E.; Qin, P.; Pandey, V. Machine Learning for Endometrial Cancer Prediction and Prognostication. Front. Oncol. 2022, 12. [Google Scholar] [CrossRef]
  15. Chen, X.; Wang, Y.; Shen, M.; Yang, B.; Zhou, Q.; Yi, Y.; Liu, W.; Zhang, G.; Yang, G.; Zhang, H. Deep learning for the determination of myometrial invasion depth and automatic lesion identification in endometrial cancer MR imaging: A preliminary study in a single institution. Eur. Radiol. 2020, 30, 4985–4994. [Google Scholar] [CrossRef] [PubMed]
  16. Nisenblat, V.; Prentice, L.; Bossuyt, P.M.; Farquhar, C.; Hull, M.L.; Johnson, N. Combination of the non-invasive tests for the diagnosis of endometriosis. Cochrane Database Syst. Rev. 2016, 2016, CD012281. [Google Scholar] [CrossRef] [PubMed]
  17. Anastasiu, C.V.; Moga, M.A.; Elena Neculau, A.; Bălan, A.; Scârneciu, I.; Dragomir, R.M.; Dull, A.M.; Chicea, L.M. Biomarkers for the Noninvasive Diagnosis of Endometriosis: State of the Art and Future Perspectives. Int. J. Mol. Sci. 2020, 21, 1750. [Google Scholar] [CrossRef]
  18. Mukhamediev, R.I.; Popova, Y.; Kuchin, Y.; Zaitseva, E. Review of Artificial Intelligence and Machine Learning Technologies: Classification, Restrictions, Opportunities and Challenges. Mathematics 2022, 10, 2552. [Google Scholar] [CrossRef]
  19. Rychnovská, D. Anticipatory Governance in Biobanking: Security and Risk Management in Digital Health. Sci. Eng. Ethics 2021, 27, 30. [Google Scholar] [CrossRef] [PubMed]
  20. Nuñez, H.; Gonzalez-Abril, L.; Angulo, C. Improving SVM Classification on Imbalanced Datasets by Introducing a New Bias. J. Classif. 2017, 34, 427–443. [Google Scholar] [CrossRef]
  21. Gonzalez-Abril, L.; Angulo, C.; Nuñez, H.; Leal, Y. Handling binary classification problems with a priority class by using Support Vector Machines. Appl. Soft Comput. 2017, 61, 661–669. [Google Scholar] [CrossRef]
  22. Bolyen, E.; Rideout, J.R.; Dillon, M.R.; Bokulich, N.A.; Abnet, C.C.; Al-Ghalith, G.A.; Alexander, H.; Alm, E.J.; Arumugam, M.; Asnicar, F.; et al. Reproducible, interactive, scalable and extensible microbiome data science using QIIME 2. Nat. Biotechnol. 2019, 37, 852–857. [Google Scholar] [CrossRef]
  23. Callahan, B.J.; McMurdie, P.J.; Rosen, M.J.; Han, A.W.; Johnson, A.J.A.; Holmes, S.P. DADA2: High-resolution sample inference from Illumina amplicon data. Nat. Methods 2016, 13, 581–583. [Google Scholar] [CrossRef] [PubMed]
  24. McDonald, D.; Price, M.N.; Goodrich, J.; Nawrocki, E.P.; DeSantis, T.Z.; Probst, A.; Andersen, G.L.; Knight, R.; Hugenholtz, P. An improved Greengenes taxonomy with explicit ranks for ecological and evolutionary analyses of bacteria and archaea. ISME J. 2012, 6, 610–618. [Google Scholar] [CrossRef]
  25. Bokulich, N.A.; Kaehler, B.D.; Rideout, J.R.; Dillon, M.; Bolyen, E.; Knight, R.; Huttley, G.A.; Gregory Caporaso, J. Optimizing taxonomic classification of marker-gene amplicon sequences with QIIME 2’s q2-feature-classifier plugin. Microbiome 2018, 6. [Google Scholar] [CrossRef]
  26. Rognes, T.; Flouri, T.; Nichols, B.; Quince, C.; Mahé, F. VSEARCH: A versatile open source tool for metagenomics. PeerJ 2016, 4, e2584. [Google Scholar] [CrossRef]
  27. Barandela, R.; Sánchez, J.; García, V.; Rangel, E. Strategies for learning in class imbalance problems. Pattern Recognit. 2003, 36, 849–851. [Google Scholar] [CrossRef]
  28. Chen, R.J.; Lu, M.Y.; Chen, T.Y.; Williamson, D.F.K.; Mahmood, F. Synthetic data in machine learning for medicine and healthcare. Nat. Biomed. Eng. 2021, 5, 493–497. [Google Scholar] [CrossRef]
  29. Azizi, Z.; Zheng, C.; Mosquera, L.; Pilote, L.; El Emam, K. Can synthetic data be a proxy for real clinical trial data? A validation study. BMJ Open 2021, 11, e043497. [Google Scholar] [CrossRef] [PubMed]
  30. Esteban Lasso, A.; Martínez Toledo, C.; Perosanz Amarillo, S. Diseño de un Modelo Para Generar Datos Sintéticos en Investigación Médica; Universidad de Alcalá: Alcalá de Henares, Spain, 2023; Volume 12. [Google Scholar]
  31. Reiner Benaim, A.; Almog, R.; Gorelik, Y.; Hochberg, I.; Nassar, L.; Mashiach, T.; Khamaisi, M.; Lurie, Y.; Azzam, Z.S.; Khoury, J.; et al. Analyzing Medical Research Results Based on Synthetic Data and Their Relation to Real Data Results: Systematic Comparison From Five Observational Studies. JMIR Med. Inform. 2020, 8, e16492. [Google Scholar] [CrossRef]
  32. Chawla, N. Data Mining and Knowledge Discovery Handbook. In Data Mining and Knowledge Discovery Handbook; Chapter Data Mining for Imbalanced Datasets: An Overview; Springer: New York, NY, USA, 2010; pp. 875–886. [Google Scholar] [CrossRef]
  33. Murtaza, H.; Ahmed, M.; Khan, N.F.; Murtaza, G.; Zafar, S.; Bano, A. Synthetic data generation: State of the art in health care domain. Comput. Sci. Rev. 2023, 48, 100546. [Google Scholar] [CrossRef]
  34. Spaczynski, R.Z.; Duleba, A.J. Diagnosis of Endometriosis. Semin. Reprod. Med. 2003, 21, 193–208. [Google Scholar] [CrossRef]
  35. Hsu, A.L.; Khachikyan, I.; Stratton, P. Invasive and non-invasive methods for the diagnosis of endometriosis. Clin. Obstet. Gynecol. 2010, 53, 413–419. [Google Scholar] [CrossRef] [PubMed]
  36. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  37. Ramezan, C.A.; Warner, T.A.; Maxwell, A.E. Evaluation of Sampling and Cross-Validation Tuning Strategies for Regional-Scale Machine Learning Classification. Remote Sens. 2019, 11, 185. [Google Scholar] [CrossRef]
  38. Santos, M.S.; Soares, J.P.; Abreu, P.H.; Araujo, H.; Santos, J. Cross-Validation for Imbalanced Datasets: Avoiding Overoptimistic and Overfitting Approaches [Research Frontier]. IEEE Comput. Intell. Mag. 2018, 13, 59–76. [Google Scholar] [CrossRef]
  39. Wong, T.T.; Yeh, P.Y. Reliable Accuracy Estimates from k-Fold Cross Validation. IEEE Trans. Knowl. Data Eng. 2020, 32, 1586–1594. [Google Scholar] [CrossRef]
  40. Simon, R. Supervised Analysis When the Number of Candidate Features (p) Greatly Exceeds the Number of Cases (n). SIGKDD Explor. Newsl. 2003, 5, 31–36. [Google Scholar] [CrossRef]
  41. Cawley, G.; Talbot, N. On Over-fitting in Model Selection and Subsequent Selection Bias in Performance Evaluation. J. Mach. Learn. Res. 2010, 11, 2079–2107. [Google Scholar]
  42. Gonzalez-Abril, L.; Nuñez, H.; Angulo, C.; Velasco, F. GSVM: An SVM for handling imbalanced accuracy between classes inbi-classification problems. Appl. Soft Comput. 2014, 17, 23–31. [Google Scholar] [CrossRef]
  43. Peng, C.; Lee, K.; Ingersoll, G. An Introduction to Logistic Regression Analysis and Reporting. J. Educ. Res. 2002, 96, 3–14. [Google Scholar] [CrossRef]
  44. Quinlan, J. Induction of Decision Trees. Mach. Learn. 1986, 1, 81–106. [Google Scholar] [CrossRef]
  45. Gonzalez-Abril, L.; Angulo, C.; Velasco, F.; Català, A. Dual unification of bi-class support vector machine formulations. Pattern Recognit. 2006, 39, 1325–1332. [Google Scholar] [CrossRef]
  46. Syarif, I.; Prugel-Bennett, A.; Wills, G. SVM Parameter Optimization using Grid Search and Genetic Algorithm to Improve Classification Performance. TELKOMNIKA (Telecommun. Comput. Electron. Control) 2016, 14, 1502. [Google Scholar] [CrossRef]
  47. Falomir, Z.; Museros, L.; Sanz, I.; Gonzalez-Abril, L. Categorizing paintings in art styles based on qualitative color descriptors, quantitative global features and machine learning (QArt-Learn). Expert Syst. Appl. 2018, 97, 83–94. [Google Scholar] [CrossRef]
Figure 1. Process schema.
Figure 1. Process schema.
Algorithms 17 00108 g001
Figure 2. Biome distribution in oral region per patient.
Figure 2. Biome distribution in oral region per patient.
Algorithms 17 00108 g002
Figure 3. Biome distribution in fecal region per patient.
Figure 3. Biome distribution in fecal region per patient.
Algorithms 17 00108 g003
Figure 4. Biome distribution in EF region per patient.
Figure 4. Biome distribution in EF region per patient.
Algorithms 17 00108 g004
Figure 5. Biome distribution in EB region per patient.
Figure 5. Biome distribution in EB region per patient.
Algorithms 17 00108 g005
Figure 6. Biome distribution in vaginal region per patient.
Figure 6. Biome distribution in vaginal region per patient.
Algorithms 17 00108 g006
Table 1. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the oral region for EM patients.
Table 1. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the oral region for EM patients.
Bacteria Name X ¯ (%)
Firmicutes Streptococcus49.14%
Proteobacteria Neisseria13.14%
Proteobacteria Haemophilus4.58%
Actinobacteria Actinomyces3.63%
Firmicutes Veillonella3.51%
Table 2. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the oral region for non-EM patients.
Table 2. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the oral region for non-EM patients.
Bacteria Name X ¯ (%)
Firmicutes Streptococcusm45.36%
Proteobacteria Haemophilusm22.53%
Fusobacteria Fusobacteriumm3.28%
Proteobacteria Pasteurellaceae3.06%
Proteobacteria Neisseriam2.69%
Table 3. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the fecal region for EM patients.
Table 3. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the fecal region for EM patients.
Bacteria Name X ¯ (%)
Firmicutes Lachnospiraceae35.52%
Proteobacteria Enterobacteriaceae21.14%
Firmicutes Streptococcus13.89%
Firmicutes Ruminococcaceae6.23%
Firmicutes Ruminococcus3.98%
Firmicutes Blautia3.59%
Firmicutes Faecalibacterium3.27%
Table 4. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the fecal region for non-EM patients.
Table 4. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the fecal region for non-EM patients.
Bacteria Name X ¯ (%)
Firmicutes Lachnospiraceae24.78%
Firmicutes Ruminococcus17.33%
Firmicutes Faecalibacterium8.47%
Proteobacteria Enterobacteriaceae8.46%
Firmicutes Ruminococcaceae7.27%
Firmicutes Blautia6.57%
Firmicutes Bacillus3.91%
Firmicutes Streptococcus3.47%
Firmicutes Erysipelotrichaceae3.34%
Firmicutes Enterococcus3.17%
Table 5. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the EF region for EM patients.
Table 5. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the EF region for EM patients.
Bacteria Name X ¯ (%)
Firmicutes Lactobacillus67.61%
Actinobacteria Gardnerella10.83%
Proteobacteria Rhizobiaceae3.05%
Firmicutes Lachnospiraceae2.43%
Firmicutes Megasphaera1.83%
Table 6. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the EF region for non-EM patients.
Table 6. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the EF region for non-EM patients.
Bacteria Name X ¯ (%)
Firmicutes Lactobacillus61.20%
Actinobacteria Gardnerella14.89%
Proteobacteria Enterobacteriaceae6.78%
Proteobacteria Rhizobiaceae2.22%
Proteobacteria Vibrio1.62%
Table 7. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the EB region for EM patients.
Table 7. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the EB region for EM patients.
Bacteria Name X ¯ (%)
Firmicutes Lactobacillus82.63%
Proteobacteria Rhizobiaceae3.41%
Actinobacteria Gardnerella2.62%
Firmicutes Mogibacteriaceae2.44%
Firmicutes Lachnospiraceae1.94%
Table 8. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the EB region for non-EM patients.
Table 8. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the EB region for non-EM patients.
Bacteria Name X ¯ (%)
Firmicutes Lactobacillus49.62%
Firmicutes Lachnospiraceae8.65%
Proteobacteria Enterobacteriaceae5.49%
Proteobacteria Rhizobiaceae3.51%
Firmicutes Streptococcus3.05%
Bacteroidetes Bacteroides2.89%
Actinobacteria Gardnerella2.79%
Table 9. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the vaginal region for EM patients.
Table 9. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the vaginal region for EM patients.
Bacteria Name X ¯ (%)
Firmicutes Lactobacillus82.63%
Firmicutes Lactobacilluss82.93%
Actinobacteria Gardnerellas7.43%
Firmicutes Mogibacteriaceae2.38%
Bacteroidetes Prevotella1.94%
Table 10. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the vaginal region for non-EM patients.
Table 10. The most frequent bacteria based on the global mean ( X ¯ ) of the relative abundance in the vaginal region for non-EM patients.
Bacteria Name X ¯ (%)
Firmicutes Lactobacilluss70.54%
Actinobacteria Gardnerellas9.92%
Proteobacteria Enterobacteriaceaes7.35%
Firmicutes Enterococcuss2.93%
Firmicutes Lactobacillaceae1.68%
Table 11. Total of microbiome columns per region.
Table 11. Total of microbiome columns per region.
RegionNumber of ColumnsNumber of Discarded Columns
EB256 (58.45%)182 (41.55%)
EF230 (52.52%)208 (47.48%)
Vaginal230 (58.45%)208 (47.48%)
Oral144 (32.88%)294 (67.12%)
Fecal124 (28.31%)314 (71.69%)
Table 12. Confusion matrix.
Table 12. Confusion matrix.
Actual Classification
PositiveNegative
Predicted
classification
PositiveTrue positive (TP)False positive (FP)
NegativeFalse negative (FN)True negative (TN)
Table 13. Patients per region.
Table 13. Patients per region.
RegionNumber of PatientsPatients with EM
EB217 (33.33%)
EF217 (33.33%)
Vaginal217 (33.33%)
Oral123 (25.00%)
Fecal134 (30.76%)
Table 14. Patients per sample type.
Table 14. Patients per sample type.
RegionNumber of PatientsPatients with EM
GIT (oral + fecal)083 (37.50%)
FRT (EB + EF + vaginal)217 (33.33%)
FRT2 (EB + vaginal)217 (33.33%)
Table 15. The parameters for the logistic regression classification model.
Table 15. The parameters for the logistic regression classification model.
NameValueDescription
ClassifierLogisticRegressionPython classifier from sklearn.linear_model
solverliblinearAlgorithm to use in optimization problem
max_iter1,000,000Maximum number of iterations
C1.0Inverse of regularization strength
n_repeats100Number of repetitions in RepeatedKFold
Table 16. Global mean ( X ¯ ) and global standard deviation ( σ ) for scores for logistic regression classification.
Table 16. Global mean ( X ¯ ) and global standard deviation ( σ ) for scores for logistic regression classification.
Metric StatisticEBEFVaginalOralFecalFRTFRT2
#536469625179335610608
Accuracy{ X ¯ ( % ) 38.4337.6729.9780.0759.3839.7846.38
σ 0.250.260.250.290.250.250.26
Precision{ X ¯ ( % ) 23.5422.2820.2771.9740.7230.1635.8
σ 0.330.320.260.40.330.30.32
Recall{ X ¯ ( % ) 36.2933.4838.881.0169.2554.7561.84
σ 0.460.450.470.390.460.480.47
F1{#215175267145232360398
X ¯ (%)26.4625.0425.3174.7749.7236.5442.87
σ 0.340.340.30.390.360.320.34
# denotes the number of classifiers used in the calculation of the statistics.
Table 17. The parameters for the decision tree regression classification model.
Table 17. The parameters for the decision tree regression classification model.
NameValueDescription
ClassifierDecisionTreeClassifierThe Python classifier from sklearn.tree.
max_featuressqrtThe number of features to consider when looking for the best split: this parameter affected the performance and complexity of the decision tree.
n_repeats100The number of repetitions in RepeatedKFold.
Table 18. Global mean ( X ¯ ) and global standard deviation ( σ ) for scores for decision tree classification.
Table 18. Global mean ( X ¯ ) and global standard deviation ( σ ) for scores for decision tree classification.
Metric StatisticEBEFVaginalOralFecalFRTFRT2
#456510452178270534547
Accuracy{ X ¯ ( % ) 40.8629.6138.273.658.7351.5646.86
σ 0.290.250.250.260.310.280.28
Precision{ X ¯ ( % ) 27.8913.0121.261.4239.8539.6133.24
σ 0.360.280.320.380.410.340.36
Recall{ X ¯ ( % ) 41.6720.6932.380.3454.8163.3950.18
σ 0.480.40.450.40.50.460.48
F1{#205112160143148356294
X ¯ (%)31.0614.9323.8167.644.5246.4937.68
σ 0.360.30.330.370.430.360.37
# denotes the number of classifiers used in the calculation of the statistics.
Table 19. The parameters for the support vector classification model (linear kernel).
Table 19. The parameters for the support vector classification model (linear kernel).
NameValueDescription
ClassifierSVCPython classifier from sklearn.svm
kernellinearKernel type to be used
C1.0Regularization parameter
n_repeats100Number of repetitions in RepeatedKFold
Table 20. Global mean ( X ¯ ) and global standard deviation ( σ ) for scores for SVC classification with linear kernel and C = 1.
Table 20. Global mean ( X ¯ ) and global standard deviation ( σ ) for scores for SVC classification with linear kernel and C = 1.
Metric StatisticEBEFVaginalOralFecalFRTFRT2
#476491667154278572642
Accuracy{ X ¯ ( % ) 38.3135.1725.6979.4469.947.0344.29
σ 0.250.250.240.290.240.270.26
Precision{ X ¯ ( % ) 21.4620.0318.0470.7853.9935.8133.52
σ 0.310.310.240.410.340.330.30
Recall{ X ¯ ( % ) 34.7730.8636.2179.8781.6559.9760.44
σ 0.460.440.460.40.390.470.47
F1{#181169264123227363412
X ¯ (%)25.1822.5222.8873.5962.9142.3740.93
σ 0.340.320.290.390.340.350.33
# denotes the number of classifiers used in the calculation of the statistics.
Table 21. The parameters for the support vector classification model (rbf kernel and C = 100).
Table 21. The parameters for the support vector classification model (rbf kernel and C = 100).
NameValueDescription
ClassifierSVCPython classifier from sklearn.svm
kernelrbfKernel type to be used
gammascaleKernel coefficient
C100Regularization parameter
Table 22. Global mean ( X ¯ ) and global standard deviation ( σ ) for scores for SVC classification with rbf kernel, and C = 100.
Table 22. Global mean ( X ¯ ) and global standard deviation ( σ ) for scores for SVC classification with rbf kernel, and C = 100.
Metric StatisticEBEFVaginalOralFecalFRTFRT2
#623349574124261575613
Accuracy{ X ¯ ( % ) 67.5825.0254.5976.3466.0362.7263.4
σ 0.270.140.280.320.260.270.26
Precision{ X ¯ ( % ) 60.541.7244.3768.8247.1954.8455.85
σ 0.340.070.370.40.390.360.32
Recall{ X ¯ ( % ) 84.275.1664.5580.6568.276.1785.24
σ 0.340.220.450.40.470.40.33
F1{#54718397100178466540
X ¯ (%)67.052.5849.5672.4553.9660.2364.13
σ 0.310.110.360.390.40.330.29
# denotes the number of classifiers used in the calculation of the statistics.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Caballero, P.; Gonzalez-Abril, L.; Ortega, J.A.; Simon-Soro, Á. Data Mining Techniques for Endometriosis Detection in a Data-Scarce Medical Dataset. Algorithms 2024, 17, 108. https://doi.org/10.3390/a17030108

AMA Style

Caballero P, Gonzalez-Abril L, Ortega JA, Simon-Soro Á. Data Mining Techniques for Endometriosis Detection in a Data-Scarce Medical Dataset. Algorithms. 2024; 17(3):108. https://doi.org/10.3390/a17030108

Chicago/Turabian Style

Caballero, Pablo, Luis Gonzalez-Abril, Juan A. Ortega, and Áurea Simon-Soro. 2024. "Data Mining Techniques for Endometriosis Detection in a Data-Scarce Medical Dataset" Algorithms 17, no. 3: 108. https://doi.org/10.3390/a17030108

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop