This dataset contains 1,500 patient records developed for research on machine learning-based classification of Type 2 diabetes mellitus. The dataset contains demographic, anthropometric, clinical, and medical-history variables that can be used to investigate the classification of patients into diabetic and non-diabetic groups.
The dataset consists of nine variables: Age, Gender, Body Mass Index (BMI), Blood Pressure (Systolic), Glucose Level, HbA1c, Family History, Hypertension Status, and Diabetes Status. The first eight variables are used as input variables, while Diabetes Status serves as the target variable. The target variable is represented as 0 for non-diabetic and 1 for diabetic patients.
The dataset contains 820 diabetic records and 680 non-diabetic records, representing approximately 54.7% and 45.3% of the dataset, respectively. The relatively similar distribution of the two classes makes the dataset suitable for binary classification experiments without requiring synthetic class balancing in the reported study.
The dataset was prepared for the study titled “A Machine Learning Approach for Detecting Type 2 Diabetic Disease” at Osun State University, Osogbo, Nigeria. The accompanying research investigates and compares Logistic Regression, Decision Tree, and Random Forest classifiers using the same dataset.
Data preprocessing includes data inspection, handling of missing observations, categorical-variable encoding, appropriate feature scaling, and stratified partitioning into training and testing subsets. The reported methodology uses an 80:20 training-testing split with stratification and random state 42.
The dataset is intended for academic research, machine learning experimentation, benchmarking, educational purposes, and investigation of clinical data classification methods. It should not be interpreted as a clinically validated diagnostic tool, and predictions generated from models trained using this dataset should not replace professional medical assessment or clinical decision-making.
Because Glucose Level and HbA1c are included among the predictors and are directly relevant to clinical diabetes assessment, results based on this dataset should be interpreted as diabetes-status classification rather than prediction of future diabetes before diagnostic measurements are available.