Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
age_years
int64
sex
string
education
string
residence
string
bmi
float64
bmi_category
string
waist_circumference_cm
float64
family_history_diabetes
int64
family_history_hypertension
int64
smoking_status
string
alcohol_use
string
physical_activity
string
salt_intake_high
int64
has_diabetes
int64
has_hypertension
int64
dual_diagnosis
int64
diabetes_type
string
diabetes_duration_years
int64
hypertension_grade
string
hypertension_duration_years
int64
newly_diagnosed_dm
int64
newly_diagnosed_htn
int64
systolic_bp
int64
diastolic_bp
int64
bp_controlled
int64
fasting_glucose_mmol
float64
hba1c_percent
int64
random_glucose_mmol
float64
glycaemic_control
int64
total_cholesterol
int64
ldl
int64
hiv_positive
int64
retinopathy
int64
nephropathy
int64
neuropathy
int64
diabetic_foot
int64
cardiovascular_disease
int64
stroke_history
int64
heart_failure
int64
ckd
int64
on_antihypertensive
int64
antihypertensive_class
string
antihypertensive_combination
int64
on_oral_hypoglycaemic
int64
oral_hypoglycaemic_type
string
on_insulin
int64
on_statin
int64
on_aspirin
int64
medication_adherence
string
lifestyle_counselling
int64
diet_counselling
int64
hospitalised_past_year
int64
emergency_visit_past_year
int64
1
69
F
secondary
urban
20.5
normal
77
0
1
never
none
high
0
0
1
0
none
0
grade_1
0
0
0
153
113
0
5.1
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
1
ace_inhibitor_arb
1
0
none
0
0
0
poor
0
0
0
0
2
51
M
secondary
urban
25.4
overweight
77
1
0
never
moderate
moderate
1
1
0
0
type_2
1
none
0
1
0
122
80
1
10.3
-1
14.4
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
3
68
F
primary
urban
24.7
normal
93
0
0
never
none
low
1
0
1
0
none
0
grade_2
7
0
1
170
114
0
4.9
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
4
53
M
primary
peri_urban
16
underweight
60
1
0
current
moderate
low
0
0
1
0
none
0
grade_1
2
0
0
141
116
0
3.8
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
5
46
M
primary
urban
32.8
obese
109
1
1
never
none
high
0
1
1
1
type_2
0
grade_3
4
1
0
214
158
0
11.7
-1
8.1
0
-1
-1
0
0
0
0
0
1
0
0
1
1
ace_inhibitor_arb
0
0
none
0
0
0
poor
0
1
0
1
6
25
F
primary
rural
29.2
overweight
84
0
1
never
none
high
1
1
1
1
type_2
4
grade_2
5
1
1
180
124
0
8.4
-1
18.5
0
-1
-1
0
0
0
0
0
1
0
0
1
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
7
82
M
none
urban
26.5
overweight
94
1
0
never
moderate
sedentary
0
1
1
1
type_2
1
grade_1
1
1
1
155
118
0
15.3
-1
12.2
0
-1
-1
0
1
0
0
0
1
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
1
1
8
67
F
primary
peri_urban
19.7
normal
69
0
0
never
heavy
low
1
1
1
1
type_2
8
grade_1
0
1
0
162
108
0
9
-1
16.9
0
-1
-1
0
1
1
1
1
1
0
1
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
9
23
M
primary
peri_urban
25.9
overweight
79
0
0
never
moderate
sedentary
0
1
0
0
type_2
11
none
0
1
0
123
75
1
8.8
-1
12.5
0
-1
-1
0
0
0
1
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
10
47
M
primary
urban
20.7
normal
73
0
0
never
none
low
0
0
1
0
none
0
grade_2
2
0
1
150
118
0
5
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
11
66
F
secondary
rural
25.2
overweight
73
1
0
never
moderate
moderate
0
1
1
1
type_2
11
grade_2
9
1
0
150
124
0
11.5
-1
17.2
0
-1
-1
0
0
0
0
0
0
0
0
1
1
beta_blocker
0
0
none
0
0
0
moderate
0
0
0
0
12
83
F
secondary
urban
33.6
obese
111
0
1
current
moderate
sedentary
0
1
1
1
type_2
2
grade_3
13
1
1
191
131
0
11.1
-1
5.9
0
-1
-1
0
0
0
0
0
0
0
0
1
0
none
0
0
none
0
0
0
not_applicable
0
1
0
1
13
42
M
tertiary
rural
22.7
normal
79
1
0
current
none
moderate
1
0
1
0
none
0
grade_2
9
0
0
155
125
0
5.3
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
14
27
F
none
rural
16
underweight
76
1
1
former
none
moderate
0
1
1
1
type_2
2
grade_2
1
1
1
169
118
0
11.4
-1
22.8
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
15
58
M
secondary
urban
21.2
normal
81
0
0
never
none
moderate
0
0
1
0
none
0
grade_1
6
0
1
145
115
0
5.2
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
16
60
M
primary
urban
24.5
normal
93
0
1
current
heavy
low
1
0
1
0
none
0
grade_1
12
0
1
149
107
0
5.6
-1
-1
0
-1
-1
0
0
0
0
0
0
0
1
0
0
none
0
0
none
0
0
0
not_applicable
0
1
1
0
17
89
F
tertiary
urban
34
obese
99
1
0
never
none
sedentary
1
1
1
1
type_2
2
grade_1
1
1
1
137
94
0
6.7
-1
14.2
1
-1
-1
0
0
0
1
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
18
53
F
secondary
rural
18.8
normal
64
0
0
never
none
low
1
1
0
0
type_2
3
none
0
1
0
102
74
1
11
-1
8.5
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
19
72
F
secondary
rural
18.9
normal
75
0
0
never
none
sedentary
0
1
0
0
type_2
20
none
0
1
0
126
70
1
15.1
-1
9.9
0
-1
-1
0
0
0
1
0
1
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
1
1
20
66
F
none
peri_urban
21.9
normal
84
0
0
never
none
high
1
0
1
0
none
0
grade_2
1
0
1
162
107
0
5.7
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
21
47
F
secondary
urban
25
overweight
103
1
0
never
none
sedentary
0
0
1
0
none
0
grade_1
9
0
1
135
104
0
5.1
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
22
44
M
primary
urban
37.9
obese
115
0
0
never
none
high
0
0
1
0
none
0
grade_2
4
0
1
182
120
0
4.9
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
1
23
48
M
none
urban
25.7
overweight
97
0
1
never
none
low
1
1
1
1
type_2
0
grade_2
4
1
1
160
107
0
9.6
-1
18.6
0
-1
-1
0
0
0
0
0
0
1
0
0
0
none
0
0
none
0
0
1
not_applicable
1
1
0
0
24
82
M
primary
urban
17.9
underweight
60
1
0
never
moderate
sedentary
0
1
1
1
type_2
20
grade_3
4
1
1
215
149
0
14.5
-1
8.4
0
-1
-1
0
0
0
1
0
0
1
1
0
0
none
0
0
none
0
0
1
not_applicable
1
0
0
0
25
46
F
none
urban
21.5
normal
82
0
0
never
none
high
0
1
0
0
type_2
7
none
0
1
0
107
73
1
7
-1
6.7
0
-1
-1
0
0
0
1
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
26
73
F
secondary
rural
18.8
normal
69
0
1
never
none
low
1
0
1
0
none
0
grade_2
0
0
1
159
127
0
4.3
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
27
74
M
tertiary
rural
19.5
normal
71
1
0
never
heavy
low
0
0
1
0
none
0
grade_1
13
0
1
137
115
0
4.9
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
1
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
28
53
F
primary
urban
26.7
overweight
89
0
1
never
none
low
1
1
1
1
type_2
8
grade_2
2
0
0
162
115
0
9.9
-1
14.1
0
-1
-1
0
0
0
1
0
0
0
0
0
0
none
0
1
metformin
0
0
0
moderate
1
0
0
0
29
52
M
primary
peri_urban
24.5
normal
83
1
0
never
heavy
sedentary
1
0
1
0
none
0
grade_1
0
0
0
154
123
0
6.3
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
30
56
F
secondary
peri_urban
25.4
overweight
86
0
0
former
none
moderate
1
1
1
1
type_2
1
grade_3
3
1
1
189
123
0
11.3
-1
5
0
-1
-1
0
0
0
0
0
0
1
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
1
31
82
F
none
rural
23.7
normal
75
0
1
never
moderate
low
0
1
1
1
type_2
4
grade_2
5
1
1
150
114
0
12.9
-1
14.9
0
-1
-1
1
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
32
51
F
secondary
peri_urban
25.7
overweight
95
0
1
never
none
sedentary
1
0
1
0
none
0
grade_2
0
0
1
182
119
0
3.9
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
33
44
F
tertiary
peri_urban
25.2
overweight
85
0
0
never
moderate
sedentary
1
0
1
0
none
0
grade_1
17
0
1
135
115
0
5.8
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
34
68
F
secondary
peri_urban
18.1
underweight
86
0
1
never
moderate
low
1
0
1
0
none
0
grade_1
0
0
1
149
123
0
5.1
-1
-1
0
-1
-1
0
0
0
0
0
1
0
0
0
0
none
0
0
none
0
1
0
not_applicable
0
0
0
0
35
29
F
primary
rural
23
normal
67
0
1
never
moderate
low
0
0
1
0
none
0
grade_2
0
0
1
176
131
0
6.1
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
36
47
M
secondary
rural
18.2
underweight
69
1
0
never
none
low
1
1
1
1
type_2
1
grade_2
0
1
1
163
115
0
4
-1
8.5
1
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
37
39
F
none
urban
25.1
overweight
95
0
0
former
none
moderate
1
1
0
0
type_2
15
none
0
1
0
102
65
1
8.5
-1
11.7
0
-1
-1
0
0
0
0
0
1
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
38
48
M
secondary
urban
30.3
obese
88
1
1
never
heavy
moderate
1
1
1
1
type_2
2
grade_3
0
0
1
170
112
0
15.9
-1
7.7
0
-1
-1
0
0
0
0
0
0
0
1
0
0
none
0
1
glibenclamide
0
0
0
poor
0
1
1
1
39
66
F
secondary
rural
27.1
overweight
97
1
0
never
heavy
moderate
0
1
1
1
type_2
1
grade_2
9
1
1
155
114
0
12.3
-1
16.1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
40
46
F
secondary
rural
21.4
normal
72
0
0
never
none
moderate
1
1
1
1
type_2
8
grade_1
3
1
1
150
124
0
15.8
-1
11.1
0
-1
-1
0
0
1
1
0
0
1
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
41
58
M
secondary
urban
23.8
normal
79
0
0
former
heavy
high
1
1
0
0
type_2
3
none
0
1
0
129
72
1
4
-1
8
1
-1
-1
0
0
0
1
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
42
58
F
primary
rural
24.9
normal
69
1
0
never
none
sedentary
1
1
1
1
type_2
14
grade_1
4
1
0
151
134
0
9.1
-1
9
0
-1
-1
0
1
0
0
0
1
0
0
0
1
beta_blocker
0
0
none
0
1
1
poor
1
0
0
0
43
55
M
none
rural
28.3
overweight
88
0
0
never
heavy
moderate
0
0
1
0
none
0
grade_1
13
0
1
146
113
0
6.4
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
44
22
F
primary
rural
32.4
obese
94
1
1
former
none
low
0
0
1
0
none
0
grade_1
0
0
0
139
114
0
5.4
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
45
23
M
tertiary
urban
24.9
normal
83
1
1
never
moderate
low
1
0
1
0
none
0
grade_3
0
0
0
170
121
0
5.1
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
1
ccb
1
0
none
0
0
0
poor
1
0
0
0
46
48
F
secondary
urban
29.5
overweight
93
0
0
never
heavy
moderate
1
0
1
0
none
0
grade_3
2
0
1
199
129
0
4.2
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
47
38
F
primary
urban
29.2
overweight
99
0
0
never
none
low
0
1
1
1
type_2
2
grade_1
7
1
0
133
109
0
5.4
-1
16.6
1
-1
-1
0
0
0
0
0
0
0
0
0
1
ace_inhibitor_arb
1
0
none
0
0
0
moderate
1
0
0
0
48
31
F
tertiary
peri_urban
23.4
normal
62
0
0
current
heavy
moderate
0
1
1
1
type_2
15
grade_2
2
1
1
151
128
0
6.2
-1
16.7
1
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
49
33
M
none
rural
22.2
normal
66
0
1
never
moderate
low
0
1
1
1
type_2
3
grade_1
1
1
0
152
100
0
10.1
-1
11.9
0
-1
-1
0
0
0
0
1
0
0
1
0
1
thiazide
1
0
none
0
0
0
moderate
0
0
1
1
50
47
F
tertiary
peri_urban
21.4
normal
82
0
0
former
none
moderate
0
1
1
1
type_2
1
grade_1
3
0
1
142
106
0
11.2
-1
11.7
0
-1
-1
0
0
0
0
0
0
0
1
1
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
51
78
M
none
rural
17.9
underweight
62
0
1
never
heavy
moderate
1
0
1
0
none
0
grade_2
0
0
1
159
120
0
4
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
52
72
F
secondary
urban
28.9
overweight
75
0
0
former
none
moderate
0
0
1
0
none
0
grade_1
45
0
1
138
107
0
3.9
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
53
23
F
secondary
peri_urban
21.8
normal
85
0
1
never
heavy
sedentary
0
1
1
1
type_2
5
grade_1
1
1
0
130
107
0
5.5
-1
10.5
1
-1
-1
0
0
0
0
0
0
0
0
0
1
ccb
1
0
none
0
0
0
poor
0
0
0
0
54
48
M
primary
urban
19
normal
66
0
1
never
moderate
moderate
0
0
1
0
none
0
grade_2
4
0
1
158
122
0
4.1
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
55
69
M
secondary
urban
30.5
obese
88
0
1
never
none
moderate
0
1
1
1
type_2
1
grade_2
20
1
0
152
112
0
5.1
-1
17.2
1
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
56
72
F
none
peri_urban
16
underweight
60
0
0
former
none
sedentary
1
1
1
1
type_2
3
grade_2
3
0
1
163
112
0
8.2
-1
12.8
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
57
40
F
tertiary
rural
27.4
overweight
87
0
0
never
none
moderate
1
0
1
0
none
0
grade_3
15
0
0
170
122
0
5.7
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
1
ace_inhibitor_arb
1
0
none
0
0
0
poor
0
1
0
0
58
63
F
none
urban
23.8
normal
85
0
1
never
moderate
sedentary
0
1
1
1
type_2
6
grade_1
0
1
1
146
109
0
12.7
-1
11.1
0
-1
-1
0
1
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
59
19
F
none
peri_urban
26.3
overweight
77
0
0
never
none
low
0
1
1
1
type_2
3
grade_1
0
1
1
155
119
0
9.5
-1
16.1
0
-1
-1
0
1
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
60
50
F
primary
rural
19.5
normal
84
0
0
never
none
high
0
1
1
1
type_2
0
grade_2
8
1
0
184
124
0
5.4
-1
9.6
1
-1
-1
0
0
0
0
0
0
0
0
0
1
ccb
0
0
none
0
0
0
moderate
1
0
0
0
61
60
F
secondary
urban
27.8
overweight
84
1
1
never
none
low
1
1
1
1
type_2
1
grade_1
1
1
1
152
98
0
10.9
-1
20.9
0
-1
-1
0
0
0
0
0
0
1
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
62
81
M
secondary
rural
26
overweight
90
0
0
former
none
low
0
1
1
1
type_2
8
grade_1
13
1
1
132
120
0
12.6
-1
12.9
0
-1
-1
0
1
0
1
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
63
46
F
primary
peri_urban
31.5
obese
93
0
1
never
none
moderate
1
0
1
0
none
0
grade_1
3
0
1
137
96
0
4.4
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
1
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
64
34
F
none
rural
22.5
normal
62
0
0
former
none
sedentary
0
0
1
0
none
0
grade_2
0
0
1
162
113
0
4.1
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
65
50
M
none
urban
26.8
overweight
99
0
0
never
none
moderate
0
1
0
0
type_2
3
none
0
1
0
130
68
1
4
-1
20.7
1
-1
-1
0
1
0
1
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
66
21
M
primary
urban
24.7
normal
85
0
0
never
none
low
1
1
1
1
type_1
6
grade_2
4
1
0
193
124
0
11.3
-1
9
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
67
24
M
secondary
urban
20.6
normal
78
1
1
never
moderate
low
1
1
0
0
type_2
4
none
0
1
0
127
84
1
21.3
-1
5
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
68
52
F
none
rural
16.3
underweight
68
1
1
never
none
low
1
1
1
1
type_2
3
grade_1
2
1
1
136
103
0
9.3
-1
13.5
0
-1
-1
0
0
0
0
0
1
0
0
0
0
none
0
0
none
0
0
1
not_applicable
0
1
0
0
69
46
F
secondary
peri_urban
25.4
overweight
78
0
1
never
none
high
0
0
1
0
none
0
grade_1
14
0
0
134
106
0
5.1
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
1
ace_inhibitor_arb
1
0
none
0
0
0
poor
1
1
0
0
70
70
F
secondary
peri_urban
16
underweight
77
0
0
never
moderate
high
0
1
1
1
type_2
3
grade_1
6
0
1
130
101
0
11.7
-1
7.5
0
-1
-1
0
1
0
0
0
1
0
0
0
0
none
0
1
metformin_glibenclamide
0
1
0
poor
0
0
0
0
71
21
M
secondary
urban
31.8
obese
108
0
0
never
none
sedentary
0
1
1
1
type_2
2
grade_2
10
1
0
174
123
0
15.5
-1
13.3
0
-1
-1
0
0
0
0
0
0
0
0
0
1
ccb
1
0
none
0
0
0
poor
0
1
0
0
72
62
M
primary
urban
23.5
normal
83
0
1
never
none
moderate
0
1
1
1
type_2
3
grade_3
2
0
0
196
133
0
12.5
-1
12.8
0
-1
-1
0
0
0
0
0
0
0
0
0
1
ccb
0
1
metformin
0
0
0
moderate
1
0
0
1
73
41
M
tertiary
rural
26.5
overweight
81
0
0
current
moderate
moderate
1
0
1
0
none
0
grade_2
8
0
1
150
118
0
3.9
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
74
71
F
secondary
rural
20.7
normal
60
0
0
current
moderate
sedentary
0
1
1
1
type_2
8
grade_2
4
1
1
150
97
0
8.9
-1
20.7
0
-1
-1
1
1
0
0
0
0
0
1
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
75
68
F
tertiary
peri_urban
30
obese
94
0
0
never
none
moderate
0
1
1
1
type_2
13
grade_3
2
0
1
172
116
0
10.4
-1
18
0
-1
-1
0
1
1
1
0
1
0
0
1
0
none
0
1
glibenclamide
0
0
0
good
0
0
0
0
76
61
F
secondary
rural
23.6
normal
100
0
0
never
none
low
0
1
1
1
type_2
1
grade_2
1
1
0
174
114
0
14.4
-1
24.1
0
-1
-1
0
0
0
0
1
0
0
1
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
77
52
M
secondary
rural
24.6
normal
78
0
0
never
moderate
moderate
0
1
0
0
type_2
0
none
0
1
0
142
80
0
9.7
-1
11.1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
78
45
F
tertiary
peri_urban
23.4
normal
90
0
1
never
moderate
sedentary
0
1
1
1
type_2
15
grade_2
15
0
1
175
132
0
16
-1
14.8
0
-1
-1
0
0
1
0
0
0
0
0
0
0
none
0
1
metformin
0
0
0
poor
0
0
0
0
79
54
F
primary
rural
24.6
normal
88
0
1
current
moderate
moderate
0
1
0
0
type_2
12
none
0
1
0
110
84
1
11.1
-1
5
0
-1
-1
0
1
0
1
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
80
48
F
primary
urban
17.7
underweight
64
0
0
current
moderate
low
0
0
1
0
none
0
grade_2
1
0
1
182
117
0
5.2
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
81
29
F
secondary
peri_urban
24.6
normal
75
0
0
current
none
sedentary
0
0
1
0
none
0
grade_1
0
0
1
136
107
0
4.7
-1
-1
0
-1
-1
1
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
82
65
F
none
urban
25.6
overweight
86
0
0
never
none
low
1
0
1
0
none
0
grade_2
0
0
1
179
120
0
6
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
1
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
83
61
F
secondary
rural
29.8
overweight
100
0
0
current
none
low
1
0
1
0
none
0
grade_2
4
0
1
168
117
0
5.2
-1
-1
0
-1
-1
1
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
84
31
M
secondary
urban
17.3
underweight
71
0
0
former
none
moderate
1
0
1
0
none
0
grade_2
9
0
1
153
111
0
7.2
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
85
43
M
tertiary
rural
26
overweight
83
0
1
never
none
high
1
0
1
0
none
0
grade_3
9
0
1
198
124
0
4.6
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
86
32
M
none
rural
26.3
overweight
77
1
1
never
none
sedentary
0
1
1
1
type_2
8
grade_3
3
1
1
177
130
0
12.7
-1
15.8
0
-1
-1
0
0
1
0
0
0
0
0
1
0
none
0
0
none
0
0
0
not_applicable
0
0
0
0
87
23
M
primary
urban
23.9
normal
77
1
1
never
none
low
0
1
1
1
type_2
1
grade_1
3
1
1
130
125
0
6.3
-1
17.9
1
-1
-1
0
0
0
0
0
1
0
0
0
0
none
0
0
none
0
0
1
not_applicable
0
0
0
0
88
33
F
secondary
peri_urban
24.2
normal
98
0
1
never
heavy
sedentary
1
0
1
0
none
0
grade_2
4
0
1
201
121
0
4.2
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
1
89
19
M
tertiary
urban
28
overweight
94
0
0
former
heavy
sedentary
0
1
0
0
type_2
1
none
0
0
0
118
69
1
7.4
-1
6.9
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
1
metformin_glibenclamide
0
0
0
moderate
0
0
0
0
90
74
F
tertiary
peri_urban
26.8
overweight
108
0
1
never
none
low
1
0
1
0
none
0
grade_3
2
0
1
189
115
0
5
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
1
91
69
M
none
rural
22.5
normal
79
0
0
never
moderate
high
1
1
1
1
type_2
11
grade_2
2
1
1
166
119
0
17.8
-1
6.7
0
-1
-1
0
0
1
1
0
0
0
0
1
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
92
83
F
primary
rural
18.3
underweight
64
0
0
never
heavy
sedentary
0
0
1
0
none
0
grade_2
4
0
0
184
126
0
6.3
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
1
ace_inhibitor_arb
0
0
none
0
0
0
moderate
1
0
0
0
93
61
F
primary
peri_urban
30.3
obese
93
1
1
never
moderate
moderate
1
1
1
1
type_2
1
grade_3
7
1
1
170
131
0
11.6
-1
9.2
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
94
43
F
primary
urban
22.8
normal
80
0
0
never
moderate
low
1
1
1
1
type_2
1
grade_2
3
0
1
164
113
0
5.4
-1
10.8
1
-1
-1
0
0
1
0
0
0
1
0
0
0
none
0
1
metformin
0
0
0
good
0
0
0
0
95
61
F
primary
urban
18.4
underweight
60
1
1
never
none
sedentary
0
1
0
0
type_2
3
none
0
0
0
131
84
1
7.3
-1
17.7
0
-1
-1
0
1
0
0
0
0
0
0
1
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
96
55
F
primary
peri_urban
20.9
normal
79
1
0
current
none
low
1
1
1
1
type_2
8
grade_2
7
1
0
167
122
0
9.8
-1
15.1
0
-1
-1
0
0
0
0
1
1
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
0
0
0
97
27
M
primary
rural
23.4
normal
100
1
0
never
none
moderate
0
1
1
1
type_2
0
grade_1
3
1
1
151
107
0
11.4
-1
8.6
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
0
98
49
M
tertiary
urban
22.4
normal
85
1
1
never
none
low
1
1
1
1
type_2
0
grade_3
0
1
1
181
131
0
8.3
-1
10.1
0
-1
-1
0
0
0
0
0
1
0
0
0
0
none
0
0
none
0
0
0
not_applicable
0
1
0
1
99
70
F
secondary
rural
25.4
overweight
69
0
1
former
none
low
0
0
1
0
none
0
grade_1
0
0
1
134
113
0
4.8
-1
-1
0
-1
-1
0
0
0
0
0
0
0
0
0
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
100
53
M
primary
rural
19.8
normal
61
0
0
current
none
sedentary
0
1
1
1
type_2
1
grade_1
1
1
1
134
109
0
16.4
-1
10.5
0
-1
-1
0
0
0
0
0
0
0
0
1
0
none
0
0
none
0
0
0
not_applicable
1
1
0
0
End of preview. Expand in Data Studio

