Abstract

Background: Risky pregnancies present significant challenges in maternal healthcare, often requiring accurate prediction to prevent adverse outcomes. Machine learning (ML) models offer a promising approach for predicting such risks, enabling timely interventions. This study evaluates five machine learning models—Logistic Regression, Decision Tree, K-Nearest Neighbors (KNN), Naive Bayes, and Support Vector Machine (SVM)—for their effectiveness in predicting risky pregnancies using clinical datasets. Methods: The study developed and evaluated five ML models, each implemented using Python’s scikit-learn library. The dataset was split into 75% for training and 25% for testing. Standard classification metrics, including accuracy, precision, recall, and F1-score, were used to assess model performance. Hyperparameter tuning was conducted using grid search and cross-validation to optimize model parameters. The models’ performance was compared to identify the most suitable for clinical applications. Results: The Decision Tree model achieved the highest accuracy (100% on training data, 95.6% on testing data), along with excellent precision, recall, and F1-scores for both classes, making it the most accurate and interpretable model for predicting risky pregnancies. Logistic Regression also performed well, particularly in identifying high-risk cases, with testing accuracy of 82%. KNN and SVM provided moderate accuracy, with KNN achieving 78% testing accuracy and SVM 80%. Naive Bayes, however, performed poorly, achieving only 43.2% accuracy due to its assumption of feature independence, which was not suitable for the dataset. Conclusion: The Decision Tree and Logistic Regression models emerged as the most effective for predicting risky pregnancies, offering high accuracy and interpretability, crucial for clinical decision-making.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.