利用機器學習方法比較肝癌末期病患住院後15日內存活期之死亡預測模型 -以臺灣某醫學中心電子病歷為例
Develop 15-day Mortality Prediction Models for Terminal Hepatocellular Carcinoma Patients after Admission using Machine Learning Methods: An Experience from a Medical Center in Taiwan
摘要
研究背景:醫療科技發展是為了拯救病患生命並減輕其疼痛,而非單純拖延死亡。預測癌末病患是否將於短期死亡,對於病患及醫療團隊皆相當重要,病患能安排生命待辦清單,醫療團隊也能做出更妥善的治療。本研究以肝癌末期病患為研究族群,納入基本資料、臨床症狀及臨床檢驗數值,透過自然語言處理及機器學習建立模型,開發肝癌末期病患在住院後15日內死亡之預測模型。
研究方法:本研究為回溯性病歷分析研究,以在臺灣某醫學中心住院,且在2011年1月1日至2021年12月31日期間死亡之肝癌病患為研究對象,資料來源為該醫學中心癌症登記檔及電子病歷。除了結構性臨床檢驗數據外,亦利用自然語言處理技術GPT3.5提取病歷摘要之臨床症狀。為評估模型準確性及外推性,本研究隨機將病歷資料分派為訓練組及驗證組,使用多元邏輯斯迴歸(Multiple logistic regression)、遞歸消除特徵法(Ecursive feature elimination, RFE)邏輯斯迴歸、嶺迴歸(Ridge Regression)及套索迴歸(Lasso Regression)分別建立預測模型,並透過繪製混淆矩陣及ROC曲線,計算曲線下面積、敏感度、特異度、陽性預測值及陰性預測值評估模型表現。
研究結果:本研究所開發之4種模型外部驗證,AUC皆有0.68以上,以嶺迴歸模型之AUC最高(0.727);各模型準確率為64.3%~66.7%,以遞歸消除特徵法邏輯斯迴歸模型最高(66.7%);各模型敏感度為60.8%~64.9%,以套索迴歸模型最高(64.9%);各模型特異度為64.1%~68.7%,以遞歸消除特徵法邏輯斯迴歸模型最高(68.7%)。此外,本研究驗證組病患住院後15日內死亡率為25.5%,各模型預測死亡率皆高估(38.8%~43%),以遞歸消除特徵法迴歸模型所預測之38.8%,最接近實際值。
結論與建議:本研究開發之4種死亡預測模型,準確率皆超過64%、AUC皆達0.68以上,以遞歸消除特徵法邏輯斯迴歸模型的準確率66.7%及嶺迴歸模型的AUC 0.726為最高;本研究建議實務應用人工智慧預測模型時,應謹慎考慮其效能、限制及不確定性,不應作為臨床決策唯一參考工具,而是作為醫護人員與病患及家屬溝通之輔助工具,在充分溝通及理解下應用。
研究方法:本研究為回溯性病歷分析研究,以在臺灣某醫學中心住院,且在2011年1月1日至2021年12月31日期間死亡之肝癌病患為研究對象,資料來源為該醫學中心癌症登記檔及電子病歷。除了結構性臨床檢驗數據外,亦利用自然語言處理技術GPT3.5提取病歷摘要之臨床症狀。為評估模型準確性及外推性,本研究隨機將病歷資料分派為訓練組及驗證組,使用多元邏輯斯迴歸(Multiple logistic regression)、遞歸消除特徵法(Ecursive feature elimination, RFE)邏輯斯迴歸、嶺迴歸(Ridge Regression)及套索迴歸(Lasso Regression)分別建立預測模型,並透過繪製混淆矩陣及ROC曲線,計算曲線下面積、敏感度、特異度、陽性預測值及陰性預測值評估模型表現。
研究結果:本研究所開發之4種模型外部驗證,AUC皆有0.68以上,以嶺迴歸模型之AUC最高(0.727);各模型準確率為64.3%~66.7%,以遞歸消除特徵法邏輯斯迴歸模型最高(66.7%);各模型敏感度為60.8%~64.9%,以套索迴歸模型最高(64.9%);各模型特異度為64.1%~68.7%,以遞歸消除特徵法邏輯斯迴歸模型最高(68.7%)。此外,本研究驗證組病患住院後15日內死亡率為25.5%,各模型預測死亡率皆高估(38.8%~43%),以遞歸消除特徵法迴歸模型所預測之38.8%,最接近實際值。
結論與建議:本研究開發之4種死亡預測模型,準確率皆超過64%、AUC皆達0.68以上,以遞歸消除特徵法邏輯斯迴歸模型的準確率66.7%及嶺迴歸模型的AUC 0.726為最高;本研究建議實務應用人工智慧預測模型時,應謹慎考慮其效能、限制及不確定性,不應作為臨床決策唯一參考工具,而是作為醫護人員與病患及家屬溝通之輔助工具,在充分溝通及理解下應用。
Background: Medical technology aims to extend life and alleviate patient suffering, rather than merely delaying death. Predicting short-term mortality in terminal cancer patients is crucial for end-of-life planning and providing appropriate treatment. This study focuses on terminal Hepatocellular carcinoma patients, utilizing basic information, clinical symptoms, and laboratory values. Through the application of natural language processing and machine learning, the goal is to develop a predictive model for mortality within 15 days post-hospitalization.
Methods: This retrospective cohort study analyzes the medical records of patients with Hepatocellular carcinoma hospitalized at a Taiwanese medical center from 2011 to 2021. Data sources include the cancer registry and electronic medical records. Structured clinical data and clinical symptoms, extracted using GPT-3.5 natural language processing, are utilized. To assess model accuracy, records are randomly split into training and validation sets. Predictive models, including various logistic regression variations, are employed and evaluated using confusion matrices, ROC curves, AUC, sensitivity, specificity, positive predictive value and negative predictive value calculations.
Results: The four models have AUC values above 0.68 in external validation. The Ridge regression model achieves the highest AUC (0.727). The model accuracy ranges from 64.3% to 66.7%, with the RFE regression model reaching the highest accuracy (66.7%). Sensitivity ranges from 60.8% to 64.9%, with the Lasso regression model achieving the highest sensitivity (64.9%). Specificity ranges from 64.1% to 68.7%, with the RFE regression model having the highest specificity (68.7%). Additionally, the mortality rate of patients in the validation set within 15 days after hospitalization is 25.5%, and the predicted mortality rates by the models are overestimated (38.8% to 43%), with the RFE regression model predicting the closest to the actual value at 38.8%.
Conclusion and implications: The four models show accuracy above 64%, all with AUC values exceeding 0.68. The RFE regression model has the highest accuracy (66.7%), and the Ridge regression model has the highest AUC (0.726). When using AI prediction models in practice, it's crucial to consider their performance, limitations, and uncertainties. These models should not be the sole reference for clinical decisions but rather serve as auxiliary tools for effective communication between healthcare professionals and patients or family members, emphasizing thorough communication and understanding.
Methods: This retrospective cohort study analyzes the medical records of patients with Hepatocellular carcinoma hospitalized at a Taiwanese medical center from 2011 to 2021. Data sources include the cancer registry and electronic medical records. Structured clinical data and clinical symptoms, extracted using GPT-3.5 natural language processing, are utilized. To assess model accuracy, records are randomly split into training and validation sets. Predictive models, including various logistic regression variations, are employed and evaluated using confusion matrices, ROC curves, AUC, sensitivity, specificity, positive predictive value and negative predictive value calculations.
Results: The four models have AUC values above 0.68 in external validation. The Ridge regression model achieves the highest AUC (0.727). The model accuracy ranges from 64.3% to 66.7%, with the RFE regression model reaching the highest accuracy (66.7%). Sensitivity ranges from 60.8% to 64.9%, with the Lasso regression model achieving the highest sensitivity (64.9%). Specificity ranges from 64.1% to 68.7%, with the RFE regression model having the highest specificity (68.7%). Additionally, the mortality rate of patients in the validation set within 15 days after hospitalization is 25.5%, and the predicted mortality rates by the models are overestimated (38.8% to 43%), with the RFE regression model predicting the closest to the actual value at 38.8%.
Conclusion and implications: The four models show accuracy above 64%, all with AUC values exceeding 0.68. The RFE regression model has the highest accuracy (66.7%), and the Ridge regression model has the highest AUC (0.726). When using AI prediction models in practice, it's crucial to consider their performance, limitations, and uncertainties. These models should not be the sole reference for clinical decisions but rather serve as auxiliary tools for effective communication between healthcare professionals and patients or family members, emphasizing thorough communication and understanding.