Predicting length of hospital stay in community-acquired pneumonia using clinical and treatment factors: a retrospective study with restricted cubic spline and piecewise regression analysis.

IF 3.4 3区 医学 Q2 PUBLIC, ENVIRONMENTAL & OCCUPATIONAL HEALTH
Frontiers in Public Health Pub Date : 2026-04-22 eCollection Date: 2026-01-01 DOI:10.3389/fpubh.2026.1768432
Hualong Zeng, Chengqing Yang, Min Jiang, Xiaohui Luo, Genxiu Luo, Xianyang Chen, Yige Song, Lei Wang, Xiaojun Zhu, Xiaomin Zheng, Hong Wei, Juewei Pan, Feng Lin
{"title":"Predicting length of hospital stay in community-acquired pneumonia using clinical and treatment factors: a retrospective study with restricted cubic spline and piecewise regression analysis.","authors":"Hualong Zeng, Chengqing Yang, Min Jiang, Xiaohui Luo, Genxiu Luo, Xianyang Chen, Yige Song, Lei Wang, Xiaojun Zhu, Xiaomin Zheng, Hong Wei, Juewei Pan, Feng Lin","doi":"10.3389/fpubh.2026.1768432","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Community-acquired pneumonia (CAP) remains a leading cause of hospitalization worldwide. Accurate prediction of length of stay (LOS) is crucial for optimizing hospital bed turnover, improving clinical resource allocation, and facilitating the development of individualized discharge plans, thereby reducing the strain on healthcare systems.</p><p><strong>Methods: </strong>We retrospectively analyzed 423 adults hospitalized with CAP from January 2022 to December 2023. Clinical characteristics, laboratory data, comorbidities, and treatment variables were extracted from electronic health records. Univariate and multivariable linear regression models were initially employed to identify independent predictors of LOS. The predictive performance of the final multivariable model was assessed using R<sup>2</sup>, adjusted R<sup>2</sup>, Akaike Information Criterion, and 10-fold cross-validation. To further explain the complex relationship between specific treatment factors and LOS, restricted cubic splines and piecewise regression were utilized, specifically to evaluate non-linear associations and identify clinical inflection points.</p><p><strong>Results: </strong>The final model showed strong performance (R<sup>2</sup> = 0.864; adjusted R<sup>2</sup> = 0.862). Independent predictors of prolonged LOS included respiratory failure, pressure ulcers, elevated blood urea nitrogen, antibiotic modification during hospitalization, traditional Chinese medicine use, and antibiotic duration. Restricted cubic spline analysis demonstrated a significant non-linear relationship between antibiotic duration and LOS (<i>P</i> < 0.05). Piecewise regression identified an inflection point at 7.398 days, after which LOS increased more rapidly.</p><p><strong>Conclusions: </strong>Multiple clinical and treatment-related factors were associated with LOS in CAP. Antibiotic duration showed a pronounced non-linear pattern, with treatment beyond 1 week linked to markedly longer hospitalization. These findings may help identify patients at risk of prolonged LOS and support more efficient clinical decision-making.</p>","PeriodicalId":12548,"journal":{"name":"Frontiers in Public Health","volume":"14 ","pages":"1768432"},"PeriodicalIF":3.4000,"publicationDate":"2026-04-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13144054/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Frontiers in Public Health","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.3389/fpubh.2026.1768432","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/1/1 0:00:00","PubModel":"eCollection","JCR":"Q2","JCRName":"PUBLIC, ENVIRONMENTAL & OCCUPATIONAL HEALTH","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Community-acquired pneumonia (CAP) remains a leading cause of hospitalization worldwide. Accurate prediction of length of stay (LOS) is crucial for optimizing hospital bed turnover, improving clinical resource allocation, and facilitating the development of individualized discharge plans, thereby reducing the strain on healthcare systems.

Methods: We retrospectively analyzed 423 adults hospitalized with CAP from January 2022 to December 2023. Clinical characteristics, laboratory data, comorbidities, and treatment variables were extracted from electronic health records. Univariate and multivariable linear regression models were initially employed to identify independent predictors of LOS. The predictive performance of the final multivariable model was assessed using R2, adjusted R2, Akaike Information Criterion, and 10-fold cross-validation. To further explain the complex relationship between specific treatment factors and LOS, restricted cubic splines and piecewise regression were utilized, specifically to evaluate non-linear associations and identify clinical inflection points.

Results: The final model showed strong performance (R2 = 0.864; adjusted R2 = 0.862). Independent predictors of prolonged LOS included respiratory failure, pressure ulcers, elevated blood urea nitrogen, antibiotic modification during hospitalization, traditional Chinese medicine use, and antibiotic duration. Restricted cubic spline analysis demonstrated a significant non-linear relationship between antibiotic duration and LOS (P < 0.05). Piecewise regression identified an inflection point at 7.398 days, after which LOS increased more rapidly.

Conclusions: Multiple clinical and treatment-related factors were associated with LOS in CAP. Antibiotic duration showed a pronounced non-linear pattern, with treatment beyond 1 week linked to markedly longer hospitalization. These findings may help identify patients at risk of prolonged LOS and support more efficient clinical decision-making.

利用临床和治疗因素预测社区获得性肺炎住院时间:限制三次样条和分段回归分析的回顾性研究
背景:社区获得性肺炎(CAP)仍然是世界范围内住院的主要原因。准确预测住院时间(LOS)对于优化医院床位周转、改善临床资源分配、促进个性化出院计划的制定,从而减轻医疗保健系统的压力至关重要。方法:回顾性分析2022年1月至2023年12月住院的423名成人CAP患者。从电子健康记录中提取临床特征、实验室数据、合并症和治疗变量。最初采用单变量和多变量线性回归模型来确定LOS的独立预测因子。采用R2、调整后的R2、赤池信息准则和10倍交叉验证对最终多变量模型的预测性能进行评估。为了进一步解释特定治疗因素与LOS之间的复杂关系,我们利用限制三次样条和分段回归来评估非线性关联并确定临床拐点。结果:最终模型表现较好(R2 = 0.864;调整后R2 = 0.862)。延长LOS的独立预测因素包括呼吸衰竭、压疮、血尿素氮升高、住院期间抗生素改良、中药使用和抗生素持续时间。限制三次样条分析显示抗生素持续时间与LOS呈显著的非线性关系(P < 0.05)。分段回归在7.398 d处发现一个拐点,此后LOS增长更快。结论:多种临床和治疗相关因素与CAP的LOS相关。抗生素持续时间呈明显的非线性模式,治疗超过1周与住院时间明显延长有关。这些发现可能有助于识别有长期LOS风险的患者,并支持更有效的临床决策。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Frontiers in Public Health
Frontiers in Public Health Medicine-Public Health, Environmental and Occupational Health
CiteScore
4.80
自引率
7.70%
发文量
4469
审稿时长
14 weeks
期刊介绍: Frontiers in Public Health is a multidisciplinary open-access journal which publishes rigorously peer-reviewed research and is at the forefront of disseminating and communicating scientific knowledge and impactful discoveries to researchers, academics, clinicians, policy makers and the public worldwide. The journal aims at overcoming current fragmentation in research and publication, promoting consistency in pursuing relevant scientific themes, and supporting finding dissemination and translation into practice. Frontiers in Public Health is organized into Specialty Sections that cover different areas of research in the field. Please refer to the author guidelines for details on article types and the submission process.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书