Diabetes & Hypertension Dual Burden Dataset

Abstract

This dataset provides 30,000 simulated records (10,000 per scenario) of adults with diabetes and/or hypertension attending health facilities in sub-Saharan Africa. Each record contains 55+ variables including demographics, BMI, risk factors, BP and glucose measurements, HbA1c, complications (retinopathy, nephropathy, CVD, stroke), treatment (antihypertensives, oral hypoglycaemics, insulin), medication adherence, and control status. Three settings: urban NCD clinic, district PHC, and rural outreach.

1. Introduction

SSA has 24 million adults with diabetes, 54% undiagnosed (IDF 2021). Hypertension prevalence is 30.8% with only 7% achieving BP control (Noubiap et al., J Hypertens 2019). HbA1c availability is <5% in many SSA countries and insulin access ranges 10–60% (Pastakia et al., Lancet Diabetes Endocrinol 2017). The dual burden of diabetes and hypertension accelerates cardiovascular complications.

This dataset is entirely simulated. It must not be used for clinical decision-making.

2. Methodology

2.1 Parameterization

Parameter Value Source
Diabetes prevalence (SSA) 4.5% (pop), higher in clinic IDF 2021
Undiagnosed diabetes 54% IDF 2021
HTN prevalence (SSA) 30.8% Noubiap et al., J Hypertens 2019
HTN awareness / treatment / control 27% / 18% / 7% Ataklte et al., 2015
Diabetic retinopathy (SSA) 31–52% Asmelash & Asmelash, 2019
Insulin access 10–60% Pastakia et al., 2017

