Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
age_years
int64
sex
string
hbv_vaccination_history
string
birth_dose_received
int64
hiv_coinfection
int64
on_art
int64
alcohol_use
string
aflatoxin_exposure
int64
family_history_hcc
int64
diabetes
int64
hbsag_positive
int64
hbeag_positive
int64
hbv_dna_iu_ml
int64
high_viral_load
int64
alt_u_l
int64
alt_elevated
int64
ast_u_l
int64
platelets
int64
apri_score
float64
fibrosis_stage
string
cirrhosis
int64
significant_fibrosis
int64
fibroscan_done
int64
fibroscan_kpa
int64
hepatocellular_carcinoma
int64
hcc_stage
string
decompensated_cirrhosis
int64
ascites
int64
variceal_bleed
int64
hepatic_encephalopathy
int64
afp_level
int64
ultrasound_done
int64
treatment_eligible
int64
on_antiviral
int64
antiviral_type
string
antiviral_adherence
string
viral_suppression
int64
outcome_1yr
string
referred_tertiary
int64
1
51
F
partial
0
0
0
heavy
0
0
0
1
0
-1
0
50
1
30
287
261.32
F2
0
1
0
-1
0
none
0
0
0
0
-1
1
1
0
none
not_applicable
0
alive
0
2
49
M
complete
0
0
0
none
0
1
0
1
0
-1
0
26
0
22
171
321.64
F1
0
0
0
-1
0
none
0
0
0
0
3
0
0
0
none
not_applicable
0
alive
0
3
36
F
none
0
0
0
heavy
0
0
0
1
0
-1
0
48
1
31
237
327
F3
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
4
33
F
none
0
0
0
moderate
0
0
0
1
0
-1
0
28
0
23
271
212.18
F1
0
0
0
-1
0
none
0
0
0
0
3
0
0
0
none
not_applicable
0
alive
0
5
46
F
partial
0
0
0
heavy
1
1
0
1
0
-1
0
25
0
30
248
302.42
F3
0
1
0
-1
0
none
0
0
0
0
5
0
1
0
none
not_applicable
0
alive
0
6
30
F
complete
0
0
0
heavy
0
0
0
1
0
-1
0
15
0
24
270
222.22
F1
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
7
49
M
partial
0
0
0
moderate
1
0
1
1
0
-1
0
42
1
51
148
861.49
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
8
23
F
none
0
0
0
none
0
0
0
1
0
-1
0
5
0
34
171
497.08
F1
0
0
0
-1
0
none
0
0
0
0
13
0
0
0
none
not_applicable
0
alive
0
9
38
F
none
0
0
0
moderate
0
0
0
1
0
-1
0
15
0
19
347
136.89
F3
0
1
0
-1
0
none
0
0
0
0
12
0
1
0
none
not_applicable
0
alive
0
10
57
M
none
0
0
0
heavy
0
0
0
1
0
-1
0
61
1
33
195
423.08
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
11
25
M
none
0
0
0
heavy
1
0
0
1
0
-1
0
34
0
27
240
281.25
F1
0
0
0
-1
0
none
0
0
0
0
-1
1
0
0
none
not_applicable
0
alive
0
12
53
F
none
0
0
0
moderate
0
0
0
1
0
-1
0
28
0
45
252
446.43
F4
1
1
0
-1
0
none
0
0
0
0
9
0
1
1
tenofovir
moderate
0
alive
0
13
69
M
complete
1
0
0
heavy
0
0
0
1
0
-1
0
79
1
22
167
329.34
F3
0
1
0
-1
0
none
0
0
0
0
18
0
1
0
none
not_applicable
0
alive
0
14
33
M
partial
0
0
0
heavy
0
0
0
1
0
-1
0
27
0
27
137
492.7
F0
0
0
0
-1
0
none
0
0
0
0
5
0
0
0
none
not_applicable
0
alive
0
15
43
M
complete
0
1
1
none
1
0
0
1
1
-1
0
127
1
33
248
332.66
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
16
48
F
none
0
0
0
moderate
0
0
0
1
0
-1
0
27
0
5
239
52.3
F0
0
0
0
-1
0
none
0
0
0
0
6
0
0
0
none
not_applicable
0
alive
0
17
32
F
none
0
0
0
moderate
0
0
0
1
0
-1
0
36
0
19
279
170.25
F0
0
0
0
-1
0
none
0
0
0
0
-1
1
0
0
none
not_applicable
0
alive
0
18
24
F
none
0
0
0
none
0
0
0
1
0
-1
0
21
0
14
221
158.37
F1
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
19
39
M
complete
0
0
0
moderate
0
0
0
1
1
11,285,866
1
51
1
42
284
369.72
F3
0
1
0
-1
0
none
0
0
0
0
3
0
1
0
none
not_applicable
0
alive
0
20
64
M
none
0
0
0
moderate
0
0
0
1
0
-1
0
52
1
42
253
415.02
F4
1
1
0
-1
0
none
1
1
0
1
1
0
1
0
none
not_applicable
0
alive
0
21
69
M
complete
0
0
0
heavy
1
0
0
1
0
6,979
0
45
1
19
209
227.27
F3
0
1
0
-1
0
none
0
0
0
0
-1
0
1
1
tenofovir
good
1
alive
0
22
32
F
none
0
0
0
heavy
0
0
0
1
0
221
0
62
1
31
169
458.58
F1
0
0
0
-1
0
none
0
0
0
0
6
0
0
0
none
not_applicable
0
alive
0
23
50
F
none
0
0
0
moderate
1
1
0
1
0
-1
0
43
1
27
239
282.43
F0
0
0
0
-1
0
none
0
0
0
0
1
0
0
0
none
not_applicable
0
alive
0
24
56
M
none
0
0
0
none
1
0
0
1
0
-1
0
41
1
29
238
304.62
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
1
tenofovir
moderate
1
alive
0
25
40
F
partial
0
0
0
moderate
0
0
0
1
0
-1
0
39
0
51
225
566.67
F4
1
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
26
32
M
complete
1
0
0
none
1
0
0
1
0
3
0
5
0
50
273
457.88
F2
0
1
0
-1
0
none
0
0
0
0
5
0
1
0
none
not_applicable
0
alive
0
27
46
M
partial
0
1
1
moderate
1
0
0
1
0
-1
0
17
0
50
208
600.96
F2
0
1
0
-1
0
none
0
0
0
0
8
0
1
0
none
not_applicable
0
alive
0
28
32
F
none
0
0
0
none
0
0
0
1
0
9
0
18
0
33
209
394.74
F2
0
1
0
-1
0
none
0
0
0
0
2
0
1
0
none
not_applicable
0
alive
0
29
40
F
none
0
0
0
moderate
0
0
0
1
0
-1
0
17
0
28
240
291.67
F2
0
1
0
-1
0
none
0
0
0
0
11
1
1
0
none
not_applicable
0
alive
0
30
32
F
none
0
0
0
moderate
0
0
0
1
0
-1
0
29
0
35
75
1,166.67
F4
1
1
0
-1
0
none
0
0
0
0
17
0
1
0
none
not_applicable
0
alive
0
31
57
M
complete
0
0
0
none
1
0
0
1
0
-1
0
5
0
37
185
500
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
32
24
M
none
0
0
0
moderate
0
0
0
1
0
-1
0
49
1
33
183
450.82
F2
0
1
0
-1
0
none
0
0
0
0
9
0
1
1
tenofovir
poor
0
alive
0
33
65
F
none
0
0
0
none
1
0
0
1
1
-1
0
5
0
60
230
652.17
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
34
38
F
none
0
0
0
none
1
0
0
1
1
-1
0
67
1
5
218
57.34
F1
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
35
61
F
partial
0
0
0
none
1
0
0
1
0
-1
0
43
1
35
209
418.66
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
36
50
M
partial
0
0
0
moderate
0
0
0
1
1
-1
0
40
0
15
165
227.27
F1
0
0
0
-1
0
none
0
0
0
0
2
0
0
0
none
not_applicable
0
alive
0
37
49
M
none
0
0
0
none
1
0
1
1
0
-1
0
5
0
40
198
505.05
F3
0
1
0
-1
0
none
0
0
0
0
1
0
1
0
none
not_applicable
0
alive
0
38
27
F
none
0
0
0
moderate
1
1
0
1
1
-1
0
112
1
5
85
147.06
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
died
0
39
65
M
complete
0
0
0
heavy
0
0
0
1
0
-1
0
52
1
39
246
396.34
F1
0
0
0
-1
0
none
0
0
0
0
11
1
0
0
none
not_applicable
0
alive
0
40
22
M
complete
0
0
0
none
0
0
0
1
1
-1
0
82
1
10
216
115.74
F0
0
0
0
-1
0
none
0
0
0
0
-1
1
0
0
none
not_applicable
0
alive
0
41
63
F
none
0
1
1
none
0
0
1
1
0
-1
0
55
1
30
169
443.79
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
42
65
M
none
0
1
0
moderate
0
1
0
1
0
-1
0
40
0
12
191
157.07
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
43
67
M
complete
0
0
0
moderate
1
0
0
1
0
437,751
1
71
1
24
334
179.64
F1
0
0
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
44
38
M
partial
0
0
0
none
1
0
0
1
0
-1
0
41
1
36
103
873.79
F4
1
1
0
-1
1
early_BCLC_A
0
0
0
0
-1
0
1
0
none
not_applicable
0
died
0
45
39
M
none
0
0
0
moderate
0
0
0
1
0
-1
0
32
0
29
233
311.16
F4
1
1
0
-1
0
none
0
0
0
0
9
0
1
0
none
not_applicable
0
alive
0
46
60
F
none
0
0
0
none
1
0
0
1
0
-1
0
5
0
35
226
387.17
F3
0
1
0
-1
0
none
0
0
0
0
-1
1
1
0
none
not_applicable
0
alive
0
47
26
M
none
0
0
0
none
0
0
0
1
0
-1
0
45
1
50
107
1,168.22
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
48
43
M
none
0
0
0
none
1
0
0
1
0
-1
0
46
1
12
214
140.19
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
49
44
M
none
0
0
0
heavy
0
0
0
1
0
-1
0
20
0
50
190
657.89
F3
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
50
49
M
complete
0
1
1
none
1
0
0
1
0
-1
0
14
0
46
195
589.74
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
51
66
M
complete
0
0
0
moderate
0
0
0
1
0
-1
0
32
0
35
266
328.95
F2
0
1
0
-1
0
none
0
0
0
0
7
0
1
0
none
not_applicable
0
alive
0
52
25
M
partial
0
0
0
moderate
1
0
0
1
0
-1
0
5
0
14
158
221.52
F0
0
0
0
-1
0
none
0
0
0
0
11
0
0
0
none
not_applicable
0
alive
0
53
34
F
complete
0
0
0
moderate
0
0
0
1
0
-1
0
44
1
22
219
251.14
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
54
40
F
none
0
0
0
heavy
0
0
0
1
0
-1
0
30
0
31
366
211.75
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
55
37
F
complete
1
1
1
moderate
0
0
0
1
0
-1
0
30
0
6
165
90.91
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
56
27
F
none
0
0
0
moderate
1
0
0
1
1
-1
0
23
0
41
230
445.65
F4
1
1
0
-1
0
none
0
0
0
0
10
0
1
0
none
not_applicable
0
alive
0
57
37
F
none
0
0
0
heavy
0
0
0
1
0
-1
0
29
0
12
205
146.34
F0
0
0
0
-1
0
none
0
0
0
0
6
0
0
0
none
not_applicable
0
alive
0
58
18
M
none
0
0
0
none
0
0
0
1
1
-1
0
5
0
26
178
365.17
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
59
40
M
none
0
0
0
none
0
0
0
1
1
-1
0
55
1
32
277
288.81
F0
0
0
0
-1
0
none
0
0
0
0
8
0
0
0
none
not_applicable
0
alive
0
60
70
M
none
0
0
0
none
0
0
0
1
0
-1
0
26
0
24
151
397.35
F2
0
1
0
-1
0
none
0
0
0
0
7
0
1
0
none
not_applicable
0
alive
0
61
26
M
partial
0
0
0
none
1
0
0
1
0
-1
0
47
1
27
311
217.04
F1
0
0
0
-1
0
none
0
0
0
0
17
0
0
0
none
not_applicable
0
alive
0
62
50
M
none
0
0
0
none
1
0
0
1
0
-1
0
17
0
64
237
675.11
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
1
tenofovir
good
1
alive
0
63
74
F
none
0
0
0
none
0
0
0
1
0
-1
0
24
0
13
148
219.59
F2
0
1
0
-1
0
none
0
0
0
0
9
0
1
1
tenofovir
good
1
alive
0
64
42
M
none
0
0
0
moderate
0
0
0
1
0
-1
0
65
1
18
238
189.08
F1
0
0
0
-1
0
none
0
0
0
0
7
1
0
0
none
not_applicable
0
alive
0
65
54
M
partial
0
0
0
none
0
0
0
1
0
472,081
1
27
0
35
182
480.77
F0
0
0
0
-1
1
advanced_BCLC_C
0
0
0
0
-1
1
0
0
none
not_applicable
0
died
0
66
38
M
none
0
0
0
none
0
0
0
1
0
-1
0
26
0
24
92
652.17
F1
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
67
44
M
none
0
0
0
none
0
0
0
1
0
-1
0
28
0
12
268
111.94
F3
0
1
0
-1
0
none
0
0
0
0
17
1
1
0
none
not_applicable
0
alive
0
68
53
M
partial
0
0
0
moderate
1
0
0
1
0
-1
0
49
1
5
155
80.65
F4
1
1
0
-1
0
none
0
0
0
0
-1
1
1
0
none
not_applicable
0
alive
0
69
48
M
none
0
0
0
heavy
0
1
0
1
0
-1
0
29
0
38
142
669.01
F0
0
0
0
-1
1
terminal_BCLC_D
0
0
0
0
196
0
0
0
none
not_applicable
0
died
0
70
39
M
complete
0
0
0
none
0
1
0
1
0
-1
0
5
0
42
244
430.33
F4
1
1
0
-1
1
terminal_BCLC_D
0
0
0
0
-1
0
1
0
none
not_applicable
0
died
0
71
43
M
none
0
0
0
none
0
0
0
1
0
15,606
0
5
0
57
256
556.64
F1
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
72
28
M
none
0
0
0
heavy
0
0
0
1
0
-1
0
79
1
6
295
50.85
F1
0
0
0
-1
0
none
0
0
0
0
12
0
0
0
none
not_applicable
0
alive
0
73
46
M
none
0
0
0
moderate
0
0
0
1
1
-1
0
40
0
33
214
385.51
F1
0
0
0
-1
0
none
0
0
0
0
13
0
0
0
none
not_applicable
0
alive
0
74
40
M
partial
0
1
0
none
0
0
0
1
1
-1
0
32
0
52
213
610.33
F4
1
1
0
-1
0
none
1
1
0
0
10
0
1
0
none
not_applicable
0
alive
0
75
30
M
none
0
0
0
moderate
0
0
0
1
1
-1
0
97
1
38
226
420.35
F2
0
1
0
-1
0
none
0
0
0
0
12
0
1
1
tenofovir
good
1
alive
0
76
52
M
none
0
0
0
moderate
0
0
0
1
0
-1
0
41
1
26
249
261.04
F1
0
0
0
-1
0
none
0
0
0
0
8
1
0
0
none
not_applicable
0
alive
0
77
33
M
complete
0
0
0
moderate
0
0
0
1
0
-1
0
31
0
23
284
202.46
F0
0
0
0
-1
1
advanced_BCLC_C
0
0
0
0
248
0
0
0
none
not_applicable
0
died
0
78
28
M
complete
0
0
0
heavy
0
0
0
1
0
-1
0
62
1
26
113
575.22
F2
0
1
0
-1
0
none
0
0
0
0
1
1
1
0
none
not_applicable
0
alive
0
79
55
M
none
0
0
0
none
0
0
0
1
0
-1
0
22
0
12
229
131
F2
0
1
0
-1
0
none
0
0
0
0
6
0
1
0
none
not_applicable
0
alive
0
80
31
M
partial
0
0
0
none
1
0
0
1
0
2,093
0
5
0
5
276
45.29
F0
0
0
0
-1
0
none
0
0
0
0
1
0
0
0
none
not_applicable
0
alive
0
81
58
M
complete
0
0
0
moderate
1
0
0
1
0
-1
0
45
1
32
206
388.35
F4
1
1
0
-1
1
intermediate_BCLC_B
1
1
0
0
2,490
0
1
1
tenofovir
moderate
0
died
0
82
63
F
none
0
1
0
none
0
0
0
1
0
-1
0
5
0
44
220
500
F2
0
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
83
28
M
partial
0
0
0
moderate
0
0
0
1
0
-1
0
30
0
6
243
61.73
F4
1
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
84
65
M
none
0
0
0
none
0
0
0
1
0
-1
0
30
0
5
279
44.8
F3
0
1
0
-1
0
none
0
0
0
0
1
0
1
0
none
not_applicable
0
alive
0
85
21
F
none
0
0
0
heavy
1
0
0
1
0
-1
0
24
0
11
244
112.7
F3
0
1
0
-1
0
none
0
0
0
0
9
0
1
0
none
not_applicable
0
alive
0
86
48
M
none
0
0
0
moderate
1
0
0
1
0
-1
0
32
0
14
227
154.19
F4
1
1
0
-1
0
none
1
1
1
1
17
1
1
1
entecavir
moderate
0
alive
0
87
49
F
none
0
0
0
none
1
0
0
1
1
-1
0
106
1
18
185
243.24
F2
0
1
0
-1
0
none
0
0
0
0
4
0
1
0
none
not_applicable
0
alive
0
88
30
F
partial
0
0
0
moderate
1
0
0
1
0
-1
0
13
0
14
211
165.88
F0
0
0
0
-1
0
none
0
0
0
0
22
0
0
0
none
not_applicable
0
alive
0
89
35
M
none
0
0
0
heavy
0
0
0
1
0
-1
0
51
1
31
73
1,061.64
F4
1
1
0
-1
0
none
0
0
0
0
-1
0
1
0
none
not_applicable
0
alive
0
90
23
M
none
0
0
0
moderate
1
0
0
1
1
-1
0
26
0
36
201
447.76
F1
0
0
0
-1
0
none
0
0
0
0
10
0
0
0
none
not_applicable
0
alive
0
91
62
M
none
0
0
0
none
0
0
0
1
0
-1
0
5
0
41
293
349.83
F2
0
1
0
-1
0
none
0
0
0
0
12
0
1
0
none
not_applicable
0
alive
0
92
54
M
none
0
0
0
moderate
0
0
0
1
0
-1
0
23
0
30
272
275.74
F4
1
1
0
-1
0
none
1
0
0
1
4
0
1
0
none
not_applicable
0
died
1
93
43
F
none
0
0
0
none
0
1
0
1
0
1,536
0
48
1
24
234
256.41
F0
0
0
0
-1
0
none
0
0
0
0
-1
0
0
0
none
not_applicable
0
alive
0
94
35
M
none
0
0
0
none
1
0
0
1
0
3
0
40
0
14
231
151.52
F3
0
1
0
-1
0
none
0
0
0
0
4
0
1
0
none
not_applicable
0
alive
0
95
30
M
none
0
0
0
heavy
1
0
0
1
1
-1
0
85
1
22
246
223.58
F4
1
1
0
-1
0
none
1
0
0
0
13
0
1
0
none
not_applicable
0
died
0
96
64
M
none
0
0
0
heavy
0
0
0
1
0
-1
0
17
0
49
138
887.68
F4
1
1
0
-1
1
terminal_BCLC_D
1
1
0
0
-1
0
1
0
none
not_applicable
0
died
0
97
28
M
complete
0
0
0
heavy
0
0
0
1
0
-1
0
29
0
21
229
229.26
F2
0
1
0
-1
0
none
0
0
0
0
4
1
1
0
none
not_applicable
0
alive
0
98
35
M
none
0
0
0
none
0
0
0
1
0
-1
0
39
0
53
249
532.13
F1
0
0
0
-1
0
none
0
0
0
0
6
0
0
0
none
not_applicable
0
alive
0
99
42
M
none
0
0
0
heavy
1
0
0
1
0
-1
0
33
0
22
352
156.25
F0
0
0
0
-1
0
none
0
0
0
0
-1
1
0
0
none
not_applicable
0
alive
0
100
61
M
none
0
0
0
none
0
0
0
1
1
767,941,624
1
38
0
20
254
196.85
F4
1
1
0
-1
0
none
0
0
0
0
7
0
1
0
none
not_applicable
0
alive
0
End of preview. Expand in Data Studio

