Next Article in Journal
Establishing Neuron-Specific Enolase Reference Intervals: A Comparative Analysis of Partitioned Approach- and Gender-Based Continuous Age- and Season-Related Models
Previous Article in Journal
Evaluation of the Microscanner C3 for Automated Cell Counting in Cerebrospinal Fluid Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

SMOTE-Based Automated PCOS Prediction Using Lightweight Deep Learning Models

by
Rumman Ahmad
1,
Lamees A. Maghrabi
2,
Ishfaq Ahmad Khaja
1,
Louai A. Maghrabi
3 and
Musheer Ahmad
1,*
1
Department of Computer Engineering, Jamia Millia Islamia, New Delhi 110025, India
2
Department of Endocrinology and Metabolism, Internal Medicine, Dr. Soliman Fakeeh Hospital, Jeddah 23323, Saudi Arabia
3
Department of Software Engineering, College of Engineering, University of Business and Technology, Jeddah 23411, Saudi Arabia
*
Author to whom correspondence should be addressed.
Diagnostics 2024, 14(19), 2225; https://doi.org/10.3390/diagnostics14192225 (registering DOI)
Submission received: 7 August 2024 / Revised: 29 September 2024 / Accepted: 2 October 2024 / Published: 5 October 2024
(This article belongs to the Section Machine Learning and Artificial Intelligence in Diagnostics)

Abstract

:
Background: The reproductive age of women is particularly vulnerable to the effects of polycystic ovarian syndrome (PCOS). High levels of testosterone and other male hormones are frequent contributors to PCOS. It is believed that miscarriages and ovulation problems are majorly caused by PCOS. A recent study found that 31.3% of Asian women have been afflicted with PCOS. Healing women with life-threatening disorders associated with PCOS requires more research. In prior research, methods have involved autonomously classified PCOS using a number of different machine learning techniques. ML-based approaches involve hand-crafted feature extraction and suffer from low performance issues, which cannot be ignored for the accurate prediction and identification of PCOS. Objective: Hence, predicting PCOS using cutting-edge deep learning methods for automated feature engineering with better performance is the prime focus of this study. Methods: The proposed method suggests three lightweight (LSTM-based, CNN-based, and CNN-LSTM-based) deep learning models, incorporating SMOTE for dataset balancing to obtain a valid performance. Results: The proposed three models tend to offer an accuracy of 92.04%, 96.59%, and 94.31%, an ROC-AUC of 92.0%, 96.6%, and 94.3%, the number of parameters of 6689, 297, and 13285, and a training time of 67.27 s, 10.02 s, and 18.51 s, respectively. In addition, the DeLong test is also performed to compare AUCs to assess the statistical significance of all three models. Among all three models, the SMOTE + CNN models performs better in terms of accuracy, precision, recall, AUC, number of parameters, training time, DeLong’s p-value over the other. Conclusions: Moreover, a performance comparison is also carried out with other state-of-the-art PCOS detection studies and methods, which validates the better performance of the proposed model. Thus, the proposed model provides the greatest performance, which can lead to a reduction in the number of failed pregnancies and help in finding PCOS in the early stages.

1. Introduction

For AI applications on resource-constrained devices like mobile phones, where processing power and memory capacity are limited, the model needs to be lightweight. A study by Azamossadat Hosseini [1] developed a mobile application utilizing lightweight CNN models, including EfficientNetB0, MobileNetV2, and NASNet Mobile, to distinguish B-ALL (B-cell acute lymphoblastic leukemia) from healthy cells. By tailoring the architecture for mobile environments, the study achieved 100% sensitivity and specificity, showcasing the effectiveness of lightweight models for real-time, accessible medical diagnosis while reducing the reliance on expensive, invasive procedures. Polycystic ovary syndrome (PCOS), also acknowledged as hyperandrogenic syndrome, is a hormonal disruption affecting a significant proportion of women who are in the period of reproduction. In addition to causing irregular or delayed menstrual periods, PCOS is related to an increased amount of male hormones. The causes of polycystic ovary syndrome (PCOS) have not been identified. However, early detection and treatment, as well as a reduction in body weight, may lessen the likelihood of developing long-term issues. According to [2], around 10% of all females in the age range when they can have children are affected by this condition.
An imbalance of sex hormones is the root cause of PCOS. Cysts form in the ovary of females when there is an increase in the number of androgens. These tumors grow over time, eventually becoming large enough to hamper the ovulation process. A woman with PCOS, because of the disturbance of fertilization it causes, has a reduced probability of becoming pregnant [3]. A sleep disorder, irritable and angry behavior, acne, oily skin, weight gain, headaches, and male-like hair growth on the back, stomach, face and chest are also common symptoms of PCOS [4]. Even though PCOS is commonly thought of as a lifestyle disorder, the specific causes for its emergence are not yet fully understood. The repercussions of PCOS may be minimized with appropriate physical activity, a nutritious diet, and the maintenance of body weight. But it is difficult to entirely solve this disease. The majority of women do not discover that they have PCOS until they take a test to determine whether or not they are pregnant [5]. While cysts can be identified using ultrasounds, and androgen concentration can be evaluated using medical tests, there is no accurate and relevant test to identify PCOS [6,7]. An early diagnosis of PCOS symptoms assists in making essential healthy decisions. Women with such a disorder have a high risk of miscarriage. Also, gynecological carcinoma occurs in women with PCOS due to infertility [8]. Hence, it is vital to detect PCOS at an early stage to reduce miscarriages. A recent study found that PCOS is detected in 31.3% of women in Asia, 4.8% of women of White American heritage, 8% of women of Black American ancestry, 6.8% of women in Spain, and 4.8% of women in America [9]. Regular exercise for women lowers the concentration of androgen and biochemical hyperandrogenism [10,11,12,13,14]. Research indicates that with an upsurge in age, PCOS symptoms become less severe and menopause occurs [15,16,17].
Mobile apps have become vital for human progress, including pandemic control. This study reviews how mobile applications were used to diagnose COVID-19 during the pandemic. Out of 535 studies, 42 were selected, focusing on AI-based diagnosis, contact tracing, data collection, and visualization. AI techniques, specifically deep learning models like convolutional neural networks, proved effective in identifying COVID-19 cases using symptoms, cough sounds, and radiological images. The study highlights the potential of mobile apps, integrated with technologies like IOT and cloud computing, to enhance rapid diagnosis and improve disease management in future pandemics [18].
Traditionally, doctors rely on ultrasound imaging to identify affected ovaries, but distinguishing between benign, PCOS-related, or cancerous cysts can be challenging. This study utilizes a deep learning model for classifying PCOS from ultrasound images. A trained dataset is used for feature extraction and accuracy measurement. The paper also discusses methods for reducing noise, segmenting regions of interest, and improving cyst detection accuracy to support early diagnosis and treatment [19]. In the approaching years, disease diagnosis and treatment are likely to be significantly impacted by AI and its subfields, which are steadily becoming popular in daily life [20]. This work uses AI to diagnose PCOS in an unexplored domain. Traditional diagnosis is complicated and time-consuming due to the complexity of all the factors in a woman’s life that might lead to PCOS and the trouble in evaluating sonographic cyst visualization. Hence, PCOS diagnosis may very well be improved by our proposed computational technique, which will also benefit millions of women. A list of abbreviations used in this paper is presented in Table 1.
The remaining portion of our research study is as follows: An associated review of the literature on PCOS is included in Section 2 of this paper. In Section 3, the preliminary details of the CNN, LSTM, and SMOTE are presented. The proposed methodology is discussed in Section 4. A performance evaluation of the proposed models designed in this paper for PCOS is conducted in Section 5. Lastly, we conclude our study in Section 6.

2. Related Works