2.2 Scenario Design

Scenario Setting HbA1c Insulin Access BP Control Newly Diagnosed
Urban NCD clinic Tertiary NCD clinic Yes 60% 7% 37–51%
District PHC District health centre No 25% 6% 40–69%
Rural outreach Rural screening No 10% 4% 31–83%

3. Schema

Column Type Description
id int Unique identifier
age_years int Patient age
sex categorical M / F
education categorical none / primary / secondary / tertiary
residence categorical urban / peri_urban / rural
bmi float Body mass index
bmi_category categorical underweight / normal / overweight / obese
waist_circumference_cm float Waist circumference
family_history_diabetes binary Family history of DM
family_history_hypertension binary Family history of HTN
smoking_status categorical never / current / former
alcohol_use categorical none / moderate / heavy
physical_activity categorical sedentary / low / moderate / high
salt_intake_high binary High salt intake
has_diabetes binary Diabetes diagnosis
has_hypertension binary Hypertension diagnosis
dual_diagnosis binary Both DM and HTN
diabetes_type categorical type_1 / type_2 / none
diabetes_duration_years int Years since DM diagnosis
hypertension_grade categorical grade_1 / grade_2 / grade_3 / none
hypertension_duration_years int Years since HTN diagnosis
newly_diagnosed_dm binary Previously undiagnosed DM
newly_diagnosed_htn binary Previously undiagnosed HTN
systolic_bp int Systolic blood pressure
diastolic_bp int Diastolic blood pressure
bp_controlled binary BP <140/90
fasting_glucose_mmol float Fasting glucose (-1 if not done)
hba1c_percent float HbA1c (-1 if not done)
random_glucose_mmol float Random glucose (-1 if not done)
glycaemic_control binary HbA1c <7% or FG <7 mmol/L
total_cholesterol float Total cholesterol (-1 if not done)
ldl float LDL cholesterol (-1 if not done)
hiv_positive binary HIV status
retinopathy binary Diabetic retinopathy
nephropathy binary Diabetic nephropathy
neuropathy binary Diabetic neuropathy
diabetic_foot binary Diabetic foot complications
cardiovascular_disease binary CVD
stroke_history binary Previous stroke
heart_failure binary Heart failure
ckd binary Chronic kidney disease
on_antihypertensive binary On antihypertensive
antihypertensive_class categorical ACEi/ARB / CCB / thiazide / beta_blocker
antihypertensive_combination binary Combination therapy
on_oral_hypoglycaemic binary On oral hypoglycaemic
oral_hypoglycaemic_type categorical metformin / glibenclamide / combination
on_insulin binary On insulin
on_statin binary On statin
on_aspirin binary On aspirin
medication_adherence categorical good / moderate / poor / not_applicable
lifestyle_counselling binary Received lifestyle counselling
diet_counselling binary Received diet counselling
hospitalised_past_year binary Hospitalised in past year
emergency_visit_past_year binary Emergency visit in past year

