Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

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

  • Muhammad Hafiz Sulaiman; 
  • Nora Muda; 
  • Fatimah Abdul Razak

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

Please cite as:

Sulaiman MH, Muda N, Abdul Razak F

Impact of Data Types on Machine Learning Performance in LLM-Assisted Content Analysis (LACA) of Hospital Online Reviews

JMIR Preprints. 15/03/2025:73984

DOI: 10.2196/preprints.73984

URL: https://preprints.jmir.org/preprint/73984

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© 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.