This section discusses an analysis of the relevant prior research studies and frequently utilized cutting-edge research on PCOS prediction. These papers were chosen because of their relevance to the topic at hand.
PCOS disorder is among the most prevalent health issues diagnosed in younger women with a variety of medical symptoms [21]. The early identification of PCOS is very much needed to avoid long-term issues. To accomplish this objective, experts used a wide variety of machine learning strategies [22,23]. The random forest method provided an accuracy score of 96% in PCOS diagnosis as suggested in [24]. Based on the optimized chi-squared method, a unique machine learning-based strategy, CS-PCOS, was proposed to select the most prominent feature from thale dataset for the detection of PCOS in [25]. Reference [26] presented an online application that allows women to quickly and simply assess their risk of developing the disorder from the convenience of their residences while they wait for assistance to become available. The authors in [27] tried a variety of machine learning algorithms, out of which the KNN classifier achieved the best results. Along with machine learning-based methods investigated in [28,29,30], the authors utilized feature selection techniques to lessen the subset of features and focus on the most relevant ones. Different algorithms such as random forest, multi-layer perceptron, naïve Bayes, etc., provide great and effective results for these refined features. Using microarray and RNA-seq datasets, a new diagnostic framework was developed in [31] for PCOS by employing random forest and artificial neural network techniques, which exhibited a superior generalization ability in microarray data. Similarly, a method was also presented in [32], which used the feature selection technique along with random forest as a predictive model.
A study was conducted using Raman spectroscopy in [33] by collecting profiles of blood serum from women with PCOS as well as women without it. The blood profiles that were obtained revealed clear differences in brightness that were taken from people with PCOS in a comparison with a person without the condition. According to the observations, the ratio of lipids to proteins has the potential to function as a useful PCOS indicator that may be identified using Raman spectroscopy. Apart from machine learning-based methods, researchers are also utilizing deep learning strategies by making use of CNNs to extract relevant features from ultrasound image datasets. Reference [34] also proposed a deep learning model for the prediction of PCOS using ultrasound images. The authors of [35] developed a count-based ovarian detection model named “SCBOD”. This model is divided into four stages, with the cleaning of the ultrasound visual data serving as the first stage. In the second stage, the segmentation technique is used for object detection and selection. In the third stage, based on the architectural and analytical properties of the object, SCBOD performs accurate recognition by utilizing a variety of metrics such as dimension, weight, average, variance, etc. In the end, an SVM is used for classification to conclude either PCOS or non-PCOS. Moreover, the authors in [36] used multi-level thresholding to extract geometrical features from ultrasound images. Then, the extracted features are passed to a supervised learning algorithm to classify an image as PCOS or non-PCOS. Recently, a multi-stack machine learning model along with explainable artificial intelligence [37] techniques such as QLattices, ELI5, LIME, etc., has been utilized for the recognition of PCOS. In [38], an ensemble-based framework using five traditional machine learning models for training and testing while obtaining the most dominant features, involving several approaches such as PCA and Chi-Square, was employed to obtain the most accurate prediction from a dataset. The method in [39] also introduced machine learning-based techniques, but the prediction of PCOS was conducted with the help of tongue and pulse readings. Conversely, the authors of another study identified PCOS with a variety of symptoms such as hypertension, diabetes, and other cardiovascular diseases using machine learning [40]. In this study, researchers combined two existing public datasets to generate a new dataset. The disease has been identified for the eight features chosen, using both supervised and unsupervised methods, after feature selection.
It is a matter of fact that convolutional neural networks (CNNs) perform better on visual data [41,42,43]. Therefore, the IAKmeans-RSA approach investigated in [44] has been proposed for use in the segmentation of cysts based on visual inputs and the identification of follicles. A CNN was used for acquiring all of the relevant aspects from the pictures that were segmented. In the final step, the categorization is carried out via an approach known as a deep neural network (DNN). In addition to extensive research based on textual data like pulse readings, a great deal of work has been conducted based on visual examples. Ultrasound pictures have been used in [45] to make predictions on PCOS using hybrid deep learning-based models. An ensemble deep learning-based model has been applied on ultrasound images for PCOS prediction. This work introduced a hybrid CNN that utilized pre-trained ResNet-50 and VGG-16 parameters to estimate the likelihood of PCOS. Both the pretrained VGG-16 and ResNet-50 architectures developed by receiving an input that comprised an MRI picture. After that, an outcome of the last max pooling layer in the VGG-16 model was transmitted to a fully connected (FC) layer that was equipped with an ReLu activation function. Simultaneously, the result of the final average pooling layer of ResNet-50 is fed into the FC layer that was equipped with an ReLu. A summary of some of the selected state-of-the-art related works is presented in Table 2.

2.1. Motivation

As the literature reveals, the bulk of the research effort in this subject is carried out using machine learning techniques. Gaining the motivation from this literature review, we have proposed automated PCOS prediction models that are based on SMOTE for dataset balancing, a 1D CNN and LSTM. In our research, PCOS clinical data available via the Kaggle repository are used. The detection and prediction of PCOS are the primary concerns of our study. It is crucial to acknowledge that PCOS can change lives and may lead people to suffer for a very long time. It is essential to identify it more accurately and precisely and we need better solutions for a better and early diagnosis. The usage of machine learning algorithms is the main focus of the majority of existing research related to PCOS. It is worth noting that handcrafted feature engineering makes it difficult for machine learning algorithms to produce reliable categorization with high precision and accuracy. Therefore, there is need to have an efficient model that can deliver automatic feature extraction, is lightweight, and offers great precision in comparison to the most cutting-edge approaches to tackling PCOS problems. This study uses lightweight models for feature extraction, which is considered the toughest step in any machine learning algorithm; that is why more focus is given to this step only. The other challenges include (i) the imbalanced nature of the dataset and (ii) not properly scaled and normalized data.
The objective of this work is to use a lightweight deep learning model and compare these models to find out and select the best one among them. Other strong models like BERTs, XlNet, etc., require heavy processing, which is not feasible for such a small dataset.

2.2. Our Contributions

Here, a novel and lightweight deep learning model is suggested for automated PCOS prediction after reviewing the related research studies that exist in the literature. In comparison to almost all other machine learning-based PCOS detection and detection solutions available so far, the proposed model outperforms them in terms of performance, is simple, and has a small number of trainable parameters. The main contributions of this work are as follows:
  • Multiple approaches are used to preprocess a highly unbalanced dataset in order to make it suitable for high-performance deep learning models.
  • Instead of manually built methodologies, automatic feature extraction models based on LSTM and a customized 1D CNN are proposed.
  • To enhance PCOS prediction accuracy, three separate and simple yet effective deep learning models are built, applied, and analyzed.
  • To highlight the superiority of the proposed DL model, several existing PCOS detection methods are contrasted with this rendition.

3. Materials and Methods

In this section, the various materials and tools used to cultivate the proposed PCOS prediction models are described. In the proposed models, the CNN, LSTM, and SMOTE are predominantly engaged.

3.1. Convolutional Neural Networks

A one-dimensional CNN is a type of deep learning model that is used for processing sequences of data, such as time-series data or sequences of words in natural language processing. Unlike traditional 2D CNNs that are designed for image processing, 1D CNNs are designed to operate on sequences of data and have a convolutional operation that is performed along the time dimension. A 1D CNN consists of multiple layers, including an input layer, hidden layers with 1D convolutional and pooling operations, and an output layer. The convolutional operation computes the dot product between a filter and input sequence segment by sliding it along the time axis. This procedure extracts the local correlations in the input sequence, which helps the CNN to learn data patterns. Conversely, pooling reduces the input sequence resolution, compacting the representation and hence decreasing the computing cost incurred. Moreover, 1D convolutional neural networks are widely utilized to process audio, speech, natural language, and time-series forecasting for different areas of applications. Their architecture enables the developer to adjust the layer count, filter size, activation functions, etc.

3.2. LSTM

LSTM is a lightweight deep learning network, which has a sort of recurrent neural network (RNN) architecture. LSTMs are considered ideal for sequence-based data and long-term storage. Instead of losing information as input sequences lengthen, LSTMs possess memory cells that can hold information for a long duration and prevent the problem of a vanishing gradient. LSTMs have been widely incorporated for speech recognition, language translation, and sentiment analysis, etc. They are also very helpful in handling time series data and have the ability to capture sequence dependencies very well.