Hepatitis B & Liver Disease Dataset

Abstract

This dataset provides 30,000 simulated records (10,000 per scenario) of adults with chronic hepatitis B across sub-Saharan African settings. Each record contains 50+ variables including HBV markers (HBsAg, HBeAg, HBV DNA, ALT), liver fibrosis staging (Metavir, APRI, FibroScan), complications (HCC with BCLC staging, decompensated cirrhosis, variceal bleeding), antiviral treatment, and 1-year outcomes. Three settings: hepatology referral centre, district hospital, and community screening programme.

1. Introduction

Sub-Saharan Africa has 60 million people chronically infected with HBV, with HBsAg carrier rates of 5-20% (Spearman et al., 2021). WHO estimates 254 million living with chronic HBV globally, causing 1.1 million deaths in 2022 from cirrhosis and HCC (WHO 2024). HCC incidence in SSA is projected to double by 2040 due to the large chronic HBV reservoir. Only ~2% of eligible patients receive antiviral treatment in SSA (Shimakawa et al., 2016). The PROLIFICA study in Gambia found HBeAg positivity of 18%, significant fibrosis in 8.4%, and treatment eligibility of 12% among HBsAg+ adults (Lemoine et al., 2016).

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

2. Methodology

2.1 Parameterization

Parameter Value Source
Chronic HBV in SSA 60 million Spearman et al., 2021
HBsAg carrier rate (SSA) 5-20% Multiple sources
HBeAg+ among HBsAg+ 18% PROLIFICA, Lemoine et al., 2016
Significant fibrosis 8.4% PROLIFICA 2016
Treatment eligibility 12% PROLIFICA 2016
On treatment (SSA) ~2% of eligible Shimakawa et al., 2016
HCC 5-year survival (SSA) <10% Maponga et al., 2022
Global HBV deaths 1.1M (2022) WHO 2024