4. Validation

Validation Report

Key validation checks:

  • BP control: 7% urban → 6% district → 4% rural, consistent with Ataklte et al. ✓
  • Undiagnosed HTN: Increases from urban to rural ✓
  • Insulin access gradient: 60% → 25% → 10% ✓
  • Complications: Retinopathy, neuropathy prevalence consistent with Asmelash 2019 ✓
  • Medication adherence: 40% poor, reflecting SSA literature ✓

5. Usage

from datasets import load_dataset
dataset = load_dataset("electricsheepafrica/diabetes-hypertension-ncd", "district_phc")
df = dataset["train"].to_pandas()
python generate_dataset.py --all-scenarios --n 10000 --seed 42

6. Limitations

  • Simulated: Not derived from real NCD clinic data.
  • Cross-sectional: Single visit, no longitudinal treatment response.
  • No retinal images: Retinopathy is binary, not graded with imaging.
  • Simplified pharmacology: No dose titration or polypharmacy interactions.
  • Clinic-based prevalence: Higher than population prevalence due to selection.

7. References

  1. IDF Diabetes Atlas 10th ed (2021). International Diabetes Federation.
  2. Ataklte F, et al. (2015). HTN in SSA. BMC Cardiovasc Disord, 15:46.
  3. Pastakia SD, et al. (2017). DM management in SSA. Lancet Diabetes Endocrinol, 5(8):622–667.
  4. Noubiap JJ, et al. (2019). HTN prevalence SSA. J Hypertens, 37(5):878–889.
  5. Price AJ, et al. (2018). NCD risk factors SSA. Lancet Glob Health, 6(9):e1010.
  6. Asmelash D, Asmelash Y (2019). Diabetic complications in SSA. J Diabetes Res, 2019:4321058.
  7. Kengne AP, et al. (2005). CVD complications of DM in SSA. Lancet, 366(9482):1627.
  8. WHO (2021). HEARTS technical package for CVD management.

Citation

@dataset{esa_dm_htn_2025,
  title={Diabetes and Hypertension Dual Burden Dataset},
  author={Electric Sheep Africa},
  year={2025},
  publisher={Hugging Face},
  url={https://huggingface.co/datasets/electricsheepafrica/diabetes-hypertension-ncd}
}

License

CC-BY-4.0

Downloads last month
58