3.3. SMOTE

SMOTE is a powerful machine learning method intended for imbalanced datasets [43]. SMOTE stands for Synthetic Minority Over-Sampling Technique. SMOTE can be understood as an advanced version of over-sampling or data augmentation. It generates synthetic data points along with the original data points. The major advantage of SMOTE is that the synthetic data points generated are not duplicate values of the original ones but are slightly different from the actual data points. This helps to balance class distribution, which can eventually lead to an improved performance of the model especially for those datasets that suffer from imbalance. The dataset considered for our research has a slight imbalance, with less data in the infected class than in the not-infected class. Hence, SMOTE proves to be highly beneficial. SMOTE is advantageous in preventing over-fitting as well alleviating the issue where ML models may find it difficult to learn patterns due to the scarcity of data in a particular class. The SMOTE algorithm randomly selects a sample from the minority class. Secondly, k-nearest neighbors are found for every observation in the minority class data. A vector is identified between the actual data point and the neighbor. The next step is to multiply the vector with a random value between 1 and 0. Finally, to generate a synthetic data point, the value after multiplying the vector to a random value between 0 and 1 is added to the current data point.

3.4. DeLong Test

The DeLong test is a statistical method for comparing the performance of two correlated ROC (receiver operating characteristic) curves. It assesses whether the difference between the areas under the curve (AUCs) for the two models is statistically significant. The AUC is a measure of how well a classification model performs, with larger values indicating stronger performance. The DeLong test provides a p-value, which helps determine if the AUC difference is meaningful. If the p-value is below a certain threshold (like 0.05), it suggests a significant difference between the models. A higher p-value implies that the difference may be due to random variation.

4. Proposed Methodology

The suggested method for PCOS prediction will be explained in this section. A brief summary of the dataset is presented in this section, which is followed by a detailed description of the suggested deep learning-based models.

4.1. Dataset Description

The collection of polycystic ovary syndrome (PCOS) diagnosis data used in this paper is provided by Kottarathil and is available via the Kaggle repository [50]. The dataset contains diagnostic and thorough information on 541 individuals. The work mainly focuses on screening and diagnosing, and it includes a file that contains physical and clinical factors related to PCOS. The data contain 45 factors, out of which two of them have been recognized as unique identifier values and one factor contains NULL values; thus, they have been removed. The target variable “PCOS” is binary as positive cases are represented by 1 and negative cases are represented by 0. An inconsistent record for a patient and other non-numerical information were removed from the dataset during cleaning, leaving a final count of 540 samples. We use SMOTE to resample our data for maintaining a balanced distribution of losses in the testing and training dataset. The dataset is split in such a way that 80% of the data are used for training and 20% used for testing.

4.2. Preprocessing

In order to improve the quality and relevance of the data, a correlation analysis is achieved on the PCOS diagnosis dataset. This analysis aims to find columns with poor relationships with other variables of the dataset. Accordingly, a correlation analysis is executed using the Pearson correlation coefficient among different variables of the dataset. The heatmap, showing the underlying correlations, is shown in Figure 1. Columns having a correlation value below 0.1 were eliminated since they had little effect on the data. Hence, all columns with a correlation equal to or higher than 0.1 and up to 1.0 are taken into consideration. After removing such columns, the dataset was found to have 35 columns. This is a widely used procedure in feature selection. Notably, removing features with a low association with the target variable or other attributes streamlines the dataset for accurate modeling. The correlation value of 0.1 is conservatively selected to exclude only features with a weak association. This reduces the dataset and may make PCOS diagnosis without infertility more predictive. An example correlation analysis with a threshold of 0.25 is depicted through the heatmap shown in Figure 2.
Data preprocessing also involves detecting and deleting percentile outliers so as to better the modeling accuracy and stability. A boxplot is used to reduce outliers in the “beta-HCG (mIU/mL)” feature. Identifying and managing outliers can improve statistical analysis and modeling accuracy. The boxplot approach depicts the median, quartiles, and outliers as points outside the quartiles. Outliers are observations with “beta-HCG (mIU/mL)” values below the 0.85 percentile. These data are dropped to decrease the impact of extreme scores on the analysis. As a result, the dataset has 458 rows instead of 541 after removing such outliers.
To resolve the class imbalance in the PCOS dataset, the Synthetic Minority Over-Sampling Technique (SMOTE) is adopted for the purpose. To maintain uniform class distribution, SMOTE creates synthetic samples of the class with a low number of samples (class 1). Our dataset contains 314 samples of class 0 and 144 of class 1. In general, the learning models may be biased toward the class with a higher number of samples and perform poorly on the other class due to the imbalance. SMOTE synthesizes class 1 samples by interpolating their feature values with a randomly selected same-class sample. Artificial samples are introduced into the dataset to boost the minority class samples. Eventually, SMOTE balances class 0 and class 1 with 314 samples each. The 628-row dataset has a better and uniform class distribution, which helps the learning models to perform in an unbiased manner.
Machine learning models are very sensitive to the input variable scale, which can affect their performance. Therefore, data normalization is carried out using the standard scaling method. Standard scaling assigns a variable a zero mean value and 1 as the standard deviation. To do this, it removes each feature’s mean from its values and divides it by its standard deviation. To avoid affecting analysis or modeling, it ensures that each feature has a similar scale. Each feature is changed to have a mean of zero and a standard deviation of one after standard scaling to ensure fair treatment in the analysis and modeling. This preprocessing step is considered to have better resilience and accuracy.
Next, the PCOS dataset is split 80:20 across training and testing sets. Most learning models divide data into training and testing sets to evaluate model performance on unknown data. The data were divided into a training set comprising 270 instances of class 0 and 100 instances of class 1 and a test set with an equal distribution of 44 instances for each class.
This balanced split ensured a proportional representation of the classes for both model training and evaluation purposes. To resolve the class imbalance in the PCOS training dataset, the Synthetic Minority Over-sampling Technique (SMOTE) is adopted for this purpose. To maintain a uniform class distribution, SMOTE creates synthetic samples of the class with a low number of samples (class 1). Our train dataset contains 270 samples of class 0 and 100 of class 1. In general, the learning models may be biased toward the class with a higher number of samples and perform poorly on the other class due to the imbalance. SMOTE synthesizes class 1 samples by interpolating their feature values with a randomly selected same-class sample. Artificial samples are introduced into the dataset to boost the minority class samples. Eventually, SMOTE balances class 0 and class 1 with 270 samples each. The 540-row dataset has a better and uniform class distribution, which helps the learning models to perform in an unbiased manner. Next, transforming the training set and label prepared the PCOS diagnosis dataset for the learning model. The shape of the input features of train and test datasets is indeed transformed to (540, 35, 1) and (88, 35, 1), respectively. This three-dimensional structure reflects the incorporation of an additional dimension, specifically introduced to accommodate the sequential or time-series nature of the data. Each data instance is now represented as a 2D matrix, where rows correspond to different time steps, columns represent distinct features, and the third dimension signifies the presence of a single channel. This reshaped format aligns with the input requirements of certain machine learning models, particularly those designed to handle sequential data, such as recurrent neural networks (RNNs) or convolutional neural networks (CNNs) for time-series analysis. The resulting shape (540, 35, 1) and (88, 35, 1) will be crucial for subsequent model training and evaluation. This transformed representation of the label allows for the use of supervised learning algorithms for binary classification, where the goal is to predict one of two classes. By transforming the shape of the training set and label, the PCOS diagnosis dataset is prepared for input into a deep learning model, which can then use the transformed data to learn patterns and make predictions.

4.3. Proposed Models