2.2 Scenario Design

Scenario Facility FibroScan HBV DNA On Treatment HCC Mortality
Hepatology centre Referral centre Yes Yes 27% 70%
District hospital Basic ALT/US No No 8% 85%
Community screening HBsAg rapid test No No 1% 95%

3. Schema

Column Type Description
id int Unique identifier
age_years int Patient age
sex categorical M / F
hbv_vaccination_history categorical none / partial / complete
birth_dose_received binary HBV birth dose received
hiv_coinfection binary HIV co-infection
on_art binary On ART (if HIV+)
alcohol_use categorical none / moderate / heavy
aflatoxin_exposure binary Aflatoxin exposure
family_history_hcc binary Family history HCC
diabetes binary Diabetes
hbsag_positive binary HBsAg positive (all)
hbeag_positive binary HBeAg positive
hbv_dna_iu_ml int HBV DNA (-1 if not done)
high_viral_load binary HBV DNA >20,000 IU/mL
alt_u_l int ALT level
alt_elevated binary ALT >40 U/L
ast_u_l int AST level
platelets int Platelet count
apri_score float APRI score
fibrosis_stage categorical F0 / F1 / F2 / F3 / F4
cirrhosis binary F4 fibrosis
significant_fibrosis binary F2+
fibroscan_done binary FibroScan performed
fibroscan_kpa float FibroScan value (kPa)
hepatocellular_carcinoma binary HCC
hcc_stage categorical early_BCLC_A / intermediate_B / advanced_C / terminal_D
decompensated_cirrhosis binary Decompensated cirrhosis
ascites binary Ascites
variceal_bleed binary Variceal bleeding
hepatic_encephalopathy binary Hepatic encephalopathy
afp_level int AFP level (-1 if not done)
ultrasound_done binary Ultrasound screening
treatment_eligible binary Eligible for antiviral
on_antiviral binary On antiviral treatment
antiviral_type categorical tenofovir / entecavir / tenofovir_art / none
antiviral_adherence categorical good / moderate / poor / not_applicable
viral_suppression binary Viral suppression achieved
outcome_1yr categorical alive / died
referred_tertiary binary Referred to tertiary

