Predicting Zygosity based on physical similarity of twin pairs with the aid of machine learning methods

Given the importance of distinguishing identical and non-identical twins and the high cost of genetic testing, the ability to estimate zygosity using self-reported methods could be invaluable in reducing the costs of twin research. This study develops a machine learning framework to predict zygosity using physical similarity features, offering a scalable alternative. Our data were retrieved from the Iranian School-aged Twin Registry from 2018 to 2021. After preprocessing and cleaning the raw data, class imbalance (60:40 ratio) was addressed using the Synthetic Minority Over-sampling Technique (SMOTE) to enhance the prediction of twin zygosity based on physical similarity. Through this study, eight machine learning (ML) algorithms—including K-nearest neighbors (KNN), support vector machine (SVM), logistic regression (LR), random forest (RF), decision tree (DT), and boosting techniques (Gradient Boosting Classifier, XGBoost, AdaBoost Classifier)—were developed and trained on an 80:20 train-test split to predict zygosity. Model hyperparameters were optimized by GridSearchCV, and performance was evaluated using multiple metrics. Finally, the most influential factors were determined by the SHAP (Shapley Additive Explanations) algorithm. Using data from 5,077 Iranian twin pairs, machine learning models to predict zygosity (monozygotic vs. dizygotic) based on 11 physical similarity traits were developed. To address class imbalance, the SMOTE oversampling technique was employed. Among eight algorithms evaluated, XGBoost demonstrated superior performance after optimization, achieving 85.57% accuracy and an F1-score of 86.72%. While XGBoost, Logistic Regression, and Gradient Boosting performed comparably without statistically significant differences, XGBoost was selected for its marginal lead and further analyzed using SHAP to interpret the feature importance of physical traits in zygosity prediction. This study establishes XGBoost with SMOTE oversampling as an optimal framework for twin zygosity prediction through physical similarity questionnaires. In future studies, with sufficient funding for genetic tests to determine zygosity, external validation of the obtained model and comparison of its results with the results of genetic tests will be performed.

Authors

Institutions

Publication Details

Journal
BMC Medical Informatics and Decision Making
Published
2025-12-27
DOI
https://doi.org/10.1186/s12911-025-03334-8
Primary Topic
Cognitive Abilities and Testing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting Zygosity based on physical similarity of twin pairs with the aid of machine learning methods

Marsa Gholamzadeh, Hamidreza Abtahi, Elmira Khakvatan, Maryam Edalatifard
BMC Medical Informatics and Decision Making
Cognitive Abilities and Testing
article

Predicting Zygosity based on physical similarity of twin pairs with the aid of machine learning methods

Marsa Gholamzadeh, Hamidreza Abtahi, Elmira Khakvatan, Maryam Edalatifard
article en

Abstract

Given the importance of distinguishing identical and non-identical twins and the high cost of genetic testing, the ability to estimate zygosity using self-reported methods could be invaluable in reducing the costs of twin research. This study develops a machine learning framework to predict zygosity using physical similarity features, offering a scalable alternative. Our data were retrieved from the Iranian School-aged Twin Registry from 2018 to 2021. After preprocessing and cleaning the raw data, class imbalance (60:40 ratio) was addressed using the Synthetic Minority Over-sampling Technique (SMOTE) to enhance the prediction of twin zygosity based on physical similarity. Through this study, eight machine learning (ML) algorithms—including K-nearest neighbors (KNN), support vector machine (SVM), logistic regression (LR), random forest (RF), decision tree (DT), and boosting techniques (Gradient Boosting Classifier, XGBoost, AdaBoost Classifier)—were developed and trained on an 80:20 train-test split to predict zygosity. Model hyperparameters were optimized by GridSearchCV, and performance was evaluated using multiple metrics. Finally, the most influential factors were determined by the SHAP (Shapley Additive Explanations) algorithm. Using data from 5,077 Iranian twin pairs, machine learning models to predict zygosity (monozygotic vs. dizygotic) based on 11 physical similarity traits were developed. To address class imbalance, the SMOTE oversampling technique was employed. Among eight algorithms evaluated, XGBoost demonstrated superior performance after optimization, achieving 85.57% accuracy and an F1-score of 86.72%. While XGBoost, Logistic Regression, and Gradient Boosting performed comparably without statistically significant differences, XGBoost was selected for its marginal lead and further analyzed using SHAP to interpret the feature importance of physical traits in zygosity prediction. This study establishes XGBoost with SMOTE oversampling as an optimal framework for twin zygosity prediction through physical similarity questionnaires. In future studies, with sufficient funding for genetic tests to determine zygosity, external validation of the obtained model and comparison of its results with the results of genetic tests will be performed.

BMC Medical Informatics and Decision MakingVol. 26(1)
Iran University of Medical Sciences (IR), Imam Khomeini Hospital (IR), Tehran University of Medical Sciences (IR)
Openalex Percentile: Top 29%
Cognitive Abilities and Testing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.