To have a better medical approach for the diagnosis of PCOS, three lightweight deep learning models are analyzed to assess their performance and suitability for an accurate PCOS prediction and classification. A block diagram of the proposed methodology is shown in Figure 3. Moreover, architectural diagrams of all three models are shown in Figure 4. We began with a conventional LSTM as our first model and used SMOTE alongside it. It is a six-layer network. The second model is a custom CNN and the third one is a combination of the CNN and LSTM, respectively. Model-2 has one convolution layer while the third model has three convolutions and one LSTM layer. The reason behind using the three models individually is to even out any bias towards any model. In the proposed model-2, we custom-built a 1D convolutional neural network comprising four layers for an efficient PCOS classification These four layers include Conv1D, Dense and Flatten layers. The purpose of these layers is explained as follows: It begins with an input layer designed to accommodate input shapes of (35, 1), effectively capturing the temporal nature of the data. The Conv1D layer follows, featuring eight filters, a kernel size of 4, and a tanh activation function. This layer plays a key role in extracting local patterns from the sequential input and produces an output shape of (32, 8). The subsequent Flattening layer then reshapes this output into a one-dimensional tensor with dimensions of 256, optimizing the data for further processing. The last layer functions as a Dense layer, serving as the output for binary classification with one neuron and utilizing a sigmoid activation function. This simplified structure, containing only 297 trainable parameters and lacking non-trainable elements, prioritizes computational efficiency while effectively capturing important local patterns essential for analyzing sequential data. Therefore, the model provides an intentional and resource-efficient approach for extracting significant insights from a sequential data network. The time complexity of the CNN architecture was assessed using factors such as the trainable parameters (T), batch size (B), and epochs (E). If we assume the time complexity for a single forward and backward pass is O (T), then the overall training time complexity can be estimated as O (T × B × E). This led to effective training, with a total duration of 11.0 s.
Pseudo Code:
Step 1: Gather data.
Step 2: Preprocess data:
  • Null removal.
  • Feature selection (Pearson correlation).
  • Cleaning (box plot).
  • Normalization (standard normalization).
Step 3: Split data into the train and test set.
Step 4: Upsample the train set (SMOTE upsampling).
Step 5: Train all three models on train set.
  • Train the LSTM model.
  • Train the CNN model.
  • Train the stacked LSTM, CNN model.
Step 6: Evaluate the model using the test set.
Step 7: Select the best model based on the test set and save the same one for later uses.

5. Performance Analysis

This section presents the findings of the experiments conducted and explains the various parameters like accuracy, precision, recall, etc. The evaluation metrics employed to measure the performance of the suggested model encompass accuracy, recall, precision, F1-score, and AUC, which are defined as follows:
Accuracy is articulated as follows:
ACC = TP + TN TP + TN + FP + FN
Recall is a parameter that gives the number of true positives out of all the positives obtained. Recall provides insights into the algorithm’s ability to detect relevant information and is also acknowledged as true positive rate or sensitivity.
Recall = TP TP + FN
Precision refers to the ratio of true positives to all positives.
Precision = TP TP + FP
F1-score is another significant performance indicator, which is the harmonic mean of precision and recall.
F 1 - score = 2 × Precision × Recall Precision + Recall
The area under the curve (AUC) indicates the level of separation or discriminability. It shows the effectiveness of our model in telling apart the different classes. A higher AUC value signifies better classification performance, accurately distinguishing between healthy and patient classes.

5.1. Simulation Results

The test was conducted using various tuning parameters, and the results were taken for each setting. The optimal parameters obtained for the fine-tuning of the models were taken as the final setting and were as follows: epochs were set to 50, the learning rate was set to 0.01, the optimizer used was Adam, the loss function used was binary cross entropy, gradient descent was applied on batch of 32, etc. These are listed in Table 3.
The performance results obtained for the given setting are recorded and presented in Table 4. The table shows tests for various parameters like accuracy, precision, recall, F1-score and the AUC. An analysis of the parameters with the help of plots and confusion matrices is also presented. The confusion matrices of each model are shown separately, which gives the idea of the true positives identified. Plots of accuracy and loss against the number of epochs are also plotted, for both the train and test data. The confusion matrices for all three suggested models are shown in Figure 5. The accuracy measures obtained for the proposed three models for PCOS prediction are 92.04%, 96.59%, and 94.31%, respectively. In our model, recall represents the proportion of correctly identified patients out of all of the patients obtained. The peak recall achieved by model-1 is 92.04%, for model-2, it is 96.59%, and for model-3, it is 94.31%, respectively. Precision represents the proportion of accurately identified patients with PCOS out of all of the individuals identified as patients. The precision values for the three models are 93.13%, 96.60%, and 94.89%, respectively. Precision provides a count of the relevant data points and aids in evaluating the model’s accuracy. Figure 5 shows that model SMOTE + CNN gives the best results of all. In addition, it is evident from the confusion matrix that the precision, recall, F1-score, and AUC also show the best scores for this model. The stack of SMOTE and CNN performs best for all the given parameters. A one-dimensional CNN is used in order to extract features. Model-3 (SMOTE + CNN + LSTM) also performs well but slightly less well than the previous stack. The model SMOTE + LSTM shows the least convergence of all three. The reason behind the CNN performing better than the other two models is that CNNs are naturally spatial feature-extracting bodies. Conversely, LSTM is capable of catching temporal dependencies. The stack CNN + LSTM shows good results but inserts temporal dependency on top of spatial dependency. This adds another level of complexity on top of the CNN. Thus, the CNN outperforms the CNN + LSTM stack.
The plots in Figure 6, Figure 7 and Figure 8 show the progressive convergence of the models with respect to epochs. The plots of accuracy vs. epochs show the best result for the SMOTE + CNN model; the model has low variance. The training and testing curves for this model have a smaller gap between them. The other models show noticeable variance between the training and testing data. The best accuracy of 96.59% was achieved using the SMOTE + CNN model and the other two models showed a slight lower side in the accuracy score. The behavior of loss incurred vs. epochs is also shown in Figure 5, Figure 6 and Figure 7. The training loss for the SMOTE + LSTM model converges abruptly, whereas the testing loss shows little convergence. The SMOTE + CNN model gives the best convergence among all, with less variation and low bias. The test set loss does not vary from the training set loss in this model. The stack of SMOTE + CNN + LSTM also shows visible variance when subjected to the training and testing set. The AUC behavior of the anticipated algorithm is depicted in Figure 9. The AUC obtained by model-1 is 92.0%, for model-2, it is 96.60%, and for model-3, it is 94.3%, respectively. The plots give an overview of the AUCs for all three models; all three models perform well regarding this objective. Again, the SMOTE + CNN model outperforms all the others, with a peak score of 96.59%. Thus, we can conclude that, given the results and after conducting various analyses, model-2, SMOTE + CNN, outperforms the other two models.
Our model is highly efficient, particularly in its lightweight design, which allows it to be trained using fewer parameters compared to those in previous studies. The CNN model trains with just 297 parameters, whereas the LSTM model uses 6689 parameters, and the combined CNN + LSTM model requires 13,285 parameters. In addition to its parameter efficiency, the proposed model is also time-efficient, completing its training in only 10.02 s, significantly faster than the LSTM model (67.27 s) and the CNN + LSTM combined model (18.51 s). Table 5 presents the efficiency metrics, including the computational resources utilized by each model, the number of trainable parameters, and the training duration. All three models exhibit a significant difference in their AUC values, as indicated by the p-values. The p-value for the comparison between the CNN and LSTM models is 0.038, between the CNN and the combined CNN + LSTM model is 0.043, and between the LSTM and combined CNN + LSTM model is 0.05. Table 6 provides a detailed breakdown of these p-values.

5.2. Comparison Analysis