4. Validation

Validation Report

Key validation checks:

  • HBeAg+ ~18%: Consistent with PROLIFICA ✓
  • Treatment gap: 27% → 8% → 1%, reflecting SSA reality ✓
  • HCC ~6-7%: Higher than population (clinic-based) ✓
  • Late HCC presentation: 65% advanced/terminal BCLC stage ✓
  • Risk factor enrichment: Cirrhosis, male, age >50, aflatoxin in HCC cases ✓
  • Fibrosis distribution: F0-F1 dominant, F4 ~13% ✓

5. Usage

from datasets import load_dataset
dataset = load_dataset("electricsheepafrica/hepatitis-b-liver-disease", "district_hospital")
df = dataset["train"].to_pandas()
python generate_dataset.py --all-scenarios --n 10000 --seed 42

6. Limitations

  • Simulated: Not derived from real hepatology registries.
  • No imaging: Ultrasound/CT findings are binary, not imaged.
  • No HBV genotype: SSA genotypes (A, D, E) not modelled.
  • Simplified HCC staging: BCLC categorical, no tumour size/number.
  • No longitudinal: Single timepoint, no treatment response curves.

7. References

  1. WHO (2024). Updated guidelines for chronic HBV. Hepatitis B fact sheet.
  2. Spearman CW, et al. (2021). HBV in SSA. World J Gastroenterol, 27(30):5003.
  3. WHO Africa/BMC Glob Pub Health (2023). 82M PLWHB in Africa.
  4. Maponga TG, et al. (2022). HCC in SSA. Dig Dis Sci, 67(10):4648.
  5. Lemoine M, et al. (2016). PROLIFICA Gambia. Lancet Gastro Hepatol, 1(2):97.
  6. Shimakawa Y, et al. (2016). HBV elimination framework. J Hepatol, 65(1 Suppl):S209.
  7. Stockdale AJ, et al. (2020). HBV SSA meta-analysis. J Hepatol, 73(3):533.
  8. WHO (2024). Hepatitis B fact sheet.

Citation

@dataset{esa_hbv_2025,
  title={Hepatitis B and Liver Disease Dataset},
  author={Electric Sheep Africa},
  year={2025},
  publisher={Hugging Face},
  url={https://huggingface.co/datasets/electricsheepafrica/hepatitis-b-liver-disease}
}

License

CC-BY-4.0

Downloads last month
43