Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study
BackgroundKidney 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...
Saved in:
| Main Authors: | , , , , |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
JMIR Publications
2025-05-01
|
| Series: | Journal of Medical Internet Research |
| Online Access: | https://www.jmir.org/2025/1/e66365 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1849715179564040192 |
|---|---|
| author | Chao Mao Jiaxuan Li Patrick Cheong-Iao Pang Quanjing Zhu Rong Chen |
| author_facet | Chao Mao Jiaxuan Li Patrick Cheong-Iao Pang Quanjing Zhu Rong Chen |
| author_sort | Chao Mao |
| collection | DOAJ |
| description |
BackgroundKidney 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.
ObjectiveThis study aims to develop a model KSrisk-GPT, based on a large language model (LLM) to identify potential kidney stone risk factors from web-based user experiences.
MethodsThis study collected data on the topic of kidney stones on Zhihu in the past 5 years and obtained 11,819 user comments. Experts organized the most common risk factors for kidney stones into six categories. Then, we use the least-to-most prompting in the chain-of-thought prompting to enable GPT-4.0 to think like an expert and ask GPT to identify risk factors from the comments. Metrics, including accuracy, precision, recall, and F1-score, were used to evaluate the performance of such a model.
ResultsOur proposed method outperforms other models in identifying comments containing risk factors with 95.9% accuracy and F1-score, with a precision of 95.6% and a 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 including 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.
ConclusionsComments from social media users offer a new data source for disease prevention and understanding patient journeys. Our method not only sheds light on using LLMs to efficiently summarize risk factors from social media data but also on LLMs’ potential to identify new potential factors from the patient’s perspective. |
| format | Article |
| id | doaj-art-484c52e7f9fa4036bd4459b76a92f17d |
| institution | DOAJ |
| issn | 1438-8871 |
| language | English |
| publishDate | 2025-05-01 |
| publisher | JMIR Publications |
| record_format | Article |
| series | Journal of Medical Internet Research |
| spelling | doaj-art-484c52e7f9fa4036bd4459b76a92f17d2025-08-20T03:13:29ZengJMIR PublicationsJournal of Medical Internet Research1438-88712025-05-0127e6636510.2196/66365Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical StudyChao Maohttps://orcid.org/0009-0008-0319-4687Jiaxuan Lihttps://orcid.org/0000-0001-7647-6839Patrick Cheong-Iao Panghttps://orcid.org/0000-0002-8820-5443Quanjing Zhuhttps://orcid.org/0000-0003-4813-0894Rong Chenhttps://orcid.org/0000-0001-5811-7883 BackgroundKidney 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. ObjectiveThis study aims to develop a model KSrisk-GPT, based on a large language model (LLM) to identify potential kidney stone risk factors from web-based user experiences. MethodsThis study collected data on the topic of kidney stones on Zhihu in the past 5 years and obtained 11,819 user comments. Experts organized the most common risk factors for kidney stones into six categories. Then, we use the least-to-most prompting in the chain-of-thought prompting to enable GPT-4.0 to think like an expert and ask GPT to identify risk factors from the comments. Metrics, including accuracy, precision, recall, and F1-score, were used to evaluate the performance of such a model. ResultsOur proposed method outperforms other models in identifying comments containing risk factors with 95.9% accuracy and F1-score, with a precision of 95.6% and a 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 including 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. ConclusionsComments from social media users offer a new data source for disease prevention and understanding patient journeys. Our method not only sheds light on using LLMs to efficiently summarize risk factors from social media data but also on LLMs’ potential to identify new potential factors from the patient’s perspective.https://www.jmir.org/2025/1/e66365 |
| spellingShingle | Chao Mao Jiaxuan Li Patrick Cheong-Iao Pang Quanjing Zhu Rong Chen Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study Journal of Medical Internet Research |
| title | Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study |
| title_full | Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study |
| title_fullStr | Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study |
| title_full_unstemmed | Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study |
| title_short | Identifying Kidney Stone Risk Factors Through Patient Experiences With a Large Language Model: Text Analysis and Empirical Study |
| title_sort | identifying kidney stone risk factors through patient experiences with a large language model text analysis and empirical study |
| url | https://www.jmir.org/2025/1/e66365 |
| work_keys_str_mv | AT chaomao identifyingkidneystoneriskfactorsthroughpatientexperienceswithalargelanguagemodeltextanalysisandempiricalstudy AT jiaxuanli identifyingkidneystoneriskfactorsthroughpatientexperienceswithalargelanguagemodeltextanalysisandempiricalstudy AT patrickcheongiaopang identifyingkidneystoneriskfactorsthroughpatientexperienceswithalargelanguagemodeltextanalysisandempiricalstudy AT quanjingzhu identifyingkidneystoneriskfactorsthroughpatientexperienceswithalargelanguagemodeltextanalysisandempiricalstudy AT rongchen identifyingkidneystoneriskfactorsthroughpatientexperienceswithalargelanguagemodeltextanalysisandempiricalstudy |