A fair comparison of performance on the same dataset is necessary to judge the efficacy of the suggested model. This section aims to present a comparison analysis with some existing and recent PCOS detection models. Table 2 shows the PCOS detection ability of different models, which are obtained on the same Kaggle dataset [50] and performance is compared in terms of the standard performance metrics discussed earlier. Ref. [23] developed an SPOSDS, which is a smart diagnostic system for PCOS, by comparing the performance of many machine learning classifiers. The best accuracy of 93.25 has been presented by the SPOSDS system with the help of random forest (RF), using sqrt as the maximum feature hypermeter. Recently, Hdaib et al. in [27] also investigated different machine learning classifiers to have an effective solution for good PCOS detection. They were able to achieve an accuracy of 92.6% and precision of 97.6% using the linear discriminant analysis (LDA) technique. In Ref. [30], the authors analyzed a number of ML approaches to solve the accurate PCOS detection problem. Techniques such as KNN, SVM, RF, naïve Bayes, a neural network, bagging, and Adaboost were examined. The best performance (accuracy = 93.12%, precision = 93.12, and recall = 93.12%) were obtained for the random forest classifier with 40 features. Zigarelli et al. suggested a self-diagnostic model for PCOS in ref. [47], which provided an accuracy of 90.1% and precision of 95% among different scenarios of analyses. However, a different set of ensemble classifiers were studied such as voting hard, voting soft, and CatBoost in ref. [48]. The investigation and analysis found that the highest accuracy of 91.12% was achieved using voting soft for predicting patients with PCOS. Neto et al. in [51] examined various classifiers with the CRISP-DM model to predict PCOS. Their study reported the best classification performance through random forest and a data sampling technique, with an accuracy of 95%, precision of 96%, and recall of 94%. Recently, a genetic algorithm-based SVM method was suggested for PCOS classification in [52]. The performance results were not very convincing. Ref. [49] also reported a PCOS detection and prediction study using different machine learning classifiers. A low accuracy of 89.02% was achieved with a precision of 95.83%. In Ref. [53], the authors recommended a technique based on a hybrid of random forest and linear regression (RFLR), which was able to offer an accuracy of 91.01%, precision of 97.6%, recall of 92.2%, and area under the curve of 92.9%. In Ref. [54], a number of ensemble models such as HRFLR, extreme boosting with RF, linear SVM, light gradient boosting, and CatBoost were investigated for identifying PCOS. The analyses showed that CatBoost performed best among all of the ensemble models and provided an accuracy of 92% and recall of 95% but had a precision of 84% only. However, our proposed model-2, which is based on a lightweight 1D CNN, is able to predict PCOS in much better way as it offers an accuracy = 96.59%, precision = 96.60%, recall = 96.59%, F1-score = 96.59%, and AUC = 96.60%. A summary of the comparison study in terms of performance results such as accuracy, precision, recall, F1-score, the area under the curve (AUC) is presented in Table 7. The overall prediction performance of our proposed deep learning model is sufficiently more enhanced than all of the PCOS models listed in Table 7. The performance comparison is also graphically presented in Figure 10. Hence, the comparison analysis validates the better performance of the proposed model over many recent PCOS prediction and detection models.

5.3. Discussion

In our study, we used three models in order to make a bias invariant prediction. The model that gives the best results, i.e., (SMOTE + CNN), is selected as the final predictor. The dataset is split into train and test parts and SMOTE is applied on the train set, whereas test set is kept as it is. The data are also normalized and scaled because, as seen from the research, deep learning works very well with normalized and scaled data. The dataset goes through different preprocessing steps, like NULL feature removal, the Pearson correlation feature selection technique, etc. The model has a peak accuracy of 96% and strong convergence on both the test and train datasets. These diagrams additionally provide additional important results from the final model. The experiment demonstrated that the use of a CNN had a discernible impact on this dataset; the model that employed a CNN as a feature extractor demonstrated higher convergence. We tried to reduce the loss, but after a few epochs, it flattened out. For this reason, we prematurely ended our model (early stopping) to prevent overfitting. The final model is stored for future use.

6. Conclusions

Presently, a variety of machine learning classifiers and ensemble-based methods have been investigated for PCOS diagnosis and prediction. In practice, hand-crafted feature extraction through ML-based approaches had been exhaustively suggested, which have low-performance difficulties that can be disregarded for the precise diagnosis and prediction of PCOS. In order to detect PCOS more accurately, this paper proposed automated feature engineering based on lightweight deep learning models. For the better performance and excellence of the medical systems used for the diagnosis of PCOS, the proposed PCOS prediction method suggests three lightweight deep learning models based on LSTM and a customized 1D CNN for feature extraction instead of manual extraction via ML approaches, wherein different data preprocessing steps are performed on a highly unbalanced dataset in order to prepare it to have valid and high performance. In an effort to increase the accuracy of PCOS prediction, three different yet efficient lightweight deep learning models are designed and examined. Our specially designed 1D CNN-based model found to present the highest accuracy (96.59%), precision (96.60%), recall (96.59%), F1-score (96.59%), and ROC-AUC (96.60%), among all three proposed models. The proposed model is highly time-efficient, finishing its training in 10.02 s. Additionally, it utilizes the fewest parameters (297) compared to the other two models, further enhancing its efficiency, and the DeLong test results for comparing the AUCs of the anticipated models show its statistical significance and relevance. As a result, the suggested model offers the best performance, which may assist in identifying PCOS early. In addition, the proposed model possesses superior performance when compared with a number of recently created existing PCOS prediction and detection learning models.

Author Contributions

Conceptualization, I.A.K.; Methodology, M.A.; Software, R.A.; Validation, L.A.M. (Lamees A. Maghrabi); Formal analysis, R.A.; Investigation, L.A.M. (Lamees A. Maghrabi) and L.A.M. (Louai A. Maghrabi); Resources, L.A.M. (Louai A. Maghrabi); Data curation, I.A.K.; Writing—original draft, R.A.; Writing—review & editing, M.A.; Visualization, I.A.K.; Supervision, M.A.; Project administration, L.A.M. (Louai A. Maghrabi); Funding acquisition, L.A.M. (Lamees A. Maghrabi) and L.A.M. (Louai A. Maghrabi). All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Patient consent was waived due to the dataset for the study was publicly available.

Data Availability Statement

