Predicting Hospital Stay Length Using KNN Regressor Optimized with Gridsearchcv: An Explainable Machine Learning Approach

Efficient bed management is essential for minimizing hospital costs, improving efficiency, and enhancing patient outcomes. This study introduces a predictive framework for forecasting hospital-ICU length of stay (LOS) at admission, leveraging hospital EHR data. Unlike prior work, which heavily relied on advanced tree-based models, this research proposes a K-Nearest Neighbors (KNN) model with hyperparameter optimization using GridSearchCV for predicting ICU patients’ LOS. The KNN model effectively classifies patients into short and long LOS categories by learning patterns in clinical information systems (CIS). To ensure robustness, we evaluated the model using various performance metrics, including Accuracy, AUC, Sensitivity, Specificity, F1-score, Precision, and Recall. The optimized KNN model demonstrated competitive predictive performance with improved interpretability compared to traditional complex models. Additionally, explainable artificial intelligence (xAI) techniques were incorporated to provide transparent insights into the decision-making process, further enhancing the trustworthiness of the predictions. This work highlights the potential of using machine learning models like KNN for reliable, interpretable, and efficient ICU LOS prediction, aiding hospitals in improving resource allocation and patient care outcomes.

Authors

Publication Details

Journal
International Journal of Emerging Technologies and Innovative Research
Published
2025-06-08
DOI
https://doi.org/10.48175/ijetir-4016
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting Hospital Stay Length Using KNN Regressor Optimized with Gridsearchcv: An Explainable Machine Learning Approach

A. Niranjan Reddy, K. Vigneshwar, G.V. Chanukya Teja, B. Pallav et al.
International Journal of Emerging Technologies and Innovative Research
Machine Learning in Healthcare
article

Predicting Hospital Stay Length Using KNN Regressor Optimized with Gridsearchcv: An Explainable Machine Learning Approach

A. Niranjan Reddy, K. Vigneshwar, G.V. Chanukya Teja, B. Pallav, V. Sravika
article en

Abstract

Efficient bed management is essential for minimizing hospital costs, improving efficiency, and enhancing patient outcomes. This study introduces a predictive framework for forecasting hospital-ICU length of stay (LOS) at admission, leveraging hospital EHR data. Unlike prior work, which heavily relied on advanced tree-based models, this research proposes a K-Nearest Neighbors (KNN) model with hyperparameter optimization using GridSearchCV for predicting ICU patients’ LOS. The KNN model effectively classifies patients into short and long LOS categories by learning patterns in clinical information systems (CIS). To ensure robustness, we evaluated the model using various performance metrics, including Accuracy, AUC, Sensitivity, Specificity, F1-score, Precision, and Recall. The optimized KNN model demonstrated competitive predictive performance with improved interpretability compared to traditional complex models. Additionally, explainable artificial intelligence (xAI) techniques were incorporated to provide transparent insights into the decision-making process, further enhancing the trustworthiness of the predictions. This work highlights the potential of using machine learning models like KNN for reliable, interpretable, and efficient ICU LOS prediction, aiding hospitals in improving resource allocation and patient care outcomes.

International Journal of Emerging Technologies and Innovative Research
Openalex Percentile: Top 94%
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Predicting Hospital Stay Length Using KNN Regressor Optimized with Gridsearchcv: An Explainable Machine Learning Approach — A. Niranjan Reddy, K. Vigneshwar, et al. · International Journal of Emerging Technologies and Innovative Research (2025) | TGRS Research Map | TGRS