Previously submitted to: JMIR Formative Research (no longer under consideration since May 12, 2025)
Date Submitted: Mar 15, 2025
Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.
Impact of Data Types on Machine Learning Performance in LLM-Assisted Content Analysis (LACA) of Hospital Online Reviews
ABSTRACT
Background:
LLM-Assisted Content Analysis (LACA) can be utilized to conduct thematic analysis on online reviews. Traditional thematic analysis involves binary thematic coding (0 = the thematic code is not present; 1 = the thematic code is present).
Objective:
This paper was intended to investigate the effect of using scales as LACA data type on the ML performance parameters.
Methods:
LACA was carried out using a set of thematic codes to produce an independent variable dataset (x) using scale: 0 = not an issue; 1 = a small issue; 2 = a moderate issue; 3 = a serious issue; and 4 = an extremely serious issue. Subsequently x (independent variables) and y (rating) were split to train and test machine learning models. The performances of the models trained with binary and scalar data were compared.
Results:
For binary x data type, 8 themes were determined with cumulative explained variance (CEV) of 0.54 and an average Cronbach’s alpha of 0.73. LR showed significance on 5 themes with pseudo-R2 of 0.41. ML classification was able to produce f1-score of 0.83 - 0.92 and accuracy of 0.90 for LR and f1-score of 0.74 - 0.88 and accuracy of 0.84 for ANN model. For scalar x data type, 6 themes were determined with CEV of 0.74 and average Cronbach’s alpha of 0.86. LR shows significance on 5 themes with pseudo-R2 of 0.55. ML classification was able to produce f1-score of 0.88 - 0.94 and accuracy of 0.92 for LR model; and f1-score of 0.87 - 0.94 and accuracy of 0.92 for ANN model
Conclusions:
This study highlights that scalar data encoding in LLM-Assisted Content Analysis (LACA) improves machine learning model performance compared to binary encoding. Scalar data resulted in higher explained variance, Cronbach’s alpha, and classification accuracy, suggesting it is a more effective approach for thematic analysis of online reviews. This method can enhance predictive model performance in complex data analysis tasks.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.