The dataset of polycystic ovary syndrome (PCOS) diagnosis used in this paper is available via the Kaggle repository [50].

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Hosseini, A.; Eshraghi, M.A.; Taami, T.; Sadeghsalehi, H.; Hoseinzadeh, Z.; Ghaderzadeh, M.; Rafiee, M. A Mobile Application Based on Efficient Lightweight CNN Model for Classification of B-ALL Cancer from Non-Cancerous Cells: A Design and Implementation Study. Inform. Med. Unlocked 2023, 39, 101244. [Google Scholar] [CrossRef]
  2. Escobar-Morreale, H.F. Polycystic ovary syndrome: Definition, aetiology, diagnosis and treatment. Nat. Rev. Endocrinol. 2018, 14, 270–284. [Google Scholar] [CrossRef] [PubMed]
  3. Meier, R.K. Polycystic Ovary Syndrome. Nurs. Clin. N. Am. 2018, 53, 407–420. [Google Scholar] [CrossRef] [PubMed]
  4. Teede, H.J.; Misso, M.L.; Costello, M.F.; Dokras, A.; Laven, J.; Moran, L.; Piltonen, T.; Norman, R.J. Recommendations from the international evidence-based guideline for the assessment and management of polycystic ovary syndrome. Hum. Reprod. 2018, 33, 1602–1618. [Google Scholar] [CrossRef]
  5. Louwers, Y.V.; Laven, J.S.E. Characteristics of polycystic ovary syndrome throughout life. Ther. Adv. Reprod. Health 2020, 14, 2633494120911038. [Google Scholar] [CrossRef]
  6. Azziz, R.; Carmina, E.; Chen, Z.; Dunaif, A.; Laven, J.S.; Legro, R.S.; Lizneva, D.; Natterson-Horowtiz, B.; Teede, H.J.; Yildiz, B.O. Polycystic ovary syndrome. Nat. Rev. Dis. Primers 2016, 2, 1–18. [Google Scholar] [CrossRef]
  7. Barber, T.M.; Franks, S. Obesity and polycystic ovary syndrome. Clin. Endocrinol. 2021, 95, 531–541. [Google Scholar] [CrossRef]
  8. Woźniak, M.; Krajewski, R.; Makuch, S.; Agrawal, S. Phytochemicals in gynecological cancer prevention. Int. J. Mol. Sci. 2021, 22, 1219. [Google Scholar] [CrossRef]
  9. Prapty, A.S.; Shitu, T.T. An Efficient Decision Tree Establishment and Performance Analysis with Different Machine Learning Approaches on Polycystic Ovary Syndrome. In Proceedings of the ICCIT 2020—23rd International Conference on Computer and Information Technology, DHAKA, Bangladesh, 19–21 December 2020. [Google Scholar] [CrossRef]
  10. Karimzadeh, M.A.; Javedani, M. An assessment of lifestyle modification versus medical treatment with clomiphene citrate, metformin, and clomiphene citrate-metformin in patients with polycystic ovary syndrome. Fertil. Steril. 2010, 94, 216–220. [Google Scholar] [CrossRef]
  11. Almenning, I.; Rieber-Mohn, A.; Lundgren, K.M.; Løvvik, T.S.; Garnæs, K.K.; Moholdt, T. Effects of high intensity interval training and strength training on metabolic, cardiovascular and hormonal outcomes in women with polycystic ovary syndrome: A pilot study. PLoS ONE 2015, 10, e0138793. [Google Scholar] [CrossRef]
  12. Chizen, D.R.; Serrao, S.; Rooke, J.; McBreairty, L.; Pierson, R.; Chilibeck, P.; Zello, G. The ‘pulse’ diet & PCOS. Fertil. Steril. 2014, 102, e267. [Google Scholar] [CrossRef]
  13. Mehrabani, H.H.; Salehpour, S.; Meyer, B.J.; Tahbaz, F. Beneficial effects of a high-protein, low-glycemic-load hypocaloric diet in overweight and obese women with polycystic ovary syndrome: A randomized controlled intervention study. J. Am. Coll. Nutr. 2012, 31, 117–125. [Google Scholar] [CrossRef]
  14. Giallauria, F.; Palomba, S.; Maresca, L.; Vuolo, L.; Tafuri, D.; Lombardi, G.; Colao, A.; Vigorito, C.; Orio, F. Exercise training improves autonomic function and inflammatory pattern in women with polycystic ovary syndrome (PCOS). Clin. Endocrinol. 2008, 69, 792–798. [Google Scholar] [CrossRef]
  15. Saleem, F.; Rizvi, S.W. New Therapeutic Approaches in Obesity and Metabolic Syndrome Associated with Polycystic Ovary Syndrome. Cureus 2017, 9, e1844. [Google Scholar] [CrossRef]
  16. Ladson, G.; Dodson, W.C.; Sweet, S.D.; Archibong, A.E.; Kunselman, A.R.; Demers, L.M.; Williams, N.I.; Coney, P.; Legro, R.S. The effects of metformin with lifestyle therapy in polycystic ovary syndrome: A randomized double-blind study. Fertil. Steril. 2011, 95, 1059–1066.e7. [Google Scholar] [CrossRef]
  17. Gambineri, A.; Patton, L.; Vaccina, A.; Cacciari, M.; Morselli-Labate, A.M.; Cavazza, C.; Pagotto, U.; Pasquali, R. Treatment with flutamide, metformin, and their combination added to a hypocaloric diet in overweight-obese women with polycystic ovary syndrome: A randomized, 12-month, placebo-controlled study. J. Clin. Endocrinol. Metab. 2006, 91, 3970–3980. [Google Scholar] [CrossRef] [PubMed]
  18. Gheisari, M.; Ghaderzadeh, M.; Li, H.; Taami, T.; Fernández-Campusano, C.; Sadeghsalehi, H.; Afzaal Abbasi, A. Mobile Apps for COVID-19 Detection and Diagnosis for Future Pandemic Control: Multidimensional Systematic Review. JMIR mHealth uHealth 2024, 12, e44406. [Google Scholar] [CrossRef]
  19. Bhosale, S.; Joshi, L.; Shivsharanan, A. PCOS (Polycystic Ovarian Syndrome) Detection Using Deep Learning. Int. Res. J. Mod. Eng. Technol. Sci. 2022, 4, 2582–5208. [Google Scholar]
  20. Maadi, M.; Khorshidi, H.A.; Aickelin, U. A review on human–ai interaction in machine learning and insights for medical applications. Int. J. Environ. Res. Public Health 2021, 18, 2121. [Google Scholar] [CrossRef]
  21. Hu, D.; Dong, W.; Lu, X.; Duan, H.; He, K.; Huang, Z. Evidential MACE prediction of acute coronary syndrome using electronic health records. BMC Med. Inform. Decis. Mak. 2019, 19, 9–17. [Google Scholar] [CrossRef]
  22. Bhardwaj, P.; Tiwari, P. Manoeuvre of Machine Learning Algorithms in Healthcare Sector with Application to Polycystic Ovarian Syndrome Diagnosis. In Proceedings of Academia-Industry Consortium for Data Science; Springer: Singapore, 2022; pp. 71–84. [Google Scholar] [CrossRef]
  23. Tiwari, S.; Kane, L.; Koundal, D.; Jain, A.; Alhudhaif, A.; Polat, K.; Zaguia, A.; Alenezi, F.; Althubiti, S.A. SPOSDS: A smart Polycystic Ovary Syndrome diagnostic system using machine learning. Expert Syst. Appl. 2022, 203, 117592. [Google Scholar] [CrossRef]
  24. Mubasher Hassan, M.; Mirza, T. Comparative Analysis of Machine Learning Algorithms in Diagnosis of Polycystic Ovarian Syndrome. Int. J. Comput. Appl. 2020, 175, 42–53. [Google Scholar] [CrossRef]
  25. Nasim, S.; Almutairi, M.S.; Munir, K.; Raza, A.; Younas, F. A Novel Approach for Polycystic Ovary Syndrome Prediction Using Machine Learning in Bioinformatics. IEEE Access 2022, 10, 97610–97624. [Google Scholar] [CrossRef]
  26. Tanwar, A.; Jain, A.; Chauhan, A. Accessible Polycystic Ovarian Syndrome Diagnosis Using Machine Learning. In Proceedings of the 2022 3rd International Conference for Emerging Technology (INCET), Belgaum, India, 27–29 May 2022. [Google Scholar] [CrossRef]
  27. Hdaib, D.; Almajali, N.; Alquran, H.; Mustafa, W.A.; Al-Azzawi, W.; Alkhayyat, A. Detection of Polycystic Ovary Syndrome (PCOS) Using Machine Learning Algorithms. In Proceedings of the 2022 5th International Conference on Engineering Technology and its Applications (IICETA), Al-Najaf, Iraq, 31 May 2022–1 June 2022; pp. 532–536. [Google Scholar] [CrossRef]
  28. Danaei Mehr, H.; Polat, H. Diagnosis of polycystic ovary syndrome through different machine learning and feature selection techniques. Health Technol. 2022, 12, 137–150. [Google Scholar] [CrossRef]
  29. Maheswari, K.; Baranidharan, T.; Karthik, S.; Sumathi, T. Modelling of F3I based feature selection approach for PCOS classification and prediction. J. Ambient. Intell. Humaniz. Comput. 2021, 12, 1349–1362. [Google Scholar] [CrossRef]
  30. Nandipati, S.C.R.; Chew, X.; Wah, K.K. Polycystic Ovarian Syndrome (PCOS) Classification and Feature Selection by Machine Learning Techniques. Appl. Math. Comput. Intell. (AMCI) 2020, 9, 65–74. Available online: http://dspace.unimap.edu.my:80/xmlui/handle/123456789/69392 (accessed on 2 April 2023).
  31. Xie, N.N.; Wang, F.F.; Zhou, J.; Liu, C.; Qu, F. Establishment and Analysis of a Combined Diagnostic Model of Polycystic Ovary Syndrome with Random Forest and Artificial Neural Network. Biomed. Res. Int. 2020, 2020, 2613091. [Google Scholar] [CrossRef]
  32. Aggarwal, N.; Shukla, U.; Saxena, G.J.; Kumar, M.; Bafila, A.S.; Singh, S.; Pundir, A. An Improved Technique for Risk Prediction of Polycystic Ovary Syndrome (PCOS) Using Feature Selection and Machine Learning. In Computational Intelligence. Lecture Notes in Electrical Engineering; Springer: Singapore, 2023; pp. 597–606. [Google Scholar] [CrossRef]
  33. Guleken, Z.; Bulut, H.; Bulut, B.; Paja, W.; Orzechowska, B.; Parlinska-Wojtan, M.; Depciuch, J. Identification of polycystic ovary syndrome from blood serum using hormone levels via Raman spectroscopy and multivariate analysis. Spectrochim. Acta A Mol. Biomol. Spectrosc. 2022, 273, 121029. [Google Scholar] [CrossRef]
  34. Cahyono, B.; Mubarok, M.S.; Wisesty, U. An Implementation of Convolutional Neural Network on PCO Classification based on Ultrasound Image. In Proceedings of the 2017 5th International Conference on Information and Communication Technology (ICoIC7), Melaka, Malaysia, 17–19 May 2017. [Google Scholar]
  35. Jeevitha, S.; Priya, N. Identifying and Classifying an Ovarian Cyst using SCBOD (Size and Count-Based Ovarian Detection) Algorithm in Ultrasound Image 799 Original Scientific Paper. Int. J. Electr. Comput. Eng. Syst. 2022, 13, 799–806. [Google Scholar] [CrossRef]
  36. Gopalakrishnan, C.; Iyapparaja, M. Multilevel thresholding based follicle detection and classification of polycystic ovary syndrome from the ultrasound images using machine learning. Int. J. Syst. Assur. Eng. Manag. 2021, 6, 1–8. [Google Scholar] [CrossRef]
  37. Khanna, V.V.; Chadaga, K.; Sampathila, N.; Prabhu, S.; Bhandage, V.; Hegde, G.K. A Distinctive Explainable Machine Learning Framework for Detection of Polycystic Ovary Syndrome. Appl. Syst. Innov. 2023, 6, 32. [Google Scholar] [CrossRef]
  38. Alam Suha, S.; Islam, M.N. Exploring the Dominant Features and Data-driven Detection of Polycystic Ovary Syndrome through Modified Stacking Ensemble Machine Learning Technique. Heliyon 2023, 9, e14518. [Google Scholar] [CrossRef] [PubMed]
  39. Wang, W.; Zeng, W.; He, S.; Shi, Y.; Chen, X.; Tu, L.; Yang, B.; Xu, J.; Yin, X. A new model for predicting the occurrence of polycystic ovary syndrome: Based on data of tongue and pulse. Digit. Health 2023, 9, 205520762311603. [Google Scholar] [CrossRef] [PubMed]
  40. Aggarwal, S.; Pandey, K. Early identification of PCOS with commonly known diseases: Obesity, diabetes, high blood pressure and heart disease using machine learning techniques. Expert Syst. Appl. 2023, 217, 119532. [Google Scholar] [CrossRef]
  41. Joo, J.; Li, W.; Steen, F.F.; Zhu, S.C. Visual persuasion: Inferring communicative intents of images. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), Columbus, OH, USA, 28 June 2014. [Google Scholar] [CrossRef]
  42. Pandey, A.; Vishwakarma, D.K. Attention-based Model for Multi-modal sentiment recognition using Text-Image Pairs. In Proceedings of the 2023 4th International Conference on Innovative Trends in Information Technology (ICITIIT), Kottayam, India, 11–12 February 2023; pp. 1–5. [Google Scholar] [CrossRef]
  43. Pandey, A.; Vishwakarma, D.K. VABDC-Net: A framework for Visual-Caption Sentiment Recognition via spatio-depth visual attention and bi-directional caption processing. Knowl. Based Syst. 2023, 269, 110515. [Google Scholar] [CrossRef]
  44. Sheikdavood, K.; Ponni Bala, M. Polycystic Ovary Cyst Segmentation Using Adaptive K-means with Reptile Search Algorith. Inf. Technol. Control 2023, 52, 85–99. [Google Scholar] [CrossRef]
  45. Chitra, P.; Srilatha, K.; Sumathi, M.; Jayasudha, F.V.; Bernatin, T.; Jagadeesh, M. Classification of Ultrasound PCOS Image using Deep Learning based Hybrid Models. In Proceedings of the 2023 Second International Conference on Electronics and Renewable Systems (ICEARS), Tuticorin, India, 2–4 March 2023; pp. 1389–1394. [Google Scholar] [CrossRef]
  46. Elreedy, D.; Atiya, A.F. A comprehensive analysis of synthetic minority oversampling technique (SMOTE) for handling class imbalance. Inf. Sci. 2019, 505, 32–64. [Google Scholar] [CrossRef]
  47. Zigarelli, A.; Jia, Z.; Lee, H. Machine-Aided Self-diagnostic Prediction Models for Polycystic Ovary Syndrome: Observational Study. JMIR Form. Res. 2022, 6, e29967. [Google Scholar] [CrossRef]
  48. Bharati, S.; Podder, P.; Mondal, M.; Surya Prasath, V.B.; Gandhi, N. Ensemble Learning for Data-Driven Diagnosis of Polycystic Ovary Syndrome. In Proceedings of the International Conference on Intelligent Systems Design and Applications, Online, 12–14 December 2021; Springer: Cham, Switzerland, 2022; pp. 71–84. [Google Scholar]
  49. Denny, A.; Raj, A.; Ashok, A.; Ram, C.M.; George, R. i-HOPE: Detection And Prediction System For Polycystic Ovary Syndrome (PCOS) Using Machine Learning Techniques. In Proceedings of the TENCON 2019—2019 IEEE Region 10 Conference (TENCON), Kochi, India, 17–20 October 2019; pp. 673–678. [Google Scholar]
  50. Kottarathil, P. Polycystic Ovary Syndrome (PCOS). Available online: https://www.kaggle.com/datasets/prasoonkottarathil/polycystic-ovary-syndrome-pcos (accessed on 4 October 2023).
  51. Neto, C.; Silva, M.; Fernandes, M.; Ferreira, D.; Machado, J. Prediction models for Polycystic Ovary Syndrome using data mining. In Proceedings of the International Conference on Advances in Digital Science, Salvador, Brazil, 19–21 February 2021; Springer: Cham, Switzerland, 2021; pp. 210–221. [Google Scholar]
  52. Faris, N.N.; Miften, F.S. Detection of PCOS Based on Genetic Algorithm Coupled with SVM. J. Educ. Pure Sci. Univ. Thi-Qar 2022, 12, 73–84. [Google Scholar] [CrossRef]
  53. Bharati, S.; Podder, P.; Mondal, M.R.H. Diagnosis of polycystic ovary syndrome using machine learning algorithms. In Proceedings of the 2020 IEEE Region 10 Symposium (TENSYMP), Dhaka, Bangladesh, 5–7 June 2020; pp. 1486–1489. [Google Scholar]
  54. Alshakrani, S.; Hilal, S.; Zeki, A.M. Hybrid machine learning algorithms for polycystic ovary syndrome detection. In Proceedings of the 2022 International Conference on Data Analytics for Business and Industry (ICDABI), Sakhir, Bahrain, 25–26 October 2022; pp. 160–164. [Google Scholar]
