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?

Accepted for/Published in: Journal of Medical Internet Research

Date Submitted: Sep 11, 2024
Date Accepted: Apr 10, 2025

The final, peer-reviewed published version of this preprint can be found here:

Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study

Mao C, Li J, Pang PCI, Zhu Q, Chen R

Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study

J Med Internet Res 2025;27:e66365

DOI: 10.2196/66365

PMID: 40403294

PMCID: 12141965

Identifying Kidney Stone Risk Factors through Patient Experiences with Large Language Model: Text Analysis and Empirical Study

  • Chao Mao; 
  • Jiaxuan Li; 
  • Patrick Cheong-Iao Pang; 
  • Quanjing Zhu; 
  • Rong Chen

ABSTRACT

Background:

Kidney stones, a prevalent urinary disease, pose significant health risks. Factors like insufficient water intake or a high-protein diet increase an individual’s susceptibility to the disease. Social media platforms can be a valuable avenue for users to share their experiences in managing these risk factors. Analyzing such patient-reported information can provide crucial insights into risk factors, potentially leading to improved quality of life for other patients.

Objective:

This study aims to develop an intelligent model (KSrisk-GPT) based on a large language model (LLM) to identify potential kidney stone risk factors from user experiences shared online. Additionally, this work aims to investigate the potential applications of LLMs in public health.

Methods:

This study collected data under the topic of kidney stones on Zhihu in the past five years and obtained 11,819 user comments. Experts organized the most common risk factors for kidney stones into 6 types. Then, we use the Least-to-Most (LtM) prompting in the Chain-of-Thought (CoT) prompting to enable GPT-4.0 to think like an expert, and ask the GPT to identify risk factors from the comments. Metrics including accuracy, precision, recall and F-score were used to evaluate the performance of such a model.

Results:

Our proposed method outperforms other models in identifying comments containing risk factors with 95.9% of accuracy and F-score, with the precision of 95.6% and the recall of 96.2%. Out of the 863 comments identified with risk factors, our analysis showed the most mentioned risk factors for kidney stones in Zhihu user discussions mainly include dietary habits (high protein, high calcium intake), insufficient water intake, genetic factors and lifestyle. In addition, new potential risk factors were discovered with GPT, such as excessive use of supplements like vitamin C and calcium, laxatives and hyperparathyroidism.

Conclusions:

Comments from social media users offer a novel perspective and as a new data source for disease prevention and understanding patient journeys. Our method not only shed light on using LLMs to efficiently summarizes risk factors from extensive social media data, but also LLMs’ potential of reducing risk factors of health conditions and disease prevention.


 Citation

Please cite as:

Mao C, Li J, Pang PCI, Zhu Q, Chen R

Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study

J Med Internet Res 2025;27:e66365

DOI: 10.2196/66365

PMID: 40403294

PMCID: 12141965

Per the author's request the PDF is not available.

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