These datasets were utilized for the thesis "The use of a high-sensitivity droplet digital PCR assay for risk prediction in chronic hepatitis B". The datasets involved chronic hepatitis B patients either on antiviral therapy or with hepatitis B surface antigen seroclearance, with all patients were recruited from Queen Mary Hospital Hong Kong. These datasets encompassed clinical and laboratory data from these patients.