Figure 1. Heatmap for examining the correlations between all features of the PCOS dataset.
Figure 1. Heatmap for examining the correlations between all features of the PCOS dataset.
Diagnostics 14 02225 g001
Figure 2. Heatmap for the correlations between the features with threshold 0.25 of PCOS dataset.
Figure 2. Heatmap for the correlations between the features with threshold 0.25 of PCOS dataset.
Diagnostics 14 02225 g002
Figure 3. Schematic diagram of the proposed methodology.
Figure 3. Schematic diagram of the proposed methodology.
Diagnostics 14 02225 g003
Figure 4. Typical architectures of the three proposed deep learning models with the size of input and output of each layer.
Figure 4. Typical architectures of the three proposed deep learning models with the size of input and output of each layer.
Diagnostics 14 02225 g004
Figure 5. Confusion matrices for the proposed models. (a) LSTM, (b) Custom CNN, (c) CNN + LSTM.
Figure 5. Confusion matrices for the proposed models. (a) LSTM, (b) Custom CNN, (c) CNN + LSTM.
Diagnostics 14 02225 g005
Figure 6. Accuracy and loss plots for the proposed LSTM model.
Figure 6. Accuracy and loss plots for the proposed LSTM model.
Diagnostics 14 02225 g006
Figure 7. Accuracy and loss plots for the proposed custom CNN model.
Figure 7. Accuracy and loss plots for the proposed custom CNN model.
Diagnostics 14 02225 g007
Figure 8. Accuracy and loss plots for the proposed custom CNN+LSTM model.
Figure 8. Accuracy and loss plots for the proposed custom CNN+LSTM model.
Diagnostics 14 02225 g008
Figure 9. ROC-AUCs for PCOS prediction using (a) LSTM model, (b) custom CNN model, and (c) CNN-LSTM model.
Figure 9. ROC-AUCs for PCOS prediction using (a) LSTM model, (b) custom CNN model, and (c) CNN-LSTM model.
Diagnostics 14 02225 g009
Figure 10. Performance comparison of PCOS prediction models [22,27,30,47,48,49,51,52,54].
Figure 10. Performance comparison of PCOS prediction models [22,27,30,47,48,49,51,52,54].
Diagnostics 14 02225 g010
Table 1. List of abbreviations.
Table 1. List of abbreviations.
Different Abbreviations
PCOSPolycystic Ovarian Syndrome
SMOTESynthetic Minority Over-Sampling
CNNConvolutional Neural Network
LSTMLong Short-Term Memory
SCBODSize and Count-Based Ovarian Detection
KNNk-Nearest Neighbors
SVMSupport Vector Machine
ReLuRectified Linear Unit
RNNRecurrent Neural Network
AUCArea Under the ROC Curve
ROCReceiver Operating Characteristic Curve
Table 2. Summary of related works.
Table 2. Summary of related works.
Author(s)MethodologyML ApproachKey Findings/Contributions
Ref. [1] Azamossadat Hosseini, 2023Comparative analysisSegmentation with K-means clustering deep CNNThe model achieved 100% accuracy, sensitivity, and specificity in classifying B-ALL cases, leading to the development of a mobile application for real-time screening.
Ref. [18] Mehdi Gheisari, 2024Systematic review of studies using PRISMA protocolAI-based diagnosis using deep learning techniquesThe CNN outperformed other AI techniques in processing healthcare data, making mobile apps a crucial tool for early COVID-19 detection and future pandemic management with AI and advanced technologies.
Ref. [19] Shubham Bhosale, 2022Noise reduction and segmentation techniquesDeep convolutional neural networks (DCNNs)A DCNN was applied to improve cyst diagnosis accuracy by reducing noise, extracting the region of interest, and enabling the early detection of PCOS-related anomalies to prevent infertility.
Ref. [24] MM Hassan, 2020Comparative analysisRandom forest algorithmThis involved the use of a random forest algorithm used in the diagnosis of PCOS, with an accuracy of 96%.
Ref. [25] Dana Hdaib, 2022Comprehensive comparative analysisK-nearest neighborsThe study presented a milestone for building a completed CAD system for the problem.
Ref. [31] Ning-Ning Xie, 2020An integrated Machine learning methodologyRandom forest and artificial neural networkThe model demonstrated improved predictive accuracy in microarray data compared to the use of conventional marker genes.
Ref. [33] Zozan Guleken, 2022Raman spectroscopy and multivariate analysisPrincipal component analysis (PCA)The findings indicated that the lipid and protein equilibrium could serve as a valuable indicator for PCOS in Raman spectra.
Ref. [34] Beny Cahyono, 2017Automated analysis of ultrasoundDeep convolutional neural networkThis gave a solution that incorporated automated feature extraction using a convolutional neural network.
Ref. [45] P. Chitra, 2023Transfer learning with hybrid modelsResNet-50 and VGG-16The study introduced a combined model approach to improve training and precision, resulting in a 93% accuracy on the test dataset for predicting PCOS.
Ref. [46] Elreedy, D. 2019Theoretical AnalysisSMOTE augmentaion, K-nearest neighborsSMOTE generates synthetic samples along K-nearest neighbors to effectively balance datasets. The study that factors like data dimension and the number of neighbors influence accuracy and classification boundaries.
Ref. [47] Angela Zigarelli, 2022Principal component analysisCatBoost classificationThe prospective study suggested that the self-diagnostic prediction models for PCOS status could function as a convenient and easily accessible digital platform utilizing existing health metrics, benefiting both prospective patients and healthcare providers.
Ref. [48] S Bharati, 2022A data-driven approachEnsemble learningThis study considered the use of data-driven methods in diagnosing PCOS illness in women.
Ref. [49] Amsy Denny, 2019Comprehensive comparative analysisRandom forest classifierThe model achieved 89.02% accuracy in PCOS diagnosis using a RFC.
Table 3. Optimal parameters for fine-tuning of model.
Table 3. Optimal parameters for fine-tuning of model.
Hyperparameters for Proposed Model
Filters8
Kernel Size4
Activation FunctionTanh, Sigmoid
Loss FunctionBinary cross-entropy
Learning Rate0.01
OptimizerAdam
Epochs50
Batch Size 32
Number of Neurons in Dense Layer 1
Table 4. Performance of proposed models for PCOS classifications.
Table 4. Performance of proposed models for PCOS classifications.
Proposed ModelsAccuracyPrecisionRecallF1-ScoreAUC
Model-1SMOTE + LSTM92.04%93.13%92.04%91.99%92.0%
Model-2SMOTE + CNN96.59%96.60%96.59%96.59%96.60%
Model-3SMOTE + CNN+ LSTM94.31%94.89%94.31%94.30%94.3%
Table 5. Computational resources utilized by models and the training duration.
Table 5. Computational resources utilized by models and the training duration.
ModelParametersRAM (GB)GPU (GB)Time (Seconds)
SMOTE + LSTM668912.71567.27
SMOTE + CNN29712.71510.02
SMOTE+ CNN+ LSTM1328512.71518.51
Table 6. DeLong test for comparing AUC of PCOS model.
Table 6. DeLong test for comparing AUC of PCOS model.
CombinationsModelModelp-Value
1SMOTE + LSTMSMOTE+ CNN+ LSTM0.05
2SMOTE + CNNSMOTE + LSTM0.038
3SMOTE+ CNN+ LSTMSMOTE + CNN0.043
Table 7. Performance comparison of proposed model on same Kaggle dataset.
Table 7. Performance comparison of proposed model on same Kaggle dataset.
ModelAccuracyPrecisionRecallF1-ScoreAUC
Proposed96.5996.6096.5996.5996.60
Ref. [23]93.2594.093.2593.42-
Ref. [27]92.697.692.2--
Ref. [30]93.1293.1293.12--
Ref. [47]90.195.090.992.8-
Ref. [48]91.12---92.0
Ref. [51]959694--
Ref. [52]909275.783-
Ref. [49]89.0295.8374.1941.82-
Ref. [53]91.0197.692.2-92.9
Ref. [54]92.084.095.089.0-
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

Ahmad, R.; Maghrabi, L.A.; Khaja, I.A.; Maghrabi, L.A.; Ahmad, M. SMOTE-Based Automated PCOS Prediction Using Lightweight Deep Learning Models. Diagnostics 2024, 14, 2225. https://doi.org/10.3390/diagnostics14192225

AMA Style

Ahmad R, Maghrabi LA, Khaja IA, Maghrabi LA, Ahmad M. SMOTE-Based Automated PCOS Prediction Using Lightweight Deep Learning Models. Diagnostics. 2024; 14(19):2225. https://doi.org/10.3390/diagnostics14192225

Chicago/Turabian Style

Ahmad, Rumman, Lamees A. Maghrabi, Ishfaq Ahmad Khaja, Louai A. Maghrabi, and Musheer Ahmad. 2024. "SMOTE-Based Automated PCOS Prediction Using Lightweight Deep Learning Models" Diagnostics 14, no. 19: 2225. https://doi.org/10.3390/diagnostics14192225

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